From 3176a4dc14dd7c58a019f51e7ab870928845588b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cpoonam=2Eghewande=40ayanworks=2Ecom=E2=80=9D?= <“poonam.ghewande@ayanworks.com”> Date: Fri, 7 Jul 2023 15:46:03 +0530 Subject: [PATCH 1/5] localization,home,onboarding image change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “poonam.ghewande@ayanworks.com” <“poonam.ghewande@ayanworks.com”> --- .../app/src/main/assets/index.android.bundle | 6582 +++++++++-------- app/src/assets/img/sharesecure.png | Bin 8532 -> 16304 bytes app/src/components/HomeContentView.tsx | 6 +- app/src/localization/en/index.ts | 3 + app/src/localization/fr/index.ts | 3 + app/src/localization/pt-br/index.ts | 3 + app/src/screens/OnboardingPages.tsx | 4 +- 7 files changed, 3309 insertions(+), 3292 deletions(-) diff --git a/app/android/app/src/main/assets/index.android.bundle b/app/android/app/src/main/assets/index.android.bundle index c7f47b26..2f12a6be 100644 --- a/app/android/app/src/main/assets/index.android.bundle +++ b/app/android/app/src/main/assets/index.android.bundle @@ -1,11 +1,11 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; !(function(r){"use strict";r.__r=o,r[__METRO_GLOBAL_PREFIX__+"__d"]=function(r,i,n){if(null!=e[i])return;var o={dependencyMap:n,factory:r,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};e[i]=o},r.__c=n,r.__registerSegment=function(r,t,i){s[r]=t,i&&i.forEach(function(t){e[t]||v.has(t)||v.set(t,r)})};var e=n(),t={},i={}.hasOwnProperty;function n(){return e=Object.create(null)}function o(r){var t=r,i=e[t];return i&&i.isInitialized?i.publicModule.exports:d(t,i)}function l(r){var i=r;if(e[i]&&e[i].importedDefault!==t)return e[i].importedDefault;var n=o(i),l=n&&n.__esModule?n.default:n;return e[i].importedDefault=l}function u(r){var n=r;if(e[n]&&e[n].importedAll!==t)return e[n].importedAll;var l,u=o(n);if(u&&u.__esModule)l=u;else{if(l={},u)for(var a in u)i.call(u,a)&&(l[a]=u[a]);l.default=u}return e[n].importedAll=l}o.importDefault=l,o.importAll=u;var a=!1;function d(e,t){if(!a&&r.ErrorUtils){var i;a=!0;try{i=h(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return a=!1,i}return h(e,t)}var f=16,c=65535;function p(r){return{segmentId:r>>>f,localId:r&c}}o.unpackModuleId=p,o.packModuleId=function(r){return(r.segmentId<0){var n,a=null!==(n=v.get(t))&&void 0!==n?n:0,d=s[a];null!=d&&(d(t),i=e[t],v.delete(t))}var f=r.nativeRequire;if(!i&&f){var c=p(t),h=c.segmentId;f(c.localId,h),i=e[t]}if(!i)throw Error('Requiring unknown module "'+t+'".');if(i.hasError)throw _(t,i.error);i.isInitialized=!0;var m=i,g=m.factory,I=m.dependencyMap;try{var M=i.publicModule;return M.id=t,g(r,o,l,u,M,M.exports,I),i.factory=void 0,i.dependencyMap=void 0,M.exports}catch(r){throw i.hasError=!0,i.error=r,i.isInitialized=!1,i.publicModule.exports=void 0,r}}function _(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+e)}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); -!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach(function(n,r){e[n]=!0}),e}function r(n,r,u){if(n.formatValueCalls++,n.formatValueCalls>200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return 0,e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return 0,e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t';return function(){for(var r=arguments.length,u=new Array(r),e=0;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(p[n]=t[n])}return p},m.exports.default=m.exports,m.exports.__esModule=!0},5,[6]); @@ -21,7 +21,7 @@ __d(function(g,r,i,a,m,e,d){function t(o){return m.exports=t=Object.setPrototype __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},15,[16]); __d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var e=60103,t=60106;_e.Fragment=60107,_e.StrictMode=60108,_e.Profiler=60114;var r=60109,n=60110,o=60112;_e.Suspense=60113;var u=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var a=Symbol.for;e=a("react.element"),t=a("react.portal"),_e.Fragment=a("react.fragment"),_e.StrictMode=a("react.strict_mode"),_e.Profiler=a("react.profiler"),r=a("react.provider"),n=a("react.context"),o=a("react.forward_ref"),_e.Suspense=a("react.suspense"),u=a("react.memo"),f=a("react.lazy")}var c="function"==typeof Symbol&&Symbol.iterator;function l(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=c&&e[c]||e["@@iterator"])?e:null}function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rthis.eventPool.length&&this.eventPool.push(e)}function R(e){e.getPooled=x,e.eventPool=[],e.release=P}n(i[2])(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:_,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=_,this._dispatchInstances=this._dispatchListeners=null}}),T.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},T.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,R(r),r},R(T);var E=T.extend({touchHistory:function(){return null}});function C(e){return"topTouchStart"===e}function N(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function Q(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function H(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var O,j={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),N(e))n.changedTouches.forEach(Q);else if(C(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(H),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;ei||(a=i),Ne(a,e,l)}}}),v=function(e){return we.get(e._nativeTag)||null},b=_e,y=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},re.injection.injectGlobalResponderHandler({onChange:function(e,t,r){null!==t?n(i[3]).UIManager.setJSResponder(t.stateNode._nativeTag,r):n(i[3]).UIManager.clearJSResponder()}});var ze=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ie=60103,Le=60106,Ue=60107,Me=60108,Fe=60114,De=60109,Ae=60110,Qe=60112,He=60113,Oe=60120,je=60115,Be=60116,Ve=60129,We=60130,Ye=60131,qe=60132;if("function"==typeof Symbol&&Symbol.for){var Xe=Symbol.for;Ie=Xe("react.element"),Le=Xe("react.portal"),Ue=Xe("react.fragment"),Me=Xe("react.strict_mode"),Fe=Xe("react.profiler"),De=Xe("react.provider"),Ae=Xe("react.context"),Qe=Xe("react.forward_ref"),He=Xe("react.suspense"),Oe=Xe("react.suspense_list"),je=Xe("react.memo"),Be=Xe("react.lazy"),Xe("react.scope"),Ve=Xe("react.debug_trace_mode"),We=Xe("react.offscreen"),Ye=Xe("react.legacy_hidden"),qe=Xe("react.cache")}var $e="function"==typeof Symbol&&Symbol.iterator;function Ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$e&&e[$e]||e["@@iterator"])?e:null}function Ke(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ue:return"Fragment";case Le:return"Portal";case Fe:return"Profiler";case Me:return"StrictMode";case He:return"Suspense";case Oe:return"SuspenseList";case qe:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case Ae:return(e.displayName||"Context")+".Consumer";case De:return(e._context.displayName||"Context")+".Provider";case Qe:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case je:return null!==(n=e.displayName||null)?n:Ke(e.type)||"Memo";case Be:n=e._payload,e=e._init;try{return Ke(e(n))}catch(e){}}return null}function Je(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ke(n);case 23:return"LegacyHidden";case 8:return n===Me?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Ze(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(2050&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function en(e){if(Ze(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nn(e){var n=e.alternate;if(!n){if(null===(n=Ze(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return en(l),e;if(a===r)return en(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function tn(e){return null!==(e=nn(e))?rn(e):null}function rn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=rn(e);if(null!==n)return n;e=e.sibling}return null}var ln={},an=null,un=0,on={unsafelyIgnoreFunctions:!0};function sn(e,t){return"object"!=typeof t||null===t||n(i[3]).deepDiffer(e,t,on)}function cn(e,n,t){if(m(n))for(var r=n.length;r--&&0=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Rn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Nn(n)]=t}function En(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0Xn||(e.current=qn[Xn],qn[Xn]=null,Xn--)}function Kn(e,n){qn[++Xn]=e.current,e.current=n}var Jn={},Zn=$n(Jn),et=$n(!1),nt=Jn;function tt(e,n){var t=e.type.contextTypes;if(!t)return Jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function lt(){Gn(et),Gn(Zn)}function at(e,n,t){if(Zn.current!==Jn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Kn(Zn,n),Kn(et,t)}function it(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((Je(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function ut(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,nt=Zn.current,Kn(Zn,e),Kn(et,et.current),!0}function ot(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=it(e,n,nt),r.__reactInternalMemoizedMergedChildContext=e,Gn(et),Gn(Zn),Kn(Zn,e)):Gn(et),Kn(et,t)}var st=null,ct=!1,dt=!1;function ft(){if(!dt&&null!==st){dt=!0;var e=0,t=Ln;try{var r=st;for(Ln=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===Ue&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case Ie:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===Ue){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=Wt(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===Ue?((r=Ka(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ga(a.type,a.key,a.props,null,e.mode,u)).ref=Wt(e,r,a),u.return=e,e=u)}return i(e);case Le:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ei(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(Ge(a))return g(e,r,a,u);Yt(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Za(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((Je(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var Xt=qt(!0),$t=qt(!1),Gt={},Kt=$n(Gt),Jt=$n(Gt),Zt=$n(Gt);function er(e){if(e===Gt)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function nr(e,n){Kn(Zt,n),Kn(Jt,e),Kn(Kt,Gt),Gn(Kt),Kn(Kt,{isInAParentText:!1})}function tr(){Gn(Kt),Gn(Jt),Gn(Zt)}function rr(e){er(Zt.current);var n=er(Kt.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(Kn(Jt,e),Kn(Kt,t))}function lr(e){Jt.current===e&&(Gn(Kt),Gn(Jt))}var ar=$n(0);function ir(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Mn()||Mn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ur=[];function or(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,hr=pr=null,n.updateQueue=null,sr.current=Yr,e=t(r,l)}while(mr)}if(sr.current=Br,n=null!==pr&&null!==pr.next,dr=0,hr=pr=fr=null,gr=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hr?fr.memoizedState=hr=e:hr=hr.next=e,hr}function kr(){if(null===pr){var e=fr.alternate;e=null!==e?e.memoizedState:null}else e=pr.next;var n=null===hr?fr.memoizedState:hr.next;if(null!==n)hr=n,pr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(pr=e).memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},null===hr?fr.memoizedState=hr=e:hr=hr.next=e}return hr}function wr(e,n){return"function"==typeof n?n(e):n}function _r(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=pr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((dr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,fr.lanes|=c,ia|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,ht(r,n.memoizedState)||(Zr=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,fr.lanes|=a,ia|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Tr(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);ht(a,n.memoizedState)||(Zr=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function xr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(n._workInProgressVersionPrimary=r,ur.push(n))),e)return t(n._source);throw ur.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Pr(e,n,t,r){var l=Zl;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=sr.current,o=u.useState(function(){return xr(l,n,t)}),s=o[1],c=o[0];o=hr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=fr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);ht(i,e)||(e=t(n._source),ht(c,e)||(s(e),e=wa(g),l.mutableReadLanes|=e&l.pendingLanes),Cn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=wa(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),ht(p,t)&&ht(h,n)&&ht(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:c}).dispatch=s=jr.bind(null,fr,e),o.queue=e,o.baseQueue=null,c=xr(l,n,t),o.memoizedState=o.baseState=c),c}function Rr(e,n,t){return Pr(kr(),e,n,t)}function Er(e){var n=Sr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:e}).dispatch=jr.bind(null,fr,e),[n.memoizedState,e]}function Cr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=fr.updateQueue)?(n={lastEffect:null},fr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Nr(){return kr().memoizedState}function zr(e,n,t,r){var l=Sr();fr.flags|=e,l.memoizedState=Cr(1|n,t,void 0,void 0===r?null:r)}function Ir(e,n,t,r){var l=kr();r=void 0===r?null:r;var a=void 0;if(null!==pr){var i=pr.memoizedState;if(a=i.destroy,null!==r&&br(r,i.deps))return void(l.memoizedState=Cr(n,t,a,r))}fr.flags|=e,l.memoizedState=Cr(1|n,t,a,r)}function Lr(e,n){return zr(1049600,4,e,n)}function Ur(e,n){return Ir(1024,4,e,n)}function Mr(e,n){return Ir(4,2,e,n)}function Fr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function Dr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Ir(4,2,Fr.bind(null,n,e),t)}function Ar(){}function Qr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Hr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Or(e,n){var t=Ln;Ln=0!==t&&4>t?t:4,e(!0);var r=cr.transition;cr.transition=1;try{e(!1),n()}finally{Ln=t,cr.transition=r}}function jr(e,n,t){var r=ka(),l=wa(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===fr||null!==i&&i===fr)mr=gr=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==Zl&&0!=(1&e.mode)&&0==(8&Jl)){var u=n.interleaved;null===u?(a.next=a,null===Et?Et=[n]:Et.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,ht(s,o))return}catch(e){}a=_a(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Cn(a,l))}}var Br={readContext:Rt,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useOpaqueIdentifier:vr,unstable_isNewReconciler:!1},Vr={readContext:Rt,useCallback:function(e,n){return Sr().memoizedState=[e,void 0===n?null:n],e},useContext:Rt,useEffect:Lr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,zr(4,2,Fr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return zr(4,2,e,n)},useMemo:function(e,n){var t=Sr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Sr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=jr.bind(null,fr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sr().memoizedState=e},useState:Er,useDebugValue:Ar,useDeferredValue:function(e){var n=Er(e),t=n[0],r=n[1];return Lr(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){var e=Er(!1),n=e[0];return e=Or.bind(null,e[1]),Sr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Sr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Pr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},Wr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:_r,useRef:Nr,useState:function(){return _r(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=_r(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[_r(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return _r(wr)[0]},unstable_isNewReconciler:!1},Yr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:Tr,useRef:Nr,useState:function(){return Tr(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=Tr(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[Tr(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return Tr(wr)[0]},unstable_isNewReconciler:!1};function qr(e,n){return{value:e,source:n,stack:vt(n)}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Xr(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var $r="function"==typeof WeakMap?WeakMap:Map;function Gr(e,n,t){(t=It(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){da||(da=!0,fa=r),Xr(e,n)},t}function Kr(e,n,t){(t=It(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return Xr(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===pa?pa=new Set([this]):pa.add(this),Xr(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var Jr=ze.ReactCurrentOwner,Zr=!1;function el(e,n,t,r){n.child=null===e?$t(n,null,t,r):Xt(n,e.child,t,r)}function nl(e,n,t,r,l){t=t.render;var a=n.ref;return Pt(n,l),r=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function tl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||qa(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Ga(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,rl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:gt)(l,r)&&e.ref===n.ref)?_l(e,n,a):(n.flags|=1,(e=$a(i,r)).ref=n.ref,e.return=n,n.child=e)}function rl(e,n,t,r,l,a){if(null!==e&>(e.memoizedProps,r)&&e.ref===n.ref){if(Zr=!1,0==(a&l))return n.lanes=e.lanes,_l(e,n,a);0!=(32768&e.flags)&&(Zr=!0)}return il(e,n,t,r,a)}function ll(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},Kn(ra,ta),ta|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,Kn(ra,ta),ta|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,Kn(ra,ta),ta|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,Kn(ra,ta),ta|=r;return el(e,n,l,t),n.child}function al(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function il(e,n,t,r,l){var a=rt(t)?nt:Zn.current;return a=tt(n,a),Pt(n,l),t=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function ul(e,n,t,r,l){if(rt(t)){var a=!0;ut(n)}else a=!1;if(Pt(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),jt(n,t,r),Vt(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Rt(s):s=tt(n,s=rt(t)?nt:Zn.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Bt(n,i,r,s),Ct=!1;var f=n.memoizedState;i.state=f,Ft(n,r,i,l),o=n.memoizedState,u!==r||f!==o||et.current||Ct?("function"==typeof c&&(Qt(n,t,c,r),o=n.memoizedState),(u=Ct||Ot(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,zt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:bt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Rt(o):o=tt(n,o=rt(t)?nt:Zn.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Bt(n,i,r,o),Ct=!1,f=n.memoizedState,i.state=f,Ft(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||et.current||Ct?("function"==typeof p&&(Qt(n,t,p,r),h=n.memoizedState),(s=Ct||Ot(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return ol(e,n,t,r,a,l)}function ol(e,n,t,r,l,a){al(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&ot(n,t,!1),_l(e,n,a);r=n.stateNode,Jr.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Xt(n,e.child,null,a),n.child=Xt(n,null,u,a)):el(e,n,u,a),n.memoizedState=r.state,l&&ot(n,t,!0),n.child}function sl(e){var n=e.stateNode;n.pendingContext?at(0,n.pendingContext,n.pendingContext!==n.context):n.context&&at(0,n.context,!1),nr(e,n.containerInfo)}var cl,dl,fl,pl,hl={dehydrated:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null}}function ml(e,n,t){var r,l=n.pendingProps,a=ar.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),Kn(ar,1&a),null===e?(e=l.children,a=l.fallback,i?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,e):"number"==typeof l.unstable_expectedLoadTime?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,n.lanes=4194304,e):((t=Ja({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=yl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?gl(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=hl,l):(t=bl(e,n,l.children,t),n.memoizedState=null,t))}function vl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=Ja(n,l,0,null),t=Ka(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function bl(e,n,t,r){var l=e.child;return e=l.sibling,t=$a(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function yl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=$a(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=$a(i,r):(r=Ka(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Sl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),xt(e.return,n)}function kl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function wl(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(el(e,n,r.children,t),0!=(2&(r=ar.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Sl(e,t);else if(19===e.tag)Sl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Kn(ar,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===ir(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),kl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ir(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}kl(n,!0,t,null,a);break;case"together":kl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function _l(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ia|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=$a(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=$a(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Tl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Pl(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xl(t),null;case 1:return rt(t.type)&<(),xl(t),null;case 3:return l=t.stateNode,tr(),Gn(et),Gn(Zn),or(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),dl(e,t),xl(t),null;case 5:lr(t),r=er(Zt.current);var a=t.type;if(null!==e&&null!=t.stateNode)fl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xl(t),null}er(Kt.current),e=Qn(),a=Fn(a);var u=hn(null,ln,l,a.validAttributes);n(i[3]).UIManager.createView(e,a.uiViewClassName,r,u),r=new mn(e,a,t),ke.set(e,t),we.set(e,l),cl(r,t,!1,!1),t.stateNode=r,On(r)&&(t.flags|=4),null!==t.ref&&(t.flags|=256)}return xl(t),null;case 6:if(e&&null!=t.stateNode)pl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=er(Zt.current),!er(Kt.current).isInAParentText)throw Error("Text strings must be rendered within a component.");r=Qn(),n(i[3]).UIManager.createView(r,"RCTRawText",e,{text:l}),ke.set(r,t),t.stateNode=r}return xl(t),null;case 13:return Gn(ar),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ar.current)?0===la&&(la=3):(0!==la&&3!==la||(la=4),null===Zl||0==(268435455&ia)&&0==(268435455&ua)||Ra(Zl,na))),(l||r)&&(t.flags|=4),xl(t),null);case 4:return tr(),dl(e,t),xl(t),null;case 10:return Tt(t.type._context),xl(t),null;case 17:return rt(t.type)&<(),xl(t),null;case 19:if(Gn(ar),null===(a=t.memoizedState))return xl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Tl(a,!1);else{if(0!==la||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ir(e))){for(t.flags|=128,Tl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return Kn(ar,1&ar.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ca&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=ir(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Tl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return xl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ca&&1073741824!==r&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=ar.current,Kn(ar,l?1&e|2:1&e),t):(xl(t),null);case 22:case 23:return Ca(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ta)&&0!=(1&t.mode)||xl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rl(e){switch(e.tag){case 1:rt(e.type)&<();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(tr(),Gn(et),Gn(Zn),or(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return lr(e),null;case 13:return Gn(ar),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return Gn(ar),null;case 4:return tr(),null;case 10:return Tt(e.type._context),null;case 22:case 23:return Ca(),null;case 24:default:return null}}cl=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},dl=function(){},fl=function(e,n,t,r){e.memoizedProps!==r&&(er(Kt.current),n.updateQueue=Dn)&&(n.flags|=4)},pl=function(e,n,t,r){t!==r&&(n.flags|=4)};var El="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Nl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ja(e,n,t)}else t.current=null}var zl=!1;function Il(e,n){for(Cl=n;null!==Cl;)if(n=(e=Cl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,Cl=n;else for(;null!==Cl;){e=Cl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:bt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){ja(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Cl=n;break}Cl=e.return}return t=zl,zl=!1,t}function Ll(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){ja(i,u,e)}}}l=l.next}while(l!==r)}}function Ul(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ml(e,t){for(var r=null,l=e;;){if(5===l.tag){if(null===r){r=l;var a=l.stateNode;if(t){var u=a.viewConfig,o=hn(null,ln,{style:{display:"none"}},u.validAttributes);n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}else{a=l.stateNode,o=l.memoizedProps,u=a.viewConfig,o=hn(null,n(i[2])({},o,{style:[o.style,{display:"none"}]}),o,u.validAttributes),n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}}}else if(6===l.tag){if(null===r)throw Error("Not yet implemented.")}else if((22!==l.tag&&23!==l.tag||null===l.memoizedState||l===e)&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===e)break;for(;null===l.sibling;){if(null===l.return||l.return===e)return;r===l&&(r=null),l=l.return}r===l&&(r=null),l.sibling.return=l.return,l=l.sibling}}function Fl(e,n,t){if(bn&&"function"==typeof bn.onCommitFiberUnmount)try{bn.onCommitFiberUnmount(vn,n)}catch(e){}switch(n.tag){case 0:case 11:case 14:case 15:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var l=r,a=l.destroy;if(l=l.tag,void 0!==a&&0!=(2&l)){l=n;var i=t;try{a()}catch(e){ja(l,i,e)}}r=r.next}while(r!==e)}break;case 1:if(Nl(n,t),"function"==typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(e){ja(n,t,e)}break;case 5:Nl(n,t);break;case 4:jl(e,n,t)}}function Dl(e){var n=e.alternate;null!==n&&(e.alternate=null,Dl(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Al(e){return 5===e.tag||3===e.tag||4===e.tag}function Ql(e){e:{for(var n=e.return;null!==n;){if(Al(n))break e;n=n.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}32&t.flags&&(t.flags&=-33);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||Al(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?Hl(e,t,n):Ol(e,t,n)}function Hl(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){if("number"==typeof r)throw Error("Container does not support insertBefore operation")}else n(i[3]).UIManager.setChildren(r,["number"==typeof e?e:e._nativeTag]);else if(4!==l&&null!==(e=e.child))for(Hl(e,t,r),e=e.sibling;null!==e;)Hl(e,t,r),e=e.sibling}function Ol(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){var a=(l=r._children).indexOf(e);0<=a?(l.splice(a,1),t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[t],[],[],[])):(t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[t],[]))}else t="number"==typeof e?e:e._nativeTag,0<=(a=(l=r._children).indexOf(e))?(l.splice(a,1),l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[l.length-1],[],[],[])):(l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],[t],[l.length-1],[]));else if(4!==l&&null!==(e=e.child))for(Ol(e,t,r),e=e.sibling;null!==e;)Ol(e,t,r),e=e.sibling}function jl(e,t,r){for(var l,a,u=t,o=!1;;){if(!o){o=u.return;e:for(;;){if(null===o)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(l=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:l=l.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===u.tag||6===u.tag){e:for(var s=e,c=u,d=r,f=c;;)if(Fl(s,f,d),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(s=l,Hn(u.stateNode),n(i[3]).UIManager.manageChildren(s,[],[],[],[],[0])):(s=l,Hn(d=u.stateNode),d=(c=s._children).indexOf(d),c.splice(d,1),n(i[3]).UIManager.manageChildren(s._nativeTag,[],[],[],[],[d]))}else if(4===u.tag){if(null!==u.child){l=u.stateNode.containerInfo,a=!0,u.child.return=u,u=u.child;continue}}else if(Fl(e,u,r),null!==u.child){u.child.return=u,u=u.child;continue}if(u===t)break;for(;null===u.sibling;){if(null===u.return||u.return===t)return;4===(u=u.return).tag&&(o=!1)}u.sibling.return=u.return,u=u.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Ll(3,t,t.return);case 1:return;case 5:var r=t.stateNode;if(null!=r){var l=t.memoizedProps;e=null!==e?e.memoizedProps:l;var a=t.updateQueue;t.updateQueue=null,null!==a&&(t=r.viewConfig,we.set(r._nativeTag,l),null!=(l=hn(null,e,l,t.validAttributes))&&n(i[3]).UIManager.updateView(r._nativeTag,t.uiViewClassName,l))}return;case 6:if(null===t.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");return void n(i[3]).UIManager.updateView(t.stateNode,"RCTRawText",{text:t.memoizedProps});case 3:case 12:return;case 13:return null!==t.memoizedState&&(sa=n(i[4]).unstable_now(),Ml(t.child,!0)),void Vl(t);case 19:return void Vl(t);case 17:return;case 22:case 23:return void Ml(t,null!==t.memoizedState)}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Vl(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new El),n.forEach(function(n){var r=Va.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Wl(e,n){for(Cl=n;null!==Cl;){var t=(n=Cl).deletions;if(null!==t)for(var r=0;ra&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Xl(l/1960))-l)){e.timeoutHandle=jn(Aa.bind(null,e),l);break}Aa(e);break;case 5:Aa(e);break;default:throw Error("Unknown root exit status.")}}return xa(e,n(i[4]).unstable_now()),e.callbackNode===r?Pa.bind(null,e):null}function Ra(e,n){for(n&=~oa,n&=~ua,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==la&&(la=2),o=qr(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Gr(p,a,n));break e;case 1:a=o;var w=p.type,_=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===pa||!pa.has(_)))){p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Kr(p,a,n));break e}}p=p.return}while(null!==p)}Da(t)}catch(e){n=e,ea===t&&null!==t&&(ea=t=t.return);continue}break}}function Ia(){var e=$l.current;return $l.current=Br,null===e?Br:e}function La(e,n){var t=Jl;Jl|=8;var r=Ia();for(Zl===e&&na===n||Na(e,n);;)try{Ua();break}catch(n){za(e,n)}if(_t(),Jl=t,$l.current=r,null!==ea)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Zl=null,na=0,la}function Ua(){for(;null!==ea;)Fa(ea)}function Ma(){for(;null!==ea&&!n(i[4]).unstable_shouldYield();)Fa(ea)}function Fa(e){var n=ql(e.alternate,e,ta);e.memoizedProps=e.pendingProps,null===n?Da(e):ea=n,Gl.current=null}function Da(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Pl(t,n,ta)))return void(ea=t)}else{if(null!==(t=Rl(n)))return t.flags&=8191,void(ea=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(ea=n);ea=n=e}while(null!==n);0===la&&(la=5)}function Aa(e){var n=Ln,t=Kl.transition;try{Kl.transition=0,Ln=1,Qa(e,n)}finally{Kl.transition=t,Ln=n}return null}function Qa(e,t){do{Ha()}while(null!==ga);if(0!=(24&Jl))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(En(e,a),e===Zl&&(ea=Zl=null,na=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ha||(ha=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Ha(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=Kl.transition,Kl.transition=0;var u=Ln;Ln=1;var o=Jl;Jl|=16,Gl.current=null,Il(e,r),Wl(e,r),e.current=r,Yl(r),n(i[4]).unstable_requestPaint(),Jl=o,Ln=u,Kl.transition=a}else e.current=r;if(ha&&(ha=!1,ga=e,ma=l),0===(a=e.pendingLanes)&&(pa=null),0!=(1&a)?e===ba?va++:(va=0,ba=e):va=0,yn(r.stateNode),xa(e,n(i[4]).unstable_now()),da)throw da=!1,e=fa,fa=null,e;return 0!=(4&Jl)?null:(0!=(1&ma)&&0!==e.tag&&Ha(),ft(),null)}function Ha(){if(null!==ga){var e=Un(ma),n=Kl.transition,t=Ln;try{if(Kl.transition=0,Ln=16>e?16:e,null===ga)var r=!1;else{if(e=ga,ga=null,ma=0,0!=(24&Jl))throw Error("Cannot flush passive effects while already rendering.");var l=Jl;for(Jl|=16,Cl=e.current;null!==Cl;){var a=Cl,i=a.child;if(0!=(16&Cl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-sa?Na(e,0):oa|=r),xa(e,t)}function Va(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=kn,0==(130023424&(kn<<=1))&&(kn=4194304))),t=ka(),null!==(e=Ta(e,n))&&(Rn(e,n,t),xa(e,t))}function Wa(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,n,t,r){return new Wa(e,n,t,r)}function qa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xa(e){if("function"==typeof e)return qa(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Qe)return 11;if(e===je)return 14}return 2}function $a(e,n){var t=e.alternate;return null===t?((t=Ya(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ga(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)qa(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ue:return Ka(t.children,l,a,n);case Ve:i=8,l|=4;break;case Me:i=8,l|=8;break;case Fe:return(e=Ya(12,t,n,2|l)).elementType=Fe,e.lanes=a,e;case He:return(e=Ya(13,t,n,l)).elementType=He,e.lanes=a,e;case Oe:return(e=Ya(19,t,n,l)).elementType=Oe,e.lanes=a,e;case We:return Ja(t,l,a,n);case Ye:return(e=Ya(23,t,n,l)).elementType=Ye,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case De:i=10;break e;case Ae:i=9;break e;case Qe:i=11;break e;case je:i=14;break e;case Be:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ya(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ka(e,n,t,r){return(e=Ya(7,e,r,n)).lanes=t,e}function Ja(e,n,t,r){return(e=Ya(22,e,r,n)).elementType=We,e.lanes=t,e}function Za(e,n,t){return(e=Ya(6,e,null,n)).lanes=t,e}function ei(e,n,t){return(n=Ya(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ni(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Pn(0),this.expirationTimes=Pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0)}function ti(e,n,t){var r=3this.eventPool.length&&this.eventPool.push(e)}function R(e){e.getPooled=x,e.eventPool=[],e.release=P}n(i[2])(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:_,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=_,this._dispatchInstances=this._dispatchListeners=null}}),T.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},T.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,R(r),r},R(T);var E=T.extend({touchHistory:function(){return null}});function C(e){return"topTouchStart"===e}function N(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function Q(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function H(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var O,j={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),N(e))n.changedTouches.forEach(Q);else if(C(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(H),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;ei||(a=i),Ne(a,e,l)}}}),v=function(e){return we.get(e._nativeTag)||null},b=_e,y=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},re.injection.injectGlobalResponderHandler({onChange:function(e,t,r){null!==t?n(i[3]).UIManager.setJSResponder(t.stateNode._nativeTag,r):n(i[3]).UIManager.clearJSResponder()}});var ze=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ie=60103,Le=60106,Ue=60107,Me=60108,Fe=60114,De=60109,Ae=60110,Qe=60112,He=60113,Oe=60120,je=60115,Be=60116,Ve=60129,We=60130,Ye=60131,qe=60132;if("function"==typeof Symbol&&Symbol.for){var Xe=Symbol.for;Ie=Xe("react.element"),Le=Xe("react.portal"),Ue=Xe("react.fragment"),Me=Xe("react.strict_mode"),Fe=Xe("react.profiler"),De=Xe("react.provider"),Ae=Xe("react.context"),Qe=Xe("react.forward_ref"),He=Xe("react.suspense"),Oe=Xe("react.suspense_list"),je=Xe("react.memo"),Be=Xe("react.lazy"),Xe("react.scope"),Ve=Xe("react.debug_trace_mode"),We=Xe("react.offscreen"),Ye=Xe("react.legacy_hidden"),qe=Xe("react.cache")}var $e="function"==typeof Symbol&&Symbol.iterator;function Ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$e&&e[$e]||e["@@iterator"])?e:null}function Ke(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ue:return"Fragment";case Le:return"Portal";case Fe:return"Profiler";case Me:return"StrictMode";case He:return"Suspense";case Oe:return"SuspenseList";case qe:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case Ae:return(e.displayName||"Context")+".Consumer";case De:return(e._context.displayName||"Context")+".Provider";case Qe:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case je:return null!==(n=e.displayName||null)?n:Ke(e.type)||"Memo";case Be:n=e._payload,e=e._init;try{return Ke(e(n))}catch(e){}}return null}function Je(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ke(n);case 23:return"LegacyHidden";case 8:return n===Me?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Ze(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(2050&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function en(e){if(Ze(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nn(e){var n=e.alternate;if(!n){if(null===(n=Ze(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return en(l),e;if(a===r)return en(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function tn(e){return null!==(e=nn(e))?rn(e):null}function rn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=rn(e);if(null!==n)return n;e=e.sibling}return null}var ln={},an=null,un=0,on={unsafelyIgnoreFunctions:!0};function sn(e,t){return"object"!=typeof t||null===t||n(i[3]).deepDiffer(e,t,on)}function cn(e,n,t){if(m(n))for(var r=n.length;r--&&0=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Rn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Nn(n)]=t}function En(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0Xn||(e.current=qn[Xn],qn[Xn]=null,Xn--)}function Kn(e,n){qn[++Xn]=e.current,e.current=n}var Jn={},Zn=$n(Jn),et=$n(!1),nt=Jn;function tt(e,n){var t=e.type.contextTypes;if(!t)return Jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function lt(){Gn(et),Gn(Zn)}function at(e,n,t){if(Zn.current!==Jn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Kn(Zn,n),Kn(et,t)}function it(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((Je(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function ut(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,nt=Zn.current,Kn(Zn,e),Kn(et,et.current),!0}function ot(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=it(e,n,nt),r.__reactInternalMemoizedMergedChildContext=e,Gn(et),Gn(Zn),Kn(Zn,e)):Gn(et),Kn(et,t)}var st=null,ct=!1,dt=!1;function ft(){if(!dt&&null!==st){dt=!0;var e=0,t=Ln;try{var r=st;for(Ln=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===Ue&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case Ie:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===Ue){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=Wt(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===Ue?((r=Ka(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ga(a.type,a.key,a.props,null,e.mode,u)).ref=Wt(e,r,a),u.return=e,e=u)}return i(e);case Le:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ei(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(Ge(a))return g(e,r,a,u);Yt(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Za(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((Je(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var Xt=qt(!0),$t=qt(!1),Gt={},Kt=$n(Gt),Jt=$n(Gt),Zt=$n(Gt);function er(e){if(e===Gt)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function nr(e,n){Kn(Zt,n),Kn(Jt,e),Kn(Kt,Gt),Gn(Kt),Kn(Kt,{isInAParentText:!1})}function tr(){Gn(Kt),Gn(Jt),Gn(Zt)}function rr(e){er(Zt.current);var n=er(Kt.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(Kn(Jt,e),Kn(Kt,t))}function lr(e){Jt.current===e&&(Gn(Kt),Gn(Jt))}var ar=$n(0);function ir(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Mn()||Mn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ur=[];function or(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,hr=pr=null,n.updateQueue=null,sr.current=Yr,e=t(r,l)}while(mr)}if(sr.current=Br,n=null!==pr&&null!==pr.next,dr=0,hr=pr=fr=null,gr=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hr?fr.memoizedState=hr=e:hr=hr.next=e,hr}function kr(){if(null===pr){var e=fr.alternate;e=null!==e?e.memoizedState:null}else e=pr.next;var n=null===hr?fr.memoizedState:hr.next;if(null!==n)hr=n,pr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(pr=e).memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},null===hr?fr.memoizedState=hr=e:hr=hr.next=e}return hr}function wr(e,n){return"function"==typeof n?n(e):n}function _r(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=pr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((dr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,fr.lanes|=c,ia|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,ht(r,n.memoizedState)||(Zr=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,fr.lanes|=a,ia|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Tr(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);ht(a,n.memoizedState)||(Zr=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function xr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(n._workInProgressVersionPrimary=r,ur.push(n))),e)return t(n._source);throw ur.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Pr(e,n,t,r){var l=Zl;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=sr.current,o=u.useState(function(){return xr(l,n,t)}),s=o[1],c=o[0];o=hr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=fr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);ht(i,e)||(e=t(n._source),ht(c,e)||(s(e),e=wa(g),l.mutableReadLanes|=e&l.pendingLanes),Cn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=wa(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),ht(p,t)&&ht(h,n)&&ht(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:c}).dispatch=s=jr.bind(null,fr,e),o.queue=e,o.baseQueue=null,c=xr(l,n,t),o.memoizedState=o.baseState=c),c}function Rr(e,n,t){return Pr(kr(),e,n,t)}function Er(e){var n=Sr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:e}).dispatch=jr.bind(null,fr,e),[n.memoizedState,e]}function Cr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=fr.updateQueue)?(n={lastEffect:null},fr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Nr(){return kr().memoizedState}function zr(e,n,t,r){var l=Sr();fr.flags|=e,l.memoizedState=Cr(1|n,t,void 0,void 0===r?null:r)}function Ir(e,n,t,r){var l=kr();r=void 0===r?null:r;var a=void 0;if(null!==pr){var i=pr.memoizedState;if(a=i.destroy,null!==r&&br(r,i.deps))return void(l.memoizedState=Cr(n,t,a,r))}fr.flags|=e,l.memoizedState=Cr(1|n,t,a,r)}function Lr(e,n){return zr(1049600,4,e,n)}function Ur(e,n){return Ir(1024,4,e,n)}function Mr(e,n){return Ir(4,2,e,n)}function Fr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function Dr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Ir(4,2,Fr.bind(null,n,e),t)}function Ar(){}function Qr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Hr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Or(e,n){var t=Ln;Ln=0!==t&&4>t?t:4,e(!0);var r=cr.transition;cr.transition=1;try{e(!1),n()}finally{Ln=t,cr.transition=r}}function jr(e,n,t){var r=ka(),l=wa(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===fr||null!==i&&i===fr)mr=gr=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==Zl&&0!=(1&e.mode)&&0==(8&Jl)){var u=n.interleaved;null===u?(a.next=a,null===Et?Et=[n]:Et.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,ht(s,o))return}catch(e){}a=_a(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Cn(a,l))}}var Br={readContext:Rt,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useOpaqueIdentifier:vr,unstable_isNewReconciler:!1},Vr={readContext:Rt,useCallback:function(e,n){return Sr().memoizedState=[e,void 0===n?null:n],e},useContext:Rt,useEffect:Lr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,zr(4,2,Fr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return zr(4,2,e,n)},useMemo:function(e,n){var t=Sr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Sr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=jr.bind(null,fr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sr().memoizedState=e},useState:Er,useDebugValue:Ar,useDeferredValue:function(e){var n=Er(e),t=n[0],r=n[1];return Lr(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){var e=Er(!1),n=e[0];return e=Or.bind(null,e[1]),Sr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Sr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Pr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},Wr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:_r,useRef:Nr,useState:function(){return _r(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=_r(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[_r(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return _r(wr)[0]},unstable_isNewReconciler:!1},Yr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:Tr,useRef:Nr,useState:function(){return Tr(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=Tr(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[Tr(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return Tr(wr)[0]},unstable_isNewReconciler:!1};function qr(e,n){return{value:e,source:n,stack:vt(n)}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Xr(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var $r="function"==typeof WeakMap?WeakMap:Map;function Gr(e,n,t){(t=It(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){da||(da=!0,fa=r),Xr(e,n)},t}function Kr(e,n,t){(t=It(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return Xr(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===pa?pa=new Set([this]):pa.add(this),Xr(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var Jr=ze.ReactCurrentOwner,Zr=!1;function el(e,n,t,r){n.child=null===e?$t(n,null,t,r):Xt(n,e.child,t,r)}function nl(e,n,t,r,l){t=t.render;var a=n.ref;return Pt(n,l),r=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function tl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||qa(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Ga(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,rl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:gt)(l,r)&&e.ref===n.ref)?_l(e,n,a):(n.flags|=1,(e=$a(i,r)).ref=n.ref,e.return=n,n.child=e)}function rl(e,n,t,r,l,a){if(null!==e&>(e.memoizedProps,r)&&e.ref===n.ref){if(Zr=!1,0==(a&l))return n.lanes=e.lanes,_l(e,n,a);0!=(32768&e.flags)&&(Zr=!0)}return il(e,n,t,r,a)}function ll(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},Kn(ra,ta),ta|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,Kn(ra,ta),ta|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,Kn(ra,ta),ta|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,Kn(ra,ta),ta|=r;return el(e,n,l,t),n.child}function al(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function il(e,n,t,r,l){var a=rt(t)?nt:Zn.current;return a=tt(n,a),Pt(n,l),t=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function ul(e,n,t,r,l){if(rt(t)){var a=!0;ut(n)}else a=!1;if(Pt(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),jt(n,t,r),Vt(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Rt(s):s=tt(n,s=rt(t)?nt:Zn.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Bt(n,i,r,s),Ct=!1;var f=n.memoizedState;i.state=f,Ft(n,r,i,l),o=n.memoizedState,u!==r||f!==o||et.current||Ct?("function"==typeof c&&(Qt(n,t,c,r),o=n.memoizedState),(u=Ct||Ot(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,zt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:bt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Rt(o):o=tt(n,o=rt(t)?nt:Zn.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Bt(n,i,r,o),Ct=!1,f=n.memoizedState,i.state=f,Ft(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||et.current||Ct?("function"==typeof p&&(Qt(n,t,p,r),h=n.memoizedState),(s=Ct||Ot(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return ol(e,n,t,r,a,l)}function ol(e,n,t,r,l,a){al(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&ot(n,t,!1),_l(e,n,a);r=n.stateNode,Jr.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Xt(n,e.child,null,a),n.child=Xt(n,null,u,a)):el(e,n,u,a),n.memoizedState=r.state,l&&ot(n,t,!0),n.child}function sl(e){var n=e.stateNode;n.pendingContext?at(0,n.pendingContext,n.pendingContext!==n.context):n.context&&at(0,n.context,!1),nr(e,n.containerInfo)}var cl,dl,fl,pl,hl={dehydrated:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null}}function ml(e,n,t){var r,l=n.pendingProps,a=ar.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),Kn(ar,1&a),null===e?(e=l.children,a=l.fallback,i?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,e):"number"==typeof l.unstable_expectedLoadTime?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,n.lanes=4194304,e):((t=Ja({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=yl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?gl(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=hl,l):(t=bl(e,n,l.children,t),n.memoizedState=null,t))}function vl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=Ja(n,l,0,null),t=Ka(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function bl(e,n,t,r){var l=e.child;return e=l.sibling,t=$a(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function yl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=$a(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=$a(i,r):(r=Ka(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Sl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),xt(e.return,n)}function kl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function wl(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(el(e,n,r.children,t),0!=(2&(r=ar.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Sl(e,t);else if(19===e.tag)Sl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Kn(ar,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===ir(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),kl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ir(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}kl(n,!0,t,null,a);break;case"together":kl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function _l(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ia|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=$a(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=$a(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Tl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Pl(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xl(t),null;case 1:return rt(t.type)&<(),xl(t),null;case 3:return l=t.stateNode,tr(),Gn(et),Gn(Zn),or(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),dl(e,t),xl(t),null;case 5:lr(t),r=er(Zt.current);var a=t.type;if(null!==e&&null!=t.stateNode)fl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xl(t),null}er(Kt.current),e=Qn(),a=Fn(a);var u=hn(null,ln,l,a.validAttributes);n(i[3]).UIManager.createView(e,a.uiViewClassName,r,u),r=new mn(e,a,t),ke.set(e,t),we.set(e,l),cl(r,t,!1,!1),t.stateNode=r,On(r)&&(t.flags|=4),null!==t.ref&&(t.flags|=256)}return xl(t),null;case 6:if(e&&null!=t.stateNode)pl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=er(Zt.current),!er(Kt.current).isInAParentText)throw Error("Text strings must be rendered within a component.");r=Qn(),n(i[3]).UIManager.createView(r,"RCTRawText",e,{text:l}),ke.set(r,t),t.stateNode=r}return xl(t),null;case 13:return Gn(ar),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ar.current)?0===la&&(la=3):(0!==la&&3!==la||(la=4),null===Zl||0==(268435455&ia)&&0==(268435455&ua)||Ra(Zl,na))),(l||r)&&(t.flags|=4),xl(t),null);case 4:return tr(),dl(e,t),xl(t),null;case 10:return Tt(t.type._context),xl(t),null;case 17:return rt(t.type)&<(),xl(t),null;case 19:if(Gn(ar),null===(a=t.memoizedState))return xl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Tl(a,!1);else{if(0!==la||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ir(e))){for(t.flags|=128,Tl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return Kn(ar,1&ar.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ca&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=ir(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Tl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return xl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ca&&1073741824!==r&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=ar.current,Kn(ar,l?1&e|2:1&e),t):(xl(t),null);case 22:case 23:return Ca(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ta)&&0!=(1&t.mode)||xl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rl(e){switch(e.tag){case 1:rt(e.type)&<();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(tr(),Gn(et),Gn(Zn),or(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return lr(e),null;case 13:return Gn(ar),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return Gn(ar),null;case 4:return tr(),null;case 10:return Tt(e.type._context),null;case 22:case 23:return Ca(),null;case 24:default:return null}}cl=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},dl=function(){},fl=function(e,n,t,r){e.memoizedProps!==r&&(er(Kt.current),n.updateQueue=Dn)&&(n.flags|=4)},pl=function(e,n,t,r){t!==r&&(n.flags|=4)};var El="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Nl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ja(e,n,t)}else t.current=null}var zl=!1;function Il(e,n){for(Cl=n;null!==Cl;)if(n=(e=Cl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,Cl=n;else for(;null!==Cl;){e=Cl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:bt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){ja(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Cl=n;break}Cl=e.return}return t=zl,zl=!1,t}function Ll(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){ja(i,u,e)}}}l=l.next}while(l!==r)}}function Ul(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ml(e,t){for(var r=null,l=e;;){if(5===l.tag){if(null===r){r=l;var a=l.stateNode;if(t){var u=a.viewConfig,o=hn(null,ln,{style:{display:"none"}},u.validAttributes);n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}else{a=l.stateNode,o=l.memoizedProps,u=a.viewConfig,o=hn(null,n(i[2])({},o,{style:[o.style,{display:"none"}]}),o,u.validAttributes),n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}}}else if(6===l.tag){if(null===r)throw Error("Not yet implemented.")}else if((22!==l.tag&&23!==l.tag||null===l.memoizedState||l===e)&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===e)break;for(;null===l.sibling;){if(null===l.return||l.return===e)return;r===l&&(r=null),l=l.return}r===l&&(r=null),l.sibling.return=l.return,l=l.sibling}}function Fl(e,n,t){if(bn&&"function"==typeof bn.onCommitFiberUnmount)try{bn.onCommitFiberUnmount(vn,n)}catch(e){}switch(n.tag){case 0:case 11:case 14:case 15:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var l=r,a=l.destroy;if(l=l.tag,void 0!==a&&0!=(2&l)){l=n;var i=t;try{a()}catch(e){ja(l,i,e)}}r=r.next}while(r!==e)}break;case 1:if(Nl(n,t),"function"==typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(e){ja(n,t,e)}break;case 5:Nl(n,t);break;case 4:jl(e,n,t)}}function Dl(e){var n=e.alternate;null!==n&&(e.alternate=null,Dl(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Al(e){return 5===e.tag||3===e.tag||4===e.tag}function Ql(e){e:{for(var n=e.return;null!==n;){if(Al(n))break e;n=n.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}32&t.flags&&(t.flags&=-33);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||Al(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?Hl(e,t,n):Ol(e,t,n)}function Hl(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){if("number"==typeof r)throw Error("Container does not support insertBefore operation")}else n(i[3]).UIManager.setChildren(r,["number"==typeof e?e:e._nativeTag]);else if(4!==l&&null!==(e=e.child))for(Hl(e,t,r),e=e.sibling;null!==e;)Hl(e,t,r),e=e.sibling}function Ol(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){var a=(l=r._children).indexOf(e);0<=a?(l.splice(a,1),t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[t],[],[],[])):(t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[t],[]))}else t="number"==typeof e?e:e._nativeTag,0<=(a=(l=r._children).indexOf(e))?(l.splice(a,1),l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[l.length-1],[],[],[])):(l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],[t],[l.length-1],[]));else if(4!==l&&null!==(e=e.child))for(Ol(e,t,r),e=e.sibling;null!==e;)Ol(e,t,r),e=e.sibling}function jl(e,t,r){for(var l,a,u=t,o=!1;;){if(!o){o=u.return;e:for(;;){if(null===o)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(l=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:l=l.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===u.tag||6===u.tag){e:for(var s=e,c=u,d=r,f=c;;)if(Fl(s,f,d),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(s=l,Hn(u.stateNode),n(i[3]).UIManager.manageChildren(s,[],[],[],[],[0])):(s=l,Hn(d=u.stateNode),d=(c=s._children).indexOf(d),c.splice(d,1),n(i[3]).UIManager.manageChildren(s._nativeTag,[],[],[],[],[d]))}else if(4===u.tag){if(null!==u.child){l=u.stateNode.containerInfo,a=!0,u.child.return=u,u=u.child;continue}}else if(Fl(e,u,r),null!==u.child){u.child.return=u,u=u.child;continue}if(u===t)break;for(;null===u.sibling;){if(null===u.return||u.return===t)return;4===(u=u.return).tag&&(o=!1)}u.sibling.return=u.return,u=u.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Ll(3,t,t.return);case 1:return;case 5:var r=t.stateNode;if(null!=r){var l=t.memoizedProps;e=null!==e?e.memoizedProps:l;var a=t.updateQueue;t.updateQueue=null,null!==a&&(t=r.viewConfig,we.set(r._nativeTag,l),null!=(l=hn(null,e,l,t.validAttributes))&&n(i[3]).UIManager.updateView(r._nativeTag,t.uiViewClassName,l))}return;case 6:if(null===t.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");return void n(i[3]).UIManager.updateView(t.stateNode,"RCTRawText",{text:t.memoizedProps});case 3:case 12:return;case 13:return null!==t.memoizedState&&(sa=n(i[4]).unstable_now(),Ml(t.child,!0)),void Vl(t);case 19:return void Vl(t);case 17:return;case 22:case 23:return void Ml(t,null!==t.memoizedState)}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Vl(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new El),n.forEach(function(n){var r=Va.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Wl(e,n){for(Cl=n;null!==Cl;){var t=(n=Cl).deletions;if(null!==t)for(var r=0;ra&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Xl(l/1960))-l)){e.timeoutHandle=jn(Aa.bind(null,e),l);break}Aa(e);break;case 5:Aa(e);break;default:throw Error("Unknown root exit status.")}}return xa(e,n(i[4]).unstable_now()),e.callbackNode===r?Pa.bind(null,e):null}function Ra(e,n){for(n&=~oa,n&=~ua,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==la&&(la=2),o=qr(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Gr(p,a,n));break e;case 1:a=o;var w=p.type,_=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===pa||!pa.has(_)))){p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Kr(p,a,n));break e}}p=p.return}while(null!==p)}Da(t)}catch(e){n=e,ea===t&&null!==t&&(ea=t=t.return);continue}break}}function Ia(){var e=$l.current;return $l.current=Br,null===e?Br:e}function La(e,n){var t=Jl;Jl|=8;var r=Ia();for(Zl===e&&na===n||Na(e,n);;)try{Ua();break}catch(n){za(e,n)}if(_t(),Jl=t,$l.current=r,null!==ea)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Zl=null,na=0,la}function Ua(){for(;null!==ea;)Fa(ea)}function Ma(){for(;null!==ea&&!n(i[4]).unstable_shouldYield();)Fa(ea)}function Fa(e){var n=ql(e.alternate,e,ta);e.memoizedProps=e.pendingProps,null===n?Da(e):ea=n,Gl.current=null}function Da(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Pl(t,n,ta)))return void(ea=t)}else{if(null!==(t=Rl(n)))return t.flags&=8191,void(ea=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(ea=n);ea=n=e}while(null!==n);0===la&&(la=5)}function Aa(e){var n=Ln,t=Kl.transition;try{Kl.transition=0,Ln=1,Qa(e,n)}finally{Kl.transition=t,Ln=n}return null}function Qa(e,t){do{Ha()}while(null!==ga);if(0!=(24&Jl))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(En(e,a),e===Zl&&(ea=Zl=null,na=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ha||(ha=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Ha(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=Kl.transition,Kl.transition=0;var u=Ln;Ln=1;var o=Jl;Jl|=16,Gl.current=null,Il(e,r),Wl(e,r),e.current=r,Yl(r),n(i[4]).unstable_requestPaint(),Jl=o,Ln=u,Kl.transition=a}else e.current=r;if(ha&&(ha=!1,ga=e,ma=l),0===(a=e.pendingLanes)&&(pa=null),0!=(1&a)?e===ba?va++:(va=0,ba=e):va=0,yn(r.stateNode),xa(e,n(i[4]).unstable_now()),da)throw da=!1,e=fa,fa=null,e;return 0!=(4&Jl)?null:(0!=(1&ma)&&0!==e.tag&&Ha(),ft(),null)}function Ha(){if(null!==ga){var e=Un(ma),n=Kl.transition,t=Ln;try{if(Kl.transition=0,Ln=16>e?16:e,null===ga)var r=!1;else{if(e=ga,ga=null,ma=0,0!=(24&Jl))throw Error("Cannot flush passive effects while already rendering.");var l=Jl;for(Jl|=16,Cl=e.current;null!==Cl;){var a=Cl,i=a.child;if(0!=(16&Cl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-sa?Na(e,0):oa|=r),xa(e,t)}function Va(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=kn,0==(130023424&(kn<<=1))&&(kn=4194304))),t=ka(),null!==(e=Ta(e,n))&&(Rn(e,n,t),xa(e,t))}function Wa(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,n,t,r){return new Wa(e,n,t,r)}function qa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xa(e){if("function"==typeof e)return qa(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Qe)return 11;if(e===je)return 14}return 2}function $a(e,n){var t=e.alternate;return null===t?((t=Ya(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ga(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)qa(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ue:return Ka(t.children,l,a,n);case Ve:i=8,l|=4;break;case Me:i=8,l|=8;break;case Fe:return(e=Ya(12,t,n,2|l)).elementType=Fe,e.lanes=a,e;case He:return(e=Ya(13,t,n,l)).elementType=He,e.lanes=a,e;case Oe:return(e=Ya(19,t,n,l)).elementType=Oe,e.lanes=a,e;case We:return Ja(t,l,a,n);case Ye:return(e=Ya(23,t,n,l)).elementType=Ye,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case De:i=10;break e;case Ae:i=9;break e;case Qe:i=11;break e;case je:i=14;break e;case Be:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ya(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ka(e,n,t,r){return(e=Ya(7,e,r,n)).lanes=t,e}function Ja(e,n,t,r){return(e=Ya(22,e,r,n)).elementType=We,e.lanes=t,e}function Za(e,n,t){return(e=Ya(6,e,null,n)).lanes=t,e}function ei(e,n,t){return(n=Ya(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ni(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Pn(0),this.expirationTimes=Pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0)}function ti(e,n,t){var r=3=0;--c){var u=this.tryEntries[c],f=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n;try{n=r(d[0]).hasNativeConstructor(t().mark(function n(){return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},n)}),'GeneratorFunction')}catch(t){n=!1}n||r(d[1]).polyfillGlobal('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[2])})},80,[81,74,82]); __d(function(g,r,i,a,m,e,d){function t(t){return'function'==typeof t&&t.toString().indexOf('[native code]')>-1}m.exports={isNativeFunction:t,hasNativeConstructor:function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)}}},81,[]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},82,[83]); -__d(function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function s(t,n,o,i){var c=n&&n.prototype instanceof b?n:b,u=Object.create(c.prototype),h=new R(i||[]);return u._invoke=F(t,o,h),u}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var y="suspendedStart",v="suspendedYield",w="executing",L="completed",x={};function b(){}function E(){}function _(){}var j={};l(j,u,function(){return this});var O=Object.getPrototypeOf,k=O&&O(O(A([])));k&&k!==o&&i.call(k,u)&&(j=k);var G=_.prototype=b.prototype=Object.create(j);function N(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function T(t,n){function o(c,u,h,f){var l=p(t[c],t,u);if("throw"!==l.type){var s=l.arg,y=s.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then(function(t){o("next",t,h,f)},function(t){o("throw",t,h,f)}):n.resolve(y).then(function(t){s.value=t,h(s)},function(t){return o("throw",t,h,f)})}f(l.arg)}var c;this._invoke=function(t,i){function u(){return new n(function(n,c){o(t,i,n,c)})}return c=c?c.then(u,u):u()}}function F(t,n,o){var i=y;return function(c,u){if(i===w)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return Y()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=P(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===y)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=w;var l=p(t,n,o);if("normal"===l.type){if(i=o.done?L:v,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function P(t,o){var i=t.iterator[o.method];if(i===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,P(t,o),"throw"===o.method))return x;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var c=p(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,x;var u=c.arg;return u?u.done?(o[t.resultName]=u.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):u:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:A(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},83,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var l,n,t=!0===(null==(l=g.HermesInternal)?void 0:null==l.hasPromise?void 0:l.hasPromise())&&!0===(null==(n=g.HermesInternal)?void 0:null==n.useEngineQueue?void 0:n.useEngineQueue()),u=r(d[0]).isNativeFunction(Promise)||t;if(!g.RN$Bridgeless){var o=function(l){r(d[1]).polyfillGlobal(l,function(){return r(d[2])[l]})};o('setTimeout'),o('clearTimeout'),o('setInterval'),o('clearInterval'),o('requestAnimationFrame'),o('cancelAnimationFrame'),o('requestIdleCallback'),o('cancelIdleCallback')}u?(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[3]).setImmediate}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[3]).clearImmediate})):g.RN$Bridgeless||(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[2]).queueReactNativeMicrotask}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[2]).clearReactNativeMicrotask})),t?r(d[1]).polyfillGlobal('queueMicrotask',function(){var l;return null==(l=g.HermesInternal)?void 0:l.enqueueJob}):r(d[1]).polyfillGlobal('queueMicrotask',function(){return r(d[4]).default})},84,[81,74,85,87,88]); -__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=16.666666666666668,n=[],i=[],l=[],o=[],c=[],u={},f=1,s=null,v=!1;function h(){var e=l.indexOf(null);return-1===e&&(e=l.length),e}function T(e,t){var o=f++,c=h();return l[c]=o,n[c]=e,i[c]=t,o}function k(e,o,c){e>f&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=l.indexOf(e);if(-1!==u){var v=i[u],h=n[u];if(h&&v){'setInterval'!==v&&p(u);try{'setTimeout'===v||'setInterval'===v||'queueReactNativeMicrotask'===v?h():'requestAnimationFrame'===v?h(g.performance.now()):'requestIdleCallback'===v?h({timeRemaining:function(){return Math.max(0,t-(g.performance.now()-o))},didTimeout:!!c}):console.error('Tried to call a callback with invalid type: '+v)}catch(e){s?s.push(e):s=[e]}}else console.error('No callback found for timerID '+e)}}function w(){if(0===o.length)return!1;var e=o;o=[];for(var t=0;t0}function p(e){l[e]=null,n[e]=null,i[e]=null}function N(e){if(null!=e){var t=l.indexOf(e);if(-1!==t){var n=i[t];p(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&M(e)}}}var b,I={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(c.splice(e,1),k(i,g.performance.now(),!0)),delete u[i],0===c.length&&R(!1)},n);u[i]=l}return i},cancelIdleCallback:function(e){N(e);var t=c.indexOf(e);-1!==t&&c.splice(t,1);var n=u[e];n&&(I.clearTimeout(n),delete u[e]),0===c.length&&R(!1)},clearTimeout:function(e){N(e)},clearInterval:function(e){N(e)},clearReactNativeMicrotask:function(e){N(e);var t=o.indexOf(e);-1!==t&&o.splice(t,1)},cancelAnimationFrame:function(e){N(e)},callTimers:function(e){r(d[2])(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),s=null;for(var t=0;t1)for(var i=1;i0){var n=c;c=[];for(var i=0;i1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?E._interceptor&&E._interceptor.loadingFailed(e,t):E._interceptor&&E._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e&&e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders||{};return Object.keys(e).map(function(t){return t+': '+e[t]}).join('\r\n')}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(t){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(r(d[13]).addListener('didSendNetworkData',function(t){return s.__didUploadProgress.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkResponse',function(t){return s.__didReceiveResponse.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkData',function(t){return s.__didReceiveData.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkIncrementalData',function(t){return s.__didReceiveIncrementalData.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkDataProgress',function(t){return s.__didReceiveDataProgress.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didCompleteNetworkResponse',function(t){return s.__didCompleteResponse.apply(s,(0,e.default)(t))}));var o='text';'arraybuffer'===this._responseType&&(o='base64'),'blob'===this._responseType&&(o='blob');var h;h='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(h),s._performanceLogger.startTimespan(s._perfKey),r(d[11])(s._method,'XMLHttpRequest method needs to be defined (%s).',h),r(d[11])(s._url,'XMLHttpRequest URL needs to be defined (%s).',h),r(d[13]).sendRequest(s._method,s._trackingName,s._url,s._headers,t,o,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&r(d[13]).abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,s){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,t.default)((0,u.default)(E.prototype),"addEventListener",this).call(this,e,s)}}],[{key:"setInterceptor",value:function(e){E._interceptor=e}}]),E})(r(d[9]).apply(void 0,(0,e.default)(b)));N.UNSENT=l,N.OPENED=_,N.HEADERS_RECEIVED=f,N.LOADING=y,N.DONE=v,N._interceptor=null,m.exports=N},90,[3,42,91,8,7,9,11,14,93,97,98,26,100,101]); -__d(function(g,r,i,a,m,e,d){function t(o,s,p){return"undefined"!=typeof Reflect&&Reflect.get?(m.exports=t=Reflect.get,m.exports.default=m.exports,m.exports.__esModule=!0):(m.exports=t=function(t,o,s){var p=r(d[0])(t,o);if(p){var u=Object.getOwnPropertyDescriptor(p,o);return u.get?u.get.call(s):u.value}},m.exports.default=m.exports,m.exports.__esModule=!0),t(o,s,p||o)}m.exports=t,m.exports.default=m.exports,m.exports.__esModule=!0},91,[92]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=r(d[0])(t)););return t},m.exports.default=m.exports,m.exports.__esModule=!0},92,[14]); -__d(function(g,_r,i,a,m,e,d){var t=_r(d[0])(_r(d[1])),l=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5]));var u=(function(){function u(){(0,l.default)(this,u)}return(0,r.default)(u,null,[{key:"createFromParts",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.');var r='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)}),f=t.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof _r(d[6])?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),c=f.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(f,r),u.createFromOptions({blobId:r,offset:0,size:c,type:l?l.type:'',lastModified:l?l.lastModified:Date.now()})}},{key:"createFromOptions",value:function(l){return _r(d[7]).register(l.blobId),(0,t.default)(Object.create(_r(d[6]).prototype),{data:null==l.__collector?(0,t.default)({},l,{__collector:(r=l.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(r))}):l});var r}},{key:"release",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),_r(d[7]).unregister(t),_r(d[7]).has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),u})();u.isAvailable=!!o.default,m.exports=u},93,[3,4,7,8,94,26,95,96]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if("default"!==f&&Object.prototype.hasOwnProperty.call(n,f)){var s=c?Object.getOwnPropertyDescriptor(n,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=n[f]}l.default=n,u&&u.set(n,l);return l})(r(d[0])).get('BlobModule'),o=null,u=null;null!=n&&(u={getConstants:function(){return null==o&&(o=n.getConstants()),o},addNetworkingHandler:function(){n.addNetworkingHandler()},addWebSocketHandler:function(t){n.addWebSocketHandler(t)},removeWebSocketHandler:function(t){n.removeWebSocketHandler(t)},sendOverSocket:function(t,o){n.sendOverSocket(t,o)},createFromParts:function(t,o){n.createFromParts(t,o)},release:function(t){n.release(t)}});var l=u;e.default=l},94,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;r(d[0])(this,t);var o=r(d[1]);this.data=o.createFromParts(n,s).data}return r(d[2])(t,[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,n){var s=r(d[1]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[1]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),t})();m.exports=t},95,[7,93,8]); -__d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},96,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=s,n&&(this._pointExtras[t]=n))}},{key:"removeExtra",value:function(t){var s=this._extras[t];return delete this._extras[t],s}},{key:"setExtra",value:function(t,s){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=s)}},{key:"startTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n},u[t]=r(d[4]).beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var o=this._timespans[t];o&&null!=o.startTime&&null==o.endTime&&(o.endExtras=n,o.endTime=s,o.totalTime=o.endTime-(o.startTime||0),null!=u[t]&&(r(d[4]).endAsyncEvent(t,u[t]),delete u[t]))}}}]),t})()},99,[3,4,7,8,39]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=i(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,c=i(t),A=c[0],C=c[1],y=new o(f(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=0,f=h-u;if?f:i+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function f(t,n,o){return 3*(n+o)/4-o}function A(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},100,[]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),s=r(d[0])(r(d[9])),v=r(d[0])(r(d[10]));function h(){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}}function p(t){var e=[];for(var u in t)e.push([u,t[u]]);return e}var y=1;var R=(function(l){(0,n.default)(D,l);var R,k,q=(R=D,k=h(),function(){var t,e=(0,o.default)(R);if(k){var u=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return(0,f.default)(this,t)});function D(){return(0,e.default)(this,D),q.call(this,'ios'!==v.default.OS?null:c.default)}return(0,u.default)(D,[{key:"sendRequest",value:function(e,u,n,f,o,l,v,h,R,k){var q=(0,s.default)(o);q&&q.formData&&(q.formData=q.formData.map(function(e){return(0,t.default)({},e,{headers:p(e.headers)})}));var D=y++;c.default.sendRequest(e,n,D,p(f),(0,t.default)({},q,{trackingName:u}),l,v,h,k),R(D)}},{key:"abortRequest",value:function(t){c.default.abortRequest(t)}},{key:"clearCookies",value:function(t){c.default.clearCookies(t)}}]),D})(l.default);m.exports=new R},101,[3,4,7,8,9,11,14,102,103,104,27]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=(function(){function s(n){(0,t.default)(this,s),'ios'===l.default.OS&&(0,o.default)(null!=n,'`new NativeEventEmitter()` requires a non-null argument.');var u=!!n&&'function'==typeof n.addListener,v=!!n&&'function'==typeof n.removeListeners;n&&u&&v?this._nativeModule=n:null!=n&&(u||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}return(0,n.default)(s,[{key:"addListener",value:function(t,n,l){var o,s=this;null==(o=this._nativeModule)||o.addListener(t);var v=u.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"removeListener",value:function(t,n){var l;null==(l=this._nativeModule)||l.removeListeners(1),u.default.removeListener(t,n)}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),o=1;o-1};function s(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function l(t){var e=new FileReader,o=y(e);return e.readAsArrayBuffer(t),o}function p(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:''});return t.type='error',t};var A=[301,302,303,307,308];T.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError('Invalid status code');return new T(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(n,i){return new Promise(function(s,f){var c=new _(n,i);if(c.signal&&c.signal.aborted)return f(new t.DOMException('Aborted','AbortError'));var y=new XMLHttpRequest;function l(){y.abort()}y.onload=function(){var t,e,o={status:y.status,statusText:y.statusText,headers:(t=y.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}}),e)};o.url='responseURL'in y?y.responseURL:o.headers.get('X-Request-URL');var n='response'in y?y.response:y.responseText;setTimeout(function(){s(new T(n,o))},0)},y.onerror=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.ontimeout=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.onabort=function(){setTimeout(function(){f(new t.DOMException('Aborted','AbortError'))},0)},y.open(c.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(c.url),!0),'include'===c.credentials?y.withCredentials=!0:'omit'===c.credentials&&(y.withCredentials=!1),'responseType'in y&&(o.blob?y.responseType='blob':o.arrayBuffer&&c.headers.get('Content-Type')&&-1!==c.headers.get('Content-Type').indexOf('application/octet-stream')&&(y.responseType='arraybuffer')),!i||'object'!=typeof i.headers||i.headers instanceof u?c.headers.forEach(function(t,e){y.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){y.setRequestHeader(t,h(i.headers[t]))}),c.signal&&(c.signal.addEventListener('abort',l),y.onreadystatechange=function(){4===y.readyState&&c.signal.removeEventListener('abort',l)}),y.send(void 0===c._bodyInit?null:c._bodyInit)})}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=u,e.Request=_,e.Response=T),t.Headers=u,t.Request=_,t.Response=T,t.fetch=B,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})},108,[]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),b=r(d[0])(r(d[12])),p=r(d[0])(r(d[13])),v=r(d[0])(r(d[14])),_=r(d[0])(r(d[15])),E=r(d[0])(r(d[16])),k=["headers"];function S(){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(e){return!1}}var I=0,N=1,O=2,w=3,C=0,L=(function(_){(0,s.default)(R,_);var L,T,A=(L=R,T=S(),function(){var e,t=(0,u.default)(L);if(T){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function R(n,s,o){var u;(0,t.default)(this,R),(u=A.call(this)).CONNECTING=I,u.OPEN=N,u.CLOSING=O,u.CLOSED=w,u.readyState=I,u.url=n,'string'==typeof s&&(s=[s]);var c=o||{},l=c.headers,h=void 0===l?{}:l,p=(0,e.default)(c,k);return p&&'string'==typeof p.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),h.origin=p.origin,delete p.origin),Object.keys(p).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(p).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(s)||(s=null),u._eventEmitter=new f.default('ios'!==y.default.OS?null:b.default),u._socketId=C++,u._registerEvents(),b.default.connect(n,s,{headers:h},u._socketId),u}return(0,n.default)(R,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,E.default)(l.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?l.default.addWebSocketHandler(this._socketId):l.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof c.default)return(0,E.default)(l.default.isAvailable,'Native module BlobModule is required for blob support'),void l.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');b.default.sendBinary((0,h.default)(e),this._socketId)}else b.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');b.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var n='number'==typeof e?e:1e3,s='string'==typeof t?t:'';b.default.close(n,s,this._socketId),l.default.isAvailable&&'blob'===this._binaryType&&l.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var n=t.data;switch(t.type){case'binary':n=v.default.toByteArray(t.data).buffer;break;case'blob':n=l.default.createFromOptions(t.data)}e.dispatchEvent(new p.default('message',{data:n}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new p.default('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('error',{message:t.message})),e.dispatchEvent(new p.default('close',{message:t.message})),e._unregisterEvents(),e.close())})]}}]),R})(_.default.apply(void 0,['close','error','message','open']));L.CONNECTING=I,L.OPEN=N,L.CLOSING=O,L.CLOSED=w,m.exports=L},109,[3,5,7,8,9,11,14,95,93,102,106,27,110,111,100,97,26]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('WebSocketModule');e.default=n},110,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(function t(s,n){r(d[1])(this,t),this.type=s.toString(),r(d[2])(this,n)});m.exports=t},111,[8,7,4]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(o,e);var n,u,c=(n=o,u=t(),function(){var t,e=r(d[0])(n);if(u){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t,e,n){var u;return r(d[3])(this,o),r(d[4])(null!=t&&null!=e,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),(u=c.call(this,t,n)).data.name=e,u}return r(d[5])(o,[{key:"name",get:function(){return r(d[4])(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}]),o})(r(d[6]));m.exports=e},112,[14,11,9,7,26,8,95]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),u=r(d[0])(r(d[6]));function l(){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}}var c=0,f=1,h=2,y=(function(y){(0,n.default)(b,y);var _,p,v=(_=b,p=l(),function(){var t,e=(0,s.default)(_);if(p){var n=(0,s.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function b(){var e;return(0,t.default)(this,b),(e=v.call(this)).EMPTY=c,e.LOADING=f,e.DONE=h,e._aborted=!1,e._subscriptions=[],e._reset(),e}return(0,e.default)(b,[{key:"_reset",value:function(){this._readyState=c,this._error=null,this._result=null}},{key:"_clearSubscriptions",value:function(){this._subscriptions.forEach(function(t){return t.remove()}),this._subscriptions=[]}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent({type:'readystatechange'}),t===h&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(){throw new Error('FileReader.readAsArrayBuffer is not implemented')}},{key:"readAsDataURL",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");u.default.readAsDataURL(t.data).then(function(t){e._aborted||(e._result=t,e._setReadyState(h))},function(t){e._aborted||(e._error=t,e._setReadyState(h))})}},{key:"readAsText",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");u.default.readAsText(t.data,n).then(function(t){e._aborted||(e._result=t,e._setReadyState(h))},function(t){e._aborted||(e._error=t,e._setReadyState(h))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==c&&this._readyState!==h&&(this._reset(),this._setReadyState(h)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),b})(r(d[7]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));y.EMPTY=c,y.LOADING=f,y.DONE=h,m.exports=y},113,[3,7,8,9,11,14,114,97]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('FileReaderModule');e.default=n},114,[29]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=null;if(s.default&&'string'==typeof s.default.getConstants().BLOB_URI_SCHEME){var h=s.default.getConstants();u=h.BLOB_URI_SCHEME+':','string'==typeof h.BLOB_URI_HOST&&(u+="//"+h.BLOB_URI_HOST+"/")}t=Symbol.iterator;var f=(function(){function s(t){var o=this;(0,n.default)(this,s),this._searchParams=[],'object'==typeof t&&Object.keys(t).forEach(function(n){return o.append(n,t[n])})}return(0,o.default)(s,[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:t,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce(function(n,o,s){return n+o.join('=')+(s===t?'':'&')},'')}}]),s})();function l(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URLSearchParams=f;var c=(function(){function t(o,s){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(o))this._url=o,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError("Invalid base URL: "+u)}else'object'==typeof s&&(u=s.toString());u.endsWith('/')&&(u=u.slice(0,u.length-1)),o.startsWith('/')||(o="/"+o),u.endsWith(o)&&(o=''),this._url=""+u+o}}return(0,o.default)(t,[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._url.indexOf('?')>-1?'&':'?';return this._url+t+this._searchParamsInstance.toString()}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return""+u+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),t})();e.URL=c},115,[3,7,8,94]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}Object.defineProperty(_e,'__esModule',{value:!0});var e=(function(e){r(d[2])(c,e);var n,l,u=(n=c,l=t(),function(){var t,e=r(d[0])(n);if(l){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(){throw r(d[3])(this,c),u.call(this),new TypeError("AbortSignal cannot be constructed directly")}return r(d[4])(c,[{key:"aborted",get:function(){var t=o.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),c})(r(d[5]).EventTarget);r(d[5]).defineEventAttribute(e.prototype,"abort");var o=new WeakMap;Object.defineProperties(e.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var n=(function(){function t(){var n;r(d[3])(this,t),l.set(this,(n=Object.create(e.prototype),r(d[5]).EventTarget.call(n),o.set(n,!1),n))}return r(d[4])(t,[{key:"signal",get:function(){return u(this)}},{key:"abort",value:function(){var t;t=u(this),!1===o.get(t)&&(o.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),t})(),l=new WeakMap;function u(t){var e=l.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(n.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(n.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=n,_e.AbortSignal=e,_e.default=n,m.exports=n,m.exports.AbortController=m.exports.default=n,m.exports.AbortSignal=e},116,[14,11,9,7,8,97]); -__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},117,[118]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(function(){function l(){(0,t.default)(this,l)}return(0,n.default)(l,null,[{key:"alert",value:function(t,n,s,u){if('ios'===o.default.OS)l.prompt(t,n,s,'default');else if('android'===o.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:t||'',message:n||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=s?s.slice(0,3):[{text:"OK"}],b=p.pop(),y=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),y&&(v.buttonNegative=y.text||''),b&&(v.buttonPositive=b.text||"OK");c.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?y.onPress&&y.onPress():n===f.buttonPositive&&b.onPress&&b.onPress():t===f.dismissed&&u&&u.onDismiss&&u.onDismiss()})}}},{key:"prompt",value:function(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0;if('ios'===o.default.OS){var v,p,b=[],y=[];'function'==typeof l?b=[l]:Array.isArray(l)&&l.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?v=String(n):'destructive'===t.style&&(p=String(n)),t.text||n<(l||[]).length-1){var o={};o[n]=t.text||'',y.push(o)}}),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:y,type:u||void 0,defaultValue:c,cancelButtonKey:v,destructiveButtonKey:p,keyboardType:f},function(t,n){var o=b[t];o&&o(n)})}}}]),l})();m.exports=l},118,[3,7,8,27,119,120]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));function n(){}m.exports={alertWithArgs:function(f,o){t.default&&t.default.showAlert(f,n,o||n)}}},119,[3,120]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DialogManagerAndroid');e.default=n},120,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t&&(g.navigator=t={}),r(d[0]).polyfillObjectProperty(t,'product',function(){return'ReactNative'})},121,[74]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;if(g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6]).default}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},122,[37,39,85,123,125,127,20,128,98,129,131]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t},123,[3,124]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('JSCHeapCapture');e.default=n},124,[29]); -__d(function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o},125,[126]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=l?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=n[p]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).get('JSCSamplingProfiler');e.default=n},126,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,l={logIfNoNativeHook:function(o){for(var t=arguments.length,f=new Array(t>1?t-1:0),c=1;c1?f-1:0),v=1;v1?t-1:0),f=1;f>>8)>>>0,t|=0)}}},143,[144,146]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n&&null!=(0,r(d[2]).normalizeColorObject)(n))return n;if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}},144,[3,145,146]); -__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,l,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?r+6*(l-r)*n:n<.5?l:n<.6666666666666666?r+(l-r)*(.6666666666666666-n)*6:r}function l(l,n,t){var o=t<.5?t*(1+n):t+n-t*n,u=2*t-o,g=r(u,o,l+.3333333333333333),s=r(u,o,l),h=r(u,o,l-.3333333333333333);return Math.round(255*g)<<24|Math.round(255*s)<<16|Math.round(255*h)<<8}var n,t='[-+]?\\d*\\.?\\d+',o="[-+]?\\d*\\.?\\d+%";function u(){for(var r=arguments.length,l=new Array(r),n=0;n255?255:l}function s(r){return(parseFloat(r)%360+360)%360/360}function h(r){var l=parseFloat(r);return l<0?0:l>1?255:Math.round(255*l)}function c(r){var l=parseFloat(r);return l<0?0:l>100?1:l/100}var p={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};m.exports=function(r){var b,y=(void 0===n&&(n={rgb:new RegExp('rgb'+u(t,t,t)),rgba:new RegExp('rgba'+u(t,t,t,t)),hsl:new RegExp('hsl'+u(t,o,o)),hsla:new RegExp('hsla'+u(t,o,o,t)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),n);return'number'==typeof r?r>>>0===r&&r>=0&&r<=4294967295?r:null:'string'!=typeof r?null:(b=y.hex6.exec(r))?parseInt(b[1]+'ff',16)>>>0:p.hasOwnProperty(r)?p[r]:(b=y.rgb.exec(r))?(g(b[1])<<24|g(b[2])<<16|g(b[3])<<8|255)>>>0:(b=y.rgba.exec(r))?(g(b[1])<<24|g(b[2])<<16|g(b[3])<<8|h(b[4]))>>>0:(b=y.hex3.exec(r))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+'ff',16)>>>0:(b=y.hex8.exec(r))?parseInt(b[1],16)>>>0:(b=y.hex4.exec(r))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=y.hsl.exec(r))?(255|l(s(b[1]),c(b[2]),c(b[3])))>>>0:(b=y.hsla.exec(r))?(l(s(b[1]),c(b[2]),c(b[3]))|h(b[4]))>>>0:null}},145,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=void 0;e.PlatformColor=function(){for(var o=arguments.length,n=new Array(o),t=0;t.49999*l?[0,2*Math.atan2(u,m)*C,90]:M<-.49999*l?[0,-2*Math.atan2(u,m)*C,-90]:[t.roundTo3Places(Math.atan2(2*u*m-2*s*c,1-2*v-2*h)*C),t.roundTo3Places(Math.atan2(2*s*m-2*u*c,1-2*f-2*h)*C),t.roundTo3Places(Math.asin(2*u*s+2*c*m)*C)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(n){r(d[1])(16===n.length,'Matrix decomposition needs a list of 3d matrix values, received %s',n);var a=[],o=[],i=[],u=[],s=[];if(n[15]){for(var c=[],m=[],v=0;v<4;v++){c.push([]);for(var f=0;f<4;f++){var h=n[4*v+f]/n[15];c[v].push(h),m.push(3===f?0:h)}}if(m[15]=1,t.determinant(m)){if(0!==c[0][3]||0!==c[1][3]||0!==c[2][3]){var M=[c[0][3],c[1][3],c[2][3],c[3][3]],l=t.inverse(m),C=t.transpose(l);a=t.multiplyVectorByMatrix(M,C)}else a[0]=a[1]=a[2]=0,a[3]=1;for(var p=0;p<3;p++)s[p]=c[3][p];for(var x=[],T=0;T<3;T++)x[T]=[c[T][0],c[T][1],c[T][2]];i[0]=t.v3Length(x[0]),x[0]=t.v3Normalize(x[0],i[0]),u[0]=t.v3Dot(x[0],x[1]),x[1]=t.v3Combine(x[1],x[0],1,-u[0]),i[1]=t.v3Length(x[1]),x[1]=t.v3Normalize(x[1],i[1]),u[0]/=i[1],u[1]=t.v3Dot(x[0],x[2]),x[2]=t.v3Combine(x[2],x[0],1,-u[1]),u[2]=t.v3Dot(x[1],x[2]),x[2]=t.v3Combine(x[2],x[1],1,-u[2]),i[2]=t.v3Length(x[2]),x[2]=t.v3Normalize(x[2],i[2]),u[1]/=i[2],u[2]/=i[2];var y,S=t.v3Cross(x[1],x[2]);if(t.v3Dot(x[0],S)<0)for(var P=0;P<3;P++)i[P]*=-1,x[P][0]*=-1,x[P][1]*=-1,x[P][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+x[0][0]-x[1][1]-x[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-x[0][0]+x[1][1]-x[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-x[0][0]-x[1][1]+x[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+x[0][0]+x[1][1]+x[2][2],0)),x[2][1]>x[1][2]&&(o[0]=-o[0]),x[0][2]>x[2][0]&&(o[1]=-o[1]),x[1][0]>x[0][1]&&(o[2]=-o[2]),{rotationDegrees:y=o[0]<.001&&o[0]>=0&&o[1]<.001&&o[1]>=0?[0,0,t.roundTo3Places(180*Math.atan2(x[0][1],x[0][0])/Math.PI)]:t.quaternionToDegreesXYZ(o,c,x),perspective:a,quaternion:o,scale:i,skew:u,translation:s,rotate:y[2],rotateX:y[0],rotateY:y[1],scaleX:i[0],scaleY:i[1],translateX:s[0],translateY:s[1]}}}}};_m.exports=t},151,[31,26]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.get=p,e.getWithFallback_DEPRECATED=function(n,o){if(null==t){if(v(n))return p(n,o)}else if(null!=t(n))return p(n,o);var u=function(t){return null};return u.displayName="Fallback("+n+")",u},e.setRuntimeConfigProvider=function(n){(0,f.default)(null==t,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),t=n},e.unstable_hasComponent=function(t){var n=s.get(t);if(null==n){if(!g.__nativeComponentRegistry__hasComponent)throw"unstable_hasComponent('"+t+"'): Global function is not registered";n=g.__nativeComponentRegistry__hasComponent(t),s.set(t,n)}return n},e.unstable_hasStaticViewConfig=function(n){var o;return!(null!=(o=null==t?void 0:t(n))?o:{native:!0}).native};var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),f=r(d[0])(r(d[5]));!(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=l?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,o&&o.set(t,u)})(r(d[6]));function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var s=new Map;function p(n,f){return o.default.register(n,function(){var o,c=null!=(o=null==t?void 0:t(n))?o:{native:!0,verify:!1},s=c.native,p=c.verify,v=s?(0,u.default)(n):(0,r(d[7]).createViewConfig)(f());return p&&(s?(0,l.default)(v,(0,r(d[7]).createViewConfig)(f())):(0,l.default)((0,u.default)(n),v)),v}),n}function v(o){return(0,f.default)(null==t,'Unexpected invocation!'),null!=n.default.getViewManagerConfig(o)}},152,[3,50,136,153,166,26,15,167]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=!1;function t(n){var t=r(d[0]).getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=s(n,r(d[0]).getDefaultEventTypes()):(n.bubblingEventTypes=s(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=s(n.directEventTypes,t.genericDirectEventTypes))}function s(n,t){if(!t)return n;if(!n)return t;for(var o in t)if(t.hasOwnProperty(o)){var u=t[o];if(n.hasOwnProperty(o)){var c=n[o];'object'==typeof u&&'object'==typeof c&&(u=s(c,u))}n[o]=u}return n}function o(n){switch(n){case'CATransform3D':return r(d[4]);case'CGPoint':return r(d[5]);case'CGSize':return r(d[6]);case'UIEdgeInsets':return r(d[7]);case'Point':return r(d[5])}return null}function u(n){switch(n){case'CGColor':case'UIColor':return r(d[8]);case'CGColorArray':case'UIColorArray':return r(d[9]);case'CGImage':case'UIImage':case'RCTImageSource':return r(d[10]);case'Color':return r(d[8]);case'ColorArray':return r(d[9])}return null}m.exports=function(s){var c=r(d[0]).getViewManagerConfig(s);r(d[1])(null!=c&&null!=c.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',s);for(var l=c.baseModuleName,v=c.bubblingEventTypes,b=c.directEventTypes,p=c.NativeProps;l;){var f=r(d[0]).getViewManagerConfig(l);f?(v=r(d[2])({},f.bubblingEventTypes,v),b=r(d[2])({},f.directEventTypes,b),p=r(d[2])({},f.NativeProps,p),l=f.baseModuleName):l=null}var y={};for(var C in p){var E=p[C],T=o(E),w=u(E);y[C]=null==T&&null==w||{diff:T,process:w}}return y.style=r(d[3]),r(d[2])(c,{uiViewClassName:s,validAttributes:y,bubblingEventTypes:v,directEventTypes:b}),n||(t(c),n=!0),c}},153,[50,26,4,154,149,155,148,147,143,156,157]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l={process:t.default},s={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:!0,borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:l,shadowOffset:{diff:n.default},shadowOpacity:!0,shadowRadius:!0,decomposedMatrix:!0,rotation:!0,scaleX:!0,scaleY:!0,transform:{process:o.default},transformMatrix:!0,translateX:!0,translateY:!0,backfaceVisibility:!0,backgroundColor:l,borderBottomColor:l,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:l,borderEndColor:l,borderLeftColor:l,borderRadius:!0,borderRightColor:l,borderStartColor:l,borderStyle:!0,borderTopColor:l,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,color:l,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:l,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:l,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,writingDirection:!0,overlayColor:l,resizeMode:!0,tintColor:l};m.exports=s},154,[3,143,150,148]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={x:void 0,y:void 0};m.exports=function(n,o){return(n=n||t)!==(o=o||t)&&(n.x!==o.x||n.y!==o.y)}},155,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}},156,[3,143]); -__d(function(g,r,i,a,m,e,d){'use strict';var t,n,s,u;function o(){if(u)return u;var t=g.nativeExtensions&&g.nativeExtensions.SourceCode;return t||(t=r(d[0]).default),u=t.getConstants().scriptURL}function f(){if(void 0===n){var t=o(),s=t&&t.match(/^https?:\/\/.*?\//);n=s?s[0]:null}return n}function c(t){if(t){if(t.startsWith('assets://'))return null;(t=t.substring(0,t.lastIndexOf('/')+1)).includes('://')||(t='file://'+t)}return t}m.exports=function(n){if('object'==typeof n)return n;var u=r(d[1]).getAssetByID(n);if(!u)return null;var l=new(r(d[2]))(f(),(void 0===s&&(s=c(o())),s),u);return t?t(l):l.defaultAsset()},m.exports.pickScale=r(d[3]).pickScale,m.exports.setCustomSourceTransformer=function(n){t=n}},157,[158,159,160,161]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('SourceCode'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},158,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}},159,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t){var s=r(d[0]).pickScale(t.scales,r(d[1]).get()),n=1===s?'':'@'+s+'x';return r(d[2]).getBasePath(t)+'/'+t.name+n+'.'+t.type}var s=(function(){function s(t,n,u){r(d[3])(this,s),this.serverUrl=t,this.jsbundleUrl=n,this.asset=u}return r(d[4])(s,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!(!this.jsbundleUrl||!this.jsbundleUrl.startsWith('file://'))}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.isLoadedFromFileSystem()?this.drawableFolderInBundle():this.resourceIdentifierWithoutScale()}},{key:"assetServerURL",value:function(){return r(d[5])(!!this.serverUrl,'need server to load from'),this.fromSource(this.serverUrl+t(this.asset)+"?platform=android&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(t(this.asset))}},{key:"scaledAssetURLNearBundle",value:function(){var s=this.jsbundleUrl||'file://';return this.fromSource(s+t(this.asset).replace(/\.\.\//g,'_'))}},{key:"resourceIdentifierWithoutScale",value:function(){return r(d[5])(!0,'resource identifiers work on Android'),this.fromSource(r(d[2]).getAndroidResourceIdentifier(this.asset))}},{key:"drawableFolderInBundle",value:function(){var t,s,n=this.jsbundleUrl||'file://';return this.fromSource(n+(t=this.asset,s=r(d[0]).pickScale(t.scales,r(d[1]).get()),r(d[2]).getAndroidResourceFolderName(t,s)+'/'+r(d[2]).getAndroidResourceIdentifier(t)+'.'+t.type))}},{key:"fromSource",value:function(t){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:t,scale:r(d[0]).pickScale(this.asset.scales,r(d[1]).get())}}}]),s})();s.pickScale=r(d[0]).pickScale,m.exports=s},160,[161,162,165,7,8,26]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlCacheBreaker=function(){if(null==n)return'';return n},e.pickScale=function(n,u){null==u&&(u=t.default.get());for(var l=0;l=u)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(t){n=t};var n,t=r(d[0])(r(d[1]))},161,[3,162]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"get",value:function(){return r(d[2]).get('window').scale}},{key:"getFontScale",value:function(){return r(d[2]).get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(n){return Math.round(n*t.get())}},{key:"roundToNearestPixel",value:function(n){var u=t.get();return Math.round(n*u)/u}},{key:"startDetecting",value:function(){}}]),t})();m.exports=t},162,[7,8,163]); -__d(function(g,r,i,a,m,e,d){var n,t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=new o.default,v=!1,h=(function(){function o(){(0,t.default)(this,o)}return(0,s.default)(o,null,[{key:"get",value:function(t){return(0,u.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var s=t.screen,o=t.window,l=t.windowPhysicalPixels;l&&(o={width:l.width/l.scale,height:l.height/l.scale,scale:l.scale,fontScale:l.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=o),n={window:o,screen:s},v?f.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){return(0,u.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),f.addListener(n,t)}},{key:"removeEventListener",value:function(n,t){(0,u.default)('change'===n,'Trying to remove listener for unknown event: "%s"',n),f.removeListener(n,t)}}]),o})(),w=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;w||(l.default.addListener('didUpdateDimensions',function(n){h.set(n)}),w=c.default.getConstants().Dimensions),h.set(w),m.exports=h},163,[3,7,8,21,20,164,26]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('DeviceInfo'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},164,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},165,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o=0,u=['validAttributes','bubblingEventTypes','directEventTypes'];o0){var l,v=null!=(l=n.uiViewClassName)?l:t.uiViewClassName;console.error("'"+v+"' has a view config that does not match native. '"+s+"' is missing: "+c.join(', '))}}},e.getConfigWithoutViewProps=function(n,f){if(!n[f])return{};return Object.keys(n[f]).filter(function(n){return!t.default[f][n]}).reduce(function(t,o){return t[o]=n[f][o],t},{})},e.lefthandObjectDiff=f,e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var t=r(d[0])(r(d[1])),n=['transform','hitSlop'];function f(t,o){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)n.includes(c)||(o?t.hasOwnProperty(c)&&s(t[c],o[c],c):u[c]={});return u}},166,[3,141]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function u(n,u){var l;return null==n||null==u?null!=(l=null!=n?n:u)?l:{}:(0,t.default)({},n,u)}},167,[3,4,141]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var y=o.length;if(u.length!==y)return!0;for(var p=0;p=w},r=function(){},_e.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0x(l,t))void 0!==s&&0>x(s,l)?(e[r]=s,e[u]=t,r=u):(e[r]=l,e[o]=t,r=o);else{if(!(void 0!==s&&0>x(s,t)))break e;e[r]=s,e[u]=t,r=u}}}return n}return null}function x(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var P=[],F=[],I=1,M=null,C=3,j=!1,A=!1,L=!1;function q(e){for(var n=T(F);null!==n;){if(null===n.callback)g(F);else{if(!(n.startTime<=e))break;g(F),n.sortIndex=n.expirationTime,k(P,n)}n=T(F)}}function R(t){if(L=!1,q(t),!A)if(null!==T(P))A=!0,e(Y);else{var r=T(F);null!==r&&n(R,r.startTime-t)}}function Y(e,r){A=!1,L&&(L=!1,t()),j=!0;var a=C;try{for(q(r),M=T(P);null!==M&&(!(M.expirationTime>r)||e&&!_e.unstable_shouldYield());){var o=M.callback;if("function"==typeof o){M.callback=null,C=M.priorityLevel;var l=o(M.expirationTime<=r);r=_e.unstable_now(),"function"==typeof l?M.callback=l:M===T(P)&&g(P),q(r)}else g(P);M=T(P)}if(null!==M)var u=!0;else{var s=T(F);null!==s&&n(R,s.startTime-r),u=!1}return u}finally{M=null,C=a,j=!1}}var E=r;_e.unstable_IdlePriority=5,_e.unstable_ImmediatePriority=1,_e.unstable_LowPriority=4,_e.unstable_NormalPriority=3,_e.unstable_Profiling=null,_e.unstable_UserBlockingPriority=2,_e.unstable_cancelCallback=function(e){e.callback=null},_e.unstable_continueExecution=function(){A||j||(A=!0,e(Y))},_e.unstable_getCurrentPriorityLevel=function(){return C},_e.unstable_getFirstCallbackNode=function(){return T(P)},_e.unstable_next=function(e){switch(C){case 1:case 2:case 3:var n=3;break;default:n=C}var t=C;C=n;try{return e()}finally{C=t}},_e.unstable_pauseExecution=function(){},_e.unstable_requestPaint=E,_e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=C;C=e;try{return n()}finally{C=t}},_e.unstable_scheduleCallback=function(r,a,o){var l=_e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0l?(r.sortIndex=o,k(F,r),null===T(P)&&r===T(F)&&(L?t():L=!0,n(R,o-l))):(r.sortIndex=u,k(P,r),A||j||(A=!0,e(Y))),r},_e.unstable_wrapCallback=function(e){var n=C;return function(){var t=C;C=n;try{return e.apply(this,arguments)}finally{C=t}}}},173,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=u?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=t[f]}l.default=t,o&&o.set(t,l);return l})(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),s=["animating","color","hidesWhenStopped","onLayout","size","style"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var p='android'===l.default.OS?r(d[7]):r(d[8]).default,y=o.forwardRef(function(c,y){var v,O,w=c.animating,b=void 0===w||w,S=c.color,j=void 0===S?'ios'===l.default.OS?"#999999":null:S,z=c.hidesWhenStopped,W=void 0===z||z,k=c.onLayout,L=c.size,P=void 0===L?'small':L,M=c.style,_=(0,n.default)(c,s);switch(P){case'small':v=h.sizeSmall,O='small';break;case'large':v=h.sizeLarge,O='large';break;default:v={height:P,width:P}}var E=(0,t.default)({animating:b,color:j,hidesWhenStopped:W},_,{ref:y,style:v,size:O});return o.createElement(f.default,{onLayout:k,style:u.default.compose(h.container,M)},'android'===l.default.OS?o.createElement(p,(0,t.default)({},E,{styleAttr:'Normal',indeterminate:!0})):o.createElement(p,E))});y.displayName='ActivityIndicator';var h=u.default.create({container:{alignItems:'center',justifyContent:'center'},sizeSmall:{width:20,height:20},sizeLarge:{width:36,height:36}});m.exports=y},174,[3,4,5,15,27,175,176,179,184]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).roundToNearestPixel(.4);0===t&&(t=1/r(d[0]).get());var o={position:'absolute',left:0,right:0,top:0,bottom:0};m.exports={hairlineWidth:t,absoluteFill:o,absoluteFillObject:o,compose:function(t,o){return null!=t&&null!=o?[t,o]:null!=t?t:o},flatten:r(d[1]),setStyleAttributePreprocessor:function(t,o){var l;if(!0===r(d[2])[t])l={process:o};else{if('object'!=typeof r(d[2])[t])return void console.error(t+" is not a valid style attribute");l=r(d[3])({},r(d[2])[t],{process:o})}r(d[2])[t]=l},create:function(t){return t}}},175,[162,170,154,4]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u);return u})(r(d[4]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var l=u.forwardRef(function(o,l){return u.createElement(f.default.Provider,{value:!1},u.createElement(n.default,(0,t.default)({},o,{ref:l})))});l.displayName='View',m.exports=l},176,[3,4,177,178,15]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=l(r(d[0])),n=r(d[1])(r(d[2])),o=r(d[1])(r(d[3])),u=r(d[1])(r(d[4]));l(r(d[5]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}function l(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=f(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var s=l?Object.getOwnPropertyDescriptor(t,p):null;s&&(s.get||s.set)?Object.defineProperty(u,p,s):u[p]=t[p]}return u.default=t,o&&o.set(t,u),u}var p=t.get('RCTView',function(){return'android'===n.default.OS?u.default:{uiViewClassName:'RCTView'}}),s=(0,o.default)({supportedCommands:['hotspotUpdate','setPressed']});e.Commands=s;var c=p;e.default=c},177,[152,3,27,139,142,15]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createContext(!1);m.exports=t},178,[15]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),l=["styleAttr","indeterminate","animating"],o=r(d[4]),u=o.forwardRef(function(u,v){var s=u.styleAttr,c=void 0===s?'Normal':s,y=u.indeterminate,A=void 0===y||y,_=u.animating,p=void 0===_||_,w=(0,n.default)(u,l);return o.createElement(f.default,(0,t.default)({styleAttr:c,indeterminate:A,animating:p},w,{ref:v}))});m.exports=u},179,[3,4,5,180,15]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('AndroidProgressBar',{interfaceOnly:!0});e.default=t},180,[3,181]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]));var t=function(t,p){var l=p&&null!=p.paperComponentName?p.paperComponentName:t;if(null!=p&&null!=p.paperComponentNameDeprecated)if(o.default.getViewManagerConfig(t))l=t;else{var u;if(null==p.paperComponentNameDeprecated||!o.default.getViewManagerConfig(p.paperComponentNameDeprecated))throw new Error("Failed to find native component for either "+t+" or "+(null!=(u=p.paperComponentNameDeprecated)?u:'(unknown)'));l=p.paperComponentNameDeprecated}return(0,n.default)(l)};e.default=t},181,[3,182,50]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){return r(d[0])(n,function(){return r(d[1])(n)})}},182,[183,153]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).ReactNativeViewConfigRegistry.register;m.exports=function(n,s){return t(n,s)}},183,[134]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('ActivityIndicatorView',{paperComponentName:'RCTActivityIndicatorView'});e.default=t},184,[3,181]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=x(e);if(o&&o.has(t))return o.get(t);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(s,c,l):s[c]=t[c]}s.default=t,o&&o.set(t,s);return s})(r(d[7])),u=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),p=r(d[0])(r(d[10])),b=r(d[0])(r(d[11])),y=r(d[0])(r(d[12])),h=r(d[0])(r(d[13])),v=r(d[0])(r(d[14]));function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(x=function(t){return t?o:e})(t)}function F(){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}}var D=(function(f){(0,s.default)(w,f);var x,D,S=(x=w,D=F(),function(){var t,e=(0,c.default)(x);if(D){var o=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function w(){return(0,e.default)(this,w),S.apply(this,arguments)}return(0,o.default)(w,[{key:"render",value:function(){var e,o,s=this.props,n=s.accessibilityLabel,c=s.color,f=s.onPress,x=s.touchSoundDisabled,F=s.title,D=s.hasTVPreferredFocus,S=s.nextFocusDown,w=s.nextFocusForward,P=s.nextFocusLeft,R=s.nextFocusRight,A=s.nextFocusUp,k=s.testID,j=s.accessible,C=s.accessibilityActions,L=s.onAccessibilityAction,M=[O.button],W=[O.text];c&&('ios'===u.default.OS?W.push({color:c}):M.push({backgroundColor:c}));var _=null!=this.props.disabled?this.props.disabled:null==(e=this.props.accessibilityState)?void 0:e.disabled,B=_!==(null==(o=this.props.accessibilityState)?void 0:o.disabled)?(0,t.default)({},this.props.accessibilityState,{disabled:_}):this.props.accessibilityState;_&&(M.push(O.buttonDisabled),W.push(O.textDisabled)),(0,v.default)('string'==typeof F,'The title prop of a Button must be a string');var E='android'===u.default.OS?F.toUpperCase():F,T='android'===u.default.OS?b.default:y.default;return l.createElement(T,{accessible:j,accessibilityActions:C,onAccessibilityAction:L,accessibilityLabel:n,accessibilityRole:"button",accessibilityState:B,hasTVPreferredFocus:D,nextFocusDown:S,nextFocusForward:w,nextFocusLeft:P,nextFocusRight:R,nextFocusUp:A,testID:k,disabled:_,onPress:f,touchSoundDisabled:x},l.createElement(h.default,{style:M},l.createElement(p.default,{style:W,disabled:_},E)))}}]),w})(l.Component),O=f.default.create({button:u.default.select({ios:{},android:{elevation:4,backgroundColor:'#2196F3',borderRadius:2}}),text:(0,t.default)({textAlign:'center',margin:8},u.default.select({ios:{color:'#007AFF',fontSize:18},android:{color:'white',fontWeight:'500'}})),buttonDisabled:u.default.select({ios:{},android:{elevation:0,backgroundColor:'#dfdfdf'}}),textDisabled:u.default.select({ios:{color:'#cdcdcd'},android:{color:'#a1a1a1'}})});m.exports=D},185,[3,4,7,8,9,11,14,15,27,175,186,211,212,176,26]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(v(r(d[5])),r(d[0])(r(d[6]))),u=(r(d[0])(r(d[7])),r(d[0])(r(d[8]))),p=r(d[0])(r(d[9])),f=v(r(d[10])),c=(r(d[0])(r(d[11])),["accessible","allowFontScaling","ellipsizeMode","onLongPress","onPress","onPressIn","onPressOut","onResponderGrant","onResponderMove","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","onStartShouldSetResponder","pressRetentionOffset","suppressHighlighting"]);function R(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(R=function(n){return n?t:o})(n)}function v(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=R(o);if(t&&t.has(n))return t.get(n);var s={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var p=l?Object.getOwnPropertyDescriptor(n,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=n[u]}return s.default=n,t&&t.set(n,s),s}var P=f.forwardRef(function(s,R){var v=s.accessible,P=s.allowFontScaling,b=s.ellipsizeMode,O=s.onLongPress,T=s.onPress,h=s.onPressIn,y=s.onPressOut,M=s.onResponderGrant,w=s.onResponderMove,E=s.onResponderRelease,C=s.onResponderTerminate,L=s.onResponderTerminationRequest,j=s.onStartShouldSetResponder,x=s.pressRetentionOffset,D=s.suppressHighlighting,_=(0,t.default)(s,c),q=(0,f.useState)(!1),G=(0,o.default)(q,2),H=G[0],k=G[1],z=(null!=T||null!=O||null!=j)&&!0!==_.disabled,F=S(z),I=(0,f.useMemo)(function(){return F?{disabled:!z,pressRectOffset:x,onLongPress:O,onPress:T,onPressIn:function(n){k(!D),null==h||h(n)},onPressOut:function(n){k(!1),null==y||y(n)},onResponderTerminationRequest_DEPRECATED:L,onStartShouldSetResponder_DEPRECATED:j}:null},[F,z,x,O,T,h,y,L,j,D]),N=(0,l.default)(I),W=(0,f.useMemo)(function(){return null==N?null:{onResponderGrant:function(n){N.onResponderGrant(n),null!=M&&M(n)},onResponderMove:function(n){N.onResponderMove(n),null!=w&&w(n)},onResponderRelease:function(n){N.onResponderRelease(n),null!=E&&E(n)},onResponderTerminate:function(n){N.onResponderTerminate(n),null!=C&&C(n)},onResponderTerminationRequest:N.onResponderTerminationRequest,onStartShouldSetResponder:N.onStartShouldSetResponder}},[N,M,w,E,C]),A=null==_.selectionColor?null:(0,u.default)(_.selectionColor),V=_.style,B=_.numberOfLines;return null==B||B>=0||(console.error("'numberOfLines' in must be a non-negative number, received: "+B+". The value will be set to 0."),B=0),(0,f.useContext)(p.default)?f.createElement(r(d[12]).NativeVirtualText,(0,n.default)({},_,W,{isHighlighted:H,numberOfLines:B,selectionColor:A,style:V,ref:R})):f.createElement(p.default.Provider,{value:!0},f.createElement(r(d[12]).NativeText,(0,n.default)({},_,W,{accessible:!1!==v,allowFontScaling:!1!==P,ellipsizeMode:null!=b?b:'tail',isHighlighted:H,numberOfLines:B,selectionColor:A,style:V,ref:R})))});function S(n){var t=(0,f.useState)(n),s=(0,o.default)(t,2),l=s[0],u=s[1];return!l&&n&&u(n),l}P.displayName='Text',P.propTypes=s.default,m.exports=P},186,[3,4,31,5,187,201,202,175,143,178,15,26,209]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={ellipsizeMode:r(d[2]).oneOf(['head','middle','tail','clip']),numberOfLines:r(d[2]).number,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onLayout:r(d[2]).func,onPress:r(d[2]).func,onLongPress:r(d[2]).func,pressRetentionOffset:r(d[3]),selectable:r(d[2]).bool,selectionColor:r(d[4]),suppressHighlighting:r(d[2]).bool,style:o,testID:r(d[2]).string,nativeID:r(d[2]).string,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,accessible:r(d[2]).bool,adjustsFontSizeToFit:r(d[2]).bool,minimumFontScale:r(d[2]).number,disabled:r(d[2]).bool,dataDetectorType:r(d[2]).oneOf(['phoneNumber','link','email','none','all'])}},187,[188,190,193,200,197]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t=r(d[0])(n);return function(n,o,c,u){var f=n;n[o]&&((f={})[o]=r(d[1])(n[o]));for(var v=arguments.length,p=new Array(v>4?v-4:0),s=4;s5?v-5:0),j=5;j4?s-4:0),p=4;p3?f-3:0),p=3;p0?t._pressDelayTimeout=setTimeout(function(){t._receiveSignal('DELAY',E)},n):t._receiveSignal('DELAY',E);var R=I(t._config.delayLongPress,10,500-n);t._longPressDelayTimeout=setTimeout(function(){t._handleLongPress(E)},R+n)},onResponderMove:function(E){var n=t._config.onPressMove;null!=n&&n(E);var R=t._responderRegion;if(null!=R){var _=A(E);if(null==_)return t._cancelLongPressDelayTimeout(),void t._receiveSignal('LEAVE_PRESS_RECT',E);if(null!=t._touchActivatePosition){var o=t._touchActivatePosition.pageX-_.pageX,l=t._touchActivatePosition.pageY-_.pageY;Math.hypot(o,l)>10&&t._cancelLongPressDelayTimeout()}t._isTouchWithinResponderRegion(_,R)?t._receiveSignal('ENTER_PRESS_RECT',E):(t._cancelLongPressDelayTimeout(),t._receiveSignal('LEAVE_PRESS_RECT',E))}},onResponderRelease:function(E){t._receiveSignal('RESPONDER_RELEASE',E)},onResponderTerminate:function(E){t._receiveSignal('RESPONDER_TERMINATED',E)},onResponderTerminationRequest:function(){var E=t._config.cancelable;if(null==E){var n=t._config.onResponderTerminationRequest_DEPRECATED;return null==n||n()}return E},onClick:function(E){var n=t._config,R=n.onPress,_=n.disabled;null!=R&&!0!==_&&R(E)}},_='ios'===l.default.OS||'android'===l.default.OS?null:{onMouseEnter:function(E){if((0,r(d[10]).isHoverEnabled)()){t._isHovered=!0,t._cancelHoverOutDelayTimeout();var n=t._config.onHoverIn;if(null!=n){var R=I(t._config.delayHoverIn);R>0?(E.persist(),t._hoverInDelayTimeout=setTimeout(function(){n(E)},R)):n(E)}}},onMouseLeave:function(E){if(t._isHovered){t._isHovered=!1,t._cancelHoverInDelayTimeout();var n=t._config.onHoverOut;if(null!=n){var R=I(t._config.delayHoverOut);R>0?(E.persist(),t._hoverInDelayTimeout=setTimeout(function(){n(E)},R)):n(E)}}}};return(0,E.default)({},n,R,_)}},{key:"_receiveSignal",value:function(E,t){var n,_=this._touchState,l=null==(n=S[_])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,R.default)(null!=l&&'ERROR'!==l,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,_,'number'==typeof this._responderID?this._responderID:'<>'),_!==l&&(null!=t.nativeEvent.timestamp&&o.default.emitEvent(function(){return{signal:E,touchDelayMs:Date.now()-t.nativeEvent.timestamp}}),this._performTransitionSideEffects(_,l,E,t),this._touchState=l))}},{key:"_performTransitionSideEffects",value:function(E,t,n,R){c(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var o='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,u=!P(E)&&P(t);if((o||u)&&this._measureResponderRegion(),O(E)&&'LONG_PRESS_DETECTED'===n){var s=this._config.onLongPress;null!=s&&s(R)}var S=T(E),D=T(t);if(!S&&D?this._activate(R):S&&!D&&this._deactivate(R),O(E)&&'RESPONDER_RELEASE'===n){D||S||(this._activate(R),this._deactivate(R));var N=this._config,h=N.onLongPress,f=N.onPress,v=N.android_disableSound;if(null!=f)null!=h&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E&&this._shouldLongPressCancelPress()||('android'===l.default.OS&&!0!==v&&_.default.playTouchSound(),f(R))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=A(E),R=n.pageX,_=n.pageY;this._touchActivatePosition={pageX:R,pageY:_},this._touchActivateTime=Date.now(),null!=t&&t(E)}},{key:"_deactivate",value:function(E){var t=this._config.onPressOut;if(null!=t){var n,R=I(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,I(this._config.delayPressOut));o>0?(E.persist(),this._pressOutDelayTimeout=setTimeout(function(){t(E)},o)):t(E)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?u.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,l=(0,r(d[11]).normalizeRect)(this._config.hitSlop),u=(0,r(d[11]).normalizeRect)(this._config.pressRectOffset),s=t.bottom,S=t.left,T=t.right,P=t.top;return null!=l&&(null!=l.bottom&&(s+=l.bottom),null!=l.left&&(S-=l.left),null!=l.right&&(T+=l.right),null!=l.top&&(P-=l.top)),s+=null!=(n=null==u?void 0:u.bottom)?n:D,S-=null!=(R=null==u?void 0:u.left)?R:N,T+=null!=(_=null==u?void 0:u.right)?_:h,P-=null!=(o=null==u?void 0:u.top)?o:f,E.pageX>S&&E.pageXP&&E.pageY1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=E?E:n)}e.default=v;var A=function(E){var t=E.nativeEvent,n=t.changedTouches,R=t.touches;return null!=R&&R.length>0?R[0]:null!=n&&n.length>0?n[0]:E.nativeEvent}},203,[3,4,7,8,26,204,206,27,50,15,207,208]); -__d(function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},204,[3,205]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('SoundManager');e.default=n},205,[29]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=new((function(){function s(){(0,t.default)(this,s),this._listeners=[]}return(0,n.default)(s,[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach(function(t){return t(n)})}}}]),s})());e.default=s},206,[3,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return n};var n=!1;if('web'===r(d[0])(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var t=0,o=function(){t=Date.now(),n&&(n=!1)};document.addEventListener('touchstart',o,!0),document.addEventListener('touchmove',o,!0),document.addEventListener('mousemove',function(){n||Date.now()-t<1e3||(n=!0)},!0)}},207,[3,27]); -__d(function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}},208,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=(0,o.default)('RCTText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0}),directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'}});e.NativeText=u;var s=g.RN$Bridgeless||n.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,maxFontSizeMultiplier:!0}),uiViewClassName:'RCTVirtualText'}}):u;e.NativeVirtualText=s},209,[3,4,210,50,183]); -__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0])(r(d[1])),t={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessibilityHint:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,onAccessibilityEscape:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:r(d[0])(r(d[2])).default},c={UIView:t,RCTView:(0,s.default)({},t,{removeClippedSubviews:!0})};m.exports=c},210,[3,4,154]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),u=r(d[0])(r(d[9])),f=r(d[0])(r(d[10])),h=(r(d[0])(r(d[11])),r(d[0])(r(d[12]))),b=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=P(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=n?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}o.default=e,s&&s.set(e,o);return o})(r(d[13])),y=r(d[0])(r(d[14])),v=["onBlur","onFocus"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(P=function(e){return e?s:t})(e)}function F(){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(e){return!1}}var O=(function(h){(0,n.default)(R,h);var y,P,O=(y=R,P=F(),function(){var e,t=(0,c.default)(y);if(P){var s=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function R(){var e;(0,s.default)(this,R);for(var t=arguments.length,o=new Array(t),n=0;n=23};var S='android'===f.default.OS?function(e,t){return t&&O.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};O.displayName='TouchableNativeFeedback',m.exports=O},211,[3,4,5,7,8,9,11,14,203,56,27,176,143,15,26,177]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),u=r(d[0])(r(d[9])),f=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),h=r(d[0])(r(d[12])),b=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=P(e);if(s&&s.has(t))return s.get(t);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,s&&s.set(t,o);return o})(r(d[13])),v=["onBlur","onFocus"];function P(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(P=function(t){return t?s:e})(t)}function O(){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}}var F=(function(P){(0,n.default)(w,P);var F,_,R=(F=w,_=O(),function(){var t,e=(0,l.default)(F);if(_){var s=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function w(){var t;(0,s.default)(this,w);for(var e=arguments.length,o=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return t},event:r(d[5]).event,createAnimatedComponent:r(d[6]),attachNativeEvent:r(d[7]).attachNativeEvent,forkEvent:r(d[5]).forkEvent,unforkEvent:r(d[5]).unforkEvent,Event:r(d[7]).AnimatedEvent}},214,[4,215,224,219,221,225,241,240]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}function e(t){var e=new Set;!(function t(n){'function'==typeof n.update?e.add(n):n.__getChildren().forEach(t)})(t),e.forEach(function(t){return t.update()})}var n=(function(n){r(d[3])(_,n);var s,u,o=(s=_,u=t(),function(){var t,e=r(d[0])(s);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t){var e;if(r(d[4])(this,_),e=o.call(this),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');return e._startingValue=e._value=t,e._offset=0,e._animation=null,e}return r(d[5])(_,[{key:"__detach",value:function(){var t=this;this.__isNative&&r(d[2]).API.getValue(this.__getNativeTag(),function(e){t._value=e}),this.stopAnimation(),r(d[6])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){var e,n,s=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),n=function(){r(d[2]).API.setAnimatedNodeValue(s.__getNativeTag(),t)},r(d[2]).API.setWaitingForIdentifier(e),n(),r(d[2]).API.unsetWaitingForIdentifier(e))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&r(d[2]).API.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&r(d[2]).API.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&r(d[2]).API.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&r(d[2]).API.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"_onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"animate",value:function(t,e){var n=this,s=null;t.__isInteraction&&(s=r(d[8]).createInteractionHandle());var u=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){n._updateValue(t,!0)},function(t){n._animation=null,null!==s&&r(d[8]).clearInteractionHandle(s),e&&e(t)},u,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t}},{key:"_updateValue",value:function(t,n){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._value=t,n&&e(this),r(d[6])(r(d[0])(_.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),_})(r(d[9]));m.exports=n},215,[14,11,216,9,7,8,91,219,222,220]); -__d(function(g,r,i,a,m,e,d){var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),f='ios'===l.default.OS&&g.RN$Bridgeless?o.default:n.default,c=1,v=1,p=new Set,N=!1,b=[],A={getValue:function(t,n){(0,s.default)(f,'Native animated module is not available'),A.queueOperation(function(){f.getValue(t,n)})},setWaitingForIdentifier:function(t){p.add(t),N=!0},unsetWaitingForIdentifier:function(t){p.delete(t),0===p.size&&(N=!1,A.disableQueue())},disableQueue:function(){(0,s.default)(f,'Native animated module is not available'),'android'===l.default.OS&&f.startOperationBatch();for(var t=0,n=b.length;tn){if('identity'===u)return c;'clamp'===u&&(c=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a,c)}function r(t){var e=_r(d[3])(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var i=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function o(t){var e=t.outputRange;_r(d[2])(e.length>=2,'Bad output range'),u(e=e.map(r));var a=e[0].match(i).map(function(){return[]});e.forEach(function(t){t.match(i).forEach(function(t,e){a[e].push(+t)})});var o,c=e[0].match(i).map(function(e,r){return n(_r(d[4])({},t,{outputRange:a[r]}))}),l='string'==typeof(o=e[0])&&o.startsWith('rgb');return function(t){var n=0;return e[0].replace(i,function(){var e=+c[n++](t);return l&&(e=n<4?Math.round(e):Math.round(1e3*e)/1e3),String(e)})}}function u(t){for(var e=t[0].replace(i,''),n=1;n=t);++n);return n-1}function l(t){_r(d[2])(t.length>=2,'inputRange must have at least 2 elements');for(var e=1;e=t[e-1],'inputRange must be monotonically non-decreasing '+t)}function p(t,e){_r(d[2])(e.length>=2,t+' must have at least 2 elements'),_r(d[2])(2!==e.length||e[0]!==-1/0||e[1]!==1/0,t+'cannot be ]-infinity;+infinity[ '+e)}var f=(function(e){_r(d[5])(o,e);var a,r,i=(a=o,r=t(),function(){var t,e=_r(d[0])(a);if(r){var n=_r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _r(d[1])(this,t)});function o(t,e){var a;return _r(d[6])(this,o),(a=i.call(this))._parent=t,a._config=e,a._interpolation=n(e),a}return _r(d[7])(o,[{key:"__makeNative",value:function(){this._parent.__makeNative(),_r(d[8])(_r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return _r(d[2])('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new o(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),_r(d[8])(_r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(_r(d[9]).transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),o})(_r(d[10]));f.__createInterpolation=n,m.exports=f},219,[14,11,26,144,4,9,7,8,91,216,220]); -__d(function(g,r,_i,a,m,_e,d){'use strict';function t(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=e(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function e(t,e){if(t){if("string"==typeof t)return i(t,e);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)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0?setTimeout(h,0):setImmediate(h))}function h(){l=0;var f=o.size;c.forEach(function(n){return o.add(n)}),s.forEach(function(n){return o.delete(n)});var h=o.size;if(0!==f&&0===h?n.emit(t.Events.interactionComplete):0===f&&0!==h&&n.emit(t.Events.interactionStart),0===h)for(;u.hasTasksToProcess();)if(u.processNext(),p>0&&r(d[4]).getEventLoopRunningTime()>=p){v();break}c.clear(),s.clear()}m.exports=t},222,[3,21,26,223,37]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=(function(){function e(t){var u=t.onMoreTasks;r(d[0])(this,e),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return r(d[1])(e,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return r(d[2])({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(r(d[3])('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then(function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}).done()}}]),e})();m.exports=e},223,[7,8,4,26]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=1,n=(function(n){r(d[2])(o,n);var s,u,f=(s=o,u=t(),function(){var t,e=r(d[0])(s);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t){var e;r(d[3])(this,o),e=f.call(this);var n=t||{x:0,y:0};return'number'==typeof n.x&&'number'==typeof n.y?(e.x=new(r(d[4]))(n.x),e.y=new(r(d[4]))(n.y)):(r(d[5])(n.x instanceof r(d[4])&&n.y instanceof r(d[4]),"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),e.x=n.x,e.y=n.y),e._listeners={},e}return r(d[6])(o,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var n=this,s=String(e++),u=function(e){e.value;t(n.__getValue())};return this._listeners[s]={x:this.x.addListener(u),y:this.y.addListener(u)},s}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),o})(r(d[7]));m.exports=n},224,[14,11,9,7,215,26,8,220]); -__d(function(g,r,_i,_a,m,e,d){'use strict';var n=function(n,t){return n&&t.onComplete?function(){t.onComplete&&t.onComplete.apply(t,arguments),n&&n.apply(void 0,arguments)}:n||t.onComplete},t=function(n,t,i){if(n instanceof r(d[6])){var o=r(d[7])({},t),u=r(d[7])({},t);for(var s in t){var c=t[s],f=c.x,v=c.y;void 0!==f&&void 0!==v&&(o[s]=f,u[s]=v)}var p=i(n.x,o),l=i(n.y,u);return a([p,l],{stopTogether:!1})}return null},i=function i(o,a){var u=function(t,i,o){o=n(o,i);var a=t,u=i;a.stopTracking(),i.toValue instanceof r(d[8])?a.track(new(r(d[9]))(a,i.toValue,r(d[11]),u,o)):a.animate(new(r(d[11]))(u),o)};return t(o,a,i)||{start:function(n){u(o,a,n)},stop:function(){o.stopAnimation()},reset:function(){o.resetAnimation()},_startNativeLoop:function(n){var t=r(d[7])({},a,{iterations:n});u(o,t)},_isUsingNativeDriver:function(){return a.useNativeDriver||!1}}},o=function(n){var t=0;return{start:function(i){0===n.length?i&&i({finished:!0}):n[t].start(function o(a){a.finished&&++t!==n.length?n[t].start(o):i&&i(a)})},stop:function(){t1&&void 0!==arguments[1]?arguments[1]:{},i=t.iterations,o=void 0===i?-1:i,a=t.resetBeforeIteration,u=void 0===a||a,s=!1,c=0;return{start:function(t){n&&0!==o?n._isUsingNativeDriver()?n._startNativeLoop(o):(function i(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};s||c===o||!1===a.finished?t&&t(a):(c++,u&&n.reset(),n.start(i))})():t&&t({finished:!0})},stop:function(){s=!0,n.stop()},reset:function(){c=0,s=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var i=new(r(d[14]).AnimatedEvent)(n,t);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:r(d[16]),attachNativeEvent:r(d[14]).attachNativeEvent,forkEvent:function(n,t){return n?n instanceof r(d[14]).AnimatedEvent?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof r(d[14]).AnimatedEvent&&n.__removeListener(t)},Event:r(d[14]).AnimatedEvent}},225,[226,227,228,229,230,231,224,4,221,232,233,236,239,215,240,219,241]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},226,[14,11,9,7,215,8,91,219,220]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},227,[14,11,9,7,215,8,91,219,220]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(_,e);var n,o,a=(n=_,o=t(),function(){var t,e=r(d[0])(n);if(o){var a=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t,e){var n;return r(d[3])(this,_),(n=a.call(this))._warnedAboutDivideByZero=!1,(0===e||e instanceof r(d[4])&&0===e.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),n._a='number'==typeof t?new(r(d[5]))(t):t,n._b='number'==typeof e?new(r(d[5]))(e):e,n}return r(d[6])(_,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[7])(r(d[0])(_.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=this._b.__getValue();return 0===e?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,t/e)}},{key:"interpolate",value:function(t){return new(r(d[8]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[7])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),_})(r(d[9]));m.exports=e},228,[14,11,9,7,221,215,8,91,219,220]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},229,[14,11,9,7,215,8,91,219,220]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(o,e);var u,n,a=(u=o,n=t(),function(){var t,e=r(d[0])(u);if(n){var a=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t,e){var u;return r(d[3])(this,o),(u=a.call(this))._a=t,u._modulus=e,u}return r(d[4])(o,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),o})(r(d[7]));m.exports=e},230,[14,11,9,7,8,91,219,220]); -__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(_,e);var a,n,u=(a=_,n=t(),function(){var t,e=r(d[0])(a);if(n){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t,e,a){var n;return r(d[3])(this,_),(n=u.call(this))._a=t,n._min=e,n._max=a,n._value=n._lastValue=n._a.__getValue(),n}return r(d[4])(_,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(_.prototype),"__makeNative",this).call(this)}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),_})(r(d[7]));m.exports=e},231,[14,11,9,7,8,91,219,220]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,_,o=(n=u,_=t(),function(){var t,e=r(d[0])(n);if(_){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e,n,_,s){var l;return r(d[3])(this,u),(l=o.call(this))._value=t,l._parent=e,l._animationClass=n,l._animationConfig=_,l._useNativeDriver=r(d[4]).shouldUseNativeDriver(_),l._callback=s,l.__attach(),l}return r(d[5])(u,[{key:"__makeNative",value:function(){this.__isNative=!0,this._parent.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this),this._value.__makeNative()}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}},{key:"__detach",value:function(){this._parent.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(r(d[7])({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(r(d[7])({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:r(d[4]).generateNewAnimationId(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),u})(r(d[8]));m.exports=e},232,[14,11,9,7,216,8,91,4,221]); -__d(function(g,r,i,a,_m,_e,d){'use strict';function t(){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}}var s=(function(s){r(d[2])(l,s);var e,n,o=(e=l,n=t(),function(){var t,s=r(d[0])(e);if(n){var o=r(d[0])(this).constructor;t=Reflect.construct(s,arguments,o)}else t=s.apply(this,arguments);return r(d[1])(this,t)});function l(t){var s,e,n,h,_,u,f,c,m,v,p,y;if(r(d[3])(this,l),(m=o.call(this))._overshootClamping=null!=(s=t.overshootClamping)&&s,m._restDisplacementThreshold=null!=(e=t.restDisplacementThreshold)?e:.001,m._restSpeedThreshold=null!=(n=t.restSpeedThreshold)?n:.001,m._initialVelocity=null!=(h=t.velocity)?h:0,m._lastVelocity=null!=(_=t.velocity)?_:0,m._toValue=t.toValue,m._delay=null!=(u=t.delay)?u:0,m._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),m.__isInteraction=null!=(f=t.isInteraction)?f:!m._useNativeDriver,m.__iterations=null!=(c=t.iterations)?c:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)r(d[5])(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),m._stiffness=null!=(v=t.stiffness)?v:100,m._damping=null!=(p=t.damping)?p:10,m._mass=null!=(y=t.mass)?y:1;else if(void 0!==t.bounciness||void 0!==t.speed){var V,T;r(d[5])(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var b=r(d[6]).fromBouncinessAndSpeed(null!=(V=t.bounciness)?V:8,null!=(T=t.speed)?T:12);m._stiffness=b.stiffness,m._damping=b.damping,m._mass=1}else{var M,D,P=r(d[6]).fromOrigamiTensionAndFriction(null!=(M=t.tension)?M:40,null!=(D=t.friction)?D:7);m._stiffness=P.stiffness,m._damping=P.damping,m._mass=1}return r(d[5])(m._stiffness>0,'Stiffness value must be greater than 0'),r(d[5])(m._damping>0,'Damping value must be greater than 0'),r(d[5])(m._mass>0,'Mass value must be greater than 0'),m}return r(d[7])(l,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations}}},{key:"start",value:function(t,s,e,n,o){var h=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof l){var _=n.getInternalState();this._lastPosition=_.lastPosition,this._lastVelocity=_.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=_.lastTime}var u=function(){h._useNativeDriver?h.__startNativeAnimation(o):h.onUpdate()};this._delay?this._timeout=setTimeout(u,this._delay):u()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,l=-this._initialVelocity,h=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),u=_*Math.sqrt(1-h*h),f=this._toValue-this._startPosition,c=0,m=0,v=this._frameTime;if(h<1){var p=Math.exp(-h*_*v);c=this._toValue-p*((l+h*_*f)/u*Math.sin(u*v)+f*Math.cos(u*v)),m=h*_*p*(Math.sin(u*v)*(l+h*_*f)/u+f*Math.cos(u*v))-p*(Math.cos(u*v)*(l+h*_*f)-u*f*Math.sin(u*v))}else{var y=Math.exp(-_*v);c=this._toValue-y*(f+(l+_*f)*v),m=y*(l*(v*_-1)+v*f*(_*_))}if(this._lastTime=t,this._lastPosition=c,this._lastVelocity=m,this._onUpdate(c),this.__active){var V=!1;this._overshootClamping&&0!==this._stiffness&&(V=this._startPositionthis._toValue:c18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},234,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=1,n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"start",value:function(t,n,e,o,_){}},{key:"stop",value:function(){this.__nativeId&&r(d[2]).API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(n){var e=t+":startAnimation";t+=1,r(d[2]).API.setWaitingForIdentifier(e);try{n.__makeNative(),this.__nativeId=r(d[2]).generateNewAnimationId(),r(d[2]).API.startAnimatingNode(this.__nativeId,n.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{r(d[2]).API.unsetWaitingForIdentifier(e)}}}]),n})();m.exports=n},235,[7,8,216]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e;function n(){if(!e){var t=r(d[2]);e=t.inOut(t.ease)}return e}var s=(function(e){r(d[3])(_,e);var s,o,u=(s=_,o=t(),function(){var t,e=r(d[0])(s);if(o){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t){var e,s,o,h,l,c;return r(d[4])(this,_),(c=u.call(this))._toValue=t.toValue,c._easing=null!=(e=t.easing)?e:n(),c._duration=null!=(s=t.duration)?s:500,c._delay=null!=(o=t.delay)?o:0,c.__iterations=null!=(h=t.iterations)?h:1,c._useNativeDriver=r(d[5]).shouldUseNativeDriver(t),c.__isInteraction=null!=(l=t.isInteraction)?l:!c._useNativeDriver,c}return r(d[6])(_,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){r(d[7])(r(d[0])(_.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),_})(r(d[8]));m.exports=s},236,[14,11,237,9,7,216,8,91,235]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,u=(function(){function u(){r(d[0])(this,u)}return r(d[1])(u,null,[{key:"step0",value:function(n){return n>0?1:0}},{key:"step1",value:function(n){return n>=1?1:0}},{key:"linear",value:function(n){return n}},{key:"ease",value:function(t){return n||(n=u.bezier(.42,0,1,1)),n(t)}},{key:"quad",value:function(n){return n*n}},{key:"cubic",value:function(n){return n*n*n}},{key:"poly",value:function(n){return function(u){return Math.pow(u,n)}}},{key:"sin",value:function(n){return 1-Math.cos(n*Math.PI/2)}},{key:"circle",value:function(n){return 1-Math.sqrt(1-n*n)}},{key:"exp",value:function(n){return Math.pow(2,10*(n-1))}},{key:"elastic",value:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(u){return 1-Math.pow(Math.cos(u*Math.PI/2),3)*Math.cos(u*n)}}},{key:"back",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(u){return u*u*((n+1)*u-n)}}},{key:"bounce",value:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var u=n-.5454545454545454;return 7.5625*u*u+.75}if(n<.9090909090909091){var t=n-.8181818181818182;return 7.5625*t*t+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375}},{key:"bezier",value:function(n,u,t,o){return r(d[2])(n,u,t,o)}},{key:"in",value:function(n){return n}},{key:"out",value:function(n){return function(u){return 1-n(1-u)}}},{key:"inOut",value:function(n){return function(u){return u<.5?n(2*u)/2:1-n(2*(1-u))/2}}}]),u})();m.exports=u},237,[7,8,238]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,i='function'==typeof Float32Array;function c(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((c(t,u)*n+v(t,u))*n+s(t))*n}function l(n,t,u){return 3*c(t,u)*n*n+2*v(t,u)*n+s(t)}function y(n,t,f,i,c){var v,s,l=0,y=t,b=f;do{(v=w(s=y+(b-y)/2,i,c)-n)>0?b=s:y=s}while(Math.abs(v)>u&&++l=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var v=i?new Float32Array(11):new Array(11);if(n!==u||o!==c)for(var s=0;s<11;++s)v[s]=w(s*f,n,o);function h(u){for(var i=0,c=1;10!==c&&v[c]<=u;++c)i+=f;var s=i+(u-v[--c])/(v[c+1]-v[c])*f,w=l(s,n,o);return w>=t?b(u,s,n,o):0===w?s:y(u,i,i+f,n,o)}return function(t){return n===u&&o===c?t:0===t?0:1===t?1:w(h(t),u,c)}}},238,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(c,e);var n,s,o=(n=c,s=t(),function(){var t,e=r(d[0])(n);if(s){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(t){var e,n,s,u;return r(d[3])(this,c),(u=o.call(this))._deceleration=null!=(e=t.deceleration)?e:.998,u._velocity=t.velocity,u._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),u.__isInteraction=null!=(n=t.isInteraction)?n:!u._useNativeDriver,u.__iterations=null!=(s=t.iterations)?s:1,u}return r(d[5])(c,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}},{key:"start",value:function(t,e,n,s,o){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){r(d[6])(r(d[0])(c.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),c})(r(d[7]));m.exports=e},239,[14,11,9,7,216,8,91,235]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,s){var v=[];r(d[1])(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,s){if(n instanceof r(d[0]))n.__makeNative(),v.push({nativeEventPath:s,animatedValueTag:n.__getNativeTag()});else if('object'==typeof n)for(var o in n)t(n[o],s.concat(o))})(s[0].nativeEvent,[]);var o=r(d[2]).findNodeHandle(t);return null!=o&&v.forEach(function(t){r(d[3]).API.addAnimatedEventToView(o,n,t)}),{detach:function(){null!=o&&v.forEach(function(t){r(d[3]).API.removeAnimatedEventFromView(o,n,t.animatedValueTag)})}}}var n=(function(){function n(t,s){r(d[4])(this,n),this._listeners=[],this._argMapping=t,null==s&&(console.warn('Animated.event now requires a second argument for options'),s={useNativeDriver:!1}),s.listener&&this.__addListener(s.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=r(d[3]).shouldUseNativeDriver(s)}return r(d[5])(n,[{key:"__addListener",value:function(t){this._listeners.push(t)}},{key:"__removeListener",value:function(t){this._listeners=this._listeners.filter(function(n){return n!==t})}},{key:"__attach",value:function(n,s){r(d[1])(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=t(n,s,this._argMapping)}},{key:"__detach",value:function(t,n){r(d[1])(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var t=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),v=0;v1){for(var l=[],s=0;s1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,l=v(t.props.numColumns),s=null!=(o=t.props.keyExtractor)?o:r(d[10]).keyExtractor;return l>1?Array.isArray(e)?e.map(function(e,t){return s(e,n*l+t)}).join(':'):void r(d[11])(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",l):s(e,n)},t._renderer=function(){var e=t.props,o=e.ListItemComponent,l=e.renderItem,s=e.columnWrapperStyle,u=v(t.props.numColumns),c=o?'ListItemComponent':'renderItem',f=function(e){return o?h.createElement(o,e):l?l(e):null};return(0,n.default)({},c,function(e){if(u>1){var t=e.item,n=e.index;return r(d[11])(Array.isArray(t),'Expected array of items with numColumns > 1'),h.createElement(r(d[12]),{style:r(d[13]).compose(y.row,s)},t.map(function(t,o){var l=f({item:t,index:n*u+o,separators:e.separators});return null!=l?h.createElement(h.Fragment,{key:o},l):null}))}return f(e)})},t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}}):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(t.props.onViewableItemsChanged)}),t}return(0,l.default)(k,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){r(d[11])(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),r(d[11])(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),r(d[11])(!r(d[14])(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),r(d[11])(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,o=e.horizontal,l=e.columnWrapperStyle,s=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=v(this.props.numColumns);r(d[11])(!t&&!n,'FlatList does not support custom data formats.'),c>1?r(d[11])(!o,'numColumns does not support horizontal.'):r(d[11])(!l,'columnWrapperStyle not supported for single column lists'),r(d[11])(!(s&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,n){var o,l=v(this.props.numColumns),s=null!=(o=this.props.keyExtractor)?o:r(d[10]).keyExtractor;n.item.forEach(function(o,u){r(d[11])(null!=n.index,'Missing index!');var c=n.index*l+u;e.push((0,t.default)({},n,{item:o,key:s(o,c),index:c}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=v(t.props.numColumns);if(e)if(o>1){var l=[],s=[];n.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(s,e)}),n.changed.forEach(function(e){return t._pushMultiColumnViewable(l,e)}),e({viewableItems:s,changed:l})}else e(n)}}},{key:"render",value:function(){var n,o=this.props,l=(o.numColumns,o.columnWrapperStyle,o.removeClippedSubviews),s=(0,e.default)(o,f);return h.createElement(r(d[15]),(0,t.default)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(n=l,null==n||n)},this._renderer()))}}]),k})(h.PureComponent),y=r(d[13]).create({row:{flexDirection:'row'}});m.exports=C},248,[3,5,4,249,7,8,9,11,14,15,250,26,176,175,168,251]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},m.exports.default=m.exports,m.exports.__esModule=!0},249,[]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.computeWindowedRenderLimits=function(n,s,o,u,c,h,v){var b=s(n);if(0===b)return c;var M=v.offset,y=v.velocity,x=v.visibleLength,p=Math.max(0,M),w=p+x,O=(u-1)*x,k=y>1?'after':y<-1?'before':'none',_=Math.max(0,p-.5*O),j=Math.max(0,w+.5*O);if(h(b-1).offset<_)return{first:Math.max(0,b-1-o),last:b-1};var L=f([_,p,w,j],b,h),S=(0,t.default)(L,4),C=S[0],E=S[1],J=S[2],N=S[3];C=null==C?0:C,E=null==E?Math.max(0,C):E,N=null==N?b-1:N,J=null==J?Math.min(N,E+o-1):J;var R={first:E,last:J},B=l(c,R);for(;!(E<=C&&J>=N);){var F=B>=o,P=E<=c.first||E>c.last,T=E>C&&(!F||!P),W=J>=c.last||J=E&&E>=0&&J=C&&J<=N&&E<=R.first&&J>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:E,last:J,itemCount:b,overscanFirst:C,overscanLast:N,visible:R}));return{first:E,last:J}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)},e.newRangeCount=l;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function f(t,f,l){for(var s=[],o=0,u=0;u=t[v]&&(s[v]=u,o++,v===t.length-1))return(0,n.default)(o===t.length,'bad offsets input, should be in increasing order: %s',JSON.stringify(t)),s;return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}},250,[3,31,26]); -__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),i=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),h=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=s?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,o&&o.set(e,n);return n})(r(d[9]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}function p(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=f(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"==typeof e)return _(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o0&&t>0&&null!=i.props.initialScrollIndex&&i.props.initialScrollIndex>0&&!i._hasDoneInitialScroll&&(null==i.props.contentOffset&&i.scrollToIndex({animated:!1,index:i.props.initialScrollIndex}),i._hasDoneInitialScroll=!0),i.props.onContentSizeChange&&i.props.onContentSizeChange(e,t),i._scrollMetrics.contentLength=i._selectLength({height:t,width:e}),i._scheduleCellsToRenderUpdate(),i._maybeCallOnEndReached()},i._convertParentScrollMetrics=function(e){var t=e.offset-i._offsetFromParentVirtualizedList,o=e.visibleLength,n=t-i._scrollMetrics.offset;return{visibleLength:o,contentLength:i._scrollMetrics.contentLength,offset:t,dOffset:n}},i._onScroll=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),i.props.onScroll&&i.props.onScroll(e);var t=e.timeStamp,o=i._selectLength(e.nativeEvent.layoutMeasurement),n=i._selectLength(e.nativeEvent.contentSize),s=i._selectOffset(e.nativeEvent.contentOffset),l=s-i._scrollMetrics.offset;if(i._isNestedWithSameOrientation()){if(0===i._scrollMetrics.contentLength)return;var c=i._convertParentScrollMetrics({visibleLength:o,offset:s});o=c.visibleLength,n=c.contentLength,s=c.offset,l=c.dOffset}var h=i._scrollMetrics.timestamp?Math.max(1,t-i._scrollMetrics.timestamp):1,u=l/h;h>500&&i._scrollMetrics.dt>500&&n>5*o&&!i._hasWarned.perf&&(r(d[14])("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:h,prevDt:i._scrollMetrics.dt,contentLength:n}),i._hasWarned.perf=!0),i._scrollMetrics={contentLength:n,dt:h,dOffset:l,offset:s,timestamp:t,velocity:u,visibleLength:o},i._updateViewableItems(i.props.data),i.props&&(i._maybeCallOnEndReached(),0!==u&&i._fillRateHelper.activate(),i._computeBlankness(),i._scheduleCellsToRenderUpdate())},i._onScrollBeginDrag=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),i._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),i._hasInteracted=!0,i.props.onScrollBeginDrag&&i.props.onScrollBeginDrag(e)},i._onScrollEndDrag=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(i._scrollMetrics.velocity=i._selectOffset(t)),i._computeBlankness(),i.props.onScrollEndDrag&&i.props.onScrollEndDrag(e)},i._onMomentumScrollBegin=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollBegin(e)}),i.props.onMomentumScrollBegin&&i.props.onMomentumScrollBegin(e)},i._onMomentumScrollEnd=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollEnd(e)}),i._scrollMetrics.velocity=0,i._computeBlankness(),i.props.onMomentumScrollEnd&&i.props.onMomentumScrollEnd(e)},i._updateCellsToRender=function(){var e=i.props,t=e.data,o=e.getItemCount,n=M(e.onEndReachedThreshold),s=i._isVirtualizationDisabled();i._updateViewableItems(t),t&&i.setState(function(e){var l,c=i._scrollMetrics,h=c.contentLength,u=c.offset,f=c.visibleLength;if(s){var _=h-f-u0&&h>0&&(i.props.initialScrollIndex&&!i._scrollMetrics.offset||(l=(0,r(d[15]).computeWindowedRenderLimits)(i.props.data,i.props.getItemCount,I(i.props.maxToRenderPerBatch),R(i.props.windowSize),e,i._getFrameMetricsApprox,i._scrollMetrics)));if(l&&i._nestedChildLists.size>0)for(var y=l.first,v=l.last,C=y;C<=v;C++){var L=i._indicesToKeys.get(C),b=L&&i._cellKeysToChildListKeys.get(L);if(b){for(var S,M=!1,x=p(b);!(S=x()).done;){var w=S.value,k=i._nestedChildLists.get(w);if(k&&k.ref&&k.ref.hasMore()){M=!0;break}}if(M){l.last=C;break}}}return null!=l&&l.first===e.first&&l.last===e.last&&(l=null),l})},i._createViewToken=function(e,t){var o=i.props,n=o.data,s=(0,o.getItem)(n,e);return{index:e,item:s,key:i._keyExtractor(s,e),isViewable:t}},i._getFrameMetricsApprox=function(e){var t=i._getFrameMetrics(e);if(t&&t.index===e)return t;var o=i.props.getItemLayout;return r(d[11])(!o,'Should not have to estimate frames when a measurement metrics function is provided'),{length:i._averageCellLength,offset:i._averageCellLength*e}},i._getFrameMetrics=function(e){var t=i.props,o=t.data,n=t.getItem,s=t.getItemCount,l=t.getItemLayout;r(d[11])(s(o)>e,'Tried to get frame for out of range index '+e);var c=n(o,e),h=c&&i._frames[i._keyExtractor(c,e)];return h&&h.index===e||l&&(h=l(o,e)),h},r(d[11])(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),r(d[11])(R(e.windowSize)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),i._fillRateHelper=new(r(d[16]))(i._getFrameMetrics),i._updateCellsToRenderBatcher=new(r(d[17]))(i._updateCellsToRender,null!=(n=i.props.updateCellsBatchingPeriod)?n:50),i.props.viewabilityConfigCallbackPairs?i._viewabilityTuples=i.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new(r(d[18]))(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}}):i.props.onViewableItemsChanged&&i._viewabilityTuples.push({viewabilityHelper:new(r(d[18]))(i.props.viewabilityConfig),onViewableItemsChanged:i.props.onViewableItemsChanged});var l={first:i.props.initialScrollIndex||0,last:Math.min(i.props.getItemCount(i.props.data),(i.props.initialScrollIndex||0)+S(i.props.initialNumToRender))-1};if(i._isNestedWithSameOrientation()){var f=i.context.getNestedChildState(i._getListKey());f&&(l=f,i.state=f,i._frames=f.frames)}return i.state=l,i}return(0,n.default)(u,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,o=this.props.getItemCount(this.props.data)-1,n=this._getFrameMetricsApprox(o),s=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(b(this.props.horizontal)?{x:s,animated:t}:{y:s,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToIndex",value:function(e){var t=this.props,o=t.data,n=t.horizontal,s=t.getItemCount,i=t.getItemLayout,l=t.onScrollToIndexFailed,c=e.animated,h=e.index,u=e.viewOffset,p=e.viewPosition;if(r(d[11])(h>=0,"scrollToIndex out of range: requested index "+h+" but minimum is 0"),r(d[11])(s(o)>=1,"scrollToIndex out of range: item length "+s(o)+" but minimum is 1"),r(d[11])(hthis._highestMeasuredFrameIndex)return r(d[11])(!!l,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void l({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:h});var f=this._getFrameMetricsApprox(h),_=Math.max(0,f.offset-(p||0)*(this._scrollMetrics.visibleLength-f.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(n?{x:_,animated:c}:{y:_,animated:c}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var o=e.item,n=this.props,s=n.data,i=n.getItem,l=(0,n.getItemCount)(s),c=0;c0){C=!1,L='';var x=this._getSpacerKey(!p),w=this.props.initialScrollIndex?-1:S(this.props.initialNumToRender)-1,k=this.state,T=k.first,z=k.last;this._pushCells(y,I,v,0,w,_);var K=Math.max(w+1,T);if(!f&&T>w+1){var O=!1;if(v.size>0)for(var P=l?1:0,F=K-1;F>w;F--)if(v.has(F+P)){var V=this._getFrameMetricsApprox(w),D=this._getFrameMetricsApprox(F),N=D.offset-V.offset-(this.props.initialScrollIndex?0:V.length);y.push(h.createElement(r(d[10]),{key:"$sticky_lead",style:(0,e.default)({},x,N)})),this._pushCells(y,I,v,F,F,_);var A=this._getFrameMetricsApprox(T).offset-(D.offset+D.length);y.push(h.createElement(r(d[10]),{key:"$sticky_trail",style:(0,e.default)({},x,A)})),O=!0;break}if(!O){var B=this._getFrameMetricsApprox(w),H=this._getFrameMetricsApprox(T).offset-(B.offset+B.length);y.push(h.createElement(r(d[10]),{key:"$lead_spacer",style:(0,e.default)({},x,H)}))}}if(this._pushCells(y,I,v,K,z,_),!this._hasWarned.keys&&C&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",L),this._hasWarned.keys=!0),!f&&zu&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state,t=e.first,o=e.last,n=this._scrollMetrics,s=n.offset,i=n.visibleLength,l=n.velocity,c=this.props.getItemCount(this.props.data),h=!1,u=M(this.props.onEndReachedThreshold)*i/2;if(t>0){var p=s-this._getFrameMetricsApprox(t).offset;h=h||p<0||l<-2&&p2&&f0&&(this._scrollAnimatedValueAttachment=p.default.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,o,t){var n=this.props.stickyHeaderIndices;if(n){var l=y.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,l)){var s=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,s);var u=n[n.indexOf(e)-1];if(null!=u){var c=this._stickyHeaderRefs.get(this._getKeyForIndex(u,l));c&&c.setNextHeaderY&&c.setNextHeaderY(s)}}}}},{key:"render",value:function(){var t=this,n=!0===this.props.horizontal?P:F,l=(0,o.default)(n,2),s=l[0],u=l[1],c=[!0===this.props.horizontal&&Y.contentContainerHorizontal,this.props.contentContainerStyle],p=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},f=this.props.stickyHeaderIndices,S=this.props.children;if(null!=f&&f.length>0){var b=y.Children.toArray(this.props.children);S=b.map(function(e,o){var n=e?f.indexOf(o):-1;if(n>-1){var l=e.key,s=f[n+1],u=t.props.StickyHeaderComponent||_.default;return y.createElement(u,{key:l,nativeID:'StickyHeader-'+l,ref:function(e){return t._setStickyHeaderRef(l,e)},nextHeaderLayoutY:t._headerLayoutYs.get(t._getKeyForIndex(s,b)),onLayout:function(e){return t._onStickyHeaderLayout(o,e,l)},scrollAnimatedValue:t._scrollAnimatedValue,inverted:t.props.invertStickyHeaders,hiddenOnScroll:t.props.stickyHeaderHiddenOnScroll,scrollViewHeight:t.state.layoutHeight},e)}return e})}S=y.createElement(D.default.Provider,{value:!0===this.props.horizontal?D.HORIZONTAL:D.VERTICAL},S);var R=Array.isArray(f)&&f.length>0,T=y.createElement(u,(0,e.default)({},p,{ref:this._setInnerViewRef,style:c,removeClippedSubviews:('android'!==h.default.OS||!R)&&this.props.removeClippedSubviews,collapsable:!1}),S),w=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,V=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,k=!0===this.props.horizontal?Y.baseHorizontal:Y.baseVertical,E=(0,e.default)({},this.props,{alwaysBounceHorizontal:w,alwaysBounceVertical:V,style:v.default.compose(k,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,scrollEventThrottle:R?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:h.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),K=this.props.decelerationRate;null!=K&&(E.decelerationRate=(0,O.default)(K));var A=this.props.refreshControl;if(A){if('ios'===h.default.OS)return y.createElement(s,(0,e.default)({},E,{ref:this._setNativeRef}),A,T);if('android'===h.default.OS){var N=(0,I.default)((0,H.default)(E.style)),M=N.outer,W=N.inner;return y.cloneElement(A,{style:v.default.compose(k,M)},y.createElement(s,(0,e.default)({},E,{style:v.default.compose(k,W),ref:this._setNativeRef}),T))}}return y.createElement(s,(0,e.default)({},E,{ref:this._setNativeRef}),T)}}]),x})(y.Component);G.Context=D.default;var Y=v.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function U(o,t){return y.createElement(G,(0,e.default)({},o,{scrollViewRef:t}))}U.displayName='ScrollView';var Z=y.forwardRef(U);Z.Context=D.default,Z.displayName='ScrollView',m.exports=Z},252,[3,4,31,7,8,13,9,11,14,225,163,27,15,56,253,175,176,50,254,258,137,256,170,26,260,261,243,262,263,264,265,266,267]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=s(n);if(u&&u.has(t))return u.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=o?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}l.default=t,u&&u.set(t,l);return l})(r(d[6]));function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(s=function(t){return t?u:n})(t)}var c=o.default.View,p=f.forwardRef(function(l,s){var p=l.inverted,h=l.scrollViewHeight,y=l.hiddenOnScroll,R=l.scrollAnimatedValue,O=l.nextHeaderLayoutY,L=f.useState(!1),b=(0,t.default)(L,2),w=b[0],S=b[1],j=f.useState(0),E=(0,t.default)(j,2),P=E[0],_=E[1],x=f.useState(0),M=(0,t.default)(x,2),k=M[0],C=M[1],D=f.useState(null),H=(0,t.default)(D,2),I=H[0],V=H[1],Y=f.useState(O),T=(0,t.default)(Y,2),W=T[0],A=T[1],N=f.useState(!1),z=(0,t.default)(N,2),F=z[0],q=z[1],B=f.useRef(),G=(0,n.default)({getForwardedRef:function(){return s},setLocalRef:function(t){var n,u;(B.current=t,t)&&(t.setNextHeaderY=function(t){A(t)},q(!(null==(n=t._internalInstanceHandle)||null==(u=n.stateNode)||!u.canonical)))}}),J=(0,f.useMemo)(function(){return!0===y?o.default.diffClamp(R.interpolate({extrapolateLeft:'clamp',inputRange:[P,P+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-k,0):null},[R,k,P,y]),K=f.useState(function(){var t=R.interpolate({inputRange:[-1,0],outputRange:[0,0]});return null!=J?o.default.add(t,J):t}),Q=(0,t.default)(K,2),U=Q[0],X=Q[1],Z=(0,f.useRef)(!0),$=(0,f.useRef)(null);(0,f.useEffect)(function(){0!==I&&null!=I&&(Z.current=!1)},[I]);var ee=(0,f.useCallback)(function(t){var n=t.value,l='android'===u.default.OS?15:64;0!==n||Z.current?(null!=$.current&&clearTimeout($.current),$.current=setTimeout(function(){n!==I&&V(n)},l)):Z.current=!0},[I]);(0,f.useEffect)(function(){var t=[-1,0],n=[0,0];if(w)if(!0===p){if(null!=h){var u=P+k-h;if(u>0){t.push(u),n.push(0),t.push(u+1),n.push(1);var l=(W||0)-k-h;l>u&&(t.push(l,l+1),n.push(l-u,l-u))}}}else{t.push(P),n.push(0);var f=(W||0)-k;f>=P?(t.push(f,f+1),n.push(f-P,f-P)):(t.push(P+1),n.push(1))}var s,c=R.interpolate({inputRange:t,outputRange:n});return null!=J&&(c=o.default.add(c,J)),F&&(s=c.addListener(ee)),X(c),function(){s&&c.removeListener(s),null!=$.current&&clearTimeout($.current)}},[W,w,k,P,h,R,p,J,ee,F]);var te=f.Children.only(l.children),ne=F&&null!=I?{style:{transform:[{translateY:I}]}}:null;return f.createElement(c,{collapsable:!1,nativeID:l.nativeID,onLayout:function(t){_(t.nativeEvent.layout.y),C(t.nativeEvent.layout.height),S(!0),l.onLayout(t);var n=f.Children.only(l.children);n.props.onLayout&&n.props.onLayout(t)},ref:G,style:[te.props.style,v.header,{transform:[{translateY:U}]}],passthroughAnimatedPropExplicitValues:ne},f.cloneElement(te,{style:v.fill,onLayout:void 0}))}),v=l.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}}),h=p;e.default=h},253,[3,31,243,27,175,213,15]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),v=(function(){function v(){(0,t.default)(this,v),this._emitter=new u.default('ios'!==s.default.OS?null:f.default)}return(0,n.default)(v,[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeListener",value:function(t,n){this._emitter.removeListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,o.default)()}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&l.default.configureNext({duration:n,update:{duration:n,type:null!=u&&l.default.Types[u]||'keyboard'}})}}]),v})();m.exports=new v},254,[3,7,8,102,255,256,27,257]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1]));function t(t,u,o){var l,s;if(!n.default.isTesting){var c,p,y=!1,f=function(){y||(y=!0,clearTimeout(b),null==u||u())},b=setTimeout(f,(null!=(l=t.duration)?l:0)+17),I=null==(s=g)?void 0:s.nativeFabricUIManager;if(null!=I&&I.configureNextLayoutAnimation)null==(c=g)||null==(p=c.nativeFabricUIManager)||p.configureNextLayoutAnimation(t,f,null!=o?o:function(){});else null!=r(d[2])&&r(d[2]).configureNextLayoutAnimation&&r(d[2]).configureNextLayoutAnimation(t,null!=f?f:function(){},null!=o?o:function(){})}}function u(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},l={configureNext:t,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:t.bind(null,o.easeInEaseOut),linear:t.bind(null,o.linear),spring:t.bind(null,o.spring)};m.exports=l},255,[3,27,50]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){r(d[0]).blurTextInput(r(d[0]).currentlyFocusedInput())}},256,[137]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('KeyboardObserver');e.default=n},257,[29]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o={setGlobalOptions:function(o){if(void 0!==o.debug&&r(d[2])(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var l={debug:!!o.debug,reportStackTraces:!!o.reportStackTraces};t.default.setGlobalOptions(l)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=o},258,[3,259,26]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('FrameRateLogger');e.default=n},259,[29]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}},260,[3,27]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var c=null,t=null;if(null!=s){c={},t={};for(var n=0,l=Object.keys(s);nMath.random(),this._resetData()}return r(d[0])(_,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new t,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===l&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),n.push(t),{remove:function(){n=n.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){l=t}},{key:"setMinSampleCount",value:function(t){s=t}}]),_})();m.exports=_},272,[8,7,4]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,l){r(d[0])(this,t),this._delay=l,this._callback=n}return r(d[1])(t,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=r(d[2]).runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),t})();m.exports=t},273,[7,8,222]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};r(d[0])(this,n),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return r(d[1])(n,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,i,o,l){var u=this._config,c=u.itemVisiblePercentThreshold,h=u.viewAreaCoveragePercentThreshold,f=null!=h,v=f?h:c;r(d[2])(null!=v&&null!=c!=(null!=h),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===t)return b;var y=-1,w=l||{first:0,last:t-1},_=w.first,p=w.last;if(p>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:l,itemCount:t})),[];for(var I=_;I<=p;I++){var A=o(I);if(A){var S=A.offset-n,T=S+A.length;if(S0)y=I,s(f,v,S,T,i,A.length)&&b.push(I);else if(y>=0)break}}return b}},{key:"onUpdate",value:function(t,n,i,o,s,l,u){var c=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&o(0)){var h=[];if(t&&(h=this.computeViewableItems(t,n,i,o,u)),this._viewableIndices.length!==h.length||!this._viewableIndices.every(function(t,n){return t===h[n]}))if(this._viewableIndices=h,this._config.minimumViewTime){var f=setTimeout(function(){c._timers.delete(f),c._onUpdateSync(h,l,s)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(h,l,s)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,i,o){var s=this;n=n.filter(function(t){return s._viewableIndices.includes(t)});for(var l,u=this._viewableItems,c=new Map(n.map(function(t){var n=o(t,!0);return[n.key,n]})),h=[],f=t(c);!(l=f()).done;){var v=l.value,b=r(d[3])(v,2),y=b[0],w=b[1];u.has(y)||h.push(w)}for(var _,p=t(u);!(_=p()).done;){var I=_.value,A=r(d[3])(I,2),S=A[0],T=A[1];c.has(S)||h.push(r(d[4])({},T,{isViewable:!1}))}h.length>0&&(this._viewableItems=c,i({viewableItems:Array.from(c.values()),changed:h,viewabilityConfig:this._config}))}}]),n})();function s(t,n,i,o,s,c){if(u(i,o,s))return!0;var h=l(i,o,s);return 100*(t?h/s:h/c)>=n}function l(t,n,i){var o=Math.min(n,i)-Math.max(t,0);return Math.max(0,o)}function u(t,n,i){return t>=0&&n<=i&&n>t}m.exports=o},274,[7,8,26,31,4]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualizedListCellContextProvider=function(l){var u=l.cellKey,s=l.children,c=(0,n.useContext)(o);return n.createElement(o.Provider,{value:null==c?null:(0,t.default)({},c,{cellKey:u})},s)},e.VirtualizedListContext=void 0,e.VirtualizedListContextProvider=function(t){var l=t.children,u=t.value,s=(0,n.useMemo)(function(){return{cellKey:null,getScrollMetrics:u.getScrollMetrics,horizontal:u.horizontal,getOutermostParentListRef:u.getOutermostParentListRef,getNestedChildState:u.getNestedChildState,registerAsNestedChild:u.registerAsNestedChild,unregisterAsNestedChild:u.unregisterAsNestedChild,debugInfo:{cellKey:u.debugInfo.cellKey,horizontal:u.debugInfo.horizontal,listKey:u.debugInfo.listKey,parent:u.debugInfo.parent}}},[u.getScrollMetrics,u.horizontal,u.getOutermostParentListRef,u.getNestedChildState,u.registerAsNestedChild,u.unregisterAsNestedChild,u.debugInfo.cellKey,u.debugInfo.horizontal,u.debugInfo.listKey,u.debugInfo.parent]);return n.createElement(o.Provider,{value:s},l)},e.VirtualizedListContextResetter=function(t){var l=t.children;return n.createElement(o.Provider,{value:null},l)};var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var f=s?Object.getOwnPropertyDescriptor(t,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[2]));function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}var o=n.createContext(null);e.VirtualizedListContext=o},275,[3,4,15]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!1})},276,[15,241,277]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=b(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var f=l?Object.getOwnPropertyDescriptor(t,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),h=r(d[0])(r(d[9])),p=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),w=r(d[0])(r(d[12])),v=r(d[0])(r(d[13]));function b(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(b=function(t){return t?o:n})(t)}var S=1;function I(t,n){var o=S++;return n&&n(o),w.default.prefetchImage(t,o)}var E=function(n,o){var c,s,w,b,S=(0,y.default)(n.source),I=(0,y.default)(n.defaultSource),E=(0,y.default)(n.loadingIndicatorSource);S&&(''===S.uri&&console.warn('source.uri should not be an empty string'));if(n.src&&console.warn('The component requires a `source` property rather than `src`.'),n.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');if(n.defaultSource&&n.loadingIndicatorSource)throw new Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.');if(!S||S.uri||Array.isArray(S)||(S=null),null!=(null==(c=S)?void 0:c.uri)){var P=S,_=P.width,j=P.height;w=(0,p.default)([{width:_,height:j},O.base,n.style]),b=[{uri:S.uri}]}else w=(0,p.default)([O.base,n.style]),b=S;var z=n.onLoadStart,C=n.onLoad,W=n.onLoadEnd,M=n.onError,T=(0,t.default)({},n,{style:w,shouldNotifyLoadEvents:!!(z||C||W||M),src:b,headers:null==(s=S)?void 0:s.headers,defaultSrc:I?I.uri:null,loadingIndicatorSrc:E?E.uri:null,ref:o});return l.createElement(h.default.Consumer,null,function(n){var o=null!==n?(0,t.default)({},T,{internal_analyticTag:n}):T;return l.createElement(f.default.Consumer,null,function(t){return t?l.createElement(v.default,o):l.createElement(u.default,o)})})};E=l.forwardRef(E),null!=s.default.unstable_createImageComponent&&(E=s.default.unstable_createImageComponent(E)),E.displayName='Image',E.getSize=function(t,n,o){return w.default.getSize(t).then(function(t){n(t.width,t.height)}).catch(o||function(){console.warn('Failed to get size for image: '+t)})},E.getSizeWithHeaders=function(t,n,o,u){return w.default.getSizeWithHeaders(t,n).then(function(t){o(t.width,t.height)}).catch(u||function(){console.warn('Failed to get size for image: '+t)})},E.prefetch=I,E.prefetchWithMetadata=function(t,n,o,u){I(t,u)},E.abortPrefetch=function(t){w.default.abortRequest(t)},E.queryCache=function(t){return n.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.default.awrap(w.default.queryCache(t));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},null,null,null,Promise)},E.resolveAssetSource=y.default,E.propTypes=o.default;var O=c.default.create({base:{overflow:'hidden'}});m.exports=E},277,[3,4,82,278,282,15,175,178,283,285,170,157,286,284]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])({},r(d[1]),{style:r(d[2])(r(d[3])),source:r(d[4]).oneOfType([r(d[4]).shape({uri:r(d[4]).string,headers:r(d[4]).objectOf(r(d[4]).string)}),r(d[4]).number,r(d[4]).arrayOf(r(d[4]).shape({uri:r(d[4]).string,width:r(d[4]).number,height:r(d[4]).number,headers:r(d[4]).objectOf(r(d[4]).string)}))]),blurRadius:r(d[4]).number,defaultSource:r(d[4]).number,loadingIndicatorSource:r(d[4]).oneOfType([r(d[4]).shape({uri:r(d[4]).string}),r(d[4]).number]),progressiveRenderingEnabled:r(d[4]).bool,fadeDuration:r(d[4]).number,internal_analyticTag:r(d[4]).string,onLoadStart:r(d[4]).func,onError:r(d[4]).func,onLoad:r(d[4]).func,onLoadEnd:r(d[4]).func,testID:r(d[4]).string,resizeMethod:r(d[4]).oneOf(['auto','resize','scale']),resizeMode:r(d[4]).oneOf(['cover','contain','stretch','repeat','center'])});m.exports=n},278,[4,279,188,281,193]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={accessible:r(d[2]).bool,accessibilityLabel:r(d[2]).node,accessibilityHint:r(d[2]).string,accessibilityActions:r(d[2]).arrayOf(r(d[2]).string),accessibilityIgnoresInvertColors:r(d[2]).bool,accessibilityRole:r(d[2]).oneOf(r(d[3]).DeprecatedAccessibilityRoles),accessibilityState:r(d[2]).object,accessibilityValue:r(d[2]).object,accessibilityLiveRegion:r(d[2]).oneOf(['none','polite','assertive']),importantForAccessibility:r(d[2]).oneOf(['auto','yes','no','no-hide-descendants']),accessibilityViewIsModal:r(d[2]).bool,accessibilityElementsHidden:r(d[2]).bool,onAccessibilityAction:r(d[2]).func,onAccessibilityTap:r(d[2]).func,onMagicTap:r(d[2]).func,testID:r(d[2]).string,nativeID:r(d[2]).string,onResponderGrant:r(d[2]).func,onResponderMove:r(d[2]).func,onResponderReject:r(d[2]).func,onResponderRelease:r(d[2]).func,onResponderTerminate:r(d[2]).func,onResponderTerminationRequest:r(d[2]).func,onStartShouldSetResponder:r(d[2]).func,onStartShouldSetResponderCapture:r(d[2]).func,onMoveShouldSetResponder:r(d[2]).func,onMoveShouldSetResponderCapture:r(d[2]).func,hitSlop:r(d[4]),onLayout:r(d[2]).func,pointerEvents:r(d[2]).oneOf(['box-none','none','box-only','auto']),style:o,removeClippedSubviews:r(d[2]).bool,renderToHardwareTextureAndroid:r(d[2]).bool,shouldRasterizeIOS:r(d[2]).bool,collapsable:r(d[2]).bool,needsOffscreenAlphaCompositing:r(d[2]).bool}},279,[188,191,193,280,200]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={DeprecatedAccessibilityRoles:['none','button','togglebutton','link','search','image','keyboardkey','text','adjustable','imagebutton','header','summary','alert','checkbox','combobox','menu','menubar','menuitem','progressbar','radio','radiogroup','scrollbar','spinbutton','switch','tab','tablist','timer','list','toolbar']}},280,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])({},r(d[1]),r(d[2]),r(d[3]),{resizeMode:r(d[4]).oneOf(['center','contain','cover','repeat','stretch']),backfaceVisibility:r(d[4]).oneOf(['visible','hidden']),backgroundColor:r(d[5]),borderColor:r(d[5]),borderWidth:r(d[4]).number,borderRadius:r(d[4]).number,overflow:r(d[4]).oneOf(['visible','hidden']),tintColor:r(d[5]),opacity:r(d[4]).number,overlayColor:r(d[4]).string,borderTopLeftRadius:r(d[4]).number,borderTopRightRadius:r(d[4]).number,borderBottomLeftRadius:r(d[4]).number,borderBottomRightRadius:r(d[4]).number});m.exports=o},281,[4,192,196,198,193,197]); -__d(function(g,r,i,a,m,e,d){function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(t=function(t){return t?s:n})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var s=t(n);if(s&&s.has(o))return s.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in o)if("default"!==f&&Object.prototype.hasOwnProperty.call(o,f)){var c=l?Object.getOwnPropertyDescriptor(o,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=o[f]}u.default=o,s&&s.set(o,u);return u})(r(d[0])).get('RCTImageView',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:r(d[1])},defaultSource:{process:r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:r(d[3])}}}});e.default=o},282,[152,147,157,143]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f)})(r(d[0])),r(d[1])(r(d[2])),r(d[1])(r(d[3]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}e.default={unstable_createImageComponent:null}},283,[15,3,282,284]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(t=function(t){return t?s:n})(o)}var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var s=t(n);if(s&&s.has(o))return s.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if("default"!==c&&Object.prototype.hasOwnProperty.call(o,c)){var p=l?Object.getOwnPropertyDescriptor(o,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=o[c]}u.default=o,s&&s.set(o,u);return u})(r(d[0])).get('RCTTextInlineImage',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:r(d[1])},defaultSource:{process:r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:r(d[3])}}}});m.exports=o},284,[152,147,157,143]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(null);e.default=n},285,[15]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ImageLoader');e.default=n},286,[29]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u);return u})(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var f=n.forwardRef(function(o,f){return n.createElement(r(d[3]),(0,t.default)({scrollEventThrottle:1e-4},o,{ref:f}))});m.exports=r(d[4])(f,{collapsable:!1})},287,[3,4,15,252,241]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=t[l]}u.default=t,f&&f.set(t,u);return u})(r(d[2])),f=r(d[0])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var u=n.forwardRef(function(o,u){return n.createElement(f.default,(0,t.default)({scrollEventThrottle:1e-4},o,{ref:u}))});m.exports=r(d[4])(u)},288,[3,4,15,289,241]); -__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=f?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[9])),p=r(d[0])(r(d[10])),v=["stickySectionHeadersEnabled"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function h(){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(e){return!1}}var R=(function(y){(0,f.default)(w,y);var R,_,L=(R=w,_=h(),function(){var e,t=(0,c.default)(R);if(_){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function w(){var e;(0,n.default)(this,w);for(var t=arguments.length,o=new Array(t),f=0;f=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&this.props.stickySectionHeadersEnabled)o+=this._listRef._getFrameMetricsApprox(t-e.itemIndex).length;var l=(0,n.default)({},e,{viewOffset:o,index:t});this._listRef.scrollToIndex(l)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){for(var e,i=this,o=this.props,l=(o.ItemSeparatorComponent,o.SectionSeparatorComponent,o.renderItem,o.renderSectionFooter,o.renderSectionHeader,o.sections,o.stickySectionHeadersEnabled,(0,t.default)(o,v)),u=this.props.ListHeaderComponent?1:0,c=this.props.stickySectionHeadersEnabled?[]:void 0,s=0,p=S(this.props.sections);!(e=p()).done;){var y=e.value;null!=c&&c.push(s+u),s+=2,s+=this.props.getItemCount(y.data)}var I=this._renderItem(s);return h.createElement(f.VirtualizedList,(0,n.default)({},l,{keyExtractor:this._keyExtractor,stickyHeaderIndices:c,renderItem:I,data:this.props.sections,getItem:function(e,t){return i._getItem(i.props,e,t)},getItemCount:function(){return s},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var i=n-1,o=0;o=o(p)+1)t-=o(p)+1;else return-1===t?{section:s,key:f+':header',index:null,header:!0,trailingSection:u[c+1]}:t===o(p)?{section:s,key:f+':footer',index:null,header:!1,trailingSection:u[c+1]}:{section:s,key:f+':'+(s.keyExtractor||l||r(d[13]).keyExtractor)(i(p,t),t),index:t,leadingItem:i(p,t-1),leadingSection:u[c-1],trailingItem:i(p,t+1),trailingSection:u[c+1]}}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var i=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,l=e===n-1,u=t.index===this.props.getItemCount(t.section.data)-1;return o&&u?o:!i||u||l?null:i}}]),x})(h.PureComponent);function k(t){var i=t.LeadingSeparatorComponent,o=t.SeparatorComponent,l=t.cellKey,u=t.prevCellKey,c=t.setSelfHighlightCallback,s=t.updateHighlightFor,p=t.setSelfUpdatePropsCallback,v=t.updatePropsFor,y=t.item,S=t.index,I=t.section,_=t.inverted,b=h.useState(!1),x=(0,e.default)(b,2),k=x[0],C=x[1],E=h.useState(!1),w=(0,e.default)(E,2),H=w[0],P=w[1],F=h.useState({leadingItem:t.leadingItem,leadingSection:t.leadingSection,section:t.section,trailingItem:t.item,trailingSection:t.trailingSection}),R=(0,e.default)(F,2),M=R[0],O=R[1],V=h.useState({leadingItem:t.item,leadingSection:t.leadingSection,section:t.section,trailingItem:t.trailingItem,trailingSection:t.trailingSection}),j=(0,e.default)(V,2),A=j[0],U=j[1];h.useEffect(function(){return c(l,P),p(l,U),function(){p(l,null),c(l,null)}},[l,c,U,p]);var L={highlight:function(){C(!0),P(!0),null!=u&&s(u,!0)},unhighlight:function(){C(!1),P(!1),null!=u&&s(u,!1)},updateProps:function(e,t){'leading'===e?null!=i?O((0,n.default)({},M,t)):null!=u&&v(u,(0,n.default)({},M,t)):'trailing'===e&&null!=o&&U((0,n.default)({},A,t))}},B=t.renderItem({item:y,index:S,section:I,separators:L}),K=null!=i&&h.createElement(i,(0,n.default)({highlighted:k},M)),T=null!=o&&h.createElement(o,(0,n.default)({highlighted:H},A));return K||T?h.createElement(f.View,null,!1===_?K:T,B,!1===_?T:K):B}m.exports=x},290,[3,31,5,4,7,8,13,9,11,14,26,18,15,250]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!1})},291,[15,241,186]); -__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!0})},292,[15,241,176]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={};m.exports=function(o,t){n[o]||(console.warn(t),n[o]=!0)}},293,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var f=u?Object.getOwnPropertyDescriptor(e,c):null;f&&(f.get||f.set)?Object.defineProperty(o,c,f):o[c]=e[c]}o.default=e,n&&n.set(e,o);return o})(r(d[6])),f=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function y(){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(e){return!1}}var h=(function(f){(0,n.default)(b,f);var p,h,O=(p=b,h=y(),function(){var e,t=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function b(){return(0,e.default)(this,b),O.apply(this,arguments)}return(0,t.default)(b,[{key:"render",value:function(){return c.createElement(s.default,{style:[v.dummyDatePickerIOS,this.props.style]},c.createElement(l.default,{style:v.datePickerText},"DatePickerIOS is not supported on this platform!"))}}]),b})(c.Component),v=f.default.create({dummyDatePickerIOS:{height:100,width:300,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center',margin:10},datePickerText:{color:'#333333',margin:20}});m.exports=h},294,[3,7,8,9,11,14,15,175,186,176]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),c=k(r(d[9])),p=r(d[0])(r(d[10])),w=r(d[0])(r(d[11])),h=r(d[0])(r(d[12])),v=r(d[0])(r(d[13])),y=r(d[0])(r(d[14])),D=k(r(d[15])),b=["onDrawerStateChanged","renderNavigationView","onDrawerOpen","onDrawerClose"];function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=u?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}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(e){return!1}}var S=['Idle','Dragging','Settling'],R=(function(w){(0,u.default)(O,w);var C,k,R=(C=O,k=_(),function(){var e,t=(0,l.default)(C);if(k){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function O(){var e;(0,n.default)(this,O);for(var t=arguments.length,o=new Array(t),u=0;u=21&&null!=this.props.statusBarBackgroundColor,l=c.createElement(h.default,{style:[B.drawerSubview,{width:this.props.drawerWidth,backgroundColor:this.props.drawerBackgroundColor}],collapsable:!1},o(),s&&c.createElement(h.default,{style:B.drawerStatusBar})),w=c.createElement(h.default,{style:B.mainSubview,collapsable:!1},s&&c.createElement(p.default,{translucent:!0,backgroundColor:this.props.statusBarBackgroundColor}),s&&c.createElement(h.default,{style:[B.statusBar,{backgroundColor:this.props.statusBarBackgroundColor}]}),this.props.children);return c.createElement(D.default,(0,e.default)({},u,{ref:this._nativeRef,drawerWidth:this.props.drawerWidth,drawerPosition:this.props.drawerPosition,drawerLockMode:this.props.drawerLockMode,style:[B.base,this.props.style],onDrawerSlide:this._onDrawerSlide,onDrawerOpen:this._onDrawerOpen,onDrawerClose:this._onDrawerClose,onDrawerStateChanged:this._onDrawerStateChanged}),w,l)}},{key:"openDrawer",value:function(){D.Commands.openDrawer((0,y.default)(this._nativeRef.current))}},{key:"closeDrawer",value:function(){D.Commands.closeDrawer((0,y.default)(this._nativeRef.current))}},{key:"blur",value:function(){(0,y.default)(this._nativeRef.current).blur()}},{key:"focus",value:function(){(0,y.default)(this._nativeRef.current).focus()}},{key:"measure",value:function(e){(0,y.default)(this._nativeRef.current).measure(e)}},{key:"measureInWindow",value:function(e){(0,y.default)(this._nativeRef.current).measureInWindow(e)}},{key:"measureLayout",value:function(e,t,n){(0,y.default)(this._nativeRef.current).measureLayout(e,t,n)}},{key:"setNativeProps",value:function(e){(0,y.default)(this._nativeRef.current).setNativeProps(e)}}],[{key:"positions",get:function(){return console.warn('Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value "left" or "right"'),{Left:'left',Right:'right'}}}]),O})(c.Component);R.defaultProps={drawerBackgroundColor:'white'};var B=w.default.create({base:{flex:1,elevation:16},mainSubview:{position:'absolute',top:0,left:0,right:0,bottom:0},drawerSubview:{position:'absolute',top:0,bottom:0},statusBar:{height:p.default.currentHeight},drawerStatusBar:{position:'absolute',top:0,left:0,right:0,height:p.default.currentHeight,backgroundColor:'rgba(0, 0, 0, 0.251)'}});m.exports=R},295,[3,4,5,7,8,9,11,14,27,15,296,175,176,256,299,300]); -__d(function(g,r,i,a,m,_e,d){var t,e=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=o?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=t[u]}l.default=t,n&&n.set(t,l);return l})(r(d[7])),f=r(d[0])(r(d[8])),p=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),v=r(d[0])(r(d[11])),k=r(d[0])(r(d[12]));function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function b(){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}}function _(t){var e,n,l=null!=(e=t.animated)&&e,o=null!=(n=t.showHideTransition)?n:'fade';return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:l}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:l}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:l,transition:o}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var h=(function(t){(0,l.default)(h,t);var c,s,S=(c=h,s=b(),function(){var t,e=(0,u.default)(c);if(s){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function h(){var t;(0,e.default)(this,h);for(var n=arguments.length,l=new Array(n),o=0;o is only supported on iOS.'),0===c.Children.count(this.props.children)?null:c.createElement(s.default,{style:[this.props.style,v.container],nativeID:this.props.nativeID,backgroundColor:this.props.backgroundColor},this.props.children)}}]),b})(c.Component),v=l.default.create({container:{position:'absolute'}});m.exports=h},302,[3,7,8,9,11,14,15,27,175,303]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']});e.default=t},303,[3,181]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),c=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),h=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var l=u?Object.getOwnPropertyDescriptor(e,f):null;l&&(l.get||l.set)?Object.defineProperty(o,f,l):o[f]=e[f]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),p=r(d[0])(r(d[12])),v=r(d[0])(r(d[13])),b=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function k(){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(e){return!1}}var O=(function(_){(0,u.default)(E,_);var O,w,L=(O=E,w=k(),function(){var e,t=(0,l.default)(O);if(w){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,f.default)(this,e)});function E(e){var t;return(0,n.default)(this,E),(t=L.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecesarry()},t._onLayout=function(e){var n=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),n&&t._updateBottomIfNecesarry()},t._updateBottomIfNecesarry=function(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,n=e.duration,o=e.easing,u=e.endCoordinates,f=t._relativeKeyboardHeight(u);t.state.bottom!==f&&(n&&o&&c.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:c.default.Types[o]||'keyboard'}}),t.setState({bottom:f}))}else t.setState({bottom:0})},t.state={bottom:0},t.viewRef=h.createRef(),t}return(0,o.default)(E,[{key:"_relativeKeyboardHeight",value:function(e){var t,n=this._frame;if(!n||!e)return 0;var o=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return Math.max(n.y+n.height-o,0)}},{key:"componentDidMount",value:function(){'ios'===y.default.OS?this._subscriptions=[s.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[s.default.addListener('keyboardDidHide',this._onKeyboardChange),s.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(e){e.remove()})}},{key:"render",value:function(){var n=this.props,o=n.behavior,u=n.children,f=n.contentContainerStyle,l=n.enabled,s=void 0===l||l,c=(n.keyboardVerticalOffset,n.style),y=(0,t.default)(n,b),_=!0===s?this.state.bottom:0;switch(o){case'height':var k;return null!=this._frame&&this.state.bottom>0&&(k={height:this._initialFrameHeight-_,flex:0}),h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:p.default.compose(c,k),onLayout:this._onLayout},y),u);case'position':return h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:c,onLayout:this._onLayout},y),h.createElement(v.default,{style:p.default.compose(f,{bottom:_})},u));case'padding':return h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:p.default.compose(c,{paddingBottom:_}),onLayout:this._onLayout},y),u);default:return h.createElement(v.default,(0,e.default)({ref:this.viewRef,onLayout:this._onLayout,style:c},y),u)}}}]),E})(h.Component);_e.default=O},304,[3,4,5,7,8,9,11,14,254,255,27,15,175,176]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},305,[306]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var c=o?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=e[f]}u.default=e,n&&n.set(e,u);return u})(r(d[6])),c=r(d[0])(r(d[7]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function p(){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(e){return!1}}var s=(function(c){(0,n.default)(h,c);var l,s,v=(l=h,s=p(),function(){var e,t=(0,o.default)(l);if(s){var n=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function h(){return(0,e.default)(this,h),v.apply(this,arguments)}return(0,t.default)(h,[{key:"render",value:function(){var e=r(d[8]);return f.createElement(e,{style:[y.unimplementedView,this.props.style]},this.props.children)}}]),h})(f.Component),y=c.default.create({unimplementedView:{}});m.exports=s},306,[3,7,8,9,11,14,15,175,176]); -__d(function(g,r,i,a,m,_e,d){var t,e,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),p=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=(r(d[0])(r(d[8])),r(d[0])(r(d[9])),r(d[0])(r(d[10])));function h(){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}}var v=r(d[11]),y=0,R=(function(t){(0,l.default)(R,t);var e,n,c=(e=R,n=h(),function(){var t,o=(0,p.default)(e);if(n){var s=(0,p.default)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,u.default)(this,t)});function R(t){var e;return(0,o.default)(this,R),(e=c.call(this,t))._identifier=y++,e}return(0,s.default)(R,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this;if(!0!==this.props.visible)return null;var e={backgroundColor:!0===this.props.transparent?'transparent':'white'},n=this.props.animationType||'none',o=this.props.presentationStyle;o||(o='fullScreen',!0===this.props.transparent&&(o='overFullScreen'));var s=this.props.children;return v.createElement(f.default,{animationType:n,presentationStyle:o,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){t.props.onDismiss&&t.props.onDismiss()},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,identifier:this._identifier,style:b.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange},v.createElement(r(d[12]).VirtualizedListContextResetter,null,v.createElement(r(d[13]).Context.Provider,{value:null},v.createElement(r(d[14]),{style:[b.container,e],collapsable:!1},s))))}},{key:"_shouldSetResponder",value:function(){return!0}}]),R})(v.Component);R.defaultProps={visible:!0,hardwareAccelerated:!1},R.contextType=r(d[15]).RootTagContext;var S=r(d[16]).getConstants().isRTL?'right':'left',b=r(d[17]).create({modal:{position:'absolute'},container:(t={},(0,n.default)(t,S,0),(0,n.default)(t,"top",0),(0,n.default)(t,"flex",1),t)}),C=null!=(e=c.default.unstable_Modal)?e:R;m.exports=C},307,[3,249,7,8,9,11,14,308,102,309,310,15,275,252,176,311,312,175]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_Modal:null}},308,[]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ModalManager');e.default=n},309,[29]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=(0,r(d[0])(r(d[1])).default)('ModalHostView',{interfaceOnly:!0,paperComponentName:'RCTModalHostView'});e.default=o},310,[3,181]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.RootTagContext=void 0,e.createRootTag=function(t){return t};var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var l=c?Object.getOwnPropertyDescriptor(n,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=n[p]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(0);e.RootTagContext=n},311,[15]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(){if(t.default){var n=t.default.getConstants(),f=n.isRTL,L=n.doLeftAndRightSwapInRTL,R=n.localeIdentifier;return{isRTL:f,doLeftAndRightSwapInRTL:L,localeIdentifier:R}}return{isRTL:!1,doLeftAndRightSwapInRTL:!0}})();m.exports={getConstants:function(){return n},allowRTL:function(n){t.default&&t.default.allowRTL(n)},forceRTL:function(n){t.default&&t.default.forceRTL(n)},swapLeftAndRightInRTL:function(n){t.default&&t.default.swapLeftAndRightInRTL(n)},isRTL:n.isRTL,doLeftAndRightSwapInRTL:n.doLeftAndRightSwapInRTL}},312,[3,313]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('I18nManager');e.default=n},313,[29]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),l=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=p(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var f=o?Object.getOwnPropertyDescriptor(n,u):null;f&&(f.get||f.set)?Object.defineProperty(l,u,f):l[u]=n[u]}l.default=n,t&&t.set(n,l);return l})(r(d[4])),o=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),c=["accessible","android_disableSound","android_ripple","cancelable","children","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function p(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(p=function(n){return n?t:s})(n)}function b(n){var t=(0,l.useState)(!1),o=(0,s.default)(t,2),u=o[0],f=o[1];return[u||n,f]}var P=l.memo(l.forwardRef(function(p,P){var y=p.accessible,v=p.android_disableSound,O=p.android_ripple,_=p.cancelable,S=p.children,M=p.delayLongPress,h=p.disabled,j=p.focusable,w=p.onLongPress,I=p.onPress,L=p.onPressIn,R=p.onPressOut,D=p.pressRetentionOffset,k=p.style,W=p.testOnly_pressed,z=p.unstable_pressDelay,E=(0,t.default)(p,c),H=(0,l.useRef)(null);(0,l.useImperativeHandle)(P,function(){return H.current});var N=(0,o.default)(O,H),q=b(!0===W),x=(0,s.default)(q,2),A=x[0],B=x[1],C=(0,r(d[8]).normalizeRect)(p.hitSlop),F=null!=h?(0,n.default)({},p.accessibilityState,{disabled:h}):p.accessibilityState,G=(0,n.default)({},E,null==N?void 0:N.viewProps,{accessible:!1!==y,accessibilityState:F,focusable:!1!==j,hitSlop:C}),J=(0,l.useMemo)(function(){return{cancelable:_,disabled:h,hitSlop:C,pressRectOffset:D,android_disableSound:v,delayLongPress:M,delayPressIn:z,onLongPress:w,onPress:I,onPressIn:function(n){null!=N&&N.onPressIn(n),B(!0),null!=L&&L(n)},onPressMove:null==N?void 0:N.onPressMove,onPressOut:function(n){null!=N&&N.onPressOut(n),B(!1),null!=R&&R(n)}}},[v,N,_,M,h,C,w,I,L,R,D,B,z]),K=(0,u.default)(J);return l.createElement(f.default,(0,n.default)({},G,K,{ref:H,style:'function'==typeof k?k({pressed:A}):k,collapsable:!1}),'function'==typeof S?S({pressed:A}):S,null)}));P.displayName='Pressable';var y=P;e.default=y},314,[3,4,31,5,15,315,202,176,208]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,u){var s=null!=l?l:{},c=s.color,f=s.borderless,p=s.radius,v=s.foreground;return(0,o.useMemo)(function(){if('android'===t.Platform.OS&&t.Platform.Version>=21&&(null!=c||null!=f||null!=p)){var o=(0,t.processColor)(c);(0,n.default)(null==o||'number'==typeof o,'Unexpected color given for Ripple color');var l={type:'RippleAndroid',color:o,borderless:!0===f,rippleRadius:p};return{viewProps:!0===v?{nativeForegroundAndroid:l}:{nativeBackgroundAndroid:l},onPressIn:function(n){var t,o,l=u.current;null!=l&&(r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0),r(d[4]).Commands.setPressed(l,!0))},onPressMove:function(n){var t,o,l=u.current;null!=l&&r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0)},onPressOut:function(n){var t=u.current;null!=t&&r(d[4]).Commands.setPressed(t,!1)}}}return null},[f,c,v,p,u])};var n=r(d[0])(r(d[1])),t=r(d[2]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=l(t);if(o&&o.has(n))return o.get(n);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=s?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=n[c]}u.default=n,o&&o.set(n,u);return u})(r(d[3]));function l(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(n){return n?o:t})(n)}},315,[3,26,18,15,177]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(o,f,c):o[f]=t[f]}o.default=t,n&&n.set(t,o);return o})(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function y(){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}}var h=(function(c){(0,n.default)(O,c);var p,h,b=(p=O,h=y(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function O(){return(0,t.default)(this,O),b.apply(this,arguments)}return(0,e.default)(O,[{key:"render",value:function(){return f.createElement(s.default,{style:[v.dummy,this.props.style]},f.createElement(l.default,{style:v.text},"ProgressViewIOS is not supported on this platform!"))}}]),O})(f.Component),v=c.default.create({dummy:{width:120,height:20,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center'},text:{color:'#333333',margin:5,fontSize:10}});m.exports=h},316,[3,7,8,9,11,14,15,175,186,176]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=c(n);if(u&&u.has(t))return u.get(t);var f={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=o?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,u&&u.set(t,f);return f})(r(d[4])),l=r(d[0])(r(d[5])),p=["emulateUnlessSupported"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(c=function(t){return t?u:n})(t)}if('android'===f.default.OS)t=o.forwardRef(function(t,f){t.emulateUnlessSupported;var c=(0,u.default)(t,p);return o.createElement(l.default,(0,n.default)({},c,{ref:f}))});else{var s=r(d[6]).default;t=o.forwardRef(function(t,u){return o.createElement(s,(0,n.default)({emulateUnlessSupported:!0},t,{ref:u}))})}var v=t;e.default=v},317,[3,4,5,27,15,176,318]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=(0,r(d[0])(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=f},318,[3,181]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(o,f,c):o[f]=t[f]}o.default=t,n&&n.set(t,o);return o})(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function y(){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}}var h=(function(c){(0,n.default)(O,c);var p,h,b=(p=O,h=y(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function O(){return(0,t.default)(this,O),b.apply(this,arguments)}return(0,e.default)(O,[{key:"render",value:function(){return f.createElement(s.default,{style:[v.dummy,this.props.style]},f.createElement(l.default,{style:v.text},"SegmentedControlIOS is not supported on this platform!"))}}]),O})(f.Component),v=c.default.create({dummy:{width:120,height:50,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center'},text:{color:'#333333',margin:5,fontSize:10}});m.exports=h},319,[3,7,8,9,11,14,15,175,186,176]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=c(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=o?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),s=["value","minimumValue","maximumValue","step","onValueChange","onSlidingComplete"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(c=function(t){return t?l:n})(t)}var v,p=l.forwardRef(function(c,p){var b,y=f.default.compose(v.slider,c.style),S=c.value,O=void 0===S?.5:S,h=c.minimumValue,V=void 0===h?0:h,C=c.maximumValue,j=void 0===C?1:C,w=c.step,E=void 0===w?0:w,P=c.onValueChange,x=c.onSlidingComplete,M=(0,n.default)(c,s),R=P?function(t){var n=!0;'android'===u.default.OS&&(n=null!=t.nativeEvent.fromUser&&t.nativeEvent.fromUser),n&&P(t.nativeEvent.value)}:null,_=R,k=x?function(t){x(t.nativeEvent.value)}:null,W=!0===c.disabled||!0===(null==(b=c.accessibilityState)?void 0:b.disabled),D=W?(0,t.default)({},c.accessibilityState,{disabled:!0}):c.accessibilityState;return l.createElement(o.default,(0,t.default)({},M,{accessibilityState:D,enabled:!W,disabled:W,maximumValue:j,minimumValue:V,onChange:_,onResponderTerminationRequest:function(){return!1},onSlidingComplete:k,onStartShouldSetResponder:function(){return!0},onValueChange:R,ref:p,step:E,style:y,value:O}))});v='ios'===u.default.OS?f.default.create({slider:{height:40}}):f.default.create({slider:{}}),m.exports=p},320,[3,4,5,15,27,321,175]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=(0,r(d[0])(r(d[1])).default)('Slider',{interfaceOnly:!0,paperComponentName:'RCTSlider'});e.default=l},321,[3,181]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=C(r(d[5])),f=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),s=C(r(d[8])),v=C(r(d[9])),b=["disabled","ios_backgroundColor","onChange","onValueChange","style","thumbColor","trackColor","value"];function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function C(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}return l.default=t,o&&o.set(t,l),l}var h=function(){return!1},y=function(){return!0},R=u.forwardRef(function(p,C){var R=p.disabled,k=p.ios_backgroundColor,O=p.onChange,w=p.onValueChange,S=p.style,_=p.thumbColor,j=p.trackColor,P=p.value,T=(0,o.default)(p,b),E=null==j?void 0:j.false,M=null==j?void 0:j.true,V=u.useRef(null),F=(0,c.default)(V,C),W=u.useState({value:null}),q=(0,n.default)(W,2),D=q[0],N=q[1],L=function(t){null==O||O(t),null==w||w(t.nativeEvent.value),N({value:t.nativeEvent.value})};if(u.useLayoutEffect(function(){var t,n=!0===P;D.value!==n&&null!=(null==(t=V.current)?void 0:t.setNativeProps)&&('android'===l.default.OS?s.Commands.setNativeValue(V.current,n):v.Commands.setValue(V.current,n))},[P,D]),'android'===l.default.OS){var x,z={enabled:!0!==R,on:!0===P,style:S,thumbTintColor:_,trackColorForFalse:E,trackColorForTrue:M,trackTintColor:!0===P?M:E};return u.createElement(s.default,(0,t.default)({},T,z,{accessibilityRole:null!=(x=p.accessibilityRole)?x:'switch',onChange:L,onResponderTerminationRequest:h,onStartShouldSetResponder:y,ref:F}))}var A,B={disabled:R,onTintColor:M,style:f.default.compose({height:31,width:51},f.default.compose(S,null==k?null:{backgroundColor:k,borderRadius:16})),thumbTintColor:_,tintColor:E,value:!0===P};return u.createElement(v.default,(0,t.default)({},T,B,{accessibilityRole:null!=(A=p.accessibilityRole)?A:'switch',onChange:L,onResponderTerminationRequest:h,onStartShouldSetResponder:y,ref:F}))});e.default=R},322,[3,4,31,5,27,15,175,323,324,325]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,u=new Array(t),o=0;o1&&(be=u.createElement(f.default,null,be)),oe=u.createElement(I,(0,t.default)({ref:ee},o,pe,{accessible:ce,autoCapitalize:ye,blurOnSubmit:ae,caretHidden:se,children:be,disableFullscreenUI:o.disableFullscreenUI,focusable:ie,mostRecentEventCount:H,onBlur:ue,onChange:te,onFocus:le,onScroll:re,onSelectionChange:ne,placeholder:Se,selection:M,style:Ce,text:X,textBreakStrategy:o.textBreakStrategy}))}return u.createElement(p.default.Provider,{value:!0},oe)}var M=u.forwardRef(function(l,o){var c=l.allowFontScaling,s=void 0===c||c,f=l.rejectResponderTermination,p=void 0===f||f,v=l.underlineColorAndroid,C=void 0===v?'transparent':v,y=(0,n.default)(l,F);return u.createElement(A,(0,t.default)({allowFontScaling:s,rejectResponderTermination:p,underlineColorAndroid:C},y,{forwardedRef:o}))});M.propTypes=o.default,M.State={currentlyFocusedInput:v.default.currentlyFocusedInput,currentlyFocusedField:v.default.currentlyFocusedField,focusTextInput:v.default.focusTextInput,blurTextInput:v.default.blurTextInput};var z=s.default.create({multilineInput:{paddingTop:5}});m.exports=M},326,[3,4,5,31,15,327,27,175,186,178,137,26,299,243,202,138,328,330]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=['phoneNumber','link','address','calendarEvent','none','all'];m.exports=r(d[0])({},r(d[1]),{autoCapitalize:r(d[2]).oneOf(['none','sentences','words','characters']),autoComplete:r(d[2]).oneOf(['cc-csc','cc-exp','cc-exp-month','cc-exp-year','cc-number','email','name','password','postal-code','street-address','tel','username','off']),autoCorrect:r(d[2]).bool,spellCheck:r(d[2]).bool,autoFocus:r(d[2]).bool,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,editable:r(d[2]).bool,keyboardType:r(d[2]).oneOf(['default','email-address','numeric','phone-pad','number-pad','url','ascii-capable','numbers-and-punctuation','name-phone-pad','decimal-pad','twitter','web-search','ascii-capable-number-pad','visible-password']),keyboardAppearance:r(d[2]).oneOf(['default','light','dark']),returnKeyType:r(d[2]).oneOf(['done','go','next','search','send','none','previous','default','emergency-call','google','join','route','yahoo']),returnKeyLabel:r(d[2]).string,maxLength:r(d[2]).number,numberOfLines:r(d[2]).number,disableFullscreenUI:r(d[2]).bool,enablesReturnKeyAutomatically:r(d[2]).bool,multiline:r(d[2]).bool,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onBlur:r(d[2]).func,onFocus:r(d[2]).func,onChange:r(d[2]).func,onChangeText:r(d[2]).func,onContentSizeChange:r(d[2]).func,onTextInput:r(d[2]).func,onEndEditing:r(d[2]).func,onSelectionChange:r(d[2]).func,onSubmitEditing:r(d[2]).func,onKeyPress:r(d[2]).func,onLayout:r(d[2]).func,onScroll:r(d[2]).func,placeholder:r(d[2]).string,placeholderTextColor:r(d[3]),scrollEnabled:r(d[2]).bool,secureTextEntry:r(d[2]).bool,selectionColor:r(d[3]),selection:r(d[2]).shape({start:r(d[2]).number.isRequired,end:r(d[2]).number}),value:r(d[2]).string,defaultValue:r(d[2]).string,clearButtonMode:r(d[2]).oneOf(['never','while-editing','unless-editing','always']),clearTextOnFocus:r(d[2]).bool,selectTextOnFocus:r(d[2]).bool,blurOnSubmit:r(d[2]).bool,style:r(d[4]).style,underlineColorAndroid:r(d[3]),inlineImageLeft:r(d[2]).string,inlineImagePadding:r(d[2]).number,rejectResponderTermination:r(d[2]).bool,dataDetectorTypes:r(d[2]).oneOfType([r(d[2]).oneOf(n),r(d[2]).arrayOf(r(d[2]).oneOf(n))]),caretHidden:r(d[2]).bool,contextMenuHidden:r(d[2]).bool,inputAccessoryViewID:r(d[2]).string,textContentType:r(d[2]).oneOf(['none','URL','addressCity','addressCityAndState','addressState','countryName','creditCardNumber','emailAddress','familyName','fullStreetAddress','givenName','jobTitle','location','middleName','name','namePrefix','nameSuffix','nickname','organizationName','postalCode','streetAddressLine1','streetAddressLine2','sublocality','telephoneNumber','username','password','newPassword','oneTimeCode']),showSoftInputOnFocus:r(d[2]).bool})},327,[4,279,193,197,187]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var f=(0,t.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=f;var l=u.get('RCTSinglelineTextInputView',function(){return n.default});e.default=l},328,[3,139,329,152]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n={uiViewClassName:'RCTSinglelineTextInputView',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}}},directEventTypes:{},validAttributes:(0,t.default)({},o.default.validAttributes,{fontSize:!0,fontWeight:!0,fontVariant:!0,textShadowOffset:{diff:r(d[3])},allowFontScaling:!0,fontStyle:!0,textTransform:!0,textAlign:!0,fontFamily:!0,lineHeight:!0,isHighlighted:!0,writingDirection:!0,textDecorationLine:!0,textShadowRadius:!0,letterSpacing:!0,textDecorationStyle:!0,textDecorationColor:{process:r(d[4])},color:{process:r(d[4])},maxFontSizeMultiplier:!0,textShadowColor:{process:r(d[4])},editable:!0,inputAccessoryViewID:!0,caretHidden:!0,enablesReturnKeyAutomatically:!0,placeholderTextColor:{process:r(d[4])},onSelectionChange:!0,clearButtonMode:!0,onContentSizeChange:!0,keyboardType:!0,selection:!0,returnKeyType:!0,blurOnSubmit:!0,mostRecentEventCount:!0,onChange:!0,scrollEnabled:!0,selectionColor:{process:r(d[4])},contextMenuHidden:!0,secureTextEntry:!0,onTextInput:!0,placeholder:!0,autoCorrect:!0,onScroll:!0,multiline:!0,textContentType:!0,maxLength:!0,autoCapitalize:!0,keyboardAppearance:!0,passwordRules:!0,spellCheck:!0,selectTextOnFocus:!0,text:!0,clearTextOnFocus:!0})};m.exports=n},329,[3,4,141,148,143]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var f=(0,t.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=f;var l=u.get('RCTMultilineTextInputView',function(){return n.default});e.default=l},330,[3,139,329,152]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),o=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(e);if(o&&o.has(t))return o.get(t);var E={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var l=s?Object.getOwnPropertyDescriptor(t,n):null;l&&(l.get||l.set)?Object.defineProperty(E,n,l):E[n]=t[n]}E.default=t,o&&o.set(t,E)})(r(d[3])),r(d[0])(r(d[4]))),E=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),n=r(d[0])(r(d[7])),l=r(d[0])(r(d[8]));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:e})(t)}var h=function(t){var e=t.touches,o=t.changedTouches,E=e&&e.length>0,s=o&&o.length>0;return!E&&s?o[0]:E?e[0]:t},R='NOT_RESPONDER',_='RESPONDER_INACTIVE_PRESS_IN',c='RESPONDER_INACTIVE_PRESS_OUT',S='RESPONDER_ACTIVE_PRESS_IN',T='RESPONDER_ACTIVE_PRESS_OUT',P='RESPONDER_ACTIVE_LONG_PRESS_IN',D='RESPONDER_ACTIVE_LONG_PRESS_OUT',N='ERROR',O={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},p=(0,e.default)({},O,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),f=(0,e.default)({},O,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),A=(0,e.default)({},O,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),b='DELAY',I='RESPONDER_GRANT',L='RESPONDER_RELEASE',v='RESPONDER_TERMINATED',y='ENTER_PRESS_RECT',C='LEAVE_PRESS_RECT',G='LONG_PRESS_DETECTED',V={NOT_RESPONDER:{DELAY:N,RESPONDER_GRANT:_,RESPONDER_RELEASE:N,RESPONDER_TERMINATED:N,ENTER_PRESS_RECT:N,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_IN:{DELAY:S,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:N},error:{DELAY:R,RESPONDER_GRANT:_,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:R}},H={componentDidMount:function(){E.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=R,this.state.touchable.responderID=e,this._receiveSignal(I,t);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),o):this._handleDelay(t);var E=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;E=isNaN(E)?370:E,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),E+o)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(L,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(v,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,E=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=E.left,n=E.top,l=E.right,u=E.bottom,R=this.touchableGetHitSlop?this.touchableGetHitSlop():null;R&&(s+=R.left||0,n+=R.top||0,l+=R.right||0,u+=R.bottom||0);var c=h(t.nativeEvent),S=c&&c.pageX,T=c&&c.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(S,T,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(S>e.left-s&&T>e.top-n&&S>`");E!==s&&(this._performSideEffectsForTransition(E,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===S||t===P},_savePressInLocation:function(t){var e=h(t.nativeEvent),o=e&&e.pageX,E=e&&e.pageY,s=e&&e.locationX,n=e&&e.locationY;this.pressInLocation={pageX:o,pageY:E,locationX:s,locationY:n}},_getDistanceBetweenPoints:function(t,e,o,E){var s=t-o,n=e-E;return Math.sqrt(s*s+n*n)},_performSideEffectsForTransition:function(t,e,o,s){var n=this._isHighlight(t),u=this._isHighlight(e);(o===v||o===L)&&this._cancelLongPressDelayTimeout();var h=t===R&&e===_,c=!p[t]&&p[e];if((h||c)&&this._remeasureMetricsOnActivation(),f[t]&&o===G&&this.touchableHandleLongPress&&this.touchableHandleLongPress(s),u&&!n?this._startHighlight(s):!u&&n&&this._endHighlight(s),f[t]&&o===L){var S=!!this.props.onLongPress,T=A[t]&&(!S||!this.touchableLongPressCancelsPress());(!A[t]||T)&&this.touchableHandlePress&&(u||n||(this._startHighlight(s),this._endHighlight(s)),'android'!==E.default.OS||this.props.touchSoundDisabled||l.default.playTouchSound(),this.touchableHandlePress(s))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){e.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},M=(H.touchableHandleFocus,H.touchableHandleBlur,(0,t.default)(H,["touchableHandleFocus","touchableHandleBlur"]));H.withoutDefaultFocusAndBlur=M;var w={Mixin:H,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=w},331,[3,5,4,15,332,27,334,50,204]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n},332,[3,333]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},o=function(n){(0,t.default)(n instanceof this,'Trying to release an instance into a pool of a different type.'),n.destructor(),this.instancePool.length=0;n--)if(t[n]())return;i.exitApp()});var i={exitApp:function(){n.default&&n.default.invokeDefaultBackPressHandler()},addEventListener:function(n,f){return-1===t.indexOf(f)&&t.push(f),{remove:function(){return i.removeEventListener(n,f)}}},removeEventListener:function(n,i){-1!==t.indexOf(i)&&t.splice(t.indexOf(i),1)}};m.exports=i},347,[3,348,20]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DeviceEventManager');e.default=n},348,[29]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=(r(d[0])(r(d[7])),r(d[0])(r(d[8]))),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=u?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,n&&n.set(t,o);return o})(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function f(){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}}var h=(function(l){(0,n.default)(b,l);var p,h,y=(p=b,h=f(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function b(){var e;(0,t.default)(this,b);for(var n=arguments.length,o=new Array(n),u=0;uthis.eventPool.length&&this.eventPool.push(e)}function T(e){e.getPooled=_,e.eventPool=[],e.release=R}n(i[2])(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:x,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=x,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,T(r),r},T(P);var E=P.extend({touchHistory:function(){return null}});function N(e){return"topTouchStart"===e}function C(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function H(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function Q(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var j,B={instrument:function(e){j=e},recordTouchTrack:function(e,n){if(null!=j&&j(e,n),C(e))n.changedTouches.forEach(H);else if(N(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(Q),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;e=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function wn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-_n(n)]=t}function xn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0 component.");return t=$n,$n+=2,{node:Ln(t,"RCTRawText",n,{text:e},r)}}var Kn=setTimeout,Zn=clearTimeout;function et(e){var n=e.node,t=an(null,Ge,{style:{display:"none"}},e.canonical.viewConfig.validAttributes);return{node:Dn(n,t),canonical:e.canonical}}function nt(e,n,t){return n="",t&&(n=" (created by "+t+")"),"\n in "+(e||"Unknown")+n}function tt(e,n){return e?nt(e.displayName||e.name||null,n,null):""}var rt=Object.prototype.hasOwnProperty,lt=[],at=-1;function it(e){return{current:e}}function ut(e){0>at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){lt[++at]=e.current,e.current=n}var st={},ct=it(st),dt=it(!1),ft=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(){ut(dt),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(dt,t)}function vt(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((We(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,ft=ct.current,ot(ct,e),ot(dt,dt.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,ft),r.__reactInternalMemoizedMergedChildContext=e,ut(dt),ut(ct),ot(ct,e)):ut(dt),ot(dt,t)}var St=null,kt=!1,wt=!1;function xt(){if(!wt&&null!==St){wt=!0;var e=0,t=En;try{var r=St;for(En=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===_e&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case xe:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===_e){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=nr(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===_e?((r=ti(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=ni(a.type,a.key,a.props,null,e.mode,u)).ref=nr(e,r,a),u.return=e,e=u)}return i(e);case Pe:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ai(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(je(a))return g(e,r,a,u);tr(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=li(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((We(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var lr=rr(!0),ar=rr(!1),ir={},ur=it(ir),or=it(ir),sr=it(ir);function cr(e){if(e===ir)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function dr(e,n){ot(sr,n),ot(or,e),ot(ur,ir),ut(ur),ot(ur,{isInAParentText:!1})}function fr(){ut(ur),ut(or),ut(sr)}function pr(e){cr(sr.current);var n=cr(ur.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(or,e),ot(ur,t))}function hr(e){or.current===e&&(ut(ur),ut(or))}var gr=it(0);function mr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||zn()||zn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vr=[];function br(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,Pr=xr=null,n.updateQueue=null,yr.current=tl,e=t(r,l)}while(Rr)}if(yr.current=Zr,n=null!==xr&&null!==xr.next,kr=0,Pr=xr=wr=null,_r=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e,Pr}function zr(){if(null===xr){var e=wr.alternate;e=null!==e?e.memoizedState:null}else e=xr.next;var n=null===Pr?wr.memoizedState:Pr.next;if(null!==n)Pr=n,xr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(xr=e).memoizedState,baseState:xr.baseState,baseQueue:xr.baseQueue,queue:xr.queue,next:null},null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e}return Pr}function Ir(e,n){return"function"==typeof n?n(e):n}function Lr(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=xr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((kr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,wr.lanes|=c,da|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,_t(r,n.memoizedState)||(sl=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,wr.lanes|=a,da|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Ur(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);_t(a,n.memoizedState)||(sl=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function Mr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionSecondary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(kr&e)===e)&&(n._workInProgressVersionSecondary=r,vr.push(n))),e)return t(n._source);throw vr.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Fr(e,n,t,r){var l=la;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=yr.current,o=u.useState(function(){return Mr(l,n,t)}),s=o[1],c=o[0];o=Pr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=wr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);_t(i,e)||(e=t(n._source),_t(c,e)||(s(e),e=Ta(g),l.mutableReadLanes|=e&l.pendingLanes),Pn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=Ta(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),_t(p,t)&&_t(h,n)&&_t(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:c}).dispatch=s=Kr.bind(null,wr,e),o.queue=e,o.baseQueue=null,c=Mr(l,n,t),o.memoizedState=o.baseState=c),c}function Dr(e,n,t){return Fr(zr(),e,n,t)}function Ar(e){var n=Cr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:e}).dispatch=Kr.bind(null,wr,e),[n.memoizedState,e]}function Hr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=wr.updateQueue)?(n={lastEffect:null},wr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Qr(){return zr().memoizedState}function jr(e,n,t,r){var l=Cr();wr.flags|=e,l.memoizedState=Hr(1|n,t,void 0,void 0===r?null:r)}function Br(e,n,t,r){var l=zr();r=void 0===r?null:r;var a=void 0;if(null!==xr){var i=xr.memoizedState;if(a=i.destroy,null!==r&&Er(r,i.deps))return void(l.memoizedState=Hr(n,t,a,r))}wr.flags|=e,l.memoizedState=Hr(1|n,t,a,r)}function Wr(e,n){return jr(1049600,4,e,n)}function Or(e,n){return Br(1024,4,e,n)}function Vr(e,n){return Br(4,2,e,n)}function Yr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function qr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Br(4,2,Yr.bind(null,n,e),t)}function Xr(){}function $r(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Gr(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Jr(e,n){var t=En;En=0!==t&&4>t?t:4,e(!0);var r=Sr.transition;Sr.transition=1;try{e(!1),n()}finally{En=t,Sr.transition=r}}function Kr(e,n,t){var r=Ra(),l=Ta(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===wr||null!==i&&i===wr)Rr=_r=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==la&&0!=(1&e.mode)&&0==(8&ra)){var u=n.interleaved;null===u?(a.next=a,null===At?At=[n]:At.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,_t(s,o))return}catch(e){}a=Ea(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Pn(a,l))}}var Zr={readContext:Dt,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useOpaqueIdentifier:Tr,unstable_isNewReconciler:!1},el={readContext:Dt,useCallback:function(e,n){return Cr().memoizedState=[e,void 0===n?null:n],e},useContext:Dt,useEffect:Wr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,jr(4,2,Yr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return jr(4,2,e,n)},useMemo:function(e,n){var t=Cr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Cr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=Kr.bind(null,wr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cr().memoizedState=e},useState:Ar,useDebugValue:Xr,useDeferredValue:function(e){var n=Ar(e),t=n[0],r=n[1];return Wr(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){var e=Ar(!1),n=e[0];return e=Jr.bind(null,e[1]),Cr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Cr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Fr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},nl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Lr,useRef:Qr,useState:function(){return Lr(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Lr(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Lr(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Lr(Ir)[0]},unstable_isNewReconciler:!1},tl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Ur,useRef:Qr,useState:function(){return Ur(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Ur(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Ur(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Ur(Ir)[0]},unstable_isNewReconciler:!1};function rl(e,n){try{var t="",r=n;do{t+=Tt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function ll(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,n,t){(t=Bt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ma||(ma=!0,va=r),ll(e,n)},t}function ul(e,n,t){(t=Bt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return ll(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===ba?ba=new Set([this]):ba.add(this),ll(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var ol=we.ReactCurrentOwner,sl=!1;function cl(e,n,t,r){n.child=null===e?ar(n,null,t,r):lr(n,e.child,t,r)}function dl(e,n,t,r,l){t=t.render;var a=n.ref;return Ft(n,l),r=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function fl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||Ka(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=ni(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,pl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:Rt)(l,r)&&e.ref===n.ref)?Ll(e,n,a):(n.flags|=1,(e=ei(i,r)).ref=n.ref,e.return=n,n.child=e)}function pl(e,n,t,r,l,a){if(null!==e&&Rt(e.memoizedProps,r)&&e.ref===n.ref){if(sl=!1,0==(a&l))return n.lanes=e.lanes,Ll(e,n,a);0!=(32768&e.flags)&&(sl=!0)}return ml(e,n,t,r,a)}function hl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},ot(oa,ua),ua|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,ot(oa,ua),ua|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,ot(oa,ua),ua|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(oa,ua),ua|=r;return cl(e,n,l,t),n.child}function gl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function ml(e,n,t,r,l){var a=ht(t)?ft:ct.current;return a=pt(n,a),Ft(n,l),t=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function vl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Ft(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),Kt(n,t,r),er(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Dt(s):s=pt(n,s=ht(t)?ft:ct.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Zt(n,i,r,s),Ht=!1;var f=n.memoizedState;i.state=f,Yt(n,r,i,l),o=n.memoizedState,u!==r||f!==o||dt.current||Ht?("function"==typeof c&&($t(n,t,c,r),o=n.memoizedState),(u=Ht||Jt(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,jt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Et(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Dt(o):o=pt(n,o=ht(t)?ft:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Zt(n,i,r,o),Ht=!1,f=n.memoizedState,i.state=f,Yt(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||dt.current||Ht?("function"==typeof p&&($t(n,t,p,r),h=n.memoizedState),(s=Ht||Jt(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return bl(e,n,t,r,a,l)}function bl(e,n,t,r,l,a){gl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),Ll(e,n,a);r=n.stateNode,ol.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=lr(n,e.child,null,a),n.child=lr(n,null,u,a)):cl(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function yl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),dr(e,n.containerInfo)}var Sl,kl,wl,xl,Pl={dehydrated:null,retryLane:0};function _l(e){return{baseLanes:e,cachePool:null}}function Rl(e,n,t){var r,l=n.pendingProps,a=gr.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),ot(gr,1&a),null===e?(e=l.children,a=l.fallback,i?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,e):"number"==typeof l.unstable_expectedLoadTime?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,n.lanes=4194304,e):((t=ri({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=Nl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?_l(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=Pl,l):(t=El(e,n,l.children,t),n.memoizedState=null,t))}function Tl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=ri(n,l,0,null),t=ti(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function El(e,n,t,r){var l=e.child;return e=l.sibling,t=ei(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function Nl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=ei(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=ei(i,r):(r=ti(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Cl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),Mt(e.return,n)}function zl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Il(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(cl(e,n,r.children,t),0!=(2&(r=gr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Cl(e,t);else if(19===e.tag)Cl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(gr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===mr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),zl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===mr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}zl(n,!0,t,null,a);break;case"together":zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ll(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),da|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=ei(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=ei(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Ul(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(6454&e.flags)||0!=(6454&e.subtreeFlags))return!1;e=e.sibling}return!0}function Ml(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Qn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Qn(e,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Ml(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function Fl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Al(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:return ht(t.type)&>(),Dl(t),null;case 3:return l=t.stateNode,fr(),ut(dt),ut(ct),br(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),kl(e,t),Dl(t),null;case 5:hr(t),r=cr(sr.current);var a=t.type;if(null!==e&&null!=t.stateNode)wl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Dl(t),null}cr(ur.current),e=$n,$n+=2,a=Xn(a);var u=an(null,Ge,l,a.validAttributes);r=Ln(e,a.uiViewClassName,r,u,t),e=new Gn(e,a,l,t),Sl(e={node:r,canonical:e},t,!1,!1),t.stateNode=e,null!==t.ref&&(t.flags|=256)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)xl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=cr(sr.current),r=cr(ur.current),t.stateNode=Jn(l,e,r,t)}return Dl(t),null;case 13:return ut(gr),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&gr.current)?0===sa&&(sa=3):(0!==sa&&3!==sa||(sa=4),null===la||0==(268435455&da)&&0==(268435455&fa)||Ia(la,ia))),l&&(t.flags|=4),Dl(t),null);case 4:return fr(),kl(e,t),Dl(t),null;case 10:return Ut(t.type._context),Dl(t),null;case 17:return ht(t.type)&>(),Dl(t),null;case 19:if(ut(gr),null===(a=t.memoizedState))return Dl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Fl(a,!1);else{if(0!==sa||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=mr(e))){for(t.flags|=128,Fl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return ot(gr,1&gr.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ga&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=mr(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Fl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return Dl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ga&&1073741824!==r&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=gr.current,ot(gr,l?1&e|2:1&e),t):(Dl(t),null);case 22:case 23:return Ua(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ua)&&0!=(1&t.mode)||Dl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Hl(e){switch(e.tag){case 1:ht(e.type)&>();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(fr(),ut(dt),ut(ct),br(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return hr(e),null;case 13:return ut(gr),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return ut(gr),null;case 4:return fr(),null;case 10:return Ut(e.type._context),null;case 22:case 23:return Ua(),null;case 24:default:return null}}Sl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Hn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Hn(e.node,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Sl(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},kl=function(e,n){var t=n.stateNode;if(!Ul(e,n)){e=t.containerInfo;var r=An(e);Ml(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,jn(e,r)}},wl=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=Ul(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;cr(ur.current);var i=null;l!==r&&(l=an(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?Dn(l,r):Un(l):null!==r?Fn(l,r):Mn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:Sl(t,n,!1,!1))}},xl=function(e,n,t,r){t!==r?(e=cr(sr.current),t=cr(ur.current),n.stateNode=Jn(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Ql="function"==typeof WeakSet?WeakSet:Set,jl=null;function Bl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){qa(e,n,t)}else t.current=null}var Wl=!1;function Ol(e,n){for(jl=n;null!==jl;)if(n=(e=jl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,jl=n;else for(;null!==jl;){e=jl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Et(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){qa(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,jl=n;break}jl=e.return}return t=Wl,Wl=!1,t}function Vl(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){qa(i,u,e)}}}l=l.next}while(l!==r)}}function Yl(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ql(e){var n=e.alternate;null!==n&&(e.alternate=null,ql(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Vl(3,t,t.return);case 12:return;case 13:return null!==t.memoizedState&&(ha=n(i[4]).unstable_now()),void $l(t);case 19:return void $l(t);case 22:case 23:return}e:{switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:break e}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function $l(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Ql),n.forEach(function(n){var r=$a.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Gl(e,n){for(jl=n;null!==jl;){if(null!==(n=(e=jl).deletions))for(var t=0;ta&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Zl(l/1960))-l)){e.timeoutHandle=Kn(Wa.bind(null,e),l);break}Wa(e);break;case 5:Wa(e);break;default:throw Error("Unknown root exit status.")}}return Ca(e,n(i[4]).unstable_now()),e.callbackNode===r?za.bind(null,e):null}function Ia(e,n){for(n&=~pa,n&=~fa,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==sa&&(sa=2),o=rl(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,il(p,a,n));break e;case 1:a=o;var w=p.type,x=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ba||!ba.has(x)))){p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,ul(p,a,n));break e}}p=p.return}while(null!==p)}Ba(t)}catch(e){n=e,aa===t&&null!==t&&(aa=t=t.return);continue}break}}function Da(){var e=ea.current;return ea.current=Zr,null===e?Zr:e}function Aa(e,n){var t=ra;ra|=8;var r=Da();for(la===e&&ia===n||Ma(e,n);;)try{Ha();break}catch(n){Fa(e,n)}if(Lt(),ra=t,ea.current=r,null!==aa)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return la=null,ia=0,sa}function Ha(){for(;null!==aa;)ja(aa)}function Qa(){for(;null!==aa&&!n(i[4]).unstable_shouldYield();)ja(aa)}function ja(e){var n=Kl(e.alternate,e,ua);e.memoizedProps=e.pendingProps,null===n?Ba(e):aa=n,na.current=null}function Ba(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Al(t,n,ua)))return void(aa=t)}else{if(null!==(t=Hl(n)))return t.flags&=8191,void(aa=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(aa=n);aa=n=e}while(null!==n);0===sa&&(sa=5)}function Wa(e){var n=En,t=ta.transition;try{ta.transition=0,En=1,Oa(e,n)}finally{ta.transition=t,En=n}return null}function Oa(e,t){do{Va()}while(null!==Sa);if(0!=(24&ra))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(xn(e,a),e===la&&(aa=la=null,ia=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ya||(ya=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Va(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=ta.transition,ta.transition=0;var u=En;En=1;var o=ra;ra|=16,na.current=null,Ol(e,r),Gl(e,r),e.current=r,Jl(r),n(i[4]).unstable_requestPaint(),ra=o,En=u,ta.transition=a}else e.current=r;if(ya&&(ya=!1,Sa=e,ka=l),0===(a=e.pendingLanes)&&(ba=null),0!=(1&a)?e===xa?wa++:(wa=0,xa=e):wa=0,hn(r.stateNode),Ca(e,n(i[4]).unstable_now()),ma)throw ma=!1,e=va,va=null,e;return 0!=(4&ra)?null:(0!=(1&ka)&&0!==e.tag&&Va(),xt(),null)}function Va(){if(null!==Sa){var e=Nn(ka),n=ta.transition,t=En;try{if(ta.transition=0,En=16>e?16:e,null===Sa)var r=!1;else{if(e=Sa,Sa=null,ka=0,0!=(24&ra))throw Error("Cannot flush passive effects while already rendering.");var l=ra;for(ra|=16,jl=e.current;null!==jl;){var a=jl,i=a.child;if(0!=(16&jl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-ha?Ma(e,0):pa|=r),Ca(e,t)}function $a(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=mn,0==(130023424&(mn<<=1))&&(mn=4194304))),t=Ra(),null!==(e=Na(e,n))&&(wn(e,n,t),Ca(e,t))}function Ga(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ja(e,n,t,r){return new Ga(e,n,t,r)}function Ka(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Za(e){if("function"==typeof e)return Ka(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Ce)return 11;if(e===Le)return 14}return 2}function ei(e,n){var t=e.alternate;return null===t?((t=Ja(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ni(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Ka(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _e:return ti(t.children,l,a,n);case Me:i=8,l|=4;break;case Re:i=8,l|=8;break;case Te:return(e=Ja(12,t,n,2|l)).elementType=Te,e.lanes=a,e;case ze:return(e=Ja(13,t,n,l)).elementType=ze,e.lanes=a,e;case Ie:return(e=Ja(19,t,n,l)).elementType=Ie,e.lanes=a,e;case Fe:return ri(t,l,a,n);case De:return(e=Ja(23,t,n,l)).elementType=De,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ee:i=10;break e;case Ne:i=9;break e;case Ce:i=11;break e;case Le:i=14;break e;case Ue:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ja(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function ti(e,n,t,r){return(e=Ja(7,e,r,n)).lanes=t,e}function ri(e,n,t,r){return(e=Ja(22,e,r,n)).elementType=Fe,e.lanes=t,e}function li(e,n,t){return(e=Ja(6,e,null,n)).lanes=t,e}function ai(e,n,t){return(n=Ja(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ii(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=kn(0),this.expirationTimes=kn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0)}function ui(e,n,t){var r=3=t.length?{done:!0}:{done:!1,value:t[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.")}function f(t,n){if(t){if("string"==typeof t)return s(t,n);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?s(t,n):void 0}}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var u=0,o=new Array(n);ui&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n},378,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),t=r(d[0])(r(d[4])),E=r(d[0])(r(d[5])),A=r(d[0])(r(d[6])),_=r(d[0])(r(d[7])),u=Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'}),S=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE'}),O=new((function(){function O(){(0,o.default)(this,O),this.PERMISSIONS=S,this.RESULTS=u}return(0,t.default)(O,[{key:"checkPermission",value:function(n){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),(0,_.default)(A.default,'PermissionsAndroid is not installed correctly.'),A.default.checkPermission(n)}},{key:"check",value:function(n){return(0,_.default)(A.default,'PermissionsAndroid is not installed correctly.'),A.default.checkPermission(n)}},{key:"requestPermission",value:function(s,o){var t;return n.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),E.next=4;break;case 4:return E.next=6,n.default.awrap(this.request(s,o));case 6:return t=E.sent,E.abrupt("return",t===this.RESULTS.GRANTED);case 8:case"end":return E.stop()}},null,this,null,Promise)}},{key:"request",value:function(o,t){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:u.next=3;break;case 3:if((0,_.default)(A.default,'PermissionsAndroid is not installed correctly.'),!t){u.next=10;break}return u.next=7,n.default.awrap(A.default.shouldShowRequestPermissionRationale(o));case 7:if(!u.sent||!E.default){u.next=10;break}return u.abrupt("return",new Promise(function(n,_){var u=(0,s.default)({},t);E.default.showAlert(u,function(){return _(new Error('Error showing rationale'))},function(){return n(A.default.requestPermission(o))})}));case 10:return u.abrupt("return",A.default.requestPermission(o));case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"requestMultiple",value:function(n){return(0,_.default)(A.default,'PermissionsAndroid is not installed correctly.'),A.default.requestMultiplePermissions(n)}}]),O})());m.exports=O},379,[3,82,4,7,8,120,380,26]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PermissionsAndroid');e.default=n},380,[29]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=new n.default('ios'!==c.default.OS?null:l.default),s=new Map,v=(function(){function n(o){var l=this;(0,t.default)(this,n),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=o.remote,this._isRemote&&(this._notificationId=o.notificationId),o.remote?Object.keys(o).forEach(function(t){var n=o[t];'aps'===t?(l._alert=n.alert,l._sound=n.sound,l._badgeCount=n.badge,l._category=n.category,l._contentAvailable=n['content-available'],l._threadID=n['thread-id']):l._data[t]=n}):(this._badgeCount=o.applicationIconBadgeNumber,this._sound=o.soundName,this._alert=o.alertBody,this._data=o.userInfo,this._category=o.category)}return(0,o.default)(n,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(t,o){var l;(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===t?l=f.addListener("remoteNotificationReceived",function(t){o(new n(t))}):'localNotification'===t?l=f.addListener("localNotificationReceived",function(t){o(new n(t))}):'register'===t?l=f.addListener("remoteNotificationsRegistered",function(t){o(t.deviceToken)}):'registrationError'===t&&(l=f.addListener("remoteNotificationRegistrationError",function(t){o(t)})),s.set(t,l)}},{key:"removeEventListener",value:function(t,o){(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=s.get(t);n&&(n.remove(),s.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,u.default)('function'==typeof t,'Must provide a valid callback'),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getInitialNotification().then(function(t){return t&&new n(t)})}},{key:"getAuthorizationStatus",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getAuthorizationStatus(t)}}]),n})();v.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=v},381,[3,7,8,102,382,26,27]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PushNotificationManager');e.default=n},382,[29]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={get:function(n){return console.warn('Settings is not yet supported on Android'),null},set:function(n){console.warn('Settings is not yet supported on Android')},watchKeys:function(n,t){return console.warn('Settings is not yet supported on Android'),-1},clearWatch:function(n){console.warn('Settings is not yet supported on Android')}};m.exports=n},383,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),l=(r(d[0])(r(d[4])),r(d[0])(r(d[5]))),o=(function(){function o(){(0,n.default)(this,o)}return(0,s.default)(o,null,[{key:"share",value:function(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[6])('object'==typeof n&&null!==n,'Content to share must be a valid object'),r(d[6])('string'==typeof n.url||'string'==typeof n.message,'At least one of URL and message is required'),r(d[6])('object'==typeof s&&null!==s,'Options must be a valid object'),r(d[6])(l.default,'ShareModule should be registered on Android.'),r(d[6])(null==n.title||'string'==typeof n.title,'Invalid title: title should be a string.');var o={title:n.title,message:'string'==typeof n.message?n.message:void 0};return l.default.share(o,s.dialogTitle).then(function(n){return(0,t.default)({activityType:null},n)})}}]),o})();o.sharedAction='sharedAction',o.dismissedAction='dismissedAction',m.exports=o},384,[3,4,7,8,338,385,26]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ShareModule');e.default=n},385,[29]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),f=t.default.getConstants(),n={SHORT:f.SHORT,LONG:f.LONG,TOP:f.TOP,BOTTOM:f.BOTTOM,CENTER:f.CENTER,show:function(f,n){t.default.show(f,n)},showWithGravity:function(f,n,o){t.default.showWithGravity(f,n,o)},showWithGravityAndOffset:function(f,n,o,O,s){t.default.showWithGravityAndOffset(f,n,o,O,s)}};m.exports=n},386,[3,387]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ToastAndroid');e.default=n},387,[29]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,n.useMemo)(function(){return{getCurrentValue:function(){return u.default.getColorScheme()},subscribe:function(n){var t=u.default.addChangeListener(n);return function(){t.remove()}}}},[]);return(0,r(d[3]).useSubscription)(t)};var n=r(d[0]),u=r(d[1])(r(d[2]))},388,[15,3,339,389]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},389,[390]); -__d(function(g,r,i,_a,m,e,d){'use strict';e.useSubscription=function(t){return r(d[0]).useSyncExternalStore(t.subscribe,t.getCurrentValue)}},390,[391]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},391,[392]); -__d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r(function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})},[t,c,n]),u(function(){return a(f)&&S({inst:f}),t(function(){a(f)&&S({inst:f})})},[t]),s(c),c}},392,[15]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var f=(0,u.useState)(function(){return n.default.get('window')}),o=(0,t.default)(f,2),c=o[0],l=o[1];return(0,u.useEffect)(function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var u=n.default.addEventListener('change',t);return t({window:n.default.get('window')}),function(){u.remove()}},[c]),c};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3])},393,[3,31,163,15]); -__d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},394,[169]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=400;var o={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');t.default.vibrateByPattern(o,f?0:-1)}},cancel:function(){t.default.cancel()}};m.exports=o},395,[3,396]); -__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Vibration');e.default=n},396,[29]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var n;n=(function(n){r(d[3])(o,n);var e,u,c=(e=o,u=t(),function(){var t,n=r(d[0])(e);if(u){var c=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function o(){return r(d[4])(this,o),c.apply(this,arguments)}return r(d[5])(o,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),o})(r(d[2]).Component),m.exports=n},397,[14,11,15,9,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(o){throw new Error('DynamicColorIOS is not available on this platform.')}},398,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).shape({x:r(d[0]).number,y:r(d[0]).number});m.exports=n},399,[193]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=u.forwardRef(function(l,c){var p=Object.keys(l).reduce(function(t,n){var u=o;return u.includes(n)&&(t[n]=l[n]),t},(0,t.default)({},f)),s=(0,u.useRef)(),v=(0,u.useRef)();return(0,u.useImperativeHandle)(c,function(){var t=v.current;return s.current&&t?(s.current.handlerTag=t.handlerTag,s.current):null},[s,v]),u.createElement(r(d[4]).NativeViewGestureHandler,(0,t.default)({},p,{ref:v}),u.createElement(n,(0,t.default)({},l,{ref:s})))});return l.displayName=n.displayName||'ComponentWrapper',l};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var o=[].concat((0,n.default)(r(d[4]).nativeViewProps),['onGestureHandlerEvent','onGestureHandlerStateChange'])},400,[3,4,42,15,401]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.nativeViewProps=e.NativeViewGestureHandler=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=[].concat((0,t.default)(r(d[3]).baseProps),['shouldActivateOnStart','disallowInterruption']);e.nativeViewProps=o;var l=(0,n.default)({name:'NativeViewGestureHandler',allowedProps:o,config:{}});e.NativeViewGestureHandler=l},401,[3,42,402,406]); -__d(function(g,_r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var t=e.name,f=e.allowedProps,E=void 0===f?[]:f,w=e.config,S=void 0===w?{}:w,C=e.transformProps,T=e.customNativeProps,N=void 0===T?[]:T,R=(function(e){(0,u.default)(R,e);var f,w,T=(f=R,w=H(),function(){var e,t=(0,s.default)(f);if(w){var n=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function R(e){var n;if((0,r.default)(this,R),(n=T.call(this,e)).updateEnqueued=null,n.onGestureHandlerEvent=function(e){e.nativeEvent.handlerTag===n.handlerTag?null==n.props.onGestureEvent||n.props.onGestureEvent(e):null==n.props.onGestureHandlerEvent||n.props.onGestureHandlerEvent(e)},n.onGestureHandlerStateChange=function(e){if(e.nativeEvent.handlerTag===n.handlerTag){null==n.props.onHandlerStateChange||n.props.onHandlerStateChange(e);var t=e.nativeEvent.state,r=j[t],o=r&&n.props[r];o&&'function'==typeof o&&o(e)}else null==n.props.onGestureHandlerStateChange||n.props.onGestureHandlerStateChange(e)},n.refHandler=function(e){n.viewNode=e;var t=p.Children.only(n.props.children),r=t.ref;null!==r&&('function'==typeof r?r(e):r.current=e)},n.createGestureHandler=function(e){n.config=e,y.default.createGestureHandler(t,n.handlerTag,e)},n.attachGestureHandler=function(e){n.viewTag=e,'web'===h.Platform.OS?y.default.attachGestureHandler(n.handlerTag,e,n.propsRef):y.default.attachGestureHandler(n.handlerTag,e)},n.updateGestureHandler=function(e){n.config=e,y.default.updateGestureHandler(n.handlerTag,e)},n.handlerTag=O++,n.config={},n.propsRef=p.createRef(),e.id){if(void 0!==P[e.id])throw new Error("Handler with ID \""+e.id+"\" already registered");P[e.id]=n.handlerTag}return n}return(0,o.default)(R,[{key:"componentDidMount",value:function(){var e=this,t=this.props;_(t)&&(this.updateEnqueued=setImmediate(function(){e.updateEnqueued=null,e.update()})),this.createGestureHandler(A(C?C(this.props):this.props,[].concat((0,n.default)(E),(0,n.default)(N)),S)),this.attachGestureHandler(G(this.viewNode))}},{key:"componentDidUpdate",value:function(){var e=G(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update()}},{key:"componentWillUnmount",value:function(){y.default.dropGestureHandler(this.handlerTag),this.updateEnqueued&&clearImmediate(this.updateEnqueued);var e=this.props.id;e&&delete P[e]}},{key:"update",value:function(){var e=A(C?C(this.props):this.props,[].concat((0,n.default)(E),(0,n.default)(N)),S);(0,v.default)(this.config,e)||this.updateGestureHandler(e)}},{key:"setNativeProps",value:function(e){var t=(0,c.default)({},this.props,e),r=A(C?C(t):t,[].concat((0,n.default)(E),(0,n.default)(N)),S);this.updateGestureHandler(r)}},{key:"render",value:function(){var e=this.onGestureHandlerEvent,t=this.props,n=t.onGestureEvent,r=t.onGestureHandlerEvent;if(n&&'function'!=typeof n){if(r)throw new Error('Nesting touch handlers with native animated driver is not supported yet');e=n}else if(r&&'function'!=typeof r)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var o=this.onGestureHandlerStateChange,u=this.props,l=u.onHandlerStateChange,s=u.onGestureHandlerStateChange;if(l&&'function'!=typeof l){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=l}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var f={onGestureHandlerEvent:e,onGestureHandlerStateChange:o};this.propsRef.current=f;var v=p.Children.only(this.props.children),y=v.props.children;return h.Touchable.TOUCH_TARGET_DEBUG&&v.type&&('RNGestureHandlerButton'===v.type||'View'===v.type.name||'View'===v.type.displayName)&&(y=p.Children.toArray(y)).push(h.Touchable.renderDebugView({color:'mediumspringgreen',hitSlop:v.props.hitSlop})),p.cloneElement(v,(0,c.default)({ref:this.refHandler,collapsable:!1},f),y)}}]),R})(p.Component);return R.displayName=t,R};var e,t,n=_r(d[0])(_r(d[1])),r=_r(d[0])(_r(d[2])),o=_r(d[0])(_r(d[3])),u=_r(d[0])(_r(d[4])),l=_r(d[0])(_r(d[5])),s=_r(d[0])(_r(d[6])),f=_r(d[0])(_r(d[7])),c=_r(d[0])(_r(d[8])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=o?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(r,u,l):r[u]=e[u]}r.default=e,n&&n.set(e,r);return r})(_r(d[9])),h=_r(d[10]),v=_r(d[0])(_r(d[11])),y=_r(d[0])(_r(d[12]));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function H(){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(e){return!1}}function G(e){return'web'===h.Platform.OS?e:(0,h.findNodeHandle)(e)}var w=h.NativeModules.UIManager,S=void 0===w?{}:w,C={onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}};S.genericDirectEventTypes=(0,c.default)({},S.genericDirectEventTypes,C);var T=null!=(e=null==S.getViewManagerConfig?void 0:S.getViewManagerConfig('getConstants'))?e:null==S.getConstants?void 0:S.getConstants();T&&(T.genericDirectEventTypes=(0,c.default)({},T.genericDirectEventTypes,C));var N=S.setJSResponder,R=void 0===N?function(){}:N,b=S.clearJSResponder,D=void 0===b?function(){}:b;S.setJSResponder=function(e,t){y.default.handleSetJSResponder(e,t),R(e,t)},S.clearJSResponder=function(){y.default.handleClearJSResponder(),D()};var O=1,P={};function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.default)({},n);return t.forEach(function(t){var n,o,u=e[t];if(o=t,!(void 0===(n=u)||n===Object(n)&&'__isNative'in n||'onHandlerStateChange'===o||'onGestureEvent'===o)){var l=e[t];'simultaneousHandlers'===t||'waitFor'===t?l=M(e[t]):'hitSlop'===t&&'object'!=typeof l&&(l={top:l,left:l,bottom:l,right:l}),r[t]=l}}),r}function M(e){return Array.isArray(e)||(e=[e]),'web'===h.Platform.OS?e.map(function(e){return e.current}).filter(function(e){return e}):e.map(function(e){var t;return P[e]||(null==(t=e.current)?void 0:t.handlerTag)||-1}).filter(function(e){return e>0})}function _(e){var t=function(e){return Array.isArray(e)?e.some(function(e){return e&&null===e.current}):e&&null===e.current};return t(e.simultaneousHandlers)||t(e.waitFor)}var j=(t={},(0,f.default)(t,_r(d[13]).State.UNDETERMINED,void 0),(0,f.default)(t,_r(d[13]).State.BEGAN,'onBegan'),(0,f.default)(t,_r(d[13]).State.FAILED,'onFailed'),(0,f.default)(t,_r(d[13]).State.CANCELLED,'onCancelled'),(0,f.default)(t,_r(d[13]).State.ACTIVE,'onActivated'),(0,f.default)(t,_r(d[13]).State.END,'onEnded'),t)},402,[3,42,7,8,9,11,14,249,4,15,18,403,404,405]); -__d(function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p=23}},412,[3,4,5,7,8,9,11,14,18,15,413]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.TOUCHABLE_STATE=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=c(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=n?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=e[l]}o.default=e,s&&s.set(e,o);return o})(r(d[7])),p=r(d[8]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(c=function(e){return e?s:t})(e)}function h(){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(e){return!1}}var T={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};_e.TOUCHABLE_STATE=T;var f=(function(c){(0,o.default)(y,c);var f,E,v=(f=y,E=h(),function(){var e,t=(0,l.default)(f);if(E){var s=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function y(){var e;(0,t.default)(this,y);for(var s=arguments.length,o=new Array(s),n=0;n0:O,A=t.overshootRight,b=void 0===A?R>0:A,W=u.Animated.add(p,l.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-R-(b?1:s),-R,h,h+(y?1:s)],outputRange:[-R-(b||s>1?1:0),-R,h,h+(y||s>1?1:0)]});o.transX=W,o.showLeftAction=h>0?W.interpolate({inputRange:[-1,0,h],outputRange:[0,0,1]}):new u.Animated.Value(0),o.leftActionTranslate=o.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),o.showRightAction=R>0?W.interpolate({inputRange:[-R,0,1],outputRange:[1,0,0]}):new u.Animated.Value(0),o.rightActionTranslate=o.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})},o.onTapHandlerStateChange=function(t){t.nativeEvent.oldState===r(d[9]).State.ACTIVE&&o.close()},o.onHandlerStateChange=function(t){t.nativeEvent.oldState===r(d[9]).State.ACTIVE&&o.handleRelease(t)},o.handleRelease=function(t){var e=t.nativeEvent,n=e.velocityX,s=e.translationX,l=o.state,p=l.leftWidth,u=void 0===p?0:p,f=l.rowWidth,h=void 0===f?0:f,v=l.rowState,w=o.state.rightOffset,S=h-(void 0===w?h:w),R=o.props,O=R.friction,y=R.leftThreshold,A=void 0===y?u/2:y,b=R.rightThreshold,W=void 0===b?S/2:b,E=o.currentOffset()+s/O,L=(s+c*n)/O,T=0;0===v?L>A?T=u:L<-W&&(T=-S):1===v?L>-A&&(T=u):L0&&o.props.onSwipeableLeftOpen?o.props.onSwipeableLeftOpen():n<0&&o.props.onSwipeableRightOpen&&o.props.onSwipeableRightOpen(),0===n?null==o.props.onSwipeableClose||o.props.onSwipeableClose():null==o.props.onSwipeableOpen||o.props.onSwipeableOpen())}),n>0&&o.props.onSwipeableLeftWillOpen?o.props.onSwipeableLeftWillOpen():n<0&&o.props.onSwipeableRightWillOpen&&o.props.onSwipeableRightWillOpen(),0===n?null==o.props.onSwipeableWillClose||o.props.onSwipeableWillClose():null==o.props.onSwipeableWillOpen||o.props.onSwipeableWillOpen()},o.onRowLayout=function(t){var e=t.nativeEvent;o.setState({rowWidth:e.layout.width})},o.currentOffset=function(){var t=o.state,e=t.leftWidth,n=void 0===e?0:e,s=t.rowWidth,l=void 0===s?0:s,p=t.rowState,u=o.state.rightOffset;return 1===p?n:-1===p?-(l-(void 0===u?l:u)):0},o.close=function(){o.animateRow(o.currentOffset(),0)},o.openLeft=function(){var t=o.state.leftWidth,e=void 0===t?0:t;o.animateRow(o.currentOffset(),e)},o.openRight=function(){var t=o.state.rowWidth,e=void 0===t?0:t,n=o.state.rightOffset,s=e-(void 0===n?e:n);o.animateRow(o.currentOffset(),-s)};var s=new u.Animated.Value(0);return o.state={dragX:s,rowTranslation:new u.Animated.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},o.updateAnimatedEvent(n,o.state),o.onGestureEvent=u.Animated.event([{nativeEvent:{translationX:s}}],{useNativeDriver:n.useNativeAnimations}),o}return(0,n.default)(O,[{key:"UNSAFE_componentWillUpdate",value:function(t,e){this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e)}},{key:"render",value:function(){var e=this,n=this.state.rowState,o=this.props,s=o.children,l=o.renderLeftActions,f=o.renderRightActions,h=l&&p.createElement(u.Animated.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},l(this.showLeftAction,this.transX),p.createElement(u.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({leftWidth:n.layout.x})}})),c=f&&p.createElement(u.Animated.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},f(this.showRightAction,this.transX),p.createElement(u.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({rightOffset:n.layout.x})}}));return p.createElement(r(d[10]).PanGestureHandler,(0,t.default)({activeOffsetX:[-10,10]},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),p.createElement(u.Animated.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle]},h,c,p.createElement(r(d[10]).TapGestureHandler,{enabled:0!==n,onHandlerStateChange:this.onTapHandlerStateChange},p.createElement(u.Animated.View,{pointerEvents:0===n?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},s))))}}]),O})(p.Component);_e.default=v,v.defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};var w=u.StyleSheet.create({container:{overflow:'hidden'},leftActions:(0,t.default)({},u.StyleSheet.absoluteFillObject,{flexDirection:u.I18nManager.isRTL?'row-reverse':'row'}),rightActions:(0,t.default)({},u.StyleSheet.absoluteFillObject,{flexDirection:u.I18nManager.isRTL?'row':'row-reverse'})})},422,[3,4,7,8,9,11,14,15,18,405,406]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=l?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o})(r(d[7])),p=r(d[0])(r(d[8])),c=r(d[9]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function w(){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(e){return!1}}var h=.05,v='Idle',y='Dragging',S='Settling',b=(function(e){(0,o.default)(D,e);var f,b,A=(f=D,b=w(),function(){var e,t=(0,s.default)(f);if(b){var n=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function D(e){var n;(0,t.default)(this,D),(n=A.call(this,e)).accessibilityIsModalView=u.createRef(),n.pointerEventsView=u.createRef(),n.panGestureHandler=u.createRef(),n.drawerShown=!1,n.updateAnimatedEvent=function(e,t){var o=e.drawerPosition,l=e.drawerWidth,s=e.drawerType,u=t.dragX,p=t.touchX,f=t.drawerTranslation,w=t.containerWidth,h=u,v=p;'left'!==o?(h=c.Animated.multiply(new c.Animated.Value(-1),u),v=c.Animated.add(new c.Animated.Value(w),c.Animated.multiply(new c.Animated.Value(-1),p)),p.setValue(w)):p.setValue(0);var y=h;if('front'===s){var S=c.Animated.add(v,c.Animated.multiply(new c.Animated.Value(-1),h)).interpolate({inputRange:[l-1,l,l+1],outputRange:[0,0,1]});y=c.Animated.add(h,S)}n.openValue=c.Animated.add(y,f).interpolate({inputRange:[0,l],outputRange:[0,1],extrapolate:'clamp'});var b={useNativeDriver:e.useNativeAnimations};n.props.onDrawerSlide&&(b.listener=function(e){var t=Math.floor(Math.abs(e.nativeEvent.translationX))/n.state.containerWidth;null==n.props.onDrawerSlide||n.props.onDrawerSlide(t)}),n.onGestureEvent=c.Animated.event([{nativeEvent:{translationX:u,x:p}}],b)},n.handleContainerLayout=function(e){var t=e.nativeEvent;n.setState({containerWidth:t.layout.width})},n.emitStateChanged=function(e,t){null==n.props.onDrawerStateChanged||n.props.onDrawerStateChanged(e,t)},n.openingHandlerStateChange=function(e){var t=e.nativeEvent;t.oldState===r(d[10]).State.ACTIVE?n.handleRelease({nativeEvent:t}):t.state===r(d[10]).State.ACTIVE&&(n.emitStateChanged(y,!1),'on-drag'===n.props.keyboardDismissMode&&c.Keyboard.dismiss(),n.props.hideStatusBar&&c.StatusBar.setHidden(!0,n.props.statusBarAnimation||'slide'))},n.onTapHandlerStateChange=function(e){var t=e.nativeEvent;n.drawerShown&&t.oldState===r(d[10]).State.ACTIVE&&'locked-open'!==n.props.drawerLockMode&&n.closeDrawer()},n.handleRelease=function(e){var t=e.nativeEvent,o=n.props,l=o.drawerWidth,s=o.drawerPosition,u=o.drawerType,p=n.state.containerWidth,c=t.translationX,f=t.velocityX,w=t.x;'left'!==s&&(c=-c,w=p-w,f=-f);var v=w-c,y=0;'front'===u&&(y=v>l?v-l:0);var S=c+y+(n.drawerShown?l:0);S+h*f>l/2?n.animateDrawer(S,l,f):n.animateDrawer(S,0,f)},n.updateShowing=function(e){var t,o,l;n.drawerShown=e,null==(t=n.accessibilityIsModalView.current)||t.setNativeProps({accessibilityViewIsModal:e}),null==(o=n.pointerEventsView.current)||o.setNativeProps({pointerEvents:e?'auto':'none'});var s=n.props,u=s.drawerPosition,p=s.minSwipeDistance,c=s.edgeWidth,f='left'===u,w=(f?1:-1)*(n.drawerShown?-1:1),h=f?{left:0,width:e?void 0:c}:{right:0,width:e?void 0:c};null==(l=n.panGestureHandler.current)||l.setNativeProps({hitSlop:h,activeOffsetX:w*p})},n.animateDrawer=function(e,t,o,l){if(n.state.dragX.setValue(0),n.state.touchX.setValue('left'===n.props.drawerPosition?0:n.state.containerWidth),null!=e){var s=e;n.props.useNativeAnimations&&(e0?s=Math.min(e+o/60,t):e>t&&o<0&&(s=Math.max(e+o/60,t))),n.state.drawerTranslation.setValue(s)}var u=0!==t;n.updateShowing(u),n.emitStateChanged(S,u),n.props.hideStatusBar&&c.StatusBar.setHidden(u,n.props.statusBarAnimation||'slide'),c.Animated.spring(n.state.drawerTranslation,{velocity:o,bounciness:0,toValue:t,useNativeDriver:n.props.useNativeAnimations,speed:null!=l?l:void 0}).start(function(e){e.finished&&(n.emitStateChanged(v,u),u?null==n.props.onDrawerOpen||n.props.onDrawerOpen():null==n.props.onDrawerClose||n.props.onDrawerClose())})},n.openDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,n.props.drawerWidth,e.velocity?e.velocity:0),n.forceUpdate()},n.closeDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,0,e.velocity?e.velocity:0),n.forceUpdate()},n.renderOverlay=function(){(0,p.default)(n.openValue,'should be set');var e={opacity:n.openValue.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),backgroundColor:n.props.overlayColor};return u.createElement(r(d[11]).TapGestureHandler,{onHandlerStateChange:n.onTapHandlerStateChange},u.createElement(c.Animated.View,{pointerEvents:n.drawerShown?'auto':'none',ref:n.pointerEventsView,style:[V.overlay,e]}))},n.renderDrawer=function(){var e,t=n.props,o=t.drawerBackgroundColor,l=t.drawerWidth,s=t.drawerPosition,f=t.drawerType,w=t.drawerContainerStyle,h=t.contentContainerStyle,v='left'===s,y='back'!==f,S='front'!==f,b=c.I18nManager.isRTL?v:!v,A={backgroundColor:o,width:l},D=n.openValue;((0,p.default)(D,'should be set'),S)&&(e={transform:[{translateX:D.interpolate({inputRange:[0,1],outputRange:v?[0,l]:[0,-l],extrapolate:'clamp'})}]});var E=0;if(y){var C=v?-l:l;E=D.interpolate({inputRange:[0,1],outputRange:[C,0],extrapolate:'clamp'})}var R={transform:[{translateX:E}],flexDirection:b?'row-reverse':'row'};return u.createElement(c.Animated.View,{style:V.main,onLayout:n.handleContainerLayout},u.createElement(c.Animated.View,{style:['front'===f?V.containerOnBack:V.containerInFront,e,h],importantForAccessibility:n.drawerShown?'no-hide-descendants':'yes'},'function'==typeof n.props.children?n.props.children(n.openValue):n.props.children,n.renderOverlay()),u.createElement(c.Animated.View,{pointerEvents:"box-none",ref:n.accessibilityIsModalView,accessibilityViewIsModal:n.drawerShown,style:[V.drawerContainer,R,w]},u.createElement(c.View,{style:A},n.props.renderNavigationView(n.openValue))))},n.setPanGestureRef=function(e){n.panGestureHandler.current=e,null==n.props.onGestureRef||n.props.onGestureRef(e)};var o=new c.Animated.Value(0),l=new c.Animated.Value(0),s=new c.Animated.Value(0);return n.state={dragX:o,touchX:l,drawerTranslation:s,containerWidth:0},n.updateAnimatedEvent(e,n.state),n}return(0,n.default)(D,[{key:"UNSAFE_componentWillUpdate",value:function(e,t){this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t)}},{key:"render",value:function(){var e=this.props,t=e.drawerPosition,n=e.drawerLockMode,o=e.edgeWidth,l=e.minSwipeDistance,s='left'===t,p=(s?1:-1)*(this.drawerShown?-1:1),c=s?{left:0,width:this.drawerShown?void 0:o}:{right:0,width:this.drawerShown?void 0:o};return u.createElement(r(d[11]).PanGestureHandler,{ref:this.setPanGestureRef,hitSlop:c,activeOffsetX:p*l,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==n&&'locked-open'!==n},this.renderDrawer())}}]),D})(u.Component);_e.default=b,b.defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1},b.positions={Left:'left',Right:'right'};var V=c.StyleSheet.create({drawerContainer:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1001,flexDirection:'row'}),containerInFront:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1002}),containerOnBack:(0,e.default)({},c.StyleSheet.absoluteFillObject),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1e3})})},423,[3,4,7,8,9,11,14,15,26,18,405,406]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),'undefined'==typeof Intl&&('undefined'!=typeof window?Object.defineProperty(window,'Intl',{value:{}}):void 0!==g&&Object.defineProperty(g,'Intl',{value:{}})),r(d[0]).shouldPolyfill()&&Object.defineProperty(Intl,'getCanonicalLocales',{value:r(d[1]).getCanonicalLocales,writable:!0,enumerable:!1,configurable:!0})},424,[425,426]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=function(){return'undefined'==typeof Intl||!('getCanonicalLocales'in Intl)||'x-private'===Intl.getCanonicalLocales('und-x-private')[0]}},425,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(void 0===n)return[];var t=[];'string'==typeof n&&(n=[n]);for(var o=0,c=n;o=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},o=function(t,e){return function(r,n){e(r,n,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=function(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(t){try{f(n.next(t))}catch(t){a(t)}}function c(t){try{f(n.throw(t))}catch(t){a(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(i,c)}f((n=n.apply(t,e||[])).next())})},c=function(t,e){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return f([t,e])}}function f(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},s=function(){for(var t=[],e=0;e1||c(t,e)})})}function c(t,e){try{(r=o[t](e)).value instanceof b?Promise.resolve(r.value.v).then(f,u):l(a[0][2],r)}catch(t){l(a[0][3],t)}var r}function f(t){c("next",t)}function u(t){c("throw",t)}function l(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},h=function(t){var e,r;return e={},n("next"),n("throw",function(t){throw t}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:o?o(e):e}:o}},_=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof u?u(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,a){o(n,a,(e=t[r](e)).done,e.value)})}}function o(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&P(e,t,r);return E(e,t),e},m=function(t){return t&&t.__esModule?t:{default:t}},O=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},j=function(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r},g=function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},S("__extends",t),S("__assign",e),S("__rest",r),S("__decorate",n),S("__param",o),S("__metadata",a),S("__awaiter",i),S("__generator",c),S("__exportStar",f),S("__createBinding",P),S("__values",u),S("__read",l),S("__spread",s),S("__spreadArrays",y),S("__spreadArray",p),S("__await",b),S("__asyncGenerator",d),S("__asyncDelegator",h),S("__asyncValues",_),S("__makeTemplateObject",v),S("__importStar",w),S("__importDefault",m),S("__classPrivateFieldGet",O),S("__classPrivateFieldSet",j),S("__classPrivateFieldIn",g)})},428,[]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i){for(var t={},s=[],o=0,c=i;on[0]?1:0}function t(i,n){return i.typen.type?1:0}function s(i,n){for(var t=r(d[0]).__spreadArray([],i),s=0,o=n;s-1&&(U=b)}}U&&(n.region=U),n.region=n.region.toUpperCase()}if(n.script&&(n.script=n.script[0].toUpperCase()+n.script.slice(1).toLowerCase(),r(d[1]).scriptAlias[n.script]&&(n.script=r(d[1]).scriptAlias[n.script])),n.variants.length){for(var h=0;h-1&&v.push('caseFirst'),s.indexOf('kn')>-1&&v.push('numeric'),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if('string'!=typeof n&&'object'!=typeof n)throw new TypeError('tag must be a string or object');n='object'==typeof n&&(u=e.default(n))&&u.initializedLocale?u.locale:n.toString(),u=e.default(this);var f=_r(d[2]).CoerceOptionsToObject(l);n=r(n,f);var p=Object.create(null),b=_r(d[2]).GetOption(f,'calendar','string',void 0,void 0);if(void 0!==b&&!t.test(b))throw new RangeError('invalid calendar');p.ca=b;var y=_r(d[2]).GetOption(f,'collation','string',void 0,void 0);if(void 0!==y&&!t.test(y))throw new RangeError('invalid collation');p.co=y;var h=_r(d[2]).GetOption(f,'hourCycle','string',['h11','h12','h23','h24'],void 0);p.hc=h;var L=_r(d[2]).GetOption(f,'caseFirst','string',['upper','lower','false'],void 0);p.kf=L;var I,_=_r(d[2]).GetOption(f,'numeric','boolean',void 0,void 0);void 0!==_&&(I=String(_)),p.kn=I;var U=_r(d[2]).GetOption(f,'numberingSystem','string',void 0,void 0);if(void 0!==U&&!t.test(U))throw new RangeError('Invalid numberingSystem');p.nu=U;var O=o(n,p,s);u.locale=O.locale,u.calendar=O.ca,u.collation=O.co,u.hourCycle=O.hc,s.indexOf('kf')>-1&&(u.caseFirst=O.kf),s.indexOf('kn')>-1&&(u.numeric=_r(d[2]).SameValue(O.kn,'true')),u.numberingSystem=O.nu}return c.prototype.maximize=function(){var n=e.default(this).locale;try{return new c(l(n))}catch(e){return new c(n)}},c.prototype.minimize=function(){var n=e.default(this).locale;try{return new c(u(n))}catch(e){return new c(n)}},c.prototype.toString=function(){return e.default(this).locale},Object.defineProperty(c.prototype,"baseName",{get:function(){var n=e.default(this).locale;return _r(d[3]).emitUnicodeLanguageId(_r(d[3]).parseUnicodeLanguageId(n))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"calendar",{get:function(){return e.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"collation",{get:function(){return e.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hourCycle",{get:function(){return e.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"caseFirst",{get:function(){return e.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"numeric",{get:function(){return e.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"numberingSystem",{get:function(){return e.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"language",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).lang},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"script",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).script},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"region",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).region},enumerable:!1,configurable:!0}),c.relevantExtensionKeys=n,c})();_e.Locale=s;try{'undefined'!=typeof Symbol&&Object.defineProperty(s.prototype,Symbol.toStringTag,{value:'Intl.Locale',writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype.constructor,'length',{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}_e.default=s},436,[428,437,438,426]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=new WeakMap;e.default=function(n){var u=t.get(n);return u||(u=Object.create(null),t.set(n,u)),u}},437,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invariant=e.isMissingLocaleDataError=e.defineProperty=e.getMagnitude=e.setMultiInternalSlots=e.setInternalSlot=e.isLiteralPart=e.getMultiInternalSlots=e.getInternalSlot=e._formatToParts=void 0,r(d[0]).__exportStar(r(d[1]),e),r(d[0]).__exportStar(r(d[2]),e),r(d[0]).__exportStar(r(d[3]),e),r(d[0]).__exportStar(r(d[4]),e),r(d[0]).__exportStar(r(d[5]),e),r(d[0]).__exportStar(r(d[6]),e),r(d[0]).__exportStar(r(d[7]),e),r(d[0]).__exportStar(r(d[8]),e),r(d[0]).__exportStar(r(d[9]),e),r(d[0]).__exportStar(r(d[10]),e),r(d[0]).__exportStar(r(d[11]),e),r(d[0]).__exportStar(r(d[12]),e),r(d[0]).__exportStar(r(d[13]),e),r(d[0]).__exportStar(r(d[14]),e),r(d[0]).__exportStar(r(d[15]),e),r(d[0]).__exportStar(r(d[16]),e),r(d[0]).__exportStar(r(d[17]),e),r(d[0]).__exportStar(r(d[18]),e),r(d[0]).__exportStar(r(d[19]),e),r(d[0]).__exportStar(r(d[20]),e),r(d[0]).__exportStar(r(d[21]),e),Object.defineProperty(e,"_formatToParts",{enumerable:!0,get:function(){return r(d[0]).__importDefault(r(d[22])).default}}),r(d[0]).__exportStar(r(d[23]),e),r(d[0]).__exportStar(r(d[24]),e),Object.defineProperty(e,"getInternalSlot",{enumerable:!0,get:function(){return r(d[25]).getInternalSlot}}),Object.defineProperty(e,"getMultiInternalSlots",{enumerable:!0,get:function(){return r(d[25]).getMultiInternalSlots}}),Object.defineProperty(e,"isLiteralPart",{enumerable:!0,get:function(){return r(d[25]).isLiteralPart}}),Object.defineProperty(e,"setInternalSlot",{enumerable:!0,get:function(){return r(d[25]).setInternalSlot}}),Object.defineProperty(e,"setMultiInternalSlots",{enumerable:!0,get:function(){return r(d[25]).setMultiInternalSlots}}),Object.defineProperty(e,"getMagnitude",{enumerable:!0,get:function(){return r(d[25]).getMagnitude}}),Object.defineProperty(e,"defineProperty",{enumerable:!0,get:function(){return r(d[25]).defineProperty}}),Object.defineProperty(e,"isMissingLocaleDataError",{enumerable:!0,get:function(){return r(d[26]).isMissingLocaleDataError}}),r(d[0]).__exportStar(r(d[27]),e),r(d[0]).__exportStar(r(d[28]),e),r(d[0]).__exportStar(r(d[29]),e),r(d[0]).__exportStar(r(d[30]),e),r(d[0]).__exportStar(r(d[31]),e),r(d[0]).__exportStar(r(d[32]),e),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return r(d[25]).invariant}}),r(d[0]).__exportStar(r(d[33]),e)},438,[428,439,440,441,443,445,446,447,448,449,450,451,453,457,458,454,463,459,473,472,456,455,460,474,475,452,476,477,478,479,480,481,482,442]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanonicalizeLocaleList=void 0,e.CanonicalizeLocaleList=function(n){return Intl.getCanonicalLocales(n)}},439,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanonicalizeTimeZoneName=void 0,e.CanonicalizeTimeZoneName=function(n,t){var c=t.tzData,o=t.uppercaseLinks,u=n.toUpperCase(),s=Object.keys(c).reduce(function(n,t){return n[t.toUpperCase()]=t,n},{}),p=o[u]||s[u];return'Etc/UTC'===p||'Etc/GMT'===p?'UTC':p}},440,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoerceOptionsToObject=void 0,e.CoerceOptionsToObject=function(t){return void 0===t?Object.create(null):r(d[0]).ToObject(t)}},441,[442]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(void 0===n)return NaN;if(null===n)return 0;if('boolean'==typeof n)return n?1:0;if('number'==typeof n)return n;if('symbol'==typeof n||'bigint'==typeof n)throw new TypeError('Cannot convert symbol/bigint to number');return Number(n)}function t(t){var u=n(t);if(isNaN(u)||o(u,-0))return 0;if(isFinite(u))return u;var f=Math.floor(Math.abs(u));return u<0&&(f=-f),o(f,-0)?0:f}function o(n,t){return Object.is?Object.is(n,t):n===t?0!==n||1/n==1/t:n!=n&&t!=t}Object.defineProperty(e,"__esModule",{value:!0}),e.msFromTime=e.OrdinaryHasInstance=e.SecFromTime=e.MinFromTime=e.HourFromTime=e.DateFromTime=e.MonthFromTime=e.InLeapYear=e.DayWithinYear=e.DaysInYear=e.YearFromTime=e.TimeFromYear=e.DayFromYear=e.WeekDay=e.Day=e.Type=e.HasOwnProperty=e.ArrayCreate=e.SameValue=e.ToObject=e.TimeClip=e.ToNumber=e.ToString=void 0,e.ToString=function(n){if('symbol'==typeof n)throw TypeError('Cannot convert a Symbol value to a string');return String(n)},e.ToNumber=n,e.TimeClip=function(n){return isFinite(n)?Math.abs(n)>8640000000000001?NaN:t(n):NaN},e.ToObject=function(n){if(null==n)throw new TypeError('undefined/null cannot be converted to object');return Object(n)},e.SameValue=o,e.ArrayCreate=function(n){return new Array(n)},e.HasOwnProperty=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.Type=function(n){return null===n?'Null':void 0===n?'Undefined':'function'==typeof n||'object'==typeof n?'Object':'number'==typeof n?'Number':'boolean'==typeof n?'Boolean':'string'==typeof n?'String':'symbol'==typeof n?'Symbol':'bigint'==typeof n?'BigInt':void 0};var u=864e5;function f(n,t){return n-Math.floor(n/t)*t}function c(n){return Math.floor(n/u)}function y(n){return Date.UTC(n,0)/u}function l(n){return new Date(n).getUTCFullYear()}function p(n){return n%4!=0?365:n%100!=0?366:n%400!=0?365:366}function b(n){return c(n)-y(l(n))}function T(n){return 365===p(l(n))?0:1}function s(n){var t=b(n),o=T(n);if(t>=0&&t<31)return 0;if(t<59+o)return 1;if(t<90+o)return 2;if(t<120+o)return 3;if(t<151+o)return 4;if(t<181+o)return 5;if(t<212+o)return 6;if(t<243+o)return 7;if(t<273+o)return 8;if(t<304+o)return 9;if(t<334+o)return 10;if(t<365+o)return 11;throw new Error('Invalid time')}e.Day=c,e.WeekDay=function(n){return f(c(n)+4,7)},e.DayFromYear=y,e.TimeFromYear=function(n){return Date.UTC(n,0)},e.YearFromTime=l,e.DaysInYear=p,e.DayWithinYear=b,e.InLeapYear=T,e.MonthFromTime=s,e.DateFromTime=function(n){var t=b(n),o=s(n),u=T(n);if(0===o)return t+1;if(1===o)return t-30;if(2===o)return t-58-u;if(3===o)return t-89-u;if(4===o)return t-119-u;if(5===o)return t-150-u;if(6===o)return t-180-u;if(7===o)return t-211-u;if(8===o)return t-242-u;if(9===o)return t-272-u;if(10===o)return t-303-u;if(11===o)return t-333-u;throw new Error('Invalid time')};var v=24,F=60,h=60,w=1e3,O=6e4,D=36e5;e.HourFromTime=function(n){return f(Math.floor(n/D),v)},e.MinFromTime=function(n){return f(Math.floor(n/O),F)},e.SecFromTime=function(n){return f(Math.floor(n/w),h)},e.OrdinaryHasInstance=function(n,t,o){if('function'!=typeof n)return!1;if(null===o||void 0===o?void 0:o.boundTargetFunction)return t instanceof(null===o||void 0===o?void 0:o.boundTargetFunction);if('object'!=typeof t)return!1;var u=n.prototype;if('object'!=typeof u)throw new TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');return Object.prototype.isPrototypeOf.call(u,t)},e.msFromTime=function(n){return f(n,w)}},442,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetNumberOption=void 0,e.GetNumberOption=function(t,u,n,o,b){var c=t[u];return r(d[0]).DefaultNumberOption(c,n,o,b)}},443,[444]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultNumberOption=void 0,e.DefaultNumberOption=function(t,o,u,n){if(void 0!==t){if(t=Number(t),isNaN(t)||tu)throw new RangeError(t+" is outside of range ["+o+", "+u+"]");return Math.floor(t)}return n}},444,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetOption=void 0,e.GetOption=function(t,n,o,f,u){if('object'!=typeof t)throw new TypeError('Options must be an object');var l=t[n];if(void 0!==l){if('boolean'!==o&&'string'!==o)throw new TypeError('invalid type');if('boolean'===o&&(l=Boolean(l)),'string'===o&&(l=r(d[0]).ToString(l)),void 0!==f&&!f.filter(function(t){return t==l}).length)throw new RangeError(l+" is not within "+f.join(', '));return l}return u}},445,[442]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetOptionsObject=void 0,e.GetOptionsObject=function(t){if(void 0===t)return Object.create(null);if('object'==typeof t)return t;throw new TypeError('Options must be an object')}},446,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.slice(t.indexOf('-')+1)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsSanctionedSimpleUnitIdentifier=e.SIMPLE_UNITS=e.removeUnitNamespace=e.SANCTIONED_UNITS=void 0,e.SANCTIONED_UNITS=['angle-degree','area-acre','area-hectare','concentr-percent','digital-bit','digital-byte','digital-gigabit','digital-gigabyte','digital-kilobit','digital-kilobyte','digital-megabit','digital-megabyte','digital-petabyte','digital-terabit','digital-terabyte','duration-day','duration-hour','duration-millisecond','duration-minute','duration-month','duration-second','duration-week','duration-year','length-centimeter','length-foot','length-inch','length-kilometer','length-meter','length-mile-scandinavian','length-mile','length-millimeter','length-yard','mass-gram','mass-kilogram','mass-ounce','mass-pound','mass-stone','temperature-celsius','temperature-fahrenheit','volume-fluid-ounce','volume-gallon','volume-liter','volume-milliliter'],e.removeUnitNamespace=t,e.SIMPLE_UNITS=e.SANCTIONED_UNITS.map(t),e.IsSanctionedSimpleUnitIdentifier=function(t){return e.SIMPLE_UNITS.indexOf(t)>-1}},447,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsValidTimeZoneName=void 0,e.IsValidTimeZoneName=function(t,n){var o=n.tzData,s=n.uppercaseLinks,c=t.toUpperCase(),p=new Set,u=new Set;return Object.keys(o).map(function(t){return t.toUpperCase()}).forEach(function(t){return p.add(t)}),Object.keys(s).forEach(function(t){u.add(t.toUpperCase()),p.add(s[t].toUpperCase())}),p.has(c)||u.has(c)}},448,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsWellFormedCurrencyCode=void 0;var t=/[^A-Z]/;e.IsWellFormedCurrencyCode=function(n){return 3===(n=n.replace(/([a-z])/g,function(t,n){return n.toUpperCase()})).length&&!t.test(n)}},449,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsWellFormedUnitIdentifier=void 0,e.IsWellFormedUnitIdentifier=function(n){if(n=n.replace(/([A-Z])/g,function(n,t){return t.toLowerCase()}),r(d[0]).IsSanctionedSimpleUnitIdentifier(n))return!0;var t=n.split('-per-');if(2!==t.length)return!1;var o=t[0],l=t[1];return!(!r(d[0]).IsSanctionedSimpleUnitIdentifier(o)||!r(d[0]).IsSanctionedSimpleUnitIdentifier(l))}},450,[447]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputeExponent=void 0,e.ComputeExponent=function(t,n,o){var u=o.getInternalSlots;if(0===n)return[0,0];n<0&&(n=-n);var p=r(d[0]).getMagnitude(n),l=r(d[1]).ComputeExponentForMagnitude(t,p,{getInternalSlots:u});n=l<0?n*Math.pow(10,-l):n/Math.pow(10,l);var M=r(d[2]).FormatNumericToString(u(t),n);return 0===M.roundedNumber?[l,p]:r(d[0]).getMagnitude(M.roundedNumber)===p-l?[l,p]:[r(d[1]).ComputeExponentForMagnitude(t,p+1,{getInternalSlots:u}),p+1]}},451,[452,453,454]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function t(t,n,i,l){t.get(n)||t.set(n,Object.create(null)),t.get(n)[i]=l}function n(t,n){for(var i=[],l=2;lv[v.length-1])return v[v.length-1].length-1;var M=v.indexOf(p);if(-1===M)return 0;var _=v[M];return'0'===y[_].other?0:_.length-y[_].other.match(/0+/)[0].length}}},453,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatNumericToString=void 0,e.FormatNumericToString=function(t,n){var o,u=n<0||r(d[0]).SameValue(n,-0);switch(u&&(n=-n),t.roundingType){case'significantDigits':o=r(d[1]).ToRawPrecision(n,t.minimumSignificantDigits,t.maximumSignificantDigits);break;case'fractionDigits':o=r(d[2]).ToRawFixed(n,t.minimumFractionDigits,t.maximumFractionDigits);break;default:(o=r(d[1]).ToRawPrecision(n,1,2)).integerDigitsCount>1&&(o=r(d[2]).ToRawFixed(n,0,0))}n=o.roundedNumber;var s=o.formattedString,c=o.integerDigitsCount,f=t.minimumIntegerDigits;return c=0&&w.length<=c)l=+M,o=w+r(d[0]).repeat('0',c-w.length),s=e;else{var _=(l=r(d[0]).getMagnitude(e))-c+1,O=Math.round(S(e,_));S(O,c-1)>=10&&(l+=1,O=Math.floor(O/10)),o=O.toString(),s=S(O,c-1-l)}}if(l>=c-1?(o+=r(d[0]).repeat('0',l-c+1),u=l+1):l>=0?(o=o.slice(0,l+1)+"."+o.slice(l+1),u=l+1):(o="0."+r(d[0]).repeat('0',-l-1)+o,u=1),o.indexOf('.')>=0&&n>t){for(var P=n-t;P>0&&'0'===o[o.length-1];)o=o.slice(0,-1),P--;'.'===o[o.length-1]&&(o=o.slice(0,-1))}return{formattedString:o,roundedNumber:s,integerDigitsCount:u};function S(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}},455,[452]); -__d(function(g,r,i,_a2,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToRawFixed=void 0,e.ToRawFixed=function(t,n,a){var l,o,s=a,h=Math.round(t*Math.pow(10,s)),u=h/Math.pow(10,s);if(h<1e21)l=h.toString();else{var c=(l=h.toString()).split('e'),f=c[0],p=c[1];l=f.replace('.',''),l+=r(d[0]).repeat('0',Math.max(+p-l.length+1,0))}if(0!==s){var v=l.length;v<=s&&(l=r(d[0]).repeat('0',s+1-v)+l,v=s+1);var M=l.slice(0,v-s);l=M+"."+l.slice(v-s),o=M.length}else o=l.length;for(var w=a-n;w>0&&'0'===l[l.length-1];)l=l.slice(0,-1),w--;return'.'===l[l.length-1]&&(l=l.slice(0,-1)),{formattedString:l,roundedNumber:u,integerDigitsCount:o}}},456,[452]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CurrencyDigits=void 0,e.CurrencyDigits=function(t,n){var u=n.currencyDigitsData;return r(d[0]).HasOwnProperty(u,t)?u[t]:2}},457,[442]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatNumericToParts=void 0,e.FormatNumericToParts=function(t,u,o){for(var n=r(d[0]).PartitionNumberPattern(t,u,o),c=r(d[1]).ArrayCreate(0),s=0,v=n;s0||isNaN(s)?0:-1;break;case'always':b=r(d[4]).SameValue(s,0)||s>0||isNaN(s)?1:-1;break;default:b=0===s||isNaN(s)?0:s>0?1:-1}return t.default({roundedNumber:s,formattedString:l,exponent:_,magnitude:v,sign:b},c.dataLocaleData,f,c)}},459,[428,460,451,454,442]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=new RegExp("^"+r(d[0]).S_UNICODE_REGEX.source),u=new RegExp(r(d[0]).S_UNICODE_REGEX.source+"$"),t=/[#0](?:[\.,][#0]+)*/g;function s(n,u,t,s,c,i,l){var p=[],y=u.formattedString,o=u.roundedNumber;if(isNaN(o))return[{type:'nan',value:y}];if(!isFinite(o))return[{type:'infinity',value:y}];var v=r(d[1]).digitMapping[c];v&&(y=y.replace(/\d/g,function(n){return v[+n]||n}));var h,f,b=y.indexOf('.');if(b>0?(h=y.slice(0,b),f=y.slice(b+1)):h=y,i&&('compact'!==t||o>=1e4)){var S=n.group,w=[],x=l.split('.')[0].split(','),D=3,N=3;x.length>1&&(D=x[x.length-1].length),x.length>2&&(N=x[x.length-2].length);var k=h.length-D;if(k>0){for(w.push(h.slice(k,k+D)),k-=N;k>0;k-=N)w.push(h.slice(k,k+N));w.push(h.slice(0,k+N))}else w.push(h);for(;w.length>0;){var E=w.pop();p.push({type:'integer',value:E}),w.length>0&&p.push({type:'group',value:S})}}else p.push({type:'integer',value:h});if(void 0!==f&&p.push({type:'decimal',value:n.decimal},{type:'fraction',value:f}),('scientific'===t||'engineering'===t)&&isFinite(o)){p.push({type:'exponentSeparator',value:n.exponential}),s<0&&(p.push({type:'exponentMinusSign',value:n.minusSign}),s=-s);var _=r(d[2]).ToRawFixed(s,0,0);p.push({type:'exponentInteger',value:_.formattedString})}return p}function c(n,u){n.indexOf(';')<0&&(n=n+";-"+n);var t=n.split(';'),s=t[0],c=t[1];switch(u){case 0:return s;case-1:return c;default:return c.indexOf('-')>=0?c.replace(/-/g,'+'):"+"+s}}function i(n,u,t,s,i,p,y){var o,v,h=n.roundedNumber,f=n.sign,b=n.magnitude,S=String(Math.pow(10,b)),w=t.numbers.nu[0];if('currency'===s&&'name'!==p){var x=null===(o=((D=t.numbers.currency)[y]||D[w]).short)||void 0===o?void 0:o[S];if(!x)return null;v=l(u,h,x)}else{var D,N=((D=t.numbers.decimal)[y]||D[w])[i][S];if(!N)return null;v=l(u,h,N)}return'0'===v?null:v=c(v,f).replace(/([^\s;\-\+\d\xa4]+)/g,'{c:$1}').replace(/0+/,'0')}function l(n,u,t){return t[n.select(u)]||t.other}e.default=function(p,y,o,v){var h,f,b=p.sign,S=p.exponent,w=p.magnitude,x=v.notation,D=v.style,N=v.numberingSystem,k=y.numbers.nu[0],E=null;if('compact'===x&&w&&(E=i(p,o,y,D,v.compactDisplay,v.currencyDisplay,N)),'currency'===D&&'name'!==v.currencyDisplay){var _=y.currencies[v.currency];if(_)switch(v.currencyDisplay){case'code':h=v.currency;break;case'symbol':h=_.symbol;break;default:h=_.narrow}else h=v.currency}f=E||('decimal'===D||'unit'===D||'currency'===D&&'name'===v.currencyDisplay?c((y.numbers.decimal[N]||y.numbers.decimal[k]).standard,b):c('currency'===D?(O=y.numbers.currency[N]||y.numbers.currency[k])[v.currencySign]:y.numbers.percent[N]||y.numbers.percent[k],b));var M=t.exec(f)[0];if(f=f.replace(t,'{0}').replace(/'(.)'/g,'$1'),'currency'===D&&'name'!==v.currencyDisplay){var O,I=(O=y.numbers.currency[N]||y.numbers.currency[k]).currencySpacing.afterInsertBetween;I&&!u.test(h)&&(f=f.replace('\xa4{0}',"\xa4"+I+"{0}"));var R=O.currencySpacing.beforeInsertBetween;R&&!n.test(h)&&(f=f.replace('{0}\xa4',"{0}"+R+"\xa4"))}for(var $=f.split(/({c:[^}]+}|\{0\}|[\xa4%\-\+])/g),F=[],G=y.numbers.symbols[N]||y.numbers.symbols[k],U=0,B=$;U\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/},461,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.digitMapping=void 0,e.digitMapping={adlm:["\ud83a\udd50","\ud83a\udd51","\ud83a\udd52","\ud83a\udd53","\ud83a\udd54","\ud83a\udd55","\ud83a\udd56","\ud83a\udd57","\ud83a\udd58","\ud83a\udd59"],ahom:["\ud805\udf30","\ud805\udf31","\ud805\udf32","\ud805\udf33","\ud805\udf34","\ud805\udf35","\ud805\udf36","\ud805\udf37","\ud805\udf38","\ud805\udf39"],arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06f0","\u06f1","\u06f2","\u06f3","\u06f4","\u06f5","\u06f6","\u06f7","\u06f8","\u06f9"],bali:["\u1b50","\u1b51","\u1b52","\u1b53","\u1b54","\u1b55","\u1b56","\u1b57","\u1b58","\u1b59"],beng:["\u09e6","\u09e7","\u09e8","\u09e9","\u09ea","\u09eb","\u09ec","\u09ed","\u09ee","\u09ef"],bhks:["\ud807\udc50","\ud807\udc51","\ud807\udc52","\ud807\udc53","\ud807\udc54","\ud807\udc55","\ud807\udc56","\ud807\udc57","\ud807\udc58","\ud807\udc59"],brah:["\ud804\udc66","\ud804\udc67","\ud804\udc68","\ud804\udc69","\ud804\udc6a","\ud804\udc6b","\ud804\udc6c","\ud804\udc6d","\ud804\udc6e","\ud804\udc6f"],cakm:["\ud804\udd36","\ud804\udd37","\ud804\udd38","\ud804\udd39","\ud804\udd3a","\ud804\udd3b","\ud804\udd3c","\ud804\udd3d","\ud804\udd3e","\ud804\udd3f"],cham:["\uaa50","\uaa51","\uaa52","\uaa53","\uaa54","\uaa55","\uaa56","\uaa57","\uaa58","\uaa59"],deva:["\u0966","\u0967","\u0968","\u0969","\u096a","\u096b","\u096c","\u096d","\u096e","\u096f"],diak:["\ud806\udd50","\ud806\udd51","\ud806\udd52","\ud806\udd53","\ud806\udd54","\ud806\udd55","\ud806\udd56","\ud806\udd57","\ud806\udd58","\ud806\udd59"],fullwide:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],gong:["\ud807\udda0","\ud807\udda1","\ud807\udda2","\ud807\udda3","\ud807\udda4","\ud807\udda5","\ud807\udda6","\ud807\udda7","\ud807\udda8","\ud807\udda9"],gonm:["\ud807\udd50","\ud807\udd51","\ud807\udd52","\ud807\udd53","\ud807\udd54","\ud807\udd55","\ud807\udd56","\ud807\udd57","\ud807\udd58","\ud807\udd59"],gujr:["\u0ae6","\u0ae7","\u0ae8","\u0ae9","\u0aea","\u0aeb","\u0aec","\u0aed","\u0aee","\u0aef"],guru:["\u0a66","\u0a67","\u0a68","\u0a69","\u0a6a","\u0a6b","\u0a6c","\u0a6d","\u0a6e","\u0a6f"],hanidec:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],hmng:["\ud81a\udf50","\ud81a\udf51","\ud81a\udf52","\ud81a\udf53","\ud81a\udf54","\ud81a\udf55","\ud81a\udf56","\ud81a\udf57","\ud81a\udf58","\ud81a\udf59"],hmnp:["\ud838\udd40","\ud838\udd41","\ud838\udd42","\ud838\udd43","\ud838\udd44","\ud838\udd45","\ud838\udd46","\ud838\udd47","\ud838\udd48","\ud838\udd49"],java:["\ua9d0","\ua9d1","\ua9d2","\ua9d3","\ua9d4","\ua9d5","\ua9d6","\ua9d7","\ua9d8","\ua9d9"],kali:["\ua900","\ua901","\ua902","\ua903","\ua904","\ua905","\ua906","\ua907","\ua908","\ua909"],khmr:["\u17e0","\u17e1","\u17e2","\u17e3","\u17e4","\u17e5","\u17e6","\u17e7","\u17e8","\u17e9"],knda:["\u0ce6","\u0ce7","\u0ce8","\u0ce9","\u0cea","\u0ceb","\u0cec","\u0ced","\u0cee","\u0cef"],lana:["\u1a80","\u1a81","\u1a82","\u1a83","\u1a84","\u1a85","\u1a86","\u1a87","\u1a88","\u1a89"],lanatham:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],laoo:["\u0ed0","\u0ed1","\u0ed2","\u0ed3","\u0ed4","\u0ed5","\u0ed6","\u0ed7","\u0ed8","\u0ed9"],lepc:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],limb:["\u1946","\u1947","\u1948","\u1949","\u194a","\u194b","\u194c","\u194d","\u194e","\u194f"],mathbold:["\ud835\udfce","\ud835\udfcf","\ud835\udfd0","\ud835\udfd1","\ud835\udfd2","\ud835\udfd3","\ud835\udfd4","\ud835\udfd5","\ud835\udfd6","\ud835\udfd7"],mathdbl:["\ud835\udfd8","\ud835\udfd9","\ud835\udfda","\ud835\udfdb","\ud835\udfdc","\ud835\udfdd","\ud835\udfde","\ud835\udfdf","\ud835\udfe0","\ud835\udfe1"],mathmono:["\ud835\udff6","\ud835\udff7","\ud835\udff8","\ud835\udff9","\ud835\udffa","\ud835\udffb","\ud835\udffc","\ud835\udffd","\ud835\udffe","\ud835\udfff"],mathsanb:["\ud835\udfec","\ud835\udfed","\ud835\udfee","\ud835\udfef","\ud835\udff0","\ud835\udff1","\ud835\udff2","\ud835\udff3","\ud835\udff4","\ud835\udff5"],mathsans:["\ud835\udfe2","\ud835\udfe3","\ud835\udfe4","\ud835\udfe5","\ud835\udfe6","\ud835\udfe7","\ud835\udfe8","\ud835\udfe9","\ud835\udfea","\ud835\udfeb"],mlym:["\u0d66","\u0d67","\u0d68","\u0d69","\u0d6a","\u0d6b","\u0d6c","\u0d6d","\u0d6e","\u0d6f"],modi:["\ud805\ude50","\ud805\ude51","\ud805\ude52","\ud805\ude53","\ud805\ude54","\ud805\ude55","\ud805\ude56","\ud805\ude57","\ud805\ude58","\ud805\ude59"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mroo:["\ud81a\ude60","\ud81a\ude61","\ud81a\ude62","\ud81a\ude63","\ud81a\ude64","\ud81a\ude65","\ud81a\ude66","\ud81a\ude67","\ud81a\ude68","\ud81a\ude69"],mtei:["\uabf0","\uabf1","\uabf2","\uabf3","\uabf4","\uabf5","\uabf6","\uabf7","\uabf8","\uabf9"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],mymrshan:["\u1090","\u1091","\u1092","\u1093","\u1094","\u1095","\u1096","\u1097","\u1098","\u1099"],mymrtlng:["\ua9f0","\ua9f1","\ua9f2","\ua9f3","\ua9f4","\ua9f5","\ua9f6","\ua9f7","\ua9f8","\ua9f9"],newa:["\ud805\udc50","\ud805\udc51","\ud805\udc52","\ud805\udc53","\ud805\udc54","\ud805\udc55","\ud805\udc56","\ud805\udc57","\ud805\udc58","\ud805\udc59"],nkoo:["\u07c0","\u07c1","\u07c2","\u07c3","\u07c4","\u07c5","\u07c6","\u07c7","\u07c8","\u07c9"],olck:["\u1c50","\u1c51","\u1c52","\u1c53","\u1c54","\u1c55","\u1c56","\u1c57","\u1c58","\u1c59"],orya:["\u0b66","\u0b67","\u0b68","\u0b69","\u0b6a","\u0b6b","\u0b6c","\u0b6d","\u0b6e","\u0b6f"],osma:["\ud801\udca0","\ud801\udca1","\ud801\udca2","\ud801\udca3","\ud801\udca4","\ud801\udca5","\ud801\udca6","\ud801\udca7","\ud801\udca8","\ud801\udca9"],rohg:["\ud803\udd30","\ud803\udd31","\ud803\udd32","\ud803\udd33","\ud803\udd34","\ud803\udd35","\ud803\udd36","\ud803\udd37","\ud803\udd38","\ud803\udd39"],saur:["\ua8d0","\ua8d1","\ua8d2","\ua8d3","\ua8d4","\ua8d5","\ua8d6","\ua8d7","\ua8d8","\ua8d9"],segment:["\ud83e\udff0","\ud83e\udff1","\ud83e\udff2","\ud83e\udff3","\ud83e\udff4","\ud83e\udff5","\ud83e\udff6","\ud83e\udff7","\ud83e\udff8","\ud83e\udff9"],shrd:["\ud804\uddd0","\ud804\uddd1","\ud804\uddd2","\ud804\uddd3","\ud804\uddd4","\ud804\uddd5","\ud804\uddd6","\ud804\uddd7","\ud804\uddd8","\ud804\uddd9"],sind:["\ud804\udef0","\ud804\udef1","\ud804\udef2","\ud804\udef3","\ud804\udef4","\ud804\udef5","\ud804\udef6","\ud804\udef7","\ud804\udef8","\ud804\udef9"],sinh:["\u0de6","\u0de7","\u0de8","\u0de9","\u0dea","\u0deb","\u0dec","\u0ded","\u0dee","\u0def"],sora:["\ud804\udcf0","\ud804\udcf1","\ud804\udcf2","\ud804\udcf3","\ud804\udcf4","\ud804\udcf5","\ud804\udcf6","\ud804\udcf7","\ud804\udcf8","\ud804\udcf9"],sund:["\u1bb0","\u1bb1","\u1bb2","\u1bb3","\u1bb4","\u1bb5","\u1bb6","\u1bb7","\u1bb8","\u1bb9"],takr:["\ud805\udec0","\ud805\udec1","\ud805\udec2","\ud805\udec3","\ud805\udec4","\ud805\udec5","\ud805\udec6","\ud805\udec7","\ud805\udec8","\ud805\udec9"],talu:["\u19d0","\u19d1","\u19d2","\u19d3","\u19d4","\u19d5","\u19d6","\u19d7","\u19d8","\u19d9"],tamldec:["\u0be6","\u0be7","\u0be8","\u0be9","\u0bea","\u0beb","\u0bec","\u0bed","\u0bee","\u0bef"],telu:["\u0c66","\u0c67","\u0c68","\u0c69","\u0c6a","\u0c6b","\u0c6c","\u0c6d","\u0c6e","\u0c6f"],thai:["\u0e50","\u0e51","\u0e52","\u0e53","\u0e54","\u0e55","\u0e56","\u0e57","\u0e58","\u0e59"],tibt:["\u0f20","\u0f21","\u0f22","\u0f23","\u0f24","\u0f25","\u0f26","\u0f27","\u0f28","\u0f29"],tirh:["\ud805\udcd0","\ud805\udcd1","\ud805\udcd2","\ud805\udcd3","\ud805\udcd4","\ud805\udcd5","\ud805\udcd6","\ud805\udcd7","\ud805\udcd8","\ud805\udcd9"],vaii:["\u1620","\u1621","\u1622","\u1623","\u1624","\u1625","\u1626","\u1627","\u1628","\u1629"],wara:["\ud806\udce0","\ud806\udce1","\ud806\udce2","\ud806\udce3","\ud806\udce4","\ud806\udce5","\ud806\udce6","\ud806\udce7","\ud806\udce8","\ud806\udce9"],wcho:["\ud838\udef0","\ud838\udef1","\ud838\udef2","\ud838\udef3","\ud838\udef4","\ud838\udef5","\ud838\udef6","\ud838\udef7","\ud838\udef8","\ud838\udef9"]}},462,[]); -__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InitializeNumberFormat=void 0,e.InitializeNumberFormat=function(t,n,o,r){var c=r.getInternalSlots,l=r.localeData,s=r.availableLocales,u=r.numberingSystemNames,p=r.getDefaultLocale,v=r.currencyDigitsData,y=_r(d[0]).CanonicalizeLocaleList(n),b=_r(d[1]).CoerceOptionsToObject(o),D=Object.create(null),O=_r(d[2]).GetOption(b,'localeMatcher','string',['lookup','best fit'],'best fit');D.localeMatcher=O;var f=_r(d[2]).GetOption(b,'numberingSystem','string',void 0,void 0);if(void 0!==f&&u.indexOf(f)<0)throw RangeError("Invalid numberingSystems: "+f);D.nu=f;var L=_r(d[3]).ResolveLocale(s,y,D,['nu'],l,p),G=l[L.dataLocale];_r(d[4]).invariant(!!G,"Missing locale data for "+L.dataLocale);var S=c(t);S.locale=L.locale,S.dataLocale=L.dataLocale,S.numberingSystem=L.nu,S.dataLocaleData=G,_r(d[5]).SetNumberFormatUnitOptions(t,b,{getInternalSlots:c});var h,I,N=S.style;if('currency'===N){var F=S.currency,M=_r(d[6]).CurrencyDigits(F,{currencyDigitsData:v});h=M,I=M}else h=0,I='percent'===N?0:3;var _=_r(d[2]).GetOption(b,'notation','string',['standard','scientific','engineering','compact'],'standard');S.notation=_,_r(d[7]).SetNumberFormatDigitOptions(S,b,h,I,_);var j=_r(d[2]).GetOption(b,'compactDisplay','string',['short','long'],'short');'compact'===_&&(S.compactDisplay=j);var z=_r(d[2]).GetOption(b,'useGrouping','boolean',void 0,!0);S.useGrouping=z;var C=_r(d[2]).GetOption(b,'signDisplay','string',['auto','never','always','exceptZero'],'auto');return S.signDisplay=C,t}},463,[439,441,445,464,452,472,457,473]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveLocale=e.LookupSupportedLocales=e.match=void 0,e.match=function(o,t,n,u){var c=t.reduce(function(o,t){return o.add(t),o},new Set);return r(d[0]).ResolveLocale(c,o,{localeMatcher:(null===u||void 0===u?void 0:u.algorithm)||'best fit'},[],{},function(){return n}).locale},Object.defineProperty(e,"LookupSupportedLocales",{enumerable:!0,get:function(){return r(d[1]).LookupSupportedLocales}}),Object.defineProperty(e,"ResolveLocale",{enumerable:!0,get:function(){return r(d[0]).ResolveLocale}})},464,[465,471]); -__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveLocale=void 0,e.ResolveLocale=function(n,t,o,l,r,c){for(var u,s=(u='lookup'===o.localeMatcher?_r(d[0]).LookupMatcher(n,t,c):_r(d[1]).BestFitMatcher(n,t,c)).locale,v={locale:'',dataLocale:s},f='-u',y=0,b=l;y2){var _=s.indexOf('-x-');-1===_?s+=f:s=s.slice(0,_)+f+s.slice(_,s.length),s=Intl.getCanonicalLocales(s)[0]}return v.locale=s,v}},465,[466,469,467,470]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LookupMatcher=void 0,e.LookupMatcher=function(l,o,t){for(var c={locale:''},n=0,u=o;n=2&&'-'===n[o-2]&&(o-=2),n=n.slice(0,o)}}},468,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BestFitMatcher=void 0,e.BestFitMatcher=function(t,n,o){var c,l=Array.from(t).reduce(function(t,n){return t[n]=n,t},{}),f=new Set;t.forEach(function(t){var n=new Intl.Locale(t).minimize().toString();l[n]=t,f.add(n)});for(var u=0,s=n;u-1;)l=t.indexOf('}',u),r(d[0]).invariant(l>u,"Invalid pattern "+t),u>s&&n.push({type:'literal',value:t.substring(s,u)}),n.push({type:t.substring(u+1,l),value:void 0}),s=l+1,u=t.indexOf('{',s);return s=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),R(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;R(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:Y(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},82,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var l,n,t=!0===(null==(l=g.HermesInternal)?void 0:null==l.hasPromise?void 0:l.hasPromise())&&!0===(null==(n=g.HermesInternal)?void 0:null==n.useEngineQueue?void 0:n.useEngineQueue()),u=r(d[0]).isNativeFunction(Promise)||t;if(!g.RN$Bridgeless){var o=function(l){r(d[1]).polyfillGlobal(l,function(){return r(d[2])[l]})};o('setTimeout'),o('clearTimeout'),o('setInterval'),o('clearInterval'),o('requestAnimationFrame'),o('cancelAnimationFrame'),o('requestIdleCallback'),o('cancelIdleCallback')}u?(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[3]).setImmediate}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[3]).clearImmediate})):g.RN$Bridgeless||(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[2]).queueReactNativeMicrotask}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[2]).clearReactNativeMicrotask})),t?r(d[1]).polyfillGlobal('queueMicrotask',function(){var l;return null==(l=g.HermesInternal)?void 0:l.enqueueJob}):r(d[1]).polyfillGlobal('queueMicrotask',function(){return r(d[4]).default})},83,[81,74,84,86,87]); +__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=16.666666666666668,n=[],i=[],l=[],o=[],c=[],u={},f=1,s=null,v=!1;function h(){var e=l.indexOf(null);return-1===e&&(e=l.length),e}function T(e,t){var o=f++,c=h();return l[c]=o,n[c]=e,i[c]=t,o}function k(e,o,c){e>f&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=l.indexOf(e);if(-1!==u){var v=i[u],h=n[u];if(h&&v){'setInterval'!==v&&p(u);try{'setTimeout'===v||'setInterval'===v||'queueReactNativeMicrotask'===v?h():'requestAnimationFrame'===v?h(g.performance.now()):'requestIdleCallback'===v?h({timeRemaining:function(){return Math.max(0,t-(g.performance.now()-o))},didTimeout:!!c}):console.error('Tried to call a callback with invalid type: '+v)}catch(e){s?s.push(e):s=[e]}}else console.error('No callback found for timerID '+e)}}function w(){if(0===o.length)return!1;var e=o;o=[];for(var t=0;t0}function p(e){l[e]=null,n[e]=null,i[e]=null}function N(e){if(null!=e){var t=l.indexOf(e);if(-1!==t){var n=i[t];p(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&M(e)}}}var b,I={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(c.splice(e,1),k(i,g.performance.now(),!0)),delete u[i],0===c.length&&R(!1)},n);u[i]=l}return i},cancelIdleCallback:function(e){N(e);var t=c.indexOf(e);-1!==t&&c.splice(t,1);var n=u[e];n&&(I.clearTimeout(n),delete u[e]),0===c.length&&R(!1)},clearTimeout:function(e){N(e)},clearInterval:function(e){N(e)},clearReactNativeMicrotask:function(e){N(e);var t=o.indexOf(e);-1!==t&&o.splice(t,1)},cancelAnimationFrame:function(e){N(e)},callTimers:function(e){r(d[2])(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),s=null;for(var t=0;t1)for(var i=1;i0){var n=c;c=[];for(var i=0;i1?u-1:0),c=1;c=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){e===this._requestId&&(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?E._interceptor&&E._interceptor.loadingFailed(e,t):E._interceptor&&E._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e&&e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders||{};return Object.keys(e).map(function(t){return t+': '+e[t]}).join('\r\n')}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(t){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(r(d[13]).addListener('didSendNetworkData',function(t){return s.__didUploadProgress.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkResponse',function(t){return s.__didReceiveResponse.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkData',function(t){return s.__didReceiveData.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkIncrementalData',function(t){return s.__didReceiveIncrementalData.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkDataProgress',function(t){return s.__didReceiveDataProgress.apply(s,(0,e.default)(t))})),this._subscriptions.push(r(d[13]).addListener('didCompleteNetworkResponse',function(t){return s.__didCompleteResponse.apply(s,(0,e.default)(t))}));var o='text';'arraybuffer'===this._responseType&&(o='base64'),'blob'===this._responseType&&(o='blob');var h;h='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(h),s._performanceLogger.startTimespan(s._perfKey),r(d[11])(s._method,'XMLHttpRequest method needs to be defined (%s).',h),r(d[11])(s._url,'XMLHttpRequest URL needs to be defined (%s).',h),r(d[13]).sendRequest(s._method,s._trackingName,s._url,s._headers,t,o,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&r(d[13]).abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,s){'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(0,t.default)((0,u.default)(E.prototype),"addEventListener",this).call(this,e,s)}}],[{key:"setInterceptor",value:function(e){E._interceptor=e}}]),E})(r(d[9]).apply(void 0,(0,e.default)(b)));N.UNSENT=l,N.OPENED=_,N.HEADERS_RECEIVED=f,N.LOADING=y,N.DONE=v,N._interceptor=null,m.exports=N},89,[3,42,90,8,7,9,11,14,92,96,97,26,99,100]); +__d(function(g,r,i,a,m,e,d){function t(o,s,p){return"undefined"!=typeof Reflect&&Reflect.get?(m.exports=t=Reflect.get,m.exports.default=m.exports,m.exports.__esModule=!0):(m.exports=t=function(t,o,s){var p=r(d[0])(t,o);if(p){var u=Object.getOwnPropertyDescriptor(p,o);return u.get?u.get.call(s):u.value}},m.exports.default=m.exports,m.exports.__esModule=!0),t(o,s,p||o)}m.exports=t,m.exports.default=m.exports,m.exports.__esModule=!0},90,[91]); +__d(function(g,r,i,a,m,e,d){m.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=r(d[0])(t)););return t},m.exports.default=m.exports,m.exports.__esModule=!0},91,[14]); +__d(function(g,_r,i,a,m,e,d){var t=_r(d[0])(_r(d[1])),l=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5]));var u=(function(){function u(){(0,l.default)(this,u)}return(0,r.default)(u,null,[{key:"createFromParts",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.');var r='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)}),f=t.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof _r(d[6])?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),c=f.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(f,r),u.createFromOptions({blobId:r,offset:0,size:c,type:l?l.type:'',lastModified:l?l.lastModified:Date.now()})}},{key:"createFromOptions",value:function(l){return _r(d[7]).register(l.blobId),(0,t.default)(Object.create(_r(d[6]).prototype),{data:null==l.__collector?(0,t.default)({},l,{__collector:(r=l.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(r))}):l});var r}},{key:"release",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),_r(d[7]).unregister(t),_r(d[7]).has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),u})();u.isAvailable=!!o.default,m.exports=u},92,[3,4,7,8,93,26,94,95]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in n)if("default"!==f&&Object.prototype.hasOwnProperty.call(n,f)){var s=c?Object.getOwnPropertyDescriptor(n,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=n[f]}l.default=n,u&&u.set(n,l);return l})(r(d[0])).get('BlobModule'),o=null,u=null;null!=n&&(u={getConstants:function(){return null==o&&(o=n.getConstants()),o},addNetworkingHandler:function(){n.addNetworkingHandler()},addWebSocketHandler:function(t){n.addWebSocketHandler(t)},removeWebSocketHandler:function(t){n.removeWebSocketHandler(t)},sendOverSocket:function(t,o){n.sendOverSocket(t,o)},createFromParts:function(t,o){n.createFromParts(t,o)},release:function(t){n.release(t)}});var l=u;e.default=l},93,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;r(d[0])(this,t);var o=r(d[1]);this.data=o.createFromParts(n,s).data}return r(d[2])(t,[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,n){var s=r(d[1]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[1]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),t})();m.exports=t},94,[7,92,8]); +__d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},95,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=s,n&&(this._pointExtras[t]=n))}},{key:"removeExtra",value:function(t){var s=this._extras[t];return delete this._extras[t],s}},{key:"setExtra",value:function(t,s){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=s)}},{key:"startTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n},u[t]=r(d[4]).beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var o=this._timespans[t];o&&null!=o.startTime&&null==o.endTime&&(o.endExtras=n,o.endTime=s,o.totalTime=o.endTime-(o.startTime||0),null!=u[t]&&(r(d[4]).endAsyncEvent(t,u[t]),delete u[t]))}}}]),t})()},98,[3,4,7,8,39]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=i(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,c=i(t),A=c[0],C=c[1],y=new o(f(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=0,f=h-u;if?f:i+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function f(t,n,o){return 3*(n+o)/4-o}function A(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},99,[]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),s=r(d[0])(r(d[9])),v=r(d[0])(r(d[10]));function h(){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}}function p(t){var e=[];for(var u in t)e.push([u,t[u]]);return e}var y=1;var R=(function(l){(0,n.default)(D,l);var R,k,q=(R=D,k=h(),function(){var t,e=(0,o.default)(R);if(k){var u=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return(0,f.default)(this,t)});function D(){return(0,e.default)(this,D),q.call(this,'ios'!==v.default.OS?null:c.default)}return(0,u.default)(D,[{key:"sendRequest",value:function(e,u,n,f,o,l,v,h,R,k){var q=(0,s.default)(o);q&&q.formData&&(q.formData=q.formData.map(function(e){return(0,t.default)({},e,{headers:p(e.headers)})}));var D=y++;c.default.sendRequest(e,n,D,p(f),(0,t.default)({},q,{trackingName:u}),l,v,h,k),R(D)}},{key:"abortRequest",value:function(t){c.default.abortRequest(t)}},{key:"clearCookies",value:function(t){c.default.clearCookies(t)}}]),D})(l.default);m.exports=new R},100,[3,4,7,8,9,11,14,101,102,103,27]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=(function(){function s(n){(0,t.default)(this,s),'ios'===l.default.OS&&(0,o.default)(null!=n,'`new NativeEventEmitter()` requires a non-null argument.');var u=!!n&&'function'==typeof n.addListener,v=!!n&&'function'==typeof n.removeListeners;n&&u&&v?this._nativeModule=n:null!=n&&(u||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}return(0,n.default)(s,[{key:"addListener",value:function(t,n,l){var o,s=this;null==(o=this._nativeModule)||o.addListener(t);var v=u.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"removeListener",value:function(t,n){var l;null==(l=this._nativeModule)||l.removeListeners(1),u.default.removeListener(t,n)}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),o=1;o-1};function s(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function l(t){var e=new FileReader,o=y(e);return e.readAsArrayBuffer(t),o}function p(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:''});return t.type='error',t};var A=[301,302,303,307,308];T.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError('Invalid status code');return new T(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(n,i){return new Promise(function(s,f){var c=new _(n,i);if(c.signal&&c.signal.aborted)return f(new t.DOMException('Aborted','AbortError'));var y=new XMLHttpRequest;function l(){y.abort()}y.onload=function(){var t,e,o={status:y.status,statusText:y.statusText,headers:(t=y.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}}),e)};o.url='responseURL'in y?y.responseURL:o.headers.get('X-Request-URL');var n='response'in y?y.response:y.responseText;setTimeout(function(){s(new T(n,o))},0)},y.onerror=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.ontimeout=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.onabort=function(){setTimeout(function(){f(new t.DOMException('Aborted','AbortError'))},0)},y.open(c.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(c.url),!0),'include'===c.credentials?y.withCredentials=!0:'omit'===c.credentials&&(y.withCredentials=!1),'responseType'in y&&(o.blob?y.responseType='blob':o.arrayBuffer&&c.headers.get('Content-Type')&&-1!==c.headers.get('Content-Type').indexOf('application/octet-stream')&&(y.responseType='arraybuffer')),!i||'object'!=typeof i.headers||i.headers instanceof u?c.headers.forEach(function(t,e){y.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){y.setRequestHeader(t,h(i.headers[t]))}),c.signal&&(c.signal.addEventListener('abort',l),y.onreadystatechange=function(){4===y.readyState&&c.signal.removeEventListener('abort',l)}),y.send(void 0===c._bodyInit?null:c._bodyInit)})}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=u,e.Request=_,e.Response=T),t.Headers=u,t.Request=_,t.Response=T,t.fetch=B,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})},107,[]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),b=r(d[0])(r(d[12])),p=r(d[0])(r(d[13])),v=r(d[0])(r(d[14])),_=r(d[0])(r(d[15])),E=r(d[0])(r(d[16])),k=["headers"];function S(){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(e){return!1}}var I=0,N=1,O=2,w=3,C=0,L=(function(_){(0,s.default)(R,_);var L,T,A=(L=R,T=S(),function(){var e,t=(0,u.default)(L);if(T){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function R(n,s,o){var u;(0,t.default)(this,R),(u=A.call(this)).CONNECTING=I,u.OPEN=N,u.CLOSING=O,u.CLOSED=w,u.readyState=I,u.url=n,'string'==typeof s&&(s=[s]);var c=o||{},l=c.headers,h=void 0===l?{}:l,p=(0,e.default)(c,k);return p&&'string'==typeof p.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),h.origin=p.origin,delete p.origin),Object.keys(p).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(p).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(s)||(s=null),u._eventEmitter=new f.default('ios'!==y.default.OS?null:b.default),u._socketId=C++,u._registerEvents(),b.default.connect(n,s,{headers:h},u._socketId),u}return(0,n.default)(R,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,E.default)(l.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?l.default.addWebSocketHandler(this._socketId):l.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof c.default)return(0,E.default)(l.default.isAvailable,'Native module BlobModule is required for blob support'),void l.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');b.default.sendBinary((0,h.default)(e),this._socketId)}else b.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');b.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var n='number'==typeof e?e:1e3,s='string'==typeof t?t:'';b.default.close(n,s,this._socketId),l.default.isAvailable&&'blob'===this._binaryType&&l.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var n=t.data;switch(t.type){case'binary':n=v.default.toByteArray(t.data).buffer;break;case'blob':n=l.default.createFromOptions(t.data)}e.dispatchEvent(new p.default('message',{data:n}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new p.default('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('error',{message:t.message})),e.dispatchEvent(new p.default('close',{message:t.message})),e._unregisterEvents(),e.close())})]}}]),R})(_.default.apply(void 0,['close','error','message','open']));L.CONNECTING=I,L.OPEN=N,L.CLOSING=O,L.CLOSED=w,m.exports=L},108,[3,5,7,8,9,11,14,94,92,101,105,27,109,110,99,96,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('WebSocketModule');e.default=n},109,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(function t(s,n){r(d[1])(this,t),this.type=s.toString(),r(d[2])(this,n)});m.exports=t},110,[8,7,4]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(o,e);var n,u,c=(n=o,u=t(),function(){var t,e=r(d[0])(n);if(u){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t,e,n){var u;return r(d[3])(this,o),r(d[4])(null!=t&&null!=e,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),(u=c.call(this,t,n)).data.name=e,u}return r(d[5])(o,[{key:"name",get:function(){return r(d[4])(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}]),o})(r(d[6]));m.exports=e},111,[14,11,9,7,26,8,94]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),u=r(d[0])(r(d[6]));function l(){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}}var c=0,f=1,h=2,y=(function(y){(0,n.default)(b,y);var _,p,v=(_=b,p=l(),function(){var t,e=(0,s.default)(_);if(p){var n=(0,s.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function b(){var e;return(0,t.default)(this,b),(e=v.call(this)).EMPTY=c,e.LOADING=f,e.DONE=h,e._aborted=!1,e._subscriptions=[],e._reset(),e}return(0,e.default)(b,[{key:"_reset",value:function(){this._readyState=c,this._error=null,this._result=null}},{key:"_clearSubscriptions",value:function(){this._subscriptions.forEach(function(t){return t.remove()}),this._subscriptions=[]}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent({type:'readystatechange'}),t===h&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(){throw new Error('FileReader.readAsArrayBuffer is not implemented')}},{key:"readAsDataURL",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");u.default.readAsDataURL(t.data).then(function(t){e._aborted||(e._result=t,e._setReadyState(h))},function(t){e._aborted||(e._error=t,e._setReadyState(h))})}},{key:"readAsText",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");u.default.readAsText(t.data,n).then(function(t){e._aborted||(e._result=t,e._setReadyState(h))},function(t){e._aborted||(e._error=t,e._setReadyState(h))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==c&&this._readyState!==h&&(this._reset(),this._setReadyState(h)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),b})(r(d[7]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));y.EMPTY=c,y.LOADING=f,y.DONE=h,m.exports=y},112,[3,7,8,9,11,14,113,96]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('FileReaderModule');e.default=n},113,[29]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=null;if(s.default&&'string'==typeof s.default.getConstants().BLOB_URI_SCHEME){var h=s.default.getConstants();u=h.BLOB_URI_SCHEME+':','string'==typeof h.BLOB_URI_HOST&&(u+="//"+h.BLOB_URI_HOST+"/")}t=Symbol.iterator;var f=(function(){function s(t){var o=this;(0,n.default)(this,s),this._searchParams=[],'object'==typeof t&&Object.keys(t).forEach(function(n){return o.append(n,t[n])})}return(0,o.default)(s,[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:t,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce(function(n,o,s){return n+o.join('=')+(s===t?'':'&')},'')}}]),s})();function l(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URLSearchParams=f;var c=(function(){function t(o,s){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(o))this._url=o,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError("Invalid base URL: "+u)}else'object'==typeof s&&(u=s.toString());u.endsWith('/')&&(u=u.slice(0,u.length-1)),o.startsWith('/')||(o="/"+o),u.endsWith(o)&&(o=''),this._url=""+u+o}}return(0,o.default)(t,[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._url.indexOf('?')>-1?'&':'?';return this._url+t+this._searchParamsInstance.toString()}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return""+u+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),t})();e.URL=c},114,[3,7,8,93]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}Object.defineProperty(_e,'__esModule',{value:!0});var e=(function(e){r(d[2])(c,e);var n,l,u=(n=c,l=t(),function(){var t,e=r(d[0])(n);if(l){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(){throw r(d[3])(this,c),u.call(this),new TypeError("AbortSignal cannot be constructed directly")}return r(d[4])(c,[{key:"aborted",get:function(){var t=o.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),c})(r(d[5]).EventTarget);r(d[5]).defineEventAttribute(e.prototype,"abort");var o=new WeakMap;Object.defineProperties(e.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var n=(function(){function t(){var n;r(d[3])(this,t),l.set(this,(n=Object.create(e.prototype),r(d[5]).EventTarget.call(n),o.set(n,!1),n))}return r(d[4])(t,[{key:"signal",get:function(){return u(this)}},{key:"abort",value:function(){var t;t=u(this),!1===o.get(t)&&(o.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),t})(),l=new WeakMap;function u(t){var e=l.get(t);if(null==e)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return e}Object.defineProperties(n.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(n.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),_e.AbortController=n,_e.AbortSignal=e,_e.default=n,m.exports=n,m.exports.AbortController=m.exports.default=n,m.exports.AbortSignal=e},115,[14,11,9,7,8,96]); +__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},116,[117]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(function(){function l(){(0,t.default)(this,l)}return(0,n.default)(l,null,[{key:"alert",value:function(t,n,s,u){if('ios'===o.default.OS)l.prompt(t,n,s,'default');else if('android'===o.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:t||'',message:n||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=s?s.slice(0,3):[{text:"OK"}],b=p.pop(),y=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),y&&(v.buttonNegative=y.text||''),b&&(v.buttonPositive=b.text||"OK");c.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?y.onPress&&y.onPress():n===f.buttonPositive&&b.onPress&&b.onPress():t===f.dismissed&&u&&u.onDismiss&&u.onDismiss()})}}},{key:"prompt",value:function(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0;if('ios'===o.default.OS){var v,p,b=[],y=[];'function'==typeof l?b=[l]:Array.isArray(l)&&l.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?v=String(n):'destructive'===t.style&&(p=String(n)),t.text||n<(l||[]).length-1){var o={};o[n]=t.text||'',y.push(o)}}),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:y,type:u||void 0,defaultValue:c,cancelButtonKey:v,destructiveButtonKey:p,keyboardType:f},function(t,n){var o=b[t];o&&o(n)})}}}]),l})();m.exports=l},117,[3,7,8,27,118,119]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));function n(){}m.exports={alertWithArgs:function(f,o){t.default&&t.default.showAlert(f,n,o||n)}}},118,[3,119]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DialogManagerAndroid');e.default=n},119,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t&&(g.navigator=t={}),r(d[0]).polyfillObjectProperty(t,'product',function(){return'ReactNative'})},120,[74]); +__d(function(g,r,i,a,m,e,d){'use strict';var n;if(g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6]).default}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},121,[37,39,84,122,124,126,20,127,97,128,130]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t={captureHeap:function(t){var p=null;try{g.nativeCaptureHeap(t),console.log('HeapCapture.captureHeap succeeded: '+t)}catch(e){console.log('HeapCapture.captureHeap error: '+e.toString()),p=e.toString()}e.default&&e.default.captureComplete(t,p)}};m.exports=t},122,[3,123]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('JSCHeapCapture');e.default=n},123,[29]); +__d(function(g,r,i,a,m,_e,d){'use strict';var o={poke:function(o){var e=null,l=null;try{null===(l=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),e=o.toString()}var n=r(d[0]).default;n&&n.operationComplete(o,l,e)}};m.exports=o},124,[125]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var c=l?Object.getOwnPropertyDescriptor(n,p):null;c&&(c.get||c.set)?Object.defineProperty(u,p,c):u[p]=n[p]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).get('JSCSamplingProfiler');e.default=n},125,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,l={logIfNoNativeHook:function(o){for(var t=arguments.length,f=new Array(t>1?t-1:0),c=1;c1?f-1:0),v=1;v1?t-1:0),f=1;f>>8)>>>0,t|=0)}}},142,[143,145]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n&&null!=(0,r(d[2]).normalizeColorObject)(n))return n;if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}},143,[3,144,145]); +__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,l,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?r+6*(l-r)*n:n<.5?l:n<.6666666666666666?r+(l-r)*(.6666666666666666-n)*6:r}function l(l,n,t){var o=t<.5?t*(1+n):t+n-t*n,u=2*t-o,g=r(u,o,l+.3333333333333333),s=r(u,o,l),h=r(u,o,l-.3333333333333333);return Math.round(255*g)<<24|Math.round(255*s)<<16|Math.round(255*h)<<8}var n,t='[-+]?\\d*\\.?\\d+',o="[-+]?\\d*\\.?\\d+%";function u(){for(var r=arguments.length,l=new Array(r),n=0;n255?255:l}function s(r){return(parseFloat(r)%360+360)%360/360}function h(r){var l=parseFloat(r);return l<0?0:l>1?255:Math.round(255*l)}function c(r){var l=parseFloat(r);return l<0?0:l>100?1:l/100}var p={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};m.exports=function(r){var b,y=(void 0===n&&(n={rgb:new RegExp('rgb'+u(t,t,t)),rgba:new RegExp('rgba'+u(t,t,t,t)),hsl:new RegExp('hsl'+u(t,o,o)),hsla:new RegExp('hsla'+u(t,o,o,t)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),n);return'number'==typeof r?r>>>0===r&&r>=0&&r<=4294967295?r:null:'string'!=typeof r?null:(b=y.hex6.exec(r))?parseInt(b[1]+'ff',16)>>>0:p.hasOwnProperty(r)?p[r]:(b=y.rgb.exec(r))?(g(b[1])<<24|g(b[2])<<16|g(b[3])<<8|255)>>>0:(b=y.rgba.exec(r))?(g(b[1])<<24|g(b[2])<<16|g(b[3])<<8|h(b[4]))>>>0:(b=y.hex3.exec(r))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+'ff',16)>>>0:(b=y.hex8.exec(r))?parseInt(b[1],16)>>>0:(b=y.hex4.exec(r))?parseInt(b[1]+b[1]+b[2]+b[2]+b[3]+b[3]+b[4]+b[4],16)>>>0:(b=y.hsl.exec(r))?(255|l(s(b[1]),c(b[2]),c(b[3])))>>>0:(b=y.hsla.exec(r))?(l(s(b[1]),c(b[2]),c(b[3]))|h(b[4]))>>>0:null}},144,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=void 0;e.PlatformColor=function(){for(var o=arguments.length,n=new Array(o),t=0;t.49999*l?[0,2*Math.atan2(u,m)*C,90]:M<-.49999*l?[0,-2*Math.atan2(u,m)*C,-90]:[t.roundTo3Places(Math.atan2(2*u*m-2*s*c,1-2*v-2*h)*C),t.roundTo3Places(Math.atan2(2*s*m-2*u*c,1-2*f-2*h)*C),t.roundTo3Places(Math.asin(2*u*s+2*c*m)*C)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(n){r(d[1])(16===n.length,'Matrix decomposition needs a list of 3d matrix values, received %s',n);var a=[],o=[],i=[],u=[],s=[];if(n[15]){for(var c=[],m=[],v=0;v<4;v++){c.push([]);for(var f=0;f<4;f++){var h=n[4*v+f]/n[15];c[v].push(h),m.push(3===f?0:h)}}if(m[15]=1,t.determinant(m)){if(0!==c[0][3]||0!==c[1][3]||0!==c[2][3]){var M=[c[0][3],c[1][3],c[2][3],c[3][3]],l=t.inverse(m),C=t.transpose(l);a=t.multiplyVectorByMatrix(M,C)}else a[0]=a[1]=a[2]=0,a[3]=1;for(var p=0;p<3;p++)s[p]=c[3][p];for(var x=[],T=0;T<3;T++)x[T]=[c[T][0],c[T][1],c[T][2]];i[0]=t.v3Length(x[0]),x[0]=t.v3Normalize(x[0],i[0]),u[0]=t.v3Dot(x[0],x[1]),x[1]=t.v3Combine(x[1],x[0],1,-u[0]),i[1]=t.v3Length(x[1]),x[1]=t.v3Normalize(x[1],i[1]),u[0]/=i[1],u[1]=t.v3Dot(x[0],x[2]),x[2]=t.v3Combine(x[2],x[0],1,-u[1]),u[2]=t.v3Dot(x[1],x[2]),x[2]=t.v3Combine(x[2],x[1],1,-u[2]),i[2]=t.v3Length(x[2]),x[2]=t.v3Normalize(x[2],i[2]),u[1]/=i[2],u[2]/=i[2];var y,S=t.v3Cross(x[1],x[2]);if(t.v3Dot(x[0],S)<0)for(var P=0;P<3;P++)i[P]*=-1,x[P][0]*=-1,x[P][1]*=-1,x[P][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+x[0][0]-x[1][1]-x[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-x[0][0]+x[1][1]-x[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-x[0][0]-x[1][1]+x[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+x[0][0]+x[1][1]+x[2][2],0)),x[2][1]>x[1][2]&&(o[0]=-o[0]),x[0][2]>x[2][0]&&(o[1]=-o[1]),x[1][0]>x[0][1]&&(o[2]=-o[2]),{rotationDegrees:y=o[0]<.001&&o[0]>=0&&o[1]<.001&&o[1]>=0?[0,0,t.roundTo3Places(180*Math.atan2(x[0][1],x[0][0])/Math.PI)]:t.quaternionToDegreesXYZ(o,c,x),perspective:a,quaternion:o,scale:i,skew:u,translation:s,rotate:y[2],rotateX:y[0],rotateY:y[1],scaleX:i[0],scaleY:i[1],translateX:s[0],translateY:s[1]}}}}};_m.exports=t},150,[31,26]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.get=p,e.getWithFallback_DEPRECATED=function(n,o){if(null==t){if(v(n))return p(n,o)}else if(null!=t(n))return p(n,o);var u=function(t){return null};return u.displayName="Fallback("+n+")",u},e.setRuntimeConfigProvider=function(n){(0,f.default)(null==t,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),t=n},e.unstable_hasComponent=function(t){var n=s.get(t);if(null==n){if(!g.__nativeComponentRegistry__hasComponent)throw"unstable_hasComponent('"+t+"'): Global function is not registered";n=g.__nativeComponentRegistry__hasComponent(t),s.set(t,n)}return n},e.unstable_hasStaticViewConfig=function(n){var o;return!(null!=(o=null==t?void 0:t(n))?o:{native:!0}).native};var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),f=r(d[0])(r(d[5]));!(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=l?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,o&&o.set(t,u)})(r(d[6]));function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var s=new Map;function p(n,f){return o.default.register(n,function(){var o,c=null!=(o=null==t?void 0:t(n))?o:{native:!0,verify:!1},s=c.native,p=c.verify,v=s?(0,u.default)(n):(0,r(d[7]).createViewConfig)(f());return p&&(s?(0,l.default)(v,(0,r(d[7]).createViewConfig)(f())):(0,l.default)((0,u.default)(n),v)),v}),n}function v(o){return(0,f.default)(null==t,'Unexpected invocation!'),null!=n.default.getViewManagerConfig(o)}},151,[3,50,135,152,165,26,15,166]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=!1;function t(n){var t=r(d[0]).getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=s(n,r(d[0]).getDefaultEventTypes()):(n.bubblingEventTypes=s(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=s(n.directEventTypes,t.genericDirectEventTypes))}function s(n,t){if(!t)return n;if(!n)return t;for(var o in t)if(t.hasOwnProperty(o)){var u=t[o];if(n.hasOwnProperty(o)){var c=n[o];'object'==typeof u&&'object'==typeof c&&(u=s(c,u))}n[o]=u}return n}function o(n){switch(n){case'CATransform3D':return r(d[4]);case'CGPoint':return r(d[5]);case'CGSize':return r(d[6]);case'UIEdgeInsets':return r(d[7]);case'Point':return r(d[5])}return null}function u(n){switch(n){case'CGColor':case'UIColor':return r(d[8]);case'CGColorArray':case'UIColorArray':return r(d[9]);case'CGImage':case'UIImage':case'RCTImageSource':return r(d[10]);case'Color':return r(d[8]);case'ColorArray':return r(d[9])}return null}m.exports=function(s){var c=r(d[0]).getViewManagerConfig(s);r(d[1])(null!=c&&null!=c.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',s);for(var l=c.baseModuleName,v=c.bubblingEventTypes,b=c.directEventTypes,p=c.NativeProps;l;){var f=r(d[0]).getViewManagerConfig(l);f?(v=r(d[2])({},f.bubblingEventTypes,v),b=r(d[2])({},f.directEventTypes,b),p=r(d[2])({},f.NativeProps,p),l=f.baseModuleName):l=null}var y={};for(var C in p){var E=p[C],T=o(E),w=u(E);y[C]=null==T&&null==w||{diff:T,process:w}}return y.style=r(d[3]),r(d[2])(c,{uiViewClassName:s,validAttributes:y,bubblingEventTypes:v,directEventTypes:b}),n||(t(c),n=!0),c}},152,[50,26,4,153,148,154,147,146,142,155,156]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l={process:t.default},s={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:!0,borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:l,shadowOffset:{diff:n.default},shadowOpacity:!0,shadowRadius:!0,decomposedMatrix:!0,rotation:!0,scaleX:!0,scaleY:!0,transform:{process:o.default},transformMatrix:!0,translateX:!0,translateY:!0,backfaceVisibility:!0,backgroundColor:l,borderBottomColor:l,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:l,borderEndColor:l,borderLeftColor:l,borderRadius:!0,borderRightColor:l,borderStartColor:l,borderStyle:!0,borderTopColor:l,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,color:l,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:l,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:l,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,writingDirection:!0,overlayColor:l,resizeMode:!0,tintColor:l};m.exports=s},153,[3,142,149,147]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={x:void 0,y:void 0};m.exports=function(n,o){return(n=n||t)!==(o=o||t)&&(n.x!==o.x||n.y!==o.y)}},154,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}},155,[3,142]); +__d(function(g,r,i,a,m,e,d){'use strict';var t,n,s,u;function o(){if(u)return u;var t=g.nativeExtensions&&g.nativeExtensions.SourceCode;return t||(t=r(d[0]).default),u=t.getConstants().scriptURL}function f(){if(void 0===n){var t=o(),s=t&&t.match(/^https?:\/\/.*?\//);n=s?s[0]:null}return n}function c(t){if(t){if(t.startsWith('assets://'))return null;(t=t.substring(0,t.lastIndexOf('/')+1)).includes('://')||(t='file://'+t)}return t}m.exports=function(n){if('object'==typeof n)return n;var u=r(d[1]).getAssetByID(n);if(!u)return null;var l=new(r(d[2]))(f(),(void 0===s&&(s=c(o())),s),u);return t?t(l):l.defaultAsset()},m.exports.pickScale=r(d[3]).pickScale,m.exports.setCustomSourceTransformer=function(n){t=n}},156,[157,158,159,160]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('SourceCode'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},157,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}},158,[]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t){var s=r(d[0]).pickScale(t.scales,r(d[1]).get()),n=1===s?'':'@'+s+'x';return r(d[2]).getBasePath(t)+'/'+t.name+n+'.'+t.type}var s=(function(){function s(t,n,u){r(d[3])(this,s),this.serverUrl=t,this.jsbundleUrl=n,this.asset=u}return r(d[4])(s,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!(!this.jsbundleUrl||!this.jsbundleUrl.startsWith('file://'))}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.isLoadedFromFileSystem()?this.drawableFolderInBundle():this.resourceIdentifierWithoutScale()}},{key:"assetServerURL",value:function(){return r(d[5])(!!this.serverUrl,'need server to load from'),this.fromSource(this.serverUrl+t(this.asset)+"?platform=android&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(t(this.asset))}},{key:"scaledAssetURLNearBundle",value:function(){var s=this.jsbundleUrl||'file://';return this.fromSource(s+t(this.asset).replace(/\.\.\//g,'_'))}},{key:"resourceIdentifierWithoutScale",value:function(){return r(d[5])(!0,'resource identifiers work on Android'),this.fromSource(r(d[2]).getAndroidResourceIdentifier(this.asset))}},{key:"drawableFolderInBundle",value:function(){var t,s,n=this.jsbundleUrl||'file://';return this.fromSource(n+(t=this.asset,s=r(d[0]).pickScale(t.scales,r(d[1]).get()),r(d[2]).getAndroidResourceFolderName(t,s)+'/'+r(d[2]).getAndroidResourceIdentifier(t)+'.'+t.type))}},{key:"fromSource",value:function(t){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:t,scale:r(d[0]).pickScale(this.asset.scales,r(d[1]).get())}}}]),s})();s.pickScale=r(d[0]).pickScale,m.exports=s},159,[160,161,164,7,8,26]); +__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlCacheBreaker=function(){if(null==n)return'';return n},e.pickScale=function(n,u){null==u&&(u=t.default.get());for(var l=0;l=u)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(t){n=t};var n,t=r(d[0])(r(d[1]))},160,[3,161]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"get",value:function(){return r(d[2]).get('window').scale}},{key:"getFontScale",value:function(){return r(d[2]).get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(n){return Math.round(n*t.get())}},{key:"roundToNearestPixel",value:function(n){var u=t.get();return Math.round(n*u)/u}},{key:"startDetecting",value:function(){}}]),t})();m.exports=t},161,[7,8,162]); +__d(function(g,r,i,a,m,e,d){var n,t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=new o.default,v=!1,h=(function(){function o(){(0,t.default)(this,o)}return(0,s.default)(o,null,[{key:"get",value:function(t){return(0,u.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var s=t.screen,o=t.window,l=t.windowPhysicalPixels;l&&(o={width:l.width/l.scale,height:l.height/l.scale,scale:l.scale,fontScale:l.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=o),n={window:o,screen:s},v?f.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){return(0,u.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),f.addListener(n,t)}},{key:"removeEventListener",value:function(n,t){(0,u.default)('change'===n,'Trying to remove listener for unknown event: "%s"',n),f.removeListener(n,t)}}]),o})(),w=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;w||(l.default.addListener('didUpdateDimensions',function(n){h.set(n)}),w=c.default.getConstants().Dimensions),h.set(w),m.exports=h},162,[3,7,8,21,20,163,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('DeviceInfo'),o=null,u={getConstants:function(){return null==o&&(o=n.getConstants()),o}};e.default=u},163,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},164,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o=0,u=['validAttributes','bubblingEventTypes','directEventTypes'];o0){var l,v=null!=(l=n.uiViewClassName)?l:t.uiViewClassName;console.error("'"+v+"' has a view config that does not match native. '"+s+"' is missing: "+c.join(', '))}}},e.getConfigWithoutViewProps=function(n,f){if(!n[f])return{};return Object.keys(n[f]).filter(function(n){return!t.default[f][n]}).reduce(function(t,o){return t[o]=n[f][o],t},{})},e.lefthandObjectDiff=f,e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var t=r(d[0])(r(d[1])),n=['transform','hitSlop'];function f(t,o){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)n.includes(c)||(o?t.hasOwnProperty(c)&&s(t[c],o[c],c):u[c]={});return u}},165,[3,140]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function u(n,u){var l;return null==n||null==u?null!=(l=null!=n?n:u)?l:{}:(0,t.default)({},n,u)}},166,[3,4,140]); +__d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var y=o.length;if(u.length!==y)return!0;for(var p=0;p=w},r=function(){},_e.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0x(l,t))void 0!==s&&0>x(s,l)?(e[r]=s,e[u]=t,r=u):(e[r]=l,e[o]=t,r=o);else{if(!(void 0!==s&&0>x(s,t)))break e;e[r]=s,e[u]=t,r=u}}}return n}return null}function x(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var P=[],F=[],I=1,M=null,C=3,j=!1,A=!1,L=!1;function q(e){for(var n=T(F);null!==n;){if(null===n.callback)g(F);else{if(!(n.startTime<=e))break;g(F),n.sortIndex=n.expirationTime,k(P,n)}n=T(F)}}function R(t){if(L=!1,q(t),!A)if(null!==T(P))A=!0,e(Y);else{var r=T(F);null!==r&&n(R,r.startTime-t)}}function Y(e,r){A=!1,L&&(L=!1,t()),j=!0;var a=C;try{for(q(r),M=T(P);null!==M&&(!(M.expirationTime>r)||e&&!_e.unstable_shouldYield());){var o=M.callback;if("function"==typeof o){M.callback=null,C=M.priorityLevel;var l=o(M.expirationTime<=r);r=_e.unstable_now(),"function"==typeof l?M.callback=l:M===T(P)&&g(P),q(r)}else g(P);M=T(P)}if(null!==M)var u=!0;else{var s=T(F);null!==s&&n(R,s.startTime-r),u=!1}return u}finally{M=null,C=a,j=!1}}var E=r;_e.unstable_IdlePriority=5,_e.unstable_ImmediatePriority=1,_e.unstable_LowPriority=4,_e.unstable_NormalPriority=3,_e.unstable_Profiling=null,_e.unstable_UserBlockingPriority=2,_e.unstable_cancelCallback=function(e){e.callback=null},_e.unstable_continueExecution=function(){A||j||(A=!0,e(Y))},_e.unstable_getCurrentPriorityLevel=function(){return C},_e.unstable_getFirstCallbackNode=function(){return T(P)},_e.unstable_next=function(e){switch(C){case 1:case 2:case 3:var n=3;break;default:n=C}var t=C;C=n;try{return e()}finally{C=t}},_e.unstable_pauseExecution=function(){},_e.unstable_requestPaint=E,_e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=C;C=e;try{return n()}finally{C=t}},_e.unstable_scheduleCallback=function(r,a,o){var l=_e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0l?(r.sortIndex=o,k(F,r),null===T(P)&&r===T(F)&&(L?t():L=!0,n(R,o-l))):(r.sortIndex=u,k(P,r),A||j||(A=!0,e(Y))),r},_e.unstable_wrapCallback=function(e){var n=C;return function(){var t=C;C=n;try{return e.apply(this,arguments)}finally{C=t}}}},172,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=c(n);if(o&&o.has(t))return o.get(t);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=u?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(l,f,s):l[f]=t[f]}l.default=t,o&&o.set(t,l);return l})(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),s=["animating","color","hidesWhenStopped","onLayout","size","style"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(c=function(t){return t?o:n})(t)}var p='android'===l.default.OS?r(d[7]):r(d[8]).default,y=o.forwardRef(function(c,y){var v,O,w=c.animating,b=void 0===w||w,S=c.color,j=void 0===S?'ios'===l.default.OS?"#999999":null:S,z=c.hidesWhenStopped,W=void 0===z||z,k=c.onLayout,L=c.size,P=void 0===L?'small':L,M=c.style,_=(0,n.default)(c,s);switch(P){case'small':v=h.sizeSmall,O='small';break;case'large':v=h.sizeLarge,O='large';break;default:v={height:P,width:P}}var E=(0,t.default)({animating:b,color:j,hidesWhenStopped:W},_,{ref:y,style:v,size:O});return o.createElement(f.default,{onLayout:k,style:u.default.compose(h.container,M)},'android'===l.default.OS?o.createElement(p,(0,t.default)({},E,{styleAttr:'Normal',indeterminate:!0})):o.createElement(p,E))});y.displayName='ActivityIndicator';var h=u.default.create({container:{alignItems:'center',justifyContent:'center'},sizeSmall:{width:20,height:20},sizeLarge:{width:36,height:36}});m.exports=y},173,[3,4,5,15,27,174,175,178,183]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).roundToNearestPixel(.4);0===t&&(t=1/r(d[0]).get());var o={position:'absolute',left:0,right:0,top:0,bottom:0};m.exports={hairlineWidth:t,absoluteFill:o,absoluteFillObject:o,compose:function(t,o){return null!=t&&null!=o?[t,o]:null!=t?t:o},flatten:r(d[1]),setStyleAttributePreprocessor:function(t,o){var l;if(!0===r(d[2])[t])l={process:o};else{if('object'!=typeof r(d[2])[t])return void console.error(t+" is not a valid style attribute");l=r(d[3])({},r(d[2])[t],{process:o})}r(d[2])[t]=l},create:function(t){return t}}},174,[161,169,153,4]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u);return u})(r(d[4]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var l=u.forwardRef(function(o,l){return u.createElement(f.default.Provider,{value:!1},u.createElement(n.default,(0,t.default)({},o,{ref:l})))});l.displayName='View',m.exports=l},175,[3,4,176,177,15]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=l(r(d[0])),n=r(d[1])(r(d[2])),o=r(d[1])(r(d[3])),u=r(d[1])(r(d[4]));l(r(d[5]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(f=function(t){return t?o:n})(t)}function l(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=f(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var s=l?Object.getOwnPropertyDescriptor(t,p):null;s&&(s.get||s.set)?Object.defineProperty(u,p,s):u[p]=t[p]}return u.default=t,o&&o.set(t,u),u}var p=t.get('RCTView',function(){return'android'===n.default.OS?u.default:{uiViewClassName:'RCTView'}}),s=(0,o.default)({supportedCommands:['hotspotUpdate','setPressed']});e.Commands=s;var c=p;e.default=c},176,[151,3,27,138,141,15]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createContext(!1);m.exports=t},177,[15]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),l=["styleAttr","indeterminate","animating"],o=r(d[4]),u=o.forwardRef(function(u,v){var s=u.styleAttr,c=void 0===s?'Normal':s,y=u.indeterminate,A=void 0===y||y,_=u.animating,p=void 0===_||_,w=(0,n.default)(u,l);return o.createElement(f.default,(0,t.default)({styleAttr:c,indeterminate:A,animating:p},w,{ref:v}))});m.exports=u},178,[3,4,5,179,15]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('AndroidProgressBar',{interfaceOnly:!0});e.default=t},179,[3,180]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]));var t=function(t,p){var l=p&&null!=p.paperComponentName?p.paperComponentName:t;if(null!=p&&null!=p.paperComponentNameDeprecated)if(o.default.getViewManagerConfig(t))l=t;else{var u;if(null==p.paperComponentNameDeprecated||!o.default.getViewManagerConfig(p.paperComponentNameDeprecated))throw new Error("Failed to find native component for either "+t+" or "+(null!=(u=p.paperComponentNameDeprecated)?u:'(unknown)'));l=p.paperComponentNameDeprecated}return(0,n.default)(l)};e.default=t},180,[3,181,50]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){return r(d[0])(n,function(){return r(d[1])(n)})}},181,[182,152]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).ReactNativeViewConfigRegistry.register;m.exports=function(n,s){return t(n,s)}},182,[133]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('ActivityIndicatorView',{paperComponentName:'RCTActivityIndicatorView'});e.default=t},183,[3,180]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=x(e);if(o&&o.has(t))return o.get(t);var s={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(s,c,l):s[c]=t[c]}s.default=t,o&&o.set(t,s);return s})(r(d[7])),u=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),p=r(d[0])(r(d[10])),b=r(d[0])(r(d[11])),y=r(d[0])(r(d[12])),h=r(d[0])(r(d[13])),v=r(d[0])(r(d[14]));function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(x=function(t){return t?o:e})(t)}function F(){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}}var D=(function(f){(0,s.default)(w,f);var x,D,S=(x=w,D=F(),function(){var t,e=(0,c.default)(x);if(D){var o=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function w(){return(0,e.default)(this,w),S.apply(this,arguments)}return(0,o.default)(w,[{key:"render",value:function(){var e,o,s=this.props,n=s.accessibilityLabel,c=s.color,f=s.onPress,x=s.touchSoundDisabled,F=s.title,D=s.hasTVPreferredFocus,S=s.nextFocusDown,w=s.nextFocusForward,P=s.nextFocusLeft,R=s.nextFocusRight,A=s.nextFocusUp,k=s.testID,j=s.accessible,C=s.accessibilityActions,L=s.onAccessibilityAction,M=[O.button],W=[O.text];c&&('ios'===u.default.OS?W.push({color:c}):M.push({backgroundColor:c}));var _=null!=this.props.disabled?this.props.disabled:null==(e=this.props.accessibilityState)?void 0:e.disabled,B=_!==(null==(o=this.props.accessibilityState)?void 0:o.disabled)?(0,t.default)({},this.props.accessibilityState,{disabled:_}):this.props.accessibilityState;_&&(M.push(O.buttonDisabled),W.push(O.textDisabled)),(0,v.default)('string'==typeof F,'The title prop of a Button must be a string');var E='android'===u.default.OS?F.toUpperCase():F,T='android'===u.default.OS?b.default:y.default;return l.createElement(T,{accessible:j,accessibilityActions:C,onAccessibilityAction:L,accessibilityLabel:n,accessibilityRole:"button",accessibilityState:B,hasTVPreferredFocus:D,nextFocusDown:S,nextFocusForward:w,nextFocusLeft:P,nextFocusRight:R,nextFocusUp:A,testID:k,disabled:_,onPress:f,touchSoundDisabled:x},l.createElement(h.default,{style:M},l.createElement(p.default,{style:W,disabled:_},E)))}}]),w})(l.Component),O=f.default.create({button:u.default.select({ios:{},android:{elevation:4,backgroundColor:'#2196F3',borderRadius:2}}),text:(0,t.default)({textAlign:'center',margin:8},u.default.select({ios:{color:'#007AFF',fontSize:18},android:{color:'white',fontWeight:'500'}})),buttonDisabled:u.default.select({ios:{},android:{elevation:0,backgroundColor:'#dfdfdf'}}),textDisabled:u.default.select({ios:{color:'#cdcdcd'},android:{color:'#a1a1a1'}})});m.exports=D},184,[3,4,7,8,9,11,14,15,27,174,185,210,211,175,26]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(v(r(d[5])),r(d[0])(r(d[6]))),u=(r(d[0])(r(d[7])),r(d[0])(r(d[8]))),p=r(d[0])(r(d[9])),f=v(r(d[10])),c=(r(d[0])(r(d[11])),["accessible","allowFontScaling","ellipsizeMode","onLongPress","onPress","onPressIn","onPressOut","onResponderGrant","onResponderMove","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","onStartShouldSetResponder","pressRetentionOffset","suppressHighlighting"]);function R(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,t=new WeakMap;return(R=function(n){return n?t:o})(n)}function v(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=R(o);if(t&&t.has(n))return t.get(n);var s={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var p=l?Object.getOwnPropertyDescriptor(n,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=n[u]}return s.default=n,t&&t.set(n,s),s}var P=f.forwardRef(function(s,R){var v=s.accessible,P=s.allowFontScaling,b=s.ellipsizeMode,O=s.onLongPress,T=s.onPress,h=s.onPressIn,y=s.onPressOut,M=s.onResponderGrant,w=s.onResponderMove,E=s.onResponderRelease,C=s.onResponderTerminate,L=s.onResponderTerminationRequest,j=s.onStartShouldSetResponder,x=s.pressRetentionOffset,D=s.suppressHighlighting,_=(0,t.default)(s,c),q=(0,f.useState)(!1),G=(0,o.default)(q,2),H=G[0],k=G[1],z=(null!=T||null!=O||null!=j)&&!0!==_.disabled,F=S(z),I=(0,f.useMemo)(function(){return F?{disabled:!z,pressRectOffset:x,onLongPress:O,onPress:T,onPressIn:function(n){k(!D),null==h||h(n)},onPressOut:function(n){k(!1),null==y||y(n)},onResponderTerminationRequest_DEPRECATED:L,onStartShouldSetResponder_DEPRECATED:j}:null},[F,z,x,O,T,h,y,L,j,D]),N=(0,l.default)(I),W=(0,f.useMemo)(function(){return null==N?null:{onResponderGrant:function(n){N.onResponderGrant(n),null!=M&&M(n)},onResponderMove:function(n){N.onResponderMove(n),null!=w&&w(n)},onResponderRelease:function(n){N.onResponderRelease(n),null!=E&&E(n)},onResponderTerminate:function(n){N.onResponderTerminate(n),null!=C&&C(n)},onResponderTerminationRequest:N.onResponderTerminationRequest,onStartShouldSetResponder:N.onStartShouldSetResponder}},[N,M,w,E,C]),A=null==_.selectionColor?null:(0,u.default)(_.selectionColor),V=_.style,B=_.numberOfLines;return null==B||B>=0||(console.error("'numberOfLines' in must be a non-negative number, received: "+B+". The value will be set to 0."),B=0),(0,f.useContext)(p.default)?f.createElement(r(d[12]).NativeVirtualText,(0,n.default)({},_,W,{isHighlighted:H,numberOfLines:B,selectionColor:A,style:V,ref:R})):f.createElement(p.default.Provider,{value:!0},f.createElement(r(d[12]).NativeText,(0,n.default)({},_,W,{accessible:!1!==v,allowFontScaling:!1!==P,ellipsizeMode:null!=b?b:'tail',isHighlighted:H,numberOfLines:B,selectionColor:A,style:V,ref:R})))});function S(n){var t=(0,f.useState)(n),s=(0,o.default)(t,2),l=s[0],u=s[1];return!l&&n&&u(n),l}P.displayName='Text',P.propTypes=s.default,m.exports=P},185,[3,4,31,5,186,200,201,174,142,177,15,26,208]); +__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={ellipsizeMode:r(d[2]).oneOf(['head','middle','tail','clip']),numberOfLines:r(d[2]).number,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onLayout:r(d[2]).func,onPress:r(d[2]).func,onLongPress:r(d[2]).func,pressRetentionOffset:r(d[3]),selectable:r(d[2]).bool,selectionColor:r(d[4]),suppressHighlighting:r(d[2]).bool,style:o,testID:r(d[2]).string,nativeID:r(d[2]).string,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,accessible:r(d[2]).bool,adjustsFontSizeToFit:r(d[2]).bool,minimumFontScale:r(d[2]).number,disabled:r(d[2]).bool,dataDetectorType:r(d[2]).oneOf(['phoneNumber','link','email','none','all'])}},186,[187,189,192,199,196]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t=r(d[0])(n);return function(n,o,c,u){var f=n;n[o]&&((f={})[o]=r(d[1])(n[o]));for(var v=arguments.length,p=new Array(v>4?v-4:0),s=4;s5?v-5:0),j=5;j4?s-4:0),p=4;p3?f-3:0),p=3;p0?t._pressDelayTimeout=setTimeout(function(){t._receiveSignal('DELAY',E)},n):t._receiveSignal('DELAY',E);var R=I(t._config.delayLongPress,10,500-n);t._longPressDelayTimeout=setTimeout(function(){t._handleLongPress(E)},R+n)},onResponderMove:function(E){var n=t._config.onPressMove;null!=n&&n(E);var R=t._responderRegion;if(null!=R){var _=A(E);if(null==_)return t._cancelLongPressDelayTimeout(),void t._receiveSignal('LEAVE_PRESS_RECT',E);if(null!=t._touchActivatePosition){var o=t._touchActivatePosition.pageX-_.pageX,l=t._touchActivatePosition.pageY-_.pageY;Math.hypot(o,l)>10&&t._cancelLongPressDelayTimeout()}t._isTouchWithinResponderRegion(_,R)?t._receiveSignal('ENTER_PRESS_RECT',E):(t._cancelLongPressDelayTimeout(),t._receiveSignal('LEAVE_PRESS_RECT',E))}},onResponderRelease:function(E){t._receiveSignal('RESPONDER_RELEASE',E)},onResponderTerminate:function(E){t._receiveSignal('RESPONDER_TERMINATED',E)},onResponderTerminationRequest:function(){var E=t._config.cancelable;if(null==E){var n=t._config.onResponderTerminationRequest_DEPRECATED;return null==n||n()}return E},onClick:function(E){var n=t._config,R=n.onPress,_=n.disabled;null!=R&&!0!==_&&R(E)}},_='ios'===l.default.OS||'android'===l.default.OS?null:{onMouseEnter:function(E){if((0,r(d[10]).isHoverEnabled)()){t._isHovered=!0,t._cancelHoverOutDelayTimeout();var n=t._config.onHoverIn;if(null!=n){var R=I(t._config.delayHoverIn);R>0?(E.persist(),t._hoverInDelayTimeout=setTimeout(function(){n(E)},R)):n(E)}}},onMouseLeave:function(E){if(t._isHovered){t._isHovered=!1,t._cancelHoverInDelayTimeout();var n=t._config.onHoverOut;if(null!=n){var R=I(t._config.delayHoverOut);R>0?(E.persist(),t._hoverInDelayTimeout=setTimeout(function(){n(E)},R)):n(E)}}}};return(0,E.default)({},n,R,_)}},{key:"_receiveSignal",value:function(E,t){var n,_=this._touchState,l=null==(n=S[_])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,R.default)(null!=l&&'ERROR'!==l,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,_,'number'==typeof this._responderID?this._responderID:'<>'),_!==l&&(null!=t.nativeEvent.timestamp&&o.default.emitEvent(function(){return{signal:E,touchDelayMs:Date.now()-t.nativeEvent.timestamp}}),this._performTransitionSideEffects(_,l,E,t),this._touchState=l))}},{key:"_performTransitionSideEffects",value:function(E,t,n,R){c(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var o='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,u=!P(E)&&P(t);if((o||u)&&this._measureResponderRegion(),O(E)&&'LONG_PRESS_DETECTED'===n){var s=this._config.onLongPress;null!=s&&s(R)}var S=T(E),D=T(t);if(!S&&D?this._activate(R):S&&!D&&this._deactivate(R),O(E)&&'RESPONDER_RELEASE'===n){D||S||(this._activate(R),this._deactivate(R));var N=this._config,h=N.onLongPress,f=N.onPress,v=N.android_disableSound;if(null!=f)null!=h&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E&&this._shouldLongPressCancelPress()||('android'===l.default.OS&&!0!==v&&_.default.playTouchSound(),f(R))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=A(E),R=n.pageX,_=n.pageY;this._touchActivatePosition={pageX:R,pageY:_},this._touchActivateTime=Date.now(),null!=t&&t(E)}},{key:"_deactivate",value:function(E){var t=this._config.onPressOut;if(null!=t){var n,R=I(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,I(this._config.delayPressOut));o>0?(E.persist(),this._pressOutDelayTimeout=setTimeout(function(){t(E)},o)):t(E)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?u.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,l=(0,r(d[11]).normalizeRect)(this._config.hitSlop),u=(0,r(d[11]).normalizeRect)(this._config.pressRectOffset),s=t.bottom,S=t.left,T=t.right,P=t.top;return null!=l&&(null!=l.bottom&&(s+=l.bottom),null!=l.left&&(S-=l.left),null!=l.right&&(T+=l.right),null!=l.top&&(P-=l.top)),s+=null!=(n=null==u?void 0:u.bottom)?n:D,S-=null!=(R=null==u?void 0:u.left)?R:N,T+=null!=(_=null==u?void 0:u.right)?_:h,P-=null!=(o=null==u?void 0:u.top)?o:f,E.pageX>S&&E.pageXP&&E.pageY1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=E?E:n)}e.default=v;var A=function(E){var t=E.nativeEvent,n=t.changedTouches,R=t.touches;return null!=R&&R.length>0?R[0]:null!=n&&n.length>0?n[0]:E.nativeEvent}},202,[3,4,7,8,26,203,205,27,50,15,206,207]); +__d(function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},203,[3,204]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('SoundManager');e.default=n},204,[29]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=new((function(){function s(){(0,t.default)(this,s),this._listeners=[]}return(0,n.default)(s,[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach(function(t){return t(n)})}}}]),s})());e.default=s},205,[3,7,8]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return n};var n=!1;if('web'===r(d[0])(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var t=0,o=function(){t=Date.now(),n&&(n=!1)};document.addEventListener('touchstart',o,!0),document.addEventListener('touchmove',o,!0),document.addEventListener('mousemove',function(){n||Date.now()-t<1e3||(n=!0)},!0)}},206,[3,27]); +__d(function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}},207,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=(0,o.default)('RCTText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0}),directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'}});e.NativeText=u;var s=g.RN$Bridgeless||n.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,maxFontSizeMultiplier:!0}),uiViewClassName:'RCTVirtualText'}}):u;e.NativeVirtualText=s},208,[3,4,209,50,182]); +__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0])(r(d[1])),t={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessibilityHint:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,onAccessibilityEscape:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:r(d[0])(r(d[2])).default},c={UIView:t,RCTView:(0,s.default)({},t,{removeClippedSubviews:!0})};m.exports=c},209,[3,4,153]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),u=r(d[0])(r(d[9])),f=r(d[0])(r(d[10])),h=(r(d[0])(r(d[11])),r(d[0])(r(d[12]))),b=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=P(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=n?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(o,l,c):o[l]=e[l]}o.default=e,s&&s.set(e,o);return o})(r(d[13])),y=r(d[0])(r(d[14])),v=["onBlur","onFocus"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(P=function(e){return e?s:t})(e)}function F(){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(e){return!1}}var O=(function(h){(0,n.default)(R,h);var y,P,O=(y=R,P=F(),function(){var e,t=(0,c.default)(y);if(P){var s=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function R(){var e;(0,s.default)(this,R);for(var t=arguments.length,o=new Array(t),n=0;n=23};var S='android'===f.default.OS?function(e,t){return t&&O.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};O.displayName='TouchableNativeFeedback',m.exports=O},210,[3,4,5,7,8,9,11,14,202,56,27,175,142,15,26,176]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),u=r(d[0])(r(d[9])),f=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),h=r(d[0])(r(d[12])),b=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=P(e);if(s&&s.has(t))return s.get(t);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=n?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,s&&s.set(t,o);return o})(r(d[13])),v=["onBlur","onFocus"];function P(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(P=function(t){return t?s:e})(t)}function O(){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}}var F=(function(P){(0,n.default)(w,P);var F,_,R=(F=w,_=O(),function(){var t,e=(0,l.default)(F);if(_){var s=(0,l.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,c.default)(this,t)});function w(){var t;(0,s.default)(this,w);for(var e=arguments.length,o=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return t},event:r(d[5]).event,createAnimatedComponent:r(d[6]),attachNativeEvent:r(d[7]).attachNativeEvent,forkEvent:r(d[5]).forkEvent,unforkEvent:r(d[5]).unforkEvent,Event:r(d[7]).AnimatedEvent}},213,[4,214,223,218,220,224,240,239]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}function e(t){var e=new Set;!(function t(n){'function'==typeof n.update?e.add(n):n.__getChildren().forEach(t)})(t),e.forEach(function(t){return t.update()})}var n=(function(n){r(d[3])(_,n);var s,u,o=(s=_,u=t(),function(){var t,e=r(d[0])(s);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t){var e;if(r(d[4])(this,_),e=o.call(this),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');return e._startingValue=e._value=t,e._offset=0,e._animation=null,e}return r(d[5])(_,[{key:"__detach",value:function(){var t=this;this.__isNative&&r(d[2]).API.getValue(this.__getNativeTag(),function(e){t._value=e}),this.stopAnimation(),r(d[6])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){var e,n,s=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),n=function(){r(d[2]).API.setAnimatedNodeValue(s.__getNativeTag(),t)},r(d[2]).API.setWaitingForIdentifier(e),n(),r(d[2]).API.unsetWaitingForIdentifier(e))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&r(d[2]).API.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&r(d[2]).API.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&r(d[2]).API.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&r(d[2]).API.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"_onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"animate",value:function(t,e){var n=this,s=null;t.__isInteraction&&(s=r(d[8]).createInteractionHandle());var u=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){n._updateValue(t,!0)},function(t){n._animation=null,null!==s&&r(d[8]).clearInteractionHandle(s),e&&e(t)},u,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t}},{key:"_updateValue",value:function(t,n){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._value=t,n&&e(this),r(d[6])(r(d[0])(_.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),_})(r(d[9]));m.exports=n},214,[14,11,215,9,7,8,90,218,221,219]); +__d(function(g,r,i,a,m,e,d){var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),f='ios'===l.default.OS&&g.RN$Bridgeless?o.default:n.default,c=1,v=1,p=new Set,N=!1,b=[],A={getValue:function(t,n){(0,s.default)(f,'Native animated module is not available'),A.queueOperation(function(){f.getValue(t,n)})},setWaitingForIdentifier:function(t){p.add(t),N=!0},unsetWaitingForIdentifier:function(t){p.delete(t),0===p.size&&(N=!1,A.disableQueue())},disableQueue:function(){(0,s.default)(f,'Native animated module is not available'),'android'===l.default.OS&&f.startOperationBatch();for(var t=0,n=b.length;tn){if('identity'===u)return c;'clamp'===u&&(c=n)}return a===r?a:e===n?t<=e?a:r:(e===-1/0?c=-c:n===1/0?c-=e:c=(c-e)/(n-e),c=i(c),a===-1/0?c=-c:r===1/0?c+=a:c=c*(r-a)+a,c)}function r(t){var e=_r(d[3])(t);return null===e||'number'!=typeof e?t:"rgba("+((4278190080&(e=e||0))>>>24)+", "+((16711680&e)>>>16)+", "+((65280&e)>>>8)+", "+(255&e)/255+")"}var i=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function o(t){var e=t.outputRange;_r(d[2])(e.length>=2,'Bad output range'),u(e=e.map(r));var a=e[0].match(i).map(function(){return[]});e.forEach(function(t){t.match(i).forEach(function(t,e){a[e].push(+t)})});var o,c=e[0].match(i).map(function(e,r){return n(_r(d[4])({},t,{outputRange:a[r]}))}),l='string'==typeof(o=e[0])&&o.startsWith('rgb');return function(t){var n=0;return e[0].replace(i,function(){var e=+c[n++](t);return l&&(e=n<4?Math.round(e):Math.round(1e3*e)/1e3),String(e)})}}function u(t){for(var e=t[0].replace(i,''),n=1;n=t);++n);return n-1}function l(t){_r(d[2])(t.length>=2,'inputRange must have at least 2 elements');for(var e=1;e=t[e-1],'inputRange must be monotonically non-decreasing '+t)}function p(t,e){_r(d[2])(e.length>=2,t+' must have at least 2 elements'),_r(d[2])(2!==e.length||e[0]!==-1/0||e[1]!==1/0,t+'cannot be ]-infinity;+infinity[ '+e)}var f=(function(e){_r(d[5])(o,e);var a,r,i=(a=o,r=t(),function(){var t,e=_r(d[0])(a);if(r){var n=_r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _r(d[1])(this,t)});function o(t,e){var a;return _r(d[6])(this,o),(a=i.call(this))._parent=t,a._config=e,a._interpolation=n(e),a}return _r(d[7])(o,[{key:"__makeNative",value:function(){this._parent.__makeNative(),_r(d[8])(_r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return _r(d[2])('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new o(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),_r(d[8])(_r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(_r(d[9]).transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),o})(_r(d[10]));f.__createInterpolation=n,m.exports=f},218,[14,11,26,143,4,9,7,8,90,215,219]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function t(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=e(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function e(t,e){if(t){if("string"==typeof t)return i(t,e);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)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0?setTimeout(h,0):setImmediate(h))}function h(){l=0;var f=o.size;c.forEach(function(n){return o.add(n)}),s.forEach(function(n){return o.delete(n)});var h=o.size;if(0!==f&&0===h?n.emit(t.Events.interactionComplete):0===f&&0!==h&&n.emit(t.Events.interactionStart),0===h)for(;u.hasTasksToProcess();)if(u.processNext(),p>0&&r(d[4]).getEventLoopRunningTime()>=p){v();break}c.clear(),s.clear()}m.exports=t},221,[3,21,26,222,37]); +__d(function(g,r,i,a,m,_e,d){'use strict';var e=(function(){function e(t){var u=t.onMoreTasks;r(d[0])(this,e),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return r(d[1])(e,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return r(d[2])({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(r(d[3])('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then(function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}).done()}}]),e})();m.exports=e},222,[7,8,4,26]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=1,n=(function(n){r(d[2])(o,n);var s,u,f=(s=o,u=t(),function(){var t,e=r(d[0])(s);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t){var e;r(d[3])(this,o),e=f.call(this);var n=t||{x:0,y:0};return'number'==typeof n.x&&'number'==typeof n.y?(e.x=new(r(d[4]))(n.x),e.y=new(r(d[4]))(n.y)):(r(d[5])(n.x instanceof r(d[4])&&n.y instanceof r(d[4]),"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),e.x=n.x,e.y=n.y),e._listeners={},e}return r(d[6])(o,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var n=this,s=String(e++),u=function(e){e.value;t(n.__getValue())};return this._listeners[s]={x:this.x.addListener(u),y:this.y.addListener(u)},s}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),o})(r(d[7]));m.exports=n},223,[14,11,9,7,214,26,8,219]); +__d(function(g,r,_i,_a,m,e,d){'use strict';var n=function(n,t){return n&&t.onComplete?function(){t.onComplete&&t.onComplete.apply(t,arguments),n&&n.apply(void 0,arguments)}:n||t.onComplete},t=function(n,t,i){if(n instanceof r(d[6])){var o=r(d[7])({},t),u=r(d[7])({},t);for(var s in t){var c=t[s],f=c.x,v=c.y;void 0!==f&&void 0!==v&&(o[s]=f,u[s]=v)}var p=i(n.x,o),l=i(n.y,u);return a([p,l],{stopTogether:!1})}return null},i=function i(o,a){var u=function(t,i,o){o=n(o,i);var a=t,u=i;a.stopTracking(),i.toValue instanceof r(d[8])?a.track(new(r(d[9]))(a,i.toValue,r(d[11]),u,o)):a.animate(new(r(d[11]))(u),o)};return t(o,a,i)||{start:function(n){u(o,a,n)},stop:function(){o.stopAnimation()},reset:function(){o.resetAnimation()},_startNativeLoop:function(n){var t=r(d[7])({},a,{iterations:n});u(o,t)},_isUsingNativeDriver:function(){return a.useNativeDriver||!1}}},o=function(n){var t=0;return{start:function(i){0===n.length?i&&i({finished:!0}):n[t].start(function o(a){a.finished&&++t!==n.length?n[t].start(o):i&&i(a)})},stop:function(){t1&&void 0!==arguments[1]?arguments[1]:{},i=t.iterations,o=void 0===i?-1:i,a=t.resetBeforeIteration,u=void 0===a||a,s=!1,c=0;return{start:function(t){n&&0!==o?n._isUsingNativeDriver()?n._startNativeLoop(o):(function i(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};s||c===o||!1===a.finished?t&&t(a):(c++,u&&n.reset(),n.start(i))})():t&&t({finished:!0})},stop:function(){s=!0,n.stop()},reset:function(){c=0,s=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var i=new(r(d[14]).AnimatedEvent)(n,t);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:r(d[16]),attachNativeEvent:r(d[14]).attachNativeEvent,forkEvent:function(n,t){return n?n instanceof r(d[14]).AnimatedEvent?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof r(d[14]).AnimatedEvent&&n.__removeListener(t)},Event:r(d[14]).AnimatedEvent}},224,[225,226,227,228,229,230,223,4,220,231,232,235,238,214,239,218,240]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},225,[14,11,9,7,214,8,90,218,219]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},226,[14,11,9,7,214,8,90,218,219]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(_,e);var n,o,a=(n=_,o=t(),function(){var t,e=r(d[0])(n);if(o){var a=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t,e){var n;return r(d[3])(this,_),(n=a.call(this))._warnedAboutDivideByZero=!1,(0===e||e instanceof r(d[4])&&0===e.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),n._a='number'==typeof t?new(r(d[5]))(t):t,n._b='number'==typeof e?new(r(d[5]))(e):e,n}return r(d[6])(_,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[7])(r(d[0])(_.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=this._b.__getValue();return 0===e?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,t/e)}},{key:"interpolate",value:function(t){return new(r(d[8]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[7])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),_})(r(d[9]));m.exports=e},227,[14,11,9,7,220,214,8,90,218,219]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,a,_=(n=u,a=t(),function(){var t,e=r(d[0])(n);if(a){var _=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,_)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n;return r(d[3])(this,u),(n=_.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof e?new(r(d[4]))(e):e,n}return r(d[5])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[8]));m.exports=e},228,[14,11,9,7,214,8,90,218,219]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(o,e);var u,n,a=(u=o,n=t(),function(){var t,e=r(d[0])(u);if(n){var a=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(t,e){var u;return r(d[3])(this,o),(u=a.call(this))._a=t,u._modulus=e,u}return r(d[4])(o,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),o})(r(d[7]));m.exports=e},229,[14,11,9,7,8,90,218,219]); +__d(function(g,r,i,_a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(_,e);var a,n,u=(a=_,n=t(),function(){var t,e=r(d[0])(a);if(n){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t,e,a){var n;return r(d[3])(this,_),(n=u.call(this))._a=t,n._min=e,n._max=a,n._value=n._lastValue=n._a.__getValue(),n}return r(d[4])(_,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(_.prototype),"__makeNative",this).call(this)}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),_})(r(d[7]));m.exports=e},230,[14,11,9,7,8,90,218,219]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,_,o=(n=u,_=t(),function(){var t,e=r(d[0])(n);if(_){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e,n,_,s){var l;return r(d[3])(this,u),(l=o.call(this))._value=t,l._parent=e,l._animationClass=n,l._animationConfig=_,l._useNativeDriver=r(d[4]).shouldUseNativeDriver(_),l._callback=s,l.__attach(),l}return r(d[5])(u,[{key:"__makeNative",value:function(){this.__isNative=!0,this._parent.__makeNative(),r(d[6])(r(d[0])(u.prototype),"__makeNative",this).call(this),this._value.__makeNative()}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}},{key:"__detach",value:function(){this._parent.__removeChild(this),r(d[6])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(r(d[7])({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(r(d[7])({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:r(d[4]).generateNewAnimationId(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),u})(r(d[8]));m.exports=e},231,[14,11,9,7,215,8,90,4,220]); +__d(function(g,r,i,a,_m,_e,d){'use strict';function t(){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}}var s=(function(s){r(d[2])(l,s);var e,n,o=(e=l,n=t(),function(){var t,s=r(d[0])(e);if(n){var o=r(d[0])(this).constructor;t=Reflect.construct(s,arguments,o)}else t=s.apply(this,arguments);return r(d[1])(this,t)});function l(t){var s,e,n,h,_,u,f,c,m,v,p,y;if(r(d[3])(this,l),(m=o.call(this))._overshootClamping=null!=(s=t.overshootClamping)&&s,m._restDisplacementThreshold=null!=(e=t.restDisplacementThreshold)?e:.001,m._restSpeedThreshold=null!=(n=t.restSpeedThreshold)?n:.001,m._initialVelocity=null!=(h=t.velocity)?h:0,m._lastVelocity=null!=(_=t.velocity)?_:0,m._toValue=t.toValue,m._delay=null!=(u=t.delay)?u:0,m._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),m.__isInteraction=null!=(f=t.isInteraction)?f:!m._useNativeDriver,m.__iterations=null!=(c=t.iterations)?c:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)r(d[5])(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),m._stiffness=null!=(v=t.stiffness)?v:100,m._damping=null!=(p=t.damping)?p:10,m._mass=null!=(y=t.mass)?y:1;else if(void 0!==t.bounciness||void 0!==t.speed){var V,T;r(d[5])(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var b=r(d[6]).fromBouncinessAndSpeed(null!=(V=t.bounciness)?V:8,null!=(T=t.speed)?T:12);m._stiffness=b.stiffness,m._damping=b.damping,m._mass=1}else{var M,D,P=r(d[6]).fromOrigamiTensionAndFriction(null!=(M=t.tension)?M:40,null!=(D=t.friction)?D:7);m._stiffness=P.stiffness,m._damping=P.damping,m._mass=1}return r(d[5])(m._stiffness>0,'Stiffness value must be greater than 0'),r(d[5])(m._damping>0,'Damping value must be greater than 0'),r(d[5])(m._mass>0,'Mass value must be greater than 0'),m}return r(d[7])(l,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations}}},{key:"start",value:function(t,s,e,n,o){var h=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=e,this._lastTime=Date.now(),this._frameTime=0,n instanceof l){var _=n.getInternalState();this._lastPosition=_.lastPosition,this._lastVelocity=_.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=_.lastTime}var u=function(){h._useNativeDriver?h.__startNativeAnimation(o):h.onUpdate()};this._delay?this._timeout=setTimeout(u,this._delay):u()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var e=this._damping,n=this._mass,o=this._stiffness,l=-this._initialVelocity,h=e/(2*Math.sqrt(o*n)),_=Math.sqrt(o/n),u=_*Math.sqrt(1-h*h),f=this._toValue-this._startPosition,c=0,m=0,v=this._frameTime;if(h<1){var p=Math.exp(-h*_*v);c=this._toValue-p*((l+h*_*f)/u*Math.sin(u*v)+f*Math.cos(u*v)),m=h*_*p*(Math.sin(u*v)*(l+h*_*f)/u+f*Math.cos(u*v))-p*(Math.cos(u*v)*(l+h*_*f)-u*f*Math.sin(u*v))}else{var y=Math.exp(-_*v);c=this._toValue-y*(f+(l+_*f)*v),m=y*(l*(v*_-1)+v*f*(_*_))}if(this._lastTime=t,this._lastPosition=c,this._lastVelocity=m,this._onUpdate(c),this.__active){var V=!1;this._overshootClamping&&0!==this._stiffness&&(V=this._startPositionthis._toValue:c18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},233,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=1,n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"start",value:function(t,n,e,o,_){}},{key:"stop",value:function(){this.__nativeId&&r(d[2]).API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(n){var e=t+":startAnimation";t+=1,r(d[2]).API.setWaitingForIdentifier(e);try{n.__makeNative(),this.__nativeId=r(d[2]).generateNewAnimationId(),r(d[2]).API.startAnimatingNode(this.__nativeId,n.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{r(d[2]).API.unsetWaitingForIdentifier(e)}}}]),n})();m.exports=n},234,[7,8,215]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e;function n(){if(!e){var t=r(d[2]);e=t.inOut(t.ease)}return e}var s=(function(e){r(d[3])(_,e);var s,o,u=(s=_,o=t(),function(){var t,e=r(d[0])(s);if(o){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function _(t){var e,s,o,h,l,c;return r(d[4])(this,_),(c=u.call(this))._toValue=t.toValue,c._easing=null!=(e=t.easing)?e:n(),c._duration=null!=(s=t.duration)?s:500,c._delay=null!=(o=t.delay)?o:0,c.__iterations=null!=(h=t.iterations)?h:1,c._useNativeDriver=r(d[5]).shouldUseNativeDriver(t),c.__isInteraction=null!=(l=t.isInteraction)?l:!c._useNativeDriver,c}return r(d[6])(_,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=Math.round(this._duration/16.666666666666668),n=0;n=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){r(d[7])(r(d[0])(_.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),_})(r(d[8]));m.exports=s},235,[14,11,236,9,7,215,8,90,234]); +__d(function(g,r,i,a,m,e,d){'use strict';var n,u=(function(){function u(){r(d[0])(this,u)}return r(d[1])(u,null,[{key:"step0",value:function(n){return n>0?1:0}},{key:"step1",value:function(n){return n>=1?1:0}},{key:"linear",value:function(n){return n}},{key:"ease",value:function(t){return n||(n=u.bezier(.42,0,1,1)),n(t)}},{key:"quad",value:function(n){return n*n}},{key:"cubic",value:function(n){return n*n*n}},{key:"poly",value:function(n){return function(u){return Math.pow(u,n)}}},{key:"sin",value:function(n){return 1-Math.cos(n*Math.PI/2)}},{key:"circle",value:function(n){return 1-Math.sqrt(1-n*n)}},{key:"exp",value:function(n){return Math.pow(2,10*(n-1))}},{key:"elastic",value:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(u){return 1-Math.pow(Math.cos(u*Math.PI/2),3)*Math.cos(u*n)}}},{key:"back",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(u){return u*u*((n+1)*u-n)}}},{key:"bounce",value:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var u=n-.5454545454545454;return 7.5625*u*u+.75}if(n<.9090909090909091){var t=n-.8181818181818182;return 7.5625*t*t+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375}},{key:"bezier",value:function(n,u,t,o){return r(d[2])(n,u,t,o)}},{key:"in",value:function(n){return n}},{key:"out",value:function(n){return function(u){return 1-n(1-u)}}},{key:"inOut",value:function(n){return function(u){return u<.5?n(2*u)/2:1-n(2*(1-u))/2}}}]),u})();m.exports=u},236,[7,8,237]); +__d(function(g,r,_i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,i='function'==typeof Float32Array;function c(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((c(t,u)*n+v(t,u))*n+s(t))*n}function l(n,t,u){return 3*c(t,u)*n*n+2*v(t,u)*n+s(t)}function y(n,t,f,i,c){var v,s,l=0,y=t,b=f;do{(v=w(s=y+(b-y)/2,i,c)-n)>0?b=s:y=s}while(Math.abs(v)>u&&++l=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var v=i?new Float32Array(11):new Array(11);if(n!==u||o!==c)for(var s=0;s<11;++s)v[s]=w(s*f,n,o);function h(u){for(var i=0,c=1;10!==c&&v[c]<=u;++c)i+=f;var s=i+(u-v[--c])/(v[c+1]-v[c])*f,w=l(s,n,o);return w>=t?b(u,s,n,o):0===w?s:y(u,i,i+f,n,o)}return function(t){return n===u&&o===c?t:0===t?0:1===t?1:w(h(t),u,c)}}},237,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(c,e);var n,s,o=(n=c,s=t(),function(){var t,e=r(d[0])(n);if(s){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(t){var e,n,s,u;return r(d[3])(this,c),(u=o.call(this))._deceleration=null!=(e=t.deceleration)?e:.998,u._velocity=t.velocity,u._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),u.__isInteraction=null!=(n=t.isInteraction)?n:!u._useNativeDriver,u.__iterations=null!=(s=t.iterations)?s:1,u}return r(d[5])(c,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}},{key:"start",value:function(t,e,n,s,o){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=n,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(o):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){r(d[6])(r(d[0])(c.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),c})(r(d[7]));m.exports=e},238,[14,11,9,7,215,8,90,234]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,s){var v=[];r(d[1])(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,s){if(n instanceof r(d[0]))n.__makeNative(),v.push({nativeEventPath:s,animatedValueTag:n.__getNativeTag()});else if('object'==typeof n)for(var o in n)t(n[o],s.concat(o))})(s[0].nativeEvent,[]);var o=r(d[2]).findNodeHandle(t);return null!=o&&v.forEach(function(t){r(d[3]).API.addAnimatedEventToView(o,n,t)}),{detach:function(){null!=o&&v.forEach(function(t){r(d[3]).API.removeAnimatedEventFromView(o,n,t.animatedValueTag)})}}}var n=(function(){function n(t,s){r(d[4])(this,n),this._listeners=[],this._argMapping=t,null==s&&(console.warn('Animated.event now requires a second argument for options'),s={useNativeDriver:!1}),s.listener&&this.__addListener(s.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=r(d[3]).shouldUseNativeDriver(s)}return r(d[5])(n,[{key:"__addListener",value:function(t){this._listeners.push(t)}},{key:"__removeListener",value:function(t){this._listeners=this._listeners.filter(function(n){return n!==t})}},{key:"__attach",value:function(n,s){r(d[1])(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=t(n,s,this._argMapping)}},{key:"__detach",value:function(t,n){r(d[1])(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var t=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),v=0;v1){for(var l=[],s=0;s1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var o,l=v(t.props.numColumns),s=null!=(o=t.props.keyExtractor)?o:r(d[10]).keyExtractor;return l>1?Array.isArray(e)?e.map(function(e,t){return s(e,n*l+t)}).join(':'):void r(d[11])(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",l):s(e,n)},t._renderer=function(){var e=t.props,o=e.ListItemComponent,l=e.renderItem,s=e.columnWrapperStyle,u=v(t.props.numColumns),c=o?'ListItemComponent':'renderItem',f=function(e){return o?h.createElement(o,e):l?l(e):null};return(0,n.default)({},c,function(e){if(u>1){var t=e.item,n=e.index;return r(d[11])(Array.isArray(t),'Expected array of items with numColumns > 1'),h.createElement(r(d[12]),{style:r(d[13]).compose(y.row,s)},t.map(function(t,o){var l=f({item:t,index:n*u+o,separators:e.separators});return null!=l?h.createElement(h.Fragment,{key:o},l):null}))}return f(e)})},t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}}):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(t.props.onViewableItemsChanged)}),t}return(0,l.default)(k,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){r(d[11])(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),r(d[11])(e.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),r(d[11])(!r(d[14])(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),r(d[11])(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,o=e.horizontal,l=e.columnWrapperStyle,s=e.onViewableItemsChanged,u=e.viewabilityConfigCallbackPairs,c=v(this.props.numColumns);r(d[11])(!t&&!n,'FlatList does not support custom data formats.'),c>1?r(d[11])(!o,'numColumns does not support horizontal.'):r(d[11])(!l,'columnWrapperStyle not supported for single column lists'),r(d[11])(!(s&&u),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,n){var o,l=v(this.props.numColumns),s=null!=(o=this.props.keyExtractor)?o:r(d[10]).keyExtractor;n.item.forEach(function(o,u){r(d[11])(null!=n.index,'Missing index!');var c=n.index*l+u;e.push((0,t.default)({},n,{item:o,key:s(o,c),index:c}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var o=v(t.props.numColumns);if(e)if(o>1){var l=[],s=[];n.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(s,e)}),n.changed.forEach(function(e){return t._pushMultiColumnViewable(l,e)}),e({viewableItems:s,changed:l})}else e(n)}}},{key:"render",value:function(){var n,o=this.props,l=(o.numColumns,o.columnWrapperStyle,o.removeClippedSubviews),s=(0,e.default)(o,f);return h.createElement(r(d[15]),(0,t.default)({},s,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(n=l,null==n||n)},this._renderer()))}}]),k})(h.PureComponent),y=r(d[13]).create({row:{flexDirection:'row'}});m.exports=C},247,[3,5,4,248,7,8,9,11,14,15,249,26,175,174,167,250]); +__d(function(g,r,i,a,m,e,d){m.exports=function(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},m.exports.default=m.exports,m.exports.__esModule=!0},248,[]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.computeWindowedRenderLimits=function(n,s,o,u,c,h,v){var b=s(n);if(0===b)return c;var M=v.offset,y=v.velocity,x=v.visibleLength,p=Math.max(0,M),w=p+x,O=(u-1)*x,k=y>1?'after':y<-1?'before':'none',_=Math.max(0,p-.5*O),j=Math.max(0,w+.5*O);if(h(b-1).offset<_)return{first:Math.max(0,b-1-o),last:b-1};var L=f([_,p,w,j],b,h),S=(0,t.default)(L,4),C=S[0],E=S[1],J=S[2],N=S[3];C=null==C?0:C,E=null==E?Math.max(0,C):E,N=null==N?b-1:N,J=null==J?Math.min(N,E+o-1):J;var R={first:E,last:J},B=l(c,R);for(;!(E<=C&&J>=N);){var F=B>=o,P=E<=c.first||E>c.last,T=E>C&&(!F||!P),W=J>=c.last||J=E&&E>=0&&J=C&&J<=N&&E<=R.first&&J>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:E,last:J,itemCount:b,overscanFirst:C,overscanLast:N,visible:R}));return{first:E,last:J}},e.elementsThatOverlapOffsets=f,e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)},e.newRangeCount=l;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function f(t,f,l){for(var s=[],o=0,u=0;u=t[v]&&(s[v]=u,o++,v===t.length-1))return(0,n.default)(o===t.length,'bad offsets input, should be in increasing order: %s',JSON.stringify(t)),s;return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}},249,[3,31,26]); +__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),i=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),h=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=u(t);if(o&&o.has(e))return o.get(e);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=s?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,o&&o.set(e,n);return n})(r(d[9]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(u=function(e){return e?o:t})(e)}function p(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=f(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"==typeof e)return _(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o0&&t>0&&null!=i.props.initialScrollIndex&&i.props.initialScrollIndex>0&&!i._hasDoneInitialScroll&&(null==i.props.contentOffset&&i.scrollToIndex({animated:!1,index:i.props.initialScrollIndex}),i._hasDoneInitialScroll=!0),i.props.onContentSizeChange&&i.props.onContentSizeChange(e,t),i._scrollMetrics.contentLength=i._selectLength({height:t,width:e}),i._scheduleCellsToRenderUpdate(),i._maybeCallOnEndReached()},i._convertParentScrollMetrics=function(e){var t=e.offset-i._offsetFromParentVirtualizedList,o=e.visibleLength,n=t-i._scrollMetrics.offset;return{visibleLength:o,contentLength:i._scrollMetrics.contentLength,offset:t,dOffset:n}},i._onScroll=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),i.props.onScroll&&i.props.onScroll(e);var t=e.timeStamp,o=i._selectLength(e.nativeEvent.layoutMeasurement),n=i._selectLength(e.nativeEvent.contentSize),s=i._selectOffset(e.nativeEvent.contentOffset),l=s-i._scrollMetrics.offset;if(i._isNestedWithSameOrientation()){if(0===i._scrollMetrics.contentLength)return;var c=i._convertParentScrollMetrics({visibleLength:o,offset:s});o=c.visibleLength,n=c.contentLength,s=c.offset,l=c.dOffset}var h=i._scrollMetrics.timestamp?Math.max(1,t-i._scrollMetrics.timestamp):1,u=l/h;h>500&&i._scrollMetrics.dt>500&&n>5*o&&!i._hasWarned.perf&&(r(d[14])("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:h,prevDt:i._scrollMetrics.dt,contentLength:n}),i._hasWarned.perf=!0),i._scrollMetrics={contentLength:n,dt:h,dOffset:l,offset:s,timestamp:t,velocity:u,visibleLength:o},i._updateViewableItems(i.props.data),i.props&&(i._maybeCallOnEndReached(),0!==u&&i._fillRateHelper.activate(),i._computeBlankness(),i._scheduleCellsToRenderUpdate())},i._onScrollBeginDrag=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),i._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),i._hasInteracted=!0,i.props.onScrollBeginDrag&&i.props.onScrollBeginDrag(e)},i._onScrollEndDrag=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(i._scrollMetrics.velocity=i._selectOffset(t)),i._computeBlankness(),i.props.onScrollEndDrag&&i.props.onScrollEndDrag(e)},i._onMomentumScrollBegin=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollBegin(e)}),i.props.onMomentumScrollBegin&&i.props.onMomentumScrollBegin(e)},i._onMomentumScrollEnd=function(e){i._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollEnd(e)}),i._scrollMetrics.velocity=0,i._computeBlankness(),i.props.onMomentumScrollEnd&&i.props.onMomentumScrollEnd(e)},i._updateCellsToRender=function(){var e=i.props,t=e.data,o=e.getItemCount,n=M(e.onEndReachedThreshold),s=i._isVirtualizationDisabled();i._updateViewableItems(t),t&&i.setState(function(e){var l,c=i._scrollMetrics,h=c.contentLength,u=c.offset,f=c.visibleLength;if(s){var _=h-f-u0&&h>0&&(i.props.initialScrollIndex&&!i._scrollMetrics.offset||(l=(0,r(d[15]).computeWindowedRenderLimits)(i.props.data,i.props.getItemCount,I(i.props.maxToRenderPerBatch),R(i.props.windowSize),e,i._getFrameMetricsApprox,i._scrollMetrics)));if(l&&i._nestedChildLists.size>0)for(var y=l.first,v=l.last,C=y;C<=v;C++){var L=i._indicesToKeys.get(C),b=L&&i._cellKeysToChildListKeys.get(L);if(b){for(var S,M=!1,x=p(b);!(S=x()).done;){var w=S.value,k=i._nestedChildLists.get(w);if(k&&k.ref&&k.ref.hasMore()){M=!0;break}}if(M){l.last=C;break}}}return null!=l&&l.first===e.first&&l.last===e.last&&(l=null),l})},i._createViewToken=function(e,t){var o=i.props,n=o.data,s=(0,o.getItem)(n,e);return{index:e,item:s,key:i._keyExtractor(s,e),isViewable:t}},i._getFrameMetricsApprox=function(e){var t=i._getFrameMetrics(e);if(t&&t.index===e)return t;var o=i.props.getItemLayout;return r(d[11])(!o,'Should not have to estimate frames when a measurement metrics function is provided'),{length:i._averageCellLength,offset:i._averageCellLength*e}},i._getFrameMetrics=function(e){var t=i.props,o=t.data,n=t.getItem,s=t.getItemCount,l=t.getItemLayout;r(d[11])(s(o)>e,'Tried to get frame for out of range index '+e);var c=n(o,e),h=c&&i._frames[i._keyExtractor(c,e)];return h&&h.index===e||l&&(h=l(o,e)),h},r(d[11])(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),r(d[11])(R(e.windowSize)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),i._fillRateHelper=new(r(d[16]))(i._getFrameMetrics),i._updateCellsToRenderBatcher=new(r(d[17]))(i._updateCellsToRender,null!=(n=i.props.updateCellsBatchingPeriod)?n:50),i.props.viewabilityConfigCallbackPairs?i._viewabilityTuples=i.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new(r(d[18]))(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}}):i.props.onViewableItemsChanged&&i._viewabilityTuples.push({viewabilityHelper:new(r(d[18]))(i.props.viewabilityConfig),onViewableItemsChanged:i.props.onViewableItemsChanged});var l={first:i.props.initialScrollIndex||0,last:Math.min(i.props.getItemCount(i.props.data),(i.props.initialScrollIndex||0)+S(i.props.initialNumToRender))-1};if(i._isNestedWithSameOrientation()){var f=i.context.getNestedChildState(i._getListKey());f&&(l=f,i.state=f,i._frames=f.frames)}return i.state=l,i}return(0,n.default)(u,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,o=this.props.getItemCount(this.props.data)-1,n=this._getFrameMetricsApprox(o),s=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(b(this.props.horizontal)?{x:s,animated:t}:{y:s,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToIndex",value:function(e){var t=this.props,o=t.data,n=t.horizontal,s=t.getItemCount,i=t.getItemLayout,l=t.onScrollToIndexFailed,c=e.animated,h=e.index,u=e.viewOffset,p=e.viewPosition;if(r(d[11])(h>=0,"scrollToIndex out of range: requested index "+h+" but minimum is 0"),r(d[11])(s(o)>=1,"scrollToIndex out of range: item length "+s(o)+" but minimum is 1"),r(d[11])(hthis._highestMeasuredFrameIndex)return r(d[11])(!!l,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void l({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:h});var f=this._getFrameMetricsApprox(h),_=Math.max(0,f.offset-(p||0)*(this._scrollMetrics.visibleLength-f.length))-(u||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(n?{x:_,animated:c}:{y:_,animated:c}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var o=e.item,n=this.props,s=n.data,i=n.getItem,l=(0,n.getItemCount)(s),c=0;c0){C=!1,L='';var x=this._getSpacerKey(!p),w=this.props.initialScrollIndex?-1:S(this.props.initialNumToRender)-1,k=this.state,T=k.first,z=k.last;this._pushCells(y,I,v,0,w,_);var K=Math.max(w+1,T);if(!f&&T>w+1){var O=!1;if(v.size>0)for(var P=l?1:0,F=K-1;F>w;F--)if(v.has(F+P)){var V=this._getFrameMetricsApprox(w),D=this._getFrameMetricsApprox(F),N=D.offset-V.offset-(this.props.initialScrollIndex?0:V.length);y.push(h.createElement(r(d[10]),{key:"$sticky_lead",style:(0,e.default)({},x,N)})),this._pushCells(y,I,v,F,F,_);var A=this._getFrameMetricsApprox(T).offset-(D.offset+D.length);y.push(h.createElement(r(d[10]),{key:"$sticky_trail",style:(0,e.default)({},x,A)})),O=!0;break}if(!O){var B=this._getFrameMetricsApprox(w),H=this._getFrameMetricsApprox(T).offset-(B.offset+B.length);y.push(h.createElement(r(d[10]),{key:"$lead_spacer",style:(0,e.default)({},x,H)}))}}if(this._pushCells(y,I,v,K,z,_),!this._hasWarned.keys&&C&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",L),this._hasWarned.keys=!0),!f&&zu&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state,t=e.first,o=e.last,n=this._scrollMetrics,s=n.offset,i=n.visibleLength,l=n.velocity,c=this.props.getItemCount(this.props.data),h=!1,u=M(this.props.onEndReachedThreshold)*i/2;if(t>0){var p=s-this._getFrameMetricsApprox(t).offset;h=h||p<0||l<-2&&p2&&f0&&(this._scrollAnimatedValueAttachment=p.default.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,o,t){var n=this.props.stickyHeaderIndices;if(n){var l=y.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,l)){var s=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,s);var u=n[n.indexOf(e)-1];if(null!=u){var c=this._stickyHeaderRefs.get(this._getKeyForIndex(u,l));c&&c.setNextHeaderY&&c.setNextHeaderY(s)}}}}},{key:"render",value:function(){var t=this,n=!0===this.props.horizontal?P:F,l=(0,o.default)(n,2),s=l[0],u=l[1],c=[!0===this.props.horizontal&&Y.contentContainerHorizontal,this.props.contentContainerStyle],p=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},f=this.props.stickyHeaderIndices,S=this.props.children;if(null!=f&&f.length>0){var b=y.Children.toArray(this.props.children);S=b.map(function(e,o){var n=e?f.indexOf(o):-1;if(n>-1){var l=e.key,s=f[n+1],u=t.props.StickyHeaderComponent||_.default;return y.createElement(u,{key:l,nativeID:'StickyHeader-'+l,ref:function(e){return t._setStickyHeaderRef(l,e)},nextHeaderLayoutY:t._headerLayoutYs.get(t._getKeyForIndex(s,b)),onLayout:function(e){return t._onStickyHeaderLayout(o,e,l)},scrollAnimatedValue:t._scrollAnimatedValue,inverted:t.props.invertStickyHeaders,hiddenOnScroll:t.props.stickyHeaderHiddenOnScroll,scrollViewHeight:t.state.layoutHeight},e)}return e})}S=y.createElement(D.default.Provider,{value:!0===this.props.horizontal?D.HORIZONTAL:D.VERTICAL},S);var R=Array.isArray(f)&&f.length>0,T=y.createElement(u,(0,e.default)({},p,{ref:this._setInnerViewRef,style:c,removeClippedSubviews:('android'!==h.default.OS||!R)&&this.props.removeClippedSubviews,collapsable:!1}),S),w=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,V=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,k=!0===this.props.horizontal?Y.baseHorizontal:Y.baseVertical,E=(0,e.default)({},this.props,{alwaysBounceHorizontal:w,alwaysBounceVertical:V,style:v.default.compose(k,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,scrollEventThrottle:R?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:h.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),K=this.props.decelerationRate;null!=K&&(E.decelerationRate=(0,O.default)(K));var A=this.props.refreshControl;if(A){if('ios'===h.default.OS)return y.createElement(s,(0,e.default)({},E,{ref:this._setNativeRef}),A,T);if('android'===h.default.OS){var N=(0,I.default)((0,H.default)(E.style)),M=N.outer,W=N.inner;return y.cloneElement(A,{style:v.default.compose(k,M)},y.createElement(s,(0,e.default)({},E,{style:v.default.compose(k,W),ref:this._setNativeRef}),T))}}return y.createElement(s,(0,e.default)({},E,{ref:this._setNativeRef}),T)}}]),x})(y.Component);G.Context=D.default;var Y=v.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function U(o,t){return y.createElement(G,(0,e.default)({},o,{scrollViewRef:t}))}U.displayName='ScrollView';var Z=y.forwardRef(U);Z.Context=D.default,Z.displayName='ScrollView',m.exports=Z},251,[3,4,31,7,8,13,9,11,14,224,162,27,15,56,252,174,175,50,253,257,136,255,169,26,259,260,242,261,262,263,264,265,266]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=s(n);if(u&&u.has(t))return u.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=o?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}l.default=t,u&&u.set(t,l);return l})(r(d[6]));function s(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(s=function(t){return t?u:n})(t)}var c=o.default.View,p=f.forwardRef(function(l,s){var p=l.inverted,h=l.scrollViewHeight,y=l.hiddenOnScroll,R=l.scrollAnimatedValue,O=l.nextHeaderLayoutY,L=f.useState(!1),b=(0,t.default)(L,2),w=b[0],S=b[1],j=f.useState(0),E=(0,t.default)(j,2),P=E[0],_=E[1],x=f.useState(0),M=(0,t.default)(x,2),k=M[0],C=M[1],D=f.useState(null),H=(0,t.default)(D,2),I=H[0],V=H[1],Y=f.useState(O),T=(0,t.default)(Y,2),W=T[0],A=T[1],N=f.useState(!1),z=(0,t.default)(N,2),F=z[0],q=z[1],B=f.useRef(),G=(0,n.default)({getForwardedRef:function(){return s},setLocalRef:function(t){var n,u;(B.current=t,t)&&(t.setNextHeaderY=function(t){A(t)},q(!(null==(n=t._internalInstanceHandle)||null==(u=n.stateNode)||!u.canonical)))}}),J=(0,f.useMemo)(function(){return!0===y?o.default.diffClamp(R.interpolate({extrapolateLeft:'clamp',inputRange:[P,P+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-k,0):null},[R,k,P,y]),K=f.useState(function(){var t=R.interpolate({inputRange:[-1,0],outputRange:[0,0]});return null!=J?o.default.add(t,J):t}),Q=(0,t.default)(K,2),U=Q[0],X=Q[1],Z=(0,f.useRef)(!0),$=(0,f.useRef)(null);(0,f.useEffect)(function(){0!==I&&null!=I&&(Z.current=!1)},[I]);var ee=(0,f.useCallback)(function(t){var n=t.value,l='android'===u.default.OS?15:64;0!==n||Z.current?(null!=$.current&&clearTimeout($.current),$.current=setTimeout(function(){n!==I&&V(n)},l)):Z.current=!0},[I]);(0,f.useEffect)(function(){var t=[-1,0],n=[0,0];if(w)if(!0===p){if(null!=h){var u=P+k-h;if(u>0){t.push(u),n.push(0),t.push(u+1),n.push(1);var l=(W||0)-k-h;l>u&&(t.push(l,l+1),n.push(l-u,l-u))}}}else{t.push(P),n.push(0);var f=(W||0)-k;f>=P?(t.push(f,f+1),n.push(f-P,f-P)):(t.push(P+1),n.push(1))}var s,c=R.interpolate({inputRange:t,outputRange:n});return null!=J&&(c=o.default.add(c,J)),F&&(s=c.addListener(ee)),X(c),function(){s&&c.removeListener(s),null!=$.current&&clearTimeout($.current)}},[W,w,k,P,h,R,p,J,ee,F]);var te=f.Children.only(l.children),ne=F&&null!=I?{style:{transform:[{translateY:I}]}}:null;return f.createElement(c,{collapsable:!1,nativeID:l.nativeID,onLayout:function(t){_(t.nativeEvent.layout.y),C(t.nativeEvent.layout.height),S(!0),l.onLayout(t);var n=f.Children.only(l.children);n.props.onLayout&&n.props.onLayout(t)},ref:G,style:[te.props.style,v.header,{transform:[{translateY:U}]}],passthroughAnimatedPropExplicitValues:ne},f.cloneElement(te,{style:v.fill,onLayout:void 0}))}),v=l.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}}),h=p;e.default=h},252,[3,31,242,27,174,212,15]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),v=(function(){function v(){(0,t.default)(this,v),this._emitter=new u.default('ios'!==s.default.OS?null:f.default)}return(0,n.default)(v,[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeListener",value:function(t,n){this._emitter.removeListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,o.default)()}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&l.default.configureNext({duration:n,update:{duration:n,type:null!=u&&l.default.Types[u]||'keyboard'}})}}]),v})();m.exports=new v},253,[3,7,8,101,254,255,27,256]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1]));function t(t,u,o){var l,s;if(!n.default.isTesting){var c,p,y=!1,f=function(){y||(y=!0,clearTimeout(b),null==u||u())},b=setTimeout(f,(null!=(l=t.duration)?l:0)+17),I=null==(s=g)?void 0:s.nativeFabricUIManager;if(null!=I&&I.configureNextLayoutAnimation)null==(c=g)||null==(p=c.nativeFabricUIManager)||p.configureNextLayoutAnimation(t,f,null!=o?o:function(){});else null!=r(d[2])&&r(d[2]).configureNextLayoutAnimation&&r(d[2]).configureNextLayoutAnimation(t,null!=f?f:function(){},null!=o?o:function(){})}}function u(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},l={configureNext:t,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:t.bind(null,o.easeInEaseOut),linear:t.bind(null,o.linear),spring:t.bind(null,o.spring)};m.exports=l},254,[3,27,50]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){r(d[0]).blurTextInput(r(d[0]).currentlyFocusedInput())}},255,[136]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('KeyboardObserver');e.default=n},256,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o={setGlobalOptions:function(o){if(void 0!==o.debug&&r(d[2])(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var l={debug:!!o.debug,reportStackTraces:!!o.reportStackTraces};t.default.setGlobalOptions(l)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=o},257,[3,258,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('FrameRateLogger');e.default=n},258,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}},259,[3,27]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var c=null,t=null;if(null!=s){c={},t={};for(var n=0,l=Object.keys(s);nMath.random(),this._resetData()}return r(d[0])(_,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new t,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===l&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),n.push(t),{remove:function(){n=n.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){l=t}},{key:"setMinSampleCount",value:function(t){s=t}}]),_})();m.exports=_},271,[8,7,4]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,l){r(d[0])(this,t),this._delay=l,this._callback=n}return r(d[1])(t,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=r(d[2]).runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),t})();m.exports=t},272,[7,8,221]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};r(d[0])(this,n),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return r(d[1])(n,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,i,o,l){var u=this._config,c=u.itemVisiblePercentThreshold,h=u.viewAreaCoveragePercentThreshold,f=null!=h,v=f?h:c;r(d[2])(null!=v&&null!=c!=(null!=h),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===t)return b;var y=-1,w=l||{first:0,last:t-1},_=w.first,p=w.last;if(p>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:l,itemCount:t})),[];for(var I=_;I<=p;I++){var A=o(I);if(A){var S=A.offset-n,T=S+A.length;if(S0)y=I,s(f,v,S,T,i,A.length)&&b.push(I);else if(y>=0)break}}return b}},{key:"onUpdate",value:function(t,n,i,o,s,l,u){var c=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&o(0)){var h=[];if(t&&(h=this.computeViewableItems(t,n,i,o,u)),this._viewableIndices.length!==h.length||!this._viewableIndices.every(function(t,n){return t===h[n]}))if(this._viewableIndices=h,this._config.minimumViewTime){var f=setTimeout(function(){c._timers.delete(f),c._onUpdateSync(h,l,s)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(h,l,s)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,i,o){var s=this;n=n.filter(function(t){return s._viewableIndices.includes(t)});for(var l,u=this._viewableItems,c=new Map(n.map(function(t){var n=o(t,!0);return[n.key,n]})),h=[],f=t(c);!(l=f()).done;){var v=l.value,b=r(d[3])(v,2),y=b[0],w=b[1];u.has(y)||h.push(w)}for(var _,p=t(u);!(_=p()).done;){var I=_.value,A=r(d[3])(I,2),S=A[0],T=A[1];c.has(S)||h.push(r(d[4])({},T,{isViewable:!1}))}h.length>0&&(this._viewableItems=c,i({viewableItems:Array.from(c.values()),changed:h,viewabilityConfig:this._config}))}}]),n})();function s(t,n,i,o,s,c){if(u(i,o,s))return!0;var h=l(i,o,s);return 100*(t?h/s:h/c)>=n}function l(t,n,i){var o=Math.min(n,i)-Math.max(t,0);return Math.max(0,o)}function u(t,n,i){return t>=0&&n<=i&&n>t}m.exports=o},273,[7,8,26,31,4]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualizedListCellContextProvider=function(l){var u=l.cellKey,s=l.children,c=(0,n.useContext)(o);return n.createElement(o.Provider,{value:null==c?null:(0,t.default)({},c,{cellKey:u})},s)},e.VirtualizedListContext=void 0,e.VirtualizedListContextProvider=function(t){var l=t.children,u=t.value,s=(0,n.useMemo)(function(){return{cellKey:null,getScrollMetrics:u.getScrollMetrics,horizontal:u.horizontal,getOutermostParentListRef:u.getOutermostParentListRef,getNestedChildState:u.getNestedChildState,registerAsNestedChild:u.registerAsNestedChild,unregisterAsNestedChild:u.unregisterAsNestedChild,debugInfo:{cellKey:u.debugInfo.cellKey,horizontal:u.debugInfo.horizontal,listKey:u.debugInfo.listKey,parent:u.debugInfo.parent}}},[u.getScrollMetrics,u.horizontal,u.getOutermostParentListRef,u.getNestedChildState,u.registerAsNestedChild,u.unregisterAsNestedChild,u.debugInfo.cellKey,u.debugInfo.horizontal,u.debugInfo.listKey,u.debugInfo.parent]);return n.createElement(o.Provider,{value:s},l)},e.VirtualizedListContextResetter=function(t){var l=t.children;return n.createElement(o.Provider,{value:null},l)};var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var f=s?Object.getOwnPropertyDescriptor(t,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[2]));function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}var o=n.createContext(null);e.VirtualizedListContext=o},274,[3,4,15]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!1})},275,[15,240,276]); +__d(function(g,r,_i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),i=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=y(n);if(o&&o.has(t))return o.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=u?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(i,c,l):i[c]=t[c]}i.default=t,o&&o.set(t,i);return i})(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),s=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),p=r(d[0])(r(d[11])),v=r(d[0])(r(d[12]));function y(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(y=function(t){return t?o:n})(t)}function w(){"use strict";w=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function h(t,n,o,u){var c=n&&n.prototype instanceof y?n:y,l=Object.create(c.prototype),f=new T(u||[]);return i(l,"_invoke",{value:I(t,o,f)}),l}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var v={};function y(){}function b(){}function L(){}var E={};s(E,c,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(G([])));S&&S!==n&&o.call(S,c)&&(E=S);var O=L.prototype=y.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function u(i,c,l,f){var s=p(t[i],t,c);if("throw"!==s.type){var h=s.arg,v=h.value;return v&&"object"==typeof v&&o.call(v,"__await")?n.resolve(v.__await).then(function(t){u("next",t,l,f)},function(t){u("throw",t,l,f)}):n.resolve(v).then(function(t){h.value=t,l(h)},function(t){return u("throw",t,l,f)})}f(s.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new n(function(n,i){u(t,o,n,i)})}return c=c?c.then(i,i):i()}})}function I(t,n,o){var i="suspendedStart";return function(u,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===u)throw c;return F()}for(o.method=u,o.arg=c;;){var l=o.delegate;if(l){var f=P(l,o);if(f){if(f===v)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var s=p(t,n,o);if("normal"===s.type){if(i=o.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(i="completed",o.method="throw",o.arg=s.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var u=p(i,t.iterator,n.arg);if("throw"===u.type)return n.method="throw",n.arg=u.arg,n.delegate=null,v;var c=u.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function G(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,u=function n(){for(;++i=0;--u){var c=this.tryEntries[u],l=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var f=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(f&&s){if(this.prev=0;--i){var u=this.tryEntries[i];if(u.tryLoc<=this.prev&&o.call(u,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var u=i.arg;N(o)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}var b=1;function L(t,n){var o=b++;return n&&n(o),p.default.prefetchImage(t,o)}var E=function(n,u){var l,p,y,w,b=(0,h.default)(n.source),L=(0,h.default)(n.defaultSource),E=(0,h.default)(n.loadingIndicatorSource);b&&(''===b.uri&&console.warn('source.uri should not be an empty string'));if(n.src&&console.warn('The component requires a `source` property rather than `src`.'),n.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');if(n.defaultSource&&n.loadingIndicatorSource)throw new Error('The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.');if(!b||b.uri||Array.isArray(b)||(b=null),null!=(null==(l=b)?void 0:l.uri)){var S=b,O=S.width,_=S.height;y=(0,s.default)([{width:O,height:_},x.base,n.style]),w=[{uri:b.uri}]}else y=(0,s.default)([x.base,n.style]),w=b;var j=n.onLoadStart,I=n.onLoad,P=n.onLoadEnd,k=n.onError,N=(0,t.default)({},n,{style:y,shouldNotifyLoadEvents:!!(j||I||P||k),src:w,headers:null==(p=b)?void 0:p.headers,defaultSrc:L?L.uri:null,loadingIndicatorSrc:E?E.uri:null,ref:u});return i.createElement(f.default.Consumer,null,function(n){var u=null!==n?(0,t.default)({},N,{internal_analyticTag:n}):N;return i.createElement(c.default.Consumer,null,function(t){return t?i.createElement(v.default,u):i.createElement(o.default,u)})})};E=i.forwardRef(E),null!=l.default.unstable_createImageComponent&&(E=l.default.unstable_createImageComponent(E)),E.displayName='Image',E.getSize=function(t,n,o){return p.default.getSize(t).then(function(t){n(t.width,t.height)}).catch(o||function(){console.warn('Failed to get size for image: '+t)})},E.getSizeWithHeaders=function(t,n,o,i){return p.default.getSizeWithHeaders(t,n).then(function(t){o(t.width,t.height)}).catch(i||function(){console.warn('Failed to get size for image: '+t)})},E.prefetch=L,E.prefetchWithMetadata=function(t,n,o,i){L(t,i)},E.abortPrefetch=function(t){p.default.abortRequest(t)},E.queryCache=function(t){return w().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,w().awrap(p.default.queryCache(t));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,null,null,Promise)},E.resolveAssetSource=h.default,E.propTypes=n.default;var x=u.default.create({base:{overflow:'hidden'}});m.exports=E},276,[3,4,277,281,15,174,177,282,284,169,156,285,283]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])({},r(d[1]),{style:r(d[2])(r(d[3])),source:r(d[4]).oneOfType([r(d[4]).shape({uri:r(d[4]).string,headers:r(d[4]).objectOf(r(d[4]).string)}),r(d[4]).number,r(d[4]).arrayOf(r(d[4]).shape({uri:r(d[4]).string,width:r(d[4]).number,height:r(d[4]).number,headers:r(d[4]).objectOf(r(d[4]).string)}))]),blurRadius:r(d[4]).number,defaultSource:r(d[4]).number,loadingIndicatorSource:r(d[4]).oneOfType([r(d[4]).shape({uri:r(d[4]).string}),r(d[4]).number]),progressiveRenderingEnabled:r(d[4]).bool,fadeDuration:r(d[4]).number,internal_analyticTag:r(d[4]).string,onLoadStart:r(d[4]).func,onError:r(d[4]).func,onLoad:r(d[4]).func,onLoadEnd:r(d[4]).func,testID:r(d[4]).string,resizeMethod:r(d[4]).oneOf(['auto','resize','scale']),resizeMode:r(d[4]).oneOf(['cover','contain','stretch','repeat','center'])});m.exports=n},277,[4,278,187,280,192]); +__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={accessible:r(d[2]).bool,accessibilityLabel:r(d[2]).node,accessibilityHint:r(d[2]).string,accessibilityActions:r(d[2]).arrayOf(r(d[2]).string),accessibilityIgnoresInvertColors:r(d[2]).bool,accessibilityRole:r(d[2]).oneOf(r(d[3]).DeprecatedAccessibilityRoles),accessibilityState:r(d[2]).object,accessibilityValue:r(d[2]).object,accessibilityLiveRegion:r(d[2]).oneOf(['none','polite','assertive']),importantForAccessibility:r(d[2]).oneOf(['auto','yes','no','no-hide-descendants']),accessibilityViewIsModal:r(d[2]).bool,accessibilityElementsHidden:r(d[2]).bool,onAccessibilityAction:r(d[2]).func,onAccessibilityTap:r(d[2]).func,onMagicTap:r(d[2]).func,testID:r(d[2]).string,nativeID:r(d[2]).string,onResponderGrant:r(d[2]).func,onResponderMove:r(d[2]).func,onResponderReject:r(d[2]).func,onResponderRelease:r(d[2]).func,onResponderTerminate:r(d[2]).func,onResponderTerminationRequest:r(d[2]).func,onStartShouldSetResponder:r(d[2]).func,onStartShouldSetResponderCapture:r(d[2]).func,onMoveShouldSetResponder:r(d[2]).func,onMoveShouldSetResponderCapture:r(d[2]).func,hitSlop:r(d[4]),onLayout:r(d[2]).func,pointerEvents:r(d[2]).oneOf(['box-none','none','box-only','auto']),style:o,removeClippedSubviews:r(d[2]).bool,renderToHardwareTextureAndroid:r(d[2]).bool,shouldRasterizeIOS:r(d[2]).bool,collapsable:r(d[2]).bool,needsOffscreenAlphaCompositing:r(d[2]).bool}},278,[187,190,192,279,199]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={DeprecatedAccessibilityRoles:['none','button','togglebutton','link','search','image','keyboardkey','text','adjustable','imagebutton','header','summary','alert','checkbox','combobox','menu','menubar','menuitem','progressbar','radio','radiogroup','scrollbar','spinbutton','switch','tab','tablist','timer','list','toolbar']}},279,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])({},r(d[1]),r(d[2]),r(d[3]),{resizeMode:r(d[4]).oneOf(['center','contain','cover','repeat','stretch']),backfaceVisibility:r(d[4]).oneOf(['visible','hidden']),backgroundColor:r(d[5]),borderColor:r(d[5]),borderWidth:r(d[4]).number,borderRadius:r(d[4]).number,overflow:r(d[4]).oneOf(['visible','hidden']),tintColor:r(d[5]),opacity:r(d[4]).number,overlayColor:r(d[4]).string,borderTopLeftRadius:r(d[4]).number,borderTopRightRadius:r(d[4]).number,borderBottomLeftRadius:r(d[4]).number,borderBottomRightRadius:r(d[4]).number});m.exports=o},280,[4,191,195,197,192,196]); +__d(function(g,r,i,a,m,e,d){function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(t=function(t){return t?s:n})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var s=t(n);if(s&&s.has(o))return s.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in o)if("default"!==f&&Object.prototype.hasOwnProperty.call(o,f)){var c=l?Object.getOwnPropertyDescriptor(o,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=o[f]}u.default=o,s&&s.set(o,u);return u})(r(d[0])).get('RCTImageView',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:r(d[1])},defaultSource:{process:r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:r(d[3])}}}});e.default=o},281,[151,146,156,142]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f)})(r(d[0])),r(d[1])(r(d[2])),r(d[1])(r(d[3]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}e.default={unstable_createImageComponent:null}},282,[15,3,281,283]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(o){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(t=function(t){return t?s:n})(o)}var o=(function(o,n){if(!n&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var s=t(n);if(s&&s.has(o))return s.get(o);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in o)if("default"!==c&&Object.prototype.hasOwnProperty.call(o,c)){var p=l?Object.getOwnPropertyDescriptor(o,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=o[c]}u.default=o,s&&s.set(o,u);return u})(r(d[0])).get('RCTTextInlineImage',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:r(d[1])},defaultSource:{process:r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:r(d[3])}}}});m.exports=o},283,[151,146,156,142]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(null);e.default=n},284,[15]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ImageLoader');e.default=n},285,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(u,c,p):u[c]=t[c]}u.default=t,f&&f.set(t,u);return u})(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var f=n.forwardRef(function(o,f){return n.createElement(r(d[3]),(0,t.default)({scrollEventThrottle:1e-4},o,{ref:f}))});m.exports=r(d[4])(f,{collapsable:!1})},286,[3,4,15,251,240]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=t[l]}u.default=t,f&&f.set(t,u);return u})(r(d[2])),f=r(d[0])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var u=n.forwardRef(function(o,u){return n.createElement(f.default,(0,t.default)({scrollEventThrottle:1e-4},o,{ref:u}))});m.exports=r(d[4])(u)},287,[3,4,15,288,240]); +__d(function(g,r,i,a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=f?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[9])),p=r(d[0])(r(d[10])),v=["stickySectionHeadersEnabled"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function h(){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(e){return!1}}var R=(function(y){(0,f.default)(w,y);var R,_,L=(R=w,_=h(),function(){var e,t=(0,c.default)(R);if(_){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function w(){var e;(0,n.default)(this,w);for(var t=arguments.length,o=new Array(t),f=0;f=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&this.props.stickySectionHeadersEnabled)o+=this._listRef._getFrameMetricsApprox(t-e.itemIndex).length;var l=(0,n.default)({},e,{viewOffset:o,index:t});this._listRef.scrollToIndex(l)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){for(var e,i=this,o=this.props,l=(o.ItemSeparatorComponent,o.SectionSeparatorComponent,o.renderItem,o.renderSectionFooter,o.renderSectionHeader,o.sections,o.stickySectionHeadersEnabled,(0,t.default)(o,v)),u=this.props.ListHeaderComponent?1:0,c=this.props.stickySectionHeadersEnabled?[]:void 0,s=0,p=S(this.props.sections);!(e=p()).done;){var y=e.value;null!=c&&c.push(s+u),s+=2,s+=this.props.getItemCount(y.data)}var I=this._renderItem(s);return h.createElement(f.VirtualizedList,(0,n.default)({},l,{keyExtractor:this._keyExtractor,stickyHeaderIndices:c,renderItem:I,data:this.props.sections,getItem:function(e,t){return i._getItem(i.props,e,t)},getItemCount:function(){return s},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var i=n-1,o=0;o=o(p)+1)t-=o(p)+1;else return-1===t?{section:s,key:f+':header',index:null,header:!0,trailingSection:u[c+1]}:t===o(p)?{section:s,key:f+':footer',index:null,header:!1,trailingSection:u[c+1]}:{section:s,key:f+':'+(s.keyExtractor||l||r(d[13]).keyExtractor)(i(p,t),t),index:t,leadingItem:i(p,t-1),leadingSection:u[c-1],trailingItem:i(p,t+1),trailingSection:u[c+1]}}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var i=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,o=this.props.SectionSeparatorComponent,l=e===n-1,u=t.index===this.props.getItemCount(t.section.data)-1;return o&&u?o:!i||u||l?null:i}}]),x})(h.PureComponent);function k(t){var i=t.LeadingSeparatorComponent,o=t.SeparatorComponent,l=t.cellKey,u=t.prevCellKey,c=t.setSelfHighlightCallback,s=t.updateHighlightFor,p=t.setSelfUpdatePropsCallback,v=t.updatePropsFor,y=t.item,S=t.index,I=t.section,_=t.inverted,b=h.useState(!1),x=(0,e.default)(b,2),k=x[0],C=x[1],E=h.useState(!1),w=(0,e.default)(E,2),H=w[0],P=w[1],F=h.useState({leadingItem:t.leadingItem,leadingSection:t.leadingSection,section:t.section,trailingItem:t.item,trailingSection:t.trailingSection}),R=(0,e.default)(F,2),M=R[0],O=R[1],V=h.useState({leadingItem:t.item,leadingSection:t.leadingSection,section:t.section,trailingItem:t.trailingItem,trailingSection:t.trailingSection}),j=(0,e.default)(V,2),A=j[0],U=j[1];h.useEffect(function(){return c(l,P),p(l,U),function(){p(l,null),c(l,null)}},[l,c,U,p]);var L={highlight:function(){C(!0),P(!0),null!=u&&s(u,!0)},unhighlight:function(){C(!1),P(!1),null!=u&&s(u,!1)},updateProps:function(e,t){'leading'===e?null!=i?O((0,n.default)({},M,t)):null!=u&&v(u,(0,n.default)({},M,t)):'trailing'===e&&null!=o&&U((0,n.default)({},A,t))}},B=t.renderItem({item:y,index:S,section:I,separators:L}),K=null!=i&&h.createElement(i,(0,n.default)({highlighted:k},M)),T=null!=o&&h.createElement(o,(0,n.default)({highlighted:H},A));return K||T?h.createElement(f.View,null,!1===_?K:T,B,!1===_?T:K):B}m.exports=x},289,[3,31,5,4,7,8,13,9,11,14,26,18,15,249]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!1})},290,[15,240,185]); +__d(function(g,r,i,a,m,e,d){!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=n[c]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]),{collapsable:!0})},291,[15,240,175]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={};m.exports=function(o,t){n[o]||(console.warn(t),n[o]=!0)}},292,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var f=u?Object.getOwnPropertyDescriptor(e,c):null;f&&(f.get||f.set)?Object.defineProperty(o,c,f):o[c]=e[c]}o.default=e,n&&n.set(e,o);return o})(r(d[6])),f=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function y(){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(e){return!1}}var h=(function(f){(0,n.default)(b,f);var p,h,O=(p=b,h=y(),function(){var e,t=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function b(){return(0,e.default)(this,b),O.apply(this,arguments)}return(0,t.default)(b,[{key:"render",value:function(){return c.createElement(s.default,{style:[v.dummyDatePickerIOS,this.props.style]},c.createElement(l.default,{style:v.datePickerText},"DatePickerIOS is not supported on this platform!"))}}]),b})(c.Component),v=f.default.create({dummyDatePickerIOS:{height:100,width:300,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center',margin:10},datePickerText:{color:'#333333',margin:20}});m.exports=h},293,[3,7,8,9,11,14,15,174,185,175]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),c=k(r(d[9])),p=r(d[0])(r(d[10])),w=r(d[0])(r(d[11])),h=r(d[0])(r(d[12])),v=r(d[0])(r(d[13])),y=r(d[0])(r(d[14])),D=k(r(d[15])),b=["onDrawerStateChanged","renderNavigationView","onDrawerOpen","onDrawerClose"];function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=u?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}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(e){return!1}}var S=['Idle','Dragging','Settling'],R=(function(w){(0,u.default)(O,w);var C,k,R=(C=O,k=_(),function(){var e,t=(0,l.default)(C);if(k){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});function O(){var e;(0,n.default)(this,O);for(var t=arguments.length,o=new Array(t),u=0;u=21&&null!=this.props.statusBarBackgroundColor,l=c.createElement(h.default,{style:[B.drawerSubview,{width:this.props.drawerWidth,backgroundColor:this.props.drawerBackgroundColor}],collapsable:!1},o(),s&&c.createElement(h.default,{style:B.drawerStatusBar})),w=c.createElement(h.default,{style:B.mainSubview,collapsable:!1},s&&c.createElement(p.default,{translucent:!0,backgroundColor:this.props.statusBarBackgroundColor}),s&&c.createElement(h.default,{style:[B.statusBar,{backgroundColor:this.props.statusBarBackgroundColor}]}),this.props.children);return c.createElement(D.default,(0,e.default)({},u,{ref:this._nativeRef,drawerWidth:this.props.drawerWidth,drawerPosition:this.props.drawerPosition,drawerLockMode:this.props.drawerLockMode,style:[B.base,this.props.style],onDrawerSlide:this._onDrawerSlide,onDrawerOpen:this._onDrawerOpen,onDrawerClose:this._onDrawerClose,onDrawerStateChanged:this._onDrawerStateChanged}),w,l)}},{key:"openDrawer",value:function(){D.Commands.openDrawer((0,y.default)(this._nativeRef.current))}},{key:"closeDrawer",value:function(){D.Commands.closeDrawer((0,y.default)(this._nativeRef.current))}},{key:"blur",value:function(){(0,y.default)(this._nativeRef.current).blur()}},{key:"focus",value:function(){(0,y.default)(this._nativeRef.current).focus()}},{key:"measure",value:function(e){(0,y.default)(this._nativeRef.current).measure(e)}},{key:"measureInWindow",value:function(e){(0,y.default)(this._nativeRef.current).measureInWindow(e)}},{key:"measureLayout",value:function(e,t,n){(0,y.default)(this._nativeRef.current).measureLayout(e,t,n)}},{key:"setNativeProps",value:function(e){(0,y.default)(this._nativeRef.current).setNativeProps(e)}}],[{key:"positions",get:function(){return console.warn('Setting DrawerLayoutAndroid drawerPosition using `DrawerLayoutAndroid.positions` is deprecated. Instead pass the string value "left" or "right"'),{Left:'left',Right:'right'}}}]),O})(c.Component);R.defaultProps={drawerBackgroundColor:'white'};var B=w.default.create({base:{flex:1,elevation:16},mainSubview:{position:'absolute',top:0,left:0,right:0,bottom:0},drawerSubview:{position:'absolute',top:0,bottom:0},statusBar:{height:p.default.currentHeight},drawerStatusBar:{position:'absolute',top:0,left:0,right:0,height:p.default.currentHeight,backgroundColor:'rgba(0, 0, 0, 0.251)'}});m.exports=R},294,[3,4,5,7,8,9,11,14,27,15,295,174,175,255,298,299]); +__d(function(g,r,i,a,m,_e,d){var t,e=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=S(e);if(n&&n.has(t))return n.get(t);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=o?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(l,u,c):l[u]=t[u]}l.default=t,n&&n.set(t,l);return l})(r(d[7])),f=r(d[0])(r(d[8])),p=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),v=r(d[0])(r(d[11])),k=r(d[0])(r(d[12]));function S(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(S=function(t){return t?n:e})(t)}function b(){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}}function _(t){var e,n,l=null!=(e=t.animated)&&e,o=null!=(n=t.showHideTransition)?n:'fade';return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:l}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:l}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:l,transition:o}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var h=(function(t){(0,l.default)(h,t);var c,s,S=(c=h,s=b(),function(){var t,e=(0,u.default)(c);if(s){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function h(){var t;(0,e.default)(this,h);for(var n=arguments.length,l=new Array(n),o=0;o is only supported on iOS.'),0===c.Children.count(this.props.children)?null:c.createElement(s.default,{style:[this.props.style,v.container],nativeID:this.props.nativeID,backgroundColor:this.props.backgroundColor},this.props.children)}}]),b})(c.Component),v=l.default.create({container:{position:'absolute'}});m.exports=h},301,[3,7,8,9,11,14,15,27,174,302]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']});e.default=t},302,[3,180]); +__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),c=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),h=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var l=u?Object.getOwnPropertyDescriptor(e,f):null;l&&(l.get||l.set)?Object.defineProperty(o,f,l):o[f]=e[f]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),p=r(d[0])(r(d[12])),v=r(d[0])(r(d[13])),b=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function k(){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(e){return!1}}var O=(function(_){(0,u.default)(E,_);var O,w,L=(O=E,w=k(),function(){var e,t=(0,l.default)(O);if(w){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,f.default)(this,e)});function E(e){var t;return(0,n.default)(this,E),(t=L.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecesarry()},t._onLayout=function(e){var n=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),n&&t._updateBottomIfNecesarry()},t._updateBottomIfNecesarry=function(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,n=e.duration,o=e.easing,u=e.endCoordinates,f=t._relativeKeyboardHeight(u);t.state.bottom!==f&&(n&&o&&c.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:c.default.Types[o]||'keyboard'}}),t.setState({bottom:f}))}else t.setState({bottom:0})},t.state={bottom:0},t.viewRef=h.createRef(),t}return(0,o.default)(E,[{key:"_relativeKeyboardHeight",value:function(e){var t,n=this._frame;if(!n||!e)return 0;var o=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return Math.max(n.y+n.height-o,0)}},{key:"componentDidMount",value:function(){'ios'===y.default.OS?this._subscriptions=[s.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[s.default.addListener('keyboardDidHide',this._onKeyboardChange),s.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(e){e.remove()})}},{key:"render",value:function(){var n=this.props,o=n.behavior,u=n.children,f=n.contentContainerStyle,l=n.enabled,s=void 0===l||l,c=(n.keyboardVerticalOffset,n.style),y=(0,t.default)(n,b),_=!0===s?this.state.bottom:0;switch(o){case'height':var k;return null!=this._frame&&this.state.bottom>0&&(k={height:this._initialFrameHeight-_,flex:0}),h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:p.default.compose(c,k),onLayout:this._onLayout},y),u);case'position':return h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:c,onLayout:this._onLayout},y),h.createElement(v.default,{style:p.default.compose(f,{bottom:_})},u));case'padding':return h.createElement(v.default,(0,e.default)({ref:this.viewRef,style:p.default.compose(c,{paddingBottom:_}),onLayout:this._onLayout},y),u);default:return h.createElement(v.default,(0,e.default)({ref:this.viewRef,onLayout:this._onLayout,style:c},y),u)}}}]),E})(h.Component);_e.default=O},303,[3,4,5,7,8,9,11,14,253,254,27,15,174,175]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},304,[305]); +__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var c=o?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=e[f]}u.default=e,n&&n.set(e,u);return u})(r(d[6])),c=r(d[0])(r(d[7]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function p(){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(e){return!1}}var s=(function(c){(0,n.default)(h,c);var l,s,v=(l=h,s=p(),function(){var e,t=(0,o.default)(l);if(s){var n=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function h(){return(0,e.default)(this,h),v.apply(this,arguments)}return(0,t.default)(h,[{key:"render",value:function(){var e=r(d[8]);return f.createElement(e,{style:[y.unimplementedView,this.props.style]},this.props.children)}}]),h})(f.Component),y=c.default.create({unimplementedView:{}});m.exports=s},305,[3,7,8,9,11,14,15,174,175]); +__d(function(g,r,i,a,m,_e,d){var t,e,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),p=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=(r(d[0])(r(d[8])),r(d[0])(r(d[9])),r(d[0])(r(d[10])));function h(){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}}var v=r(d[11]),y=0,R=(function(t){(0,l.default)(R,t);var e,n,c=(e=R,n=h(),function(){var t,o=(0,p.default)(e);if(n){var s=(0,p.default)(this).constructor;t=Reflect.construct(o,arguments,s)}else t=o.apply(this,arguments);return(0,u.default)(this,t)});function R(t){var e;return(0,o.default)(this,R),(e=c.call(this,t))._identifier=y++,e}return(0,s.default)(R,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var t=this;if(!0!==this.props.visible)return null;var e={backgroundColor:!0===this.props.transparent?'transparent':'white'},n=this.props.animationType||'none',o=this.props.presentationStyle;o||(o='fullScreen',!0===this.props.transparent&&(o='overFullScreen'));var s=this.props.children;return v.createElement(f.default,{animationType:n,presentationStyle:o,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){t.props.onDismiss&&t.props.onDismiss()},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,identifier:this._identifier,style:b.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange},v.createElement(r(d[12]).VirtualizedListContextResetter,null,v.createElement(r(d[13]).Context.Provider,{value:null},v.createElement(r(d[14]),{style:[b.container,e],collapsable:!1},s))))}},{key:"_shouldSetResponder",value:function(){return!0}}]),R})(v.Component);R.defaultProps={visible:!0,hardwareAccelerated:!1},R.contextType=r(d[15]).RootTagContext;var S=r(d[16]).getConstants().isRTL?'right':'left',b=r(d[17]).create({modal:{position:'absolute'},container:(t={},(0,n.default)(t,S,0),(0,n.default)(t,"top",0),(0,n.default)(t,"flex",1),t)}),C=null!=(e=c.default.unstable_Modal)?e:R;m.exports=C},306,[3,248,7,8,9,11,14,307,101,308,309,15,274,251,175,310,311,174]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_Modal:null}},307,[]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ModalManager');e.default=n},308,[29]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=(0,r(d[0])(r(d[1])).default)('ModalHostView',{interfaceOnly:!0,paperComponentName:'RCTModalHostView'});e.default=o},309,[3,180]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.RootTagContext=void 0,e.createRootTag=function(t){return t};var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var l=c?Object.getOwnPropertyDescriptor(n,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=n[p]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).createContext(0);e.RootTagContext=n},310,[15]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=(function(){if(t.default){var n=t.default.getConstants(),f=n.isRTL,L=n.doLeftAndRightSwapInRTL,R=n.localeIdentifier;return{isRTL:f,doLeftAndRightSwapInRTL:L,localeIdentifier:R}}return{isRTL:!1,doLeftAndRightSwapInRTL:!0}})();m.exports={getConstants:function(){return n},allowRTL:function(n){t.default&&t.default.allowRTL(n)},forceRTL:function(n){t.default&&t.default.forceRTL(n)},swapLeftAndRightInRTL:function(n){t.default&&t.default.swapLeftAndRightInRTL(n)},isRTL:n.isRTL,doLeftAndRightSwapInRTL:n.doLeftAndRightSwapInRTL}},311,[3,312]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('I18nManager');e.default=n},312,[29]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),l=(function(n,s){if(!s&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=p(s);if(t&&t.has(n))return t.get(n);var l={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var f=o?Object.getOwnPropertyDescriptor(n,u):null;f&&(f.get||f.set)?Object.defineProperty(l,u,f):l[u]=n[u]}l.default=n,t&&t.set(n,l);return l})(r(d[4])),o=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),c=["accessible","android_disableSound","android_ripple","cancelable","children","delayLongPress","disabled","focusable","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function p(n){if("function"!=typeof WeakMap)return null;var s=new WeakMap,t=new WeakMap;return(p=function(n){return n?t:s})(n)}function b(n){var t=(0,l.useState)(!1),o=(0,s.default)(t,2),u=o[0],f=o[1];return[u||n,f]}var P=l.memo(l.forwardRef(function(p,P){var y=p.accessible,v=p.android_disableSound,O=p.android_ripple,_=p.cancelable,S=p.children,M=p.delayLongPress,h=p.disabled,j=p.focusable,w=p.onLongPress,I=p.onPress,L=p.onPressIn,R=p.onPressOut,D=p.pressRetentionOffset,k=p.style,W=p.testOnly_pressed,z=p.unstable_pressDelay,E=(0,t.default)(p,c),H=(0,l.useRef)(null);(0,l.useImperativeHandle)(P,function(){return H.current});var N=(0,o.default)(O,H),q=b(!0===W),x=(0,s.default)(q,2),A=x[0],B=x[1],C=(0,r(d[8]).normalizeRect)(p.hitSlop),F=null!=h?(0,n.default)({},p.accessibilityState,{disabled:h}):p.accessibilityState,G=(0,n.default)({},E,null==N?void 0:N.viewProps,{accessible:!1!==y,accessibilityState:F,focusable:!1!==j,hitSlop:C}),J=(0,l.useMemo)(function(){return{cancelable:_,disabled:h,hitSlop:C,pressRectOffset:D,android_disableSound:v,delayLongPress:M,delayPressIn:z,onLongPress:w,onPress:I,onPressIn:function(n){null!=N&&N.onPressIn(n),B(!0),null!=L&&L(n)},onPressMove:null==N?void 0:N.onPressMove,onPressOut:function(n){null!=N&&N.onPressOut(n),B(!1),null!=R&&R(n)}}},[v,N,_,M,h,C,w,I,L,R,D,B,z]),K=(0,u.default)(J);return l.createElement(f.default,(0,n.default)({},G,K,{ref:H,style:'function'==typeof k?k({pressed:A}):k,collapsable:!1}),'function'==typeof S?S({pressed:A}):S,null)}));P.displayName='Pressable';var y=P;e.default=y},313,[3,4,31,5,15,314,201,175,207]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,u){var s=null!=l?l:{},c=s.color,f=s.borderless,p=s.radius,v=s.foreground;return(0,o.useMemo)(function(){if('android'===t.Platform.OS&&t.Platform.Version>=21&&(null!=c||null!=f||null!=p)){var o=(0,t.processColor)(c);(0,n.default)(null==o||'number'==typeof o,'Unexpected color given for Ripple color');var l={type:'RippleAndroid',color:o,borderless:!0===f,rippleRadius:p};return{viewProps:!0===v?{nativeForegroundAndroid:l}:{nativeBackgroundAndroid:l},onPressIn:function(n){var t,o,l=u.current;null!=l&&(r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0),r(d[4]).Commands.setPressed(l,!0))},onPressMove:function(n){var t,o,l=u.current;null!=l&&r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0)},onPressOut:function(n){var t=u.current;null!=t&&r(d[4]).Commands.setPressed(t,!1)}}}return null},[f,c,v,p,u])};var n=r(d[0])(r(d[1])),t=r(d[2]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=l(t);if(o&&o.has(n))return o.get(n);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=s?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=n[c]}u.default=n,o&&o.set(n,u);return u})(r(d[3]));function l(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(n){return n?o:t})(n)}},314,[3,26,18,15,176]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(o,f,c):o[f]=t[f]}o.default=t,n&&n.set(t,o);return o})(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function y(){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}}var h=(function(c){(0,n.default)(O,c);var p,h,b=(p=O,h=y(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function O(){return(0,t.default)(this,O),b.apply(this,arguments)}return(0,e.default)(O,[{key:"render",value:function(){return f.createElement(s.default,{style:[v.dummy,this.props.style]},f.createElement(l.default,{style:v.text},"ProgressViewIOS is not supported on this platform!"))}}]),O})(f.Component),v=c.default.create({dummy:{width:120,height:20,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center'},text:{color:'#333333',margin:5,fontSize:10}});m.exports=h},315,[3,7,8,9,11,14,15,174,185,175]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),o=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=c(n);if(u&&u.has(t))return u.get(t);var f={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=o?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,u&&u.set(t,f);return f})(r(d[4])),l=r(d[0])(r(d[5])),p=["emulateUnlessSupported"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(c=function(t){return t?u:n})(t)}if('android'===f.default.OS)t=o.forwardRef(function(t,f){t.emulateUnlessSupported;var c=(0,u.default)(t,p);return o.createElement(l.default,(0,n.default)({},c,{ref:f}))});else{var s=r(d[6]).default;t=o.forwardRef(function(t,u){return o.createElement(s,(0,n.default)({emulateUnlessSupported:!0},t,{ref:u}))})}var v=t;e.default=v},316,[3,4,5,27,15,175,317]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=(0,r(d[0])(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=f},317,[3,180]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(o,f,c):o[f]=t[f]}o.default=t,n&&n.set(t,o);return o})(r(d[6])),c=r(d[0])(r(d[7])),l=r(d[0])(r(d[8])),s=r(d[0])(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function y(){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}}var h=(function(c){(0,n.default)(O,c);var p,h,b=(p=O,h=y(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function O(){return(0,t.default)(this,O),b.apply(this,arguments)}return(0,e.default)(O,[{key:"render",value:function(){return f.createElement(s.default,{style:[v.dummy,this.props.style]},f.createElement(l.default,{style:v.text},"SegmentedControlIOS is not supported on this platform!"))}}]),O})(f.Component),v=c.default.create({dummy:{width:120,height:50,backgroundColor:'#ffbcbc',borderWidth:1,borderColor:'red',alignItems:'center',justifyContent:'center'},text:{color:'#333333',margin:5,fontSize:10}});m.exports=h},318,[3,7,8,9,11,14,15,174,185,175]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=c(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=o?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),s=["value","minimumValue","maximumValue","step","onValueChange","onSlidingComplete"];function c(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(c=function(t){return t?l:n})(t)}var v,p=l.forwardRef(function(c,p){var b,y=f.default.compose(v.slider,c.style),S=c.value,O=void 0===S?.5:S,h=c.minimumValue,V=void 0===h?0:h,C=c.maximumValue,j=void 0===C?1:C,w=c.step,E=void 0===w?0:w,P=c.onValueChange,x=c.onSlidingComplete,M=(0,n.default)(c,s),R=P?function(t){var n=!0;'android'===u.default.OS&&(n=null!=t.nativeEvent.fromUser&&t.nativeEvent.fromUser),n&&P(t.nativeEvent.value)}:null,_=R,k=x?function(t){x(t.nativeEvent.value)}:null,W=!0===c.disabled||!0===(null==(b=c.accessibilityState)?void 0:b.disabled),D=W?(0,t.default)({},c.accessibilityState,{disabled:!0}):c.accessibilityState;return l.createElement(o.default,(0,t.default)({},M,{accessibilityState:D,enabled:!W,disabled:W,maximumValue:j,minimumValue:V,onChange:_,onResponderTerminationRequest:function(){return!1},onSlidingComplete:k,onStartShouldSetResponder:function(){return!0},onValueChange:R,ref:p,step:E,style:y,value:O}))});v='ios'===u.default.OS?f.default.create({slider:{height:40}}):f.default.create({slider:{}}),m.exports=p},319,[3,4,5,15,27,320,174]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=(0,r(d[0])(r(d[1])).default)('Slider',{interfaceOnly:!0,paperComponentName:'RCTSlider'});e.default=l},320,[3,180]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=C(r(d[5])),f=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),s=C(r(d[8])),v=C(r(d[9])),b=["disabled","ios_backgroundColor","onChange","onValueChange","style","thumbColor","trackColor","value"];function p(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(p=function(t){return t?o:n})(t)}function C(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=p(n);if(o&&o.has(t))return o.get(t);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=u?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(l,f,c):l[f]=t[f]}return l.default=t,o&&o.set(t,l),l}var h=function(){return!1},y=function(){return!0},R=u.forwardRef(function(p,C){var R=p.disabled,k=p.ios_backgroundColor,O=p.onChange,w=p.onValueChange,S=p.style,_=p.thumbColor,j=p.trackColor,P=p.value,T=(0,o.default)(p,b),E=null==j?void 0:j.false,M=null==j?void 0:j.true,V=u.useRef(null),F=(0,c.default)(V,C),W=u.useState({value:null}),q=(0,n.default)(W,2),D=q[0],N=q[1],L=function(t){null==O||O(t),null==w||w(t.nativeEvent.value),N({value:t.nativeEvent.value})};if(u.useLayoutEffect(function(){var t,n=!0===P;D.value!==n&&null!=(null==(t=V.current)?void 0:t.setNativeProps)&&('android'===l.default.OS?s.Commands.setNativeValue(V.current,n):v.Commands.setValue(V.current,n))},[P,D]),'android'===l.default.OS){var x,z={enabled:!0!==R,on:!0===P,style:S,thumbTintColor:_,trackColorForFalse:E,trackColorForTrue:M,trackTintColor:!0===P?M:E};return u.createElement(s.default,(0,t.default)({},T,z,{accessibilityRole:null!=(x=p.accessibilityRole)?x:'switch',onChange:L,onResponderTerminationRequest:h,onStartShouldSetResponder:y,ref:F}))}var A,B={disabled:R,onTintColor:M,style:f.default.compose({height:31,width:51},f.default.compose(S,null==k?null:{backgroundColor:k,borderRadius:16})),thumbTintColor:_,tintColor:E,value:!0===P};return u.createElement(v.default,(0,t.default)({},T,B,{accessibilityRole:null!=(A=p.accessibilityRole)?A:'switch',onChange:L,onResponderTerminationRequest:h,onStartShouldSetResponder:y,ref:F}))});e.default=R},321,[3,4,31,5,27,15,174,322,323,324]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=arguments.length,u=new Array(t),o=0;o1&&(be=u.createElement(f.default,null,be)),oe=u.createElement(I,(0,t.default)({ref:ee},o,pe,{accessible:ce,autoCapitalize:ye,blurOnSubmit:ae,caretHidden:se,children:be,disableFullscreenUI:o.disableFullscreenUI,focusable:ie,mostRecentEventCount:H,onBlur:ue,onChange:te,onFocus:le,onScroll:re,onSelectionChange:ne,placeholder:Se,selection:M,style:Ce,text:X,textBreakStrategy:o.textBreakStrategy}))}return u.createElement(p.default.Provider,{value:!0},oe)}var M=u.forwardRef(function(l,o){var c=l.allowFontScaling,s=void 0===c||c,f=l.rejectResponderTermination,p=void 0===f||f,v=l.underlineColorAndroid,C=void 0===v?'transparent':v,y=(0,n.default)(l,F);return u.createElement(A,(0,t.default)({allowFontScaling:s,rejectResponderTermination:p,underlineColorAndroid:C},y,{forwardedRef:o}))});M.propTypes=o.default,M.State={currentlyFocusedInput:v.default.currentlyFocusedInput,currentlyFocusedField:v.default.currentlyFocusedField,focusTextInput:v.default.focusTextInput,blurTextInput:v.default.blurTextInput};var z=s.default.create({multilineInput:{paddingTop:5}});m.exports=M},325,[3,4,5,31,15,326,27,174,185,177,136,26,298,242,201,137,327,329]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=['phoneNumber','link','address','calendarEvent','none','all'];m.exports=r(d[0])({},r(d[1]),{autoCapitalize:r(d[2]).oneOf(['none','sentences','words','characters']),autoComplete:r(d[2]).oneOf(['cc-csc','cc-exp','cc-exp-month','cc-exp-year','cc-number','email','name','password','postal-code','street-address','tel','username','off']),autoCorrect:r(d[2]).bool,spellCheck:r(d[2]).bool,autoFocus:r(d[2]).bool,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,editable:r(d[2]).bool,keyboardType:r(d[2]).oneOf(['default','email-address','numeric','phone-pad','number-pad','url','ascii-capable','numbers-and-punctuation','name-phone-pad','decimal-pad','twitter','web-search','ascii-capable-number-pad','visible-password']),keyboardAppearance:r(d[2]).oneOf(['default','light','dark']),returnKeyType:r(d[2]).oneOf(['done','go','next','search','send','none','previous','default','emergency-call','google','join','route','yahoo']),returnKeyLabel:r(d[2]).string,maxLength:r(d[2]).number,numberOfLines:r(d[2]).number,disableFullscreenUI:r(d[2]).bool,enablesReturnKeyAutomatically:r(d[2]).bool,multiline:r(d[2]).bool,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onBlur:r(d[2]).func,onFocus:r(d[2]).func,onChange:r(d[2]).func,onChangeText:r(d[2]).func,onContentSizeChange:r(d[2]).func,onTextInput:r(d[2]).func,onEndEditing:r(d[2]).func,onSelectionChange:r(d[2]).func,onSubmitEditing:r(d[2]).func,onKeyPress:r(d[2]).func,onLayout:r(d[2]).func,onScroll:r(d[2]).func,placeholder:r(d[2]).string,placeholderTextColor:r(d[3]),scrollEnabled:r(d[2]).bool,secureTextEntry:r(d[2]).bool,selectionColor:r(d[3]),selection:r(d[2]).shape({start:r(d[2]).number.isRequired,end:r(d[2]).number}),value:r(d[2]).string,defaultValue:r(d[2]).string,clearButtonMode:r(d[2]).oneOf(['never','while-editing','unless-editing','always']),clearTextOnFocus:r(d[2]).bool,selectTextOnFocus:r(d[2]).bool,blurOnSubmit:r(d[2]).bool,style:r(d[4]).style,underlineColorAndroid:r(d[3]),inlineImageLeft:r(d[2]).string,inlineImagePadding:r(d[2]).number,rejectResponderTermination:r(d[2]).bool,dataDetectorTypes:r(d[2]).oneOfType([r(d[2]).oneOf(n),r(d[2]).arrayOf(r(d[2]).oneOf(n))]),caretHidden:r(d[2]).bool,contextMenuHidden:r(d[2]).bool,inputAccessoryViewID:r(d[2]).string,textContentType:r(d[2]).oneOf(['none','URL','addressCity','addressCityAndState','addressState','countryName','creditCardNumber','emailAddress','familyName','fullStreetAddress','givenName','jobTitle','location','middleName','name','namePrefix','nameSuffix','nickname','organizationName','postalCode','streetAddressLine1','streetAddressLine2','sublocality','telephoneNumber','username','password','newPassword','oneTimeCode']),showSoftInputOnFocus:r(d[2]).bool})},326,[4,278,192,196,186]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var f=(0,t.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=f;var l=u.get('RCTSinglelineTextInputView',function(){return n.default});e.default=l},327,[3,138,328,151]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n={uiViewClassName:'RCTSinglelineTextInputView',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}}},directEventTypes:{},validAttributes:(0,t.default)({},o.default.validAttributes,{fontSize:!0,fontWeight:!0,fontVariant:!0,textShadowOffset:{diff:r(d[3])},allowFontScaling:!0,fontStyle:!0,textTransform:!0,textAlign:!0,fontFamily:!0,lineHeight:!0,isHighlighted:!0,writingDirection:!0,textDecorationLine:!0,textShadowRadius:!0,letterSpacing:!0,textDecorationStyle:!0,textDecorationColor:{process:r(d[4])},color:{process:r(d[4])},maxFontSizeMultiplier:!0,textShadowColor:{process:r(d[4])},editable:!0,inputAccessoryViewID:!0,caretHidden:!0,enablesReturnKeyAutomatically:!0,placeholderTextColor:{process:r(d[4])},onSelectionChange:!0,clearButtonMode:!0,onContentSizeChange:!0,keyboardType:!0,selection:!0,returnKeyType:!0,blurOnSubmit:!0,mostRecentEventCount:!0,onChange:!0,scrollEnabled:!0,selectionColor:{process:r(d[4])},contextMenuHidden:!0,secureTextEntry:!0,onTextInput:!0,placeholder:!0,autoCorrect:!0,onScroll:!0,multiline:!0,textContentType:!0,maxLength:!0,autoCapitalize:!0,keyboardAppearance:!0,passwordRules:!0,spellCheck:!0,selectTextOnFocus:!0,text:!0,clearTextOnFocus:!0})};m.exports=n},328,[3,4,140,147,142]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var f=(0,t.default)({supportedCommands:['focus','blur','setTextAndSelection']});e.Commands=f;var l=u.get('RCTMultilineTextInputView',function(){return n.default});e.default=l},329,[3,138,328,151]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),o=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(e);if(o&&o.has(t))return o.get(t);var E={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var l=s?Object.getOwnPropertyDescriptor(t,n):null;l&&(l.get||l.set)?Object.defineProperty(E,n,l):E[n]=t[n]}E.default=t,o&&o.set(t,E)})(r(d[3])),r(d[0])(r(d[4]))),E=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),n=r(d[0])(r(d[7])),l=r(d[0])(r(d[8]));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:e})(t)}var h=function(t){var e=t.touches,o=t.changedTouches,E=e&&e.length>0,s=o&&o.length>0;return!E&&s?o[0]:E?e[0]:t},R='NOT_RESPONDER',_='RESPONDER_INACTIVE_PRESS_IN',c='RESPONDER_INACTIVE_PRESS_OUT',S='RESPONDER_ACTIVE_PRESS_IN',T='RESPONDER_ACTIVE_PRESS_OUT',P='RESPONDER_ACTIVE_LONG_PRESS_IN',D='RESPONDER_ACTIVE_LONG_PRESS_OUT',N='ERROR',O={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},p=(0,e.default)({},O,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),f=(0,e.default)({},O,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),A=(0,e.default)({},O,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),b='DELAY',I='RESPONDER_GRANT',L='RESPONDER_RELEASE',v='RESPONDER_TERMINATED',y='ENTER_PRESS_RECT',C='LEAVE_PRESS_RECT',G='LONG_PRESS_DETECTED',V={NOT_RESPONDER:{DELAY:N,RESPONDER_GRANT:_,RESPONDER_RELEASE:N,RESPONDER_TERMINATED:N,ENTER_PRESS_RECT:N,LEAVE_PRESS_RECT:N,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_IN:{DELAY:S,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:_,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:N},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:P},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:N,RESPONDER_GRANT:N,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:P,LEAVE_PRESS_RECT:D,LONG_PRESS_DETECTED:N},error:{DELAY:R,RESPONDER_GRANT:_,RESPONDER_RELEASE:R,RESPONDER_TERMINATED:R,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:R}},H={componentDidMount:function(){E.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=R,this.state.touchable.responderID=e,this._receiveSignal(I,t);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),o):this._handleDelay(t);var E=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;E=isNaN(E)?370:E,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),E+o)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(L,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(v,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,E=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=E.left,n=E.top,l=E.right,u=E.bottom,R=this.touchableGetHitSlop?this.touchableGetHitSlop():null;R&&(s+=R.left||0,n+=R.top||0,l+=R.right||0,u+=R.bottom||0);var c=h(t.nativeEvent),S=c&&c.pageX,T=c&&c.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(S,T,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(S>e.left-s&&T>e.top-n&&S>`");E!==s&&(this._performSideEffectsForTransition(E,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===S||t===P},_savePressInLocation:function(t){var e=h(t.nativeEvent),o=e&&e.pageX,E=e&&e.pageY,s=e&&e.locationX,n=e&&e.locationY;this.pressInLocation={pageX:o,pageY:E,locationX:s,locationY:n}},_getDistanceBetweenPoints:function(t,e,o,E){var s=t-o,n=e-E;return Math.sqrt(s*s+n*n)},_performSideEffectsForTransition:function(t,e,o,s){var n=this._isHighlight(t),u=this._isHighlight(e);(o===v||o===L)&&this._cancelLongPressDelayTimeout();var h=t===R&&e===_,c=!p[t]&&p[e];if((h||c)&&this._remeasureMetricsOnActivation(),f[t]&&o===G&&this.touchableHandleLongPress&&this.touchableHandleLongPress(s),u&&!n?this._startHighlight(s):!u&&n&&this._endHighlight(s),f[t]&&o===L){var S=!!this.props.onLongPress,T=A[t]&&(!S||!this.touchableLongPressCancelsPress());(!A[t]||T)&&this.touchableHandlePress&&(u||n||(this._startHighlight(s),this._endHighlight(s)),'android'!==E.default.OS||this.props.touchSoundDisabled||l.default.playTouchSound(),this.touchableHandlePress(s))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){e.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},M=(H.touchableHandleFocus,H.touchableHandleBlur,(0,t.default)(H,["touchableHandleFocus","touchableHandleBlur"]));H.withoutDefaultFocusAndBlur=M;var w={Mixin:H,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=w},330,[3,5,4,15,331,27,333,50,203]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n},331,[3,332]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},o=function(n){(0,t.default)(n instanceof this,'Trying to release an instance into a pool of a different type.'),n.destructor(),this.instancePool.length=0;n--)if(t[n]())return;i.exitApp()});var i={exitApp:function(){n.default&&n.default.invokeDefaultBackPressHandler()},addEventListener:function(n,f){return-1===t.indexOf(f)&&t.push(f),{remove:function(){return i.removeEventListener(n,f)}}},removeEventListener:function(n,i){-1!==t.indexOf(i)&&t.splice(t.indexOf(i),1)}};m.exports=i},346,[3,347,20]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DeviceEventManager');e.default=n},347,[29]); +__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=(r(d[0])(r(d[7])),r(d[0])(r(d[8]))),s=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=u?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=t[c]}o.default=t,n&&n.set(t,o);return o})(r(d[9]));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function f(){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}}var h=(function(l){(0,n.default)(b,l);var p,h,y=(p=b,h=f(),function(){var t,e=(0,u.default)(p);if(h){var n=(0,u.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function b(){var e;(0,t.default)(this,b);for(var n=arguments.length,o=new Array(n),u=0;uthis.eventPool.length&&this.eventPool.push(e)}function T(e){e.getPooled=_,e.eventPool=[],e.release=R}n(i[2])(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:x,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=x,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,T(r),r},T(P);var E=P.extend({touchHistory:function(){return null}});function N(e){return"topTouchStart"===e}function C(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function H(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function Q(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var j,B={instrument:function(e){j=e},recordTouchTrack:function(e,n){if(null!=j&&j(e,n),C(e))n.changedTouches.forEach(H);else if(N(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(Q),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;e=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function wn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-_n(n)]=t}function xn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0 component.");return t=$n,$n+=2,{node:Ln(t,"RCTRawText",n,{text:e},r)}}var Kn=setTimeout,Zn=clearTimeout;function et(e){var n=e.node,t=an(null,Ge,{style:{display:"none"}},e.canonical.viewConfig.validAttributes);return{node:Dn(n,t),canonical:e.canonical}}function nt(e,n,t){return n="",t&&(n=" (created by "+t+")"),"\n in "+(e||"Unknown")+n}function tt(e,n){return e?nt(e.displayName||e.name||null,n,null):""}var rt=Object.prototype.hasOwnProperty,lt=[],at=-1;function it(e){return{current:e}}function ut(e){0>at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){lt[++at]=e.current,e.current=n}var st={},ct=it(st),dt=it(!1),ft=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(){ut(dt),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(dt,t)}function vt(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((We(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,ft=ct.current,ot(ct,e),ot(dt,dt.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,ft),r.__reactInternalMemoizedMergedChildContext=e,ut(dt),ut(ct),ot(ct,e)):ut(dt),ot(dt,t)}var St=null,kt=!1,wt=!1;function xt(){if(!wt&&null!==St){wt=!0;var e=0,t=En;try{var r=St;for(En=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===_e&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case xe:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===_e){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=nr(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===_e?((r=ti(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=ni(a.type,a.key,a.props,null,e.mode,u)).ref=nr(e,r,a),u.return=e,e=u)}return i(e);case Pe:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ai(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(je(a))return g(e,r,a,u);tr(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=li(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((We(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var lr=rr(!0),ar=rr(!1),ir={},ur=it(ir),or=it(ir),sr=it(ir);function cr(e){if(e===ir)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function dr(e,n){ot(sr,n),ot(or,e),ot(ur,ir),ut(ur),ot(ur,{isInAParentText:!1})}function fr(){ut(ur),ut(or),ut(sr)}function pr(e){cr(sr.current);var n=cr(ur.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(or,e),ot(ur,t))}function hr(e){or.current===e&&(ut(ur),ut(or))}var gr=it(0);function mr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||zn()||zn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vr=[];function br(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,Pr=xr=null,n.updateQueue=null,yr.current=tl,e=t(r,l)}while(Rr)}if(yr.current=Zr,n=null!==xr&&null!==xr.next,kr=0,Pr=xr=wr=null,_r=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e,Pr}function zr(){if(null===xr){var e=wr.alternate;e=null!==e?e.memoizedState:null}else e=xr.next;var n=null===Pr?wr.memoizedState:Pr.next;if(null!==n)Pr=n,xr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(xr=e).memoizedState,baseState:xr.baseState,baseQueue:xr.baseQueue,queue:xr.queue,next:null},null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e}return Pr}function Ir(e,n){return"function"==typeof n?n(e):n}function Lr(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=xr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((kr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,wr.lanes|=c,da|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,_t(r,n.memoizedState)||(sl=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,wr.lanes|=a,da|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Ur(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);_t(a,n.memoizedState)||(sl=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function Mr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionSecondary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(kr&e)===e)&&(n._workInProgressVersionSecondary=r,vr.push(n))),e)return t(n._source);throw vr.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Fr(e,n,t,r){var l=la;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=yr.current,o=u.useState(function(){return Mr(l,n,t)}),s=o[1],c=o[0];o=Pr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=wr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);_t(i,e)||(e=t(n._source),_t(c,e)||(s(e),e=Ta(g),l.mutableReadLanes|=e&l.pendingLanes),Pn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=Ta(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),_t(p,t)&&_t(h,n)&&_t(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:c}).dispatch=s=Kr.bind(null,wr,e),o.queue=e,o.baseQueue=null,c=Mr(l,n,t),o.memoizedState=o.baseState=c),c}function Dr(e,n,t){return Fr(zr(),e,n,t)}function Ar(e){var n=Cr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:e}).dispatch=Kr.bind(null,wr,e),[n.memoizedState,e]}function Hr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=wr.updateQueue)?(n={lastEffect:null},wr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Qr(){return zr().memoizedState}function jr(e,n,t,r){var l=Cr();wr.flags|=e,l.memoizedState=Hr(1|n,t,void 0,void 0===r?null:r)}function Br(e,n,t,r){var l=zr();r=void 0===r?null:r;var a=void 0;if(null!==xr){var i=xr.memoizedState;if(a=i.destroy,null!==r&&Er(r,i.deps))return void(l.memoizedState=Hr(n,t,a,r))}wr.flags|=e,l.memoizedState=Hr(1|n,t,a,r)}function Wr(e,n){return jr(1049600,4,e,n)}function Or(e,n){return Br(1024,4,e,n)}function Vr(e,n){return Br(4,2,e,n)}function Yr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function qr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Br(4,2,Yr.bind(null,n,e),t)}function Xr(){}function $r(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Gr(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Jr(e,n){var t=En;En=0!==t&&4>t?t:4,e(!0);var r=Sr.transition;Sr.transition=1;try{e(!1),n()}finally{En=t,Sr.transition=r}}function Kr(e,n,t){var r=Ra(),l=Ta(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===wr||null!==i&&i===wr)Rr=_r=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==la&&0!=(1&e.mode)&&0==(8&ra)){var u=n.interleaved;null===u?(a.next=a,null===At?At=[n]:At.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,_t(s,o))return}catch(e){}a=Ea(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Pn(a,l))}}var Zr={readContext:Dt,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useOpaqueIdentifier:Tr,unstable_isNewReconciler:!1},el={readContext:Dt,useCallback:function(e,n){return Cr().memoizedState=[e,void 0===n?null:n],e},useContext:Dt,useEffect:Wr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,jr(4,2,Yr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return jr(4,2,e,n)},useMemo:function(e,n){var t=Cr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Cr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=Kr.bind(null,wr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cr().memoizedState=e},useState:Ar,useDebugValue:Xr,useDeferredValue:function(e){var n=Ar(e),t=n[0],r=n[1];return Wr(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){var e=Ar(!1),n=e[0];return e=Jr.bind(null,e[1]),Cr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Cr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Fr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},nl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Lr,useRef:Qr,useState:function(){return Lr(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Lr(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Lr(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Lr(Ir)[0]},unstable_isNewReconciler:!1},tl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Ur,useRef:Qr,useState:function(){return Ur(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Ur(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Ur(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Ur(Ir)[0]},unstable_isNewReconciler:!1};function rl(e,n){try{var t="",r=n;do{t+=Tt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function ll(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,n,t){(t=Bt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ma||(ma=!0,va=r),ll(e,n)},t}function ul(e,n,t){(t=Bt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return ll(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===ba?ba=new Set([this]):ba.add(this),ll(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var ol=we.ReactCurrentOwner,sl=!1;function cl(e,n,t,r){n.child=null===e?ar(n,null,t,r):lr(n,e.child,t,r)}function dl(e,n,t,r,l){t=t.render;var a=n.ref;return Ft(n,l),r=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function fl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||Ka(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=ni(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,pl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:Rt)(l,r)&&e.ref===n.ref)?Ll(e,n,a):(n.flags|=1,(e=ei(i,r)).ref=n.ref,e.return=n,n.child=e)}function pl(e,n,t,r,l,a){if(null!==e&&Rt(e.memoizedProps,r)&&e.ref===n.ref){if(sl=!1,0==(a&l))return n.lanes=e.lanes,Ll(e,n,a);0!=(32768&e.flags)&&(sl=!0)}return ml(e,n,t,r,a)}function hl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},ot(oa,ua),ua|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,ot(oa,ua),ua|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,ot(oa,ua),ua|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(oa,ua),ua|=r;return cl(e,n,l,t),n.child}function gl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function ml(e,n,t,r,l){var a=ht(t)?ft:ct.current;return a=pt(n,a),Ft(n,l),t=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function vl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Ft(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),Kt(n,t,r),er(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Dt(s):s=pt(n,s=ht(t)?ft:ct.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Zt(n,i,r,s),Ht=!1;var f=n.memoizedState;i.state=f,Yt(n,r,i,l),o=n.memoizedState,u!==r||f!==o||dt.current||Ht?("function"==typeof c&&($t(n,t,c,r),o=n.memoizedState),(u=Ht||Jt(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,jt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Et(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Dt(o):o=pt(n,o=ht(t)?ft:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Zt(n,i,r,o),Ht=!1,f=n.memoizedState,i.state=f,Yt(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||dt.current||Ht?("function"==typeof p&&($t(n,t,p,r),h=n.memoizedState),(s=Ht||Jt(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return bl(e,n,t,r,a,l)}function bl(e,n,t,r,l,a){gl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),Ll(e,n,a);r=n.stateNode,ol.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=lr(n,e.child,null,a),n.child=lr(n,null,u,a)):cl(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function yl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),dr(e,n.containerInfo)}var Sl,kl,wl,xl,Pl={dehydrated:null,retryLane:0};function _l(e){return{baseLanes:e,cachePool:null}}function Rl(e,n,t){var r,l=n.pendingProps,a=gr.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),ot(gr,1&a),null===e?(e=l.children,a=l.fallback,i?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,e):"number"==typeof l.unstable_expectedLoadTime?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,n.lanes=4194304,e):((t=ri({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=Nl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?_l(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=Pl,l):(t=El(e,n,l.children,t),n.memoizedState=null,t))}function Tl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=ri(n,l,0,null),t=ti(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function El(e,n,t,r){var l=e.child;return e=l.sibling,t=ei(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function Nl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=ei(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=ei(i,r):(r=ti(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Cl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),Mt(e.return,n)}function zl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Il(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(cl(e,n,r.children,t),0!=(2&(r=gr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Cl(e,t);else if(19===e.tag)Cl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(gr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===mr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),zl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===mr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}zl(n,!0,t,null,a);break;case"together":zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ll(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),da|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=ei(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=ei(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Ul(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(6454&e.flags)||0!=(6454&e.subtreeFlags))return!1;e=e.sibling}return!0}function Ml(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Qn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Qn(e,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Ml(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function Fl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Al(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:return ht(t.type)&>(),Dl(t),null;case 3:return l=t.stateNode,fr(),ut(dt),ut(ct),br(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),kl(e,t),Dl(t),null;case 5:hr(t),r=cr(sr.current);var a=t.type;if(null!==e&&null!=t.stateNode)wl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Dl(t),null}cr(ur.current),e=$n,$n+=2,a=Xn(a);var u=an(null,Ge,l,a.validAttributes);r=Ln(e,a.uiViewClassName,r,u,t),e=new Gn(e,a,l,t),Sl(e={node:r,canonical:e},t,!1,!1),t.stateNode=e,null!==t.ref&&(t.flags|=256)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)xl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=cr(sr.current),r=cr(ur.current),t.stateNode=Jn(l,e,r,t)}return Dl(t),null;case 13:return ut(gr),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&gr.current)?0===sa&&(sa=3):(0!==sa&&3!==sa||(sa=4),null===la||0==(268435455&da)&&0==(268435455&fa)||Ia(la,ia))),l&&(t.flags|=4),Dl(t),null);case 4:return fr(),kl(e,t),Dl(t),null;case 10:return Ut(t.type._context),Dl(t),null;case 17:return ht(t.type)&>(),Dl(t),null;case 19:if(ut(gr),null===(a=t.memoizedState))return Dl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Fl(a,!1);else{if(0!==sa||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=mr(e))){for(t.flags|=128,Fl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return ot(gr,1&gr.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ga&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=mr(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Fl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return Dl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ga&&1073741824!==r&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=gr.current,ot(gr,l?1&e|2:1&e),t):(Dl(t),null);case 22:case 23:return Ua(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ua)&&0!=(1&t.mode)||Dl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Hl(e){switch(e.tag){case 1:ht(e.type)&>();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(fr(),ut(dt),ut(ct),br(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return hr(e),null;case 13:return ut(gr),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return ut(gr),null;case 4:return fr(),null;case 10:return Ut(e.type._context),null;case 22:case 23:return Ua(),null;case 24:default:return null}}Sl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Hn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Hn(e.node,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Sl(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},kl=function(e,n){var t=n.stateNode;if(!Ul(e,n)){e=t.containerInfo;var r=An(e);Ml(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,jn(e,r)}},wl=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=Ul(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;cr(ur.current);var i=null;l!==r&&(l=an(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?Dn(l,r):Un(l):null!==r?Fn(l,r):Mn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:Sl(t,n,!1,!1))}},xl=function(e,n,t,r){t!==r?(e=cr(sr.current),t=cr(ur.current),n.stateNode=Jn(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Ql="function"==typeof WeakSet?WeakSet:Set,jl=null;function Bl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){qa(e,n,t)}else t.current=null}var Wl=!1;function Ol(e,n){for(jl=n;null!==jl;)if(n=(e=jl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,jl=n;else for(;null!==jl;){e=jl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Et(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){qa(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,jl=n;break}jl=e.return}return t=Wl,Wl=!1,t}function Vl(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){qa(i,u,e)}}}l=l.next}while(l!==r)}}function Yl(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ql(e){var n=e.alternate;null!==n&&(e.alternate=null,ql(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Vl(3,t,t.return);case 12:return;case 13:return null!==t.memoizedState&&(ha=n(i[4]).unstable_now()),void $l(t);case 19:return void $l(t);case 22:case 23:return}e:{switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:break e}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function $l(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Ql),n.forEach(function(n){var r=$a.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Gl(e,n){for(jl=n;null!==jl;){if(null!==(n=(e=jl).deletions))for(var t=0;ta&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Zl(l/1960))-l)){e.timeoutHandle=Kn(Wa.bind(null,e),l);break}Wa(e);break;case 5:Wa(e);break;default:throw Error("Unknown root exit status.")}}return Ca(e,n(i[4]).unstable_now()),e.callbackNode===r?za.bind(null,e):null}function Ia(e,n){for(n&=~pa,n&=~fa,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==sa&&(sa=2),o=rl(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,il(p,a,n));break e;case 1:a=o;var w=p.type,x=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ba||!ba.has(x)))){p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,ul(p,a,n));break e}}p=p.return}while(null!==p)}Ba(t)}catch(e){n=e,aa===t&&null!==t&&(aa=t=t.return);continue}break}}function Da(){var e=ea.current;return ea.current=Zr,null===e?Zr:e}function Aa(e,n){var t=ra;ra|=8;var r=Da();for(la===e&&ia===n||Ma(e,n);;)try{Ha();break}catch(n){Fa(e,n)}if(Lt(),ra=t,ea.current=r,null!==aa)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return la=null,ia=0,sa}function Ha(){for(;null!==aa;)ja(aa)}function Qa(){for(;null!==aa&&!n(i[4]).unstable_shouldYield();)ja(aa)}function ja(e){var n=Kl(e.alternate,e,ua);e.memoizedProps=e.pendingProps,null===n?Ba(e):aa=n,na.current=null}function Ba(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Al(t,n,ua)))return void(aa=t)}else{if(null!==(t=Hl(n)))return t.flags&=8191,void(aa=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(aa=n);aa=n=e}while(null!==n);0===sa&&(sa=5)}function Wa(e){var n=En,t=ta.transition;try{ta.transition=0,En=1,Oa(e,n)}finally{ta.transition=t,En=n}return null}function Oa(e,t){do{Va()}while(null!==Sa);if(0!=(24&ra))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(xn(e,a),e===la&&(aa=la=null,ia=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ya||(ya=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Va(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=ta.transition,ta.transition=0;var u=En;En=1;var o=ra;ra|=16,na.current=null,Ol(e,r),Gl(e,r),e.current=r,Jl(r),n(i[4]).unstable_requestPaint(),ra=o,En=u,ta.transition=a}else e.current=r;if(ya&&(ya=!1,Sa=e,ka=l),0===(a=e.pendingLanes)&&(ba=null),0!=(1&a)?e===xa?wa++:(wa=0,xa=e):wa=0,hn(r.stateNode),Ca(e,n(i[4]).unstable_now()),ma)throw ma=!1,e=va,va=null,e;return 0!=(4&ra)?null:(0!=(1&ka)&&0!==e.tag&&Va(),xt(),null)}function Va(){if(null!==Sa){var e=Nn(ka),n=ta.transition,t=En;try{if(ta.transition=0,En=16>e?16:e,null===Sa)var r=!1;else{if(e=Sa,Sa=null,ka=0,0!=(24&ra))throw Error("Cannot flush passive effects while already rendering.");var l=ra;for(ra|=16,jl=e.current;null!==jl;){var a=jl,i=a.child;if(0!=(16&jl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-ha?Ma(e,0):pa|=r),Ca(e,t)}function $a(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=mn,0==(130023424&(mn<<=1))&&(mn=4194304))),t=Ra(),null!==(e=Na(e,n))&&(wn(e,n,t),Ca(e,t))}function Ga(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ja(e,n,t,r){return new Ga(e,n,t,r)}function Ka(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Za(e){if("function"==typeof e)return Ka(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Ce)return 11;if(e===Le)return 14}return 2}function ei(e,n){var t=e.alternate;return null===t?((t=Ja(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ni(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Ka(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _e:return ti(t.children,l,a,n);case Me:i=8,l|=4;break;case Re:i=8,l|=8;break;case Te:return(e=Ja(12,t,n,2|l)).elementType=Te,e.lanes=a,e;case ze:return(e=Ja(13,t,n,l)).elementType=ze,e.lanes=a,e;case Ie:return(e=Ja(19,t,n,l)).elementType=Ie,e.lanes=a,e;case Fe:return ri(t,l,a,n);case De:return(e=Ja(23,t,n,l)).elementType=De,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ee:i=10;break e;case Ne:i=9;break e;case Ce:i=11;break e;case Le:i=14;break e;case Ue:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ja(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function ti(e,n,t,r){return(e=Ja(7,e,r,n)).lanes=t,e}function ri(e,n,t,r){return(e=Ja(22,e,r,n)).elementType=Fe,e.lanes=t,e}function li(e,n,t){return(e=Ja(6,e,null,n)).lanes=t,e}function ai(e,n,t){return(n=Ja(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ii(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=kn(0),this.expirationTimes=kn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0)}function ui(e,n,t){var r=3=t.length?{done:!0}:{done:!1,value:t[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.")}function f(t,n){if(t){if("string"==typeof t)return s(t,n);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?s(t,n):void 0}}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var u=0,o=new Array(n);u=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var f=o.call(u,"catchLoc"),h=o.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;P(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}function c(t,n){var o=t[n];'object'==typeof o&&'function'==typeof o.getMonth&&(t[n]=o.getTime())}var u=(function(){function u(){(0,t.default)(this,u)}return(0,n.default)(u,null,[{key:"open",value:function(t){var n;return i().async(function(i){for(;;)switch(i.prev=i.next){case 0:return null!=(n=t)&&(c(n,'date'),c(n,'minDate'),c(n,'maxDate')),i.abrupt("return",o.default.open(t));case 3:case"end":return i.stop()}},null,null,null,Promise)}}]),u})();u.dateSetAction='dateSetAction',u.dismissedAction='dismissedAction',m.exports=u},365,[3,7,8,366]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('DatePickerAndroid');e.default=n},366,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=t.default},367,[3,163]); +__d(function(g,r,i,a,m,e,d){r(d[0])(r(d[1])),r(d[0])(r(d[2])),r(d[0])(r(d[3]));m.exports={addMenuItem:function(n,o){},reload:function(n){},onFastRefresh:function(){}}},368,[3,369,101,27]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('DevSettings');e.default=n},369,[29]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l={canRecordVideos:function(l){return(0,n.default)(o.default,'ImagePickerIOS is not available'),o.default.canRecordVideos(l)},canUseCamera:function(l){return(0,n.default)(o.default,'ImagePickerIOS is not available'),o.default.canUseCamera(l)},openCameraDialog:function(l,t,u){(0,n.default)(o.default,'ImagePickerIOS is not available');var s={videoMode:!0,unmirrorFrontFacingCamera:!1};return null!=l.videoMode&&(s.videoMode=l.videoMode),null!=l.unmirrorFrontFacingCamera&&(s.unmirrorFrontFacingCamera=l.unmirrorFrontFacingCamera),o.default.openCameraDialog(s,t,u)},openSelectDialog:function(l,t,u){(0,n.default)(o.default,'ImagePickerIOS is not available');var s={showImages:!0,showVideos:!1};return null!=l.showImages&&(s.showImages=l.showImages),null!=l.showVideos&&(s.showVideos=l.showVideos),o.default.openSelectDialog(s,t,u)},removePendingVideo:function(l){(0,n.default)(o.default,'ImagePickerIOS is not available'),o.default.removePendingVideo(l)},clearAllPendingVideos:function(){(0,n.default)(o.default,'ImagePickerIOS is not available'),o.default.clearAllPendingVideos()}};m.exports=l},370,[3,371,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ImagePickerIOS');e.default=n},371,[29]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),o=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),s=r(d[0])(r(d[9])),v=r(d[0])(r(d[10])),p=r(d[0])(r(d[11])),R=r(d[0])(r(d[12]));function L(){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(e){return!1}}var y=(function(l){(0,n.default)(O,l);var y,U,h=(y=O,U=L(),function(){var e,t=(0,f.default)(y);if(U){var n=(0,f.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function O(){return(0,e.default)(this,O),h.call(this,'ios'===c.default.OS?(0,R.default)(s.default):void 0)}return(0,t.default)(O,[{key:"addEventListener",value:function(e,t,n){return this.addListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.removeListener(e,t)}},{key:"openURL",value:function(e){return this._validateURL(e),'android'===c.default.OS?(0,R.default)(v.default).openURL(e):(0,R.default)(s.default).openURL(e)}},{key:"canOpenURL",value:function(e){return this._validateURL(e),'android'===c.default.OS?(0,R.default)(v.default).canOpenURL(e):(0,R.default)(s.default).canOpenURL(e)}},{key:"openSettings",value:function(){return'android'===c.default.OS?(0,R.default)(v.default).openSettings():(0,R.default)(s.default).openSettings()}},{key:"getInitialURL",value:function(){return'android'===c.default.OS?o.default.runAfterInteractions().then(function(){return(0,R.default)(v.default).getInitialURL()}):(0,R.default)(s.default).getInitialURL()}},{key:"sendIntent",value:function(e,t){return'android'===c.default.OS?(0,R.default)(v.default).sendIntent(e,t):new Promise(function(e,t){return t(new Error('Unsupported'))})}},{key:"_validateURL",value:function(e){(0,p.default)('string'==typeof e,'Invalid URL: should be a string. Was: '+e),(0,p.default)(e,'Invalid URL: cannot be empty')}}]),O})(l.default);m.exports=new y},372,[3,7,8,9,11,14,101,221,27,373,374,26,298]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('LinkingManager');e.default=n},373,[29]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('IntentAndroid');e.default=n},374,[29]); +__d(function(g,r,i,a,m,e,d){var n;r(d[0])(r(d[1])),r(d[0])(r(d[2]));n={install:function(){},uninstall:function(){},isInstalled:function(){return!1},ignoreLogs:function(n){},ignoreAllLogs:function(n){},clearAllLogs:function(){},addLog:function(n){},addException:function(n){}},m.exports=n},375,[3,27,126]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={_initializeGestureState:function(n){n.moveX=0,n.moveY=0,n.x0=0,n.y0=0,n.dx=0,n.dy=0,n.vx=0,n.vy=0,n.numberActiveTouches=0,n._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(n,o){n.numberActiveTouches=o.numberActiveTouches,n.moveX=r(d[0]).currentCentroidXOfTouchesChangedAfter(o,n._accountsForMovesUpTo),n.moveY=r(d[0]).currentCentroidYOfTouchesChangedAfter(o,n._accountsForMovesUpTo);var t=n._accountsForMovesUpTo,u=r(d[0]).previousCentroidXOfTouchesChangedAfter(o,t),s=r(d[0]).currentCentroidXOfTouchesChangedAfter(o,t),c=r(d[0]).previousCentroidYOfTouchesChangedAfter(o,t),p=r(d[0]).currentCentroidYOfTouchesChangedAfter(o,t),v=n.dx+(s-u),h=n.dy+(p-c),l=o.mostRecentTimeStamp-n._accountsForMovesUpTo;n.vx=(v-n.dx)/l,n.vy=(h-n.dy)/l,n.dx=v,n.dy=h,n._accountsForMovesUpTo=o.mostRecentTimeStamp},create:function(t){var u={handle:null},s={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:function(n){return null!=t.onStartShouldSetPanResponder&&t.onStartShouldSetPanResponder(n,s)},onMoveShouldSetResponder:function(n){return null!=t.onMoveShouldSetPanResponder&&t.onMoveShouldSetPanResponder(n,s)},onStartShouldSetResponderCapture:function(o){return 1===o.nativeEvent.touches.length&&n._initializeGestureState(s),s.numberActiveTouches=o.touchHistory.numberActiveTouches,null!=t.onStartShouldSetPanResponderCapture&&t.onStartShouldSetPanResponderCapture(o,s)},onMoveShouldSetResponderCapture:function(o){var u=o.touchHistory;return s._accountsForMovesUpTo!==u.mostRecentTimeStamp&&(n._updateGestureStateOnMove(s,u),!!t.onMoveShouldSetPanResponderCapture&&t.onMoveShouldSetPanResponderCapture(o,s))},onResponderGrant:function(n){return u.handle||(u.handle=r(d[1]).createInteractionHandle()),s.x0=r(d[0]).currentCentroidX(n.touchHistory),s.y0=r(d[0]).currentCentroidY(n.touchHistory),s.dx=0,s.dy=0,t.onPanResponderGrant&&t.onPanResponderGrant(n,s),null==t.onShouldBlockNativeResponder||t.onShouldBlockNativeResponder(n,s)},onResponderReject:function(n){o(u,t.onPanResponderReject,n,s)},onResponderRelease:function(c){o(u,t.onPanResponderRelease,c,s),n._initializeGestureState(s)},onResponderStart:function(n){var o=n.touchHistory;s.numberActiveTouches=o.numberActiveTouches,t.onPanResponderStart&&t.onPanResponderStart(n,s)},onResponderMove:function(o){var u=o.touchHistory;s._accountsForMovesUpTo!==u.mostRecentTimeStamp&&(n._updateGestureStateOnMove(s,u),t.onPanResponderMove&&t.onPanResponderMove(o,s))},onResponderEnd:function(n){var c=n.touchHistory;s.numberActiveTouches=c.numberActiveTouches,o(u,t.onPanResponderEnd,n,s)},onResponderTerminate:function(c){o(u,t.onPanResponderTerminate,c,s),n._initializeGestureState(s)},onResponderTerminationRequest:function(n){return null==t.onPanResponderTerminationRequest||t.onPanResponderTerminationRequest(n,s)}},getInteractionHandle:function(){return u.handle}}}};function o(n,o,t,u){n.handle&&(r(d[1]).clearInteractionHandle(n.handle),n.handle=null),o&&o(t,u)}m.exports=n},376,[377,221]); +__d(function(g,r,_i,a,m,e,d){var n={centroidDimension:function(t,i,o,u){var c=t.touchBank,f=0,s=0,h=1===t.numberActiveTouches?t.touchBank[t.indexOfSingleActiveTouch]:null;if(null!==h)h.touchActive&&h.currentTimeStamp>i&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n},377,[]); +__d(function(g,r,_i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),i=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),u=r(d[0])(r(d[6]));function c(){"use strict";c=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,n,i){t[n]=i.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,n,i){return Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,i){return t[n]=i}}function p(t,n,i,s){var u=n&&n.prototype instanceof _?n:_,c=Object.create(u.prototype),l=new D(s||[]);return o(c,"_invoke",{value:w(t,i,l)}),c}function E(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var v={};function _(){}function y(){}function A(){}var O={};h(O,u,function(){return this});var S=Object.getPrototypeOf,L=S&&S(S(x([])));L&&L!==n&&i.call(L,u)&&(O=L);var C=A.prototype=_.prototype=Object.create(O);function T(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function R(t,n){function s(o,u,c,l){var f=E(t[o],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){s("next",t,c,l)},function(t){s("throw",t,c,l)}):n.resolve(p).then(function(t){h.value=t,c(h)},function(t){return s("throw",t,c,l)})}l(f.arg)}var u;o(this,"_invoke",{value:function(t,i){function o(){return new n(function(n,o){s(t,i,n,o)})}return u=u?u.then(o,o):o()}})}function w(t,n,i){var o="suspendedStart";return function(s,u){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===s)throw u;return b()}for(i.method=s,i.arg=u;;){var c=i.delegate;if(c){var l=N(c,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var f=E(t,n,i);if("normal"===f.type){if(o=i.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:i.done}}"throw"===f.type&&(o="completed",i.method="throw",i.arg=f.arg)}}}function N(t,n){var i=n.method,o=t.iterator[i];if(void 0===o)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var s=E(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,v;var u=s.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function I(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function x(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--s){var u=this.tryEntries[s],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var s=o.arg;P(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:x(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=void 0),v}},t}var l=Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'}),f=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE'}),h=new((function(){function h(){(0,n.default)(this,h),this.PERMISSIONS=f,this.RESULTS=l}return(0,i.default)(h,[{key:"checkPermission",value:function(t){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),(0,u.default)(s.default,'PermissionsAndroid is not installed correctly.'),s.default.checkPermission(t)}},{key:"check",value:function(t){return(0,u.default)(s.default,'PermissionsAndroid is not installed correctly.'),s.default.checkPermission(t)}},{key:"requestPermission",value:function(t,n){var i;return c().async(function(o){for(;;)switch(o.prev=o.next){case 0:console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),o.next=4;break;case 4:return o.next=6,c().awrap(this.request(t,n));case 6:return i=o.sent,o.abrupt("return",i===this.RESULTS.GRANTED);case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"request",value:function(n,i){return c().async(function(l){for(;;)switch(l.prev=l.next){case 0:l.next=3;break;case 3:if((0,u.default)(s.default,'PermissionsAndroid is not installed correctly.'),!i){l.next=10;break}return l.next=7,c().awrap(s.default.shouldShowRequestPermissionRationale(n));case 7:if(!l.sent||!o.default){l.next=10;break}return l.abrupt("return",new Promise(function(u,c){var l=(0,t.default)({},i);o.default.showAlert(l,function(){return c(new Error('Error showing rationale'))},function(){return u(s.default.requestPermission(n))})}));case 10:return l.abrupt("return",s.default.requestPermission(n));case 11:case"end":return l.stop()}},null,this,null,Promise)}},{key:"requestMultiple",value:function(t){return(0,u.default)(s.default,'PermissionsAndroid is not installed correctly.'),s.default.requestMultiplePermissions(t)}}]),h})());m.exports=h},378,[3,4,7,8,119,379,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PermissionsAndroid');e.default=n},379,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=new n.default('ios'!==c.default.OS?null:l.default),s=new Map,v=(function(){function n(o){var l=this;(0,t.default)(this,n),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=o.remote,this._isRemote&&(this._notificationId=o.notificationId),o.remote?Object.keys(o).forEach(function(t){var n=o[t];'aps'===t?(l._alert=n.alert,l._sound=n.sound,l._badgeCount=n.badge,l._category=n.category,l._contentAvailable=n['content-available'],l._threadID=n['thread-id']):l._data[t]=n}):(this._badgeCount=o.applicationIconBadgeNumber,this._sound=o.soundName,this._alert=o.alertBody,this._data=o.userInfo,this._category=o.category)}return(0,o.default)(n,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(t,o){var l;(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===t?l=f.addListener("remoteNotificationReceived",function(t){o(new n(t))}):'localNotification'===t?l=f.addListener("localNotificationReceived",function(t){o(new n(t))}):'register'===t?l=f.addListener("remoteNotificationsRegistered",function(t){o(t.deviceToken)}):'registrationError'===t&&(l=f.addListener("remoteNotificationRegistrationError",function(t){o(t)})),s.set(t,l)}},{key:"removeEventListener",value:function(t,o){(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=s.get(t);n&&(n.remove(),s.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,u.default)('function'==typeof t,'Must provide a valid callback'),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getInitialNotification().then(function(t){return t&&new n(t)})}},{key:"getAuthorizationStatus",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getAuthorizationStatus(t)}}]),n})();v.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=v},380,[3,7,8,101,381,26,27]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PushNotificationManager');e.default=n},381,[29]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={get:function(n){return console.warn('Settings is not yet supported on Android'),null},set:function(n){console.warn('Settings is not yet supported on Android')},watchKeys:function(n,t){return console.warn('Settings is not yet supported on Android'),-1},clearWatch:function(n){console.warn('Settings is not yet supported on Android')}};m.exports=n},382,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),l=(r(d[0])(r(d[4])),r(d[0])(r(d[5]))),o=(function(){function o(){(0,n.default)(this,o)}return(0,s.default)(o,null,[{key:"share",value:function(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[6])('object'==typeof n&&null!==n,'Content to share must be a valid object'),r(d[6])('string'==typeof n.url||'string'==typeof n.message,'At least one of URL and message is required'),r(d[6])('object'==typeof s&&null!==s,'Options must be a valid object'),r(d[6])(l.default,'ShareModule should be registered on Android.'),r(d[6])(null==n.title||'string'==typeof n.title,'Invalid title: title should be a string.');var o={title:n.title,message:'string'==typeof n.message?n.message:void 0};return l.default.share(o,s.dialogTitle).then(function(n){return(0,t.default)({activityType:null},n)})}}]),o})();o.sharedAction='sharedAction',o.dismissedAction='dismissedAction',m.exports=o},383,[3,4,7,8,337,384,26]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ShareModule');e.default=n},384,[29]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),f=t.default.getConstants(),n={SHORT:f.SHORT,LONG:f.LONG,TOP:f.TOP,BOTTOM:f.BOTTOM,CENTER:f.CENTER,show:function(f,n){t.default.show(f,n)},showWithGravity:function(f,n,o){t.default.showWithGravity(f,n,o)},showWithGravityAndOffset:function(f,n,o,O,s){t.default.showWithGravityAndOffset(f,n,o,O,s)}};m.exports=n},385,[3,386]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('ToastAndroid');e.default=n},386,[29]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,n.useMemo)(function(){return{getCurrentValue:function(){return u.default.getColorScheme()},subscribe:function(n){var t=u.default.addChangeListener(n);return function(){t.remove()}}}},[]);return(0,r(d[3]).useSubscription)(t)};var n=r(d[0]),u=r(d[1])(r(d[2]))},387,[15,3,338,388]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},388,[389]); +__d(function(g,r,i,_a,m,e,d){'use strict';e.useSubscription=function(t){return r(d[0]).useSyncExternalStore(t.subscribe,t.getCurrentValue)}},389,[390]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},390,[391]); +__d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r(function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})},[t,c,n]),u(function(){return a(f)&&S({inst:f}),t(function(){a(f)&&S({inst:f})})},[t]),s(c),c}},391,[15]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var f=(0,u.useState)(function(){return n.default.get('window')}),o=(0,t.default)(f,2),c=o[0],l=o[1];return(0,u.useEffect)(function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var u=n.default.addEventListener('change',t);return t({window:n.default.get('window')}),function(){u.remove()}},[c]),c};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3])},392,[3,31,162,15]); +__d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},393,[168]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=400;var o={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');t.default.vibrateByPattern(o,f?0:-1)}},cancel:function(){t.default.cancel()}};m.exports=o},394,[3,395]); +__d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('Vibration');e.default=n},395,[29]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var n;n=(function(n){r(d[3])(o,n);var e,u,c=(e=o,u=t(),function(){var t,n=r(d[0])(e);if(u){var c=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function o(){return r(d[4])(this,o),c.apply(this,arguments)}return r(d[5])(o,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),o})(r(d[2]).Component),m.exports=n},396,[14,11,15,9,7,8]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(o){throw new Error('DynamicColorIOS is not available on this platform.')}},397,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).shape({x:r(d[0]).number,y:r(d[0]).number});m.exports=n},398,[192]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=u.forwardRef(function(l,c){var p=Object.keys(l).reduce(function(t,n){var u=o;return u.includes(n)&&(t[n]=l[n]),t},(0,t.default)({},f)),s=(0,u.useRef)(),v=(0,u.useRef)();return(0,u.useImperativeHandle)(c,function(){var t=v.current;return s.current&&t?(s.current.handlerTag=t.handlerTag,s.current):null},[s,v]),u.createElement(r(d[4]).NativeViewGestureHandler,(0,t.default)({},p,{ref:v}),u.createElement(n,(0,t.default)({},l,{ref:s})))});return l.displayName=n.displayName||'ComponentWrapper',l};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var o=[].concat((0,n.default)(r(d[4]).nativeViewProps),['onGestureHandlerEvent','onGestureHandlerStateChange'])},399,[3,4,42,15,400]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.nativeViewProps=e.NativeViewGestureHandler=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=[].concat((0,t.default)(r(d[3]).baseProps),['shouldActivateOnStart','disallowInterruption']);e.nativeViewProps=o;var l=(0,n.default)({name:'NativeViewGestureHandler',allowedProps:o,config:{}});e.NativeViewGestureHandler=l},400,[3,42,401,405]); +__d(function(g,_r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var t=e.name,f=e.allowedProps,E=void 0===f?[]:f,w=e.config,S=void 0===w?{}:w,C=e.transformProps,T=e.customNativeProps,N=void 0===T?[]:T,R=(function(e){(0,u.default)(R,e);var f,w,T=(f=R,w=H(),function(){var e,t=(0,s.default)(f);if(w){var n=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function R(e){var n;if((0,r.default)(this,R),(n=T.call(this,e)).updateEnqueued=null,n.onGestureHandlerEvent=function(e){e.nativeEvent.handlerTag===n.handlerTag?null==n.props.onGestureEvent||n.props.onGestureEvent(e):null==n.props.onGestureHandlerEvent||n.props.onGestureHandlerEvent(e)},n.onGestureHandlerStateChange=function(e){if(e.nativeEvent.handlerTag===n.handlerTag){null==n.props.onHandlerStateChange||n.props.onHandlerStateChange(e);var t=e.nativeEvent.state,r=j[t],o=r&&n.props[r];o&&'function'==typeof o&&o(e)}else null==n.props.onGestureHandlerStateChange||n.props.onGestureHandlerStateChange(e)},n.refHandler=function(e){n.viewNode=e;var t=p.Children.only(n.props.children),r=t.ref;null!==r&&('function'==typeof r?r(e):r.current=e)},n.createGestureHandler=function(e){n.config=e,y.default.createGestureHandler(t,n.handlerTag,e)},n.attachGestureHandler=function(e){n.viewTag=e,'web'===h.Platform.OS?y.default.attachGestureHandler(n.handlerTag,e,n.propsRef):y.default.attachGestureHandler(n.handlerTag,e)},n.updateGestureHandler=function(e){n.config=e,y.default.updateGestureHandler(n.handlerTag,e)},n.handlerTag=O++,n.config={},n.propsRef=p.createRef(),e.id){if(void 0!==P[e.id])throw new Error("Handler with ID \""+e.id+"\" already registered");P[e.id]=n.handlerTag}return n}return(0,o.default)(R,[{key:"componentDidMount",value:function(){var e=this,t=this.props;_(t)&&(this.updateEnqueued=setImmediate(function(){e.updateEnqueued=null,e.update()})),this.createGestureHandler(A(C?C(this.props):this.props,[].concat((0,n.default)(E),(0,n.default)(N)),S)),this.attachGestureHandler(G(this.viewNode))}},{key:"componentDidUpdate",value:function(){var e=G(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update()}},{key:"componentWillUnmount",value:function(){y.default.dropGestureHandler(this.handlerTag),this.updateEnqueued&&clearImmediate(this.updateEnqueued);var e=this.props.id;e&&delete P[e]}},{key:"update",value:function(){var e=A(C?C(this.props):this.props,[].concat((0,n.default)(E),(0,n.default)(N)),S);(0,v.default)(this.config,e)||this.updateGestureHandler(e)}},{key:"setNativeProps",value:function(e){var t=(0,c.default)({},this.props,e),r=A(C?C(t):t,[].concat((0,n.default)(E),(0,n.default)(N)),S);this.updateGestureHandler(r)}},{key:"render",value:function(){var e=this.onGestureHandlerEvent,t=this.props,n=t.onGestureEvent,r=t.onGestureHandlerEvent;if(n&&'function'!=typeof n){if(r)throw new Error('Nesting touch handlers with native animated driver is not supported yet');e=n}else if(r&&'function'!=typeof r)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var o=this.onGestureHandlerStateChange,u=this.props,l=u.onHandlerStateChange,s=u.onGestureHandlerStateChange;if(l&&'function'!=typeof l){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=l}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');var f={onGestureHandlerEvent:e,onGestureHandlerStateChange:o};this.propsRef.current=f;var v=p.Children.only(this.props.children),y=v.props.children;return h.Touchable.TOUCH_TARGET_DEBUG&&v.type&&('RNGestureHandlerButton'===v.type||'View'===v.type.name||'View'===v.type.displayName)&&(y=p.Children.toArray(y)).push(h.Touchable.renderDebugView({color:'mediumspringgreen',hitSlop:v.props.hitSlop})),p.cloneElement(v,(0,c.default)({ref:this.refHandler,collapsable:!1},f),y)}}]),R})(p.Component);return R.displayName=t,R};var e,t,n=_r(d[0])(_r(d[1])),r=_r(d[0])(_r(d[2])),o=_r(d[0])(_r(d[3])),u=_r(d[0])(_r(d[4])),l=_r(d[0])(_r(d[5])),s=_r(d[0])(_r(d[6])),f=_r(d[0])(_r(d[7])),c=_r(d[0])(_r(d[8])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=o?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(r,u,l):r[u]=e[u]}r.default=e,n&&n.set(e,r);return r})(_r(d[9])),h=_r(d[10]),v=_r(d[0])(_r(d[11])),y=_r(d[0])(_r(d[12]));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function H(){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(e){return!1}}function G(e){return'web'===h.Platform.OS?e:(0,h.findNodeHandle)(e)}var w=h.NativeModules.UIManager,S=void 0===w?{}:w,C={onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}};S.genericDirectEventTypes=(0,c.default)({},S.genericDirectEventTypes,C);var T=null!=(e=null==S.getViewManagerConfig?void 0:S.getViewManagerConfig('getConstants'))?e:null==S.getConstants?void 0:S.getConstants();T&&(T.genericDirectEventTypes=(0,c.default)({},T.genericDirectEventTypes,C));var N=S.setJSResponder,R=void 0===N?function(){}:N,b=S.clearJSResponder,D=void 0===b?function(){}:b;S.setJSResponder=function(e,t){y.default.handleSetJSResponder(e,t),R(e,t)},S.clearJSResponder=function(){y.default.handleClearJSResponder(),D()};var O=1,P={};function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.default)({},n);return t.forEach(function(t){var n,o,u=e[t];if(o=t,!(void 0===(n=u)||n===Object(n)&&'__isNative'in n||'onHandlerStateChange'===o||'onGestureEvent'===o)){var l=e[t];'simultaneousHandlers'===t||'waitFor'===t?l=M(e[t]):'hitSlop'===t&&'object'!=typeof l&&(l={top:l,left:l,bottom:l,right:l}),r[t]=l}}),r}function M(e){return Array.isArray(e)||(e=[e]),'web'===h.Platform.OS?e.map(function(e){return e.current}).filter(function(e){return e}):e.map(function(e){var t;return P[e]||(null==(t=e.current)?void 0:t.handlerTag)||-1}).filter(function(e){return e>0})}function _(e){var t=function(e){return Array.isArray(e)?e.some(function(e){return e&&null===e.current}):e&&null===e.current};return t(e.simultaneousHandlers)||t(e.waitFor)}var j=(t={},(0,f.default)(t,_r(d[13]).State.UNDETERMINED,void 0),(0,f.default)(t,_r(d[13]).State.BEGAN,'onBegan'),(0,f.default)(t,_r(d[13]).State.FAILED,'onFailed'),(0,f.default)(t,_r(d[13]).State.CANCELLED,'onCancelled'),(0,f.default)(t,_r(d[13]).State.ACTIVE,'onActivated'),(0,f.default)(t,_r(d[13]).State.END,'onEnded'),t)},401,[3,42,7,8,9,11,14,248,4,15,18,402,403,404]); +__d(function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p=23}},411,[3,4,5,7,8,9,11,14,18,15,412]); +__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.TOUCHABLE_STATE=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=c(t);if(s&&s.has(e))return s.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=n?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=e[l]}o.default=e,s&&s.set(e,o);return o})(r(d[7])),p=r(d[8]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(c=function(e){return e?s:t})(e)}function h(){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(e){return!1}}var T={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};_e.TOUCHABLE_STATE=T;var f=(function(c){(0,o.default)(y,c);var f,E,v=(f=y,E=h(),function(){var e,t=(0,l.default)(f);if(E){var s=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function y(){var e;(0,t.default)(this,y);for(var s=arguments.length,o=new Array(s),n=0;n0:O,A=t.overshootRight,b=void 0===A?R>0:A,W=u.Animated.add(p,l.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-R-(b?1:s),-R,h,h+(y?1:s)],outputRange:[-R-(b||s>1?1:0),-R,h,h+(y||s>1?1:0)]});o.transX=W,o.showLeftAction=h>0?W.interpolate({inputRange:[-1,0,h],outputRange:[0,0,1]}):new u.Animated.Value(0),o.leftActionTranslate=o.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),o.showRightAction=R>0?W.interpolate({inputRange:[-R,0,1],outputRange:[1,0,0]}):new u.Animated.Value(0),o.rightActionTranslate=o.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})},o.onTapHandlerStateChange=function(t){t.nativeEvent.oldState===r(d[9]).State.ACTIVE&&o.close()},o.onHandlerStateChange=function(t){t.nativeEvent.oldState===r(d[9]).State.ACTIVE&&o.handleRelease(t)},o.handleRelease=function(t){var e=t.nativeEvent,n=e.velocityX,s=e.translationX,l=o.state,p=l.leftWidth,u=void 0===p?0:p,f=l.rowWidth,h=void 0===f?0:f,v=l.rowState,w=o.state.rightOffset,S=h-(void 0===w?h:w),R=o.props,O=R.friction,y=R.leftThreshold,A=void 0===y?u/2:y,b=R.rightThreshold,W=void 0===b?S/2:b,E=o.currentOffset()+s/O,L=(s+c*n)/O,T=0;0===v?L>A?T=u:L<-W&&(T=-S):1===v?L>-A&&(T=u):L0&&o.props.onSwipeableLeftOpen?o.props.onSwipeableLeftOpen():n<0&&o.props.onSwipeableRightOpen&&o.props.onSwipeableRightOpen(),0===n?null==o.props.onSwipeableClose||o.props.onSwipeableClose():null==o.props.onSwipeableOpen||o.props.onSwipeableOpen())}),n>0&&o.props.onSwipeableLeftWillOpen?o.props.onSwipeableLeftWillOpen():n<0&&o.props.onSwipeableRightWillOpen&&o.props.onSwipeableRightWillOpen(),0===n?null==o.props.onSwipeableWillClose||o.props.onSwipeableWillClose():null==o.props.onSwipeableWillOpen||o.props.onSwipeableWillOpen()},o.onRowLayout=function(t){var e=t.nativeEvent;o.setState({rowWidth:e.layout.width})},o.currentOffset=function(){var t=o.state,e=t.leftWidth,n=void 0===e?0:e,s=t.rowWidth,l=void 0===s?0:s,p=t.rowState,u=o.state.rightOffset;return 1===p?n:-1===p?-(l-(void 0===u?l:u)):0},o.close=function(){o.animateRow(o.currentOffset(),0)},o.openLeft=function(){var t=o.state.leftWidth,e=void 0===t?0:t;o.animateRow(o.currentOffset(),e)},o.openRight=function(){var t=o.state.rowWidth,e=void 0===t?0:t,n=o.state.rightOffset,s=e-(void 0===n?e:n);o.animateRow(o.currentOffset(),-s)};var s=new u.Animated.Value(0);return o.state={dragX:s,rowTranslation:new u.Animated.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},o.updateAnimatedEvent(n,o.state),o.onGestureEvent=u.Animated.event([{nativeEvent:{translationX:s}}],{useNativeDriver:n.useNativeAnimations}),o}return(0,n.default)(O,[{key:"UNSAFE_componentWillUpdate",value:function(t,e){this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e)}},{key:"render",value:function(){var e=this,n=this.state.rowState,o=this.props,s=o.children,l=o.renderLeftActions,f=o.renderRightActions,h=l&&p.createElement(u.Animated.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},l(this.showLeftAction,this.transX),p.createElement(u.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({leftWidth:n.layout.x})}})),c=f&&p.createElement(u.Animated.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},f(this.showRightAction,this.transX),p.createElement(u.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({rightOffset:n.layout.x})}}));return p.createElement(r(d[10]).PanGestureHandler,(0,t.default)({activeOffsetX:[-10,10]},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),p.createElement(u.Animated.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle]},h,c,p.createElement(r(d[10]).TapGestureHandler,{enabled:0!==n,onHandlerStateChange:this.onTapHandlerStateChange},p.createElement(u.Animated.View,{pointerEvents:0===n?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},s))))}}]),O})(p.Component);_e.default=v,v.defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};var w=u.StyleSheet.create({container:{overflow:'hidden'},leftActions:(0,t.default)({},u.StyleSheet.absoluteFillObject,{flexDirection:u.I18nManager.isRTL?'row-reverse':'row'}),rightActions:(0,t.default)({},u.StyleSheet.absoluteFillObject,{flexDirection:u.I18nManager.isRTL?'row':'row-reverse'})})},421,[3,4,7,8,9,11,14,15,18,404,405]); +__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=l?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(o,s,u):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o})(r(d[7])),p=r(d[0])(r(d[8])),c=r(d[9]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function w(){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(e){return!1}}var h=.05,v='Idle',y='Dragging',S='Settling',b=(function(e){(0,o.default)(D,e);var f,b,A=(f=D,b=w(),function(){var e,t=(0,s.default)(f);if(b){var n=(0,s.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function D(e){var n;(0,t.default)(this,D),(n=A.call(this,e)).accessibilityIsModalView=u.createRef(),n.pointerEventsView=u.createRef(),n.panGestureHandler=u.createRef(),n.drawerShown=!1,n.updateAnimatedEvent=function(e,t){var o=e.drawerPosition,l=e.drawerWidth,s=e.drawerType,u=t.dragX,p=t.touchX,f=t.drawerTranslation,w=t.containerWidth,h=u,v=p;'left'!==o?(h=c.Animated.multiply(new c.Animated.Value(-1),u),v=c.Animated.add(new c.Animated.Value(w),c.Animated.multiply(new c.Animated.Value(-1),p)),p.setValue(w)):p.setValue(0);var y=h;if('front'===s){var S=c.Animated.add(v,c.Animated.multiply(new c.Animated.Value(-1),h)).interpolate({inputRange:[l-1,l,l+1],outputRange:[0,0,1]});y=c.Animated.add(h,S)}n.openValue=c.Animated.add(y,f).interpolate({inputRange:[0,l],outputRange:[0,1],extrapolate:'clamp'});var b={useNativeDriver:e.useNativeAnimations};n.props.onDrawerSlide&&(b.listener=function(e){var t=Math.floor(Math.abs(e.nativeEvent.translationX))/n.state.containerWidth;null==n.props.onDrawerSlide||n.props.onDrawerSlide(t)}),n.onGestureEvent=c.Animated.event([{nativeEvent:{translationX:u,x:p}}],b)},n.handleContainerLayout=function(e){var t=e.nativeEvent;n.setState({containerWidth:t.layout.width})},n.emitStateChanged=function(e,t){null==n.props.onDrawerStateChanged||n.props.onDrawerStateChanged(e,t)},n.openingHandlerStateChange=function(e){var t=e.nativeEvent;t.oldState===r(d[10]).State.ACTIVE?n.handleRelease({nativeEvent:t}):t.state===r(d[10]).State.ACTIVE&&(n.emitStateChanged(y,!1),'on-drag'===n.props.keyboardDismissMode&&c.Keyboard.dismiss(),n.props.hideStatusBar&&c.StatusBar.setHidden(!0,n.props.statusBarAnimation||'slide'))},n.onTapHandlerStateChange=function(e){var t=e.nativeEvent;n.drawerShown&&t.oldState===r(d[10]).State.ACTIVE&&'locked-open'!==n.props.drawerLockMode&&n.closeDrawer()},n.handleRelease=function(e){var t=e.nativeEvent,o=n.props,l=o.drawerWidth,s=o.drawerPosition,u=o.drawerType,p=n.state.containerWidth,c=t.translationX,f=t.velocityX,w=t.x;'left'!==s&&(c=-c,w=p-w,f=-f);var v=w-c,y=0;'front'===u&&(y=v>l?v-l:0);var S=c+y+(n.drawerShown?l:0);S+h*f>l/2?n.animateDrawer(S,l,f):n.animateDrawer(S,0,f)},n.updateShowing=function(e){var t,o,l;n.drawerShown=e,null==(t=n.accessibilityIsModalView.current)||t.setNativeProps({accessibilityViewIsModal:e}),null==(o=n.pointerEventsView.current)||o.setNativeProps({pointerEvents:e?'auto':'none'});var s=n.props,u=s.drawerPosition,p=s.minSwipeDistance,c=s.edgeWidth,f='left'===u,w=(f?1:-1)*(n.drawerShown?-1:1),h=f?{left:0,width:e?void 0:c}:{right:0,width:e?void 0:c};null==(l=n.panGestureHandler.current)||l.setNativeProps({hitSlop:h,activeOffsetX:w*p})},n.animateDrawer=function(e,t,o,l){if(n.state.dragX.setValue(0),n.state.touchX.setValue('left'===n.props.drawerPosition?0:n.state.containerWidth),null!=e){var s=e;n.props.useNativeAnimations&&(e0?s=Math.min(e+o/60,t):e>t&&o<0&&(s=Math.max(e+o/60,t))),n.state.drawerTranslation.setValue(s)}var u=0!==t;n.updateShowing(u),n.emitStateChanged(S,u),n.props.hideStatusBar&&c.StatusBar.setHidden(u,n.props.statusBarAnimation||'slide'),c.Animated.spring(n.state.drawerTranslation,{velocity:o,bounciness:0,toValue:t,useNativeDriver:n.props.useNativeAnimations,speed:null!=l?l:void 0}).start(function(e){e.finished&&(n.emitStateChanged(v,u),u?null==n.props.onDrawerOpen||n.props.onDrawerOpen():null==n.props.onDrawerClose||n.props.onDrawerClose())})},n.openDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,n.props.drawerWidth,e.velocity?e.velocity:0),n.forceUpdate()},n.closeDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.animateDrawer(void 0,0,e.velocity?e.velocity:0),n.forceUpdate()},n.renderOverlay=function(){(0,p.default)(n.openValue,'should be set');var e={opacity:n.openValue.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),backgroundColor:n.props.overlayColor};return u.createElement(r(d[11]).TapGestureHandler,{onHandlerStateChange:n.onTapHandlerStateChange},u.createElement(c.Animated.View,{pointerEvents:n.drawerShown?'auto':'none',ref:n.pointerEventsView,style:[V.overlay,e]}))},n.renderDrawer=function(){var e,t=n.props,o=t.drawerBackgroundColor,l=t.drawerWidth,s=t.drawerPosition,f=t.drawerType,w=t.drawerContainerStyle,h=t.contentContainerStyle,v='left'===s,y='back'!==f,S='front'!==f,b=c.I18nManager.isRTL?v:!v,A={backgroundColor:o,width:l},D=n.openValue;((0,p.default)(D,'should be set'),S)&&(e={transform:[{translateX:D.interpolate({inputRange:[0,1],outputRange:v?[0,l]:[0,-l],extrapolate:'clamp'})}]});var E=0;if(y){var C=v?-l:l;E=D.interpolate({inputRange:[0,1],outputRange:[C,0],extrapolate:'clamp'})}var R={transform:[{translateX:E}],flexDirection:b?'row-reverse':'row'};return u.createElement(c.Animated.View,{style:V.main,onLayout:n.handleContainerLayout},u.createElement(c.Animated.View,{style:['front'===f?V.containerOnBack:V.containerInFront,e,h],importantForAccessibility:n.drawerShown?'no-hide-descendants':'yes'},'function'==typeof n.props.children?n.props.children(n.openValue):n.props.children,n.renderOverlay()),u.createElement(c.Animated.View,{pointerEvents:"box-none",ref:n.accessibilityIsModalView,accessibilityViewIsModal:n.drawerShown,style:[V.drawerContainer,R,w]},u.createElement(c.View,{style:A},n.props.renderNavigationView(n.openValue))))},n.setPanGestureRef=function(e){n.panGestureHandler.current=e,null==n.props.onGestureRef||n.props.onGestureRef(e)};var o=new c.Animated.Value(0),l=new c.Animated.Value(0),s=new c.Animated.Value(0);return n.state={dragX:o,touchX:l,drawerTranslation:s,containerWidth:0},n.updateAnimatedEvent(e,n.state),n}return(0,n.default)(D,[{key:"UNSAFE_componentWillUpdate",value:function(e,t){this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t)}},{key:"render",value:function(){var e=this.props,t=e.drawerPosition,n=e.drawerLockMode,o=e.edgeWidth,l=e.minSwipeDistance,s='left'===t,p=(s?1:-1)*(this.drawerShown?-1:1),c=s?{left:0,width:this.drawerShown?void 0:o}:{right:0,width:this.drawerShown?void 0:o};return u.createElement(r(d[11]).PanGestureHandler,{ref:this.setPanGestureRef,hitSlop:c,activeOffsetX:p*l,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==n&&'locked-open'!==n},this.renderDrawer())}}]),D})(u.Component);_e.default=b,b.defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1},b.positions={Left:'left',Right:'right'};var V=c.StyleSheet.create({drawerContainer:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1001,flexDirection:'row'}),containerInFront:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1002}),containerOnBack:(0,e.default)({},c.StyleSheet.absoluteFillObject),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:(0,e.default)({},c.StyleSheet.absoluteFillObject,{zIndex:1e3})})},422,[3,4,7,8,9,11,14,15,26,18,404,405]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),'undefined'==typeof Intl&&('undefined'!=typeof window?Object.defineProperty(window,'Intl',{value:{}}):void 0!==g&&Object.defineProperty(g,'Intl',{value:{}})),r(d[0]).shouldPolyfill()&&Object.defineProperty(Intl,'getCanonicalLocales',{value:r(d[1]).getCanonicalLocales,writable:!0,enumerable:!1,configurable:!0})},423,[424,425]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=function(){return'undefined'==typeof Intl||!('getCanonicalLocales'in Intl)||'x-private'===Intl.getCanonicalLocales('und-x-private')[0]}},424,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(void 0===n)return[];var t=[];'string'==typeof n&&(n=[n]);for(var o=0,c=n;o=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},o=function(t,e){return function(r,n){e(r,n,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=function(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(t){try{f(n.next(t))}catch(t){a(t)}}function c(t){try{f(n.throw(t))}catch(t){a(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(i,c)}f((n=n.apply(t,e||[])).next())})},c=function(t,e){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return f([t,e])}}function f(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},s=function(){for(var t=[],e=0;e1||c(t,e)})})}function c(t,e){try{(r=o[t](e)).value instanceof b?Promise.resolve(r.value.v).then(f,u):l(a[0][2],r)}catch(t){l(a[0][3],t)}var r}function f(t){c("next",t)}function u(t){c("throw",t)}function l(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},h=function(t){var e,r;return e={},n("next"),n("throw",function(t){throw t}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:o?o(e):e}:o}},_=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof u?u(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,a){o(n,a,(e=t[r](e)).done,e.value)})}}function o(t,e,r,n){Promise.resolve(n).then(function(e){t({value:e,done:r})},e)}},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var E=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&P(e,t,r);return E(e,t),e},m=function(t){return t&&t.__esModule?t:{default:t}},O=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},j=function(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r},g=function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},S("__extends",t),S("__assign",e),S("__rest",r),S("__decorate",n),S("__param",o),S("__metadata",a),S("__awaiter",i),S("__generator",c),S("__exportStar",f),S("__createBinding",P),S("__values",u),S("__read",l),S("__spread",s),S("__spreadArrays",y),S("__spreadArray",p),S("__await",b),S("__asyncGenerator",d),S("__asyncDelegator",h),S("__asyncValues",_),S("__makeTemplateObject",v),S("__importStar",w),S("__importDefault",m),S("__classPrivateFieldGet",O),S("__classPrivateFieldSet",j),S("__classPrivateFieldIn",g)})},427,[]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i){for(var t={},s=[],o=0,c=i;on[0]?1:0}function t(i,n){return i.typen.type?1:0}function s(i,n){for(var t=r(d[0]).__spreadArray([],i),s=0,o=n;s-1&&(U=b)}}U&&(n.region=U),n.region=n.region.toUpperCase()}if(n.script&&(n.script=n.script[0].toUpperCase()+n.script.slice(1).toLowerCase(),r(d[1]).scriptAlias[n.script]&&(n.script=r(d[1]).scriptAlias[n.script])),n.variants.length){for(var h=0;h-1&&v.push('caseFirst'),s.indexOf('kn')>-1&&v.push('numeric'),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if('string'!=typeof n&&'object'!=typeof n)throw new TypeError('tag must be a string or object');n='object'==typeof n&&(u=e.default(n))&&u.initializedLocale?u.locale:n.toString(),u=e.default(this);var f=_r(d[2]).CoerceOptionsToObject(l);n=r(n,f);var p=Object.create(null),b=_r(d[2]).GetOption(f,'calendar','string',void 0,void 0);if(void 0!==b&&!t.test(b))throw new RangeError('invalid calendar');p.ca=b;var y=_r(d[2]).GetOption(f,'collation','string',void 0,void 0);if(void 0!==y&&!t.test(y))throw new RangeError('invalid collation');p.co=y;var h=_r(d[2]).GetOption(f,'hourCycle','string',['h11','h12','h23','h24'],void 0);p.hc=h;var L=_r(d[2]).GetOption(f,'caseFirst','string',['upper','lower','false'],void 0);p.kf=L;var I,_=_r(d[2]).GetOption(f,'numeric','boolean',void 0,void 0);void 0!==_&&(I=String(_)),p.kn=I;var U=_r(d[2]).GetOption(f,'numberingSystem','string',void 0,void 0);if(void 0!==U&&!t.test(U))throw new RangeError('Invalid numberingSystem');p.nu=U;var O=o(n,p,s);u.locale=O.locale,u.calendar=O.ca,u.collation=O.co,u.hourCycle=O.hc,s.indexOf('kf')>-1&&(u.caseFirst=O.kf),s.indexOf('kn')>-1&&(u.numeric=_r(d[2]).SameValue(O.kn,'true')),u.numberingSystem=O.nu}return c.prototype.maximize=function(){var n=e.default(this).locale;try{return new c(l(n))}catch(e){return new c(n)}},c.prototype.minimize=function(){var n=e.default(this).locale;try{return new c(u(n))}catch(e){return new c(n)}},c.prototype.toString=function(){return e.default(this).locale},Object.defineProperty(c.prototype,"baseName",{get:function(){var n=e.default(this).locale;return _r(d[3]).emitUnicodeLanguageId(_r(d[3]).parseUnicodeLanguageId(n))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"calendar",{get:function(){return e.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"collation",{get:function(){return e.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hourCycle",{get:function(){return e.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"caseFirst",{get:function(){return e.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"numeric",{get:function(){return e.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"numberingSystem",{get:function(){return e.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"language",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).lang},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"script",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).script},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"region",{get:function(){var n=e.default(this).locale;return _r(d[3]).parseUnicodeLanguageId(n).region},enumerable:!1,configurable:!0}),c.relevantExtensionKeys=n,c})();_e.Locale=s;try{'undefined'!=typeof Symbol&&Object.defineProperty(s.prototype,Symbol.toStringTag,{value:'Intl.Locale',writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype.constructor,'length',{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}_e.default=s},435,[427,436,437,425]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=new WeakMap;e.default=function(n){var u=t.get(n);return u||(u=Object.create(null),t.set(n,u)),u}},436,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invariant=e.isMissingLocaleDataError=e.defineProperty=e.getMagnitude=e.setMultiInternalSlots=e.setInternalSlot=e.isLiteralPart=e.getMultiInternalSlots=e.getInternalSlot=e._formatToParts=void 0,r(d[0]).__exportStar(r(d[1]),e),r(d[0]).__exportStar(r(d[2]),e),r(d[0]).__exportStar(r(d[3]),e),r(d[0]).__exportStar(r(d[4]),e),r(d[0]).__exportStar(r(d[5]),e),r(d[0]).__exportStar(r(d[6]),e),r(d[0]).__exportStar(r(d[7]),e),r(d[0]).__exportStar(r(d[8]),e),r(d[0]).__exportStar(r(d[9]),e),r(d[0]).__exportStar(r(d[10]),e),r(d[0]).__exportStar(r(d[11]),e),r(d[0]).__exportStar(r(d[12]),e),r(d[0]).__exportStar(r(d[13]),e),r(d[0]).__exportStar(r(d[14]),e),r(d[0]).__exportStar(r(d[15]),e),r(d[0]).__exportStar(r(d[16]),e),r(d[0]).__exportStar(r(d[17]),e),r(d[0]).__exportStar(r(d[18]),e),r(d[0]).__exportStar(r(d[19]),e),r(d[0]).__exportStar(r(d[20]),e),r(d[0]).__exportStar(r(d[21]),e),Object.defineProperty(e,"_formatToParts",{enumerable:!0,get:function(){return r(d[0]).__importDefault(r(d[22])).default}}),r(d[0]).__exportStar(r(d[23]),e),r(d[0]).__exportStar(r(d[24]),e),Object.defineProperty(e,"getInternalSlot",{enumerable:!0,get:function(){return r(d[25]).getInternalSlot}}),Object.defineProperty(e,"getMultiInternalSlots",{enumerable:!0,get:function(){return r(d[25]).getMultiInternalSlots}}),Object.defineProperty(e,"isLiteralPart",{enumerable:!0,get:function(){return r(d[25]).isLiteralPart}}),Object.defineProperty(e,"setInternalSlot",{enumerable:!0,get:function(){return r(d[25]).setInternalSlot}}),Object.defineProperty(e,"setMultiInternalSlots",{enumerable:!0,get:function(){return r(d[25]).setMultiInternalSlots}}),Object.defineProperty(e,"getMagnitude",{enumerable:!0,get:function(){return r(d[25]).getMagnitude}}),Object.defineProperty(e,"defineProperty",{enumerable:!0,get:function(){return r(d[25]).defineProperty}}),Object.defineProperty(e,"isMissingLocaleDataError",{enumerable:!0,get:function(){return r(d[26]).isMissingLocaleDataError}}),r(d[0]).__exportStar(r(d[27]),e),r(d[0]).__exportStar(r(d[28]),e),r(d[0]).__exportStar(r(d[29]),e),r(d[0]).__exportStar(r(d[30]),e),r(d[0]).__exportStar(r(d[31]),e),r(d[0]).__exportStar(r(d[32]),e),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return r(d[25]).invariant}}),r(d[0]).__exportStar(r(d[33]),e)},437,[427,438,439,440,442,444,445,446,447,448,449,450,452,456,457,453,462,458,472,471,455,454,459,473,474,451,475,476,477,478,479,480,481,441]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanonicalizeLocaleList=void 0,e.CanonicalizeLocaleList=function(n){return Intl.getCanonicalLocales(n)}},438,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanonicalizeTimeZoneName=void 0,e.CanonicalizeTimeZoneName=function(n,t){var c=t.tzData,o=t.uppercaseLinks,u=n.toUpperCase(),s=Object.keys(c).reduce(function(n,t){return n[t.toUpperCase()]=t,n},{}),p=o[u]||s[u];return'Etc/UTC'===p||'Etc/GMT'===p?'UTC':p}},439,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoerceOptionsToObject=void 0,e.CoerceOptionsToObject=function(t){return void 0===t?Object.create(null):r(d[0]).ToObject(t)}},440,[441]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(void 0===n)return NaN;if(null===n)return 0;if('boolean'==typeof n)return n?1:0;if('number'==typeof n)return n;if('symbol'==typeof n||'bigint'==typeof n)throw new TypeError('Cannot convert symbol/bigint to number');return Number(n)}function t(t){var u=n(t);if(isNaN(u)||o(u,-0))return 0;if(isFinite(u))return u;var f=Math.floor(Math.abs(u));return u<0&&(f=-f),o(f,-0)?0:f}function o(n,t){return Object.is?Object.is(n,t):n===t?0!==n||1/n==1/t:n!=n&&t!=t}Object.defineProperty(e,"__esModule",{value:!0}),e.msFromTime=e.OrdinaryHasInstance=e.SecFromTime=e.MinFromTime=e.HourFromTime=e.DateFromTime=e.MonthFromTime=e.InLeapYear=e.DayWithinYear=e.DaysInYear=e.YearFromTime=e.TimeFromYear=e.DayFromYear=e.WeekDay=e.Day=e.Type=e.HasOwnProperty=e.ArrayCreate=e.SameValue=e.ToObject=e.TimeClip=e.ToNumber=e.ToString=void 0,e.ToString=function(n){if('symbol'==typeof n)throw TypeError('Cannot convert a Symbol value to a string');return String(n)},e.ToNumber=n,e.TimeClip=function(n){return isFinite(n)?Math.abs(n)>8640000000000001?NaN:t(n):NaN},e.ToObject=function(n){if(null==n)throw new TypeError('undefined/null cannot be converted to object');return Object(n)},e.SameValue=o,e.ArrayCreate=function(n){return new Array(n)},e.HasOwnProperty=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.Type=function(n){return null===n?'Null':void 0===n?'Undefined':'function'==typeof n||'object'==typeof n?'Object':'number'==typeof n?'Number':'boolean'==typeof n?'Boolean':'string'==typeof n?'String':'symbol'==typeof n?'Symbol':'bigint'==typeof n?'BigInt':void 0};var u=864e5;function f(n,t){return n-Math.floor(n/t)*t}function c(n){return Math.floor(n/u)}function y(n){return Date.UTC(n,0)/u}function l(n){return new Date(n).getUTCFullYear()}function p(n){return n%4!=0?365:n%100!=0?366:n%400!=0?365:366}function b(n){return c(n)-y(l(n))}function T(n){return 365===p(l(n))?0:1}function s(n){var t=b(n),o=T(n);if(t>=0&&t<31)return 0;if(t<59+o)return 1;if(t<90+o)return 2;if(t<120+o)return 3;if(t<151+o)return 4;if(t<181+o)return 5;if(t<212+o)return 6;if(t<243+o)return 7;if(t<273+o)return 8;if(t<304+o)return 9;if(t<334+o)return 10;if(t<365+o)return 11;throw new Error('Invalid time')}e.Day=c,e.WeekDay=function(n){return f(c(n)+4,7)},e.DayFromYear=y,e.TimeFromYear=function(n){return Date.UTC(n,0)},e.YearFromTime=l,e.DaysInYear=p,e.DayWithinYear=b,e.InLeapYear=T,e.MonthFromTime=s,e.DateFromTime=function(n){var t=b(n),o=s(n),u=T(n);if(0===o)return t+1;if(1===o)return t-30;if(2===o)return t-58-u;if(3===o)return t-89-u;if(4===o)return t-119-u;if(5===o)return t-150-u;if(6===o)return t-180-u;if(7===o)return t-211-u;if(8===o)return t-242-u;if(9===o)return t-272-u;if(10===o)return t-303-u;if(11===o)return t-333-u;throw new Error('Invalid time')};var v=24,F=60,h=60,w=1e3,O=6e4,D=36e5;e.HourFromTime=function(n){return f(Math.floor(n/D),v)},e.MinFromTime=function(n){return f(Math.floor(n/O),F)},e.SecFromTime=function(n){return f(Math.floor(n/w),h)},e.OrdinaryHasInstance=function(n,t,o){if('function'!=typeof n)return!1;if(null===o||void 0===o?void 0:o.boundTargetFunction)return t instanceof(null===o||void 0===o?void 0:o.boundTargetFunction);if('object'!=typeof t)return!1;var u=n.prototype;if('object'!=typeof u)throw new TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.');return Object.prototype.isPrototypeOf.call(u,t)},e.msFromTime=function(n){return f(n,w)}},441,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetNumberOption=void 0,e.GetNumberOption=function(t,u,n,o,b){var c=t[u];return r(d[0]).DefaultNumberOption(c,n,o,b)}},442,[443]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultNumberOption=void 0,e.DefaultNumberOption=function(t,o,u,n){if(void 0!==t){if(t=Number(t),isNaN(t)||tu)throw new RangeError(t+" is outside of range ["+o+", "+u+"]");return Math.floor(t)}return n}},443,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetOption=void 0,e.GetOption=function(t,n,o,f,u){if('object'!=typeof t)throw new TypeError('Options must be an object');var l=t[n];if(void 0!==l){if('boolean'!==o&&'string'!==o)throw new TypeError('invalid type');if('boolean'===o&&(l=Boolean(l)),'string'===o&&(l=r(d[0]).ToString(l)),void 0!==f&&!f.filter(function(t){return t==l}).length)throw new RangeError(l+" is not within "+f.join(', '));return l}return u}},444,[441]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetOptionsObject=void 0,e.GetOptionsObject=function(t){if(void 0===t)return Object.create(null);if('object'==typeof t)return t;throw new TypeError('Options must be an object')}},445,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t.slice(t.indexOf('-')+1)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsSanctionedSimpleUnitIdentifier=e.SIMPLE_UNITS=e.removeUnitNamespace=e.SANCTIONED_UNITS=void 0,e.SANCTIONED_UNITS=['angle-degree','area-acre','area-hectare','concentr-percent','digital-bit','digital-byte','digital-gigabit','digital-gigabyte','digital-kilobit','digital-kilobyte','digital-megabit','digital-megabyte','digital-petabyte','digital-terabit','digital-terabyte','duration-day','duration-hour','duration-millisecond','duration-minute','duration-month','duration-second','duration-week','duration-year','length-centimeter','length-foot','length-inch','length-kilometer','length-meter','length-mile-scandinavian','length-mile','length-millimeter','length-yard','mass-gram','mass-kilogram','mass-ounce','mass-pound','mass-stone','temperature-celsius','temperature-fahrenheit','volume-fluid-ounce','volume-gallon','volume-liter','volume-milliliter'],e.removeUnitNamespace=t,e.SIMPLE_UNITS=e.SANCTIONED_UNITS.map(t),e.IsSanctionedSimpleUnitIdentifier=function(t){return e.SIMPLE_UNITS.indexOf(t)>-1}},446,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsValidTimeZoneName=void 0,e.IsValidTimeZoneName=function(t,n){var o=n.tzData,s=n.uppercaseLinks,c=t.toUpperCase(),p=new Set,u=new Set;return Object.keys(o).map(function(t){return t.toUpperCase()}).forEach(function(t){return p.add(t)}),Object.keys(s).forEach(function(t){u.add(t.toUpperCase()),p.add(s[t].toUpperCase())}),p.has(c)||u.has(c)}},447,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsWellFormedCurrencyCode=void 0;var t=/[^A-Z]/;e.IsWellFormedCurrencyCode=function(n){return 3===(n=n.replace(/([a-z])/g,function(t,n){return n.toUpperCase()})).length&&!t.test(n)}},448,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsWellFormedUnitIdentifier=void 0,e.IsWellFormedUnitIdentifier=function(n){if(n=n.replace(/([A-Z])/g,function(n,t){return t.toLowerCase()}),r(d[0]).IsSanctionedSimpleUnitIdentifier(n))return!0;var t=n.split('-per-');if(2!==t.length)return!1;var o=t[0],l=t[1];return!(!r(d[0]).IsSanctionedSimpleUnitIdentifier(o)||!r(d[0]).IsSanctionedSimpleUnitIdentifier(l))}},449,[446]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComputeExponent=void 0,e.ComputeExponent=function(t,n,o){var u=o.getInternalSlots;if(0===n)return[0,0];n<0&&(n=-n);var p=r(d[0]).getMagnitude(n),l=r(d[1]).ComputeExponentForMagnitude(t,p,{getInternalSlots:u});n=l<0?n*Math.pow(10,-l):n/Math.pow(10,l);var M=r(d[2]).FormatNumericToString(u(t),n);return 0===M.roundedNumber?[l,p]:r(d[0]).getMagnitude(M.roundedNumber)===p-l?[l,p]:[r(d[1]).ComputeExponentForMagnitude(t,p+1,{getInternalSlots:u}),p+1]}},450,[451,452,453]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function t(t,n,i,l){t.get(n)||t.set(n,Object.create(null)),t.get(n)[i]=l}function n(t,n){for(var i=[],l=2;lv[v.length-1])return v[v.length-1].length-1;var M=v.indexOf(p);if(-1===M)return 0;var _=v[M];return'0'===y[_].other?0:_.length-y[_].other.match(/0+/)[0].length}}},452,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatNumericToString=void 0,e.FormatNumericToString=function(t,n){var o,u=n<0||r(d[0]).SameValue(n,-0);switch(u&&(n=-n),t.roundingType){case'significantDigits':o=r(d[1]).ToRawPrecision(n,t.minimumSignificantDigits,t.maximumSignificantDigits);break;case'fractionDigits':o=r(d[2]).ToRawFixed(n,t.minimumFractionDigits,t.maximumFractionDigits);break;default:(o=r(d[1]).ToRawPrecision(n,1,2)).integerDigitsCount>1&&(o=r(d[2]).ToRawFixed(n,0,0))}n=o.roundedNumber;var s=o.formattedString,c=o.integerDigitsCount,f=t.minimumIntegerDigits;return c=0&&w.length<=c)l=+M,o=w+r(d[0]).repeat('0',c-w.length),s=e;else{var _=(l=r(d[0]).getMagnitude(e))-c+1,O=Math.round(S(e,_));S(O,c-1)>=10&&(l+=1,O=Math.floor(O/10)),o=O.toString(),s=S(O,c-1-l)}}if(l>=c-1?(o+=r(d[0]).repeat('0',l-c+1),u=l+1):l>=0?(o=o.slice(0,l+1)+"."+o.slice(l+1),u=l+1):(o="0."+r(d[0]).repeat('0',-l-1)+o,u=1),o.indexOf('.')>=0&&n>t){for(var P=n-t;P>0&&'0'===o[o.length-1];)o=o.slice(0,-1),P--;'.'===o[o.length-1]&&(o=o.slice(0,-1))}return{formattedString:o,roundedNumber:s,integerDigitsCount:u};function S(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}},454,[451]); +__d(function(g,r,i,_a2,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToRawFixed=void 0,e.ToRawFixed=function(t,n,a){var l,o,s=a,h=Math.round(t*Math.pow(10,s)),u=h/Math.pow(10,s);if(h<1e21)l=h.toString();else{var c=(l=h.toString()).split('e'),f=c[0],p=c[1];l=f.replace('.',''),l+=r(d[0]).repeat('0',Math.max(+p-l.length+1,0))}if(0!==s){var v=l.length;v<=s&&(l=r(d[0]).repeat('0',s+1-v)+l,v=s+1);var M=l.slice(0,v-s);l=M+"."+l.slice(v-s),o=M.length}else o=l.length;for(var w=a-n;w>0&&'0'===l[l.length-1];)l=l.slice(0,-1),w--;return'.'===l[l.length-1]&&(l=l.slice(0,-1)),{formattedString:l,roundedNumber:u,integerDigitsCount:o}}},455,[451]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CurrencyDigits=void 0,e.CurrencyDigits=function(t,n){var u=n.currencyDigitsData;return r(d[0]).HasOwnProperty(u,t)?u[t]:2}},456,[441]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatNumericToParts=void 0,e.FormatNumericToParts=function(t,u,o){for(var n=r(d[0]).PartitionNumberPattern(t,u,o),c=r(d[1]).ArrayCreate(0),s=0,v=n;s0||isNaN(s)?0:-1;break;case'always':b=r(d[4]).SameValue(s,0)||s>0||isNaN(s)?1:-1;break;default:b=0===s||isNaN(s)?0:s>0?1:-1}return t.default({roundedNumber:s,formattedString:l,exponent:_,magnitude:v,sign:b},c.dataLocaleData,f,c)}},458,[427,459,450,453,441]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=new RegExp("^"+r(d[0]).S_UNICODE_REGEX.source),u=new RegExp(r(d[0]).S_UNICODE_REGEX.source+"$"),t=/[#0](?:[\.,][#0]+)*/g;function s(n,u,t,s,c,i,l){var p=[],y=u.formattedString,o=u.roundedNumber;if(isNaN(o))return[{type:'nan',value:y}];if(!isFinite(o))return[{type:'infinity',value:y}];var v=r(d[1]).digitMapping[c];v&&(y=y.replace(/\d/g,function(n){return v[+n]||n}));var h,f,b=y.indexOf('.');if(b>0?(h=y.slice(0,b),f=y.slice(b+1)):h=y,i&&('compact'!==t||o>=1e4)){var S=n.group,w=[],x=l.split('.')[0].split(','),D=3,N=3;x.length>1&&(D=x[x.length-1].length),x.length>2&&(N=x[x.length-2].length);var k=h.length-D;if(k>0){for(w.push(h.slice(k,k+D)),k-=N;k>0;k-=N)w.push(h.slice(k,k+N));w.push(h.slice(0,k+N))}else w.push(h);for(;w.length>0;){var E=w.pop();p.push({type:'integer',value:E}),w.length>0&&p.push({type:'group',value:S})}}else p.push({type:'integer',value:h});if(void 0!==f&&p.push({type:'decimal',value:n.decimal},{type:'fraction',value:f}),('scientific'===t||'engineering'===t)&&isFinite(o)){p.push({type:'exponentSeparator',value:n.exponential}),s<0&&(p.push({type:'exponentMinusSign',value:n.minusSign}),s=-s);var _=r(d[2]).ToRawFixed(s,0,0);p.push({type:'exponentInteger',value:_.formattedString})}return p}function c(n,u){n.indexOf(';')<0&&(n=n+";-"+n);var t=n.split(';'),s=t[0],c=t[1];switch(u){case 0:return s;case-1:return c;default:return c.indexOf('-')>=0?c.replace(/-/g,'+'):"+"+s}}function i(n,u,t,s,i,p,y){var o,v,h=n.roundedNumber,f=n.sign,b=n.magnitude,S=String(Math.pow(10,b)),w=t.numbers.nu[0];if('currency'===s&&'name'!==p){var x=null===(o=((D=t.numbers.currency)[y]||D[w]).short)||void 0===o?void 0:o[S];if(!x)return null;v=l(u,h,x)}else{var D,N=((D=t.numbers.decimal)[y]||D[w])[i][S];if(!N)return null;v=l(u,h,N)}return'0'===v?null:v=c(v,f).replace(/([^\s;\-\+\d\xa4]+)/g,'{c:$1}').replace(/0+/,'0')}function l(n,u,t){return t[n.select(u)]||t.other}e.default=function(p,y,o,v){var h,f,b=p.sign,S=p.exponent,w=p.magnitude,x=v.notation,D=v.style,N=v.numberingSystem,k=y.numbers.nu[0],E=null;if('compact'===x&&w&&(E=i(p,o,y,D,v.compactDisplay,v.currencyDisplay,N)),'currency'===D&&'name'!==v.currencyDisplay){var _=y.currencies[v.currency];if(_)switch(v.currencyDisplay){case'code':h=v.currency;break;case'symbol':h=_.symbol;break;default:h=_.narrow}else h=v.currency}f=E||('decimal'===D||'unit'===D||'currency'===D&&'name'===v.currencyDisplay?c((y.numbers.decimal[N]||y.numbers.decimal[k]).standard,b):c('currency'===D?(O=y.numbers.currency[N]||y.numbers.currency[k])[v.currencySign]:y.numbers.percent[N]||y.numbers.percent[k],b));var M=t.exec(f)[0];if(f=f.replace(t,'{0}').replace(/'(.)'/g,'$1'),'currency'===D&&'name'!==v.currencyDisplay){var O,I=(O=y.numbers.currency[N]||y.numbers.currency[k]).currencySpacing.afterInsertBetween;I&&!u.test(h)&&(f=f.replace('\xa4{0}',"\xa4"+I+"{0}"));var R=O.currencySpacing.beforeInsertBetween;R&&!n.test(h)&&(f=f.replace('{0}\xa4',"{0}"+R+"\xa4"))}for(var $=f.split(/({c:[^}]+}|\{0\}|[\xa4%\-\+])/g),F=[],G=y.numbers.symbols[N]||y.numbers.symbols[k],U=0,B=$;U\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/},460,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.digitMapping=void 0,e.digitMapping={adlm:["\ud83a\udd50","\ud83a\udd51","\ud83a\udd52","\ud83a\udd53","\ud83a\udd54","\ud83a\udd55","\ud83a\udd56","\ud83a\udd57","\ud83a\udd58","\ud83a\udd59"],ahom:["\ud805\udf30","\ud805\udf31","\ud805\udf32","\ud805\udf33","\ud805\udf34","\ud805\udf35","\ud805\udf36","\ud805\udf37","\ud805\udf38","\ud805\udf39"],arab:["\u0660","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"],arabext:["\u06f0","\u06f1","\u06f2","\u06f3","\u06f4","\u06f5","\u06f6","\u06f7","\u06f8","\u06f9"],bali:["\u1b50","\u1b51","\u1b52","\u1b53","\u1b54","\u1b55","\u1b56","\u1b57","\u1b58","\u1b59"],beng:["\u09e6","\u09e7","\u09e8","\u09e9","\u09ea","\u09eb","\u09ec","\u09ed","\u09ee","\u09ef"],bhks:["\ud807\udc50","\ud807\udc51","\ud807\udc52","\ud807\udc53","\ud807\udc54","\ud807\udc55","\ud807\udc56","\ud807\udc57","\ud807\udc58","\ud807\udc59"],brah:["\ud804\udc66","\ud804\udc67","\ud804\udc68","\ud804\udc69","\ud804\udc6a","\ud804\udc6b","\ud804\udc6c","\ud804\udc6d","\ud804\udc6e","\ud804\udc6f"],cakm:["\ud804\udd36","\ud804\udd37","\ud804\udd38","\ud804\udd39","\ud804\udd3a","\ud804\udd3b","\ud804\udd3c","\ud804\udd3d","\ud804\udd3e","\ud804\udd3f"],cham:["\uaa50","\uaa51","\uaa52","\uaa53","\uaa54","\uaa55","\uaa56","\uaa57","\uaa58","\uaa59"],deva:["\u0966","\u0967","\u0968","\u0969","\u096a","\u096b","\u096c","\u096d","\u096e","\u096f"],diak:["\ud806\udd50","\ud806\udd51","\ud806\udd52","\ud806\udd53","\ud806\udd54","\ud806\udd55","\ud806\udd56","\ud806\udd57","\ud806\udd58","\ud806\udd59"],fullwide:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],gong:["\ud807\udda0","\ud807\udda1","\ud807\udda2","\ud807\udda3","\ud807\udda4","\ud807\udda5","\ud807\udda6","\ud807\udda7","\ud807\udda8","\ud807\udda9"],gonm:["\ud807\udd50","\ud807\udd51","\ud807\udd52","\ud807\udd53","\ud807\udd54","\ud807\udd55","\ud807\udd56","\ud807\udd57","\ud807\udd58","\ud807\udd59"],gujr:["\u0ae6","\u0ae7","\u0ae8","\u0ae9","\u0aea","\u0aeb","\u0aec","\u0aed","\u0aee","\u0aef"],guru:["\u0a66","\u0a67","\u0a68","\u0a69","\u0a6a","\u0a6b","\u0a6c","\u0a6d","\u0a6e","\u0a6f"],hanidec:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"],hmng:["\ud81a\udf50","\ud81a\udf51","\ud81a\udf52","\ud81a\udf53","\ud81a\udf54","\ud81a\udf55","\ud81a\udf56","\ud81a\udf57","\ud81a\udf58","\ud81a\udf59"],hmnp:["\ud838\udd40","\ud838\udd41","\ud838\udd42","\ud838\udd43","\ud838\udd44","\ud838\udd45","\ud838\udd46","\ud838\udd47","\ud838\udd48","\ud838\udd49"],java:["\ua9d0","\ua9d1","\ua9d2","\ua9d3","\ua9d4","\ua9d5","\ua9d6","\ua9d7","\ua9d8","\ua9d9"],kali:["\ua900","\ua901","\ua902","\ua903","\ua904","\ua905","\ua906","\ua907","\ua908","\ua909"],khmr:["\u17e0","\u17e1","\u17e2","\u17e3","\u17e4","\u17e5","\u17e6","\u17e7","\u17e8","\u17e9"],knda:["\u0ce6","\u0ce7","\u0ce8","\u0ce9","\u0cea","\u0ceb","\u0cec","\u0ced","\u0cee","\u0cef"],lana:["\u1a80","\u1a81","\u1a82","\u1a83","\u1a84","\u1a85","\u1a86","\u1a87","\u1a88","\u1a89"],lanatham:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],laoo:["\u0ed0","\u0ed1","\u0ed2","\u0ed3","\u0ed4","\u0ed5","\u0ed6","\u0ed7","\u0ed8","\u0ed9"],lepc:["\u1a90","\u1a91","\u1a92","\u1a93","\u1a94","\u1a95","\u1a96","\u1a97","\u1a98","\u1a99"],limb:["\u1946","\u1947","\u1948","\u1949","\u194a","\u194b","\u194c","\u194d","\u194e","\u194f"],mathbold:["\ud835\udfce","\ud835\udfcf","\ud835\udfd0","\ud835\udfd1","\ud835\udfd2","\ud835\udfd3","\ud835\udfd4","\ud835\udfd5","\ud835\udfd6","\ud835\udfd7"],mathdbl:["\ud835\udfd8","\ud835\udfd9","\ud835\udfda","\ud835\udfdb","\ud835\udfdc","\ud835\udfdd","\ud835\udfde","\ud835\udfdf","\ud835\udfe0","\ud835\udfe1"],mathmono:["\ud835\udff6","\ud835\udff7","\ud835\udff8","\ud835\udff9","\ud835\udffa","\ud835\udffb","\ud835\udffc","\ud835\udffd","\ud835\udffe","\ud835\udfff"],mathsanb:["\ud835\udfec","\ud835\udfed","\ud835\udfee","\ud835\udfef","\ud835\udff0","\ud835\udff1","\ud835\udff2","\ud835\udff3","\ud835\udff4","\ud835\udff5"],mathsans:["\ud835\udfe2","\ud835\udfe3","\ud835\udfe4","\ud835\udfe5","\ud835\udfe6","\ud835\udfe7","\ud835\udfe8","\ud835\udfe9","\ud835\udfea","\ud835\udfeb"],mlym:["\u0d66","\u0d67","\u0d68","\u0d69","\u0d6a","\u0d6b","\u0d6c","\u0d6d","\u0d6e","\u0d6f"],modi:["\ud805\ude50","\ud805\ude51","\ud805\ude52","\ud805\ude53","\ud805\ude54","\ud805\ude55","\ud805\ude56","\ud805\ude57","\ud805\ude58","\ud805\ude59"],mong:["\u1810","\u1811","\u1812","\u1813","\u1814","\u1815","\u1816","\u1817","\u1818","\u1819"],mroo:["\ud81a\ude60","\ud81a\ude61","\ud81a\ude62","\ud81a\ude63","\ud81a\ude64","\ud81a\ude65","\ud81a\ude66","\ud81a\ude67","\ud81a\ude68","\ud81a\ude69"],mtei:["\uabf0","\uabf1","\uabf2","\uabf3","\uabf4","\uabf5","\uabf6","\uabf7","\uabf8","\uabf9"],mymr:["\u1040","\u1041","\u1042","\u1043","\u1044","\u1045","\u1046","\u1047","\u1048","\u1049"],mymrshan:["\u1090","\u1091","\u1092","\u1093","\u1094","\u1095","\u1096","\u1097","\u1098","\u1099"],mymrtlng:["\ua9f0","\ua9f1","\ua9f2","\ua9f3","\ua9f4","\ua9f5","\ua9f6","\ua9f7","\ua9f8","\ua9f9"],newa:["\ud805\udc50","\ud805\udc51","\ud805\udc52","\ud805\udc53","\ud805\udc54","\ud805\udc55","\ud805\udc56","\ud805\udc57","\ud805\udc58","\ud805\udc59"],nkoo:["\u07c0","\u07c1","\u07c2","\u07c3","\u07c4","\u07c5","\u07c6","\u07c7","\u07c8","\u07c9"],olck:["\u1c50","\u1c51","\u1c52","\u1c53","\u1c54","\u1c55","\u1c56","\u1c57","\u1c58","\u1c59"],orya:["\u0b66","\u0b67","\u0b68","\u0b69","\u0b6a","\u0b6b","\u0b6c","\u0b6d","\u0b6e","\u0b6f"],osma:["\ud801\udca0","\ud801\udca1","\ud801\udca2","\ud801\udca3","\ud801\udca4","\ud801\udca5","\ud801\udca6","\ud801\udca7","\ud801\udca8","\ud801\udca9"],rohg:["\ud803\udd30","\ud803\udd31","\ud803\udd32","\ud803\udd33","\ud803\udd34","\ud803\udd35","\ud803\udd36","\ud803\udd37","\ud803\udd38","\ud803\udd39"],saur:["\ua8d0","\ua8d1","\ua8d2","\ua8d3","\ua8d4","\ua8d5","\ua8d6","\ua8d7","\ua8d8","\ua8d9"],segment:["\ud83e\udff0","\ud83e\udff1","\ud83e\udff2","\ud83e\udff3","\ud83e\udff4","\ud83e\udff5","\ud83e\udff6","\ud83e\udff7","\ud83e\udff8","\ud83e\udff9"],shrd:["\ud804\uddd0","\ud804\uddd1","\ud804\uddd2","\ud804\uddd3","\ud804\uddd4","\ud804\uddd5","\ud804\uddd6","\ud804\uddd7","\ud804\uddd8","\ud804\uddd9"],sind:["\ud804\udef0","\ud804\udef1","\ud804\udef2","\ud804\udef3","\ud804\udef4","\ud804\udef5","\ud804\udef6","\ud804\udef7","\ud804\udef8","\ud804\udef9"],sinh:["\u0de6","\u0de7","\u0de8","\u0de9","\u0dea","\u0deb","\u0dec","\u0ded","\u0dee","\u0def"],sora:["\ud804\udcf0","\ud804\udcf1","\ud804\udcf2","\ud804\udcf3","\ud804\udcf4","\ud804\udcf5","\ud804\udcf6","\ud804\udcf7","\ud804\udcf8","\ud804\udcf9"],sund:["\u1bb0","\u1bb1","\u1bb2","\u1bb3","\u1bb4","\u1bb5","\u1bb6","\u1bb7","\u1bb8","\u1bb9"],takr:["\ud805\udec0","\ud805\udec1","\ud805\udec2","\ud805\udec3","\ud805\udec4","\ud805\udec5","\ud805\udec6","\ud805\udec7","\ud805\udec8","\ud805\udec9"],talu:["\u19d0","\u19d1","\u19d2","\u19d3","\u19d4","\u19d5","\u19d6","\u19d7","\u19d8","\u19d9"],tamldec:["\u0be6","\u0be7","\u0be8","\u0be9","\u0bea","\u0beb","\u0bec","\u0bed","\u0bee","\u0bef"],telu:["\u0c66","\u0c67","\u0c68","\u0c69","\u0c6a","\u0c6b","\u0c6c","\u0c6d","\u0c6e","\u0c6f"],thai:["\u0e50","\u0e51","\u0e52","\u0e53","\u0e54","\u0e55","\u0e56","\u0e57","\u0e58","\u0e59"],tibt:["\u0f20","\u0f21","\u0f22","\u0f23","\u0f24","\u0f25","\u0f26","\u0f27","\u0f28","\u0f29"],tirh:["\ud805\udcd0","\ud805\udcd1","\ud805\udcd2","\ud805\udcd3","\ud805\udcd4","\ud805\udcd5","\ud805\udcd6","\ud805\udcd7","\ud805\udcd8","\ud805\udcd9"],vaii:["\u1620","\u1621","\u1622","\u1623","\u1624","\u1625","\u1626","\u1627","\u1628","\u1629"],wara:["\ud806\udce0","\ud806\udce1","\ud806\udce2","\ud806\udce3","\ud806\udce4","\ud806\udce5","\ud806\udce6","\ud806\udce7","\ud806\udce8","\ud806\udce9"],wcho:["\ud838\udef0","\ud838\udef1","\ud838\udef2","\ud838\udef3","\ud838\udef4","\ud838\udef5","\ud838\udef6","\ud838\udef7","\ud838\udef8","\ud838\udef9"]}},461,[]); +__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InitializeNumberFormat=void 0,e.InitializeNumberFormat=function(t,n,o,r){var c=r.getInternalSlots,l=r.localeData,s=r.availableLocales,u=r.numberingSystemNames,p=r.getDefaultLocale,v=r.currencyDigitsData,y=_r(d[0]).CanonicalizeLocaleList(n),b=_r(d[1]).CoerceOptionsToObject(o),D=Object.create(null),O=_r(d[2]).GetOption(b,'localeMatcher','string',['lookup','best fit'],'best fit');D.localeMatcher=O;var f=_r(d[2]).GetOption(b,'numberingSystem','string',void 0,void 0);if(void 0!==f&&u.indexOf(f)<0)throw RangeError("Invalid numberingSystems: "+f);D.nu=f;var L=_r(d[3]).ResolveLocale(s,y,D,['nu'],l,p),G=l[L.dataLocale];_r(d[4]).invariant(!!G,"Missing locale data for "+L.dataLocale);var S=c(t);S.locale=L.locale,S.dataLocale=L.dataLocale,S.numberingSystem=L.nu,S.dataLocaleData=G,_r(d[5]).SetNumberFormatUnitOptions(t,b,{getInternalSlots:c});var h,I,N=S.style;if('currency'===N){var F=S.currency,M=_r(d[6]).CurrencyDigits(F,{currencyDigitsData:v});h=M,I=M}else h=0,I='percent'===N?0:3;var _=_r(d[2]).GetOption(b,'notation','string',['standard','scientific','engineering','compact'],'standard');S.notation=_,_r(d[7]).SetNumberFormatDigitOptions(S,b,h,I,_);var j=_r(d[2]).GetOption(b,'compactDisplay','string',['short','long'],'short');'compact'===_&&(S.compactDisplay=j);var z=_r(d[2]).GetOption(b,'useGrouping','boolean',void 0,!0);S.useGrouping=z;var C=_r(d[2]).GetOption(b,'signDisplay','string',['auto','never','always','exceptZero'],'auto');return S.signDisplay=C,t}},462,[438,440,444,463,451,471,456,472]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveLocale=e.LookupSupportedLocales=e.match=void 0,e.match=function(o,t,n,u){var c=t.reduce(function(o,t){return o.add(t),o},new Set);return r(d[0]).ResolveLocale(c,o,{localeMatcher:(null===u||void 0===u?void 0:u.algorithm)||'best fit'},[],{},function(){return n}).locale},Object.defineProperty(e,"LookupSupportedLocales",{enumerable:!0,get:function(){return r(d[1]).LookupSupportedLocales}}),Object.defineProperty(e,"ResolveLocale",{enumerable:!0,get:function(){return r(d[0]).ResolveLocale}})},463,[464,470]); +__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolveLocale=void 0,e.ResolveLocale=function(n,t,o,l,r,c){for(var u,s=(u='lookup'===o.localeMatcher?_r(d[0]).LookupMatcher(n,t,c):_r(d[1]).BestFitMatcher(n,t,c)).locale,v={locale:'',dataLocale:s},f='-u',y=0,b=l;y2){var _=s.indexOf('-x-');-1===_?s+=f:s=s.slice(0,_)+f+s.slice(_,s.length),s=Intl.getCanonicalLocales(s)[0]}return v.locale=s,v}},464,[465,468,466,469]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LookupMatcher=void 0,e.LookupMatcher=function(l,o,t){for(var c={locale:''},n=0,u=o;n=2&&'-'===n[o-2]&&(o-=2),n=n.slice(0,o)}}},467,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BestFitMatcher=void 0,e.BestFitMatcher=function(t,n,o){var c,l=Array.from(t).reduce(function(t,n){return t[n]=n,t},{}),f=new Set;t.forEach(function(t){var n=new Intl.Locale(t).minimize().toString();l[n]=t,f.add(n)});for(var u=0,s=n;u-1;)l=t.indexOf('}',u),r(d[0]).invariant(l>u,"Invalid pattern "+t),u>s&&n.push({type:'literal',value:t.substring(s,u)}),n.push({type:t.substring(u+1,l),value:void 0}),s=l+1,u=t.indexOf('{',s);return s=0;){o=r(0===i?_r(_d[0]).getInternalSlot(t,e,'templateStart'):i-1&&(void 0===t.dateStyle&&void 0===t.timeStyle||(T=void 0)),void 0!==T&&(o[u]=T)}return o}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatToParts',{value:function(t){return t=void 0===t?Date.now():r(_d[3]).ToNumber(t),r(_d[7]).FormatDateTimeToParts(this,t,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatRangeToParts',{value:function(t,o){if('object'!=typeof this)throw new TypeError;if(void 0===t||void 0===o)throw new TypeError('startDate/endDate cannot be undefined');var n=r(_d[3]).ToNumber(t),l=r(_d[3]).ToNumber(o);return r(_d[8]).FormatDateTimeRangeToParts(this,n,l,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatRange',{value:function(t,o){if('object'!=typeof this)throw new TypeError;if(void 0===t||void 0===o)throw new TypeError('startDate/endDate cannot be undefined');var n=r(_d[3]).ToNumber(t),l=r(_d[3]).ToNumber(o);return r(_d[9]).FormatDateTimeRange(this,n,l,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}});_e.DateTimeFormat.__setDefaultTimeZone=function(e){if(void 0!==e){if(e=String(e),!r(_d[3]).IsValidTimeZoneName(e,{tzData:_e.DateTimeFormat.tzData,uppercaseLinks:o}))throw new RangeError('Invalid timeZoneName');e=r(_d[3]).CanonicalizeTimeZoneName(e,{tzData:_e.DateTimeFormat.tzData,uppercaseLinks:o})}else e="UTC";_e.DateTimeFormat.__defaultTimeZone=e},_e.DateTimeFormat.relevantExtensionKeys=['nu','ca','hc'],_e.DateTimeFormat.__defaultTimeZone="UTC",_e.DateTimeFormat.getDefaultTimeZone=function(){return _e.DateTimeFormat.__defaultTimeZone},_e.DateTimeFormat.__addLocaleData=function(){for(var e=[],t=0;t-1){var H='',G=h[w];j=I[w],'year'===w&&j<=0&&(j=1-j),'month'===w&&j++;var Y=h.hourCycle;if('hour'!==w||'h11'!==Y&&'h12'!==Y||0==(j%=12)&&'h12'===Y&&(j=12),'hour'===w&&'h24'===Y&&0===j&&(j=24),'numeric'===G)H=S.format(j);else if('2-digit'===G)(H=M.format(j)).length>2&&(H=H.slice(H.length-2,H.length));else if('narrow'===G||'short'===G||'long'===G)if('era'===w)H=v[w][G][j];else if('timeZoneName'===w){var z=v.timeZoneName,C=v.gmtFormat,E=v.hourFormat,L=z[h.timeZone||f()];H=L&&L[G]?L[G][+I.inDST]:l(C,E,I.timeZoneOffset,G)}else H='month'===w?v.month[G][j-1]:v[w][G][j];O.push({type:w,value:H})}else'ampm'===w?(H=void 0,H=(j=I.hour)>11?v.pm:v.am,O.push({type:'dayPeriod',value:H})):'relatedYear'===w?(j=I.relatedYear,H=S.format(j),O.push({type:'relatedYear',value:H})):'yearName'===w&&(j=I.yearName,H=S.format(j),O.push({type:'yearName',value:H}))}return O}},525,[438,526,527]); -__d(function(g,r,_i,a,m,e,d){"use strict";function i(i,o,n){var t,u=n[o];if(!u)return[0,!1];for(var T=0,l=0,c=!1;T<=u.length;T++)if(T===u.length||1e3*u[T][0]>i){l=(t=u[T-1])[2],c=t[3];break}return[1e3*l,c]}Object.defineProperty(e,"__esModule",{value:!0}),e.ToLocalTime=void 0,e.ToLocalTime=function(o,n,t,u){var T=u.tzData;r(d[0]).invariant('Number'===r(d[0]).Type(o),'invalid time'),r(d[0]).invariant('gregory'===n,'We only support Gregory calendar right now');var l=i(o,t,T),c=l[0],v=l[1],y=o+c,f=r(d[0]).YearFromTime(y);return{weekday:r(d[0]).WeekDay(y),era:f<0?'BC':'AD',year:f,relatedYear:void 0,yearName:void 0,month:r(d[0]).MonthFromTime(y),day:r(d[0]).DateFromTime(y),hour:r(d[0]).HourFromTime(y),minute:r(d[0]).MinFromTime(y),second:r(d[0]).SecFromTime(y),millisecond:r(d[0]).msFromTime(y),inDST:v,timeZoneOffset:c}}},526,[438]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shortMorePenalty=e.shortLessPenalty=e.longMorePenalty=e.longLessPenalty=e.differentNumericTypePenalty=e.additionPenalty=e.removalPenalty=e.DATE_TIME_PROPS=void 0,e.DATE_TIME_PROPS=['weekday','era','year','month','day','hour','minute','second','timeZoneName'],e.removalPenalty=120,e.additionPenalty=20,e.differentNumericTypePenalty=15,e.longLessPenalty=8,e.longMorePenalty=6,e.shortLessPenalty=6,e.shortMorePenalty=3},527,[]); -__d(function(g,_r,i,a,m,e,d){"use strict";function t(t){for(var o=0,r=['hour','minute','second'];on&&(n=c,s=f)}return r(d[2]).__assign({},s)}},530,[438,527,428]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'numeric'===t||'2-digit'===t}function n(n,o){var s=0;n.hour12&&!o.hour12?s-=r(d[0]).removalPenalty:!n.hour12&&o.hour12&&(s-=r(d[0]).additionPenalty);for(var l=0,P=r(d[0]).DATE_TIME_PROPS;ll&&(l=c,P=f)}var h=r(d[2]).__assign({},P),y={rawPattern:P.rawPattern};for(var M in r(d[3]).processDateTimePattern(P.rawPattern,y),h){var F=h[M],_=y[M],p=o[M];'minute'!==M&&'second'!==M&&p&&(t(_)&&!t(p)||F!==p&&(y[M]=p))}return y.pattern=h.pattern,y.pattern12=h.pattern12,y.skeleton=h.skeleton,y.rangePatterns=h.rangePatterns,y.rangePatterns12=h.rangePatterns12,y}},531,[527,438,428,532]); -__d(function(g,r,_i,a,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitRangePattern=e.splitFallbackRangePattern=e.parseDateTimeSkeleton=e.processDateTimePattern=void 0;var t=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function s(t,n){var s=t.length;switch(t[0]){case'G':return n.era=4===s?'long':5===s?'narrow':'short','{era}';case'y':case'Y':case'u':case'U':case'r':return n.year=2===s?'2-digit':'numeric','{year}';case'q':case'Q':throw new RangeError('`w/Q` (quarter) patterns are not supported');case'M':case'L':return n.month=['numeric','2-digit','short','long','narrow'][s-1],'{month}';case'w':case'W':throw new RangeError('`w/W` (week of year) patterns are not supported');case'd':return n.day=['numeric','2-digit'][s-1],'{day}';case'D':case'F':case'g':return n.day='numeric','{day}';case'E':return n.weekday=4===s?'long':5===s?'narrow':'short','{weekday}';case'e':case'c':return n.weekday=[void 0,void 0,'short','long','narrow','short'][s-1],'{weekday}';case'a':case'b':case'B':return n.hour12=!0,'{ampm}';case'h':return n.hour=['numeric','2-digit'][s-1],n.hour12=!0,'{hour}';case'H':return n.hour=['numeric','2-digit'][s-1],'{hour}';case'K':return n.hour=['numeric','2-digit'][s-1],n.hour12=!0,'{hour}';case'k':return n.hour=['numeric','2-digit'][s-1],'{hour}';case'j':case'J':case'C':throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');case'm':return n.minute=['numeric','2-digit'][s-1],'{minute}';case's':return n.second=['numeric','2-digit'][s-1],'{second}';case'S':case'A':return n.second='numeric','{second}';case'z':case'Z':case'O':case'v':case'V':case'X':case'x':return n.timeZoneName=s<4?'short':'long','{timeZoneName}'}return''}function c(t){switch(t){case'G':return'era';case'y':case'Y':case'u':case'U':case'r':return'year';case'M':case'L':return'month';case'd':case'D':case'F':case'g':return'day';case'a':case'b':case'B':return'ampm';case'h':case'H':case'K':case'k':return'hour';case'm':return'minute';case's':case'S':case'A':return'second';default:throw new RangeError('Invalid range pattern token')}}function u(c,u){var o=[],i=c.replace(/'{2}/g,'{apostrophe}').replace(/'(.*?)'/g,function(t,n){return o.push(n),"$$"+(o.length-1)+"$$"}).replace(t,function(t){return s(t,u||{})});return o.length&&(i=i.replace(/\$\$(\d+)\$\$/g,function(t,n){return o[+n]}).replace(/\{apostrophe\}/g,"'")),[i.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,'$1').replace('{ampm}','').replace(n,''),i]}function o(t){return t.split(/(\{[0|1]\})/g).filter(Boolean).map(function(t){switch(t){case'{0}':return{source:r(d[1]).RangePatternType.startRange,pattern:t};case'{1}':return{source:r(d[1]).RangePatternType.endRange,pattern:t};default:return{source:r(d[1]).RangePatternType.shared,pattern:t}}})}function i(t){for(var n,s=/\{(.*?)\}/g,c={},u=0;n=s.exec(t);){if(n[0]in c){u=n.index;break}c[n[0]]=n.index}return u?[{source:r(d[1]).RangePatternType.startRange,pattern:t.slice(0,u)},{source:r(d[1]).RangePatternType.endRange,pattern:t.slice(u)}]:[{source:r(d[1]).RangePatternType.startRange,pattern:t}]}e.processDateTimePattern=u,e.parseDateTimeSkeleton=function(n,p,h,l){void 0===p&&(p=n);var m={pattern:'',pattern12:'',skeleton:n,rawPattern:p,rangePatterns:{},rangePatterns12:{}};if(h)for(var w in h){var P=c(w),f={patternParts:[]},y=u(h[w],f),R=y[0],v=y[1];m.rangePatterns[P]=r(d[0]).__assign(r(d[0]).__assign({},f),{patternParts:i(R)}),m.rangePatterns12[P]=r(d[0]).__assign(r(d[0]).__assign({},f),{patternParts:i(v)})}if(l){var F=o(l);m.rangePatterns.default={patternParts:F},m.rangePatterns12.default={patternParts:F}}n.replace(t,function(t){return s(t,m)});var k=u(p),_=k[0],$=k[1];return m.pattern=_,m.pattern12=$,m},e.splitFallbackRangePattern=o,e.splitRangePattern=i},532,[428,438]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateTimeStyleFormat=void 0,e.DateTimeStyleFormat=function(t,n,o){var l,v;if(void 0!==n&&(r(d[0]).invariant('full'===n||'long'===n||'medium'===n||'short'===n,'invalid timeStyle'),v=o.timeFormat[n]),void 0!==t&&(r(d[0]).invariant('full'===t||'long'===t||'medium'===t||'short'===t,'invalid dateStyle'),l=o.dateFormat[t]),void 0!==t&&void 0!==n){var p={};for(var u in l)'pattern'!==u&&(p[u]=l[u]);for(var u in v)'pattern'!==u&&'pattern12'!==u&&(p[u]=v[u]);var f=o.dateTimeFormat[t],c=f.replace('{0}',v.pattern).replace('{1}',l.pattern);if(p.pattern=c,'pattern12'in v){var s=f.replace('{0}',v.pattern12).replace('{1}',l.pattern);p.pattern12=s}return p}return void 0!==n?v:(r(d[0]).invariant(void 0!==t,'dateStyle should not be undefined'),l)}},533,[438]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatDateTimeToParts=void 0,e.FormatDateTimeToParts=function(t,o,n){for(var u=r(d[0]).PartitionDateTimePattern(t,o,n),s=r(d[1]).ArrayCreate(0),v=0,l=u;v11&&N<11||M<11&&N>11)&&(T=!1)}else if('dayPeriod'===w);else if('fractionalSecondDigits'===w){var _=c.fractionalSecondDigits;void 0===_&&(_=3),M=Math.floor(P.millisecond*Math.pow(10,_-3)),N=Math.floor(h.millisecond*Math.pow(10,_-3)),_r(d[0]).SameValue(M,N)||(T=!1)}else M=P[w],N=h[w],_r(d[0]).SameValue(M,N)||(T=!1)}}if(T){for(var z=_r(d[2]).FormatDateTimePattern(r,_r(d[0]).PartitionPattern(p),n,l),I=0,C=z;I0&&n.default.createElement(l.Text,(0,t.default)({testID:(0,r(d[5]).getTestId)('Text1'),style:[r(d[6]).styles.text1,b],numberOfLines:v,ellipsizeMode:"tail"},C),o),u&&(null==u?void 0:u.length)>0&&n.default.createElement(l.Text,(0,t.default)({testID:(0,r(d[5]).getTestId)('Text2'),style:[r(d[6]).styles.text2,O],numberOfLines:h,ellipsizeMode:"tail"},L),u)),E&&E())};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[3])},545,[3,4,15,18,546,547,548]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Touchable=function(o){var v=o.children,f=o.activeOpacity,p=void 0===f?1:f,y=(0,c.default)(o,n);return l.default.createElement(u.TouchableOpacity,(0,t.default)({activeOpacity:p},y),v)};var t=r(d[0])(r(d[1])),c=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[4]),n=["children","activeOpacity"]},546,[3,4,5,15,18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getTestId=function(t){return"toast"+t}},547,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.styles=e.WIDTH=e.HEIGHT=e.BORDER_RADIUS=void 0;var t=r(d[0]);e.HEIGHT=60;e.WIDTH=340;e.BORDER_RADIUS=6;var o=t.StyleSheet.create({base:{flexDirection:'row',height:60,width:340,borderRadius:6,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6,elevation:2,backgroundColor:'#FFF'},leadingBorder:{borderLeftWidth:5,borderLeftColor:'#D8D8D8'},contentContainer:{paddingHorizontal:25,flex:1,justifyContent:'center',alignItems:'flex-start'},text1:{fontSize:12,fontWeight:'bold',marginBottom:2,color:'#000',width:'100%'},text2:{fontSize:10,color:'#979797',width:'100%'}});e.styles=o},548,[18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorToast=function(l){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#FE6301'}},l))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},549,[3,4,15,545]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.InfoToast=function(n){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#87CEFA'}},n))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},550,[3,4,15,545]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SuccessToast=function(u){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#69C779'}},u))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},551,[3,4,15,545]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=s;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=["config"],f=o.default.forwardRef(function(t,f){var l=t.config,s=(0,n.default)(t,u),c=(0,r(d[4]).useToast)({defaultOptions:s}),h=c.show,v=c.hide,w=c.isVisible,p=c.options,b=c.data;return o.default.useImperativeHandle(f,function(){return{show:h,hide:v}}),o.default.createElement(r(d[5]).ToastUI,{isVisible:w,options:p,data:b,hide:v,show:h,config:l})}),l=o.default.createRef();function s(n){return o.default.createElement(r(d[6]).LoggerProvider,{enableLogs:!1},o.default.createElement(f,(0,t.default)({ref:l},n)))}s.show=function(t){var n;null==(n=l.current)||n.show(t)},s.hide=function(t){var n;null==(n=l.current)||n.hide(t)}},552,[3,4,5,15,553,566,555]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.DEFAULT_DATA=void 0,e.useToast=function(n){var u=n.defaultOptions,p=(0,r(d[4]).useLogger)().log,l=o.default.useState(!1),v=(0,t.default)(l,2),O=v[0],b=v[1],T=o.default.useState(s),y=(0,t.default)(T,2),c=y[0],H=y[1],S=(0,r(d[5]).mergeIfDefined)(f,u),h=o.default.useState(S),A=(0,t.default)(h,2),x=A[0],D=A[1],_=o.default.useCallback(function(){p('Auto hiding'),b(!1),x.onHide()},[p,x]),k=(0,r(d[6]).useTimeout)(_,x.visibilityTime),w=k.startTimer,P=k.clearTimer,E=o.default.useCallback(function(){p('Hiding'),b(!1),P(),x.onHide()},[P,p,x]),L=o.default.useCallback(function(t){p("Showing with params: "+JSON.stringify(t));var o=t.text1,f=void 0===o?s.text1:o,n=t.text2,u=void 0===n?s.text2:n,l=t.type,v=void 0===l?S.type:l,O=t.position,T=void 0===O?S.position:O,y=t.autoHide,c=void 0===y?S.autoHide:y,h=t.visibilityTime,A=void 0===h?S.visibilityTime:h,x=t.topOffset,_=void 0===x?S.topOffset:x,k=t.bottomOffset,w=void 0===k?S.bottomOffset:k,P=t.keyboardOffset,E=void 0===P?S.keyboardOffset:P,L=t.onShow,F=void 0===L?S.onShow:L,I=t.onHide,U=void 0===I?S.onHide:I,C=t.onPress,N=void 0===C?S.onPress:C,j=t.props,J=void 0===j?S.props:j;b(!0),H({text1:f,text2:u}),D((0,r(d[5]).mergeIfDefined)(S,{type:v,position:T,autoHide:c,visibilityTime:A,topOffset:_,bottomOffset:w,keyboardOffset:E,onShow:F,onHide:U,onPress:N,props:J})),F()},[S,p]);return o.default.useEffect(function(){var t=x.autoHide;O&&t&&w()},[O,x,w]),{isVisible:O,data:c,options:x,show:L,hide:E}};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s={text1:void 0,text2:void 0};e.DEFAULT_DATA=s;var f={type:'success',position:'top',autoHide:!0,visibilityTime:4e3,topOffset:40,bottomOffset:40,keyboardOffset:10,onShow:r(d[3]).noop,onHide:r(d[3]).noop,onPress:r(d[3]).noop,props:{}};e.DEFAULT_OPTIONS=f},553,[3,31,15,554,555,557,558]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.noop=void 0;e.noop=function(){}},554,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},555,[556]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerProvider=function(n){var l=n.children,u=n.enableLogs,c=void 0!==u&&u,f={log:o.default.useCallback(function(){if(c){for(var o,t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},o=l.heightOffset,f=void 0===o?0:o,v=l.widthOffset,s=void 0===v?0:v,h=n.default.useState(0),c=(0,t.default)(h,2),w=c[0],_=c[1],O=n.default.useState(0),b=(0,t.default)(O,2),p=b[0],y=b[1];return{computeViewDimensions:n.default.useCallback(function(t){var n=u('height')(t),l=u('width')(t);_(n+f),y(l+s)},[f,s]),height:w,width:p}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=function(t){return function(n){var u,l,o;return null!=(u=null==n?void 0:null==(l=n.nativeEvent)?void 0:null==(o=l.layout)?void 0:o[t])?u:0}}},559,[3,31,15]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.translateYOutputRangeFor=n,e.useSlideAnimation=function(u){var f=u.position,s=u.height,p=u.topOffset,b=u.bottomOffset,l=u.keyboardOffset,c=t.default.useRef(new o.Animated.Value(0)),y=(0,r(d[4]).useKeyboard)().keyboardHeight,O=t.default.useCallback(function(t){o.Animated.spring(c.current,{toValue:t,useNativeDriver:!0,friction:8}).start()},[]),h=c.current.interpolate({inputRange:[0,1],outputRange:n({position:f,height:s,topOffset:p,bottomOffset:b,keyboardHeight:y,keyboardOffset:l})}),v=c.current.interpolate({inputRange:[0,.7,1],outputRange:[0,1,1]});return{animatedValue:c,animate:O,animationStyles:{opacity:v,transform:[{translateY:h}]}}};var t=r(d[0])(r(d[1])),o=r(d[2]);function n(t){var o=t.position,n=t.height,u=t.topOffset,f=t.bottomOffset,s=t.keyboardHeight,p=t.keyboardOffset,b='bottom'===o?f:u,l='bottom'===o?s+p:0,c=[-2*n,Math.max(b,l)];return'bottom'===o?(0,r(d[3]).additiveInverseArray)(c):c}},560,[3,15,18,561,562]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.additiveInverseArray=function(n){return n.map(function(n){return-n})}},561,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useKeyboard=function(){var o=u.default.useState(0),f=(0,t.default)(o,2),l=f[0],s=f[1],b=u.default.useState(!1),c=(0,t.default)(b,2),y=c[0],v=c[1],k=u.default.useCallback(function(t){var u=t.endCoordinates.height;s(u),v(!0)},[]),h=u.default.useCallback(function(){s(0),v(!1)},[]);return u.default.useEffect(function(){if(!(0,r(d[4]).isIOS)())return function(){};var t=n.Keyboard.addListener('keyboardDidShow',k),u=n.Keyboard.addListener('keyboardDidHide',h);return function(){t.remove(),u.remove()}},[h,k]),{keyboardHeight:l,isKeyboardVisible:y}};var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[3])},562,[3,31,15,18,563]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=function(){return'ios'===n.Platform.OS};var n=r(d[0])},563,[18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTimeout=function(u){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=(0,r(d[2]).useLogger)().log,o=t.default.useRef(),f=t.default.useCallback(function(){o.current&&(c('Clearing timer',o.current),clearTimeout(o.current),o.current=void 0)},[c]),l=t.default.useCallback(function(){f(),o.current=setTimeout(function(){u(),c('Running timer',o.current),o.current=void 0},n),c('Starting timer',o.current)},[f,n,c,u]);return t.default.useEffect(function(){return function(){return f()}},[f]),{startTimer:l,clearTimer:f,isActive:void 0!==o.current}};var t=r(d[0])(r(d[1]))},564,[3,15,555]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.shouldDismissView=t,e.shouldSetPanResponder=u,e.usePanResponder=function(s){var l=s.animatedValue,c=s.computeNewAnimatedValueForGesture,p=s.onDismiss,v=s.onRestore,f=n.default.useCallback(function(n,o){var u,t=c(o);null==(u=l.current)||u.setValue(t)},[l,c]),R=n.default.useCallback(function(n,o){var u=c(o);t(u,o)?p():v()},[c,p,v]);return{panResponder:n.default.useMemo(function(){return o.PanResponder.create({onMoveShouldSetPanResponder:u,onMoveShouldSetPanResponderCapture:u,onPanResponderMove:f,onPanResponderRelease:R})},[f,R]),onMove:f,onRelease:R}};var n=r(d[0])(r(d[1])),o=r(d[2]);function u(n,o){var u=o.dx,t=o.dy;return Math.abs(u)>2||Math.abs(t)>2}function t(n,o){var u=o.vy,t=o.dy;return n<=.65||Math.abs(u)>=.65&&t<0}},565,[3,15,18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ToastUI=function(t){var s=t.isVisible,f=t.options,c=t.hide,u=f.position,p=f.topOffset,l=f.bottomOffset,b=f.keyboardOffset;return o.default.createElement(r(d[6]).AnimatedContainer,{isVisible:s,position:u,topOffset:p,bottomOffset:l,keyboardOffset:b,onHide:c},n(t))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s={success:function(t){return o.default.createElement(r(d[3]).SuccessToast,t)},error:function(t){return o.default.createElement(r(d[4]).ErrorToast,t)},info:function(t){return o.default.createElement(r(d[5]).InfoToast,t)}};function n(o){var n=o.data,f=o.options,c=o.config,u=o.isVisible,p=o.show,l=o.hide,b=n.text1,h=n.text2,E=f.type,O=f.onPress,v=f.position,y=f.props,T=(0,t.default)({},s,c)[E];if(!T)throw new Error("Toast type: '"+E+"' does not exist. You can add it via the 'config' prop on the Toast instance. Learn more: https://github.com/calintamas/react-native-toast-message/blob/master/README.md");return T({position:v,type:E,isVisible:u,text1:b,text2:h,show:p,hide:l,onPress:O,props:y})}},566,[3,4,15,551,549,550,567]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedContainer=function(l){var f=l.children,c=l.isVisible,p=l.position,b=l.topOffset,w=l.bottomOffset,h=l.keyboardOffset,y=l.onHide,v=l.onRestorePosition,V=void 0===v?r(d[5]).noop:v,O=(0,r(d[6]).useLogger)().log,k=(0,r(d[7]).useViewDimensions)(),A=k.computeViewDimensions,C=k.height,D=(0,r(d[7]).useSlideAnimation)({position:p,height:C,topOffset:b,bottomOffset:w,keyboardOffset:h}),E=D.animatedValue,R=D.animate,S=D.animationStyles,_=n.default.useCallback(function(){O('Swipe, dismissing'),R(0),y()},[R,O,y]),F=n.default.useCallback(function(){O('Swipe, restoring to original position'),R(1),V()},[R,O,V]),L=n.default.useCallback(function(t){var n=s(t,p),o=u(t,p,n);return o},[p]),P=(0,r(d[7]).usePanResponder)({animatedValue:E,computeNewAnimatedValueForGesture:L,onDismiss:_,onRestore:F}).panResponder;return n.default.useLayoutEffect(function(){R(c?1:0)},[R,c]),n.default.createElement(o.Animated.View,(0,t.default)({testID:(0,r(d[8]).getTestId)('AnimatedContainer'),onLayout:A,style:[r(d[9]).styles.base,r(d[9]).styles[p],S]},P.panHandlers),f)},e.animatedValueFor=u,e.dampingFor=s;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[3]);function s(t,n){var s=t.moveY;switch(n){case'bottom':return o.Dimensions.get('screen').height-s;case'top':return s;default:throw new Error("Toast position: "+n+" not implemented")}}function u(t,n,o){var s=function(t){return(0,r(d[4]).bound)(t,0,2)},u=t.dy;switch(n){case'bottom':return s(1-u/o);case'top':return s(1+u/o);default:throw new Error("Toast position: "+n+" not implemented")}}},567,[3,4,15,18,568,554,555,558,547,569]); -__d(function(g,r,i,a,m,e,d){function n(n,u){return n>u?u:n}function u(n,u){return n-1},ft.prototype.set=function(t,n){var e=this.__data__,o=vt(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this},st.prototype.clear=function(){this.size=0,this.__data__={hash:new at,map:new(it||ft),string:new at}},st.prototype.delete=function(t){var n=Ut(this,t).delete(t);return this.size-=n?1:0,n},st.prototype.get=function(t){return Ut(this,t).get(t)},st.prototype.has=function(t){return Ut(this,t).has(t)},st.prototype.set=function(t,n){var e=Ut(this,t),o=e.size;return e.set(t,n),this.size+=e.size==o?0:1,this},lt.prototype.clear=function(){this.__data__=new ft,this.size=0},lt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},lt.prototype.get=function(t){return this.__data__.get(t)},lt.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ft){var o=e.__data__;if(!it||o.length<199)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new st(o)}return e.set(t,n),this.size=e.size,this};var bt,dt=function(t,n,e){for(var o=-1,u=Object(t),c=e(t),f=c.length;f--;){var s=c[bt?f:++o];if(!1===n(u[s],s,u))break}return t};function gt(t){return null==t?void 0===t?h:l:tt&&tt in Object(t)?Pt(t):Mt(t)}function jt(t){return Qt(t)&>(t)==u}function Ot(t){return!(!Kt(t)||L&&L in t)&&(Ht(t)?V:v).test(Ct(t))}function At(t){if(!Kt(t))return Bt(t);var n=kt(t),e=[];for(var o in t)('constructor'!=o||!n&&C.call(t,o))&&e.push(o);return e}function wt(t,n,e,o,u){t!==n&&dt(n,function(c,f){if(u||(u=new lt),Kt(c))zt(t,n,f,e,wt,o,u);else{var s=o?o(Rt(t,f),c,f+'',t,n,u):void 0;void 0===s&&(s=c),_t(t,f,s)}},tr)}function zt(t,n,e,o,u,c,f){var s=Rt(t,e),l=Rt(n,e),p=f.get(l);if(p)_t(t,e,p);else{var _,h,v,y=c?c(s,l,e+'',t,n,f):void 0,b=void 0===y;if(b){var j=Gt(l),O=!j&&Wt(l),A=!j&&!O&&Yt(l);y=l,j||O||A?Gt(s)?y=s:Qt(v=s)&&Vt(v)?y=xt(s):O?(b=!1,y=mt(l,!0)):A?(b=!1,_=l,h=!0?St(_.buffer):_.buffer,y=new _.constructor(h,_.byteOffset,_.length)):y=[]:Xt(l)||Nt(l)?(y=s,Nt(s)?y=Zt(s):Kt(s)&&!Ht(s)||(y=Et(l))):b=!1}b&&(f.set(l,y),u(y,l,o,c,f),f.delete(l)),_t(t,e,y)}}function mt(t,n){if(n)return t.slice();var e=t.length,o=K?K(e):new t.constructor(e);return t.copy(o),o}function St(t){var n=new t.constructor(t.byteLength);return new J(n).set(new J(t)),n}function xt(t,n){var e=-1,o=t.length;for(n||(n=Array(o));++e-1&&t%1==0&&t0){if(++o>=n)return arguments[0]}else o=0;return t.apply(void 0,arguments)}})(rt?function(t,n){return rt(t,'toString',{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:nr);function Ct(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Lt(t,n){return t===n||t!=t&&n!=n}var Nt=jt((function(){return arguments})())?jt:function(t){return Qt(t)&&C.call(t,'callee')&&!Y.call(t,'callee')},Gt=Array.isArray;function Vt(t){return null!=t&&Jt(t.length)&&!Ht(t)}var Wt=nt||function(){return!1};function Ht(t){if(!Kt(t))return!1;var n=gt(t);return n==f||n==s||n==c||n==_}function Jt(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=o}function Kt(t){var n=typeof t;return null!=t&&('object'==n||'function'==n)}function Qt(t){return null!=t&&'object'==typeof t}function Xt(t){if(!Qt(t)||gt(t)!=p)return!1;var n=Q(t);if(null===n)return!0;var e=C.call(n,'constructor')&&n.constructor;return'function'==typeof e&&e instanceof e&&q.call(e)==G}var Yt=U?(function(t){return function(n){return t(n)}})(U):function(t){return Qt(t)&&Jt(t.length)&&!!b[gt(t)]};function Zt(t){return Ft(t,tr(t))}function tr(t){return Vt(t)?pt(t,!0):At(t)}var rr=(function(t){return qt(Dt(n=function(n,e){var o=-1,u=e.length,c=u>1?e[u-1]:void 0,f=u>2?e[2]:void 0;for(c=t.length>3&&'function'==typeof c?(u--,c):void 0,f&&Tt(e[0],e[1],f)&&(c=u<3?void 0:c,u=1),n=Object(n);++o0&&void 0!==arguments[0]&&arguments[0]?"NON-PRODUCTION":void 0},o]}},S=function(t){var s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],_=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];s?(n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'en',name:'Person',issuerName:'Service BC',watermark:_?"NON-PRODUCTION":void 0}),n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'fr',name:'Personne',issuerName:'Service BC',watermark:_?"NON-PRODUCTION (FR)":void 0})):(n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'en',name:'Unverified Person',issuerName:'Digital Identity and Trust Program'}),n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'fr',name:'Unverified Personne',issuerName:'Digital Identity and Trust Program'}));var u={captureBase:{captureBase:'',type:'spec/overlays/capture_base/1.0',attributes:{postal_code:'Text',given_names:'Text',family_name:'Text',locality:'Text',region:'Text',street_address:'Text',country:'Text',birthdate_dateint:'DateInt'}},overlays:[].concat(n,[{captureBase:'',type:'spec/overlays/card_layout/1.1',logo:{src:r(d[10])},primaryBackgroundColor:'#003366',backgroundImage:{src:t},primaryAttribute:{name:'given_names'},secondaryAttribute:{name:'family_name'}},{captureBase:'',type:'spec/overlays/format/1.0',language:'en',attributeFormats:{birthdate_dateint:'YYYYMMDD',picture:'image/jpeg'}},{captureBase:'',type:'spec/overlays/character_encoding/1.0',language:'en',attributeCharacterEncoding:{picture:'base64'}},{captureBase:'',type:'spec/overlays/label/1.0',language:'en',attributeLabels:{given_names:'Given Names',family_name:'Family Name',birthdate_dateint:'Date of Birth'}},{captureBase:'',type:'spec/overlays/label/1.0',language:'fr',attributeLabels:{given_names:'Pr\xe9noms',family_name:'Nom de famille'}}])};return _&&u.captureBase.attributes&&(u.captureBase.attributes.picture='Binary'),u},T=S(r(d[11]),!1),p=S(r(d[11])),C=S(r(d[11]),!0,!0),I=E(),y=E(!0),D=(t={},(0,_.default)(t,s.LSBC_TEST,I),(0,_.default)(t,s.LSBC_PROD,I),(0,_.default)(t,s.SHOWCASE_LAWYER_DEV,y),(0,_.default)(t,s.SHOWCASE_LAWYER_TEST,y),(0,_.default)(t,s.SHOWCASE_LAWYER_PROD,y),(0,_.default)(t,s.SHOWCASE_STUDENT_DEV,c),(0,_.default)(t,s.SHOWCASE_STUDENT_TEST,c),(0,_.default)(t,s.SHOWCASE_STUDENT_PROD,c),(0,_.default)(t,s.UNVERIFIED_PERSON_DEV,T),(0,_.default)(t,s.UNVERIFIED_PERSON_TEST,T),(0,_.default)(t,s.UNVERIFIED_PERSON_PROD,T),(0,_.default)(t,s.PILOT_INVITE_DEV,l),(0,_.default)(t,s.PILOT_INVITE_TEST,l),(0,_.default)(t,s.PILOT_INVITE_PROD,l),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_DEV,C),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_TEST,C),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_PROD,C),(0,_.default)(t,s.BC_DIGITAL_ID_DEV,C),(0,_.default)(t,s.BC_DIGITAL_ID_SIT,C),(0,_.default)(t,s.BC_DIGITAL_ID_QA,p),(0,_.default)(t,s.BC_DIGITAL_ID_PROD,p),t);e.default=D},573,[3,249,574,576,577,578,579,580,581,582,583,584]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"76c888edae113b6ad2a3d690dadf0ba4",name:"invitation-logo",type:"png"})},574,[575]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},575,[159]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:121,height:1200,scales:[1],hash:"c437e5b9f76714dc43dd69607faf70ab",name:"invitation-background-image-slice",type:"png"})},576,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:361,scales:[1],hash:"46950f1f3907c563213dec69864d993f",name:"invitation-primary-background",type:"png"})},577,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"0f62872ad132ca150048faeec0421ef1",name:"best-bc-logo",type:"png"})},578,[575]); -__d(function(e,s,t,a,c,r,d){c.exports=s(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:360,scales:[1],hash:"d87c143b676f37559bee5db33c0d8cfd",name:"best-bc-background-image",type:"jpg"})},579,[575]); -__d(function(s,e,a,t,c,r,i){c.exports=e(i[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:121,height:1200,scales:[1],hash:"73c4c38af7a9f31068408769b1a6db1b",name:"best-bc-background-image-slice",type:"jpg"})},580,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"dd8d8680164a8824853fcfa850e8d348",name:"lsbc-logo",type:"jpg"})},581,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:360,scales:[1],hash:"7ea103a5f2f9ebf73ea7dbf0e5f257b7",name:"lsbc-background-image",type:"jpg"})},582,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:554,height:523,scales:[1],hash:"bfdc9aafe33a3c48dc7e85623583418d",name:"bc-logo",type:"jpg"})},583,[575]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:937,height:312,scales:[1],hash:"5b9c48a4f5f4e304cc918f66c9f43e9c",name:"person-background-image",type:"png"})},584,[575]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=o(n);if(l&&l.has(t))return l.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=c?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[0])),n=r(d[1]),l=r(d[2])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(o=function(t){return t?l:n})(t)}var u=function(){var o=(0,r(d[4]).useTranslation)().t,u=(0,r(d[5]).useTheme)().ColorPallet,c=(0,t.useCallback)(function(){n.DeviceEventEmitter.emit(r(d[6]).BCWalletEventTypes.ADD_CREDENTIAL_PRESSED,!0)},[]),f=n.StyleSheet.create({button:{paddingHorizontal:16}});return t.default.createElement(n.TouchableOpacity,{accessible:!0,accessibilityLabel:o('Credentials.AddCredential'),testID:(0,r(d[5]).testIdWithKey)('AddCredential'),style:f.button,onPress:c},t.default.createElement(l.default,{name:"plus-circle-outline",size:24,color:u.grayscale.white}))};e.default=u},585,[15,18,3,586,596,608,3358]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourceSync=e.getImageSource=e.default=e.Button=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),o=(0,t.default)(u.default,'Material Design Icons','MaterialCommunityIcons.ttf'),c=o;e.default=c;var n=o.Button,S=o.getImageSource,l=o.getImageSourceSync;e.getImageSourceSync=l,e.getImageSource=S,e.Button=n},586,[3,587,595]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NativeIconAPI=_e.DEFAULT_ICON_SIZE=_e.DEFAULT_ICON_COLOR=void 0,_e.default=function(b,R,_,N){var S=_?_.replace(/\.(otf|ttf)$/,''):R,x=r(d[14]).Platform.select({windows:"/Assets/"+_+"#"+R,android:S,web:S,default:R}),C=p.default.oneOf(Object.keys(b)),k=(function(e){(0,u.default)(y,e);var t,p,v=(t=y,p=w(),function(){var e,n=(0,f.default)(t);if(p){var o=(0,f.default)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,c.default)(this,e)});function y(){var e;(0,o.default)(this,y);for(var t=arguments.length,n=new Array(t),l=0;l1&&void 0!==p[1]?p[1]:I,o=p.length>2&&void 0!==p[2]?p[2]:F,(0,v.default)(),l=M(t),u=(0,r(d[14]).processColor)(o),c=l+":"+n+":"+u,!E.has(c)){y.next=8;break}return y.abrupt("return",E.get(c));case 8:return y.prev=8,y.next=11,e.default.awrap(P.getImageForFont(x,l,n,u));case 11:return f=y.sent,s={uri:f,scale:r(d[14]).PixelRatio.get()},E.setValue(c,s),y.abrupt("return",s);case 17:throw y.prev=17,y.t0=y.catch(8),E.setError(c,y.t0),y.t0;case 21:case"end":return y.stop()}},null,null,[[8,17]],Promise)},k.getImageSourceSync=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;(0,v.default)();var o=M(e),l=(0,r(d[14]).processColor)(n),u=o+":"+t+":"+l;if(E.has(u))return E.get(u);try{var c=P.getImageForFontSync(x,o,t,l),f={uri:c,scale:r(d[14]).PixelRatio.get()};return E.setValue(u,f),f}catch(e){throw E.setError(u,e),e}},k.loadFont=function(){var n,o=arguments;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(n=o.length>0&&void 0!==o[0]?o[0]:_,'ios'!==r(d[14]).Platform.OS){l.next=7;break}if((0,v.default)(),n){l.next=5;break}throw new Error('Unable to load font, because no file was specified. ');case 5:return l.next=7,e.default.awrap(P.loadFontWithFileName.apply(P,(0,t.default)(n.split('.'))));case 7:case"end":return l.stop()}},null,null,null,Promise)},k.hasIcon=function(e){return Object.prototype.hasOwnProperty.call(b,e)},k.getRawGlyphMap=function(){return b},k.getFontFamily=function(){return x},k};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=l?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[9])),p=r(d[0])(r(d[10])),v=r(d[0])(r(d[11])),y=r(d[0])(r(d[12])),h=r(d[0])(r(d[13])),O=["name","size","color","style","children"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function w(){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(e){return!1}}var P=r(d[14]).NativeModules.RNVectorIconsManager||r(d[14]).NativeModules.RNVectorIconsModule;_e.NativeIconAPI=P;var I=12;_e.DEFAULT_ICON_SIZE=I;var F='black';_e.DEFAULT_ICON_COLOR=F},587,[3,82,42,5,7,8,9,11,14,15,193,588,590,591,589]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!o){if('android'===r(d[0]).Platform.OS)throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.')}};var o=r(d[0]).NativeModules.RNVectorIconsManager||r(d[0]).NativeModules.RNVectorIconsModule},588,[589]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var n=r(d[0]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})},589,[18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var u=new Map;return{setValue:function(n,o){return u.set(n,{type:t,data:o})},setError:function(t,o){return u.set(t,{type:n,data:o})},has:function(t){return u.has(t)},get:function(t){if(u.has(t)){var o=u.get(t),f=o.type,s=o.data;if(f===n)throw s;return s}}}};var t='value',n='error'},590,[]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(v){var w;return(w=(function(b){(0,l.default)(C,b);var k,w,R=(k=C,w=P(),function(){var e,t=(0,c.default)(k);if(w){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function C(){return(0,n.default)(this,C),R.apply(this,arguments)}return(0,o.default)(C,[{key:"render",value:function(){var n=this.props,o=n.style,l=n.iconStyle,u=n.children,c=(0,t.default)(n,h),b=(0,y.default)(c,S,'style','name','size','color'),P=(0,y.default)(c,j),k=(0,f.default)(c,Object.keys(b),Object.keys(P),'iconStyle','borderRadius','backgroundColor');b.style=l?[O.icon,l]:O.icon;var w=(0,y.default)(this.props,'color'),R=(0,y.default)(this.props,'backgroundColor','borderRadius');return p.default.createElement(r(d[13]).TouchableHighlight,(0,e.default)({style:[O.touchable,R]},P),p.default.createElement(r(d[13]).View,(0,e.default)({style:[O.container,R,o]},k),p.default.createElement(v,b),(0,s.default)(u)?p.default.createElement(r(d[13]).Text,{style:[O.text,w]},u):u))}}]),C})(p.PureComponent)).propTypes={backgroundColor:b.default.oneOfType([b.default.string,b.default.number]),borderRadius:b.default.number,color:b.default.any,size:b.default.number,iconStyle:b.default.any,style:b.default.any,children:b.default.node},w.defaultProps={backgroundColor:k,borderRadius:5,color:'white',size:20},w};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=l?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),b=r(d[0])(r(d[12])),h=["style","iconStyle","children"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function P(){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(e){return!1}}var O=r(d[13]).StyleSheet.create({container:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center',padding:8},touchable:{overflow:'hidden'},icon:{marginRight:10},text:{fontWeight:'600',backgroundColor:'transparent'}}),k='#007AFF',S=['ellipsizeMode','numberOfLines','textBreakStrategy','selectable','suppressHighlighting','allowFontScaling','adjustsFontSizeToFit','minimumFontScale'],j=['accessible','accessibilityLabel','accessibilityHint','accessibilityComponentType','accessibilityRole','accessibilityStates','accessibilityTraits','onFocus','onBlur','disabled','onPress','onPressIn','onPressOut','onLayout','onLongPress','nativeID','testID','delayPressIn','delayPressOut','delayLongPress','activeOpacity','underlayColor','selectionColor','onShowUnderlay','onHideUnderlay','hasTVPreferredFocus','tvParallaxProperties']},591,[3,4,5,7,8,9,11,14,592,593,594,15,193,589]); -__d(function(g,r,i,a,m,e,d){var t='[object String]',n=Object.prototype.toString,o=Array.isArray;function c(t){return!!t&&'object'==typeof t}m.exports=function(f){return'string'==typeof f||!o(f)&&c(f)&&n.call(f)==t}},592,[]); -__d(function(g,r,i,a,m,_e,d){var t=200,n='__lodash_hash_undefined__',e=9007199254740991,o='[object Arguments]',u='[object Function]',c='[object GeneratorFunction]',f='[object Symbol]',l=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,h='object'==typeof g&&g&&g.Object===Object&&g,p='object'==typeof self&&self&&self.Object===Object&&self,_=h||p||Function('return this')();function y(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function v(t,n){return!!(t?t.length:0)&&S(t,n,0)>-1}function b(t,n,e){for(var o=-1,u=t?t.length:0;++o=t&&(l=P,s=!1,e=new Z(e));t:for(;++f0&&e(l)?n>1?et(l,n-1,e,o,u):O(u,l):o||(u[u.length]=l)}return u}function ot(t,n,e){var o=n(t);return jt(t)?o:O(o,e(t))}function ut(t){return!(!At(t)||G&&G in t)&&(wt(t)||F(t)?B:l).test(dt(t))}function it(t){if(!At(t))return vt(t);var n,e,o,u=(e=(n=t)&&n.constructor,o='function'==typeof e&&e.prototype||M,n===o),c=[];for(var f in t)('constructor'!=f||!u&&q.call(t,f))&&c.push(f);return c}function at(t,n){return ct(t=Object(t),n,function(n,e){return e in t})}function ct(t,n,e){for(var o=-1,u=n.length,c={};++o-1},X.prototype.set=function(t,n){var e=this.__data__,o=rt(e,t);return o<0?e.push([t,n]):e[o][1]=n,this},Y.prototype.clear=function(){this.__data__={hash:new W,map:new(U||X),string:new W}},Y.prototype.delete=function(t){return lt(this,t).delete(t)},Y.prototype.get=function(t){return lt(this,t).get(t)},Y.prototype.has=function(t){return lt(this,t).has(t)},Y.prototype.set=function(t,n){return lt(this,t).set(t,n),this},Z.prototype.add=Z.prototype.push=function(t){return this.__data__.set(t,n),this},Z.prototype.has=function(t){return this.__data__.has(t)};var ht=N?E(N,Object):Ct,pt=N?function(t){for(var n=[];t;)O(n,ht(t)),t=H(t);return n}:Ct;function _t(t){return jt(t)||bt(t)||!!(L&&t&&t[L])}function yt(t,n){return!!(n=null==n?e:n)&&('number'==typeof t||s.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=e}function At(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function $t(t){return!!t&&'object'==typeof t}function Pt(t){return'symbol'==typeof t||$t(t)&&z.call(t)==f}function xt(t){return Ot(t)?tt(t,!0):it(t)}var Ft,Et,kt=(Ft=function(t,n){return null==t?{}:(n=j(et(n,1),gt),at(t,nt(ft(t),n)))},Et=Q(void 0===Et?Ft.length-1:Et,0),function(){for(var t=arguments,n=-1,e=Q(t.length-Et,0),o=Array(e);++n0&&o(b)?n>1?w(b,n-1,o,c,u):v(u,b):c||(u[u.length]=b)}return u}function x(t,n){return _(t=Object(t),n,function(n,o){return o in t})}function _(t,n,o){for(var c=-1,u=n.length,l={};++c-1&&n%1==0&&n<=t}function z(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function B(t){return!!t&&'object'==typeof t}function D(t){return'symbol'==typeof t||B(t)&&j.call(t)==u}var H,J,K=(H=function(t,n){return null==t?{}:x(t,y(w(n,1),E))},J=F(void 0===J?H.length-1:J,0),function(){for(var t=arguments,n=-1,o=F(t.length-J,0),c=Array(o);++n0:!!o}function y(t){return t?t&&t.children?t.children:t.props&&t.props.children:[]}function v(t){return Array.isArray(t)?t:[t]}function b(o,c){if(!o)return'';var s='',u=v(o),p=c.transKeepBasicHtmlNodesFor||[];return u.forEach(function(o,u){if('string'==typeof o)s+="".concat(o);else if(i.default.isValidElement(o)){var f=Object.keys(o.props).length,h=p.indexOf(o.type)>-1,y=o.props.children;if(!y&&h&&0===f)s+="<".concat(o.type,"/>");else if(y||h&&0===f)if(o.props.i18nIsDynamicList)s+="<".concat(u,">");else if(h&&1===f&&'string'==typeof y)s+="<".concat(o.type,">").concat(y,"");else{var v=b(y,c);s+="<".concat(u,">").concat(v,"")}else s+="<".concat(u,">")}else if(null===o)(0,r(d[7]).warn)("Trans: the passed in value is invalid - seems you passed in a null child.");else if('object'===(0,n.default)(o)){var O=o.format,j=(0,t.default)(o,l),E=Object.keys(j);if(1===E.length){var w=O?"".concat(E[0],", ").concat(O):E[0];s+="{{".concat(w,"}}")}else(0,r(d[7]).warn)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else(0,r(d[7]).warn)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",o)}),s}function O(t,o,l,s,u){if(''===o)return[];var p=s.transKeepBasicHtmlNodesFor||[],b=o&&new RegExp(p.join('|')).test(o);if(!t&&!b)return[o];var O={};!(function t(o){v(o).forEach(function(o){'string'!=typeof o&&(h(o)?t(y(o)):'object'!==(0,n.default)(o)||i.default.isValidElement(o)||r(d[6])(O,o))})})(t);var j=c.default.parse("<0>".concat(o,"")),E=f(f({},O),u);function w(t,n,o){var c,l=y(t),s=P(l,n.children,o);return c=l,'[object Array]'===Object.prototype.toString.call(c)&&c.every(function(t){return i.default.isValidElement(t)})&&0===s.length?l:s}function k(t,n,o,c,l){t.dummy&&(t.children=n),o.push(i.default.cloneElement(t,f(f({},t.props),{},{key:c}),l?void 0:n))}function P(o,c,u){var y=v(o);return v(c).reduce(function(o,c,v){var O,j,x,N=c.children&&c.children[0]&&c.children[0].content&&l.services.interpolator.interpolate(c.children[0].content,E,l.language);if('tag'===c.type){var D=y[parseInt(c.name,10)];!D&&1===u.length&&u[0][c.name]&&(D=u[0][c.name]),D||(D={});var S=0!==Object.keys(c.attrs).length?(O={props:c.attrs},(x=f({},j=D)).props=r(d[6])(O.props,j.props),x):D,T=i.default.isValidElement(S),M=T&&h(c,!0)&&!c.voidElement,V=b&&'object'===(0,n.default)(S)&&S.dummy&&!T,_='object'===(0,n.default)(t)&&null!==t&&Object.hasOwnProperty.call(t,c.name);if('string'==typeof S){var K=l.services.interpolator.interpolate(S,E,l.language);o.push(K)}else if(h(S)||M){k(S,w(S,c,u),o,v)}else if(V){var I=P(y,c.children,u);o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v}),I))}else if(Number.isNaN(parseFloat(c.name))){if(_)k(S,w(S,c,u),o,v,c.voidElement);else if(s.transSupportBasicHtmlNodes&&p.indexOf(c.name)>-1)if(c.voidElement)o.push(i.default.createElement(c.name,{key:"".concat(c.name,"-").concat(v)}));else{var W=P(y,c.children,u);o.push(i.default.createElement(c.name,{key:"".concat(c.name,"-").concat(v)},W))}else if(c.voidElement)o.push("<".concat(c.name," />"));else{var A=P(y,c.children,u);o.push("<".concat(c.name,">").concat(A,""))}}else if('object'!==(0,n.default)(S)||T)1===c.children.length&&N?o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v}),N)):o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v})));else{var B=c.children[0]?N:null;B&&o.push(B)}}else if('text'===c.type){var F=s.transWrapTextNodes,H=l.services.interpolator.interpolate(c.content,E,l.language);F?o.push(i.default.createElement(F,{key:"".concat(c.name,"-").concat(v)},H)):o.push(H)}return o},[])}return y(P([{dummy:!0,children:t||[]}],j,v(t||[]))[0])}},597,[3,5,12,249,15,598,4,600,601]); -__d(function(_g,_r,_i,_a,_m,_e,_d){var e,t=(e=_r(_d[0]))&&"object"==typeof e&&"default"in e?e.default:e,n=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function r(e){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(t[i[1]]||"/"===e.charAt(e.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var c=e.indexOf("--\x3e");return{type:"comment",comment:-1!==c?e.slice(4,c):""}}for(var s=new RegExp(n),a=null;null!==(a=s.exec(e));)if(a[0].trim())if(a[1]){var o=a[1].trim(),u=[o,""];o.indexOf("=")>-1&&(u=o.split("=")),r.attrs[u[0]]=u[1],s.lastIndex--}else a[2]&&(r.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return r}var i=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?(function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""})(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}_m.exports={parse:function(e,t){t||(t={}),t.components||(t.components=s);var n,a=[],o=[],u=-1,l=!1;if(0!==e.indexOf("<")){var m=e.indexOf("<");a.push({type:"text",content:-1===m?e:e.substring(0,m)})}return e.replace(i,function(i,s){if(l){if(i!=="")return;l=!1}var m,f="/"!==i.charAt(1),d=i.startsWith("\x3c!--"),h=s+i.length,p=e.charAt(h);if(d){var v=r(i);return u<0?(a.push(v),a):((m=o[u]).children.push(v),a)}if(f&&(u++,"tag"===(n=r(i)).type&&t.components[n.name]&&(n.type="component",l=!0),n.voidElement||l||!p||"<"===p||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===u&&a.push(n),(m=o[u-1])&&m.children.push(n),o[u]=n),(!f||n.voidElement)&&(u>-1&&(n.voidElement||n.name===i.slice(2,-1))&&(n=-1===--u?a:o[u]),!l&&"<"!==p&&p)){m=-1===u?a:o[u].children;var x=e.indexOf("<",h),g=e.slice(h,-1===x?void 0:x);c.test(g)&&(g=" "),(x>-1&&u+m.length>=0||" "!==g)&&m.push({type:"text",content:g})}}),a},stringify:function(e){return e.reduce(function(e,t){return e+a("",t)},"")}}},598,[599]); -__d(function(g,r,i,a,m,e,d){m.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},599,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(){if(console&&console.warn){for(var n,t=arguments.length,o=new Array(t),s=0;s2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return o('i18n.languages were undefined or empty',t.languages),!0;var c=t.languages[0],l=!!t.options&&t.options.fallbackLng,u=t.languages[t.languages.length-1];if('cimode'===c.toLowerCase())return!0;var f=function(n,o){var s=t.services.backendConnector.state["".concat(n,"|").concat(o)];return-1===s||2===s};return!(s.bindI18n&&s.bindI18n.indexOf('languageChanging')>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!f(t.isLanguageChangingTo,n)||!t.hasResourceBundle(c,n)&&t.services.backendConnector.backend&&(!f(c,n)||l&&!f(u,n)))},e.getDisplayName=function(n){return n.displayName||n.name||('string'==typeof n&&n.length>0?n:'Unknown')};var t={};function o(){for(var o=arguments.length,s=new Array(o),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};u=i(i({},u),t)}e.I18nContext=p;var l=(function(){function s(){(0,t.default)(this,s),this.usedNamespaces={}}return(0,n.default)(s,[{key:"addUsedNamespaces",value:function(t){var n=this;t.forEach(function(t){n.usedNamespaces[t]||(n.usedNamespaces[t]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),s})();function b(t){c=t}function O(){return c}e.ReportNamespaces=l;var y={type:'3rdParty',init:function(t){f(t.options.react),b(t)}};function v(){var t=O(),n=t.reportNamespaces?t.reportNamespaces.getUsedNamespaces():[],s={},o={};return t.languages.forEach(function(s){o[s]={},n.forEach(function(n){o[s][n]=t.getResourceBundle(s,n)||{}})}),s.initialI18nStore=o,s.initialLanguage=t.language,s}e.initReactI18next=y},601,[3,7,8,249,15]); -__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.useTranslation=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.i18n,c=(0,n.useContext)(r(d[4]).I18nContext)||{},u=c.i18n,f=c.defaultNS,p=s||u||(0,r(d[4]).getI18n)();p&&!p.reportNamespaces&&(p.reportNamespaces=new(r(d[4]).ReportNamespaces));if(!p){(0,r(d[5]).warnOnce)('You will need to pass in an i18next instance by using initReactI18next');var l=function(e){return Array.isArray(e)?e[e.length-1]:e},y=[l,{},!1];return y.t=l,y.i18n={},y.ready=!1,y}p.options.react&&void 0!==p.options.react.wait&&(0,r(d[5]).warnOnce)('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');var O=i(i(i({},(0,r(d[4]).getDefaults)()),p.options.react),o),b=O.useSuspense,v=O.keyPrefix,w=t||f||p.options&&p.options.defaultNS;w='string'==typeof w?[w]:w||['translation'],p.reportNamespaces.addUsedNamespaces&&p.reportNamespaces.addUsedNamespaces(w);var h=(p.isInitialized||p.initializedStoreOnce)&&w.every(function(e){return(0,r(d[5]).hasLoadedNamespace)(e,p,O)});function j(){return p.getFixedT(null,'fallback'===O.nsMode?w:w[0],v)}var N=(0,n.useState)(j),P=(0,e.default)(N,2),S=P[0],I=P[1],x=(0,n.useRef)(!0);(0,n.useEffect)(function(){var e=O.bindI18n,t=O.bindI18nStore;function n(){x.current&&I(j)}return x.current=!0,h||b||(0,r(d[5]).loadNamespaces)(p,w,function(){x.current&&I(j)}),e&&p&&p.on(e,n),t&&p&&p.store.on(t,n),function(){x.current=!1,e&&p&&e.split(' ').forEach(function(e){return p.off(e,n)}),t&&p&&t.split(' ').forEach(function(e){return p.store.off(e,n)})}},[p,w.join()]);var E=(0,n.useRef)(!0);(0,n.useEffect)(function(){x.current&&!E.current&&I(j),E.current=!1},[p]);var D=[S,p,h];if(D.t=S,D.i18n=p,D.ready=h,h)return D;if(!h&&!b)return D;throw new Promise(function(e){(0,r(d[5]).loadNamespaces)(p,w,function(){e()})})};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[3]);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function i(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return function(l){function p(p){var s=p.forwardedRef,O=(0,o.default)(p,c),w=(0,r(d[5]).useTranslation)(t,O),b=(0,n.default)(w,3),y=b[0],j=b[1],h=b[2],v=u(u({},O),{},{t:y,i18n:j,tReady:h});return i.withRef&&s?v.ref=s:!i.withRef&&s&&(v.forwardedRef=s),f.default.createElement(l,v)}p.displayName="withI18nextTranslation(".concat((0,r(d[6]).getDisplayName)(l),")"),p.WrappedComponent=l;return i.withRef?f.default.forwardRef(function(t,n){return f.default.createElement(p,r(d[7])({},t,{forwardedRef:n}))}):p}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),f=r(d[0])(r(d[4])),c=["forwardedRef"];function i(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);n&&(f=f.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,f)}return o}function u(n){for(var o=1;o2&&void 0!==arguments[2]?arguments[2]:{}).i18n,u=((0,n.useContext)(r(d[1]).I18nContext)||{}).i18n,c=s||u||(0,r(d[1]).getI18n)();if(c.options&&c.options.isClone)return;t&&!c.initializedStoreOnce&&(c.services.resourceStore.data=t,c.options.ns=Object.values(t).reduce(function(n,t){return Object.keys(t).forEach(function(t){n.indexOf(t)<0&&n.push(t)}),n},c.options.ns),c.initializedStoreOnce=!0,c.isInitialized=!0);o&&!c.initializedLanguageOnce&&(c.changeLanguage(o),c.initializedLanguageOnce=!0)};var n=r(d[0])},607,[15,601]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={Agent:!0,AgentProvider:!0,indyLedgers:!0,components:!0,Button:!0,ButtonType:!0,CheckBoxRow:!0,CredentialCard:!0,InfoBox:!0,InfoBoxType:!0,ErrorModal:!0,NetInfo:!0,Record:!0,InfoTextBox:!0,ToastType:!0,toastConfig:!0,AttachTourStep:!0,homeTourSteps:!0,TourBox:!0,HomeContentView:!0,contexts:!0,AuthProvider:!0,useAuth:!0,CommonUtilProvider:!0,NetworkProvider:!0,useTour:!0,TourProvider:!0,defaultConfiguration:!0,RootStack:!0,AttemptLockout:!0,Developer:!0,OnboardingPages:!0,createStyles:!0,Splash:!0,Terms:!0,UseBiometry:!0,types:!0,LocalStorageKeys:!0,EventTypes:!0,initLanguages:!0,initStoredLanguage:!0,translationResources:!0,ConfigurationProvider:!0,useConfiguration:!0,defaultState:!0,mergeReducers:!0,StoreProvider:!0,StoreContext:!0,useStore:!0,Store:!0,DispatchAction:!0,reducer:!0,ImageAssets:!0,ColorPallet:!0,theme:!0,NavigationTheme:!0,ThemeProvider:!0,useTheme:!0,AnimatedComponentsProvider:!0,useAnimatedComponents:!0,animatedComponents:!0,testIdWithKey:!0,Screens:!0,Stacks:!0,TabStacks:!0,statusBarStyleForColor:!0,StatusBarStyles:!0,BifoldError:!0};Object.defineProperty(e,"Agent",{enumerable:!0,get:function(){return r(d[0]).Agent}}),Object.defineProperty(e,"AgentProvider",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"AnimatedComponentsProvider",{enumerable:!0,get:function(){return r(d[1]).AnimatedComponentsProvider}}),Object.defineProperty(e,"AttachTourStep",{enumerable:!0,get:function(){return r(d[2]).AttachTourStep}}),Object.defineProperty(e,"AttemptLockout",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"AuthProvider",{enumerable:!0,get:function(){return r(d[3]).AuthProvider}}),Object.defineProperty(e,"BifoldError",{enumerable:!0,get:function(){return r(d[4]).BifoldError}}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"ButtonType",{enumerable:!0,get:function(){return f.ButtonType}}),Object.defineProperty(e,"CheckBoxRow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ColorPallet",{enumerable:!0,get:function(){return r(d[5]).ColorPallet}}),Object.defineProperty(e,"CommonUtilProvider",{enumerable:!0,get:function(){return r(d[6]).CommonUtilProvider}}),Object.defineProperty(e,"ConfigurationProvider",{enumerable:!0,get:function(){return r(d[7]).ConfigurationProvider}}),Object.defineProperty(e,"CredentialCard",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Developer",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"DispatchAction",{enumerable:!0,get:function(){return I.DispatchAction}}),Object.defineProperty(e,"ErrorModal",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return r(d[8]).EventTypes}}),Object.defineProperty(e,"HomeContentView",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"ImageAssets",{enumerable:!0,get:function(){return r(d[5]).Assets}}),Object.defineProperty(e,"InfoBox",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"InfoBoxType",{enumerable:!0,get:function(){return b.InfoBoxType}}),Object.defineProperty(e,"InfoTextBox",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"LocalStorageKeys",{enumerable:!0,get:function(){return r(d[8]).LocalStorageKeys}}),Object.defineProperty(e,"NavigationTheme",{enumerable:!0,get:function(){return r(d[5]).NavigationTheme}}),Object.defineProperty(e,"NetInfo",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"NetworkProvider",{enumerable:!0,get:function(){return r(d[9]).NetworkProvider}}),Object.defineProperty(e,"OnboardingPages",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Record",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"RootStack",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"Screens",{enumerable:!0,get:function(){return r(d[10]).Screens}}),Object.defineProperty(e,"Splash",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"Stacks",{enumerable:!0,get:function(){return r(d[10]).Stacks}}),Object.defineProperty(e,"StatusBarStyles",{enumerable:!0,get:function(){return r(d[11]).StatusBarStyles}}),Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"StoreContext",{enumerable:!0,get:function(){return r(d[12]).StoreContext}}),Object.defineProperty(e,"StoreProvider",{enumerable:!0,get:function(){return r(d[12]).StoreProvider}}),Object.defineProperty(e,"TabStacks",{enumerable:!0,get:function(){return r(d[10]).TabStacks}}),Object.defineProperty(e,"Terms",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return r(d[13]).ThemeProvider}}),Object.defineProperty(e,"ToastType",{enumerable:!0,get:function(){return r(d[14]).ToastType}}),Object.defineProperty(e,"TourBox",{enumerable:!0,get:function(){return r(d[15]).TourBox}}),Object.defineProperty(e,"TourProvider",{enumerable:!0,get:function(){return r(d[16]).TourProvider}}),Object.defineProperty(e,"UseBiometry",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"animatedComponents",{enumerable:!0,get:function(){return r(d[17]).animatedComponents}}),e.contexts=e.components=void 0,Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return h.createStyles}}),Object.defineProperty(e,"defaultConfiguration",{enumerable:!0,get:function(){return r(d[18]).defaultConfiguration}}),Object.defineProperty(e,"defaultState",{enumerable:!0,get:function(){return r(d[12]).defaultState}}),Object.defineProperty(e,"homeTourSteps",{enumerable:!0,get:function(){return r(d[19]).homeTourSteps}}),Object.defineProperty(e,"indyLedgers",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"initLanguages",{enumerable:!0,get:function(){return r(d[20]).initLanguages}}),Object.defineProperty(e,"initStoredLanguage",{enumerable:!0,get:function(){return r(d[20]).initStoredLanguage}}),Object.defineProperty(e,"mergeReducers",{enumerable:!0,get:function(){return r(d[12]).mergeReducers}}),Object.defineProperty(e,"reducer",{enumerable:!0,get:function(){return I.reducer}}),Object.defineProperty(e,"statusBarStyleForColor",{enumerable:!0,get:function(){return r(d[11]).statusBarStyleForColor}}),Object.defineProperty(e,"testIdWithKey",{enumerable:!0,get:function(){return r(d[21]).testIdWithKey}}),Object.defineProperty(e,"theme",{enumerable:!0,get:function(){return r(d[5]).theme}}),Object.defineProperty(e,"toastConfig",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"translationResources",{enumerable:!0,get:function(){return r(d[20]).translationResources}}),e.types=void 0,Object.defineProperty(e,"useAnimatedComponents",{enumerable:!0,get:function(){return r(d[1]).useAnimatedComponents}}),Object.defineProperty(e,"useAuth",{enumerable:!0,get:function(){return r(d[3]).useAuth}}),Object.defineProperty(e,"useConfiguration",{enumerable:!0,get:function(){return r(d[7]).useConfiguration}}),Object.defineProperty(e,"useStore",{enumerable:!0,get:function(){return r(d[12]).useStore}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return r(d[13]).useTheme}}),Object.defineProperty(e,"useTour",{enumerable:!0,get:function(){return r(d[22]).useTour}});var n=r(d[23])(r(d[24])),o=r(d[23])(r(d[25])),u=L(r(d[26]));e.components=u;var f=L(r(d[27])),c=r(d[23])(r(d[28])),l=r(d[23])(r(d[29])),b=L(r(d[30])),p=r(d[23])(r(d[31])),s=r(d[23])(r(d[32])),y=r(d[23])(r(d[33])),P=r(d[23])(r(d[34])),O=r(d[23])(r(d[35])),j=r(d[23])(r(d[36])),S=L(r(d[37]));e.contexts=S;var v=r(d[23])(r(d[38])),T=r(d[23])(r(d[39])),C=r(d[23])(r(d[40])),h=L(r(d[41])),A=r(d[23])(r(d[42])),B=r(d[23])(r(d[43])),x=r(d[23])(r(d[44])),k=L(r(d[45]));e.types=k;var I=L(r(d[46]));function w(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(w=function(t){return t?o:n})(t)}function L(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=w(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=f?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=t[c]}return u.default=t,o&&o.set(t,u),u}Object.keys(r(d[47])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[47])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[47])[n]}}))})},608,[609,1955,2191,2193,2877,1961,2878,2880,2186,2881,2911,2912,2194,1960,2913,2914,2915,1956,2942,3092,2920,2185,2192,3,2929,2909,3093,2885,3074,3096,2884,3103,3104,2945,3076,3105,2953,3106,3108,3109,2964,2965,3050,3073,3077,3356,2195,2955]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&("get"in s?n.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,s)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.CacheRepository=e.PersistedLruCache=e.IsValidMessageType=e.parseMessageType=e.Buffer=e.TypedArrayEncoder=e.isValidJweStructure=e.isJsonObject=e.JsonTransformer=e.JsonEncoder=e.ReturnRouteTypes=e.AttachmentData=e.Attachment=e.TransportService=e.InjectionSymbols=e.getDirFromFilePath=e.Repository=e.InMemoryMessageRepository=e.KeyDerivationMethod=e.DidCommMimeType=e.MessageSender=e.Dispatcher=e.AgentMessage=e.AgentConfig=e.MessageHandlerRegistry=e.FeatureRegistry=e.EventEmitter=e.BaseAgent=e.Agent=e.MessageReceiver=void 0,r(d[0]),Object.defineProperty(e,"MessageReceiver",{enumerable:!0,get:function(){return r(d[1]).MessageReceiver}}),Object.defineProperty(e,"Agent",{enumerable:!0,get:function(){return r(d[2]).Agent}}),Object.defineProperty(e,"BaseAgent",{enumerable:!0,get:function(){return r(d[3]).BaseAgent}}),n(r(d[4]),e),Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return r(d[5]).EventEmitter}}),Object.defineProperty(e,"FeatureRegistry",{enumerable:!0,get:function(){return r(d[6]).FeatureRegistry}}),Object.defineProperty(e,"MessageHandlerRegistry",{enumerable:!0,get:function(){return r(d[7]).MessageHandlerRegistry}}),n(r(d[8]),e),Object.defineProperty(e,"AgentConfig",{enumerable:!0,get:function(){return r(d[9]).AgentConfig}}),Object.defineProperty(e,"AgentMessage",{enumerable:!0,get:function(){return r(d[10]).AgentMessage}}),Object.defineProperty(e,"Dispatcher",{enumerable:!0,get:function(){return r(d[11]).Dispatcher}}),Object.defineProperty(e,"MessageSender",{enumerable:!0,get:function(){return r(d[12]).MessageSender}}),Object.defineProperty(e,"DidCommMimeType",{enumerable:!0,get:function(){return r(d[13]).DidCommMimeType}}),Object.defineProperty(e,"KeyDerivationMethod",{enumerable:!0,get:function(){return r(d[13]).KeyDerivationMethod}}),n(r(d[14]),e),Object.defineProperty(e,"InMemoryMessageRepository",{enumerable:!0,get:function(){return r(d[15]).InMemoryMessageRepository}}),Object.defineProperty(e,"Repository",{enumerable:!0,get:function(){return r(d[16]).Repository}}),n(r(d[17]),e),n(r(d[18]),e),Object.defineProperty(e,"getDirFromFilePath",{enumerable:!0,get:function(){return r(d[19]).getDirFromFilePath}}),Object.defineProperty(e,"InjectionSymbols",{enumerable:!0,get:function(){return r(d[20]).InjectionSymbols}}),n(r(d[21]),e),Object.defineProperty(e,"TransportService",{enumerable:!0,get:function(){return r(d[22]).TransportService}}),Object.defineProperty(e,"Attachment",{enumerable:!0,get:function(){return r(d[23]).Attachment}}),Object.defineProperty(e,"AttachmentData",{enumerable:!0,get:function(){return r(d[23]).AttachmentData}}),Object.defineProperty(e,"ReturnRouteTypes",{enumerable:!0,get:function(){return r(d[24]).ReturnRouteTypes}}),n(r(d[25]),e),n(r(d[26]),e),n(r(d[27]),e),n(r(d[28]),e),n(r(d[29]),e),n(r(d[30]),e),n(r(d[31]),e),n(r(d[32]),e),n(r(d[33]),e),n(r(d[34]),e),n(r(d[35]),e),n(r(d[36]),e),n(r(d[37]),e),n(r(d[38]),e),Object.defineProperty(e,"JsonEncoder",{enumerable:!0,get:function(){return r(d[39]).JsonEncoder}}),Object.defineProperty(e,"JsonTransformer",{enumerable:!0,get:function(){return r(d[39]).JsonTransformer}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return r(d[39]).isJsonObject}}),Object.defineProperty(e,"isValidJweStructure",{enumerable:!0,get:function(){return r(d[39]).isValidJweStructure}}),Object.defineProperty(e,"TypedArrayEncoder",{enumerable:!0,get:function(){return r(d[39]).TypedArrayEncoder}}),Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return r(d[39]).Buffer}}),n(r(d[40]),e),n(r(d[41]),e),n(r(d[42]),e),Object.defineProperty(e,"parseMessageType",{enumerable:!0,get:function(){return r(d[43]).parseMessageType}}),Object.defineProperty(e,"IsValidMessageType",{enumerable:!0,get:function(){return r(d[43]).IsValidMessageType}}),n(r(d[44]),e),n(r(d[45]),e),Object.defineProperty(e,"PersistedLruCache",{enumerable:!0,get:function(){return r(d[46]).PersistedLruCache}}),Object.defineProperty(e,"CacheRepository",{enumerable:!0,get:function(){return r(d[46]).CacheRepository}});var o={uuid:r(d[47]).uuid,parseInvitationUrl:r(d[48]).parseInvitationUrl};e.utils=o},609,[610,611,1529,1954,1391,1105,1056,1057,623,1394,949,1494,1345,1402,1097,1953,1102,1103,1538,1375,1104,1940,1344,978,972,1020,1586,1920,1485,1531,1593,945,1839,1426,1360,1552,1944,1420,1699,993,1395,612,1368,942,1346,990,1377,953,1946]); -__d(function(g,r,_i2,a,m,_e,d){var t;!(function(t){!(function(e){var n="object"==typeof g?g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=i(t);function i(t,e){return function(n,o){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:o}),e&&e(n,o)}}void 0===n.Reflect?n.Reflect=t:o=i(n.Reflect,o),(function(t){var e=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",u="function"==typeof Object.create,f={__proto__:[]}instanceof Array,c=!u&&!f,s={create:u?function(){return G(Object.create(null))}:f?function(){return G({__proto__:null})}:function(){return G({})},has:c?function(t,n){return e.call(t,n)}:function(t,e){return e in t},get:c?function(t,n){return e.call(t,n)?t[n]:void 0}:function(t,e){return t[e]}},h=Object.getPrototypeOf(Function),p="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,y=p||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?(function(){var t={},e=[],n=(function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t})();return(function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var o=this._keys.length,i=n+1;i=0;--n){var o=t[n],i=o(e);if(!P(i)&&!S(i)){if(!F(i))throw new TypeError;e=i}}return e}function w(t,e,n,o){for(var i=t.length-1;i>=0;--i){var u=t[i],f=u(e,n,o);if(!P(f)&&!S(f)){if(!I(f))throw new TypeError;o=f}}return o}function b(t,e,n){var o=v.get(t);if(P(o)){if(!n)return;o=new y,v.set(t,o)}var i=o.get(e);if(P(i)){if(!n)return;i=new y,o.set(e,i)}return i}function k(t,e,n){var o=E(t,e,n);if(o)return!0;var i=B(e);return!S(i)&&k(t,i,n)}function E(t,e,n){var o=b(e,n,!1);return!P(o)&&!!o.has(t)}function T(t,e,n){var o=E(t,e,n);if(o)return O(t,e,n);var i=B(e);return S(i)?void 0:T(t,i,n)}function O(t,e,n){var o=b(e,n,!1);if(!P(o))return o.get(t)}function j(t,e,n,o){var i=b(n,o,!0);i.set(t,e)}function x(t,e){var n=M(t,e),o=B(t);if(null===o)return n;var i=x(o,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var u=new l,f=[],c=0,s=n;c0)return!0;var i=v.get(e);return i.delete(n),i.size>0||(v.delete(e),!0)})})(o)})()})(t||(t={}))},610,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,n,s){var i,o=arguments.length,c=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,n,s);else for(var u=r.length-1;u>=0;u--)(i=r[u])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},n=this&&this.__param||function(r,t){return function(n,s){t(n,s,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MessageReceiver=void 0;var s=(function(){function r(t,n,s,i,o,c,u,p){_r(_d[0])(this,r),this.inboundTransports=[],this.envelopeService=t,this.transportService=n,this.messageSender=s,this.connectionService=i,this.dispatcher=o,this.messageHandlerRegistry=c,this.agentContextProvider=u,this.logger=p}return _r(_d[1])(r,[{key:"registerInboundTransport",value:function(r){this.inboundTransports.push(r)}},{key:"receiveMessage",value:function(r){var t,n,s,i,o,c=arguments;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=c.length>1&&void 0!==c[1]?c[1]:{},n=t.session,s=t.connection,i=t.contextCorrelationId,this.logger.debug("Agent received message"),u.next=4,_r(_d[2]).awrap(this.agentContextProvider.getContextForInboundMessage(r,{contextCorrelationId:i}));case 4:if(o=u.sent,u.prev=5,!this.isEncryptedMessage(r)){u.next=11;break}return u.next=9,_r(_d[2]).awrap(this.receiveEncryptedMessage(o,r,n));case 9:u.next=17;break;case 11:if(!this.isPlaintextMessage(r)){u.next=16;break}return u.next=14,_r(_d[2]).awrap(this.receivePlaintextMessage(o,r,s));case 14:u.next=17;break;case 16:throw new(_r(_d[3]).AriesFrameworkError)('Unable to parse incoming message: unrecognized format');case 17:return u.prev=17,u.next=20,_r(_d[2]).awrap(o.endSession());case 20:return u.finish(17);case 21:case"end":return u.stop()}},null,this,[[5,,17,21]],Promise)}},{key:"receivePlaintextMessage",value:function(r,t,n){var s,i;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[2]).awrap(this.transformAndValidate(r,t));case 2:return s=o.sent,i=new(_r(_d[4]).InboundMessageContext)(s,{connection:n,agentContext:r}),o.next=6,_r(_d[2]).awrap(this.dispatcher.dispatch(i));case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"receiveEncryptedMessage",value:function(r,t,n){var s,i,o,c,u,p,l,d;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,_r(_d[2]).awrap(this.decryptMessage(r,t));case 2:return s=f.sent,i=s.plaintextMessage,o=s.senderKey,c=s.recipientKey,this.logger.info("Received message with type '"+i['@type']+"', recipient key "+(null===c||void 0===c?void 0:c.fingerprint)+" and sender key "+(null===o||void 0===o?void 0:o.fingerprint),i),f.next=7,_r(_d[2]).awrap(this.findConnectionByMessageKeys(r,s));case 7:return u=f.sent,f.next=10,_r(_d[2]).awrap(this.transformAndValidate(r,i,u));case 10:if(p=f.sent,l=new(_r(_d[4]).InboundMessageContext)(p,{connection:(null===u||void 0===u?void 0:u.isReady)?u:void 0,senderKey:o,recipientKey:c,agentContext:r}),!(o&&c&&p.hasAnyReturnRoute()&&n)){f.next=22;break}this.logger.debug("Storing session for inbound message '"+p.id+"'"),d={recipientKeys:[o],routingKeys:[],senderKey:c},n.keys=d,n.inboundMessage=p,n.connection=null!==u&&void 0!==u?u:void 0,l.sessionId=n.id,this.transportService.saveSession(n),f.next=25;break;case 22:if(!n){f.next=25;break}return f.next=25,_r(_d[2]).awrap(n.close());case 25:return f.next=27,_r(_d[2]).awrap(this.dispatcher.dispatch(l));case 27:case"end":return f.stop()}},null,this,null,Promise)}},{key:"decryptMessage",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[2]).awrap(this.envelopeService.unpackMessage(r,t));case 3:return n.abrupt("return",n.sent);case 6:throw n.prev=6,n.t0=n.catch(0),this.logger.error('Error while decrypting message',{error:n.t0,encryptedMessage:t,errorMessage:n.t0 instanceof Error?n.t0.message:n.t0}),n.t0;case 10:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"isPlaintextMessage",value:function(r){return'object'==typeof r&&null!=r&&'@type'in r}},{key:"isEncryptedMessage",value:function(r){return(0,_r(_d[5]).isValidJweStructure)(r)}},{key:"transformAndValidate",value:function(r,t,n){var s;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,_r(_d[2]).awrap(this.transformMessage(t));case 3:s=i.sent,i.next=12;break;case 6:if(i.prev=6,i.t0=i.catch(0),!n){i.next=11;break}return i.next=11,_r(_d[2]).awrap(this.sendProblemReportMessage(r,i.t0.message,n,t));case 11:throw i.t0;case 12:return i.abrupt("return",s);case 13:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"findConnectionByMessageKeys",value:function(r,t){var n,s;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=t.recipientKey,s=t.senderKey,n&&s){i.next=3;break}return i.abrupt("return",null);case 3:return i.abrupt("return",this.connectionService.findByKeys(r,{senderKey:s,recipientKey:n}));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"transformMessage",value:function(r){var t,n,s;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if((0,_r(_d[6]).replaceLegacyDidSovPrefixOnMessage)(r),t=r['@type'],n=this.messageHandlerRegistry.getMessageClassForMessageType(t)){i.next=5;break}throw new(_r(_d[7]).ProblemReportError)("No message class found for message type \""+t+"\"",{problemCode:_r(_d[7]).ProblemReportReason.MessageParseFailure});case 5:i.prev=5,s=_r(_d[8]).JsonTransformer.fromJSON(r,n),i.next=13;break;case 9:throw i.prev=9,i.t0=i.catch(5),this.logger.error("Error validating message "+r.type,{errors:i.t0,message:JSON.stringify(r)}),new(_r(_d[7]).ProblemReportError)("Error validating message "+r.type,{problemCode:_r(_d[7]).ProblemReportReason.MessageParseFailure});case 13:return i.abrupt("return",s);case 14:case"end":return i.stop()}},null,this,[[5,9]],Promise)}},{key:"sendProblemReportMessage",value:function(r,t,n,s){var i,o,c;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(i=(0,_r(_d[6]).parseMessageType)(s['@type']),!(0,_r(_d[6]).canHandleMessageType)(_r(_d[7]).ProblemReportMessage,i)){u.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)("Not sending problem report in response to problem report: "+t);case 3:if((o=new(_r(_d[7]).ProblemReportMessage)({description:{en:t,code:_r(_d[7]).ProblemReportReason.MessageParseFailure}})).setThread({threadId:s['@id']}),!(c=new(_r(_d[4]).OutboundMessageContext)(o,{agentContext:r,connection:n}))){u.next=9;break}return u.next=9,_r(_d[2]).awrap(this.messageSender.sendMessage(c));case 9:case"end":return u.stop()}},null,this,null,Promise)}}]),r})();s=r([(0,_r(_d[9]).injectable)(),n(6,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.AgentContextProvider)),n(7,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.Logger)),t("design:paramtypes",[_r(_d[11]).EnvelopeService,_r(_d[12]).TransportService,_r(_d[13]).MessageSender,_r(_d[14]).ConnectionService,_r(_d[15]).Dispatcher,_r(_d[16]).MessageHandlerRegistry,Object,Object])],s),e.MessageReceiver=s},611,[7,8,82,612,623,941,942,945,626,1020,1104,1336,1344,1345,1426,1494,1057]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},612,[613,618,619,620,621,622]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AriesFrameworkError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,e)}return r(d[4])(u)})(r(d[5]).BaseError);_e.AriesFrameworkError=e},613,[14,11,9,7,8,614]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.fullStack=_e.BaseError=_e.SEPARATOR_TEXT=void 0;var n=t(r(d[2])),u=t(r(d[3]));_e.SEPARATOR_TEXT="\n\nThe following exception was the direct cause of the above exception:\n\n";var c=(function(t){r(d[4])(f,t);var n,u,c=(n=f,u=e(),function(){var e,t=r(d[0])(n);if(u){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function f(e,t){var n;return r(d[5])(this,f),(n=c.call(this,e)).cause=t,Object.defineProperty(r(d[6])(n),'cause',{value:t,writable:!1,enumerable:!1,configurable:!1}),n}return r(d[7])(f,[{key:"inspect",value:function(){return o(this)}}]),f})(n.default.BaseError);function o(e){for(var t=[],n=e;n;)t.push(n),n=n.cause;return t.map(function(e){return(0,u.default)(e,{customInspect:!1})}).join(_e.SEPARATOR_TEXT)}_e.BaseError=c,_e.fullStack=o},614,[14,11,615,616,9,7,13,8]); -__d(function(g,r,i,a,m,e,d){"use strict";var t="undefined"!=typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,n=Error.captureStackTrace;function c(t){void 0!==t&&o(this,"message",{configurable:!0,value:t,writable:!0});var c=this.constructor.name;void 0!==c&&c!==this.name&&o(this,"name",{configurable:!0,value:c,writable:!0}),n(this,this.constructor)}void 0===n&&(n=function(t){var n=new Error;o(t,"stack",{configurable:!0,get:function(){var t=n.stack;return o(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(n){o(t,"stack",{configurable:!0,value:n,writable:!0})}})}),c.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:c,writable:!0}});var u=(function(){function t(t,n){return o(t,"name",{configurable:!0,value:n})}try{var n=function(){};if(t(n,"foo"),"foo"===n.name)return t}catch(t){}})();(m.exports=function(o,n){if(null==n||n===Error)n=c;else if("function"!=typeof n)throw new TypeError("super_ should be a function");var f;if("string"==typeof o)f=o,o=void 0!==t?function(){return t(n,arguments,this.constructor)}:function(){n.apply(this,arguments)},void 0!==u&&(u(o,f),f=void 0);else if("function"!=typeof o)throw new TypeError("constructor should be either a string or a function");o.super_=o.super=n;var s={constructor:{configurable:!0,value:o,writable:!0}};return void 0!==f&&(s.name={configurable:!0,value:f,writable:!0}),o.prototype=Object.create(n.prototype,s),o}).BaseError=c},615,[]); -__d(function(g,r,_i,a,_m,_e,d){var t='function'==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,'size'):null,n=t&&e&&'function'==typeof e.get?e.get:null,o=t&&Map.prototype.forEach,i='function'==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,'size'):null,u=i&&c&&'function'==typeof c.get?c.get:null,l=i&&Set.prototype.forEach,f='function'==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p='function'==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y='function'==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,s=Object.prototype.toString,S=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,j=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,x=Array.prototype.concat,_=Array.prototype.join,k=Array.prototype.slice,E=Math.floor,M='function'==typeof BigInt?BigInt.prototype.valueOf:null,W=Object.getOwnPropertySymbols,L='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?Symbol.prototype.toString:null,$='function'==typeof Symbol&&'object'==typeof Symbol.iterator,A='function'==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$||'symbol')?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,q=('function'==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if('number'==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var i=String(o),c=m.call(e,i.length+1);return v.call(i,n,'$&_')+'.'+v.call(v.call(c,/([0-9]{3})/g,'$&_'),/_$/,'')}}return v.call(e,n,'$&_')}var N=G(r(d[0]).custom)?r(d[0]).custom:null;function P(t,e,n){var o='double'===(n.quoteStyle||e)?'"':"'";return o+t+o}function R(t){return v.call(String(t),/"/g,'"')}function D(t){return!('[object Array]'!==V(t)||A&&'object'==typeof t&&A in t)}function B(t){return!('[object Date]'!==V(t)||A&&'object'==typeof t&&A in t)}function C(t){return!('[object RegExp]'!==V(t)||A&&'object'==typeof t&&A in t)}function z(t){return!('[object Error]'!==V(t)||A&&'object'==typeof t&&A in t)}function F(t){return!('[object String]'!==V(t)||A&&'object'==typeof t&&A in t)}function H(t){return!('[object Number]'!==V(t)||A&&'object'==typeof t&&A in t)}function U(t){return!('[object Boolean]'!==V(t)||A&&'object'==typeof t&&A in t)}function G(t){if($)return t&&'object'==typeof t&&t instanceof Symbol;if('symbol'==typeof t)return!0;if(!t||'object'!=typeof t||!L)return!1;try{return L.call(t),!0}catch(t){}return!1}function J(t){if(!t||'object'!=typeof t||!M)return!1;try{return M.call(t),!0}catch(t){}return!1}_m.exports=function t(e,i,c,f){var p=i||{};if(Q(p,'quoteStyle')&&'single'!==p.quoteStyle&&'double'!==p.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(p,'maxStringLength')&&('number'==typeof p.maxStringLength?p.maxStringLength<0&&p.maxStringLength!==1/0:null!==p.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!Q(p,'customInspect')||p.customInspect;if('boolean'!=typeof y&&'symbol'!==y)throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');if(Q(p,'indent')&&null!==p.indent&&'\t'!==p.indent&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(p,'numericSeparator')&&'boolean'!=typeof p.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=p.numericSeparator;if(void 0===e)return'undefined';if(null===e)return'null';if('boolean'==typeof e)return e?'true':'false';if('string'==typeof e)return it(e,p);if('number'==typeof e){if(0===e)return 1/0/e>0?'0':'-0';var S=String(e);return s?I(e,S):S}if('bigint'==typeof e){var h=String(e)+'n';return s?I(e,h):h}var j=void 0===p.depth?5:p.depth;if(void 0===c&&(c=0),c>=j&&j>0&&'object'==typeof e)return D(e)?'[Array]':'[Object]';var w=pt(p,c);if(void 0===f)f=[];else if(Y(f,e)>=0)return'[Circular]';function E(e,n,o){if(n&&(f=k.call(f)).push(n),o){var i={depth:p.depth};return Q(p,'quoteStyle')&&(i.quoteStyle=p.quoteStyle),t(e,i,c+1,f)}return t(e,p,c+1,f)}if('function'==typeof e&&!C(e)){var W=X(e),K=gt(e,E);return'[Function'+(W?': '+W:' (anonymous)')+']'+(K.length>0?' { '+_.call(K,', ')+' }':'')}if(G(e)){var ct=$?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,'$1'):L.call(e);return'object'!=typeof e||$?ct:ut(ct)}if(ot(e)){for(var bt='<'+O.call(String(e.nodeName)),st=e.attributes||[],St=0;St'}if(D(e)){if(0===e.length)return'[]';var ht=gt(e,E);return w&&!ft(ht)?'['+yt(ht,w)+']':'[ '+_.call(ht,', ')+' ]'}if(z(e)){var mt=gt(e,E);return'cause'in Error.prototype||!('cause'in e)||T.call(e,'cause')?0===mt.length?'['+String(e)+']':'{ ['+String(e)+'] '+_.call(mt,', ')+' }':'{ ['+String(e)+'] '+_.call(x.call('[cause]: '+E(e.cause),mt),', ')+' }'}if('object'==typeof e&&y){if(N&&'function'==typeof e[N]&&r(d[0]))return r(d[0])(e,{depth:j-c});if('symbol'!==y&&'function'==typeof e.inspect)return e.inspect()}if(Z(e)){var vt=[];return o&&o.call(e,function(t,n){vt.push(E(n,e,!0)+' => '+E(t,e))}),at('Map',n.call(e),vt,w)}if(rt(e)){var dt=[];return l&&l.call(e,function(t){dt.push(E(t,e))}),at('Set',u.call(e),dt,w)}if(tt(e))return lt('WeakMap');if(nt(e))return lt('WeakSet');if(et(e))return lt('WeakRef');if(H(e))return ut(E(Number(e)));if(J(e))return ut(E(M.call(e)));if(U(e))return ut(b.call(e));if(F(e))return ut(E(String(e)));if(!B(e)&&!C(e)){var jt=gt(e,E),Ot=q?q(e)===Object.prototype:e instanceof Object||e.constructor===Object,wt=e instanceof Object?'':'null prototype',xt=!Ot&&A&&Object(e)===e&&A in e?m.call(V(e),8,-1):wt?'Object':'',_t=(Ot||'function'!=typeof e.constructor?'':e.constructor.name?e.constructor.name+' ':'')+(xt||wt?'['+_.call(x.call([],xt||[],wt||[]),': ')+'] ':'');return 0===jt.length?_t+'{}':w?_t+'{'+yt(jt,w)+'}':_t+'{ '+_.call(jt,', ')+' }'}return String(e)};var K=Object.prototype.hasOwnProperty||function(t){return t in this};function Q(t,e){return K.call(t,e)}function V(t){return s.call(t)}function X(t){if(t.name)return t.name;var e=h.call(S.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Y(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,o=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,o='... '+n+' more character'+(n>1?'s':'');return it(m.call(t,0,e.maxStringLength),e)+o}return P(v.call(v.call(t,/(['\\])/g,'\\$1'),/[\x00-\x1f]/g,ct),'single',e)}function ct(t){var e=t.charCodeAt(0),n={8:'b',9:'t',10:'n',12:'f',13:'r'}[e];return n?'\\'+n:'\\x'+(e<16?'0':'')+j.call(e.toString(16))}function ut(t){return'Object('+t+')'}function lt(t){return t+' { ? }'}function at(t,e,n,o){return t+' ('+e+') {'+(o?yt(n,o):_.call(n,', '))+'}'}function ft(t){for(var e=0;e=0)return!1;return!0}function pt(t,e){var n;if('\t'===t.indent)n='\t';else{if(!('number'==typeof t.indent&&t.indent>0))return null;n=_.call(Array(t.indent+1),' ')}return{base:n,prev:_.call(Array(e+1),n)}}function yt(t,e){if(0===t.length)return'';var n='\n'+e.prev+e.base;return n+_.call(t,','+n)+'\n'+e.prev}function gt(t,e){var n=D(t),o=[];if(n){o.length=t.length;for(var i=0;i=0;c--)(n=e[c])&&(f=(i<3?n(f):i>3?n(t,r,f):n(t,r))||f);return i>3&&f&&Object.defineProperty(t,r,f),f},t=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Feature=void 0;var r=(function(){function e(t){_r(_d[0])(this,e),t&&(this.id=t.id,this.type=t.type)}return _r(_d[1])(e,[{key:"combine",value:function(t){if(t.id!==this.id)throw new(_r(_d[2]).AriesFrameworkError)('Can only combine with a feature with the same id');var r=_r(_d[3]).JsonTransformer.toJSON(this),o=_r(_d[3]).JsonTransformer.toJSON(t);for(var n in o)try{Array.isArray(o[n])?r[n]=_r(_d[4])(new Set([].concat(_r(_d[4])(r[n]),_r(_d[4])(o[n])))):r[n]=o[n]}catch(e){r[n]=o[n]}return _r(_d[3]).JsonTransformer.fromJSON(r,e)}},{key:"toJSON",value:function(){return _r(_d[3]).JsonTransformer.toJSON(this)}}]),e})();e([(0,_r(_d[5]).IsString)(),(0,_r(_d[6]).Expose)({name:'feature-type'}),t("design:type",String)],r.prototype,"type",void 0),_e.Feature=r},625,[7,8,612,626,42,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonTransformer=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"toJSON",value:function(n){return(0,r(d[2]).instanceToPlain)(n,{exposeDefaultValues:!0})}},{key:"fromJSON",value:function(n,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).validate,l=void 0===o||o,s=(0,r(d[2]).plainToInstance)(t,n,{exposeDefaultValues:!0});if(!l)return s;if(!s)throw new(r(d[3]).ClassValidationError)('Cannot validate instance of ',{classType:Object.getPrototypeOf(t).name});return r(d[4]).MessageValidator.validateSync(s),s}},{key:"clone",value:function(n){return(0,r(d[2]).instanceToInstance)(n,{exposeDefaultValues:!0,enableCircularCheck:!0,enableImplicitConversion:!0,ignoreDecorators:!0})}},{key:"serialize",value:function(n){return JSON.stringify(this.toJSON(n))}},{key:"deserialize",value:function(n,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).validate,l=void 0===o||o;return this.fromJSON(JSON.parse(n),t,{validate:l})}}]),n})();e.JsonTransformer=n},626,[7,8,627,621,661]); -__d(function(g,r,i,a,_m,e,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(n,s,t,o){void 0===o&&(o=t),Object.defineProperty(n,o,{enumerable:!0,get:function(){return s[t]}})}:function(n,s,t,o){void 0===o&&(o=t),n[o]=s[t]}),s=this&&this.__exportStar||function(s,t){for(var o in s)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||n(t,s,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeArray=e.deserialize=e.serialize=e.classToClassFromExist=e.instanceToInstance=e.plainToClassFromExist=e.plainToInstance=e.plainToClass=e.classToPlainFromExist=e.instanceToPlain=e.classToPlain=e.ClassTransformer=void 0,Object.defineProperty(e,"ClassTransformer",{enumerable:!0,get:function(){return r(d[0]).ClassTransformer}}),s(r(d[1]),e),s(r(d[2]),e),s(r(d[3]),e);var t=new(r(d[0]).ClassTransformer);e.classToPlain=function(n,s){return t.instanceToPlain(n,s)},e.instanceToPlain=function(n,s){return t.instanceToPlain(n,s)},e.classToPlainFromExist=function(n,s,o){return t.classToPlainFromExist(n,s,o)},e.plainToClass=function(n,s,o){return t.plainToInstance(n,s,o)},e.plainToInstance=function(n,s,o){return t.plainToInstance(n,s,o)},e.plainToClassFromExist=function(n,s,o){return t.plainToClassFromExist(n,s,o)},e.instanceToInstance=function(n,s){return t.instanceToInstance(n,s)},e.classToClassFromExist=function(n,s,o){return t.classToClassFromExist(n,s,o)},e.serialize=function(n,s){return t.serialize(n,s)},e.deserialize=function(n,s,o){return t.deserialize(n,s,o)},e.deserializeArray=function(n,s,o){return t.deserializeArray(n,s,o)}},627,[628,638,646,630]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClassTransformer=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"instanceToPlain",value:function(n,o){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_PLAIN,r(d[4])({},r(d[5]).defaultOptions,o)).transform(void 0,n,void 0,void 0,void 0,void 0)}},{key:"classToPlainFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_PLAIN,r(d[4])({},r(d[5]).defaultOptions,t)).transform(o,n,void 0,void 0,void 0,void 0)}},{key:"plainToInstance",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.PLAIN_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(void 0,o,n,void 0,void 0,void 0)}},{key:"plainToClassFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.PLAIN_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(n,o,void 0,void 0,void 0,void 0)}},{key:"instanceToInstance",value:function(n,o){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,o)).transform(void 0,n,void 0,void 0,void 0,void 0)}},{key:"classToClassFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(o,n,void 0,void 0,void 0,void 0)}},{key:"serialize",value:function(n,o){return JSON.stringify(this.instanceToPlain(n,o))}},{key:"deserialize",value:function(n,o,t){var s=JSON.parse(o);return this.plainToInstance(n,s,t)}},{key:"deserializeArray",value:function(n,o,t){var s=JSON.parse(o);return this.plainToInstance(n,s,t)}}]),n})();e.ClassTransformer=n},628,[7,8,629,630,4,637]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return n(t,o);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,o):void 0}}function n(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n5&&void 0!==arguments[5]?arguments[5]:0;if(Array.isArray(n)||n instanceof Set){var l=p&&this.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?i(p):[];return n.forEach(function(t,n){var i=o?o[n]:void 0;if(u.options.enableCircularCheck&&u.isCircular(t))u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(l instanceof Set?l.add(t):l.push(t));else{var p;if('function'!=typeof s&&s&&s.options&&s.options.discriminator&&s.options.discriminator.property&&s.options.discriminator.subTypes){if(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){p=s.options.discriminator.subTypes.find(function(o){return o.name===t[s.options.discriminator.property]});var f={newObject:l,object:t,property:void 0},y=s.typeFunction(f);p=void 0===p?y:p.value,s.options.keepDiscriminatorProperty||delete t[s.options.discriminator.property]}u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(p=t.constructor),u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN&&(t[s.options.discriminator.property]=s.options.discriminator.subTypes.find(function(o){return o.value===t.constructor}).name)}else p=s;var T=u.transform(i,t,p,void 0,t instanceof Map,c+1);l instanceof Set?l.add(T):l.push(T)}}),l}if(s!==String||f){if(s!==Number||f){if(s!==Boolean||f){if((s===Date||n instanceof Date)&&!f)return n instanceof Date?new Date(n.valueOf()):null===n||void 0===n?n:new Date(n);if((0,r(d[3]).getGlobal)().Buffer&&(s===Buffer||n instanceof Buffer)&&!f)return null===n||void 0===n?n:Buffer.from(n);if((0,r(d[3]).isPromise)(n)&&!f)return new Promise(function(t,o){n.then(function(o){return t(u.transform(void 0,o,s,void 0,void 0,c+1))},o)});if(f||null===n||'object'!=typeof n||'function'!=typeof n.then){if('object'==typeof n&&null!==n){s||n.constructor===Object||(Array.isArray(n)||n.constructor!==Array)&&(s=n.constructor),!s&&o&&(s=o.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);var y=this.getKeys(s,n,f),T=o||{};o||this.transformationType!==r(d[2]).TransformationType.PLAIN_TO_CLASS&&this.transformationType!==r(d[2]).TransformationType.CLASS_TO_CLASS||(T=f?new Map:s?new s:{});for(var v,S=function(t){if('__proto__'===t||'constructor'===t)return"continue";var i=t,p=t,l=t;if(!u.options.ignoreDecorators&&s)if(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){var y=r(d[4]).defaultMetadataStorage.findExposeMetadataByCustomName(s,t);y&&(l=y.propertyName,p=y.propertyName)}else if(u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN||u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS){var v=r(d[4]).defaultMetadataStorage.findExposeMetadata(s,t);v&&v.options&&v.options.name&&(p=v.options.name)}var S=void 0,h=void 0,A=(S=u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?n[i]:n instanceof Map?n.get(i):n[i]instanceof Function?n[i]():n[i])instanceof Map;if(s&&f)h=s;else if(s){var _=r(d[4]).defaultMetadataStorage.findTypeMetadata(s,l);if(_){var C={newObject:T,object:n,property:l},L=_.typeFunction?_.typeFunction(C):_.reflectedType;_.options&&_.options.discriminator&&_.options.discriminator.property&&_.options.discriminator.subTypes?n[i]instanceof Array?h=_:(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS&&(h=void 0===(h=_.options.discriminator.subTypes.find(function(t){if(S&&S instanceof Object&&_.options.discriminator.property in S)return t.name===S[_.options.discriminator.property]}))?L:h.value,_.options.keepDiscriminatorProperty||S&&S instanceof Object&&_.options.discriminator.property in S&&delete S[_.options.discriminator.property]),u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(h=S.constructor),u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN&&S&&(S[_.options.discriminator.property]=_.options.discriminator.subTypes.find(function(t){return t.value===S.constructor}).name)):h=L,A=A||_.reflectedType===Map}else if(u.options.targetMaps)u.options.targetMaps.filter(function(t){return t.target===s&&!!t.properties[l]}).forEach(function(t){return h=t.properties[l]});else if(u.options.enableImplicitConversion&&u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){var b=Reflect.getMetadata('design:type',s.prototype,l);b&&(h=b)}}var M=Array.isArray(n[i])?u.getReflectedType(s,l):void 0,O=o?o[i]:void 0;if(T.constructor.prototype){var x=Object.getOwnPropertyDescriptor(T.constructor.prototype,p);if((u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS||u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS)&&(x&&!x.set||T[p]instanceof Function))return"continue"}if(u.options.enableCircularCheck&&u.isCircular(S)){if(u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS){var P=S;(void 0!==(P=u.applyCustomTransformations(P,s,t,n,u.transformationType))||u.options.exposeUnsetFields)&&(T instanceof Map?T.set(p,P):T[p]=P)}}else{var k,N=u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?p:t;u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN?(k=n[N],k=u.applyCustomTransformations(k,s,N,n,u.transformationType),k=n[N]===k?S:k,k=u.transform(O,k,h,M,A,c+1)):void 0===S&&u.options.exposeDefaultValues?k=T[p]:(k=u.transform(O,S,h,M,A,c+1),k=u.applyCustomTransformations(k,s,N,n,u.transformationType)),(void 0!==k||u.options.exposeUnsetFields)&&(T instanceof Map?T.set(p,k):T[p]=k)}},h=t(y);!(v=h()).done;)S(v.value);return this.options.enableCircularCheck&&this.recursionStack.delete(n),T}return n}return n}return null===n||void 0===n?n:Boolean(n)}return null===n||void 0===n?n:Number(n)}return null===n||void 0===n?n:String(n)}},{key:"applyCustomTransformations",value:function(t,o,n,i,s){var p=this,f=r(d[4]).defaultMetadataStorage.findTransformMetadatas(o,n,this.transformationType);return void 0!==this.options.version&&(f=f.filter(function(t){return!t.options||p.checkVersion(t.options.since,t.options.until)})),(f=this.options.groups&&this.options.groups.length?f.filter(function(t){return!t.options||p.checkGroups(t.options.groups)}):f.filter(function(t){return!t.options||!t.options.groups||!t.options.groups.length})).forEach(function(o){t=o.transformFn({value:t,key:n,obj:i,type:s,options:p.options})}),t}},{key:"isCircular",value:function(t){return this.recursionStack.has(t)}},{key:"getReflectedType",value:function(t,o){if(t){var n=r(d[4]).defaultMetadataStorage.findTypeMetadata(t,o);return n?n.reflectedType:void 0}}},{key:"getKeys",value:function(t,o,n){var i=this,s=r(d[4]).defaultMetadataStorage.getStrategy(t);'none'===s&&(s=this.options.strategy||'exposeAll');var p=[];if(('exposeAll'===s||n)&&(p=o instanceof Map?Array.from(o.keys()):Object.keys(o)),n)return p;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){var f=r(d[4]).defaultMetadataStorage.getExposedProperties(t,this.transformationType),u=r(d[4]).defaultMetadataStorage.getExcludedProperties(t,this.transformationType);p=[].concat(r(d[5])(f),r(d[5])(u))}if(!this.options.ignoreDecorators&&t){var c=r(d[4]).defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS&&(c=c.map(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return n&&n.options&&n.options.name?n.options.name:o})),p=this.options.excludeExtraneousValues?c:p.concat(c);var l=r(d[4]).defaultMetadataStorage.getExcludedProperties(t,this.transformationType);l.length>0&&(p=p.filter(function(t){return!l.includes(t)})),void 0!==this.options.version&&(p=p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!n||!n.options||i.checkVersion(n.options.since,n.options.until)})),p=this.options.groups&&this.options.groups.length?p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!n||!n.options||i.checkGroups(n.options.groups)}):p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!(n&&n.options&&n.options.groups&&n.options.groups.length)})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(p=p.filter(function(t){return i.options.excludePrefixes.every(function(o){return t.substr(0,o.length)!==o})})),p=p.filter(function(t,o,n){return n.indexOf(t)===o})}},{key:"checkVersion",value:function(t,o){var n=!0;return n&&t&&(n=this.options.version>=t),n&&o&&(n=this.options.version=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o0&&void 0!==arguments[0]?arguments[0]:{};return function(n,o){r(d[0]).defaultMetadataStorage.addExcludeMetadata({target:n instanceof Function?n:n.constructor,propertyName:o,options:t})}}},639,[635]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Expose=void 0,e.Expose=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(o,n){r(d[0]).defaultMetadataStorage.addExposeMetadata({target:o instanceof Function?o:o.constructor,propertyName:n,options:t})}}},640,[635]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransformInstanceToInstance=void 0,e.TransformInstanceToInstance=function(n){return function(t,o,c){var s=new(r(d[0]).ClassTransformer),f=c.value;c.value=function(){for(var t=arguments.length,o=new Array(t),c=0;c1&&void 0!==arguments[1]?arguments[1]:{};return function(n,f){r(d[0]).defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:f,transformFn:t,options:o})}}},644,[635]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Type=void 0,e.Type=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(o,c){var p=Reflect.getMetadata('design:type',o,c);r(d[0]).defaultMetadataStorage.addTypeMetadata({target:o.constructor,propertyName:c,reflectedType:p,typeFunction:t,options:n})}}},645,[635]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),n(r(d[12]),e),n(r(d[13]),e)},646,[647,648,649,650,651,652,653,654,655,656,657,658,659,660]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]).shouldPolyfill()&&Object.defineProperty(Intl,'PluralRules',{value:r(d[1]).PluralRules,writable:!0,enumerable:!1,configurable:!0})},482,[483,484]); +__d(function(g,r,i,a,m,e,d){"use strict";function l(l){if(!l)return!0;var n=Array.isArray(l)?l:[l];return Intl.PluralRules.supportedLocalesOf(n).length===n.length}Object.defineProperty(e,"__esModule",{value:!0}),e.shouldPolyfill=void 0,e.shouldPolyfill=function(n){return!('PluralRules'in Intl&&'one'!==new Intl.PluralRules('en',{minimumFractionDigits:2}).select(1)&&l(n))}},483,[]); +__d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PluralRules=void 0;var t=r(_d[0]).__importDefault(r(_d[1]));function l(t,l){if(!(t instanceof n))throw new TypeError("Method Intl.PluralRules.prototype."+l+" called on incompatible receiver "+String(t))}function o(t,l,o,u){var c=u.IntegerDigits,s=u.NumberOfFractionDigits,f=u.FractionDigits;return n.localeData[t].fn(s?c+"."+f:c,'ordinal'===l)}var n=(function(){function n(l,o){if(!(this&&this instanceof n?this.constructor:void 0))throw new TypeError("Intl.PluralRules must be called with 'new'");return r(_d[2]).InitializePluralRules(this,l,o,{availableLocales:n.availableLocales,relevantExtensionKeys:n.relevantExtensionKeys,localeData:n.localeData,getDefaultLocale:n.getDefaultLocale,getInternalSlots:t.default})}return n.prototype.resolvedOptions=function(){l(this,'resolvedOptions');var o=Object.create(null),u=t.default(this);return o.locale=u.locale,o.type=u.type,['minimumIntegerDigits','minimumFractionDigits','maximumFractionDigits','minimumSignificantDigits','maximumSignificantDigits'].forEach(function(t){var l=u[t];void 0!==l&&(o[t]=l)}),o.pluralCategories=r(_d[0]).__spreadArray([],n.localeData[o.locale].categories[o.type]),o},n.prototype.select=function(n){l(this,'select');var u=r(_d[3]).ToNumber(n);return r(_d[4]).ResolvePlural(this,u,{getInternalSlots:t.default,PluralRuleSelect:o})},n.prototype.toString=function(){return'[object Intl.PluralRules]'},n.supportedLocalesOf=function(t,l){return r(_d[3]).SupportedLocales(n.availableLocales,r(_d[3]).CanonicalizeLocaleList(t),l)},n.__addLocaleData=function(){for(var t=[],l=0;l=0;){o=r(0===i?_r(_d[0]).getInternalSlot(t,e,'templateStart'):i-1&&(void 0===t.dateStyle&&void 0===t.timeStyle||(T=void 0)),void 0!==T&&(o[u]=T)}return o}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatToParts',{value:function(t){return t=void 0===t?Date.now():r(_d[3]).ToNumber(t),r(_d[7]).FormatDateTimeToParts(this,t,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatRangeToParts',{value:function(t,o){if('object'!=typeof this)throw new TypeError;if(void 0===t||void 0===o)throw new TypeError('startDate/endDate cannot be undefined');var n=r(_d[3]).ToNumber(t),l=r(_d[3]).ToNumber(o);return r(_d[8]).FormatDateTimeRangeToParts(this,n,l,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}}),r(_d[3]).defineProperty(_e.DateTimeFormat.prototype,'formatRange',{value:function(t,o){if('object'!=typeof this)throw new TypeError;if(void 0===t||void 0===o)throw new TypeError('startDate/endDate cannot be undefined');var n=r(_d[3]).ToNumber(t),l=r(_d[3]).ToNumber(o);return r(_d[9]).FormatDateTimeRange(this,n,l,{getInternalSlots:e.default,localeData:_e.DateTimeFormat.localeData,tzData:_e.DateTimeFormat.tzData,getDefaultTimeZone:_e.DateTimeFormat.getDefaultTimeZone})}});_e.DateTimeFormat.__setDefaultTimeZone=function(e){if(void 0!==e){if(e=String(e),!r(_d[3]).IsValidTimeZoneName(e,{tzData:_e.DateTimeFormat.tzData,uppercaseLinks:o}))throw new RangeError('Invalid timeZoneName');e=r(_d[3]).CanonicalizeTimeZoneName(e,{tzData:_e.DateTimeFormat.tzData,uppercaseLinks:o})}else e="UTC";_e.DateTimeFormat.__defaultTimeZone=e},_e.DateTimeFormat.relevantExtensionKeys=['nu','ca','hc'],_e.DateTimeFormat.__defaultTimeZone="UTC",_e.DateTimeFormat.getDefaultTimeZone=function(){return _e.DateTimeFormat.__defaultTimeZone},_e.DateTimeFormat.__addLocaleData=function(){for(var e=[],t=0;t-1){var H='',G=h[w];j=I[w],'year'===w&&j<=0&&(j=1-j),'month'===w&&j++;var Y=h.hourCycle;if('hour'!==w||'h11'!==Y&&'h12'!==Y||0==(j%=12)&&'h12'===Y&&(j=12),'hour'===w&&'h24'===Y&&0===j&&(j=24),'numeric'===G)H=S.format(j);else if('2-digit'===G)(H=M.format(j)).length>2&&(H=H.slice(H.length-2,H.length));else if('narrow'===G||'short'===G||'long'===G)if('era'===w)H=v[w][G][j];else if('timeZoneName'===w){var z=v.timeZoneName,C=v.gmtFormat,E=v.hourFormat,L=z[h.timeZone||f()];H=L&&L[G]?L[G][+I.inDST]:l(C,E,I.timeZoneOffset,G)}else H='month'===w?v.month[G][j-1]:v[w][G][j];O.push({type:w,value:H})}else'ampm'===w?(H=void 0,H=(j=I.hour)>11?v.pm:v.am,O.push({type:'dayPeriod',value:H})):'relatedYear'===w?(j=I.relatedYear,H=S.format(j),O.push({type:'relatedYear',value:H})):'yearName'===w&&(j=I.yearName,H=S.format(j),O.push({type:'yearName',value:H}))}return O}},524,[437,525,526]); +__d(function(g,r,_i,a,m,e,d){"use strict";function i(i,o,n){var t,u=n[o];if(!u)return[0,!1];for(var T=0,l=0,c=!1;T<=u.length;T++)if(T===u.length||1e3*u[T][0]>i){l=(t=u[T-1])[2],c=t[3];break}return[1e3*l,c]}Object.defineProperty(e,"__esModule",{value:!0}),e.ToLocalTime=void 0,e.ToLocalTime=function(o,n,t,u){var T=u.tzData;r(d[0]).invariant('Number'===r(d[0]).Type(o),'invalid time'),r(d[0]).invariant('gregory'===n,'We only support Gregory calendar right now');var l=i(o,t,T),c=l[0],v=l[1],y=o+c,f=r(d[0]).YearFromTime(y);return{weekday:r(d[0]).WeekDay(y),era:f<0?'BC':'AD',year:f,relatedYear:void 0,yearName:void 0,month:r(d[0]).MonthFromTime(y),day:r(d[0]).DateFromTime(y),hour:r(d[0]).HourFromTime(y),minute:r(d[0]).MinFromTime(y),second:r(d[0]).SecFromTime(y),millisecond:r(d[0]).msFromTime(y),inDST:v,timeZoneOffset:c}}},525,[437]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shortMorePenalty=e.shortLessPenalty=e.longMorePenalty=e.longLessPenalty=e.differentNumericTypePenalty=e.additionPenalty=e.removalPenalty=e.DATE_TIME_PROPS=void 0,e.DATE_TIME_PROPS=['weekday','era','year','month','day','hour','minute','second','timeZoneName'],e.removalPenalty=120,e.additionPenalty=20,e.differentNumericTypePenalty=15,e.longLessPenalty=8,e.longMorePenalty=6,e.shortLessPenalty=6,e.shortMorePenalty=3},526,[]); +__d(function(g,_r,i,a,m,e,d){"use strict";function t(t){for(var o=0,r=['hour','minute','second'];on&&(n=c,s=f)}return r(d[2]).__assign({},s)}},529,[437,526,427]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'numeric'===t||'2-digit'===t}function n(n,o){var s=0;n.hour12&&!o.hour12?s-=r(d[0]).removalPenalty:!n.hour12&&o.hour12&&(s-=r(d[0]).additionPenalty);for(var l=0,P=r(d[0]).DATE_TIME_PROPS;ll&&(l=c,P=f)}var h=r(d[2]).__assign({},P),y={rawPattern:P.rawPattern};for(var M in r(d[3]).processDateTimePattern(P.rawPattern,y),h){var F=h[M],_=y[M],p=o[M];'minute'!==M&&'second'!==M&&p&&(t(_)&&!t(p)||F!==p&&(y[M]=p))}return y.pattern=h.pattern,y.pattern12=h.pattern12,y.skeleton=h.skeleton,y.rangePatterns=h.rangePatterns,y.rangePatterns12=h.rangePatterns12,y}},530,[526,437,427,531]); +__d(function(g,r,_i,a,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitRangePattern=e.splitFallbackRangePattern=e.parseDateTimeSkeleton=e.processDateTimePattern=void 0;var t=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function s(t,n){var s=t.length;switch(t[0]){case'G':return n.era=4===s?'long':5===s?'narrow':'short','{era}';case'y':case'Y':case'u':case'U':case'r':return n.year=2===s?'2-digit':'numeric','{year}';case'q':case'Q':throw new RangeError('`w/Q` (quarter) patterns are not supported');case'M':case'L':return n.month=['numeric','2-digit','short','long','narrow'][s-1],'{month}';case'w':case'W':throw new RangeError('`w/W` (week of year) patterns are not supported');case'd':return n.day=['numeric','2-digit'][s-1],'{day}';case'D':case'F':case'g':return n.day='numeric','{day}';case'E':return n.weekday=4===s?'long':5===s?'narrow':'short','{weekday}';case'e':case'c':return n.weekday=[void 0,void 0,'short','long','narrow','short'][s-1],'{weekday}';case'a':case'b':case'B':return n.hour12=!0,'{ampm}';case'h':return n.hour=['numeric','2-digit'][s-1],n.hour12=!0,'{hour}';case'H':return n.hour=['numeric','2-digit'][s-1],'{hour}';case'K':return n.hour=['numeric','2-digit'][s-1],n.hour12=!0,'{hour}';case'k':return n.hour=['numeric','2-digit'][s-1],'{hour}';case'j':case'J':case'C':throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');case'm':return n.minute=['numeric','2-digit'][s-1],'{minute}';case's':return n.second=['numeric','2-digit'][s-1],'{second}';case'S':case'A':return n.second='numeric','{second}';case'z':case'Z':case'O':case'v':case'V':case'X':case'x':return n.timeZoneName=s<4?'short':'long','{timeZoneName}'}return''}function c(t){switch(t){case'G':return'era';case'y':case'Y':case'u':case'U':case'r':return'year';case'M':case'L':return'month';case'd':case'D':case'F':case'g':return'day';case'a':case'b':case'B':return'ampm';case'h':case'H':case'K':case'k':return'hour';case'm':return'minute';case's':case'S':case'A':return'second';default:throw new RangeError('Invalid range pattern token')}}function u(c,u){var o=[],i=c.replace(/'{2}/g,'{apostrophe}').replace(/'(.*?)'/g,function(t,n){return o.push(n),"$$"+(o.length-1)+"$$"}).replace(t,function(t){return s(t,u||{})});return o.length&&(i=i.replace(/\$\$(\d+)\$\$/g,function(t,n){return o[+n]}).replace(/\{apostrophe\}/g,"'")),[i.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,'$1').replace('{ampm}','').replace(n,''),i]}function o(t){return t.split(/(\{[0|1]\})/g).filter(Boolean).map(function(t){switch(t){case'{0}':return{source:r(d[1]).RangePatternType.startRange,pattern:t};case'{1}':return{source:r(d[1]).RangePatternType.endRange,pattern:t};default:return{source:r(d[1]).RangePatternType.shared,pattern:t}}})}function i(t){for(var n,s=/\{(.*?)\}/g,c={},u=0;n=s.exec(t);){if(n[0]in c){u=n.index;break}c[n[0]]=n.index}return u?[{source:r(d[1]).RangePatternType.startRange,pattern:t.slice(0,u)},{source:r(d[1]).RangePatternType.endRange,pattern:t.slice(u)}]:[{source:r(d[1]).RangePatternType.startRange,pattern:t}]}e.processDateTimePattern=u,e.parseDateTimeSkeleton=function(n,p,h,l){void 0===p&&(p=n);var m={pattern:'',pattern12:'',skeleton:n,rawPattern:p,rangePatterns:{},rangePatterns12:{}};if(h)for(var w in h){var P=c(w),f={patternParts:[]},y=u(h[w],f),R=y[0],v=y[1];m.rangePatterns[P]=r(d[0]).__assign(r(d[0]).__assign({},f),{patternParts:i(R)}),m.rangePatterns12[P]=r(d[0]).__assign(r(d[0]).__assign({},f),{patternParts:i(v)})}if(l){var F=o(l);m.rangePatterns.default={patternParts:F},m.rangePatterns12.default={patternParts:F}}n.replace(t,function(t){return s(t,m)});var k=u(p),_=k[0],$=k[1];return m.pattern=_,m.pattern12=$,m},e.splitFallbackRangePattern=o,e.splitRangePattern=i},531,[427,437]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateTimeStyleFormat=void 0,e.DateTimeStyleFormat=function(t,n,o){var l,v;if(void 0!==n&&(r(d[0]).invariant('full'===n||'long'===n||'medium'===n||'short'===n,'invalid timeStyle'),v=o.timeFormat[n]),void 0!==t&&(r(d[0]).invariant('full'===t||'long'===t||'medium'===t||'short'===t,'invalid dateStyle'),l=o.dateFormat[t]),void 0!==t&&void 0!==n){var p={};for(var u in l)'pattern'!==u&&(p[u]=l[u]);for(var u in v)'pattern'!==u&&'pattern12'!==u&&(p[u]=v[u]);var f=o.dateTimeFormat[t],c=f.replace('{0}',v.pattern).replace('{1}',l.pattern);if(p.pattern=c,'pattern12'in v){var s=f.replace('{0}',v.pattern12).replace('{1}',l.pattern);p.pattern12=s}return p}return void 0!==n?v:(r(d[0]).invariant(void 0!==t,'dateStyle should not be undefined'),l)}},532,[437]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FormatDateTimeToParts=void 0,e.FormatDateTimeToParts=function(t,o,n){for(var u=r(d[0]).PartitionDateTimePattern(t,o,n),s=r(d[1]).ArrayCreate(0),v=0,l=u;v11&&N<11||M<11&&N>11)&&(T=!1)}else if('dayPeriod'===w);else if('fractionalSecondDigits'===w){var _=c.fractionalSecondDigits;void 0===_&&(_=3),M=Math.floor(P.millisecond*Math.pow(10,_-3)),N=Math.floor(h.millisecond*Math.pow(10,_-3)),_r(d[0]).SameValue(M,N)||(T=!1)}else M=P[w],N=h[w],_r(d[0]).SameValue(M,N)||(T=!1)}}if(T){for(var z=_r(d[2]).FormatDateTimePattern(r,_r(d[0]).PartitionPattern(p),n,l),I=0,C=z;I0&&n.default.createElement(l.Text,(0,t.default)({testID:(0,r(d[5]).getTestId)('Text1'),style:[r(d[6]).styles.text1,b],numberOfLines:v,ellipsizeMode:"tail"},C),o),u&&(null==u?void 0:u.length)>0&&n.default.createElement(l.Text,(0,t.default)({testID:(0,r(d[5]).getTestId)('Text2'),style:[r(d[6]).styles.text2,O],numberOfLines:h,ellipsizeMode:"tail"},L),u)),E&&E())};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[3])},544,[3,4,15,18,545,546,547]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Touchable=function(o){var v=o.children,f=o.activeOpacity,p=void 0===f?1:f,y=(0,c.default)(o,n);return l.default.createElement(u.TouchableOpacity,(0,t.default)({activeOpacity:p},y),v)};var t=r(d[0])(r(d[1])),c=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[4]),n=["children","activeOpacity"]},545,[3,4,5,15,18]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getTestId=function(t){return"toast"+t}},546,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.styles=e.WIDTH=e.HEIGHT=e.BORDER_RADIUS=void 0;var t=r(d[0]);e.HEIGHT=60;e.WIDTH=340;e.BORDER_RADIUS=6;var o=t.StyleSheet.create({base:{flexDirection:'row',height:60,width:340,borderRadius:6,shadowOffset:{width:0,height:0},shadowOpacity:.1,shadowRadius:6,elevation:2,backgroundColor:'#FFF'},leadingBorder:{borderLeftWidth:5,borderLeftColor:'#D8D8D8'},contentContainer:{paddingHorizontal:25,flex:1,justifyContent:'center',alignItems:'flex-start'},text1:{fontSize:12,fontWeight:'bold',marginBottom:2,color:'#000',width:'100%'},text2:{fontSize:10,color:'#979797',width:'100%'}});e.styles=o},547,[18]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorToast=function(l){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#FE6301'}},l))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},548,[3,4,15,544]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.InfoToast=function(n){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#87CEFA'}},n))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},549,[3,4,15,544]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SuccessToast=function(u){return o.default.createElement(r(d[3]).BaseToast,(0,t.default)({style:{borderLeftColor:'#69C779'}},u))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]))},550,[3,4,15,544]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Toast=s;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=["config"],f=o.default.forwardRef(function(t,f){var l=t.config,s=(0,n.default)(t,u),c=(0,r(d[4]).useToast)({defaultOptions:s}),h=c.show,v=c.hide,w=c.isVisible,p=c.options,b=c.data;return o.default.useImperativeHandle(f,function(){return{show:h,hide:v}}),o.default.createElement(r(d[5]).ToastUI,{isVisible:w,options:p,data:b,hide:v,show:h,config:l})}),l=o.default.createRef();function s(n){return o.default.createElement(r(d[6]).LoggerProvider,{enableLogs:!1},o.default.createElement(f,(0,t.default)({ref:l},n)))}s.show=function(t){var n;null==(n=l.current)||n.show(t)},s.hide=function(t){var n;null==(n=l.current)||n.hide(t)}},551,[3,4,5,15,552,565,554]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.DEFAULT_DATA=void 0,e.useToast=function(n){var u=n.defaultOptions,p=(0,r(d[4]).useLogger)().log,l=o.default.useState(!1),v=(0,t.default)(l,2),O=v[0],b=v[1],T=o.default.useState(s),y=(0,t.default)(T,2),c=y[0],H=y[1],S=(0,r(d[5]).mergeIfDefined)(f,u),h=o.default.useState(S),A=(0,t.default)(h,2),x=A[0],D=A[1],_=o.default.useCallback(function(){p('Auto hiding'),b(!1),x.onHide()},[p,x]),k=(0,r(d[6]).useTimeout)(_,x.visibilityTime),w=k.startTimer,P=k.clearTimer,E=o.default.useCallback(function(){p('Hiding'),b(!1),P(),x.onHide()},[P,p,x]),L=o.default.useCallback(function(t){p("Showing with params: "+JSON.stringify(t));var o=t.text1,f=void 0===o?s.text1:o,n=t.text2,u=void 0===n?s.text2:n,l=t.type,v=void 0===l?S.type:l,O=t.position,T=void 0===O?S.position:O,y=t.autoHide,c=void 0===y?S.autoHide:y,h=t.visibilityTime,A=void 0===h?S.visibilityTime:h,x=t.topOffset,_=void 0===x?S.topOffset:x,k=t.bottomOffset,w=void 0===k?S.bottomOffset:k,P=t.keyboardOffset,E=void 0===P?S.keyboardOffset:P,L=t.onShow,F=void 0===L?S.onShow:L,I=t.onHide,U=void 0===I?S.onHide:I,C=t.onPress,N=void 0===C?S.onPress:C,j=t.props,J=void 0===j?S.props:j;b(!0),H({text1:f,text2:u}),D((0,r(d[5]).mergeIfDefined)(S,{type:v,position:T,autoHide:c,visibilityTime:A,topOffset:_,bottomOffset:w,keyboardOffset:E,onShow:F,onHide:U,onPress:N,props:J})),F()},[S,p]);return o.default.useEffect(function(){var t=x.autoHide;O&&t&&w()},[O,x,w]),{isVisible:O,data:c,options:x,show:L,hide:E}};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s={text1:void 0,text2:void 0};e.DEFAULT_DATA=s;var f={type:'success',position:'top',autoHide:!0,visibilityTime:4e3,topOffset:40,bottomOffset:40,keyboardOffset:10,onShow:r(d[3]).noop,onHide:r(d[3]).noop,onPress:r(d[3]).noop,props:{}};e.DEFAULT_OPTIONS=f},552,[3,31,15,553,554,556,557]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.noop=void 0;e.noop=function(){}},553,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},554,[555]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerProvider=function(n){var l=n.children,u=n.enableLogs,c=void 0!==u&&u,f={log:o.default.useCallback(function(){if(c){for(var o,t=arguments.length,n=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:{},o=l.heightOffset,f=void 0===o?0:o,v=l.widthOffset,s=void 0===v?0:v,h=n.default.useState(0),c=(0,t.default)(h,2),w=c[0],_=c[1],O=n.default.useState(0),b=(0,t.default)(O,2),p=b[0],y=b[1];return{computeViewDimensions:n.default.useCallback(function(t){var n=u('height')(t),l=u('width')(t);_(n+f),y(l+s)},[f,s]),height:w,width:p}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=function(t){return function(n){var u,l,o;return null!=(u=null==n?void 0:null==(l=n.nativeEvent)?void 0:null==(o=l.layout)?void 0:o[t])?u:0}}},558,[3,31,15]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.translateYOutputRangeFor=n,e.useSlideAnimation=function(u){var f=u.position,s=u.height,p=u.topOffset,b=u.bottomOffset,l=u.keyboardOffset,c=t.default.useRef(new o.Animated.Value(0)),y=(0,r(d[4]).useKeyboard)().keyboardHeight,O=t.default.useCallback(function(t){o.Animated.spring(c.current,{toValue:t,useNativeDriver:!0,friction:8}).start()},[]),h=c.current.interpolate({inputRange:[0,1],outputRange:n({position:f,height:s,topOffset:p,bottomOffset:b,keyboardHeight:y,keyboardOffset:l})}),v=c.current.interpolate({inputRange:[0,.7,1],outputRange:[0,1,1]});return{animatedValue:c,animate:O,animationStyles:{opacity:v,transform:[{translateY:h}]}}};var t=r(d[0])(r(d[1])),o=r(d[2]);function n(t){var o=t.position,n=t.height,u=t.topOffset,f=t.bottomOffset,s=t.keyboardHeight,p=t.keyboardOffset,b='bottom'===o?f:u,l='bottom'===o?s+p:0,c=[-2*n,Math.max(b,l)];return'bottom'===o?(0,r(d[3]).additiveInverseArray)(c):c}},559,[3,15,18,560,561]); +__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.additiveInverseArray=function(n){return n.map(function(n){return-n})}},560,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useKeyboard=function(){var o=u.default.useState(0),f=(0,t.default)(o,2),l=f[0],s=f[1],b=u.default.useState(!1),c=(0,t.default)(b,2),y=c[0],v=c[1],k=u.default.useCallback(function(t){var u=t.endCoordinates.height;s(u),v(!0)},[]),h=u.default.useCallback(function(){s(0),v(!1)},[]);return u.default.useEffect(function(){if(!(0,r(d[4]).isIOS)())return function(){};var t=n.Keyboard.addListener('keyboardDidShow',k),u=n.Keyboard.addListener('keyboardDidHide',h);return function(){t.remove(),u.remove()}},[h,k]),{keyboardHeight:l,isKeyboardVisible:y}};var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[3])},561,[3,31,15,18,562]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=function(){return'ios'===n.Platform.OS};var n=r(d[0])},562,[18]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTimeout=function(u){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=(0,r(d[2]).useLogger)().log,o=t.default.useRef(),f=t.default.useCallback(function(){o.current&&(c('Clearing timer',o.current),clearTimeout(o.current),o.current=void 0)},[c]),l=t.default.useCallback(function(){f(),o.current=setTimeout(function(){u(),c('Running timer',o.current),o.current=void 0},n),c('Starting timer',o.current)},[f,n,c,u]);return t.default.useEffect(function(){return function(){return f()}},[f]),{startTimer:l,clearTimer:f,isActive:void 0!==o.current}};var t=r(d[0])(r(d[1]))},563,[3,15,554]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.shouldDismissView=t,e.shouldSetPanResponder=u,e.usePanResponder=function(s){var l=s.animatedValue,c=s.computeNewAnimatedValueForGesture,p=s.onDismiss,v=s.onRestore,f=n.default.useCallback(function(n,o){var u,t=c(o);null==(u=l.current)||u.setValue(t)},[l,c]),R=n.default.useCallback(function(n,o){var u=c(o);t(u,o)?p():v()},[c,p,v]);return{panResponder:n.default.useMemo(function(){return o.PanResponder.create({onMoveShouldSetPanResponder:u,onMoveShouldSetPanResponderCapture:u,onPanResponderMove:f,onPanResponderRelease:R})},[f,R]),onMove:f,onRelease:R}};var n=r(d[0])(r(d[1])),o=r(d[2]);function u(n,o){var u=o.dx,t=o.dy;return Math.abs(u)>2||Math.abs(t)>2}function t(n,o){var u=o.vy,t=o.dy;return n<=.65||Math.abs(u)>=.65&&t<0}},564,[3,15,18]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ToastUI=function(t){var s=t.isVisible,f=t.options,c=t.hide,u=f.position,p=f.topOffset,l=f.bottomOffset,b=f.keyboardOffset;return o.default.createElement(r(d[6]).AnimatedContainer,{isVisible:s,position:u,topOffset:p,bottomOffset:l,keyboardOffset:b,onHide:c},n(t))};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s={success:function(t){return o.default.createElement(r(d[3]).SuccessToast,t)},error:function(t){return o.default.createElement(r(d[4]).ErrorToast,t)},info:function(t){return o.default.createElement(r(d[5]).InfoToast,t)}};function n(o){var n=o.data,f=o.options,c=o.config,u=o.isVisible,p=o.show,l=o.hide,b=n.text1,h=n.text2,E=f.type,O=f.onPress,v=f.position,y=f.props,T=(0,t.default)({},s,c)[E];if(!T)throw new Error("Toast type: '"+E+"' does not exist. You can add it via the 'config' prop on the Toast instance. Learn more: https://github.com/calintamas/react-native-toast-message/blob/master/README.md");return T({position:v,type:E,isVisible:u,text1:b,text2:h,show:p,hide:l,onPress:O,props:y})}},565,[3,4,15,550,548,549,566]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AnimatedContainer=function(l){var f=l.children,c=l.isVisible,p=l.position,b=l.topOffset,w=l.bottomOffset,h=l.keyboardOffset,y=l.onHide,v=l.onRestorePosition,V=void 0===v?r(d[5]).noop:v,O=(0,r(d[6]).useLogger)().log,k=(0,r(d[7]).useViewDimensions)(),A=k.computeViewDimensions,C=k.height,D=(0,r(d[7]).useSlideAnimation)({position:p,height:C,topOffset:b,bottomOffset:w,keyboardOffset:h}),E=D.animatedValue,R=D.animate,S=D.animationStyles,_=n.default.useCallback(function(){O('Swipe, dismissing'),R(0),y()},[R,O,y]),F=n.default.useCallback(function(){O('Swipe, restoring to original position'),R(1),V()},[R,O,V]),L=n.default.useCallback(function(t){var n=s(t,p),o=u(t,p,n);return o},[p]),P=(0,r(d[7]).usePanResponder)({animatedValue:E,computeNewAnimatedValueForGesture:L,onDismiss:_,onRestore:F}).panResponder;return n.default.useLayoutEffect(function(){R(c?1:0)},[R,c]),n.default.createElement(o.Animated.View,(0,t.default)({testID:(0,r(d[8]).getTestId)('AnimatedContainer'),onLayout:A,style:[r(d[9]).styles.base,r(d[9]).styles[p],S]},P.panHandlers),f)},e.animatedValueFor=u,e.dampingFor=s;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[3]);function s(t,n){var s=t.moveY;switch(n){case'bottom':return o.Dimensions.get('screen').height-s;case'top':return s;default:throw new Error("Toast position: "+n+" not implemented")}}function u(t,n,o){var s=function(t){return(0,r(d[4]).bound)(t,0,2)},u=t.dy;switch(n){case'bottom':return s(1-u/o);case'top':return s(1+u/o);default:throw new Error("Toast position: "+n+" not implemented")}}},566,[3,4,15,18,567,553,554,557,546,568]); +__d(function(g,r,i,a,m,e,d){function n(n,u){return n>u?u:n}function u(n,u){return n-1},ft.prototype.set=function(t,n){var e=this.__data__,o=vt(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this},st.prototype.clear=function(){this.size=0,this.__data__={hash:new at,map:new(it||ft),string:new at}},st.prototype.delete=function(t){var n=Ut(this,t).delete(t);return this.size-=n?1:0,n},st.prototype.get=function(t){return Ut(this,t).get(t)},st.prototype.has=function(t){return Ut(this,t).has(t)},st.prototype.set=function(t,n){var e=Ut(this,t),o=e.size;return e.set(t,n),this.size+=e.size==o?0:1,this},lt.prototype.clear=function(){this.__data__=new ft,this.size=0},lt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},lt.prototype.get=function(t){return this.__data__.get(t)},lt.prototype.has=function(t){return this.__data__.has(t)},lt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ft){var o=e.__data__;if(!it||o.length<199)return o.push([t,n]),this.size=++e.size,this;e=this.__data__=new st(o)}return e.set(t,n),this.size=e.size,this};var bt,dt=function(t,n,e){for(var o=-1,u=Object(t),c=e(t),f=c.length;f--;){var s=c[bt?f:++o];if(!1===n(u[s],s,u))break}return t};function gt(t){return null==t?void 0===t?h:l:tt&&tt in Object(t)?Pt(t):Mt(t)}function jt(t){return Qt(t)&>(t)==u}function Ot(t){return!(!Kt(t)||L&&L in t)&&(Ht(t)?V:v).test(Ct(t))}function At(t){if(!Kt(t))return Bt(t);var n=kt(t),e=[];for(var o in t)('constructor'!=o||!n&&C.call(t,o))&&e.push(o);return e}function wt(t,n,e,o,u){t!==n&&dt(n,function(c,f){if(u||(u=new lt),Kt(c))zt(t,n,f,e,wt,o,u);else{var s=o?o(Rt(t,f),c,f+'',t,n,u):void 0;void 0===s&&(s=c),_t(t,f,s)}},tr)}function zt(t,n,e,o,u,c,f){var s=Rt(t,e),l=Rt(n,e),p=f.get(l);if(p)_t(t,e,p);else{var _,h,v,y=c?c(s,l,e+'',t,n,f):void 0,b=void 0===y;if(b){var j=Gt(l),O=!j&&Wt(l),A=!j&&!O&&Yt(l);y=l,j||O||A?Gt(s)?y=s:Qt(v=s)&&Vt(v)?y=xt(s):O?(b=!1,y=mt(l,!0)):A?(b=!1,_=l,h=!0?St(_.buffer):_.buffer,y=new _.constructor(h,_.byteOffset,_.length)):y=[]:Xt(l)||Nt(l)?(y=s,Nt(s)?y=Zt(s):Kt(s)&&!Ht(s)||(y=Et(l))):b=!1}b&&(f.set(l,y),u(y,l,o,c,f),f.delete(l)),_t(t,e,y)}}function mt(t,n){if(n)return t.slice();var e=t.length,o=K?K(e):new t.constructor(e);return t.copy(o),o}function St(t){var n=new t.constructor(t.byteLength);return new J(n).set(new J(t)),n}function xt(t,n){var e=-1,o=t.length;for(n||(n=Array(o));++e-1&&t%1==0&&t0){if(++o>=n)return arguments[0]}else o=0;return t.apply(void 0,arguments)}})(rt?function(t,n){return rt(t,'toString',{configurable:!0,enumerable:!1,value:(e=n,function(){return e}),writable:!0});var e}:nr);function Ct(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function Lt(t,n){return t===n||t!=t&&n!=n}var Nt=jt((function(){return arguments})())?jt:function(t){return Qt(t)&&C.call(t,'callee')&&!Y.call(t,'callee')},Gt=Array.isArray;function Vt(t){return null!=t&&Jt(t.length)&&!Ht(t)}var Wt=nt||function(){return!1};function Ht(t){if(!Kt(t))return!1;var n=gt(t);return n==f||n==s||n==c||n==_}function Jt(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=o}function Kt(t){var n=typeof t;return null!=t&&('object'==n||'function'==n)}function Qt(t){return null!=t&&'object'==typeof t}function Xt(t){if(!Qt(t)||gt(t)!=p)return!1;var n=Q(t);if(null===n)return!0;var e=C.call(n,'constructor')&&n.constructor;return'function'==typeof e&&e instanceof e&&q.call(e)==G}var Yt=U?(function(t){return function(n){return t(n)}})(U):function(t){return Qt(t)&&Jt(t.length)&&!!b[gt(t)]};function Zt(t){return Ft(t,tr(t))}function tr(t){return Vt(t)?pt(t,!0):At(t)}var rr=(function(t){return qt(Dt(n=function(n,e){var o=-1,u=e.length,c=u>1?e[u-1]:void 0,f=u>2?e[2]:void 0;for(c=t.length>3&&'function'==typeof c?(u--,c):void 0,f&&Tt(e[0],e[1],f)&&(c=u<3?void 0:c,u=1),n=Object(n);++o0&&void 0!==arguments[0]&&arguments[0]?'NON-PRODUCTION':void 0},o]}},S=function(t){var s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],_=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];s?(n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'en',name:'Person',issuerName:'Service BC',watermark:_?'NON-PRODUCTION':void 0}),n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'fr',name:'Personne',issuerName:'Service BC',watermark:_?'NON-PRODUCTION (FR)':void 0})):(n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'en',name:'Unverified Person',issuerName:'Digital Identity and Trust Program'}),n.push({captureBase:'',type:'spec/overlays/meta/1.0',language:'fr',name:'Unverified Personne',issuerName:'Digital Identity and Trust Program'}));var u={captureBase:{captureBase:'',type:'spec/overlays/capture_base/1.0',attributes:{postal_code:'Text',given_names:'Text',family_name:'Text',locality:'Text',region:'Text',street_address:'Text',country:'Text',birthdate_dateint:'DateInt'}},overlays:[].concat(n,[{captureBase:'',type:'spec/overlays/card_layout/1.1',logo:{src:r(d[10])},primaryBackgroundColor:'#003366',backgroundImage:{src:t},primaryAttribute:{name:'given_names'},secondaryAttribute:{name:'family_name'}},{captureBase:'',type:'spec/overlays/format/1.0',language:'en',attributeFormats:{birthdate_dateint:'YYYYMMDD',picture:'image/jpeg'}},{captureBase:'',type:'spec/overlays/character_encoding/1.0',language:'en',attributeCharacterEncoding:{picture:'base64'}},{captureBase:'',type:'spec/overlays/label/1.0',language:'en',attributeLabels:{given_names:'Given Names',family_name:'Family Name',birthdate_dateint:'Date of Birth'}},{captureBase:'',type:'spec/overlays/label/1.0',language:'fr',attributeLabels:{given_names:'Pr\xe9noms',family_name:'Nom de famille'}}])};return _&&u.captureBase.attributes&&(u.captureBase.attributes.picture='Binary'),u},T=S(r(d[11]),!1),p=S(r(d[11])),C=S(r(d[11]),!0,!0),I=E(),y=E(!0),D=(t={},(0,_.default)(t,s.LSBC_TEST,I),(0,_.default)(t,s.LSBC_PROD,I),(0,_.default)(t,s.SHOWCASE_LAWYER_DEV,y),(0,_.default)(t,s.SHOWCASE_LAWYER_TEST,y),(0,_.default)(t,s.SHOWCASE_LAWYER_PROD,y),(0,_.default)(t,s.SHOWCASE_STUDENT_DEV,c),(0,_.default)(t,s.SHOWCASE_STUDENT_TEST,c),(0,_.default)(t,s.SHOWCASE_STUDENT_PROD,c),(0,_.default)(t,s.UNVERIFIED_PERSON_DEV,T),(0,_.default)(t,s.UNVERIFIED_PERSON_TEST,T),(0,_.default)(t,s.UNVERIFIED_PERSON_PROD,T),(0,_.default)(t,s.PILOT_INVITE_DEV,l),(0,_.default)(t,s.PILOT_INVITE_TEST,l),(0,_.default)(t,s.PILOT_INVITE_PROD,l),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_DEV,C),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_TEST,C),(0,_.default)(t,s.SHOWCASE_LAWYER2_PERSON_PROD,C),(0,_.default)(t,s.BC_DIGITAL_ID_DEV,C),(0,_.default)(t,s.BC_DIGITAL_ID_SIT,C),(0,_.default)(t,s.BC_DIGITAL_ID_QA,p),(0,_.default)(t,s.BC_DIGITAL_ID_PROD,p),t);e.default=D},572,[3,248,573,575,576,577,578,579,580,581,582,583]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"76c888edae113b6ad2a3d690dadf0ba4",name:"invitation-logo",type:"png"})},573,[574]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},574,[158]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:121,height:1200,scales:[1],hash:"c437e5b9f76714dc43dd69607faf70ab",name:"invitation-background-image-slice",type:"png"})},575,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:361,scales:[1],hash:"46950f1f3907c563213dec69864d993f",name:"invitation-primary-background",type:"png"})},576,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"0f62872ad132ca150048faeec0421ef1",name:"best-bc-logo",type:"png"})},577,[574]); +__d(function(e,s,t,a,c,r,d){c.exports=s(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:360,scales:[1],hash:"d87c143b676f37559bee5db33c0d8cfd",name:"best-bc-background-image",type:"jpg"})},578,[574]); +__d(function(s,e,a,t,c,r,i){c.exports=e(i[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:121,height:1200,scales:[1],hash:"73c4c38af7a9f31068408769b1a6db1b",name:"best-bc-background-image-slice",type:"jpg"})},579,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:240,height:240,scales:[1],hash:"dd8d8680164a8824853fcfa850e8d348",name:"lsbc-logo",type:"jpg"})},580,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:1080,height:360,scales:[1],hash:"7ea103a5f2f9ebf73ea7dbf0e5f257b7",name:"lsbc-background-image",type:"jpg"})},581,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:554,height:523,scales:[1],hash:"bfdc9aafe33a3c48dc7e85623583418d",name:"bc-logo",type:"jpg"})},582,[574]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0]).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/src/assets/branding",width:937,height:312,scales:[1],hash:"5b9c48a4f5f4e304cc918f66c9f43e9c",name:"person-background-image",type:"png"})},583,[574]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=o(n);if(l&&l.has(t))return l.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var s=c?Object.getOwnPropertyDescriptor(t,f):null;s&&(s.get||s.set)?Object.defineProperty(u,f,s):u[f]=t[f]}u.default=t,l&&l.set(t,u);return u})(r(d[0])),n=r(d[1]),l=r(d[2])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(o=function(t){return t?l:n})(t)}var u=function(){var o=(0,r(d[4]).useTranslation)().t,u=(0,r(d[5]).useTheme)().ColorPallet,c=(0,t.useCallback)(function(){n.DeviceEventEmitter.emit(r(d[6]).BCWalletEventTypes.ADD_CREDENTIAL_PRESSED,!0)},[]),f=n.StyleSheet.create({button:{paddingHorizontal:16}});return t.default.createElement(n.TouchableOpacity,{accessible:!0,accessibilityLabel:o('Credentials.AddCredential'),testID:(0,r(d[5]).testIdWithKey)('AddCredential'),style:f.button,onPress:c},t.default.createElement(l.default,{name:"plus-circle-outline",size:24,color:u.grayscale.white}))};e.default=u},584,[15,18,3,585,595,607,3357]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourceSync=e.getImageSource=e.default=e.Button=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),o=(0,t.default)(u.default,'Material Design Icons','MaterialCommunityIcons.ttf'),c=o;e.default=c;var n=o.Button,S=o.getImageSource,l=o.getImageSourceSync;e.getImageSourceSync=l,e.getImageSource=S,e.Button=n},585,[3,586,594]); +__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NativeIconAPI=_e.DEFAULT_ICON_SIZE=_e.DEFAULT_ICON_COLOR=void 0,_e.default=function(y,E,P,_){var j=P?P.replace(/\.(otf|ttf)$/,''):E,F=r(d[13]).Platform.select({windows:"/Assets/"+P+"#"+E,android:j,web:j,default:E}),N=f.default.oneOf(Object.keys(y)),I=(function(t){(0,i.default)(p,t);var f,s,h=(f=p,s=b(),function(){var t,e=(0,c.default)(f);if(s){var n=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function p(){var t;(0,n.default)(this,p);for(var e=arguments.length,o=new Array(e),i=0;i1&&void 0!==f[1]?f[1]:O,n=f.length>2&&void 0!==f[2]?f[2]:L,(0,s.default)(),o=k(t),i=(0,r(d[13]).processColor)(n),u=o+":"+e+":"+i,!S.has(u)){h.next=8;break}return h.abrupt("return",S.get(u));case 8:return h.prev=8,h.next=11,w().awrap(x.getImageForFont(F,o,e,i));case 11:return c=h.sent,l={uri:c,scale:r(d[13]).PixelRatio.get()},S.setValue(u,l),h.abrupt("return",l);case 17:throw h.prev=17,h.t0=h.catch(8),S.setError(u,h.t0),h.t0;case 21:case"end":return h.stop()}},null,null,[[8,17]],Promise)},I.getImageSourceSync=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;(0,s.default)();var o=k(t),i=(0,r(d[13]).processColor)(n),u=o+":"+e+":"+i;if(S.has(u))return S.get(u);try{var c=x.getImageForFontSync(F,o,e,i),l={uri:c,scale:r(d[13]).PixelRatio.get()};return S.setValue(u,l),l}catch(t){throw S.setError(u,t),t}},I.loadFont=function(){var e,n=arguments;return w().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:P,'ios'!==r(d[13]).Platform.OS){o.next=7;break}if((0,s.default)(),e){o.next=5;break}throw new Error('Unable to load font, because no file was specified. ');case 5:return o.next=7,w().awrap(x.loadFontWithFileName.apply(x,(0,t.default)(e.split('.'))));case 7:case"end":return o.stop()}},null,null,null,Promise)},I.hasIcon=function(t){return Object.prototype.hasOwnProperty.call(y,t)},I.getRawGlyphMap=function(){return y},I.getFontFamily=function(){return F},I};var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),i=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=y(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=i?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=t[u]}o.default=t,n&&n.set(t,o);return o})(r(d[8])),f=r(d[0])(r(d[9])),s=r(d[0])(r(d[10])),h=r(d[0])(r(d[11])),p=r(d[0])(r(d[12])),v=["name","size","color","style","children"];function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(y=function(t){return t?n:e})(t)}function w(){"use strict";w=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,i){var u=e&&e.prototype instanceof v?e:v,c=Object.create(u.prototype),l=new S(i||[]);return o(c,"_invoke",{value:j(t,n,l)}),c}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function v(){}function y(){}function b(){}var x={};f(x,u,function(){return this});var O=Object.getPrototypeOf,L=O&&O(O(k([])));L&&L!==e&&n.call(L,u)&&(x=L);var E=b.prototype=v.prototype=Object.create(x);function P(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function i(o,u,c,l){var f=h(t[o],t,u);if("throw"!==f.type){var s=f.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then(function(t){i("next",t,c,l)},function(t){i("throw",t,c,l)}):e.resolve(p).then(function(t){s.value=t,c(s)},function(t){return i("throw",t,c,l)})}l(f.arg)}var u;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){i(t,n,e,o)})}return u=u?u.then(o,o):o()}})}function j(t,e,n){var o="suspendedStart";return function(i,u){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw u;return R()}for(n.method=i,n.arg=u;;){var c=n.delegate;if(c){var l=F(c,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=h(t,e,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function F(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,F(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=h(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var u=i.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function N(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function k(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}function b(){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}}var x=r(d[13]).NativeModules.RNVectorIconsManager||r(d[13]).NativeModules.RNVectorIconsModule;_e.NativeIconAPI=x;var O=12;_e.DEFAULT_ICON_SIZE=O;var L='black';_e.DEFAULT_ICON_COLOR=L},586,[3,42,5,7,8,9,11,14,15,192,587,589,590,588]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!o){if('android'===r(d[0]).Platform.OS)throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.')}};var o=r(d[0]).NativeModules.RNVectorIconsManager||r(d[0]).NativeModules.RNVectorIconsModule},587,[588]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var n=r(d[0]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})},588,[18]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var u=new Map;return{setValue:function(n,o){return u.set(n,{type:t,data:o})},setError:function(t,o){return u.set(t,{type:n,data:o})},has:function(t){return u.has(t)},get:function(t){if(u.has(t)){var o=u.get(t),f=o.type,s=o.data;if(f===n)throw s;return s}}}};var t='value',n='error'},589,[]); +__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(v){var w;return(w=(function(b){(0,l.default)(C,b);var k,w,R=(k=C,w=P(),function(){var e,t=(0,c.default)(k);if(w){var n=(0,c.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,u.default)(this,e)});function C(){return(0,n.default)(this,C),R.apply(this,arguments)}return(0,o.default)(C,[{key:"render",value:function(){var n=this.props,o=n.style,l=n.iconStyle,u=n.children,c=(0,t.default)(n,h),b=(0,y.default)(c,S,'style','name','size','color'),P=(0,y.default)(c,j),k=(0,f.default)(c,Object.keys(b),Object.keys(P),'iconStyle','borderRadius','backgroundColor');b.style=l?[O.icon,l]:O.icon;var w=(0,y.default)(this.props,'color'),R=(0,y.default)(this.props,'backgroundColor','borderRadius');return p.default.createElement(r(d[13]).TouchableHighlight,(0,e.default)({style:[O.touchable,R]},P),p.default.createElement(r(d[13]).View,(0,e.default)({style:[O.container,R,o]},k),p.default.createElement(v,b),(0,s.default)(u)?p.default.createElement(r(d[13]).Text,{style:[O.text,w]},u):u))}}]),C})(p.PureComponent)).propTypes={backgroundColor:b.default.oneOfType([b.default.string,b.default.number]),borderRadius:b.default.number,color:b.default.any,size:b.default.number,iconStyle:b.default.any,style:b.default.any,children:b.default.node},w.defaultProps={backgroundColor:k,borderRadius:5,color:'white',size:20},w};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=l?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}o.default=e,n&&n.set(e,o);return o})(r(d[11])),b=r(d[0])(r(d[12])),h=["style","iconStyle","children"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function P(){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(e){return!1}}var O=r(d[13]).StyleSheet.create({container:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center',padding:8},touchable:{overflow:'hidden'},icon:{marginRight:10},text:{fontWeight:'600',backgroundColor:'transparent'}}),k='#007AFF',S=['ellipsizeMode','numberOfLines','textBreakStrategy','selectable','suppressHighlighting','allowFontScaling','adjustsFontSizeToFit','minimumFontScale'],j=['accessible','accessibilityLabel','accessibilityHint','accessibilityComponentType','accessibilityRole','accessibilityStates','accessibilityTraits','onFocus','onBlur','disabled','onPress','onPressIn','onPressOut','onLayout','onLongPress','nativeID','testID','delayPressIn','delayPressOut','delayLongPress','activeOpacity','underlayColor','selectionColor','onShowUnderlay','onHideUnderlay','hasTVPreferredFocus','tvParallaxProperties']},590,[3,4,5,7,8,9,11,14,591,592,593,15,192,588]); +__d(function(g,r,i,a,m,e,d){var t='[object String]',n=Object.prototype.toString,o=Array.isArray;function c(t){return!!t&&'object'==typeof t}m.exports=function(f){return'string'==typeof f||!o(f)&&c(f)&&n.call(f)==t}},591,[]); +__d(function(g,r,i,a,m,_e,d){var t=200,n='__lodash_hash_undefined__',e=9007199254740991,o='[object Arguments]',u='[object Function]',c='[object GeneratorFunction]',f='[object Symbol]',l=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,h='object'==typeof g&&g&&g.Object===Object&&g,p='object'==typeof self&&self&&self.Object===Object&&self,_=h||p||Function('return this')();function y(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function v(t,n){return!!(t?t.length:0)&&S(t,n,0)>-1}function b(t,n,e){for(var o=-1,u=t?t.length:0;++o=t&&(l=P,s=!1,e=new Z(e));t:for(;++f0&&e(l)?n>1?et(l,n-1,e,o,u):O(u,l):o||(u[u.length]=l)}return u}function ot(t,n,e){var o=n(t);return jt(t)?o:O(o,e(t))}function ut(t){return!(!At(t)||G&&G in t)&&(wt(t)||F(t)?B:l).test(dt(t))}function it(t){if(!At(t))return vt(t);var n,e,o,u=(e=(n=t)&&n.constructor,o='function'==typeof e&&e.prototype||M,n===o),c=[];for(var f in t)('constructor'!=f||!u&&q.call(t,f))&&c.push(f);return c}function at(t,n){return ct(t=Object(t),n,function(n,e){return e in t})}function ct(t,n,e){for(var o=-1,u=n.length,c={};++o-1},X.prototype.set=function(t,n){var e=this.__data__,o=rt(e,t);return o<0?e.push([t,n]):e[o][1]=n,this},Y.prototype.clear=function(){this.__data__={hash:new W,map:new(U||X),string:new W}},Y.prototype.delete=function(t){return lt(this,t).delete(t)},Y.prototype.get=function(t){return lt(this,t).get(t)},Y.prototype.has=function(t){return lt(this,t).has(t)},Y.prototype.set=function(t,n){return lt(this,t).set(t,n),this},Z.prototype.add=Z.prototype.push=function(t){return this.__data__.set(t,n),this},Z.prototype.has=function(t){return this.__data__.has(t)};var ht=N?E(N,Object):Ct,pt=N?function(t){for(var n=[];t;)O(n,ht(t)),t=H(t);return n}:Ct;function _t(t){return jt(t)||bt(t)||!!(L&&t&&t[L])}function yt(t,n){return!!(n=null==n?e:n)&&('number'==typeof t||s.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=e}function At(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function $t(t){return!!t&&'object'==typeof t}function Pt(t){return'symbol'==typeof t||$t(t)&&z.call(t)==f}function xt(t){return Ot(t)?tt(t,!0):it(t)}var Ft,Et,kt=(Ft=function(t,n){return null==t?{}:(n=j(et(n,1),gt),at(t,nt(ft(t),n)))},Et=Q(void 0===Et?Ft.length-1:Et,0),function(){for(var t=arguments,n=-1,e=Q(t.length-Et,0),o=Array(e);++n0&&o(b)?n>1?w(b,n-1,o,c,u):v(u,b):c||(u[u.length]=b)}return u}function x(t,n){return _(t=Object(t),n,function(n,o){return o in t})}function _(t,n,o){for(var c=-1,u=n.length,l={};++c-1&&n%1==0&&n<=t}function z(t){var n=typeof t;return!!t&&('object'==n||'function'==n)}function B(t){return!!t&&'object'==typeof t}function D(t){return'symbol'==typeof t||B(t)&&j.call(t)==u}var H,J,K=(H=function(t,n){return null==t?{}:x(t,y(w(n,1),E))},J=F(void 0===J?H.length-1:J,0),function(){for(var t=arguments,n=-1,o=F(t.length-J,0),c=Array(o);++n0:!!o}function y(t){return t?t&&t.children?t.children:t.props&&t.props.children:[]}function v(t){return Array.isArray(t)?t:[t]}function b(o,c){if(!o)return'';var s='',u=v(o),p=c.transKeepBasicHtmlNodesFor||[];return u.forEach(function(o,u){if('string'==typeof o)s+="".concat(o);else if(i.default.isValidElement(o)){var f=Object.keys(o.props).length,h=p.indexOf(o.type)>-1,y=o.props.children;if(!y&&h&&0===f)s+="<".concat(o.type,"/>");else if(y||h&&0===f)if(o.props.i18nIsDynamicList)s+="<".concat(u,">");else if(h&&1===f&&'string'==typeof y)s+="<".concat(o.type,">").concat(y,"");else{var v=b(y,c);s+="<".concat(u,">").concat(v,"")}else s+="<".concat(u,">")}else if(null===o)(0,r(d[7]).warn)("Trans: the passed in value is invalid - seems you passed in a null child.");else if('object'===(0,n.default)(o)){var O=o.format,j=(0,t.default)(o,l),E=Object.keys(j);if(1===E.length){var w=O?"".concat(E[0],", ").concat(O):E[0];s+="{{".concat(w,"}}")}else(0,r(d[7]).warn)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else(0,r(d[7]).warn)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",o)}),s}function O(t,o,l,s,u){if(''===o)return[];var p=s.transKeepBasicHtmlNodesFor||[],b=o&&new RegExp(p.join('|')).test(o);if(!t&&!b)return[o];var O={};!(function t(o){v(o).forEach(function(o){'string'!=typeof o&&(h(o)?t(y(o)):'object'!==(0,n.default)(o)||i.default.isValidElement(o)||r(d[6])(O,o))})})(t);var j=c.default.parse("<0>".concat(o,"")),E=f(f({},O),u);function w(t,n,o){var c,l=y(t),s=P(l,n.children,o);return c=l,'[object Array]'===Object.prototype.toString.call(c)&&c.every(function(t){return i.default.isValidElement(t)})&&0===s.length?l:s}function k(t,n,o,c,l){t.dummy&&(t.children=n),o.push(i.default.cloneElement(t,f(f({},t.props),{},{key:c}),l?void 0:n))}function P(o,c,u){var y=v(o);return v(c).reduce(function(o,c,v){var O,j,x,N=c.children&&c.children[0]&&c.children[0].content&&l.services.interpolator.interpolate(c.children[0].content,E,l.language);if('tag'===c.type){var D=y[parseInt(c.name,10)];!D&&1===u.length&&u[0][c.name]&&(D=u[0][c.name]),D||(D={});var S=0!==Object.keys(c.attrs).length?(O={props:c.attrs},(x=f({},j=D)).props=r(d[6])(O.props,j.props),x):D,T=i.default.isValidElement(S),M=T&&h(c,!0)&&!c.voidElement,V=b&&'object'===(0,n.default)(S)&&S.dummy&&!T,_='object'===(0,n.default)(t)&&null!==t&&Object.hasOwnProperty.call(t,c.name);if('string'==typeof S){var K=l.services.interpolator.interpolate(S,E,l.language);o.push(K)}else if(h(S)||M){k(S,w(S,c,u),o,v)}else if(V){var I=P(y,c.children,u);o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v}),I))}else if(Number.isNaN(parseFloat(c.name))){if(_)k(S,w(S,c,u),o,v,c.voidElement);else if(s.transSupportBasicHtmlNodes&&p.indexOf(c.name)>-1)if(c.voidElement)o.push(i.default.createElement(c.name,{key:"".concat(c.name,"-").concat(v)}));else{var W=P(y,c.children,u);o.push(i.default.createElement(c.name,{key:"".concat(c.name,"-").concat(v)},W))}else if(c.voidElement)o.push("<".concat(c.name," />"));else{var A=P(y,c.children,u);o.push("<".concat(c.name,">").concat(A,""))}}else if('object'!==(0,n.default)(S)||T)1===c.children.length&&N?o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v}),N)):o.push(i.default.cloneElement(S,f(f({},S.props),{},{key:v})));else{var B=c.children[0]?N:null;B&&o.push(B)}}else if('text'===c.type){var F=s.transWrapTextNodes,H=l.services.interpolator.interpolate(c.content,E,l.language);F?o.push(i.default.createElement(F,{key:"".concat(c.name,"-").concat(v)},H)):o.push(H)}return o},[])}return y(P([{dummy:!0,children:t||[]}],j,v(t||[]))[0])}},596,[3,5,12,248,15,597,4,599,600]); +__d(function(_g,_r,_i,_a,_m,_e,_d){var e,t=(e=_r(_d[0]))&&"object"==typeof e&&"default"in e?e.default:e,n=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function r(e){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(t[i[1]]||"/"===e.charAt(e.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var c=e.indexOf("--\x3e");return{type:"comment",comment:-1!==c?e.slice(4,c):""}}for(var s=new RegExp(n),a=null;null!==(a=s.exec(e));)if(a[0].trim())if(a[1]){var o=a[1].trim(),u=[o,""];o.indexOf("=")>-1&&(u=o.split("=")),r.attrs[u[0]]=u[1],s.lastIndex--}else a[2]&&(r.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return r}var i=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?(function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""})(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(a,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}_m.exports={parse:function(e,t){t||(t={}),t.components||(t.components=s);var n,a=[],o=[],u=-1,l=!1;if(0!==e.indexOf("<")){var m=e.indexOf("<");a.push({type:"text",content:-1===m?e:e.substring(0,m)})}return e.replace(i,function(i,s){if(l){if(i!=="")return;l=!1}var m,f="/"!==i.charAt(1),d=i.startsWith("\x3c!--"),h=s+i.length,p=e.charAt(h);if(d){var v=r(i);return u<0?(a.push(v),a):((m=o[u]).children.push(v),a)}if(f&&(u++,"tag"===(n=r(i)).type&&t.components[n.name]&&(n.type="component",l=!0),n.voidElement||l||!p||"<"===p||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===u&&a.push(n),(m=o[u-1])&&m.children.push(n),o[u]=n),(!f||n.voidElement)&&(u>-1&&(n.voidElement||n.name===i.slice(2,-1))&&(n=-1===--u?a:o[u]),!l&&"<"!==p&&p)){m=-1===u?a:o[u].children;var x=e.indexOf("<",h),g=e.slice(h,-1===x?void 0:x);c.test(g)&&(g=" "),(x>-1&&u+m.length>=0||" "!==g)&&m.push({type:"text",content:g})}}),a},stringify:function(e){return e.reduce(function(e,t){return e+a("",t)},"")}}},597,[598]); +__d(function(g,r,i,a,m,e,d){m.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},598,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(){if(console&&console.warn){for(var n,t=arguments.length,o=new Array(t),s=0;s2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return o('i18n.languages were undefined or empty',t.languages),!0;var c=t.languages[0],l=!!t.options&&t.options.fallbackLng,u=t.languages[t.languages.length-1];if('cimode'===c.toLowerCase())return!0;var f=function(n,o){var s=t.services.backendConnector.state["".concat(n,"|").concat(o)];return-1===s||2===s};return!(s.bindI18n&&s.bindI18n.indexOf('languageChanging')>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!f(t.isLanguageChangingTo,n)||!t.hasResourceBundle(c,n)&&t.services.backendConnector.backend&&(!f(c,n)||l&&!f(u,n)))},e.getDisplayName=function(n){return n.displayName||n.name||('string'==typeof n&&n.length>0?n:'Unknown')};var t={};function o(){for(var o=arguments.length,s=new Array(o),c=0;c0&&void 0!==arguments[0]?arguments[0]:{};u=i(i({},u),t)}e.I18nContext=p;var l=(function(){function s(){(0,t.default)(this,s),this.usedNamespaces={}}return(0,n.default)(s,[{key:"addUsedNamespaces",value:function(t){var n=this;t.forEach(function(t){n.usedNamespaces[t]||(n.usedNamespaces[t]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),s})();function b(t){c=t}function O(){return c}e.ReportNamespaces=l;var y={type:'3rdParty',init:function(t){f(t.options.react),b(t)}};function v(){var t=O(),n=t.reportNamespaces?t.reportNamespaces.getUsedNamespaces():[],s={},o={};return t.languages.forEach(function(s){o[s]={},n.forEach(function(n){o[s][n]=t.getResourceBundle(s,n)||{}})}),s.initialI18nStore=o,s.initialLanguage=t.language,s}e.initReactI18next=y},600,[3,7,8,248,15]); +__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.useTranslation=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.i18n,c=(0,n.useContext)(r(d[4]).I18nContext)||{},u=c.i18n,f=c.defaultNS,p=s||u||(0,r(d[4]).getI18n)();p&&!p.reportNamespaces&&(p.reportNamespaces=new(r(d[4]).ReportNamespaces));if(!p){(0,r(d[5]).warnOnce)('You will need to pass in an i18next instance by using initReactI18next');var l=function(e){return Array.isArray(e)?e[e.length-1]:e},y=[l,{},!1];return y.t=l,y.i18n={},y.ready=!1,y}p.options.react&&void 0!==p.options.react.wait&&(0,r(d[5]).warnOnce)('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');var O=i(i(i({},(0,r(d[4]).getDefaults)()),p.options.react),o),b=O.useSuspense,v=O.keyPrefix,w=t||f||p.options&&p.options.defaultNS;w='string'==typeof w?[w]:w||['translation'],p.reportNamespaces.addUsedNamespaces&&p.reportNamespaces.addUsedNamespaces(w);var h=(p.isInitialized||p.initializedStoreOnce)&&w.every(function(e){return(0,r(d[5]).hasLoadedNamespace)(e,p,O)});function j(){return p.getFixedT(null,'fallback'===O.nsMode?w:w[0],v)}var N=(0,n.useState)(j),P=(0,e.default)(N,2),S=P[0],I=P[1],x=(0,n.useRef)(!0);(0,n.useEffect)(function(){var e=O.bindI18n,t=O.bindI18nStore;function n(){x.current&&I(j)}return x.current=!0,h||b||(0,r(d[5]).loadNamespaces)(p,w,function(){x.current&&I(j)}),e&&p&&p.on(e,n),t&&p&&p.store.on(t,n),function(){x.current=!1,e&&p&&e.split(' ').forEach(function(e){return p.off(e,n)}),t&&p&&t.split(' ').forEach(function(e){return p.store.off(e,n)})}},[p,w.join()]);var E=(0,n.useRef)(!0);(0,n.useEffect)(function(){x.current&&!E.current&&I(j),E.current=!1},[p]);var D=[S,p,h];if(D.t=S,D.i18n=p,D.ready=h,h)return D;if(!h&&!b)return D;throw new Promise(function(e){(0,r(d[5]).loadNamespaces)(p,w,function(){e()})})};var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[3]);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function i(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};return function(l){function p(p){var s=p.forwardedRef,O=(0,o.default)(p,c),w=(0,r(d[5]).useTranslation)(t,O),b=(0,n.default)(w,3),y=b[0],j=b[1],h=b[2],v=u(u({},O),{},{t:y,i18n:j,tReady:h});return i.withRef&&s?v.ref=s:!i.withRef&&s&&(v.forwardedRef=s),f.default.createElement(l,v)}p.displayName="withI18nextTranslation(".concat((0,r(d[6]).getDisplayName)(l),")"),p.WrappedComponent=l;return i.withRef?f.default.forwardRef(function(t,n){return f.default.createElement(p,r(d[7])({},t,{forwardedRef:n}))}):p}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),f=r(d[0])(r(d[4])),c=["forwardedRef"];function i(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(t);n&&(f=f.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,f)}return o}function u(n){for(var o=1;o2&&void 0!==arguments[2]?arguments[2]:{}).i18n,u=((0,n.useContext)(r(d[1]).I18nContext)||{}).i18n,c=s||u||(0,r(d[1]).getI18n)();if(c.options&&c.options.isClone)return;t&&!c.initializedStoreOnce&&(c.services.resourceStore.data=t,c.options.ns=Object.values(t).reduce(function(n,t){return Object.keys(t).forEach(function(t){n.indexOf(t)<0&&n.push(t)}),n},c.options.ns),c.initializedStoreOnce=!0,c.isInitialized=!0);o&&!c.initializedLanguageOnce&&(c.changeLanguage(o),c.initializedLanguageOnce=!0)};var n=r(d[0])},606,[15,600]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={Agent:!0,AgentProvider:!0,indyLedgers:!0,components:!0,Button:!0,ButtonType:!0,CheckBoxRow:!0,CredentialCard:!0,InfoBox:!0,InfoBoxType:!0,ErrorModal:!0,NetInfo:!0,Record:!0,InfoTextBox:!0,ToastType:!0,toastConfig:!0,AttachTourStep:!0,homeTourSteps:!0,TourBox:!0,HomeContentView:!0,contexts:!0,AuthProvider:!0,useAuth:!0,CommonUtilProvider:!0,NetworkProvider:!0,useTour:!0,TourProvider:!0,defaultConfiguration:!0,RootStack:!0,AttemptLockout:!0,Developer:!0,OnboardingPages:!0,createStyles:!0,Splash:!0,Terms:!0,UseBiometry:!0,types:!0,LocalStorageKeys:!0,EventTypes:!0,initLanguages:!0,initStoredLanguage:!0,translationResources:!0,ConfigurationProvider:!0,useConfiguration:!0,defaultState:!0,mergeReducers:!0,StoreProvider:!0,StoreContext:!0,useStore:!0,Store:!0,DispatchAction:!0,reducer:!0,ImageAssets:!0,ColorPallet:!0,theme:!0,NavigationTheme:!0,ThemeProvider:!0,useTheme:!0,AnimatedComponentsProvider:!0,useAnimatedComponents:!0,animatedComponents:!0,testIdWithKey:!0,Screens:!0,Stacks:!0,TabStacks:!0,statusBarStyleForColor:!0,StatusBarStyles:!0,BifoldError:!0};Object.defineProperty(e,"Agent",{enumerable:!0,get:function(){return r(d[0]).Agent}}),Object.defineProperty(e,"AgentProvider",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"AnimatedComponentsProvider",{enumerable:!0,get:function(){return r(d[1]).AnimatedComponentsProvider}}),Object.defineProperty(e,"AttachTourStep",{enumerable:!0,get:function(){return r(d[2]).AttachTourStep}}),Object.defineProperty(e,"AttemptLockout",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"AuthProvider",{enumerable:!0,get:function(){return r(d[3]).AuthProvider}}),Object.defineProperty(e,"BifoldError",{enumerable:!0,get:function(){return r(d[4]).BifoldError}}),Object.defineProperty(e,"Button",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"ButtonType",{enumerable:!0,get:function(){return f.ButtonType}}),Object.defineProperty(e,"CheckBoxRow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"ColorPallet",{enumerable:!0,get:function(){return r(d[5]).ColorPallet}}),Object.defineProperty(e,"CommonUtilProvider",{enumerable:!0,get:function(){return r(d[6]).CommonUtilProvider}}),Object.defineProperty(e,"ConfigurationProvider",{enumerable:!0,get:function(){return r(d[7]).ConfigurationProvider}}),Object.defineProperty(e,"CredentialCard",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Developer",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"DispatchAction",{enumerable:!0,get:function(){return I.DispatchAction}}),Object.defineProperty(e,"ErrorModal",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return r(d[8]).EventTypes}}),Object.defineProperty(e,"HomeContentView",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"ImageAssets",{enumerable:!0,get:function(){return r(d[5]).Assets}}),Object.defineProperty(e,"InfoBox",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"InfoBoxType",{enumerable:!0,get:function(){return b.InfoBoxType}}),Object.defineProperty(e,"InfoTextBox",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"LocalStorageKeys",{enumerable:!0,get:function(){return r(d[8]).LocalStorageKeys}}),Object.defineProperty(e,"NavigationTheme",{enumerable:!0,get:function(){return r(d[5]).NavigationTheme}}),Object.defineProperty(e,"NetInfo",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"NetworkProvider",{enumerable:!0,get:function(){return r(d[9]).NetworkProvider}}),Object.defineProperty(e,"OnboardingPages",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Record",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"RootStack",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"Screens",{enumerable:!0,get:function(){return r(d[10]).Screens}}),Object.defineProperty(e,"Splash",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"Stacks",{enumerable:!0,get:function(){return r(d[10]).Stacks}}),Object.defineProperty(e,"StatusBarStyles",{enumerable:!0,get:function(){return r(d[11]).StatusBarStyles}}),Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"StoreContext",{enumerable:!0,get:function(){return r(d[12]).StoreContext}}),Object.defineProperty(e,"StoreProvider",{enumerable:!0,get:function(){return r(d[12]).StoreProvider}}),Object.defineProperty(e,"TabStacks",{enumerable:!0,get:function(){return r(d[10]).TabStacks}}),Object.defineProperty(e,"Terms",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return r(d[13]).ThemeProvider}}),Object.defineProperty(e,"ToastType",{enumerable:!0,get:function(){return r(d[14]).ToastType}}),Object.defineProperty(e,"TourBox",{enumerable:!0,get:function(){return r(d[15]).TourBox}}),Object.defineProperty(e,"TourProvider",{enumerable:!0,get:function(){return r(d[16]).TourProvider}}),Object.defineProperty(e,"UseBiometry",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"animatedComponents",{enumerable:!0,get:function(){return r(d[17]).animatedComponents}}),e.contexts=e.components=void 0,Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return h.createStyles}}),Object.defineProperty(e,"defaultConfiguration",{enumerable:!0,get:function(){return r(d[18]).defaultConfiguration}}),Object.defineProperty(e,"defaultState",{enumerable:!0,get:function(){return r(d[12]).defaultState}}),Object.defineProperty(e,"homeTourSteps",{enumerable:!0,get:function(){return r(d[19]).homeTourSteps}}),Object.defineProperty(e,"indyLedgers",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"initLanguages",{enumerable:!0,get:function(){return r(d[20]).initLanguages}}),Object.defineProperty(e,"initStoredLanguage",{enumerable:!0,get:function(){return r(d[20]).initStoredLanguage}}),Object.defineProperty(e,"mergeReducers",{enumerable:!0,get:function(){return r(d[12]).mergeReducers}}),Object.defineProperty(e,"reducer",{enumerable:!0,get:function(){return I.reducer}}),Object.defineProperty(e,"statusBarStyleForColor",{enumerable:!0,get:function(){return r(d[11]).statusBarStyleForColor}}),Object.defineProperty(e,"testIdWithKey",{enumerable:!0,get:function(){return r(d[21]).testIdWithKey}}),Object.defineProperty(e,"theme",{enumerable:!0,get:function(){return r(d[5]).theme}}),Object.defineProperty(e,"toastConfig",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"translationResources",{enumerable:!0,get:function(){return r(d[20]).translationResources}}),e.types=void 0,Object.defineProperty(e,"useAnimatedComponents",{enumerable:!0,get:function(){return r(d[1]).useAnimatedComponents}}),Object.defineProperty(e,"useAuth",{enumerable:!0,get:function(){return r(d[3]).useAuth}}),Object.defineProperty(e,"useConfiguration",{enumerable:!0,get:function(){return r(d[7]).useConfiguration}}),Object.defineProperty(e,"useStore",{enumerable:!0,get:function(){return r(d[12]).useStore}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return r(d[13]).useTheme}}),Object.defineProperty(e,"useTour",{enumerable:!0,get:function(){return r(d[22]).useTour}});var n=r(d[23])(r(d[24])),o=r(d[23])(r(d[25])),u=L(r(d[26]));e.components=u;var f=L(r(d[27])),c=r(d[23])(r(d[28])),l=r(d[23])(r(d[29])),b=L(r(d[30])),p=r(d[23])(r(d[31])),s=r(d[23])(r(d[32])),y=r(d[23])(r(d[33])),P=r(d[23])(r(d[34])),O=r(d[23])(r(d[35])),j=r(d[23])(r(d[36])),S=L(r(d[37]));e.contexts=S;var v=r(d[23])(r(d[38])),T=r(d[23])(r(d[39])),C=r(d[23])(r(d[40])),h=L(r(d[41])),A=r(d[23])(r(d[42])),B=r(d[23])(r(d[43])),x=r(d[23])(r(d[44])),k=L(r(d[45]));e.types=k;var I=L(r(d[46]));function w(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(w=function(t){return t?o:n})(t)}function L(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=w(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var l=f?Object.getOwnPropertyDescriptor(t,c):null;l&&(l.get||l.set)?Object.defineProperty(u,c,l):u[c]=t[c]}return u.default=t,o&&o.set(t,u),u}Object.keys(r(d[47])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===r(d[47])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[47])[n]}}))})},607,[608,1954,2190,2192,2876,1960,2877,2879,2185,2880,2910,2911,2193,1959,2912,2913,2914,1955,2941,3091,2919,2184,2191,3,2928,2908,3092,2884,3073,3095,2883,3102,3103,2944,3075,3104,2952,3105,3107,3108,2963,2964,3049,3072,3076,3355,2194,2954]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var s=Object.getOwnPropertyDescriptor(n,o);s&&("get"in s?n.__esModule:!s.writable&&!s.configurable)||(s={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,s)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.CacheRepository=e.PersistedLruCache=e.IsValidMessageType=e.parseMessageType=e.Buffer=e.TypedArrayEncoder=e.isValidJweStructure=e.isJsonObject=e.JsonTransformer=e.JsonEncoder=e.ReturnRouteTypes=e.AttachmentData=e.Attachment=e.TransportService=e.InjectionSymbols=e.getDirFromFilePath=e.Repository=e.InMemoryMessageRepository=e.KeyDerivationMethod=e.DidCommMimeType=e.MessageSender=e.Dispatcher=e.AgentMessage=e.AgentConfig=e.MessageHandlerRegistry=e.FeatureRegistry=e.EventEmitter=e.BaseAgent=e.Agent=e.MessageReceiver=void 0,r(d[0]),Object.defineProperty(e,"MessageReceiver",{enumerable:!0,get:function(){return r(d[1]).MessageReceiver}}),Object.defineProperty(e,"Agent",{enumerable:!0,get:function(){return r(d[2]).Agent}}),Object.defineProperty(e,"BaseAgent",{enumerable:!0,get:function(){return r(d[3]).BaseAgent}}),n(r(d[4]),e),Object.defineProperty(e,"EventEmitter",{enumerable:!0,get:function(){return r(d[5]).EventEmitter}}),Object.defineProperty(e,"FeatureRegistry",{enumerable:!0,get:function(){return r(d[6]).FeatureRegistry}}),Object.defineProperty(e,"MessageHandlerRegistry",{enumerable:!0,get:function(){return r(d[7]).MessageHandlerRegistry}}),n(r(d[8]),e),Object.defineProperty(e,"AgentConfig",{enumerable:!0,get:function(){return r(d[9]).AgentConfig}}),Object.defineProperty(e,"AgentMessage",{enumerable:!0,get:function(){return r(d[10]).AgentMessage}}),Object.defineProperty(e,"Dispatcher",{enumerable:!0,get:function(){return r(d[11]).Dispatcher}}),Object.defineProperty(e,"MessageSender",{enumerable:!0,get:function(){return r(d[12]).MessageSender}}),Object.defineProperty(e,"DidCommMimeType",{enumerable:!0,get:function(){return r(d[13]).DidCommMimeType}}),Object.defineProperty(e,"KeyDerivationMethod",{enumerable:!0,get:function(){return r(d[13]).KeyDerivationMethod}}),n(r(d[14]),e),Object.defineProperty(e,"InMemoryMessageRepository",{enumerable:!0,get:function(){return r(d[15]).InMemoryMessageRepository}}),Object.defineProperty(e,"Repository",{enumerable:!0,get:function(){return r(d[16]).Repository}}),n(r(d[17]),e),n(r(d[18]),e),Object.defineProperty(e,"getDirFromFilePath",{enumerable:!0,get:function(){return r(d[19]).getDirFromFilePath}}),Object.defineProperty(e,"InjectionSymbols",{enumerable:!0,get:function(){return r(d[20]).InjectionSymbols}}),n(r(d[21]),e),Object.defineProperty(e,"TransportService",{enumerable:!0,get:function(){return r(d[22]).TransportService}}),Object.defineProperty(e,"Attachment",{enumerable:!0,get:function(){return r(d[23]).Attachment}}),Object.defineProperty(e,"AttachmentData",{enumerable:!0,get:function(){return r(d[23]).AttachmentData}}),Object.defineProperty(e,"ReturnRouteTypes",{enumerable:!0,get:function(){return r(d[24]).ReturnRouteTypes}}),n(r(d[25]),e),n(r(d[26]),e),n(r(d[27]),e),n(r(d[28]),e),n(r(d[29]),e),n(r(d[30]),e),n(r(d[31]),e),n(r(d[32]),e),n(r(d[33]),e),n(r(d[34]),e),n(r(d[35]),e),n(r(d[36]),e),n(r(d[37]),e),n(r(d[38]),e),Object.defineProperty(e,"JsonEncoder",{enumerable:!0,get:function(){return r(d[39]).JsonEncoder}}),Object.defineProperty(e,"JsonTransformer",{enumerable:!0,get:function(){return r(d[39]).JsonTransformer}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return r(d[39]).isJsonObject}}),Object.defineProperty(e,"isValidJweStructure",{enumerable:!0,get:function(){return r(d[39]).isValidJweStructure}}),Object.defineProperty(e,"TypedArrayEncoder",{enumerable:!0,get:function(){return r(d[39]).TypedArrayEncoder}}),Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return r(d[39]).Buffer}}),n(r(d[40]),e),n(r(d[41]),e),n(r(d[42]),e),Object.defineProperty(e,"parseMessageType",{enumerable:!0,get:function(){return r(d[43]).parseMessageType}}),Object.defineProperty(e,"IsValidMessageType",{enumerable:!0,get:function(){return r(d[43]).IsValidMessageType}}),n(r(d[44]),e),n(r(d[45]),e),Object.defineProperty(e,"PersistedLruCache",{enumerable:!0,get:function(){return r(d[46]).PersistedLruCache}}),Object.defineProperty(e,"CacheRepository",{enumerable:!0,get:function(){return r(d[46]).CacheRepository}});var o={uuid:r(d[47]).uuid,parseInvitationUrl:r(d[48]).parseInvitationUrl};e.utils=o},608,[609,610,1528,1953,1390,1104,1055,1056,622,1393,948,1493,1344,1401,1096,1952,1101,1102,1537,1374,1103,1939,1343,977,971,1019,1585,1919,1484,1530,1592,944,1838,1425,1359,1551,1943,1419,1698,992,1394,611,1367,941,1345,989,1376,952,1945]); +__d(function(g,r,_i2,a,m,_e,d){var t;!(function(t){!(function(e){var n="object"==typeof g?g:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=i(t);function i(t,e){return function(n,o){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:o}),e&&e(n,o)}}void 0===n.Reflect?n.Reflect=t:o=i(n.Reflect,o),(function(t){var e=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",u="function"==typeof Object.create,f={__proto__:[]}instanceof Array,c=!u&&!f,s={create:u?function(){return G(Object.create(null))}:f?function(){return G({__proto__:null})}:function(){return G({})},has:c?function(t,n){return e.call(t,n)}:function(t,e){return e in t},get:c?function(t,n){return e.call(t,n)?t[n]:void 0}:function(t,e){return t[e]}},h=Object.getPrototypeOf(Function),p="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,y=p||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?(function(){var t={},e=[],n=(function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[i]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t})();return(function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var o=this._keys.length,i=n+1;i=0;--n){var o=t[n],i=o(e);if(!P(i)&&!S(i)){if(!F(i))throw new TypeError;e=i}}return e}function w(t,e,n,o){for(var i=t.length-1;i>=0;--i){var u=t[i],f=u(e,n,o);if(!P(f)&&!S(f)){if(!I(f))throw new TypeError;o=f}}return o}function b(t,e,n){var o=v.get(t);if(P(o)){if(!n)return;o=new y,v.set(t,o)}var i=o.get(e);if(P(i)){if(!n)return;i=new y,o.set(e,i)}return i}function k(t,e,n){var o=E(t,e,n);if(o)return!0;var i=B(e);return!S(i)&&k(t,i,n)}function E(t,e,n){var o=b(e,n,!1);return!P(o)&&!!o.has(t)}function T(t,e,n){var o=E(t,e,n);if(o)return O(t,e,n);var i=B(e);return S(i)?void 0:T(t,i,n)}function O(t,e,n){var o=b(e,n,!1);if(!P(o))return o.get(t)}function j(t,e,n,o){var i=b(n,o,!0);i.set(t,e)}function x(t,e){var n=M(t,e),o=B(t);if(null===o)return n;var i=x(o,e);if(i.length<=0)return n;if(n.length<=0)return i;for(var u=new l,f=[],c=0,s=n;c0)return!0;var i=v.get(e);return i.delete(n),i.size>0||(v.delete(e),!0)})})(o)})()})(t||(t={}))},609,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,n){return t[r]=n}}function f(t,r,n,o){var s=r&&r.prototype instanceof v?r:v,c=Object.create(s.prototype),u=new _(o||[]);return i(c,"_invoke",{value:L(t,n,u)}),c}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var d={};function v(){}function y(){}function w(){}var x={};h(x,c,function(){return this});var b=Object.getPrototypeOf,M=b&&b(b(O([])));M&&M!==n&&o.call(M,c)&&(x=M);var k=w.prototype=v.prototype=Object.create(x);function P(t){["next","throw","return"].forEach(function(r){h(t,r,function(t){return this._invoke(r,t)})})}function E(t,r){function n(i,s,c,u){var l=p(t[i],t,s);if("throw"!==l.type){var h=l.arg,f=h.value;return f&&"object"==typeof f&&o.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,c,u)},function(t){n("throw",t,c,u)}):r.resolve(f).then(function(t){h.value=t,c(h)},function(t){return n("throw",t,c,u)})}u(l.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return s=s?s.then(i,i):i()}})}function L(t,r,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return C()}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function R(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function O(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),l=o.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,c=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(c=(s<3?i(c):s>3?i(r,n,c):i(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MessageReceiver=void 0;var i=(function(){function r(t,n,o,i,s,c,u,l){_r(_d[0])(this,r),this.inboundTransports=[],this.envelopeService=t,this.transportService=n,this.messageSender=o,this.connectionService=i,this.dispatcher=s,this.messageHandlerRegistry=c,this.agentContextProvider=u,this.logger=l}return _r(_d[1])(r,[{key:"registerInboundTransport",value:function(t){this.inboundTransports.push(t)}},{key:"receiveMessage",value:function(r){var n,o,i,s,c,u=arguments;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},o=n.session,i=n.connection,s=n.contextCorrelationId,this.logger.debug("Agent received message"),l.next=4,t().awrap(this.agentContextProvider.getContextForInboundMessage(r,{contextCorrelationId:s}));case 4:if(c=l.sent,l.prev=5,!this.isEncryptedMessage(r)){l.next=11;break}return l.next=9,t().awrap(this.receiveEncryptedMessage(c,r,o));case 9:l.next=17;break;case 11:if(!this.isPlaintextMessage(r)){l.next=16;break}return l.next=14,t().awrap(this.receivePlaintextMessage(c,r,i));case 14:l.next=17;break;case 16:throw new(_r(_d[2]).AriesFrameworkError)('Unable to parse incoming message: unrecognized format');case 17:return l.prev=17,l.next=20,t().awrap(c.endSession());case 20:return l.finish(17);case 21:case"end":return l.stop()}},null,this,[[5,,17,21]],Promise)}},{key:"receivePlaintextMessage",value:function(r,n,o){var i,s;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.transformAndValidate(r,n));case 2:return i=c.sent,s=new(_r(_d[3]).InboundMessageContext)(i,{connection:o,agentContext:r}),c.next=6,t().awrap(this.dispatcher.dispatch(s));case 6:case"end":return c.stop()}},null,this,null,Promise)}},{key:"receiveEncryptedMessage",value:function(r,n,o){var i,s,c,u,l,h,f,p;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.decryptMessage(r,n));case 2:return i=d.sent,s=i.plaintextMessage,c=i.senderKey,u=i.recipientKey,this.logger.info("Received message with type '"+s['@type']+"', recipient key "+(null===u||void 0===u?void 0:u.fingerprint)+" and sender key "+(null===c||void 0===c?void 0:c.fingerprint),s),d.next=7,t().awrap(this.findConnectionByMessageKeys(r,i));case 7:return l=d.sent,d.next=10,t().awrap(this.transformAndValidate(r,s,l));case 10:if(h=d.sent,f=new(_r(_d[3]).InboundMessageContext)(h,{connection:(null===l||void 0===l?void 0:l.isReady)?l:void 0,senderKey:c,recipientKey:u,agentContext:r}),!(c&&u&&h.hasAnyReturnRoute()&&o)){d.next=22;break}this.logger.debug("Storing session for inbound message '"+h.id+"'"),p={recipientKeys:[c],routingKeys:[],senderKey:u},o.keys=p,o.inboundMessage=h,o.connection=null!==l&&void 0!==l?l:void 0,f.sessionId=o.id,this.transportService.saveSession(o),d.next=25;break;case 22:if(!o){d.next=25;break}return d.next=25,t().awrap(o.close());case 25:return d.next=27,t().awrap(this.dispatcher.dispatch(f));case 27:case"end":return d.stop()}},null,this,null,Promise)}},{key:"decryptMessage",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t().awrap(this.envelopeService.unpackMessage(r,n));case 3:return o.abrupt("return",o.sent);case 6:throw o.prev=6,o.t0=o.catch(0),this.logger.error('Error while decrypting message',{error:o.t0,encryptedMessage:n,errorMessage:o.t0 instanceof Error?o.t0.message:o.t0}),o.t0;case 10:case"end":return o.stop()}},null,this,[[0,6]],Promise)}},{key:"isPlaintextMessage",value:function(t){return'object'==typeof t&&null!=t&&'@type'in t}},{key:"isEncryptedMessage",value:function(t){return(0,_r(_d[4]).isValidJweStructure)(t)}},{key:"transformAndValidate",value:function(r,n,o){var i;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,t().awrap(this.transformMessage(n));case 3:i=s.sent,s.next=12;break;case 6:if(s.prev=6,s.t0=s.catch(0),!o){s.next=11;break}return s.next=11,t().awrap(this.sendProblemReportMessage(r,s.t0.message,o,n));case 11:throw s.t0;case 12:return s.abrupt("return",i);case 13:case"end":return s.stop()}},null,this,[[0,6]],Promise)}},{key:"findConnectionByMessageKeys",value:function(r,n){var o,i;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.recipientKey,i=n.senderKey,o&&i){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",this.connectionService.findByKeys(r,{senderKey:i,recipientKey:o}));case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"transformMessage",value:function(r){var n,o,i;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if((0,_r(_d[5]).replaceLegacyDidSovPrefixOnMessage)(r),n=r['@type'],o=this.messageHandlerRegistry.getMessageClassForMessageType(n)){t.next=5;break}throw new(_r(_d[6]).ProblemReportError)("No message class found for message type \""+n+"\"",{problemCode:_r(_d[6]).ProblemReportReason.MessageParseFailure});case 5:t.prev=5,i=_r(_d[7]).JsonTransformer.fromJSON(r,o),t.next=13;break;case 9:throw t.prev=9,t.t0=t.catch(5),this.logger.error("Error validating message "+r.type,{errors:t.t0,message:JSON.stringify(r)}),new(_r(_d[6]).ProblemReportError)("Error validating message "+r.type,{problemCode:_r(_d[6]).ProblemReportReason.MessageParseFailure});case 13:return t.abrupt("return",i);case 14:case"end":return t.stop()}},null,this,[[5,9]],Promise)}},{key:"sendProblemReportMessage",value:function(r,n,o,i){var s,c,u;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(s=(0,_r(_d[5]).parseMessageType)(i['@type']),!(0,_r(_d[5]).canHandleMessageType)(_r(_d[6]).ProblemReportMessage,s)){l.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)("Not sending problem report in response to problem report: "+n);case 3:if((c=new(_r(_d[6]).ProblemReportMessage)({description:{en:n,code:_r(_d[6]).ProblemReportReason.MessageParseFailure}})).setThread({threadId:i['@id']}),!(u=new(_r(_d[3]).OutboundMessageContext)(c,{agentContext:r,connection:o}))){l.next=9;break}return l.next=9,t().awrap(this.messageSender.sendMessage(u));case 9:case"end":return l.stop()}},null,this,null,Promise)}}]),r})();i=r([(0,_r(_d[8]).injectable)(),o(6,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.AgentContextProvider)),o(7,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[10]).EnvelopeService,_r(_d[11]).TransportService,_r(_d[12]).MessageSender,_r(_d[13]).ConnectionService,_r(_d[14]).Dispatcher,_r(_d[15]).MessageHandlerRegistry,Object,Object])],i),e.MessageReceiver=i},610,[7,8,611,622,940,941,944,625,1019,1103,1335,1343,1344,1425,1493,1056]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},611,[612,617,618,619,620,621]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AriesFrameworkError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,e)}return r(d[4])(u)})(r(d[5]).BaseError);_e.AriesFrameworkError=e},612,[14,11,9,7,8,613]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.fullStack=_e.BaseError=_e.SEPARATOR_TEXT=void 0;var n=t(r(d[2])),u=t(r(d[3]));_e.SEPARATOR_TEXT="\n\nThe following exception was the direct cause of the above exception:\n\n";var c=(function(t){r(d[4])(f,t);var n,u,c=(n=f,u=e(),function(){var e,t=r(d[0])(n);if(u){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function f(e,t){var n;return r(d[5])(this,f),(n=c.call(this,e)).cause=t,Object.defineProperty(r(d[6])(n),'cause',{value:t,writable:!1,enumerable:!1,configurable:!1}),n}return r(d[7])(f,[{key:"inspect",value:function(){return o(this)}}]),f})(n.default.BaseError);function o(e){for(var t=[],n=e;n;)t.push(n),n=n.cause;return t.map(function(e){return(0,u.default)(e,{customInspect:!1})}).join(_e.SEPARATOR_TEXT)}_e.BaseError=c,_e.fullStack=o},613,[14,11,614,615,9,7,13,8]); +__d(function(g,r,i,a,m,e,d){"use strict";var t="undefined"!=typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,n=Error.captureStackTrace;function c(t){void 0!==t&&o(this,"message",{configurable:!0,value:t,writable:!0});var c=this.constructor.name;void 0!==c&&c!==this.name&&o(this,"name",{configurable:!0,value:c,writable:!0}),n(this,this.constructor)}void 0===n&&(n=function(t){var n=new Error;o(t,"stack",{configurable:!0,get:function(){var t=n.stack;return o(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(n){o(t,"stack",{configurable:!0,value:n,writable:!0})}})}),c.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:c,writable:!0}});var u=(function(){function t(t,n){return o(t,"name",{configurable:!0,value:n})}try{var n=function(){};if(t(n,"foo"),"foo"===n.name)return t}catch(t){}})();(m.exports=function(o,n){if(null==n||n===Error)n=c;else if("function"!=typeof n)throw new TypeError("super_ should be a function");var f;if("string"==typeof o)f=o,o=void 0!==t?function(){return t(n,arguments,this.constructor)}:function(){n.apply(this,arguments)},void 0!==u&&(u(o,f),f=void 0);else if("function"!=typeof o)throw new TypeError("constructor should be either a string or a function");o.super_=o.super=n;var s={constructor:{configurable:!0,value:o,writable:!0}};return void 0!==f&&(s.name={configurable:!0,value:f,writable:!0}),o.prototype=Object.create(n.prototype,s),o}).BaseError=c},614,[]); +__d(function(g,r,_i,a,_m,_e,d){var t='function'==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,'size'):null,n=t&&e&&'function'==typeof e.get?e.get:null,o=t&&Map.prototype.forEach,i='function'==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,'size'):null,u=i&&c&&'function'==typeof c.get?c.get:null,l=i&&Set.prototype.forEach,f='function'==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p='function'==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y='function'==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,s=Object.prototype.toString,S=Function.prototype.toString,h=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,j=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,x=Array.prototype.concat,_=Array.prototype.join,k=Array.prototype.slice,E=Math.floor,M='function'==typeof BigInt?BigInt.prototype.valueOf:null,W=Object.getOwnPropertySymbols,L='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?Symbol.prototype.toString:null,$='function'==typeof Symbol&&'object'==typeof Symbol.iterator,A='function'==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$||'symbol')?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,q=('function'==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if('number'==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var i=String(o),c=m.call(e,i.length+1);return v.call(i,n,'$&_')+'.'+v.call(v.call(c,/([0-9]{3})/g,'$&_'),/_$/,'')}}return v.call(e,n,'$&_')}var N=G(r(d[0]).custom)?r(d[0]).custom:null;function P(t,e,n){var o='double'===(n.quoteStyle||e)?'"':"'";return o+t+o}function R(t){return v.call(String(t),/"/g,'"')}function D(t){return!('[object Array]'!==V(t)||A&&'object'==typeof t&&A in t)}function B(t){return!('[object Date]'!==V(t)||A&&'object'==typeof t&&A in t)}function C(t){return!('[object RegExp]'!==V(t)||A&&'object'==typeof t&&A in t)}function z(t){return!('[object Error]'!==V(t)||A&&'object'==typeof t&&A in t)}function F(t){return!('[object String]'!==V(t)||A&&'object'==typeof t&&A in t)}function H(t){return!('[object Number]'!==V(t)||A&&'object'==typeof t&&A in t)}function U(t){return!('[object Boolean]'!==V(t)||A&&'object'==typeof t&&A in t)}function G(t){if($)return t&&'object'==typeof t&&t instanceof Symbol;if('symbol'==typeof t)return!0;if(!t||'object'!=typeof t||!L)return!1;try{return L.call(t),!0}catch(t){}return!1}function J(t){if(!t||'object'!=typeof t||!M)return!1;try{return M.call(t),!0}catch(t){}return!1}_m.exports=function t(e,i,c,f){var p=i||{};if(Q(p,'quoteStyle')&&'single'!==p.quoteStyle&&'double'!==p.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(p,'maxStringLength')&&('number'==typeof p.maxStringLength?p.maxStringLength<0&&p.maxStringLength!==1/0:null!==p.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!Q(p,'customInspect')||p.customInspect;if('boolean'!=typeof y&&'symbol'!==y)throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');if(Q(p,'indent')&&null!==p.indent&&'\t'!==p.indent&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(p,'numericSeparator')&&'boolean'!=typeof p.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=p.numericSeparator;if(void 0===e)return'undefined';if(null===e)return'null';if('boolean'==typeof e)return e?'true':'false';if('string'==typeof e)return it(e,p);if('number'==typeof e){if(0===e)return 1/0/e>0?'0':'-0';var S=String(e);return s?I(e,S):S}if('bigint'==typeof e){var h=String(e)+'n';return s?I(e,h):h}var j=void 0===p.depth?5:p.depth;if(void 0===c&&(c=0),c>=j&&j>0&&'object'==typeof e)return D(e)?'[Array]':'[Object]';var w=pt(p,c);if(void 0===f)f=[];else if(Y(f,e)>=0)return'[Circular]';function E(e,n,o){if(n&&(f=k.call(f)).push(n),o){var i={depth:p.depth};return Q(p,'quoteStyle')&&(i.quoteStyle=p.quoteStyle),t(e,i,c+1,f)}return t(e,p,c+1,f)}if('function'==typeof e&&!C(e)){var W=X(e),K=gt(e,E);return'[Function'+(W?': '+W:' (anonymous)')+']'+(K.length>0?' { '+_.call(K,', ')+' }':'')}if(G(e)){var ct=$?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,'$1'):L.call(e);return'object'!=typeof e||$?ct:ut(ct)}if(ot(e)){for(var bt='<'+O.call(String(e.nodeName)),st=e.attributes||[],St=0;St'}if(D(e)){if(0===e.length)return'[]';var ht=gt(e,E);return w&&!ft(ht)?'['+yt(ht,w)+']':'[ '+_.call(ht,', ')+' ]'}if(z(e)){var mt=gt(e,E);return'cause'in Error.prototype||!('cause'in e)||T.call(e,'cause')?0===mt.length?'['+String(e)+']':'{ ['+String(e)+'] '+_.call(mt,', ')+' }':'{ ['+String(e)+'] '+_.call(x.call('[cause]: '+E(e.cause),mt),', ')+' }'}if('object'==typeof e&&y){if(N&&'function'==typeof e[N]&&r(d[0]))return r(d[0])(e,{depth:j-c});if('symbol'!==y&&'function'==typeof e.inspect)return e.inspect()}if(Z(e)){var vt=[];return o&&o.call(e,function(t,n){vt.push(E(n,e,!0)+' => '+E(t,e))}),at('Map',n.call(e),vt,w)}if(rt(e)){var dt=[];return l&&l.call(e,function(t){dt.push(E(t,e))}),at('Set',u.call(e),dt,w)}if(tt(e))return lt('WeakMap');if(nt(e))return lt('WeakSet');if(et(e))return lt('WeakRef');if(H(e))return ut(E(Number(e)));if(J(e))return ut(E(M.call(e)));if(U(e))return ut(b.call(e));if(F(e))return ut(E(String(e)));if(!B(e)&&!C(e)){var jt=gt(e,E),Ot=q?q(e)===Object.prototype:e instanceof Object||e.constructor===Object,wt=e instanceof Object?'':'null prototype',xt=!Ot&&A&&Object(e)===e&&A in e?m.call(V(e),8,-1):wt?'Object':'',_t=(Ot||'function'!=typeof e.constructor?'':e.constructor.name?e.constructor.name+' ':'')+(xt||wt?'['+_.call(x.call([],xt||[],wt||[]),': ')+'] ':'');return 0===jt.length?_t+'{}':w?_t+'{'+yt(jt,w)+'}':_t+'{ '+_.call(jt,', ')+' }'}return String(e)};var K=Object.prototype.hasOwnProperty||function(t){return t in this};function Q(t,e){return K.call(t,e)}function V(t){return s.call(t)}function X(t){if(t.name)return t.name;var e=h.call(S.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Y(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,o=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,o='... '+n+' more character'+(n>1?'s':'');return it(m.call(t,0,e.maxStringLength),e)+o}return P(v.call(v.call(t,/(['\\])/g,'\\$1'),/[\x00-\x1f]/g,ct),'single',e)}function ct(t){var e=t.charCodeAt(0),n={8:'b',9:'t',10:'n',12:'f',13:'r'}[e];return n?'\\'+n:'\\x'+(e<16?'0':'')+j.call(e.toString(16))}function ut(t){return'Object('+t+')'}function lt(t){return t+' { ? }'}function at(t,e,n,o){return t+' ('+e+') {'+(o?yt(n,o):_.call(n,', '))+'}'}function ft(t){for(var e=0;e=0)return!1;return!0}function pt(t,e){var n;if('\t'===t.indent)n='\t';else{if(!('number'==typeof t.indent&&t.indent>0))return null;n=_.call(Array(t.indent+1),' ')}return{base:n,prev:_.call(Array(e+1),n)}}function yt(t,e){if(0===t.length)return'';var n='\n'+e.prev+e.base;return n+_.call(t,','+n)+'\n'+e.prev}function gt(t,e){var n=D(t),o=[];if(n){o.length=t.length;for(var i=0;i=0;c--)(n=e[c])&&(f=(i<3?n(f):i>3?n(t,r,f):n(t,r))||f);return i>3&&f&&Object.defineProperty(t,r,f),f},t=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Feature=void 0;var r=(function(){function e(t){_r(_d[0])(this,e),t&&(this.id=t.id,this.type=t.type)}return _r(_d[1])(e,[{key:"combine",value:function(t){if(t.id!==this.id)throw new(_r(_d[2]).AriesFrameworkError)('Can only combine with a feature with the same id');var r=_r(_d[3]).JsonTransformer.toJSON(this),o=_r(_d[3]).JsonTransformer.toJSON(t);for(var n in o)try{Array.isArray(o[n])?r[n]=_r(_d[4])(new Set([].concat(_r(_d[4])(r[n]),_r(_d[4])(o[n])))):r[n]=o[n]}catch(e){r[n]=o[n]}return _r(_d[3]).JsonTransformer.fromJSON(r,e)}},{key:"toJSON",value:function(){return _r(_d[3]).JsonTransformer.toJSON(this)}}]),e})();e([(0,_r(_d[5]).IsString)(),(0,_r(_d[6]).Expose)({name:'feature-type'}),t("design:type",String)],r.prototype,"type",void 0),_e.Feature=r},624,[7,8,611,625,42,661,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonTransformer=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"toJSON",value:function(n){return(0,r(d[2]).instanceToPlain)(n,{exposeDefaultValues:!0})}},{key:"fromJSON",value:function(n,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).validate,l=void 0===o||o,s=(0,r(d[2]).plainToInstance)(t,n,{exposeDefaultValues:!0});if(!l)return s;if(!s)throw new(r(d[3]).ClassValidationError)('Cannot validate instance of ',{classType:Object.getPrototypeOf(t).name});return r(d[4]).MessageValidator.validateSync(s),s}},{key:"clone",value:function(n){return(0,r(d[2]).instanceToInstance)(n,{exposeDefaultValues:!0,enableCircularCheck:!0,enableImplicitConversion:!0,ignoreDecorators:!0})}},{key:"serialize",value:function(n){return JSON.stringify(this.toJSON(n))}},{key:"deserialize",value:function(n,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).validate,l=void 0===o||o;return this.fromJSON(JSON.parse(n),t,{validate:l})}}]),n})();e.JsonTransformer=n},625,[7,8,626,620,660]); +__d(function(g,r,i,a,_m,e,d){"use strict";var n=this&&this.__createBinding||(Object.create?function(n,s,t,o){void 0===o&&(o=t),Object.defineProperty(n,o,{enumerable:!0,get:function(){return s[t]}})}:function(n,s,t,o){void 0===o&&(o=t),n[o]=s[t]}),s=this&&this.__exportStar||function(s,t){for(var o in s)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||n(t,s,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeArray=e.deserialize=e.serialize=e.classToClassFromExist=e.instanceToInstance=e.plainToClassFromExist=e.plainToInstance=e.plainToClass=e.classToPlainFromExist=e.instanceToPlain=e.classToPlain=e.ClassTransformer=void 0,Object.defineProperty(e,"ClassTransformer",{enumerable:!0,get:function(){return r(d[0]).ClassTransformer}}),s(r(d[1]),e),s(r(d[2]),e),s(r(d[3]),e);var t=new(r(d[0]).ClassTransformer);e.classToPlain=function(n,s){return t.instanceToPlain(n,s)},e.instanceToPlain=function(n,s){return t.instanceToPlain(n,s)},e.classToPlainFromExist=function(n,s,o){return t.classToPlainFromExist(n,s,o)},e.plainToClass=function(n,s,o){return t.plainToInstance(n,s,o)},e.plainToInstance=function(n,s,o){return t.plainToInstance(n,s,o)},e.plainToClassFromExist=function(n,s,o){return t.plainToClassFromExist(n,s,o)},e.instanceToInstance=function(n,s){return t.instanceToInstance(n,s)},e.classToClassFromExist=function(n,s,o){return t.classToClassFromExist(n,s,o)},e.serialize=function(n,s){return t.serialize(n,s)},e.deserialize=function(n,s,o){return t.deserialize(n,s,o)},e.deserializeArray=function(n,s,o){return t.deserializeArray(n,s,o)}},626,[627,637,645,629]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClassTransformer=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"instanceToPlain",value:function(n,o){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_PLAIN,r(d[4])({},r(d[5]).defaultOptions,o)).transform(void 0,n,void 0,void 0,void 0,void 0)}},{key:"classToPlainFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_PLAIN,r(d[4])({},r(d[5]).defaultOptions,t)).transform(o,n,void 0,void 0,void 0,void 0)}},{key:"plainToInstance",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.PLAIN_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(void 0,o,n,void 0,void 0,void 0)}},{key:"plainToClassFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.PLAIN_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(n,o,void 0,void 0,void 0,void 0)}},{key:"instanceToInstance",value:function(n,o){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,o)).transform(void 0,n,void 0,void 0,void 0,void 0)}},{key:"classToClassFromExist",value:function(n,o,t){return new(r(d[2]).TransformOperationExecutor)(r(d[3]).TransformationType.CLASS_TO_CLASS,r(d[4])({},r(d[5]).defaultOptions,t)).transform(o,n,void 0,void 0,void 0,void 0)}},{key:"serialize",value:function(n,o){return JSON.stringify(this.instanceToPlain(n,o))}},{key:"deserialize",value:function(n,o,t){var s=JSON.parse(o);return this.plainToInstance(n,s,t)}},{key:"deserializeArray",value:function(n,o,t){var s=JSON.parse(o);return this.plainToInstance(n,s,t)}}]),n})();e.ClassTransformer=n},627,[7,8,628,629,4,636]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return n(t,o);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,o):void 0}}function n(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n5&&void 0!==arguments[5]?arguments[5]:0;if(Array.isArray(n)||n instanceof Set){var l=p&&this.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?i(p):[];return n.forEach(function(t,n){var i=o?o[n]:void 0;if(u.options.enableCircularCheck&&u.isCircular(t))u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(l instanceof Set?l.add(t):l.push(t));else{var p;if('function'!=typeof s&&s&&s.options&&s.options.discriminator&&s.options.discriminator.property&&s.options.discriminator.subTypes){if(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){p=s.options.discriminator.subTypes.find(function(o){return o.name===t[s.options.discriminator.property]});var f={newObject:l,object:t,property:void 0},y=s.typeFunction(f);p=void 0===p?y:p.value,s.options.keepDiscriminatorProperty||delete t[s.options.discriminator.property]}u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(p=t.constructor),u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN&&(t[s.options.discriminator.property]=s.options.discriminator.subTypes.find(function(o){return o.value===t.constructor}).name)}else p=s;var T=u.transform(i,t,p,void 0,t instanceof Map,c+1);l instanceof Set?l.add(T):l.push(T)}}),l}if(s!==String||f){if(s!==Number||f){if(s!==Boolean||f){if((s===Date||n instanceof Date)&&!f)return n instanceof Date?new Date(n.valueOf()):null===n||void 0===n?n:new Date(n);if((0,r(d[3]).getGlobal)().Buffer&&(s===Buffer||n instanceof Buffer)&&!f)return null===n||void 0===n?n:Buffer.from(n);if((0,r(d[3]).isPromise)(n)&&!f)return new Promise(function(t,o){n.then(function(o){return t(u.transform(void 0,o,s,void 0,void 0,c+1))},o)});if(f||null===n||'object'!=typeof n||'function'!=typeof n.then){if('object'==typeof n&&null!==n){s||n.constructor===Object||(Array.isArray(n)||n.constructor!==Array)&&(s=n.constructor),!s&&o&&(s=o.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);var y=this.getKeys(s,n,f),T=o||{};o||this.transformationType!==r(d[2]).TransformationType.PLAIN_TO_CLASS&&this.transformationType!==r(d[2]).TransformationType.CLASS_TO_CLASS||(T=f?new Map:s?new s:{});for(var v,S=function(){if('__proto__'===A||'constructor'===A)return"continue";var t=A,i=A,p=A;if(!u.options.ignoreDecorators&&s)if(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){var l=r(d[4]).defaultMetadataStorage.findExposeMetadataByCustomName(s,A);l&&(p=l.propertyName,i=l.propertyName)}else if(u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN||u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS){var y=r(d[4]).defaultMetadataStorage.findExposeMetadata(s,A);y&&y.options&&y.options.name&&(i=y.options.name)}var v=void 0,S=void 0,h=(v=u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?n[t]:n instanceof Map?n.get(t):n[t]instanceof Function?n[t]():n[t])instanceof Map;if(s&&f)S=s;else if(s){var _=r(d[4]).defaultMetadataStorage.findTypeMetadata(s,p);if(_){var C={newObject:T,object:n,property:p},L=_.typeFunction?_.typeFunction(C):_.reflectedType;_.options&&_.options.discriminator&&_.options.discriminator.property&&_.options.discriminator.subTypes?n[t]instanceof Array?S=_:(u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS&&(S=void 0===(S=_.options.discriminator.subTypes.find(function(t){if(v&&v instanceof Object&&_.options.discriminator.property in v)return t.name===v[_.options.discriminator.property]}))?L:S.value,_.options.keepDiscriminatorProperty||v&&v instanceof Object&&_.options.discriminator.property in v&&delete v[_.options.discriminator.property]),u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS&&(S=v.constructor),u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN&&v&&(v[_.options.discriminator.property]=_.options.discriminator.subTypes.find(function(t){return t.value===v.constructor}).name)):S=L,h=h||_.reflectedType===Map}else if(u.options.targetMaps)u.options.targetMaps.filter(function(t){return t.target===s&&!!t.properties[p]}).forEach(function(t){return S=t.properties[p]});else if(u.options.enableImplicitConversion&&u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS){var b=Reflect.getMetadata('design:type',s.prototype,p);b&&(S=b)}}var M=Array.isArray(n[t])?u.getReflectedType(s,p):void 0,O=o?o[t]:void 0;if(T.constructor.prototype){var x=Object.getOwnPropertyDescriptor(T.constructor.prototype,i);if((u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS||u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS)&&(x&&!x.set||T[i]instanceof Function))return"continue"}if(u.options.enableCircularCheck&&u.isCircular(v)){if(u.transformationType===r(d[2]).TransformationType.CLASS_TO_CLASS){var P=v;(void 0!==(P=u.applyCustomTransformations(P,s,A,n,u.transformationType))||u.options.exposeUnsetFields)&&(T instanceof Map?T.set(i,P):T[i]=P)}}else{var k,N=u.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS?i:A;u.transformationType===r(d[2]).TransformationType.CLASS_TO_PLAIN?(k=n[N],k=u.applyCustomTransformations(k,s,N,n,u.transformationType),k=n[N]===k?v:k,k=u.transform(O,k,S,M,h,c+1)):void 0===v&&u.options.exposeDefaultValues?k=T[i]:(k=u.transform(O,v,S,M,h,c+1),k=u.applyCustomTransformations(k,s,N,n,u.transformationType)),(void 0!==k||u.options.exposeUnsetFields)&&(T instanceof Map?T.set(i,k):T[i]=k)}},h=t(y);!(v=h()).done;){var A=v.value;S()}return this.options.enableCircularCheck&&this.recursionStack.delete(n),T}return n}return n}return null===n||void 0===n?n:Boolean(n)}return null===n||void 0===n?n:Number(n)}return null===n||void 0===n?n:String(n)}},{key:"applyCustomTransformations",value:function(t,o,n,i,s){var p=this,f=r(d[4]).defaultMetadataStorage.findTransformMetadatas(o,n,this.transformationType);return void 0!==this.options.version&&(f=f.filter(function(t){return!t.options||p.checkVersion(t.options.since,t.options.until)})),(f=this.options.groups&&this.options.groups.length?f.filter(function(t){return!t.options||p.checkGroups(t.options.groups)}):f.filter(function(t){return!t.options||!t.options.groups||!t.options.groups.length})).forEach(function(o){t=o.transformFn({value:t,key:n,obj:i,type:s,options:p.options})}),t}},{key:"isCircular",value:function(t){return this.recursionStack.has(t)}},{key:"getReflectedType",value:function(t,o){if(t){var n=r(d[4]).defaultMetadataStorage.findTypeMetadata(t,o);return n?n.reflectedType:void 0}}},{key:"getKeys",value:function(t,o,n){var i=this,s=r(d[4]).defaultMetadataStorage.getStrategy(t);'none'===s&&(s=this.options.strategy||'exposeAll');var p=[];if(('exposeAll'===s||n)&&(p=o instanceof Map?Array.from(o.keys()):Object.keys(o)),n)return p;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){var f=r(d[4]).defaultMetadataStorage.getExposedProperties(t,this.transformationType),u=r(d[4]).defaultMetadataStorage.getExcludedProperties(t,this.transformationType);p=[].concat(r(d[5])(f),r(d[5])(u))}if(!this.options.ignoreDecorators&&t){var c=r(d[4]).defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===r(d[2]).TransformationType.PLAIN_TO_CLASS&&(c=c.map(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return n&&n.options&&n.options.name?n.options.name:o})),p=this.options.excludeExtraneousValues?c:p.concat(c);var l=r(d[4]).defaultMetadataStorage.getExcludedProperties(t,this.transformationType);l.length>0&&(p=p.filter(function(t){return!l.includes(t)})),void 0!==this.options.version&&(p=p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!n||!n.options||i.checkVersion(n.options.since,n.options.until)})),p=this.options.groups&&this.options.groups.length?p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!n||!n.options||i.checkGroups(n.options.groups)}):p.filter(function(o){var n=r(d[4]).defaultMetadataStorage.findExposeMetadata(t,o);return!(n&&n.options&&n.options.groups&&n.options.groups.length)})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(p=p.filter(function(t){return i.options.excludePrefixes.every(function(o){return t.substr(0,o.length)!==o})})),p=p.filter(function(t,o,n){return n.indexOf(t)===o})}},{key:"checkVersion",value:function(t,o){var n=!0;return n&&t&&(n=this.options.version>=t),n&&o&&(n=this.options.version=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o0&&void 0!==arguments[0]?arguments[0]:{};return function(n,o){r(d[0]).defaultMetadataStorage.addExcludeMetadata({target:n instanceof Function?n:n.constructor,propertyName:o,options:t})}}},638,[634]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Expose=void 0,e.Expose=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(o,n){r(d[0]).defaultMetadataStorage.addExposeMetadata({target:o instanceof Function?o:o.constructor,propertyName:n,options:t})}}},639,[634]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransformInstanceToInstance=void 0,e.TransformInstanceToInstance=function(n){return function(t,o,c){var s=new(r(d[0]).ClassTransformer),f=c.value;c.value=function(){for(var t=arguments.length,o=new Array(t),c=0;c1&&void 0!==arguments[1]?arguments[1]:{};return function(n,f){r(d[0]).defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:f,transformFn:t,options:o})}}},643,[634]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Type=void 0,e.Type=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(o,c){var p=Reflect.getMetadata('design:type',o,c);r(d[0]).defaultMetadataStorage.addTypeMetadata({target:o.constructor,propertyName:c,reflectedType:p,typeFunction:t,options:n})}}},644,[634]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),n(r(d[12]),e),n(r(d[13]),e)},645,[646,647,648,649,650,651,652,653,654,655,656,657,658,659]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},646,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},647,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},648,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},649,[]); @@ -663,2744 +663,2754 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{v __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},657,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},658,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},659,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},660,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageValidator=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"validateSync",value:function(t){var o=(0,r(d[2]).validateSync)(t);if((0,r(d[3]).isValidationErrorArray)(o))throw new(r(d[4]).ClassValidationError)('Failed to validate class.',{classType:t.constructor.name,validationErrors:o});if(0!==o.length)throw new(r(d[4]).ClassValidationError)('An unknown validation error occurred.',{classType:Object.prototype.constructor(t).name})}}]),t})();e.MessageValidator=t},661,[7,8,662,933,612]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.registerSchema=e.validateSync=e.validateOrReject=e.validate=void 0,n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),e.validate=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validate(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validate(t,n)},e.validateOrReject=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validateOrReject(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validateOrReject(t,n)},e.validateSync=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validateSync(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validateSync(t,n)},e.registerSchema=function(t){r(d[11]).getMetadataStorage().addValidationSchema(t)}},662,[663,664,744,925,926,927,928,666,929,932,676,667]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFromContainer=e.useContainer=void 0;var t,n,o=new((function(){function t(){r(d[0])(this,t),this.instances=[]}return r(d[1])(t,[{key:"get",value:function(t){var n=this.instances.find(function(n){return n.type===t});return n||(n={type:t,object:new t},this.instances.push(n)),n.object}}]),t})());e.useContainer=function(o,u){t=o,n=u},e.getFromContainer=function(u){if(t)try{var c=t.get(u);if(c)return c;if(!n||!n.fallback)return c}catch(t){if(!n||!n.fallbackOnErrors)throw t}return o.get(u)}},663,[7,8]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),n(r(d[12]),e),n(r(d[13]),e),n(r(d[14]),e),n(r(d[15]),e),n(r(d[16]),e),n(r(d[17]),e),n(r(d[18]),e),n(r(d[19]),e),n(r(d[20]),e),n(r(d[21]),e),n(r(d[22]),e),n(r(d[23]),e),n(r(d[24]),e),n(r(d[25]),e),n(r(d[26]),e),n(r(d[27]),e),n(r(d[28]),e),n(r(d[29]),e),n(r(d[30]),e),n(r(d[31]),e),n(r(d[32]),e),n(r(d[33]),e),n(r(d[34]),e),n(r(d[35]),e),n(r(d[36]),e),n(r(d[37]),e),n(r(d[38]),e),n(r(d[39]),e),n(r(d[40]),e),n(r(d[41]),e),n(r(d[42]),e),n(r(d[43]),e),n(r(d[44]),e),n(r(d[45]),e),n(r(d[46]),e),n(r(d[47]),e),n(r(d[48]),e),n(r(d[49]),e),n(r(d[50]),e),n(r(d[51]),e),n(r(d[52]),e),n(r(d[53]),e),n(r(d[54]),e),n(r(d[55]),e),n(r(d[56]),e),n(r(d[57]),e),n(r(d[58]),e),n(r(d[59]),e),n(r(d[60]),e),n(r(d[61]),e),n(r(d[62]),e),n(r(d[63]),e),n(r(d[64]),e),n(r(d[65]),e),n(r(d[66]),e),n(r(d[67]),e),n(r(d[68]),e),n(r(d[69]),e),n(r(d[70]),e),n(r(d[71]),e),n(r(d[72]),e),n(r(d[73]),e),n(r(d[74]),e),n(r(d[75]),e),n(r(d[76]),e),n(r(d[77]),e),n(r(d[78]),e),n(r(d[79]),e),n(r(d[80]),e),n(r(d[81]),e),n(r(d[82]),e),n(r(d[83]),e),n(r(d[84]),e),n(r(d[85]),e),n(r(d[86]),e),n(r(d[87]),e),n(r(d[88]),e),n(r(d[89]),e),n(r(d[90]),e),n(r(d[91]),e),n(r(d[92]),e),n(r(d[93]),e),n(r(d[94]),e),n(r(d[95]),e),n(r(d[96]),e),n(r(d[97]),e),n(r(d[98]),e),n(r(d[99]),e),n(r(d[100]),e),n(r(d[101]),e),n(r(d[102]),e),n(r(d[103]),e),n(r(d[104]),e),n(r(d[105]),e)},664,[665,674,678,679,675,680,681,682,683,687,688,689,690,691,692,693,694,695,700,701,702,703,704,705,706,709,710,712,714,717,719,721,723,725,727,731,732,734,736,738,740,742,745,746,749,751,753,755,757,759,761,763,765,767,769,771,773,775,777,778,780,782,783,784,786,860,861,863,865,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,902,904,906,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=void 0,e.Allow=function(t){return function(o,n){var l={type:r(d[0]).ValidationTypes.WHITELIST,target:o.constructor,propertyName:n,validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},665,[666,667,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationTypes=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"isValid",value:function(t){var n=this;return'isValid'!==t&&'getMessage'!==t&&-1!==Object.keys(this).map(function(t){return n[t]}).indexOf(t)}}]),t})();e.ValidationTypes=t,t.CUSTOM_VALIDATION='customValidation',t.NESTED_VALIDATION='nestedValidation',t.PROMISE_VALIDATION='promiseValidation',t.CONDITIONAL_VALIDATION='conditionalValidation',t.WHITELIST='whitelistValidation',t.IS_DEFINED='isDefined'},666,[7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMetadataStorage=e.MetadataStorage=void 0;var t=(function(){function t(){r(d[0])(this,t),this.validationMetadatas=[],this.constraintMetadatas=[]}return r(d[1])(t,[{key:"hasValidationMetaData",get:function(){return!!this.validationMetadatas.length}},{key:"addValidationSchema",value:function(t){var n=this;(new(r(d[2]).ValidationSchemaToMetadataTransformer)).transform(t).forEach(function(t){return n.addValidationMetadata(t)})}},{key:"addValidationMetadata",value:function(t){this.validationMetadatas.push(t)}},{key:"addConstraintMetadata",value:function(t){this.constraintMetadatas.push(t)}},{key:"groupByPropertyName",value:function(t){var n={};return t.forEach(function(t){n[t.propertyName]||(n[t.propertyName]=[]),n[t.propertyName].push(t)}),n}},{key:"getTargetValidationMetadatas",value:function(t,n,o,u,s){var l=function(t){return void 0!==t.always?t.always:(!t.groups||!t.groups.length)&&o},c=function(t){return!(!u||s&&s.length||!t.groups||!t.groups.length)},f=this.validationMetadatas.filter(function(o){return(o.target===t||o.target===n)&&(!!l(o)||!c(o)&&(!(s&&s.length>0)||o.groups&&!!o.groups.find(function(t){return-1!==s.indexOf(t)})))}),p=this.validationMetadatas.filter(function(n){return'string'!=typeof n.target&&(n.target!==t&&((!(n.target instanceof Function)||t.prototype instanceof n.target)&&(!!l(n)||!c(n)&&(!(s&&s.length>0)||n.groups&&!!n.groups.find(function(t){return-1!==s.indexOf(t)})))))}).filter(function(t){return!f.find(function(n){return n.propertyName===t.propertyName&&n.type===t.type})});return f.concat(p)}},{key:"getTargetValidatorConstraints",value:function(t){return this.constraintMetadatas.filter(function(n){return n.target===t})}}]),t})();e.MetadataStorage=t,e.getMetadataStorage=function(){var n=r(d[3]).getGlobal();return n.classValidatorMetadataStorage||(n.classValidatorMetadataStorage=new t),n.classValidatorMetadataStorage}},667,[7,8,668,670]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationSchemaToMetadataTransformer=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"transform",value:function(t){var n=[];return Object.keys(t.properties).forEach(function(o){t.properties[o].forEach(function(s){var c={message:s.message,groups:s.groups,always:s.always,each:s.each},p={type:s.type,target:t.name,propertyName:o,constraints:s.constraints,validationTypeOptions:s.options,validationOptions:c};n.push(new(r(d[2]).ValidationMetadata)(p))})}),n}}]),t})();e.ValidationSchemaToMetadataTransformer=t},668,[7,8,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationMetadata=void 0;var t=r(d[0])(function t(s){r(d[1])(this,t),this.groups=[],this.each=!1,this.context=void 0,this.type=s.type,this.target=s.target,this.propertyName=s.propertyName,this.constraints=s.constraints,this.constraintCls=s.constraintCls,this.validationTypeOptions=s.validationTypeOptions,s.validationOptions&&(this.message=s.validationOptions.message,this.groups=s.validationOptions.groups,this.always=s.validationOptions.always,this.each=s.validationOptions.each,this.context=s.validationOptions.context)});e.ValidationMetadata=t},669,[8,7]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},670,[671,672,673]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertToArray=void 0,e.convertToArray=function(o){return o instanceof Map?Array.from(o.values()):Array.isArray(o)?o:Array.from(o)}},671,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobal=void 0,e.getGlobal=function(){return'undefined'!=typeof globalThis?globalThis:void 0!==g?g:'undefined'!=typeof window?window:'undefined'!=typeof self?self:void 0}},672,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPromise=void 0,e.isPromise=function(t){return null!==t&&'object'==typeof t&&'function'==typeof t.then}},673,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return void 0!==n&&null!==n}Object.defineProperty(e,"__esModule",{value:!0}),e.IsDefined=e.isDefined=e.IS_DEFINED=void 0,e.IS_DEFINED=r(d[0]).ValidationTypes.IS_DEFINED,e.isDefined=n,e.IsDefined=function(t){return r(d[1]).ValidateBy({name:e.IS_DEFINED,validator:{validate:function(t){return n(t)},defaultMessage:r(d[1]).buildMessage(function(n){return n+'$property should not be null or undefined'},t)}},t)}},674,[666,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateBy=e.buildMessage=void 0,e.buildMessage=function(t,n){return function(o){var u=n&&n.each?'each value in ':'';return t(u,o)}},e.ValidateBy=function(t,n){return function(o,u){r(d[0]).registerDecorator({name:t.name,target:o.constructor,propertyName:u,options:n,constraints:t.constraints,validator:t.validator})}}},675,[676]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerDecorator=void 0,e.registerDecorator=function(t){var n;if(t.validator instanceof Function){if(n=t.validator,r(d[0]).getFromContainer(r(d[1]).MetadataStorage).getTargetValidatorConstraints(t.validator).length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: "+t.target.name+":"+t.propertyName}else{var o=t.validator;n=(function(){function t(){r(d[2])(this,t)}return r(d[3])(t,[{key:"validate",value:function(t,n){return o.validate(t,n)}},{key:"defaultMessage",value:function(t){return o.defaultMessage?o.defaultMessage(t):''}}]),t})(),r(d[1]).getMetadataStorage().addConstraintMetadata(new(r(d[4]).ConstraintMetadata)(n,t.name,t.async))}var s={type:t.name&&r(d[5]).ValidationTypes.isValid(t.name)?t.name:r(d[5]).ValidationTypes.CUSTOM_VALIDATION,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:n,constraints:t.constraints};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[6]).ValidationMetadata)(s))}},676,[663,667,7,8,677,666,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConstraintMetadata=void 0;var t=(function(){function t(n,o){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r(d[0])(this,t),this.target=n,this.name=o,this.async=s}return r(d[1])(t,[{key:"instance",get:function(){return r(d[2]).getFromContainer(this.target)}}]),t})();e.ConstraintMetadata=t},677,[7,8,663]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsOptional=void 0,e.IsOptional=function(t){return function(n,o){var u={type:r(d[0]).ValidationTypes.CONDITIONAL_VALIDATION,target:n.constructor,propertyName:o,constraints:[function(t,n){return null!==t[o]&&void 0!==t[o]}],validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(u))}}},678,[666,667,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Validate=e.ValidatorConstraint=void 0,e.ValidatorConstraint=function(t){return function(n){var o=t&&t.async,s=t&&t.name?t.name:'';s||(s=n.name)||(s=s.replace(/\.?([A-Z]+)/g,function(t,n){return'_'+n.toLowerCase()}).replace(/^_/,''));var c=new(r(d[0]).ConstraintMetadata)(n,s,o);r(d[1]).getMetadataStorage().addConstraintMetadata(c)}},e.Validate=function(t,n,o){return function(s,c){var l={type:r(d[2]).ValidationTypes.CUSTOM_VALIDATION,target:s.constructor,propertyName:c,constraintCls:t,constraints:n instanceof Array?n:void 0,validationOptions:n instanceof Array?o:n};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[3]).ValidationMetadata)(l))}}},679,[677,667,666,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateIf=void 0,e.ValidateIf=function(t,n){return function(o,c){var l={type:r(d[0]).ValidationTypes.CONDITIONAL_VALIDATION,target:o.constructor,propertyName:c,constraints:[t],validationOptions:n};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},680,[666,667,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateNested=void 0,e.ValidateNested=function(t){var o=r(d[0])({},t),n=o.each?'each value in ':'';return o.message=o.message||n+'nested property $property must be either object or array',function(t,n){var s={type:r(d[1]).ValidationTypes.NESTED_VALIDATION,target:t.constructor,propertyName:n,validationOptions:o};r(d[2]).getMetadataStorage().addValidationMetadata(new(r(d[3]).ValidationMetadata)(s))}}},681,[4,666,667,669]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidatePromise=void 0,e.ValidatePromise=function(t){return function(o,n){var l={type:r(d[0]).ValidationTypes.PROMISE_VALIDATION,target:o.constructor,propertyName:n,validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},682,[666,667,669]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLatLong=e.isLatLong=e.IS_LATLONG=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_LATLONG='isLatLong',e.isLatLong=u,e.IsLatLong=function(t){return r(d[1]).ValidateBy({name:e.IS_LATLONG,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a latitude,longitude string'},t)}},t)}},683,[684,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,o){if((0,t.default)(u),o=(0,s.default)(o,c),!u.includes(','))return!1;var h=u.split(',');if(h[0].startsWith('(')&&!h[1].endsWith(')')||h[1].endsWith(')')&&!h[0].startsWith('('))return!1;if(o.checkDMS)return l.test(h[0])&&D.test(h[1]);return n.test(h[0])&&f.test(h[1])};var t=u(r(d[0])),s=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}var n=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,f=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,D=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};m.exports=e.default,m.exports.default=e.default},684,[685,686]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(o){"@babel/helpers - typeof";return(t="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})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){if(!('string'==typeof o||o instanceof String)){var n=t(o);throw null===o?n='null':'object'===n&&(n=o.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},m.exports=e.default,m.exports.default=e.default},685,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var u in o)void 0===t[u]&&(t[u]=o[u]);return t},m.exports=e.default,m.exports.default=e.default},686,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return('number'==typeof t||'string'==typeof t)&&r(d[0]).isLatLong(t+",0")}Object.defineProperty(e,"__esModule",{value:!0}),e.IsLatitude=e.isLatitude=e.IS_LATITUDE=void 0,e.IS_LATITUDE='isLatitude',e.isLatitude=t,e.IsLatitude=function(u){return r(d[1]).ValidateBy({name:e.IS_LATITUDE,validator:{validate:function(u,n){return t(u)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a latitude string or number'},u)}},u)}},687,[683,675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return('number'==typeof t||'string'==typeof t)&&r(d[0]).isLatLong("0,"+t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsLongitude=e.isLongitude=e.IS_LONGITUDE=void 0,e.IS_LONGITUDE='isLongitude',e.isLongitude=t,e.IsLongitude=function(n){return r(d[1]).ValidateBy({name:e.IS_LONGITUDE,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a longitude string or number'},n)}},n)}},688,[683,675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t===n}Object.defineProperty(e,"__esModule",{value:!0}),e.Equals=e.equals=e.EQUALS=void 0,e.EQUALS='equals',e.equals=t,e.Equals=function(n,u){return r(d[0]).ValidateBy({name:e.EQUALS,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be equal to $constraint1'},u)}},u)}},689,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t!==n}Object.defineProperty(e,"__esModule",{value:!0}),e.NotEquals=e.notEquals=e.NOT_EQUALS=void 0,e.NOT_EQUALS='notEquals',e.notEquals=t,e.NotEquals=function(n,o){return r(d[0]).ValidateBy({name:e.NOT_EQUALS,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be equal to $constraint1'},o)}},o)}},690,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return''===t||null===t||void 0===t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsEmpty=e.isEmpty=e.IS_EMPTY=void 0,e.IS_EMPTY='isEmpty',e.isEmpty=t,e.IsEmpty=function(n){return r(d[0]).ValidateBy({name:e.IS_EMPTY,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be empty'},n)}},n)}},691,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return''!==t&&null!==t&&void 0!==t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotEmpty=e.isNotEmpty=e.IS_NOT_EMPTY=void 0,e.IS_NOT_EMPTY='isNotEmpty',e.isNotEmpty=t,e.IsNotEmpty=function(n){return r(d[0]).ValidateBy({name:e.IS_NOT_EMPTY,validator:{validate:function(n,o){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be empty'},n)}},n)}},692,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return!(t instanceof Array)||t.some(function(t){return t===n})}Object.defineProperty(e,"__esModule",{value:!0}),e.IsIn=e.isIn=e.IS_IN=void 0,e.IS_IN='isIn',e.isIn=n,e.IsIn=function(t,s){return r(d[0]).ValidateBy({name:e.IS_IN,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must be one of the following values: $constraint1'},s)}},s)}},693,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return!(t instanceof Array&&t.some(function(t){return t===n}))}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotIn=e.isNotIn=e.IS_NOT_IN=void 0,e.IS_NOT_IN='isNotIn',e.isNotIn=n,e.IsNotIn=function(t,o){return r(d[0]).ValidateBy({name:e.IS_NOT_IN,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property should not be one of the following values: $constraint1'},o)}},o)}},694,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDivisibleBy=e.isDivisibleBy=e.IS_DIVISIBLE_BY=void 0;var n=t(r(d[0]));function s(t,s){return'number'==typeof t&&'number'==typeof s&&n.default(String(t),s)}e.IS_DIVISIBLE_BY='isDivisibleBy',e.isDivisibleBy=s,e.IsDivisibleBy=function(t,n){return r(d[1]).ValidateBy({name:e.IS_DIVISIBLE_BY,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be divisible by $constraint1'},n)}},n)}},695,[696,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,l){return(0,t.default)(f),(0,u.default)(f)%parseInt(l,10)==0};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},696,[685,697]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t)?parseFloat(t):NaN};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},697,[698]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,o){(0,l.default)(t),o=o||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(o.locale?r(d[1]).decimal[o.locale]:'.',"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(''===t||'.'===t||'-'===t||'+'===t)return!1;var c=parseFloat(t.replace(',','.'));return n.test(t)&&(!o.hasOwnProperty('min')||c>=o.min)&&(!o.hasOwnProperty('max')||c<=o.max)&&(!o.hasOwnProperty('lt')||co.gt)},e.locales=void 0;var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=Object.keys(r(d[1]).decimal);e.locales=o},698,[685,699]); -__d(function(g,r,_i5,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commaDecimal=e.dotDecimal=e.farsiLocales=e.arabicLocales=e.englishLocales=e.decimal=e.alphanumeric=e.alpha=void 0;var i={'en-US':/^[A-Z]+$/i,'az-AZ':/^[A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'bg-BG':/^[\u0410-\u042f]+$/i,'cs-CZ':/^[A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,'da-DK':/^[A-Z\xc6\xd8\xc5]+$/i,'de-DE':/^[A-Z\xc4\xd6\xdc\xdf]+$/i,'el-GR':/^[\u0391-\u03ce]+$/i,'es-ES':/^[A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,'fa-IR':/^[\u0627\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u06cc]+$/i,'fi-FI':/^[A-Z\xc5\xc4\xd6]+$/i,'fr-FR':/^[A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,'it-IT':/^[A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,'nb-NO':/^[A-Z\xc6\xd8\xc5]+$/i,'nl-NL':/^[A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,'nn-NO':/^[A-Z\xc6\xd8\xc5]+$/i,'hu-HU':/^[A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,'pl-PL':/^[A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,'pt-PT':/^[A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,'ru-RU':/^[\u0410-\u042f\u0401]+$/i,'sl-SI':/^[A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,'sk-SK':/^[A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,'sr-RS@latin':/^[A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,'sr-RS':/^[\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,'sv-SE':/^[A-Z\xc5\xc4\xd6]+$/i,'th-TH':/^[\u0e01-\u0e50\s]+$/i,'tr-TR':/^[A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'uk-UA':/^[\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,'vi-VN':/^[A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,'ku-IQ':/^[\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,ar:/^[\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[\u05d0-\u05ea]+$/,fa:/^['\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc']+$/i,'hi-IN':/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};e.alpha=i;var $={'en-US':/^[0-9A-Z]+$/i,'az-AZ':/^[0-9A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'bg-BG':/^[0-9\u0410-\u042f]+$/i,'cs-CZ':/^[0-9A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,'da-DK':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'de-DE':/^[0-9A-Z\xc4\xd6\xdc\xdf]+$/i,'el-GR':/^[0-9\u0391-\u03c9]+$/i,'es-ES':/^[0-9A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,'fi-FI':/^[0-9A-Z\xc5\xc4\xd6]+$/i,'fr-FR':/^[0-9A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,'it-IT':/^[0-9A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,'hu-HU':/^[0-9A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,'nb-NO':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'nl-NL':/^[0-9A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,'nn-NO':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'pl-PL':/^[0-9A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,'pt-PT':/^[0-9A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,'ru-RU':/^[0-9\u0410-\u042f\u0401]+$/i,'sl-SI':/^[0-9A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,'sk-SK':/^[0-9A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,'sr-RS@latin':/^[0-9A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,'sr-RS':/^[0-9\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,'sv-SE':/^[0-9A-Z\xc5\xc4\xd6]+$/i,'th-TH':/^[\u0e01-\u0e59\s]+$/i,'tr-TR':/^[0-9A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'uk-UA':/^[0-9\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,'ku-IQ':/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,'vi-VN':/^[0-9A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,ar:/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[0-9\u05d0-\u05ea]+$/,fa:/^['0-9\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u06f0']+$/i,'hi-IN':/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};e.alphanumeric=$;var A={'en-US':'.',ar:'\u066b'};e.decimal=A;var Z=['AU','GB','HK','IN','NZ','ZA','ZM'];e.englishLocales=Z;for(var l,n=0;n0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsPositive=e.isPositive=e.IS_POSITIVE=void 0,e.IS_POSITIVE='isPositive',e.isPositive=t,e.IsPositive=function(s){return r(d[0]).ValidateBy({name:e.IS_POSITIVE,validator:{validate:function(s,n){return t(s)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a positive number'},s)}},s)}},700,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'number'==typeof t&&t<0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNegative=e.isNegative=e.IS_NEGATIVE=void 0,e.IS_NEGATIVE='isNegative',e.isNegative=t,e.IsNegative=function(n){return r(d[0]).ValidateBy({name:e.IS_NEGATIVE,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a negative number'},n)}},n)}},701,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return'number'==typeof t&&'number'==typeof n&&t<=n}Object.defineProperty(e,"__esModule",{value:!0}),e.Max=e.max=e.MAX=void 0,e.MAX='max',e.max=t,e.Max=function(n,u){return r(d[0]).ValidateBy({name:e.MAX,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must not be greater than $constraint1'},u)}},u)}},702,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return'number'==typeof n&&'number'==typeof t&&n>=t}Object.defineProperty(e,"__esModule",{value:!0}),e.Min=e.min=e.MIN=void 0,e.MIN='min',e.min=n,e.Min=function(t,u){return r(d[0]).ValidateBy({name:e.MIN,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must not be less than $constraint1'},u)}},u)}},703,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Date&&t.getTime()>=n.getTime()}Object.defineProperty(e,"__esModule",{value:!0}),e.MinDate=e.minDate=e.MIN_DATE=void 0,e.MIN_DATE='minDate',e.minDate=t,e.MinDate=function(n,o){return r(d[0]).ValidateBy({name:e.MIN_DATE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return'minimal allowed date for '+t+'$property is $constraint1'},o)}},o)}},704,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Date&&t.getTime()<=n.getTime()}Object.defineProperty(e,"__esModule",{value:!0}),e.MaxDate=e.maxDate=e.MAX_DATE=void 0,e.MAX_DATE='maxDate',e.maxDate=t,e.MaxDate=function(n,o){return r(d[0]).ValidateBy({name:e.MAX_DATE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return'maximal allowed date for '+t+'$property is $constraint1'},o)}},o)}},705,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Contains=e.contains=e.CONTAINS=void 0;var n=t(r(d[0]));function o(t,o){return'string'==typeof t&&n.default(t,o)}e.CONTAINS='contains',e.contains=o,e.Contains=function(t,n){return r(d[1]).ValidateBy({name:e.CONTAINS,constraints:[t],validator:{validate:function(t,n){return o(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a $constraint1 string'},n)}},n)}},706,[707,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,c,f){if((0,t.default)(l),(f=(0,n.default)(f,s)).ignoreCase)return l.toLowerCase().split((0,u.default)(c).toLowerCase()).length>f.minOccurrences;return l.split((0,u.default)(c)).length>f.minOccurrences};var t=l(r(d[0])),u=l(r(d[1])),n=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}var s={ignoreCase:!1,minOccurrences:1};m.exports=e.default,m.exports.default=e.default},707,[685,708,686]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(o){"@babel/helpers - typeof";return(t="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})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){'object'===t(o)&&null!==o?o='function'==typeof o.toString?o.toString():'[object Object]':(null===o||void 0===o||isNaN(o)&&!o.length)&&(o='');return String(o)},m.exports=e.default,m.exports.default=e.default},708,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotContains=e.notContains=e.NOT_CONTAINS=void 0;var n=t(r(d[0]));function o(t,o){return'string'==typeof t&&!n.default(t,o)}e.NOT_CONTAINS='notContains',e.notContains=o,e.NotContains=function(t,n){return r(d[1]).ValidateBy({name:e.NOT_CONTAINS,constraints:[t],validator:{validate:function(t,n){return o(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property should not contain a $constraint1 string'},n)}},n)}},709,[707,675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAlpha=e.isAlpha=e.IS_ALPHA=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_ALPHA='isAlpha',e.isAlpha=s,e.IsAlpha=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ALPHA,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only letters (a-zA-Z)'},n)}},n)}},710,[711,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-US',l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(n);var c=n,s=l.ignore;if(s)if(s instanceof RegExp)c=c.replace(s,'');else{if('string'!=typeof s)throw new Error('ignore should be instance of a String or RegExp');c=c.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,'\\$&'),"]"),'g'),'')}if(t in r(d[1]).alpha)return r(d[1]).alpha[t].test(c);throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var n,o=(n=r(d[0]))&&n.__esModule?n:{default:n};var t=Object.keys(r(d[1]).alpha);e.locales=t},711,[685,699]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAlphanumeric=e.isAlphanumeric=e.IS_ALPHANUMERIC=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_ALPHANUMERIC='isAlphanumeric',e.isAlphanumeric=u,e.IsAlphanumeric=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ALPHANUMERIC,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only letters and numbers'},n)}},n)}},712,[713,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-US',l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(n);var c=n,s=l.ignore;if(s)if(s instanceof RegExp)c=c.replace(s,'');else{if('string'!=typeof s)throw new Error('ignore should be instance of a String or RegExp');c=c.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,'\\$&'),"]"),'g'),'')}if(t in r(d[1]).alphanumeric)return r(d[1]).alphanumeric[t].test(c);throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var n,o=(n=r(d[0]))&&n.__esModule?n:{default:n};var t=Object.keys(r(d[1]).alphanumeric);e.locales=t},713,[685,699]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDecimal=e.isDecimal=e.IS_DECIMAL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_DECIMAL='isDecimal',e.isDecimal=s,e.IsDecimal=function(t,n){return r(d[1]).ValidateBy({name:e.IS_DECIMAL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property is not a valid decimal number.'},n)}},n)}},714,[715,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,_){if((0,l.default)(o),(_=(0,t.default)(_,u)).locale in r(d[3]).decimal)return!(0,c.default)(f,o.replace(/ /g,''))&&n(_).test(o);throw new Error("Invalid locale '".concat(_.locale,"'"))};var t=o(r(d[0])),l=o(r(d[1])),c=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}function n(t){return new RegExp("^[-+]?([0-9]+)?(\\".concat(r(d[3]).decimal[t.locale],"[0-9]{").concat(t.decimal_digits,"})").concat(t.force_decimal?'':'?',"$"))}var u={force_decimal:!1,decimal_digits:'1,',locale:'en-US'},f=['','-','+'];m.exports=e.default,m.exports.default=e.default},715,[686,685,716,699]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(t,u){return t.some(function(t){return u===t})};e.default=t,m.exports=e.default,m.exports.default=e.default},716,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAscii=e.isAscii=e.IS_ASCII=void 0;var n=t(r(d[0]));function s(t){return'string'==typeof t&&n.default(t)}e.IS_ASCII='isAscii',e.isAscii=s,e.IsAscii=function(t){return r(d[1]).ValidateBy({name:e.IS_ASCII,validator:{validate:function(t,n){return s(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only ASCII characters'},t)}},t)}},717,[718,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[\x00-\x7F]+$/;m.exports=e.default,m.exports.default=e.default},718,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBase64=e.isBase64=e.IS_BASE64=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_BASE64='isBase64',e.isBase64=n,e.IsBase64=function(t){return r(d[1]).ValidateBy({name:e.IS_BASE64,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be base64 encoded'},t)}},t)}},719,[720,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,s){(0,t.default)(f),s=(0,u.default)(s,o);var _=f.length;if(s.urlSafe)return n.test(f);if(_%4!=0||l.test(f))return!1;var c=f.indexOf('=');return-1===c||c===_-1||c===_-2&&'='===f[_-1]};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}var l=/[^A-Z0-9+\/=]/i,n=/^[A-Z0-9_\-]*$/i,o={urlSafe:!1};m.exports=e.default,m.exports.default=e.default},720,[685,686]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsByteLength=e.isByteLength=e.IS_BYTE_LENGTH=void 0;var n=t(r(d[0]));function s(t,s,u){return'string'==typeof t&&n.default(t,{min:s,max:u})}e.IS_BYTE_LENGTH='isByteLength',e.isByteLength=s,e.IsByteLength=function(t,n,u){return r(d[1]).ValidateBy({name:e.IS_BYTE_LENGTH,constraints:[t,n],validator:{validate:function(t,n){return s(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t){return t+"$property's byte length must fall into ($constraint1, $constraint2) range"},u)}},u)}},721,[722,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var f,l;(0,o.default)(t),'object'===n(u)?(f=u.min||0,l=u.max):(f=arguments[1],l=arguments[2]);var y=encodeURI(t).split(/%..|./).length-1;return y>=f&&(void 0===l||y<=l)};var t,o=(t=r(d[0]))&&t.__esModule?t:{default:t};function n(t){"@babel/helpers - typeof";return(n="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)}m.exports=e.default,m.exports.default=e.default},722,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCreditCard=e.isCreditCard=e.IS_CREDIT_CARD=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_CREDIT_CARD='isCreditCard',e.isCreditCard=n,e.IsCreditCard=function(t){return r(d[1]).ValidateBy({name:e.IS_CREDIT_CARD,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a credit card'},t)}},t)}},723,[724,675]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,u.default)(t);var l=t.replace(/[- ]+/g,'');if(!f.test(l))return!1;for(var n,s,o,i=0,_=l.length-1;_>=0;_--)n=l.substring(_,_+1),s=parseInt(n,10),i+=o&&(s*=2)>=10?s%10+1:s,o=!o;return!(i%10!=0||!l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;m.exports=e.default,m.exports.default=e.default},724,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCurrency=e.isCurrency=e.IS_CURRENCY=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_CURRENCY='isCurrency',e.isCurrency=u,e.IsCurrency=function(t,n){return r(d[1]).ValidateBy({name:e.IS_CURRENCY,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a currency'},n)}},n)}},725,[726,675]); -__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,s){return(0,_.default)(n),o(s=(0,t.default)(s,c)).test(n)};var t=n(r(d[0])),_=n(r(d[1]));function n(t){return t&&t.__esModule?t:{default:t}}function o(t){var _="\\d{".concat(t.digits_after_decimal[0],"}");t.digits_after_decimal.forEach(function(t,n){0!==n&&(_="".concat(_,"|\\d{").concat(t,"}"))});var n="(".concat(t.symbol.replace(/\W/,function(t){return"\\".concat(t)}),")").concat(t.require_symbol?'':'?'),o="[1-9]\\d{0,2}(\\".concat(t.thousands_separator,"\\d{3})*"),c="(".concat(['0','[1-9]\\d*',o].join('|'),")?"),s="(\\".concat(t.decimal_separator,"(").concat(_,"))").concat(t.require_decimal?'':'?'),l=c+(t.allow_decimal||t.require_decimal?s:'');return t.allow_negatives&&!t.parens_for_negatives&&(t.negative_sign_after_digits?l+="-?":t.negative_sign_before_digits&&(l="-?"+l)),t.allow_negative_sign_placeholder?l="( (?!\\-))?".concat(l):t.allow_space_after_symbol?l=" ?".concat(l):t.allow_space_after_digits&&(l+='( (?!$))?'),t.symbol_after_digits?l+=n:l=n+l,t.allow_negatives&&(t.parens_for_negatives?l="(\\(".concat(l,"\\)|").concat(l,")"):t.negative_sign_before_digits||t.negative_sign_after_digits||(l="-?"+l)),new RegExp("^(?!-? )(?=.*\\d)".concat(l,"$"))}var c={symbol:'$',require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:',',decimal_separator:'.',allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};_m.exports=e.default,_m.exports.default=e.default},726,[686,685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsEmail=e.isEmail=e.IS_EMAIL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_EMAIL='isEmail',e.isEmail=s,e.IsEmail=function(t,n){return r(d[1]).ValidateBy({name:e.IS_EMAIL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an email'},n)}},n)}},727,[728,675]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,v){if((0,t.default)(f),(v=(0,l.default)(v,s)).require_display_name||v.allow_display_name){var $=f.match(x);if($){var w=$[1];if(f=f.replace(w,'').replace(/(^<|>$)/g,''),w.endsWith(' ')&&(w=w.substr(0,w.length-1)),!b(w))return!1}else if(v.require_display_name)return!1}if(!v.ignore_max_length&&f.length>h)return!1;var D=f.split('@'),q=D.pop(),y=q.toLowerCase();if(v.host_blacklist.includes(y))return!1;var k=D.join('@');if(v.domain_specific_validation&&('gmail.com'===y||'googlemail.com'===y)){var C=(k=k.toLowerCase()).split('+')[0];if(!(0,i.default)(C.replace(/\./g,''),{min:6,max:30}))return!1;for(var E=C.split('.'),z=0;z]/.test(l)){if(l===t)return!1;if(!(l.split('"').length===l.split('\\"').length))return!1}return!0}m.exports=e.default,m.exports.default=e.default},728,[685,686,722,729,730]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,f){(0,t.default)(l),(f=(0,u.default)(f,n)).allow_trailing_dot&&'.'===l[l.length-1]&&(l=l.substring(0,l.length-1));!0===f.allow_wildcard&&0===l.indexOf('*.')&&(l=l.substring(2));var s=l.split('.'),_=s[s.length-1];if(f.require_tld){if(s.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(_))return!1;if(/\s/.test(_))return!1}if(!f.allow_numeric_tld&&/^\d+$/.test(_))return!1;return s.every(function(t){return!(t.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!f.allow_underscores&&/_/.test(t)))))})};var t=l(r(d[0])),u=l(r(d[1]));function l(t){return t&&t.__esModule?t:{default:t}}var n={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};m.exports=e.default,m.exports.default=e.default},729,[685,686]); -__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function c(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';(0,t.default)(n);a=String(a);if(!a)return c(n,4)||c(n,6);if('4'===a){if(!o.test(n))return!1;var u=n.split('.').sort(function(c,t){return c-t});return u[3]<=255}if('6'===a)return!!f.test(n);return!1};var c,t=(c=r(d[0]))&&c.__esModule?c:{default:c};var n='(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])',a="(".concat(n,"[.]){3}").concat(n),o=new RegExp("^".concat(a,"$")),u='(?:[0-9a-fA-F]{1,4})',f=new RegExp('^('+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+')(%[0-9a-zA-Z-.:]{1,})?$');m.exports=e.default,m.exports.default=e.default},730,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsFQDN=e.isFQDN=e.IS_FQDN=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_FQDN='isFqdn',e.isFQDN=s,e.IsFQDN=function(t,n){return r(d[1]).ValidateBy({name:e.IS_FQDN,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid domain name'},n)}},n)}},731,[729,675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsFullWidth=e.isFullWidth=e.IS_FULL_WIDTH=void 0;var u=t(r(d[0]));function l(t){return'string'==typeof t&&u.default(t)}e.IS_FULL_WIDTH='isFullWidth',e.isFullWidth=l,e.IsFullWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_FULL_WIDTH,validator:{validate:function(t,u){return l(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a full-width characters'},t)}},t)}},732,[733,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),F.test(u)},e.fullWidth=void 0;var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var F=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.fullWidth=F},733,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHalfWidth=e.isHalfWidth=e.IS_HALF_WIDTH=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_HALF_WIDTH='isHalfWidth',e.isHalfWidth=u,e.IsHalfWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_HALF_WIDTH,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a half-width characters'},t)}},t)}},734,[735,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),F.test(u)},e.halfWidth=void 0;var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var F=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.halfWidth=F},735,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsVariableWidth=e.isVariableWidth=e.IS_VARIABLE_WIDTH=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_VARIABLE_WIDTH='isVariableWidth',e.isVariableWidth=u,e.IsVariableWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_VARIABLE_WIDTH,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a full-width and half-width characters'},t)}},t)}},736,[737,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),r(d[1]).fullWidth.test(t)&&r(d[2]).halfWidth.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},737,[685,733,735]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHexColor=e.isHexColor=e.IS_HEX_COLOR=void 0;var o=t(r(d[0]));function u(t){return'string'==typeof t&&o.default(t)}e.IS_HEX_COLOR='isHexColor',e.isHexColor=u,e.IsHexColor=function(t){return r(d[1]).ValidateBy({name:e.IS_HEX_COLOR,validator:{validate:function(t,o){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a hexadecimal color'},t)}},t)}},738,[739,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;m.exports=e.default,m.exports.default=e.default},739,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHexadecimal=e.isHexadecimal=e.IS_HEXADECIMAL=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_HEXADECIMAL='isHexadecimal',e.isHexadecimal=n,e.IsHexadecimal=function(t){return r(d[1]).ValidateBy({name:e.IS_HEXADECIMAL,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a hexadecimal number'},t)}},t)}},740,[741,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(0x|0h)?[0-9A-F]+$/i;m.exports=e.default,m.exports.default=e.default},741,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var s=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMACAddress=e.isMACAddress=e.IS_MAC_ADDRESS=void 0;var t=s(r(d[0]));function n(s,n){return'string'==typeof s&&t.default(s,n)}e.IS_MAC_ADDRESS='isMacAddress',e.isMACAddress=n,e.IsMACAddress=function(s,t){var u=r(d[1]).isValidationOptions(s)?void 0:s,o=r(d[1]).isValidationOptions(s)?s:t;return r(d[2]).ValidateBy({name:e.IS_MAC_ADDRESS,constraints:[u],validator:{validate:function(s,t){return n(s,u)},defaultMessage:r(d[2]).buildMessage(function(s){return s+'$property must be a MAC Address'},o)}},o)}},742,[743,744,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l){if((0,f.default)(t),l&&(l.no_colons||l.no_separators))return s.test(t);return u.test(t)||o.test(t)};var t,f=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;m.exports=e.default,m.exports.default=e.default},743,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidationOptions=void 0,e.isValidationOptions=function(n){return!!n&&('each'in n||'message'in n||'groups'in n||'always'in n||'context'in n)}},744,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsIP=e.isIP=e.IS_IP=void 0;var n=t(r(d[0]));function s(t,s){var u=s?""+s:void 0;return'string'==typeof t&&n.default(t,u)}e.IS_IP='isIp',e.isIP=s,e.IsIP=function(t,n){return r(d[1]).ValidateBy({name:e.IS_IP,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ip address'},n)}},n)}},745,[730,675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPort=e.isPort=e.IS_PORT=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_PORT='isPort',e.isPort=n,e.IsPort=function(t){return r(d[1]).ValidateBy({name:e.IS_PORT,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a port'},t)}},t)}},746,[747,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t,{min:0,max:65535})};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},747,[748]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,s){(0,l.default)(t);var u=(s=s||{}).hasOwnProperty('allow_leading_zeroes')&&!s.allow_leading_zeroes?o:n,_=!s.hasOwnProperty('min')||t>=s.min,f=!s.hasOwnProperty('max')||t<=s.max,p=!s.hasOwnProperty('lt')||ts.gt;return u.test(t)&&_&&f&&p&&w};var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,n=/^[-+]?[0-9]+$/;m.exports=e.default,m.exports.default=e.default},748,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISBN=e.isISBN=e.IS_ISBN=void 0;var n=t(r(d[0]));function s(t,s){var u=s?""+s:void 0;return'string'==typeof t&&n.default(t,u)}e.IS_ISBN='isIsbn',e.isISBN=s,e.IsISBN=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ISBN,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISBN'},n)}},n)}},749,[750,675]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';(0,f.default)(l);c=String(c);if(!c)return t(l,10)||t(l,13);var o=l.replace(/[\s-]+/g,'');var s=0;var v;if('10'===c){if(!u.test(o))return!1;for(v=0;v<9;v++)s+=(v+1)*o.charAt(v);if('X'===o.charAt(9)?s+=100:s+=10*o.charAt(9),s%11==0)return!!o}else if('13'===c){if(!i.test(o))return!1;for(v=0;v<12;v++)s+=n[v%2]*o.charAt(v);if(o.charAt(12)-(10-s%10)%10==0)return!!o}return!1};var t,f=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,n=[1,3];m.exports=e.default,m.exports.default=e.default},750,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISIN=e.isISIN=e.IS_ISIN=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_ISIN='isIsin',e.isISIN=u,e.IsISIN=function(t){return r(d[1]).ValidateBy({name:e.IS_ISIN,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISIN (stock/security identifier)'},t)}},t)}},751,[752,675]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),!f.test(t))return!1;for(var l=!0,n=0,o=t.length-2;o>=0;o--)if(t[o]>='A'&&t[o]<='Z')for(var c=t[o].charCodeAt(0)-55,h=c%10,s=Math.trunc(c/10),v=0,i=[h,s];v=5?1+2*(A-5):2*A:A,l=!l}else{var _=t[o].charCodeAt(0)-'0'.charCodeAt(0);n+=l?_>=5?1+2*(_-5):2*_:_,l=!l}var M=10*Math.trunc((n+9)/10)-n;return+t[t.length-1]===M};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;m.exports=e.default,m.exports.default=e.default},752,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO8601=e.isISO8601=e.IS_ISO8601=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_ISO8601='isIso8601',e.isISO8601=s,e.IsISO8601=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ISO8601,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO 8601 date string'},n)}},n)}},753,[754,675]); -__d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(d){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,t.default)(d);var l=o.strictSeparator?u.test(d):c.test(d);return l&&o.strict?n(d):l};var d,t=(d=r(_d[0]))&&d.__esModule?d:{default:d};var c=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,u=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,n=function(d){var t=d.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var c=Number(t[1]),u=Number(t[2]);return c%4==0&&c%100!=0||c%400==0?u<=366:u<=365}var n=d.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=n[1],l=n[2],s=n[3],f=l?"0".concat(l).slice(-2):l,v=s?"0".concat(s).slice(-2):s,b=new Date("".concat(o,"-").concat(f||'01',"-").concat(v||'01'));return!l||!s||b.getUTCFullYear()===o&&b.getUTCMonth()+1===l&&b.getUTCDate()===s};m.exports=e.default,m.exports.default=e.default},754,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsJSON=e.isJSON=e.IS_JSON=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_JSON='isJson',e.isJSON=u,e.IsJSON=function(t){return r(d[1]).ValidateBy({name:e.IS_JSON,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a json string'},t)}},t)}},755,[756,675]); -__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(o,n){(0,t.default)(o);try{n=(0,e.default)(n,l);var f=[];n.allow_primitives&&(f=[null,!1,!0]);var c=JSON.parse(o);return f.includes(c)||!!c&&'object'===u(c)}catch(t){}return!1};var t=o(r(d[0])),e=o(r(d[1]));function o(t){return t&&t.__esModule?t:{default:t}}function u(t){"@babel/helpers - typeof";return(u="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)}var l={allow_primitives:!1};m.exports=_e.default,m.exports.default=_e.default},756,[685,686]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsJWT=e.isJWT=e.IS_JWT=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_JWT='isJwt',e.isJWT=u,e.IsJWT=function(t){return r(d[1]).ValidateBy({name:e.IS_JWT,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a jwt string'},t)}},t)}},757,[758,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f){(0,t.default)(f);var n=f.split('.'),l=n.length;if(l>3||l<2)return!1;return n.reduce(function(t,f){return t&&(0,u.default)(f,{urlSafe:!0})},!0)};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},758,[685,720]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLowercase=e.isLowercase=e.IS_LOWERCASE=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_LOWERCASE='isLowercase',e.isLowercase=n,e.IsLowercase=function(t){return r(d[1]).ValidateBy({name:e.IS_LOWERCASE,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a lowercase string'},t)}},t)}},759,[760,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),t===t.toLowerCase()};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},760,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMobilePhone=e.isMobilePhone=e.IS_MOBILE_PHONE=void 0;var n=t(r(d[0]));function o(t,o,s){return'string'==typeof t&&n.default(t,o,s)}e.IS_MOBILE_PHONE='isMobilePhone',e.isMobilePhone=o,e.IsMobilePhone=function(t,n,s){return r(d[1]).ValidateBy({name:e.IS_MOBILE_PHONE,constraints:[t,n],validator:{validate:function(t,n){return o(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a phone number'},s)}},s)}},761,[762,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t,f){if((0,s.default)($),f&&f.strictMode&&!$.startsWith('+'))return!1;if(Array.isArray(t))return t.some(function(s){if(n.hasOwnProperty(s)){var t=n[s];if(t.test($))return!0}return!1});if(t in n)return n[t].test($);if(!t||'any'===t){for(var l in n)if(n.hasOwnProperty(l)){var o=n[l];if(o.test($))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var $,s=($=r(d[0]))&&$.__esModule?$:{default:$};var n={'am-AM':/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,'ar-AE':/^((\+?971)|0)?5[024568]\d{7}$/,'ar-BH':/^(\+?973)?(3|6)\d{7}$/,'ar-DZ':/^(\+?213|0)(5|6|7)\d{8}$/,'ar-LB':/^(\+?961)?((3|81)\d{6}|7\d{7})$/,'ar-EG':/^((\+?20)|0)?1[0125]\d{8}$/,'ar-IQ':/^(\+?964|0)?7[0-9]\d{8}$/,'ar-JO':/^(\+?962|0)?7[789]\d{7}$/,'ar-KW':/^(\+?965)[569]\d{7}$/,'ar-LY':/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,'ar-MA':/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,'ar-OM':/^((\+|00)968)?(9[1-9])\d{6}$/,'ar-PS':/^(\+?970|0)5[6|9](\d{7})$/,'ar-SA':/^(!?(\+?966)|0)?5\d{8}$/,'ar-SY':/^(!?(\+?963)|0)?9\d{8}$/,'ar-TN':/^(\+?216)?[2459]\d{7}$/,'az-AZ':/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,'bs-BA':/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,'be-BY':/^(\+?375)?(24|25|29|33|44)\d{7}$/,'bg-BG':/^(\+?359|0)?8[789]\d{7}$/,'bn-BD':/^(\+?880|0)1[13456789][0-9]{8}$/,'ca-AD':/^(\+376)?[346]\d{5}$/,'cs-CZ':/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,'da-DK':/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,'de-DE':/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,'de-AT':/^(\+43|0)\d{1,4}\d{3,12}$/,'de-CH':/^(\+41|0)([1-9])\d{1,9}$/,'de-LU':/^(\+352)?((6\d1)\d{6})$/,'dv-MV':/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,'el-GR':/^(\+?30|0)?(69\d{8})$/,'en-AU':/^(\+?61|0)4\d{8}$/,'en-BM':/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,'en-GB':/^(\+?44|0)7\d{9}$/,'en-GG':/^(\+?44|0)1481\d{6}$/,'en-GH':/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,'en-GY':/^(\+592|0)6\d{6}$/,'en-HK':/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,'en-MO':/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,'en-IE':/^(\+?353|0)8[356789]\d{7}$/,'en-IN':/^(\+?91|0)?[6789]\d{9}$/,'en-KE':/^(\+?254|0)(7|1)\d{8}$/,'en-KI':/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,'en-MT':/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,'en-MU':/^(\+?230|0)?\d{8}$/,'en-NA':/^(\+?264|0)(6|8)\d{7}$/,'en-NG':/^(\+?234|0)?[789]\d{9}$/,'en-NZ':/^(\+?64|0)[28]\d{7,9}$/,'en-PK':/^((00|\+)?92|0)3[0-6]\d{8}$/,'en-PH':/^(09|\+639)\d{9}$/,'en-RW':/^(\+?250|0)?[7]\d{8}$/,'en-SG':/^(\+65)?[3689]\d{7}$/,'en-SL':/^(\+?232|0)\d{8}$/,'en-TZ':/^(\+?255|0)?[67]\d{8}$/,'en-UG':/^(\+?256|0)?[7]\d{8}$/,'en-US':/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,'en-ZA':/^(\+?27|0)\d{9}$/,'en-ZM':/^(\+?26)?09[567]\d{7}$/,'en-ZW':/^(\+263)[0-9]{9}$/,'en-BW':/^(\+?267)?(7[1-8]{1})\d{6}$/,'es-AR':/^\+?549(11|[2368]\d)\d{8}$/,'es-BO':/^(\+?591)?(6|7)\d{7}$/,'es-CO':/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,'es-CL':/^(\+?56|0)[2-9]\d{1}\d{7}$/,'es-CR':/^(\+506)?[2-8]\d{7}$/,'es-CU':/^(\+53|0053)?5\d{7}/,'es-DO':/^(\+?1)?8[024]9\d{7}$/,'es-HN':/^(\+?504)?[9|8]\d{7}$/,'es-EC':/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,'es-ES':/^(\+?34)?[6|7]\d{8}$/,'es-PE':/^(\+?51)?9\d{8}$/,'es-MX':/^(\+?52)?(1|01)?\d{10,11}$/,'es-PA':/^(\+?507)\d{7,8}$/,'es-PY':/^(\+?595|0)9[9876]\d{7}$/,'es-SV':/^(\+?503)?[67]\d{7}$/,'es-UY':/^(\+598|0)9[1-9][\d]{6}$/,'es-VE':/^(\+?58)?(2|4)\d{9}$/,'et-EE':/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,'fa-IR':/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,'fi-FI':/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,'fj-FJ':/^(\+?679)?\s?\d{3}\s?\d{4}$/,'fo-FO':/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,'fr-BF':/^(\+226|0)[67]\d{7}$/,'fr-CM':/^(\+?237)6[0-9]{8}$/,'fr-FR':/^(\+?33|0)[67]\d{8}$/,'fr-GF':/^(\+?594|0|00594)[67]\d{8}$/,'fr-GP':/^(\+?590|0|00590)[67]\d{8}$/,'fr-MQ':/^(\+?596|0|00596)[67]\d{8}$/,'fr-PF':/^(\+?689)?8[789]\d{6}$/,'fr-RE':/^(\+?262|0|00262)[67]\d{8}$/,'he-IL':/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,'hu-HU':/^(\+?36|06)(20|30|31|50|70)\d{7}$/,'id-ID':/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,'it-IT':/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,'it-SM':/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,'ja-JP':/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,'ka-GE':/^(\+?995)?(5|79)\d{7}$/,'kk-KZ':/^(\+?7|8)?7\d{9}$/,'kl-GL':/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,'ko-KR':/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,'lt-LT':/^(\+370|8)\d{8}$/,'lv-LV':/^(\+?371)2\d{7}$/,'ms-MY':/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,'mz-MZ':/^(\+?258)?8[234567]\d{7}$/,'nb-NO':/^(\+?47)?[49]\d{7}$/,'ne-NP':/^(\+?977)?9[78]\d{8}$/,'nl-BE':/^(\+?32|0)4\d{8}$/,'nl-NL':/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,'nn-NO':/^(\+?47)?[49]\d{7}$/,'pl-PL':/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,'pt-BR':/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,'pt-PT':/^(\+?351)?9[1236]\d{7}$/,'pt-AO':/^(\+244)\d{9}$/,'ro-RO':/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,'ru-RU':/^(\+?7|8)?9\d{9}$/,'si-LK':/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,'sl-SI':/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,'sk-SK':/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,'sq-AL':/^(\+355|0)6[789]\d{6}$/,'sr-RS':/^(\+3816|06)[- \d]{5,9}$/,'sv-SE':/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,'tg-TJ':/^(\+?992)?[5][5]\d{7}$/,'th-TH':/^(\+66|66|0)\d{9}$/,'tr-TR':/^(\+?90|0)?5\d{9}$/,'tk-TM':/^(\+993|993|8)\d{8}$/,'uk-UA':/^(\+?38|8)?0\d{9}$/,'uz-UZ':/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,'vi-VN':/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,'zh-CN':/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,'zh-TW':/^(\+?886\-?|0)?9\d{8}$/,'dz-BT':/^(\+?975|0)?(17|16|77|02)\d{6}$/};n['en-CA']=n['en-US'],n['fr-CA']=n['en-CA'],n['fr-BE']=n['nl-BE'],n['zh-HK']=n['en-HK'],n['zh-MO']=n['en-MO'],n['ga-IE']=n['en-IE'],n['fr-CH']=n['de-CH'],n['it-CH']=n['fr-CH'];var t=Object.keys(n);e.locales=t},762,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO31661Alpha2=e.isISO31661Alpha2=e.IS_ISO31661_ALPHA_2=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_ISO31661_ALPHA_2='isISO31661Alpha2',e.isISO31661Alpha2=n,e.IsISO31661Alpha2=function(t){return r(d[1]).ValidateBy({name:e.IS_ISO31661_ALPHA_2,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO31661 Alpha2 code'},t)}},t)}},763,[764,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(M){return(0,S.default)(M),C.has(M.toUpperCase())},e.CountryCodes=void 0;var M,S=(M=r(d[0]))&&M.__esModule?M:{default:M};var C=new Set(['AD','AE','AF','AG','AI','AL','AM','AO','AQ','AR','AS','AT','AU','AW','AX','AZ','BA','BB','BD','BE','BF','BG','BH','BI','BJ','BL','BM','BN','BO','BQ','BR','BS','BT','BV','BW','BY','BZ','CA','CC','CD','CF','CG','CH','CI','CK','CL','CM','CN','CO','CR','CU','CV','CW','CX','CY','CZ','DE','DJ','DK','DM','DO','DZ','EC','EE','EG','EH','ER','ES','ET','FI','FJ','FK','FM','FO','FR','GA','GB','GD','GE','GF','GG','GH','GI','GL','GM','GN','GP','GQ','GR','GS','GT','GU','GW','GY','HK','HM','HN','HR','HT','HU','ID','IE','IL','IM','IN','IO','IQ','IR','IS','IT','JE','JM','JO','JP','KE','KG','KH','KI','KM','KN','KP','KR','KW','KY','KZ','LA','LB','LC','LI','LK','LR','LS','LT','LU','LV','LY','MA','MC','MD','ME','MF','MG','MH','MK','ML','MM','MN','MO','MP','MQ','MR','MS','MT','MU','MV','MW','MX','MY','MZ','NA','NC','NE','NF','NG','NI','NL','NO','NP','NR','NU','NZ','OM','PA','PE','PF','PG','PH','PK','PL','PM','PN','PR','PS','PT','PW','PY','QA','RE','RO','RS','RU','RW','SA','SB','SC','SD','SE','SG','SH','SI','SJ','SK','SL','SM','SN','SO','SR','SS','ST','SV','SX','SY','SZ','TC','TD','TF','TG','TH','TJ','TK','TL','TM','TN','TO','TR','TT','TV','TW','TZ','UA','UG','UM','US','UY','UZ','VA','VC','VE','VG','VI','VN','VU','WF','WS','YE','YT','ZA','ZM','ZW']);var G=C;e.CountryCodes=G},764,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO31661Alpha3=e.isISO31661Alpha3=e.IS_ISO31661_ALPHA_3=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_ISO31661_ALPHA_3='isISO31661Alpha3',e.isISO31661Alpha3=n,e.IsISO31661Alpha3=function(t){return r(d[1]).ValidateBy({name:e.IS_ISO31661_ALPHA_3,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO31661 Alpha3 code'},t)}},t)}},765,[766,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(M){return(0,A.default)(M),R.has(M.toUpperCase())};var M,A=(M=r(d[0]))&&M.__esModule?M:{default:M};var R=new Set(['AFG','ALA','ALB','DZA','ASM','AND','AGO','AIA','ATA','ATG','ARG','ARM','ABW','AUS','AUT','AZE','BHS','BHR','BGD','BRB','BLR','BEL','BLZ','BEN','BMU','BTN','BOL','BES','BIH','BWA','BVT','BRA','IOT','BRN','BGR','BFA','BDI','KHM','CMR','CAN','CPV','CYM','CAF','TCD','CHL','CHN','CXR','CCK','COL','COM','COG','COD','COK','CRI','CIV','HRV','CUB','CUW','CYP','CZE','DNK','DJI','DMA','DOM','ECU','EGY','SLV','GNQ','ERI','EST','ETH','FLK','FRO','FJI','FIN','FRA','GUF','PYF','ATF','GAB','GMB','GEO','DEU','GHA','GIB','GRC','GRL','GRD','GLP','GUM','GTM','GGY','GIN','GNB','GUY','HTI','HMD','VAT','HND','HKG','HUN','ISL','IND','IDN','IRN','IRQ','IRL','IMN','ISR','ITA','JAM','JPN','JEY','JOR','KAZ','KEN','KIR','PRK','KOR','KWT','KGZ','LAO','LVA','LBN','LSO','LBR','LBY','LIE','LTU','LUX','MAC','MKD','MDG','MWI','MYS','MDV','MLI','MLT','MHL','MTQ','MRT','MUS','MYT','MEX','FSM','MDA','MCO','MNG','MNE','MSR','MAR','MOZ','MMR','NAM','NRU','NPL','NLD','NCL','NZL','NIC','NER','NGA','NIU','NFK','MNP','NOR','OMN','PAK','PLW','PSE','PAN','PNG','PRY','PER','PHL','PCN','POL','PRT','PRI','QAT','REU','ROU','RUS','RWA','BLM','SHN','KNA','LCA','MAF','SPM','VCT','WSM','SMR','STP','SAU','SEN','SRB','SYC','SLE','SGP','SXM','SVK','SVN','SLB','SOM','ZAF','SGS','SSD','ESP','LKA','SDN','SUR','SJM','SWZ','SWE','CHE','SYR','TWN','TJK','TZA','THA','TLS','TGO','TKL','TON','TTO','TUN','TUR','TKM','TCA','TUV','UGA','UKR','ARE','GBR','USA','UMI','URY','UZB','VUT','VEN','VNM','VGB','VIR','WLF','ESH','YEM','ZMB','ZWE']);m.exports=e.default,m.exports.default=e.default},766,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMongoId=e.isMongoId=e.IS_MONGO_ID=void 0;var n=t(r(d[0]));function o(t){return'string'==typeof t&&n.default(t)}e.IS_MONGO_ID='isMongoId',e.isMongoId=o,e.IsMongoId=function(t){return r(d[1]).ValidateBy({name:e.IS_MONGO_ID,validator:{validate:function(t,n){return o(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a mongodb id'},t)}},t)}},767,[768,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f){return(0,t.default)(f),(0,u.default)(f)&&24===f.length};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},768,[685,741]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMultibyte=e.isMultibyte=e.IS_MULTIBYTE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_MULTIBYTE='isMultibyte',e.isMultibyte=n,e.IsMultibyte=function(t){return r(d[1]).ValidateBy({name:e.IS_MULTIBYTE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain one or more multibyte chars'},t)}},t)}},769,[770,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/[^\x00-\x7F]/;m.exports=e.default,m.exports.default=e.default},770,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsSurrogatePair=e.isSurrogatePair=e.IS_SURROGATE_PAIR=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_SURROGATE_PAIR='isSurrogatePair',e.isSurrogatePair=n,e.IsSurrogatePair=function(t){return r(d[1]).ValidateBy({name:e.IS_SURROGATE_PAIR,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain any surrogate pairs chars'},t)}},t)}},771,[772,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;m.exports=e.default,m.exports.default=e.default},772,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsUrl=e.isURL=e.IS_URL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_URL='isUrl',e.isURL=s,e.IsUrl=function(t,n){return r(d[1]).ValidateBy({name:e.IS_URL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an URL address'},n)}},n)}},773,[774,675]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,s){if((0,t.default)(o),!o||/[\s<>]/.test(o))return!1;if(0===o.indexOf('mailto:'))return!1;if((s=(0,i.default)(s,_)).validate_length&&o.length>=2083)return!1;if(!s.allow_fragments&&o.includes('#'))return!1;if(!s.allow_query_components&&(o.includes('?')||o.includes('&')))return!1;var y,b,w,q,j,O,x,S;if(x=o.split('#'),o=x.shift(),x=o.split('?'),o=x.shift(),(x=o.split('://')).length>1){if(y=x.shift().toLowerCase(),s.require_valid_protocol&&-1===s.protocols.indexOf(y))return!1}else{if(s.require_protocol)return!1;if('//'===o.substr(0,2)){if(!s.allow_protocol_relative_urls)return!1;x[0]=o.substr(2)}}if(''===(o=x.join('://')))return!1;if(x=o.split('/'),''===(o=x.shift())&&!s.require_host)return!0;if((x=o.split('@')).length>1){if(s.disallow_auth)return!1;if(''===x[0])return!1;if((b=x.shift()).indexOf(':')>=0&&b.split(':').length>2)return!1;var A=b.split(':'),I=(C=2,p(k=A)||c(k,C)||f(k,C)||u()),M=I[0],$=I[1];if(''===M&&''===$)return!1}var k,C;q=x.join('@'),O=null,S=null;var E=q.match(h);E?(w='',S=E[1],O=E[2]||null):(x=q.split(':'),w=x.shift(),x.length&&(O=x.join(':')));if(null!==O&&O.length>0){if(j=parseInt(O,10),!/^[0-9]+$/.test(O)||j<=0||j>65535)return!1}else if(s.require_port)return!1;if(s.host_whitelist)return v(w,s.host_whitelist);if(!((0,n.default)(w)||(0,l.default)(w,s)||S&&(0,n.default)(S,6)))return!1;if(w=w||S,s.host_blacklist&&v(w,s.host_blacklist))return!1;return!0};var t=o(r(d[0])),l=o(r(d[1])),n=o(r(d[2])),i=o(r(d[3]));function o(t){return t&&t.__esModule?t:{default:t}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,l){if(t){if("string"==typeof t)return s(t,l);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)?s(t,l):void 0}}function s(t,l){(null==l||l>t.length)&&(l=t.length);for(var n=0,i=new Array(l);nn.constraints[1]?t+'$property must be shorter than or equal to $constraint2 characters':t+'$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters'},s)}},s)}},780,[781,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){var f,l;(0,o.default)(t),'object'===u(n)?(f=n.min||0,l=n.max):(f=arguments[1]||0,l=arguments[2]);var y=t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=t.length-y.length;return c>=f&&(void 0===l||c<=l)};var t,o=(t=r(d[0]))&&t.__esModule?t:{default:t};function u(t){"@babel/helpers - typeof";return(u="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)}m.exports=e.default,m.exports.default=e.default},781,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MaxLength=e.maxLength=e.MAX_LENGTH=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,{min:0,max:u})}e.MAX_LENGTH='maxLength',e.maxLength=u,e.MaxLength=function(t,n){return r(d[1]).ValidateBy({name:e.MAX_LENGTH,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be shorter than or equal to $constraint1 characters'},n)}},n)}},782,[781,675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MinLength=e.minLength=e.MIN_LENGTH=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,{min:u})}e.MIN_LENGTH='minLength',e.minLength=u,e.MinLength=function(t,n){return r(d[1]).ValidateBy({name:e.MIN_LENGTH,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be longer than or equal to $constraint1 characters'},n)}},n)}},783,[781,675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Matches=e.matches=e.MATCHES=void 0;var n=t(r(d[0]));function s(t,s,u){return'string'==typeof t&&n.default(t,s,u)}e.MATCHES='matches',e.matches=s,e.Matches=function(t,n,u){var c;return n&&n instanceof Object&&!u?u=n:c=n,r(d[1]).ValidateBy({name:e.MATCHES,constraints:[t,c],validator:{validate:function(t,n){return s(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t,n){return t+'$property must match $constraint1 regular expression'},u)}},u)}},784,[785,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,o){(0,u.default)(t),'[object RegExp]'!==Object.prototype.toString.call(l)&&(l=new RegExp(l,o));return l.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},785,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){try{var u=r(d[0]).parsePhoneNumberFromString(n,t);return!!(null===u||void 0===u?void 0:u.isValid())}catch(n){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.IsPhoneNumber=e.isPhoneNumber=e.IS_PHONE_NUMBER=void 0,e.IS_PHONE_NUMBER='isPhoneNumber',e.isPhoneNumber=n,e.IsPhoneNumber=function(t,u){return r(d[1]).ValidateBy({name:e.IS_PHONE_NUMBER,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(n){return n+'$property must be a valid phone number'},u)}},u)}},786,[787,675]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){var o=Array.prototype.slice.call(n);return o.push(r(d[0])),t.apply(this,o)}(e=m.exports=r(d[1]).parsePhoneNumberFromString).default=r(d[1]).parsePhoneNumberFromString,e.parsePhoneNumberFromString=r(d[1]).parsePhoneNumberFromString,e.ParseError=r(d[1]).ParseError,e.parsePhoneNumber=r(d[1]).parsePhoneNumberWithError,e.parsePhoneNumberWithError=r(d[1]).parsePhoneNumberWithError,e.isValidPhoneNumber=r(d[1]).isValidPhoneNumber,e.isPossiblePhoneNumber=r(d[1]).isPossiblePhoneNumber,e.validatePhoneNumberLength=r(d[1]).validatePhoneNumberLength,e.parse=function(){return t(r(d[2]).default,arguments)},e.parseNumber=e.parse,e.format=function(){return t(r(d[3]).default,arguments)},e.formatNumber=e.format,e.getNumberType=function(){return t(r(d[4]).default,arguments)},e.isPossibleNumber=function(){return t(r(d[5]).default,arguments)},e.isValidNumber=function(){return t(r(d[6]).default,arguments)},e.isValidNumberForRegion=function(){return t(r(d[7]).default,arguments)},e.getExampleNumber=r(d[1]).getExampleNumber,e.Metadata=r(d[1]).Metadata,e.findPhoneNumbers=function(){return t(r(d[8]).default,arguments)},e.searchPhoneNumbers=function(){return t(r(d[8]).searchPhoneNumbers,arguments)},e.PhoneNumberSearch=function(t,n){return r(d[9]).PhoneNumberSearch.call(this,t,n,r(d[0]))},e.PhoneNumberSearch.prototype=Object.create(r(d[9]).PhoneNumberSearch.prototype,{}),e.PhoneNumberSearch.prototype.constructor=e.PhoneNumberSearch,e.findNumbers=r(d[1]).findNumbers,e.searchNumbers=r(d[1]).searchNumbers,e.findPhoneNumbersInText=r(d[1]).findPhoneNumbersInText,e.searchPhoneNumbersInText=r(d[1]).searchPhoneNumbersInText,e.PhoneNumberMatcher=r(d[1]).PhoneNumberMatcher,e.AsYouType=r(d[1]).AsYouType,e.getCountries=r(d[1]).getCountries,e.getCountryCallingCode=r(d[1]).getCountryCallingCode,e.isSupportedCountry=r(d[1]).isSupportedCountry,e.getExtPrefix=r(d[1]).getExtPrefix,e.parseRFC3966=r(d[1]).parseRFC3966,e.formatRFC3966=r(d[1]).formatRFC3966,e.DIGITS=r(d[10]).DIGITS,e.DIGIT_PLACEHOLDER=r(d[1]).DIGIT_PLACEHOLDER,e.getPhoneCode=r(d[1]).getCountryCallingCode,e.formatIncompletePhoneNumber=r(d[1]).formatIncompletePhoneNumber,e.parseIncompletePhoneNumber=r(d[1]).parseIncompletePhoneNumber,e.parsePhoneNumberCharacter=r(d[1]).parsePhoneNumberCharacter,e.parseDigits=r(d[1]).parseDigits},787,[788,789,852,853,854,855,856,857,858,859,803]); -__d(function(d,$,M,S,G,A,C){G.exports={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[1256]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-24-7]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38(?:8[057]|9[05]))\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|6[0-367]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-5]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[1256]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:005|[1-9]\\d\\d)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:005|[1-9]\\d\\d)\\d{5}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}}},788,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){var o=Array.prototype.slice.call(n);return o.push(r(d[0])),t.apply(this,o)}function n(){return t(r(d[1]).parsePhoneNumberFromString,arguments)}function o(){return t(r(d[1]).parsePhoneNumberWithError,arguments)}(e=m.exports=n).default=n,e.ParseError=r(d[1]).ParseError,e.parsePhoneNumber=o,e.parsePhoneNumberWithError=o,e.parsePhoneNumberFromString=n,e.isValidPhoneNumber=function(){return t(r(d[1]).isValidPhoneNumber,arguments)},e.isPossiblePhoneNumber=function(){return t(r(d[1]).isPossiblePhoneNumber,arguments)},e.validatePhoneNumberLength=function(){return t(r(d[1]).validatePhoneNumberLength,arguments)},e.findNumbers=function(){return t(r(d[1]).findNumbers,arguments)},e.searchNumbers=function(){return t(r(d[1]).searchNumbers,arguments)},e.findPhoneNumbersInText=function(){return t(r(d[1]).findPhoneNumbersInText,arguments)},e.searchPhoneNumbersInText=function(){return t(r(d[1]).searchPhoneNumbersInText,arguments)},e.PhoneNumberMatcher=function(t,n){return r(d[1]).PhoneNumberMatcher.call(this,t,n,r(d[0]))},e.PhoneNumberMatcher.prototype=Object.create(r(d[1]).PhoneNumberMatcher.prototype,{}),e.PhoneNumberMatcher.prototype.constructor=e.PhoneNumberMatcher,e.AsYouType=function(t){return r(d[1]).AsYouType.call(this,t,r(d[0]))},e.AsYouType.prototype=Object.create(r(d[1]).AsYouType.prototype,{}),e.AsYouType.prototype.constructor=e.AsYouType,e.isSupportedCountry=function(n){return t(r(d[1]).isSupportedCountry,arguments)},e.getCountries=function(){return t(r(d[1]).getCountries,arguments)},e.getCountryCallingCode=function(){return t(r(d[1]).getCountryCallingCode,arguments)},e.getExtPrefix=function(n){return t(r(d[1]).getExtPrefix,arguments)},e.getExampleNumber=function(){return t(r(d[1]).getExampleNumber,arguments)},e.Metadata=function(){return r(d[1]).Metadata.call(this,r(d[0]))},e.Metadata.prototype=Object.create(r(d[1]).Metadata.prototype,{}),e.Metadata.prototype.constructor=e.Metadata,e.formatIncompletePhoneNumber=function(){return t(r(d[1]).formatIncompletePhoneNumber,arguments)},e.parseIncompletePhoneNumber=r(d[1]).parseIncompletePhoneNumber,e.parsePhoneNumberCharacter=r(d[1]).parsePhoneNumberCharacter,e.parseDigits=r(d[1]).parseDigits,e.DIGIT_PLACEHOLDER=r(d[1]).DIGIT_PLACEHOLDER,e.parseRFC3966=r(d[1]).parseRFC3966,e.formatRFC3966=r(d[1]).formatRFC3966},789,[788,790]); -__d(function(g,r,i,a,m,e,d){'use strict';(e=m.exports=r(d[0]).default).default=r(d[0]).default,e.ParseError=r(d[1]).default,e.parsePhoneNumberWithError=r(d[2]).default,e.parsePhoneNumber=r(d[2]).default,e.parsePhoneNumberFromString=r(d[0]).default,e.isValidPhoneNumber=r(d[3]).default,e.isPossiblePhoneNumber=r(d[4]).default,e.validatePhoneNumberLength=r(d[5]).default,e.findNumbers=r(d[6]).default,e.searchNumbers=r(d[7]).default,e.findPhoneNumbersInText=r(d[8]).default,e.searchPhoneNumbersInText=r(d[9]).default,e.PhoneNumberMatcher=r(d[10]).default,e.AsYouType=r(d[11]).default,e.Metadata=r(d[12]).default,e.isSupportedCountry=r(d[12]).isSupportedCountry,e.getCountries=r(d[13]).default,e.getCountryCallingCode=r(d[12]).getCountryCallingCode,e.getExtPrefix=r(d[12]).getExtPrefix,e.getExampleNumber=r(d[14]).default,e.formatIncompletePhoneNumber=r(d[15]).default,e.parseIncompletePhoneNumber=r(d[16]).default,e.parsePhoneNumberCharacter=r(d[16]).parsePhoneNumberCharacter,e.parseDigits=r(d[17]).default,e.DIGIT_PLACEHOLDER=r(d[18]).DIGIT_PLACEHOLDER,e.parseRFC3966=r(d[19]).parseRFC3966,e.formatRFC3966=r(d[19]).formatRFC3966},790,[791,795,824,825,826,827,828,839,840,841,830,842,796,849,850,851,802,803,844,817]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.text,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},791,[792,824]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,f,c){f&&f.defaultCountry&&!(0,r(d[2]).isSupportedCountry)(f.defaultCountry,c)&&(f=o({},f,{defaultCountry:void 0}));try{return(0,t.default)(u,f,c)}catch(t){if(!(t instanceof n.default))throw t}};var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(t){for(var n=1;nr(d[13]).MAX_LENGTH_FOR_NSN){if(o.v2)throw new t.default('TOO_LONG');return{}}if(o.v2){var P=new c.default(y,w,l.metadata);return v&&(P.country=v),b&&(P.carrierCode=b),_&&(P.ext=_),P}var R=!(o.extended?!l.hasSelectedNumberingPlan():!v)&&(0,O.default)(w,l.nationalNumberPattern());if(!o.extended)return R?p(v,w,_):{};return{country:v,countryCallingCode:y,carrierCode:b,valid:R,possible:!!R||!(!0!==o.extended||!l.possibleLengths()||!(0,r(d[14]).isPossibleNumber)(w,l)),phone:w,ext:_}};var t=N(r(d[0])),n=N(r(d[1])),u=(function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,u):{};o.get||o.set?Object.defineProperty(n,u,o):n[u]=t[u]}return n.default=t,n})(r(d[2])),o=N(r(d[3])),l=N(r(d[4])),f=N(r(d[5])),c=N(r(d[6])),O=N(r(d[7])),s=N(r(d[8])),_=(N(r(d[9])),N(r(d[10]))),C=(N(r(d[11])),N(r(d[12])));function N(t){return t&&t.__esModule?t:{default:t}}var v=250,w=new RegExp('['+r(d[13]).PLUS_CHARS+r(d[13]).VALID_DIGITS+']'),y=new RegExp('[^'+r(d[13]).VALID_DIGITS+"#]+$");function b(n,u,o){if(n)if(n.length>v){if(o)throw new t.default('TOO_LONG')}else{if(!1===u)return n;var l=n.search(w);if(!(l<0))return n.slice(l).replace(y,'')}}function h(t,n,l){if(t&&0===t.indexOf('tel:'))return(0,r(d[15]).parseRFC3966)(t);var f=b(t,l,n);if(!f)return{};if(!(0,u.default)(f))return(0,u.isViablePhoneNumberStart)(f)?{error:'TOO_SHORT'}:{};var c=(0,o.default)(f);return c.ext?c:{number:f}}function p(t,n,u){var o={country:t,phone:n};return u&&(o.ext=u),o}function T(t,n,u,o){var c,O=(0,s.default)((0,l.default)(t),n,u,o.metadata),N=O.countryCallingCode,v=O.number;if(N)o.selectNumberingPlan(N);else{if(!v||!n&&!u)return{};o.selectNumberingPlan(n,u),n&&(c=n),N=u||(0,f.default)(n,o.metadata)}if(!v)return{countryCallingCode:N};var w=(0,_.default)((0,l.default)(v),o),y=w.nationalNumber,b=w.carrierCode,h=(0,C.default)(N,y,o);return h&&(c=h,'001'===h||o.country(c)),{country:c,countryCallingCode:N,nationalNumber:y,carrierCode:b}}},794,[795,796,798,801,802,804,805,810,818,820,821,819,823,800,806,817]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function o(n){t(this,o),this.name=this.constructor.name,this.message=n,this.stack=new Error(n).stack};e.default=o,(o.prototype=Object.create(Error.prototype)).constructor=o},795,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateMetadata=b,e.getExtPrefix=function(t,n){if((n=new y(n)).hasCountry(t))return n.country(t).ext();return f},e.getCountryCallingCode=function(t,n){if((n=new y(n)).hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))},e.isSupportedCountry=function(t,n){return void 0!==n.countries[t]},e.default=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function i(t){return(i="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)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var i=0;iN)return 1;if(N>f)return-1;if(!isNaN(f)&&isNaN(N))return 1;if(isNaN(f)&&!isNaN(N))return-1}if(i[1]&&t[1])return i[1]>t[1]?1:i[1]=r(d[1]).MIN_LENGTH_FOR_NSN&&T.test(_)},e.isViablePhoneNumberStart=function(_){return A.test(_)},e.VALID_PHONE_NUMBER_WITH_EXTENSION=e.VALID_PHONE_NUMBER=void 0;var _,I=(_=r(d[0]))&&_.__esModule?_:{default:_};var N='['+r(d[1]).VALID_DIGITS+']{'+r(d[1]).MIN_LENGTH_FOR_NSN+'}',t='['+r(d[1]).PLUS_CHARS+"]{0,1}(?:["+r(d[1]).VALID_PUNCTUATION+"]*["+r(d[1]).VALID_DIGITS+"]){3,}["+r(d[1]).VALID_PUNCTUATION+r(d[1]).VALID_DIGITS+']*';e.VALID_PHONE_NUMBER=t;var A=new RegExp("^["+r(d[1]).PLUS_CHARS+"]{0,1}(?:["+r(d[1]).VALID_PUNCTUATION+"]*["+r(d[1]).VALID_DIGITS+"]){1,2}$",'i'),E=t+'(?:'+(0,I.default)()+')?';e.VALID_PHONE_NUMBER_WITH_EXTENSION=E;var T=new RegExp('^'+N+"$|^"+E+'$','i')},798,[799,800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){var o=t+n("20"),u="[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)[:\\.\uff0e]?[ \xa0\\t,-]*"+n("20")+"#?",f="[ \xa0\\t,]*(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*"+n("9")+"#?",_="[- ]+"+n('6')+"#",s="[ \xa0\\t]*(?:,{2}|;)[:\\.\uff0e]?[ \xa0\\t,-]*"+n('15')+"#?",x="[ \xa0\\t]*(?:,)+[:\\.\uff0e]?[ \xa0\\t,-]*"+n("9")+"#?";return o+"|"+u+"|"+f+"|"+_+"|"+s+"|"+x};var t=';ext=',n=function(t){return"([".concat(r(d[0]).VALID_DIGITS,"]{1,").concat(t,"})")}},799,[800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLUS_CHARS=e.VALID_PUNCTUATION=e.WHITESPACE=e.VALID_DIGITS=e.MAX_LENGTH_COUNTRY_CODE=e.MAX_LENGTH_FOR_NSN=e.MIN_LENGTH_FOR_NSN=void 0;e.MIN_LENGTH_FOR_NSN=2;e.MAX_LENGTH_FOR_NSN=17;e.MAX_LENGTH_COUNTRY_CODE=3;e.VALID_DIGITS="0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9";e.WHITESPACE=" \xa0\xad\u200b\u2060\u3000";var _="".concat("-\u2010-\u2015\u2212\u30fc\uff0d").concat("\uff0f/").concat("\uff0e.").concat(" \xa0\xad\u200b\u2060\u3000").concat("()\uff08\uff09\uff3b\uff3d\\[\\]").concat("~\u2053\u223c\uff5e");e.VALID_PUNCTUATION=_;e.PLUS_CHARS="+\uff0b"},800,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var u=t.search(n);if(u<0)return{};var f=t.slice(0,u),i=t.match(n),l=1;for(;l=f.length)break;s=f[l++]}else{if((l=f.next()).done)break;s=l.value}var c=s;u+=t(c,u)||''}return u},e.parsePhoneNumberCharacter=t},802,[803]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDigit=n,e.default=function(t){for(var o='',u=t.split(''),f=Array.isArray(u),l=0,u=f?u:u[Symbol.iterator]();;){var s;if(f){if(l>=u.length)break;s=u[l++]}else{if((l=u.next()).done)break;s=l.value}var v=s,c=n(v);c&&(o+=c)}return o},e.DIGITS=void 0;var t={0:'0',1:'1',2:'2',3:'3',4:'4',5:'5',6:'6',7:'7',8:'8',9:'9',"\uff10":'0',"\uff11":'1',"\uff12":'2',"\uff13":'3',"\uff14":'4',"\uff15":'5',"\uff16":'6',"\uff17":'7',"\uff18":'8',"\uff19":'9',"\u0660":'0',"\u0661":'1',"\u0662":'2',"\u0663":'3',"\u0664":'4',"\u0665":'5',"\u0666":'6',"\u0667":'7',"\u0668":'8',"\u0669":'9',"\u06f0":'0',"\u06f1":'1',"\u06f2":'2',"\u06f3":'3',"\u06f4":'4',"\u06f5":'5',"\u06f6":'6',"\u06f7":'7',"\u06f8":'8',"\u06f9":'9'};function n(n){return t[n]}e.DIGITS=t},803,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(d[0]).getCountryCallingCode}})},804,[796]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(r(d[0])),n=l(r(d[1])),o=l(r(d[2])),i=(l(r(d[3])),l(r(d[4]))),u=l(r(d[5]));function l(t){return t&&t.__esModule?t:{default:t}}function f(t){for(var n=1;nf?'TOO_SHORT':O[O.length-1]=0?'IS_POSSIBLE':'INVALID_LENGTH'}},807,[808]); -__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var a=t.slice(),u=n,f=Array.isArray(u),o=0,u=f?u:u[Symbol.iterator]();;){var l;if(f){if(o>=u.length)break;l=u[o++]}else{if((o=u.next()).done)break;l=o.value}var s=l;t.indexOf(s)<0&&a.push(s)}return a.sort(function(t,n){return t-n})}},808,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,o,f){if(o=o||{},f=new t.default(f),!l.country)return!1;if(f.selectNumberingPlan(l.country,l.countryCallingCode),f.hasTypes())return void 0!==(0,u.default)(l,o,f.metadata);var c=o.v2?l.nationalNumber:l.phone;return(0,n.default)(c,f.nationalNumberPattern())};var t=l(r(d[0])),n=l(r(d[1])),u=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}},809,[796,810,811]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){return t=t||'',new RegExp('^(?:'+n+')$').test(t)}},810,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(E,_,l){if(_=_||{},!E.country)return;(l=new t.default(l)).selectNumberingPlan(E.country,E.countryCallingCode);var L=_.v2?E.nationalNumber:E.phone;if(!(0,n.default)(L,l.nationalNumberPattern()))return;if(I(L,'FIXED_LINE',l))return l.type('MOBILE')&&''===l.type('MOBILE').pattern()?'FIXED_LINE_OR_MOBILE':l.type('MOBILE')?I(L,'MOBILE',l)?'FIXED_LINE_OR_MOBILE':'FIXED_LINE':'FIXED_LINE_OR_MOBILE';for(var o=0,O=u;o=c.length)break;f=c[u++]}else{if((u=c.next()).done)break;f=u.value}var l=f;if(l.leadingDigitsPatterns().length>0){var s=l.leadingDigitsPatterns()[l.leadingDigitsPatterns().length-1];if(0!==o.search(s))continue}if((0,t.default)(o,l.pattern()))return l}}function O(t,n,o,c){return n?c(t,n,o):t}function b(t,n,i,u,f){if((0,o.getCountryCallingCode)(u,f.metadata)===i){var l=s(t,n,'NATIONAL',f);return'1'===i?i+' '+l:l}var y=(0,c.default)(u,void 0,f.metadata);if(y)return"".concat(y," ").concat(i," ").concat(s(t,null,'INTERNATIONAL',f))}},813,[810,814,796,816,817]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,u){var f=u.useInternationalFormat,_=u.withNationalPrefix,R=(u.carrierCode,u.metadata,t.replace(new RegExp(l.pattern()),f?l.internationalFormat():_&&l.nationalPrefixFormattingRule()?l.format().replace(o,l.nationalPrefixFormattingRule()):l.format()));if(f)return(0,n.default)(R);return R},e.FIRST_GROUP_PATTERN=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=/(\$\d)/;e.FIRST_GROUP_PATTERN=o},814,[815]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(new RegExp("[".concat(r(d[0]).VALID_PUNCTUATION,"]+"),'g'),' ').trim()}},815,[800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l,n){var D=new t.default(n);if(D.selectNumberingPlan(u,l),D.defaultIDDPrefix())return D.defaultIDDPrefix();if(f.test(D.IDDPrefix()))return D.IDDPrefix()};var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var f=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/},816,[796]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRFC3966=function(t){for(var l,f,c=(t=t.replace(/^tel:/,'tel=')).split(';'),s=Array.isArray(c),v=0,c=s?c:c[Symbol.iterator]();;){var b;if(s){if(v>=c.length)break;b=c[v++]}else{if((v=c.next()).done)break;b=v.value}var y=b,p=y.split('='),h=(k=2,u(_=p)||i(_,k)||o()),x=h[0],w=h[1];switch(x){case'tel':l=w;break;case'ext':f=w;break;case'phone-context':'+'===w[0]&&(l=w+l)}}var _,k;if(!(0,n.default)(l))return{};var A={number:l};f&&(A.ext=f);return A},e.formatRFC3966=function(t){var n=t.number,o=t.ext;if(!n)return'';if('+'!==n[0])throw new Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");return"tel:".concat(n).concat(o?';ext='+o:'')};var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(t,n){var o=[],i=!0,u=!1,l=void 0;try{for(var f,c=t[Symbol.iterator]();!(i=(f=c.next()).done)&&(o.push(f.value),!n||o.length!==n);i=!0);}catch(t){u=!0,l=t}finally{try{i||null==c.return||c.return()}finally{if(u)throw l}}return o}function u(t){if(Array.isArray(t))return t}},817,[798]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,i,f,o){if(!l)return{};if('+'!==l[0]){var c=(0,n.default)(l,i,f,o);if(!c||c===l){if(i||f){var C=(0,u.default)(l,i,f,o),_=C.countryCallingCode,s=C.number;if(_)return{countryCallingCode:_,number:s}}return{number:l}}l='+'+c}if('0'===l[1])return{};o=new t.default(o);var b=2;for(;b-1<=r(d[3]).MAX_LENGTH_COUNTRY_CODE&&b<=l.length;){var v=l.slice(1,b);if(o.hasCallingCode(v))return o.selectNumberingPlan(v),{countryCallingCode:v,number:l.slice(b)};b++}return{}};var n=l(r(d[0])),u=l(r(d[1])),t=l(r(d[2]));function l(n){return n&&n.__esModule?n:{default:n}}},818,[819,820,796,800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,f,c){if(!l)return;var s=new n.default(c);s.selectNumberingPlan(l,f);var _=new RegExp(s.IDDPrefix());if(0!==t.search(_))return;var v=(t=t.slice(t.match(_)[0].length)).match(u);if(v&&null!=v[1]&&v[1].length>0&&'0'===v[1])return;return t};var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=new RegExp('(['+r(d[1]).VALID_DIGITS+'])')},819,[796,800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,b,c,_){var s=b?(0,f.default)(b,_):c;if(0===o.indexOf(s)){(_=new t.default(_)).selectNumberingPlan(b,c);var N=o.slice(s.length),O=(0,u.default)(N,_),v=O.nationalNumber,P=(0,u.default)(o,_),y=P.nationalNumber;if(!(0,n.default)(y,_.nationalNumberPattern())&&(0,n.default)(v,_.nationalNumberPattern())||'TOO_LONG'===(0,l.default)(y,_))return{countryCallingCode:s,number:N}}return{number:o}};var t=o(r(d[0])),n=o(r(d[1])),u=o(r(d[2])),l=o(r(d[3])),f=o(r(d[4]));function o(t){return t&&t.__esModule?t:{default:t}}},820,[796,810,821,807,804]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,l){var f=(0,t.default)(n,l),c=f.nationalNumber,s=f.carrierCode;if(!o(n,c,l))return{nationalNumber:n};if(n.length!==c.length+(s?s.length:0)&&l.possibleLengths())switch((0,u.default)(c,l)){case'TOO_SHORT':case'INVALID_LENGTH':return{nationalNumber:n}}return{nationalNumber:c,carrierCode:s}};var t=l(r(d[0])),n=l(r(d[1])),u=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}function o(t,u,l){return!((0,n.default)(t,l.nationalNumberPattern())&&!(0,n.default)(u,l.nationalNumberPattern()))}},821,[822,810,807]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,l){if(n&&l.numberingPlan.nationalPrefixForParsing()){var t=new RegExp('^(?:'+l.numberingPlan.nationalPrefixForParsing()+')'),f=t.exec(n);if(f){var o,u,P,s=f.length-1,x=s>0&&f[s];if(l.nationalPrefixTransformRule()&&x)o=n.replace(t,l.nationalPrefixTransformRule()),s>1&&(u=f[1]);else{var c=f[0];o=n.slice(c.length),x&&(u=f[1])}if(x){var b=n.indexOf(f[1]),v=n.slice(0,b);v===l.numberingPlan.nationalPrefix()&&(P=l.numberingPlan.nationalPrefix())}else P=f[0];return{nationalNumber:o,nationalPrefix:P,carrierCode:u}}}return{nationalNumber:n}}},822,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u){var f=u.getCountryCodesForCallingCode(t);if(!f)return;if(1===f.length)return f[0];return o(f,n,u.metadata)};var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(u,o,f){f=new t.default(f);var l=u,s=Array.isArray(l),c=0;for(l=s?l:l[Symbol.iterator]();;){var v;if(s){if(c>=l.length)break;v=l[c++]}else{if((c=l.next()).done)break;v=c.value}var y=v;if(f.country(y),f.leadingDigits()){if(o&&0===o.search(f.leadingDigits()))return y}else if((0,n.default)({phone:o,country:y},void 0,f.metadata))return y}}},823,[796,811]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=y(arguments),o=t.text,u=t.options,i=t.metadata;return(0,n.default)(o,u,i)},e.normalizeArguments=y;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function o(t){return(o="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)}function u(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:'',s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(p(this,n),x(this,"state",'NOT_READY'),x(this,"searchIndex",0),x(this,"regExpCache",new i.default(32)),!(s=h({},s,{defaultCallingCode:s.defaultCallingCode,defaultCountry:s.defaultCountry&&(0,r(d[11]).isSupportedCountry)(s.defaultCountry,l)?s.defaultCountry:void 0,leniency:s.leniency||s.extended?'POSSIBLE':'VALID',maxTries:s.maxTries||P})).leniency)throw new TypeError('`Leniency` not supplied');if(s.maxTries<0)throw new TypeError('`maxTries` not supplied');if(this.text=t,this.options=s,this.metadata=l,this.leniency=o.default[s.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(s.leniency,"."));this.maxTries=s.maxTries,this.PATTERN=new RegExp(_,'ig')}var f,v,C;return f=n,(v=[{key:"find",value:function(){for(var n;this.maxTries>0&&null!==(n=this.PATTERN.exec(this.text));){var i=n[0],o=n.index;if(i=(0,s.default)(i),(0,l.default)(i,o,this.text)){var c=this.parseAndVerify(i,o,this.text)||this.extractInnerMatch(i,o,this.text);if(c){if(this.options.v2){var u=new t.default(c.country||c.countryCallingCode,c.phone,this.metadata);return c.ext&&(u.ext=c.ext),{startsAt:c.startsAt,endsAt:c.endsAt,number:u}}return c}}this.maxTries--}}},{key:"extractInnerMatch",value:function(t,n,i){for(var o=0,s=A;o0&&null!==(c=u.exec(t));){if(l){var f=(0,r(d[9]).trimAfterFirstMatch)(N,t.slice(0,c.index)),h=this.parseAndVerify(f,n,i);if(h)return h;this.maxTries--,l=!1}var p=(0,r(d[9]).trimAfterFirstMatch)(N,c[1]),y=t.indexOf(p,c.index),x=this.parseAndVerify(p,n+y,i);if(x)return x;this.maxTries--}}},{key:"parseAndVerify",value:function(t,n,i){if((0,c.default)(t,n,i,this.options.leniency)){var o=(0,u.default)(t,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(o.possible&&this.leniency(o,t,this.metadata,this.regExpCache)){var s={startsAt:n,endsAt:n+t.length,phone:o.phone};return o.country&&'001'!==o.country?s.country=o.country:s.countryCallingCode=o.countryCallingCode,o.ext&&(s.ext=o.ext),s}}}},{key:"hasNext",value:function(){return'NOT_READY'===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state='READY':this.state='DONE'),'READY'===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error('No next element');var t=this.lastMatch;return this.lastMatch=null,this.state='NOT_READY',t}}])&&y(f.prototype,v),C&&y(f,C),n})();e.default=M},830,[805,799,831,833,835,836,837,794,838,834,800,796]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;i(this,t),this.key=n,this.value=h,this.next=s,this.prev=l},h=(function(){function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;i(this,h),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}var s,l,u;return s=h,(l=[{key:"put",value:function(t,i){if(this.ensureLimit(),this.head){var h=new n(t,i,this.head);this.head.prev=h,this.head=h}else this.head=this.tail=new n(t,i);this.cache[t]=this.head,this.size++}},{key:"get",value:function(t){if(this.cache[t]){var i=this.cache[t].value;return this.remove(t),this.put(t,i),i}console.log("Item not available in cache for key ".concat(t))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(t){var i=this.cache[t];null!==i.prev?i.prev.next=i.next:this.head=i.next,null!==i.next?i.next.prev=i.prev:this.tail=i.prev,delete this.cache[t],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}])&&t(s.prototype,l),u&&t(s,u),h})();e.default=h},832,[]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.containsMoreThanOneSlashInNationalNumber=f,e.default=void 0;var t=i(r(d[0])),n=i(r(d[1]));function i(t){return t&&t.__esModule?t:{default:t}}var o={POSSIBLE:function(t,n,i){return!0},VALID:function(n,i,o){return!(!(0,t.default)(n,void 0,o)||!u(n,i.toString(),o))},STRICT_GROUPING:function(n,i,o,c){var C=i.toString();return!(!(0,t.default)(n,void 0,o)||!u(n,C,o)||f(n,C)||!l(n,o))&&s(n,i,o,N,c)},EXACT_GROUPING:function(n,i,o,c){var N=i.toString();return!(!(0,t.default)(n,void 0,o)||!u(n,N,o)||f(n,N)||!l(n,o))&&s(n,i,o,C,c)}};function u(t,i,o){for(var u=0;u0){if(l.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(l.getNationalPrefixFormattingRule()))return!0;var f=PhoneNumberUtil.normalizeDigitsOnly(t.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(f,o,null)}return!0}function f(t,n){var i=n.indexOf('/');if(i<0)return!1;var o=n.indexOf('/',i+1);return!(o<0)&&(!(t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(n.substring(0,i))!==String(t.getCountryCode())||n.slice(o+1).indexOf('/')>=0)}function s(t,n,i,o,u){var l=normalizeDigits(n,!0),f=c(i,t,null);if(o(i,t,l,f))return!0;var s=MetadataManager.getAlternateFormatsForCountry(t.getCountryCode()),C=util.getNationalSignificantNumber(t);if(s){var N=s.numberFormats(),v=Array.isArray(N),h=0;for(N=v?N:N[Symbol.iterator]();;){var S;if(v){if(h>=N.length)break;S=N[h++]}else{if((h=N.next()).done)break;S=h.value}var y=S;if(y.leadingDigitsPatterns().length>0)if(!u.getPatternForRegExp('^'+y.leadingDigitsPatterns()[0]).test(C))continue;if(o(i,t,l,f=c(i,t,y)))return!0}}return!1}function c(t,n,i){if(i){var o=util.getNationalSignificantNumber(n);return util.formatNsnUsingPattern(o,i,'RFC3966',t).split('-')}var u=formatNumber(n,'RFC3966',t),l=u.indexOf(';');l<0&&(l=u.length);var f=u.indexOf('-')+1;return u.slice(f,l).split('-')}function C(t,n,i,o){var u=i.split(NON_DIGITS_PATTERN),l=n.hasExtension()?u.length-2:u.length-1;if(1==u.length||u[l].contains(util.getNationalSignificantNumber(n)))return!0;for(var f=o.length-1;f>0&&l>=0;){if(u[l]!==o[f])return!1;f--,l--}return l>=0&&(0,r(d[2]).endsWith)(u[l],o[0])}function N(t,n,i,o){var u=0;if(n.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var l=String(n.getCountryCode());u=i.indexOf(l)+l.length()}for(var f=0;f=0)return n.slice(0,c);return n},e.startsWith=function(t,n){return 0===t.indexOf(n)},e.endsWith=function(t,n){return t.indexOf(n,t.length-n.length)===t.length-n.length}},834,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,r(d[0]).trimAfterFirstMatch)(t,u)};var t=/[\\/] *x/},835,[834]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,s,c){if(t.test(f))return!1;if(n.test(f)){var l=c.slice(s+f.length);if(u.test(l))return!1}return!0};var t=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,n=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,u=/^:[0-5]\d/},836,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u,f){if(!o.test(t)||s.test(t))return;if('POSSIBLE'!==f){if(n>0&&!c.test(t)){var l=u[n-1];if((0,r(d[2]).isInvalidPunctuationSymbol)(l)||(0,r(d[2]).isLatinLetter)(l))return!1}var L=n+t.length;if(L1}},{key:"determineTheCountry",value:function(){this.state.setCountry((0,s.default)(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var t=this.state,n=t.digits,i=t.callingCode,o=t.country,u=t.nationalSignificantNumber;if(n)return this.isInternational()?i?'+'+i+u:'+'+n:o||i?'+'+(o?this.metadata.countryCallingCode():i)+u:void 0}},{key:"getNumber",value:function(){var t=this.state,i=t.nationalSignificantNumber,o=t.carrierCode,u=t.callingCode,s=this._getCountry();if(i&&(s||u)){var l=new n.default(s||u,i,this.metadata.metadata);return o&&(l.carrierCode=o),l}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?'+':'')+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||''}}])&&b(f.prototype,N),p&&b(f,p),l})();e.default=N},842,[796,805,843,844,848,823]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function t(i,t){for(var n=0;n=l.length)break;f=l[u++]}else{if((u=l.next()).done)break;f=u.value}var h=f,c=(0,t.default)(n,h,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(t){return o.shouldTryNationalPrefixFormattingRule(t,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(c)return this.resetFormat(),this.chosenFormat=h,this.setNationalNumberTemplate(c.replace(/\d/g,r(d[0]).DIGIT_PLACEHOLDER),n),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(r(d[0]).DIGIT_PLACEHOLDER),c}}return this.formatNationalNumberWithNextDigits(i,n)}},{key:"formatNationalNumberWithNextDigits",value:function(t,i){var n=this.chosenFormat,o=this.chooseFormat(i);if(o)return o===n?this.formatNextNationalNumberDigits(t):this.formatNextNationalNumberDigits(i.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(t){var i=this,n=t.nationalSignificantNumber,o=t.nationalPrefix,l=t.international,s=n,u=s.length-3;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(t){return i.formatSuits(t,l,o)&&i.formatMatches(t,s,u)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(t,i,n){return!(n&&!t.usesNationalPrefix()&&!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!i&&!n&&t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(t,n,o){var l=t.leadingDigitsPatterns().length;if(0===l)return!0;o=Math.min(o,l-1);var s=t.leadingDigitsPatterns()[o];if(n.length<3)try{return void 0!==new i.default(s).match(n,{allowOverflow:!0})}catch(t){return console.error(t),!0}return new RegExp("^(".concat(s,")")).test(n)}},{key:"getFormatFormat",value:function(t,i){return i?t.internationalFormat():t.format()}},{key:"chooseFormat",value:function(t){var i=this,n=function(){if(l){if(s>=o.length)return"break";u=o[s++]}else{if((s=o.next()).done)return"break";u=s.value}var n=u;return i.chosenFormat===n?"break":p.test(i.getFormatFormat(n,t.international))?i.createTemplateForFormat(n,t)?(i.chosenFormat=n,"break"):(i.matchingFormats=i.matchingFormats.filter(function(t){return t!==n}),"continue"):"continue"};var o=this.matchingFormats.slice(),l=Array.isArray(o),s=0;t:for(o=l?o:o[Symbol.iterator]();;){var u;switch(n()){case"break":break t;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(t,i){if(!(t.pattern().indexOf('|')>=0)){var n=this.getTemplateForFormat(t,i);return n?(this.setNationalNumberTemplate(n,i),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,i){var n=t.IDDPrefix,o=t.missingPlus;return n?i&&!1===i.spacing?n:n+' ':o?'':'+'}},{key:"getTemplate",value:function(t){if(this.template){for(var i=-1,n=0,o=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):'';np.length)){var N=new RegExp('^'+c+'$'),P=l.replace(/\d/g,"9");N.test(P)&&(p=P);var v,F=this.getFormatFormat(t,s);if(this.shouldTryNationalPrefixFormattingRule(t,{international:s,nationalPrefix:u})){var b=F.replace(r(d[6]).FIRST_GROUP_PATTERN,t.nationalPrefixFormattingRule());if((0,n.default)(t.nationalPrefixFormattingRule())===(u||'')+(0,n.default)('$1')&&(F=b,v=!0,u))for(var x=u.length;x>0;)F=F.replace(/\d/,r(d[0]).DIGIT_PLACEHOLDER),x--}var T=p.replace(new RegExp(c),F).replace(new RegExp("9",'g'),r(d[0]).DIGIT_PLACEHOLDER);return v||(f?T=(0,r(d[0]).repeat)(r(d[0]).DIGIT_PLACEHOLDER,f.length)+' '+T:u&&(T=(0,r(d[0]).repeat)(r(d[0]).DIGIT_PLACEHOLDER,u.length)+this.getSeparatorAfterNationalPrefix(t)+T)),s&&(T=(0,o.default)(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(t){var i=(0,r(d[0]).populateTemplateWithDigits)(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(i)return this.populatedNationalNumberTemplate=i[0],this.populatedNationalNumberTemplatePosition=i[1],(0,r(d[0]).cutAndStripNonPairedParens)(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}])&&u(N.prototype,P),v&&u(N,v),l})();e.default=N},844,[845,846,847,803,815,800,814]); -__d(function(g,r,_i4,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.countOccurences=t,e.repeat=function(n,t){if(t<1)return'';var i='';for(;t>1;)1&t&&(i+=n),t>>=1,n+=n;return i+n},e.cutAndStripNonPairedParens=function(n,t){')'===n[t]&&t++;return i(n.slice(0,t))},e.closeNonPairedParens=function(n,i){var o=n.slice(0,i),u=t('(',o),l=t(')',o),s=u-l;for(;s>0&&i=u.length)break;c=u[s++]}else{if((s=u.next()).done)break;c=s.value}var f=c;if(t.slice(i+1).search(n)<0)return;i=t.search(n),t=t.replace(n,f)}return[t,i]},e.DIGIT_PLACEHOLDER=void 0;e.DIGIT_PLACEHOLDER="x";var n=new RegExp("x");function t(n,t){var i=0,o=t.split(''),u=Array.isArray(o),l=0;for(o=u?o:o[Symbol.iterator]();;){var s;if(u){if(l>=o.length)break;s=o[l++]}else{if((l=o.next()).done)break;s=l.value}s===n&&i++}return i}function i(n){for(var t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!t)throw new Error('String is required');var o=s(t.split(''),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!o||!o.overflow||n)return o}}]),n})();function s(t,n,o){if('string'==typeof n){if(o&&t.length>n.length)return{overflow:!0};var i=t.join('');return 0===n.indexOf(i)?t.length===n.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===i.indexOf(n)?{match:!0,matchedChars:t.slice(0,n.length)}:void 0}if(Array.isArray(n)){for(var h=t.slice(),c=0;c=f.length)break;v=f[w++]}else{if((w=f.next()).done)break;v=w.value}var x=s(t,v,o);if(x){if(x.overflow)return x;if(x.match)return{match:!0,matchedChars:x.matchedChars};if(!x.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(x,null,2)));l=!0}}return l?{partialMatch:!0}:void 0;case'[]':var C=n.args,b=Array.isArray(C),y=0;for(C=b?C:C[Symbol.iterator]();;){var k;if(b){if(y>=C.length)break;k=C[y++]}else{if((y=C.next()).done)break;k=y.value}var E=k;if(t[0]===E)return 1===t.length?{match:!0,matchedChars:t}:o?{overflow:!0}:{match:!0,matchedChars:[E]}}return;default:throw new Error("Unsupported instruction tree: ".concat(n))}}e.default=i;var h=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])"),c=/[\(\)\[\]\?\:\|]/,u=(function(){function n(){t(this,n)}return o(n,[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw new Error('Non-finalized contexts left when pattern parse ended');var n=this.context[0],o=n.branches,i=n.instructions;if(o)return[{op:'|',args:o.concat([i])}];if(0===i.length)throw new Error('Pattern is required');return i}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw new Error('Pattern is required');var n=t.match(h);if(n){var o=n[1],i=t.slice(0,n.index),s=t.slice(n.index+o.length);switch(o){case'(?:':i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case')':if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var u=this.getContext().branches;u.push(this.getContext().instructions),this.endContext(),this.getContext().instructions.push({op:'|',args:u});break;case'|':if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(this.getContext().instructions),this.getContext().instructions=[];break;case'[':i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case']':if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:'[]',args:l(i)});break;default:throw new Error("Unknown operator: ".concat(o))}s&&this.parsePattern(s)}else{if(c.test(t))throw new Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(''))}}}]),n})();function l(t){for(var n=[],o=0;o=3;if(i.appendDigits(t),l&&this.extractIddPrefix(i),this.isWaitingForCountryCallingCode(i)){if(!this.extractCountryCallingCode(i))return}else i.appendNationalSignificantNumberDigits(t);i.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(i.getNationalDigits(),i.update)}},{key:"isWaitingForCountryCallingCode",value:function(t){var i=t.international,n=t.callingCode;return i&&!n}},{key:"extractCountryCallingCode",value:function(i){var n=(0,t.default)('+'+i.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),l=n.countryCallingCode,u=n.number;if(l)return i.setCallingCode(l),i.update({nationalSignificantNumber:u}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var i=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=i&&S.test(i)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,i){if(this.hasSelectedNumberingPlan){var l=(0,n.default)(t,this.metadata),u=l.nationalPrefix,o=l.nationalNumber,s=l.carrierCode;if(o!==t)return this.onExtractedNationalNumber(u,s,o,t,i),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,i,l){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,l);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var u=(0,n.default)(t,this.metadata),o=u.nationalPrefix,s=u.nationalNumber,c=u.carrierCode;if(s!==i)return this.onExtractedNationalNumber(o,c,s,t,l),!0}}},{key:"onExtractedNationalNumber",value:function(t,i,n,l,u){var o,s,c=l.lastIndexOf(n);if(c>=0&&c===l.length-n.length){s=!0;var f=l.slice(0,c);f!==t&&(o=f)}u({nationalPrefix:t,carrierCode:i,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:s,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,t.update)||(this.extractIddPrefix(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var i=t.international,n=t.IDDPrefix,u=t.digits;t.nationalSignificantNumber;if(!i&&!n){var o=(0,l.default)(u,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==o&&o!==u?(t.update({IDDPrefix:u.slice(0,u.length-o.length)}),this.startInternationalNumber(t),!0):void 0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var n=(0,i.default)(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),l=n.countryCallingCode;n.number;if(l)return t.update({missingPlus:!0}),this.startInternationalNumber(t),!0}}},{key:"startInternationalNumber",value:function(t){t.startInternationalNumber(),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),t.update)}}])&&b(c.prototype,f),N&&b(c,N),o})();function P(t){var i,n=t.search(x);if(!(n<0))return'+'===(t=t.slice(n))[0]&&(i=!0,t=t.slice('+'.length)),t=t.replace(y,''),i&&(t='+'+t),t}function p(t){var i=P(t)||'';return'+'===i[0]?[i.slice('+'.length),!0]:[i]}function D(t){var i=s(p(t),2),n=i[0],l=i[1];return v.test(n)||(n=''),[n,l]}e.default=I},848,[818,820,822,819,803,800]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return new u.default(t).getCountries()};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},849,[796]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,f,n){if(f[t])return new u.default(t,f[t],n)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},850,[805]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,f){f||(f=n,n=void 0);return new u.default(n,f).input(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},851,[842]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.text,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},852,[794,824]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=y(arguments),o=n.input,u=n.format,f=n.options,i=n.metadata;return(0,t.default)(o,u,f,i)};var t=o(r(d[0])),n=o(r(d[1]));function o(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="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)}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(t,n){var o=[],u=!0,f=!1,i=void 0;try{for(var l,y=t[Symbol.iterator]();!(u=(l=y.next()).done)&&(o.push(l.value),!n||o.length!==n);u=!0);}catch(t){f=!0,i=t}finally{try{u||null==y.return||y.return()}finally{if(f)throw i}}return o}function l(t){if(Array.isArray(t))return t}function y(t){var o,u,y,p,s,b,h=Array.prototype.slice.call(t),v=(u=5,l(o=h)||i(o,u)||f()),A=v[0],w=v[1],N=v[2],S=v[3],_=v[4];if('string'==typeof A)if('string'==typeof N)p=N,_?(s=S,b=_):b=S,y=(0,n.default)(A,{defaultCountry:w,extended:!0},b);else{if('string'!=typeof w)throw new Error('`format` argument not passed to `formatNumber(number, format)`');p=w,S?(s=N,b=S):b=N,y=(0,n.default)(A,{extended:!0},b)}else{if(!c(A))throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');y=A,p=w,S?(s=N,b=S):b=N}return'International'===p?p='INTERNATIONAL':'National'===p&&(p='NATIONAL'),{input:y,format:p,options:s,metadata:b}}var c=function(t){return'object'===u(t)}},853,[813,794]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=c(arguments),o=t.input,u=t.options,i=t.metadata;return(0,n.default)(o,u,i)},e.normalizeArguments=c;var t=u(r(d[0])),n=u(r(d[1])),o=u(r(d[2]));function u(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="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)}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(t,n){var o=[],u=!0,i=!1,f=void 0;try{for(var l,y=t[Symbol.iterator]();!(u=(l=y.next()).done)&&(o.push(l.value),!n||o.length!==n);u=!0);}catch(t){i=!0,f=t}finally{try{u||null==y.return||y.return()}finally{if(i)throw f}}return o}function y(t){if(Array.isArray(t))return t}function c(n){var u,c,s,b,v=Array.prototype.slice.call(n),h=(c=4,y(u=v)||l(u,c)||f()),S=h[0],_=h[1],w=h[2],A=h[3],j={};if('string'==typeof S)'object'!==i(_)?(A?(j=w,b=A):b=w,s=(0,t.default)(S)?(0,o.default)(S,{defaultCountry:_},b):{}):(w?(j=_,b=w):b=_,s=(0,t.default)(S)?(0,o.default)(S,void 0,b):{});else{if(!p(S))throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');s=S,w?(j=_,b=w):b=_}return{input:s,options:j,metadata:b}}var p=function(t){return'object'===i(t)}},854,[798,811,794]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.input,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},855,[806,854]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.input,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},856,[809,854]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,f,s){if('string'!=typeof o)throw new TypeError('number must be a string');if('string'!=typeof f)throw new TypeError('country must be a string');var l;l=(0,t.default)(o)?(0,u.default)(o,{defaultCountry:f},s):{};return(0,n.default)(l,f,void 0,s)};var t=o(r(d[0])),u=o(r(d[1])),n=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}},857,[798,794,812]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=(0,r(d[1]).normalizeArguments)(arguments),o=n.text,u=n.options,c=n.metadata;return(0,t.default)(o,u,c)},e.searchPhoneNumbers=function(){var n=(0,r(d[1]).normalizeArguments)(arguments),o=n.text,u=n.options,c=n.metadata;return(0,t.searchPhoneNumbers)(o,u,c)};var t=(function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,o):{};u.get||u.set?Object.defineProperty(n,o,u):n[o]=t[o]}return n.default=t,n})(r(d[0]))},858,[859,824]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,i){void 0===n&&(n={});var s=new _(t,n,i),u=[];for(;s.hasNext();)u.push(s.next());return u},e.searchPhoneNumbers=function(t,n,i){void 0===n&&(n={});var s=new _(t,n,i);return f({},Symbol.iterator,function(){return{next:function(){return s.hasNext()?{done:!1,value:s.next()}:{done:!0}}}})},e.PhoneNumberSearch=e.EXTN_PATTERNS_FOR_PARSING=void 0;var t=o(r(d[0])),n=o(r(d[1])),i=o(r(d[2])),s=o(r(d[3])),u=o(r(d[4]));function o(t){return t&&t.__esModule?t:{default:t}}function h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function l(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};(0,u.default)(t);var f=l;if(f=n.require_hyphen?f.replace('?',''):f,!(f=n.case_sensitive?new RegExp(f):new RegExp(f,'i')).test(t))return!1;for(var s=t.replace('-','').toUpperCase(),i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:o;if((0,u.default)(t),n.loose)return s.includes(t.toLowerCase());return l.includes(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var o={loose:!1},l=['true','false','1','0'],s=[].concat(l,['yes','no']);m.exports=e.default,m.exports.default=e.default},867,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsNumberString=e.isNumberString=e.IS_NUMBER_STRING=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_NUMBER_STRING='isNumberString',e.isNumberString=u,e.IsNumberString=function(t,n){return r(d[1]).ValidateBy({name:e.IS_NUMBER_STRING,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a number string'},n)}},n)}},868,[869,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,o){if((0,l.default)(t),o&&o.no_symbols)return u.test(t);return new RegExp("^[+-]?([0-9]*[".concat((o||{}).locale?r(d[1]).decimal[o.locale]:'.',"])?[0-9]+$")).test(t)};var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^[0-9]+$/;m.exports=e.default,m.exports.default=e.default},869,[685,699]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBase32=e.isBase32=e.IS_BASE32=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_BASE32='isBase32',e.isBase32=n,e.IsBase32=function(t){return r(d[1]).ValidateBy({name:e.IS_BASE32,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be base32 encoded'},t)}},t)}},870,[871,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),t.length%8==0&&f.test(t))return!0;return!1};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z2-7]+=*$/;m.exports=e.default,m.exports.default=e.default},871,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBIC=e.isBIC=e.IS_BIC=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_BIC='isBIC',e.isBIC=n,e.IsBIC=function(t){return r(d[1]).ValidateBy({name:e.IS_BIC,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a BIC or SWIFT code'},t)}},t)}},872,[873,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),!r(d[1]).CountryCodes.has(t.slice(4,6).toUpperCase()))return!1;return s.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;m.exports=e.default,m.exports.default=e.default},873,[685,764]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBtcAddress=e.isBtcAddress=e.IS_BTC_ADDRESS=void 0;var s=t(r(d[0]));function u(t){return'string'==typeof t&&s.default(t)}e.IS_BTC_ADDRESS='isBtcAddress',e.isBtcAddress=u,e.IsBtcAddress=function(t){return r(d[1]).ValidateBy({name:e.IS_BTC_ADDRESS,validator:{validate:function(t,s){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a BTC address'},t)}},t)}},874,[875,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),t.startsWith('bc1'))return f.test(t);return s.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(bc1)[a-z0-9]{25,39}$/,s=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;m.exports=e.default,m.exports.default=e.default},875,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDataURI=e.isDataURI=e.IS_DATA_URI=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_DATA_URI='isDataURI',e.isDataURI=n,e.IsDataURI=function(t){return r(d[1]).ValidateBy({name:e.IS_DATA_URI,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a data uri format'},t)}},t)}},876,[877,675]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,s.default)(t);var l=t.split(',');if(l.length<2)return!1;var n=l.shift().trim().split(';'),o=n.shift();if('data:'!==o.substr(0,5))return!1;var v=o.substr(5);if(''!==v&&!u.test(v))return!1;for(var _=0;_=2&&n===11-u},IT:function(t){return 9===t.length&&('CA00000AA'!==t&&t.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(t){var n=t.trim();if(isNaN(Number(n)))return!1;if(11!==n.length)return!1;if('00000000000'===n)return!1;var u=n.split('').map(Number),i=(11-(3*u[0]+7*u[1]+6*u[2]+1*u[3]+8*u[4]+9*u[5]+4*u[6]+5*u[7]+2*u[8])%11)%11,s=(11-(5*u[0]+4*u[1]+3*u[2]+2*u[3]+7*u[4]+6*u[5]+5*u[6]+4*u[7]+3*u[8]+2*i)%11)%11;return i===u[9]&&s===u[10]},TH:function(t){if(!t.match(/^[1-8]\d{12}$/))return!1;for(var n=0,u=0;u<12;u++)n+=parseInt(t[u],10)*(13-u);return t[12]===((11-n%11)%10).toString()},LK:function(t){return!(10!==t.length||!/^[1-9]\d{8}[vx]$/i.test(t))||!(12!==t.length||!/^[1-9]\d{11}$/i.test(t))},'he-IL':function(t){var n=t.trim();if(!/^\d{9}$/.test(n))return!1;for(var u,i=n,s=0,f=0;f9?u-9:u;return s%10==0},'ar-LY':function(t){var n=t.trim();return!!/^(1|2)\d{11}$/.test(n)},'ar-TN':function(t){var n=t.trim();return!!/^\d{8}$/.test(n)},'zh-CN':function(t){var n,u=['11','12','13','14','15','21','22','23','31','32','33','34','35','36','37','41','42','43','44','45','46','50','51','52','53','54','61','62','63','64','65','71','81','82','91'],i=['7','9','10','5','8','4','2','1','6','3','7','9','10','5','8','4','2'],s=['1','0','X','9','8','7','6','5','4','3','2'],f=function(t){return u.includes(t)},o=function(t){var n=parseInt(t.substring(0,4),10),u=parseInt(t.substring(4,6),10),i=parseInt(t.substring(6),10),s=new Date(n,u-1,i);return!(s>new Date)&&(s.getFullYear()===n&&s.getMonth()===u-1&&s.getDate()===i)},c=function(t){for(var n=t.substring(0,17),u=0,f=0;f<17;f++)u+=parseInt(n.charAt(f),10)*parseInt(i[f],10);return s[u%11]},l=function(t){return c(t)===t.charAt(17).toUpperCase()},d=function(t){var n=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(t);if(!n)return!1;var u=t.substring(0,2);if(!(n=f(u)))return!1;var i="19".concat(t.substring(6,12));return!!(n=o(i))},v=function(t){var n=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(t);if(!n)return!1;var u=t.substring(0,2);if(!(n=f(u)))return!1;var i=t.substring(6,14);return!!(n=o(i))&&l(t)};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(n=t)&&(15===n.length?d(n):v(n))},'zh-TW':function(t){var n={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},u=t.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(u)&&Array.from(u).reduce(function(t,u,i){if(0===i){var s=n[u];return s%10*9+Math.floor(s/10)}return 9===i?(10-t%10-Number(u))%10==0:t+Number(u)*(9-i)},0)}};m.exports=e.default,m.exports.default=e.default},887,[685,748]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISRC=e.isISRC=e.IS_ISRC=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_ISRC='isISRC',e.isISRC=u,e.IsISRC=function(t){return r(d[1]).ValidateBy({name:e.IS_ISRC,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISRC'},t)}},t)}},888,[889,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;m.exports=e.default,m.exports.default=e.default},889,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLocale=e.isLocale=e.IS_LOCALE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_LOCALE='isLocale',e.isLocale=n,e.IsLocale=function(t){return r(d[1]).ValidateBy({name:e.IS_LOCALE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be locale'},t)}},t)}},890,[891,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),'en_US_POSIX'===t||'ca_ES_VALENCIA'===t)return!0;return _.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var _=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;m.exports=e.default,m.exports.default=e.default},891,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMagnetURI=e.isMagnetURI=e.IS_MAGNET_URI=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_MAGNET_URI='isMagnetURI',e.isMagnetURI=u,e.IsMagnetURI=function(t){return r(d[1]).ValidateBy({name:e.IS_MAGNET_URI,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be magnet uri format'},t)}},t)}},892,[893,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),s.test(t.trim())};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;m.exports=e.default,m.exports.default=e.default},893,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMimeType=e.isMimeType=e.IS_MIME_TYPE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_MIME_TYPE='isMimeType',e.isMimeType=n,e.IsMimeType=function(t){return r(d[1]).ValidateBy({name:e.IS_MIME_TYPE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be MIME type format'},t)}},t)}},894,[895,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,s.default)(t),u.test(t)||l.test(t)||o.test(t)};var t,s=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,l=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;m.exports=e.default,m.exports.default=e.default},895,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsOctal=e.isOctal=e.IS_OCTAL=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_OCTAL='isOctal',e.isOctal=n,e.IsOctal=function(t){return r(d[1]).ValidateBy({name:e.IS_OCTAL,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be valid octal number'},t)}},t)}},896,[897,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(0o)?[0-7]+$/i;m.exports=e.default,m.exports.default=e.default},897,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPassportNumber=e.isPassportNumber=e.IS_PASSPORT_NUMBER=void 0;var s=t(r(d[0]));function u(t,u){return'string'==typeof t&&s.default(t,u)}e.IS_PASSPORT_NUMBER='isPassportNumber',e.isPassportNumber=u,e.IsPassportNumber=function(t,s){return r(d[1]).ValidateBy({name:e.IS_PASSPORT_NUMBER,constraints:[t],validator:{validate:function(t,s){return u(t,s.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be valid passport number'},s)}},s)}},898,[899,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t){(0,A.default)($);var u=$.replace(/\s/g,'').toUpperCase();return t.toUpperCase()in Z&&Z[t].test(u)};var $,A=($=r(d[0]))&&$.__esModule?$:{default:$};var Z={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};m.exports=e.default,m.exports.default=e.default},899,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPostalCode=e.isPostalCode=e.IS_POSTAL_CODE=void 0;var o=t(r(d[0]));function s(t,s){return'string'==typeof t&&o.default(t,s)}e.IS_POSTAL_CODE='isPostalCode',e.isPostalCode=s,e.IsPostalCode=function(t,o){return r(d[1]).ValidateBy({name:e.IS_POSTAL_CODE,constraints:[t],validator:{validate:function(t,o){return s(t,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a postal code'},o)}},o)}},900,[901,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t){if((0,s.default)($),t in A)return A[t].test($);if('any'===t){for(var n in A)if(A.hasOwnProperty(n)){var o=A[n];if(o.test($))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var $,s=($=r(d[0]))&&$.__esModule?$:{default:$};var t=/^\d{4}$/,n=/^\d{5}$/,o=/^\d{6}$/,A={AD:/^AD\d{3}$/,AT:t,AU:t,AZ:/^AZ\d{4}$/,BE:t,BG:t,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:t,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:n,DK:t,DO:n,DZ:n,EE:n,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:n,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:t,ID:n,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:n,JP:/^\d{3}\-\d{4}$/,KE:n,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:t,LV:/^LV\-\d{4}$/,LK:n,MX:n,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:n,NL:/^\d{4}\s?[a-z]{2}$/i,NO:t,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:t,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:o,RU:o,SA:n,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:o,SI:t,SK:/^\d{3}\s?\d{2}$/,TH:n,TN:t,TW:/^\d{3}(\d{2})?$/,UA:n,US:/^\d{5}(-\d{4})?$/,ZA:t,ZM:n},T=Object.keys(A);e.locales=T},901,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsRFC3339=e.isRFC3339=e.IS_RFC_3339=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_RFC_3339='isRFC3339',e.isRFC3339=n,e.IsRFC3339=function(t){return r(d[1]).ValidateBy({name:e.IS_RFC_3339,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be RFC 3339 date'},t)}},t)}},902,[903,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){return(0,o.default)(c),x.test(c)};var c,o=(c=r(d[0]))&&c.__esModule?c:{default:c};var t=/([01][0-9]|2[0-3])/,u=/[0-5][0-9]/,n=new RegExp("[-+]".concat(t.source,":").concat(u.source)),s=new RegExp("([zZ]|".concat(n.source,")")),f=new RegExp("".concat(t.source,":").concat(u.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),l=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),p=new RegExp("".concat(f.source).concat(s.source)),x=new RegExp("^".concat(l.source,"[ tT]").concat(p.source,"$"));m.exports=e.default,m.exports.default=e.default},903,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsRgbColor=e.isRgbColor=e.IS_RGB_COLOR=void 0;var o=t(r(d[0]));function n(t,n){return'string'==typeof t&&o.default(t,n)}e.IS_RGB_COLOR='isRgbColor',e.isRgbColor=n,e.IsRgbColor=function(t,o){return r(d[1]).ValidateBy({name:e.IS_RGB_COLOR,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be RGB color'},o)}},o)}},904,[905,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,u.default)(t),!o)return s.test(t)||f.test(t);return s.test(t)||f.test(t)||l.test(t)||n.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,f=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,n=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;m.exports=e.default,m.exports.default=e.default},905,[685]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsSemVer=e.isSemVer=e.IS_SEM_VER=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_SEM_VER='isSemVer',e.isSemVer=u,e.IsSemVer=function(t){return r(d[1]).ValidateBy({name:e.IS_SEM_VER,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a Semantic Versioning Specification'},t)}},t)}},906,[907,675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),f.test(u)};var t=u(r(d[0]));function u(t){return t&&t.__esModule?t:{default:t}}var f=(0,u(r(d[1])).default)(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)','(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))','?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$'],'i');m.exports=e.default,m.exports.default=e.default},907,[685,908]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var n=t.join('');return new RegExp(n,u)},m.exports=e.default,m.exports.default=e.default},908,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function o(o){return o instanceof Boolean||'boolean'==typeof o}Object.defineProperty(e,"__esModule",{value:!0}),e.IsBoolean=e.isBoolean=e.IS_BOOLEAN=void 0,e.IS_BOOLEAN='isBoolean',e.isBoolean=o,e.IsBoolean=function(n){return r(d[0]).ValidateBy({name:e.IS_BOOLEAN,validator:{validate:function(n,t){return o(n)},defaultMessage:r(d[0]).buildMessage(function(o){return o+'$property must be a boolean value'},n)}},n)}},909,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Date&&!isNaN(t.getTime())}Object.defineProperty(e,"__esModule",{value:!0}),e.IsDate=e.isDate=e.IS_DATE=void 0,e.IS_DATE='isDate',e.isDate=t,e.IsDate=function(n){return r(d[0]).ValidateBy({name:e.IS_DATE,validator:{validate:function(n,s){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a Date instance'},n)}},n)}},910,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if('number'!=typeof t)return!1;if(t===1/0||t===-1/0)return n.allowInfinity;if(Number.isNaN(t))return n.allowNaN;if(void 0!==n.maxDecimalPlaces){var u=0;if(t%1!=0&&(u=t.toString().split('.')[1].length),u>n.maxDecimalPlaces)return!1}return Number.isFinite(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNumber=e.isNumber=e.IS_NUMBER=void 0,e.IS_NUMBER='isNumber',e.isNumber=t,e.IsNumber=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;return r(d[0]).ValidateBy({name:e.IS_NUMBER,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a number conforming to the specified constraints'},u)}},u)}},911,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return Object.keys(t).map(function(n){return t[n]}).indexOf(n)>=0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsEnum=e.isEnum=e.IS_ENUM=void 0,e.IS_ENUM='isEnum',e.isEnum=n,e.IsEnum=function(t,u){return r(d[0]).ValidateBy({name:e.IS_ENUM,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must be a valid enum value'},u)}},u)}},912,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'number'==typeof t&&Number.isInteger(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsInt=e.isInt=e.IS_INT=void 0,e.IS_INT='isInt',e.isInt=t,e.IsInt=function(n){return r(d[0]).ValidateBy({name:e.IS_INT,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an integer number'},n)}},n)}},913,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof String||'string'==typeof t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsString=e.isString=e.IS_STRING=void 0,e.IS_STRING='isString',e.isString=t,e.IsString=function(n){return r(d[0]).ValidateBy({name:e.IS_STRING,validator:{validate:function(n,s){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a string'},n)}},n)}},914,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Array}Object.defineProperty(e,"__esModule",{value:!0}),e.IsArray=e.isArray=e.IS_ARRAY=void 0,e.IS_ARRAY='isArray',e.isArray=t,e.IsArray=function(n){return r(d[0]).ValidateBy({name:e.IS_ARRAY,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an array'},n)}},n)}},915,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return null!=t&&('object'==typeof t||'function'==typeof t)&&!Array.isArray(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsObject=e.isObject=e.IS_OBJECT=void 0,e.IS_OBJECT='isObject',e.isObject=t,e.IsObject=function(n){return r(d[0]).ValidateBy({name:e.IS_OBJECT,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an object'},n)}},n)}},916,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&t.every(function(t){return-1!==n.indexOf(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayContains=e.arrayContains=e.ARRAY_CONTAINS=void 0,e.ARRAY_CONTAINS='arrayContains',e.arrayContains=n,e.ArrayContains=function(t,o){return r(d[0]).ValidateBy({name:e.ARRAY_CONTAINS,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must contain $constraint1 values'},o)}},o)}},917,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&t.every(function(t){return-1===n.indexOf(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNotContains=e.arrayNotContains=e.ARRAY_NOT_CONTAINS=void 0,e.ARRAY_NOT_CONTAINS='arrayNotContains',e.arrayNotContains=n,e.ArrayNotContains=function(t,o){return r(d[0]).ValidateBy({name:e.ARRAY_NOT_CONTAINS,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property should not contain $constraint1 values'},o)}},o)}},918,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Array&&t.length>0}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNotEmpty=e.arrayNotEmpty=e.ARRAY_NOT_EMPTY=void 0,e.ARRAY_NOT_EMPTY='arrayNotEmpty',e.arrayNotEmpty=t,e.ArrayNotEmpty=function(n){return r(d[0]).ValidateBy({name:e.ARRAY_NOT_EMPTY,validator:{validate:function(n,o){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be empty'},n)}},n)}},919,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&n.length>=t}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayMinSize=e.arrayMinSize=e.ARRAY_MIN_SIZE=void 0,e.ARRAY_MIN_SIZE='arrayMinSize',e.arrayMinSize=n,e.ArrayMinSize=function(t,s){return r(d[0]).ValidateBy({name:e.ARRAY_MIN_SIZE,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must contain at least $constraint1 elements'},s)}},s)}},920,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Array&&t.length<=n}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayMaxSize=e.arrayMaxSize=e.ARRAY_MAX_SIZE=void 0,e.ARRAY_MAX_SIZE='arrayMaxSize',e.arrayMaxSize=t,e.ArrayMaxSize=function(n,o){return r(d[0]).ValidateBy({name:e.ARRAY_MAX_SIZE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must contain not more than $constraint1 elements'},o)}},o)}},921,[675]); -__d(function(g,r,i,_a,m,e,d){"use strict";function n(n,t){if(!(n instanceof Array))return!1;t&&(n=n.map(function(n){return null!=n?t(n):n}));var u=n.filter(function(n,t,u){return u.indexOf(n)===t});return n.length===u.length}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUnique=e.arrayUnique=e.ARRAY_UNIQUE=void 0,e.ARRAY_UNIQUE='arrayUnique',e.arrayUnique=n,e.ArrayUnique=function(t,u){var a='function'==typeof t?t:void 0,o='function'!=typeof t?t:u;return r(d[0]).ValidateBy({name:e.ARRAY_UNIQUE,validator:{validate:function(t,u){return n(t,a)},defaultMessage:r(d[0]).buildMessage(function(n){return n+"All $property's elements must be unique"},o)}},o)}},922,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){if(!r(d[0]).isObject(t))return!1;if(!0===(null===n||void 0===n?void 0:n.nullable))return!Object.values(t).every(function(t){return null===t||void 0===t});for(var o in t)if(t.hasOwnProperty(o))return!0;return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotEmptyObject=e.isNotEmptyObject=e.IS_NOT_EMPTY_OBJECT=void 0,e.IS_NOT_EMPTY_OBJECT='isNotEmptyObject',e.isNotEmptyObject=t,e.IsNotEmptyObject=function(n,o){return r(d[1]).ValidateBy({name:e.IS_NOT_EMPTY_OBJECT,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a non-empty object'},o)}},o)}},923,[916,675]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return t&&'function'==typeof t&&n instanceof t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsInstance=e.isInstance=e.IS_INSTANCE=void 0,e.IS_INSTANCE='isInstance',e.isInstance=n,e.IsInstance=function(t,s){return r(d[0]).ValidateBy({name:e.IS_INSTANCE,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n,t){return t.constraints[0]?n+"$property must be an instance of "+t.constraints[0].name:n+(e.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")},s)}},s)}},924,[675]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},925,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"toString",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",h=n?"\x1b[1m":"",c=n?"\x1b[22m":"",u=function(n){return" - property "+h+s+n+c+" has failed the following constraints: "+h+Object.keys(t.constraints).join(", ")+c+" \n"};if(o){var l=Number.isInteger(+this.property)?"["+this.property+"]":(s?".":"")+this.property;return this.constraints?u(l):this.children?this.children.map(function(t){return t.toString(n,!0,""+s+l)}).join(""):""}return"An instance of "+h+(this.target?this.target.constructor.name:'an object')+c+" has failed the validation:\n"+(this.constraints?u(this.property):"")+(this.children?this.children.map(function(o){return o.toString(n,!0,t.property)}).join(""):"")}}]),t})();e.ValidationError=t},926,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageValidator=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"validateSync",value:function(t){var o=(0,r(d[2]).validateSync)(t);if((0,r(d[3]).isValidationErrorArray)(o))throw new(r(d[4]).ClassValidationError)('Failed to validate class.',{classType:t.constructor.name,validationErrors:o});if(0!==o.length)throw new(r(d[4]).ClassValidationError)('An unknown validation error occurred.',{classType:Object.prototype.constructor(t).name})}}]),t})();e.MessageValidator=t},660,[7,8,661,932,611]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.registerSchema=e.validateSync=e.validateOrReject=e.validate=void 0,n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),e.validate=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validate(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validate(t,n)},e.validateOrReject=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validateOrReject(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validateOrReject(t,n)},e.validateSync=function(t,n,o){return'string'==typeof t?r(d[0]).getFromContainer(r(d[8]).Validator).validateSync(t,n,o):r(d[0]).getFromContainer(r(d[8]).Validator).validateSync(t,n)},e.registerSchema=function(t){r(d[11]).getMetadataStorage().addValidationSchema(t)}},661,[662,663,743,924,925,926,927,665,928,931,675,666]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFromContainer=e.useContainer=void 0;var t,n,o=new((function(){function t(){r(d[0])(this,t),this.instances=[]}return r(d[1])(t,[{key:"get",value:function(t){var n=this.instances.find(function(n){return n.type===t});return n||(n={type:t,object:new t},this.instances.push(n)),n.object}}]),t})());e.useContainer=function(o,u){t=o,n=u},e.getFromContainer=function(u){if(t)try{var c=t.get(u);if(c)return c;if(!n||!n.fallback)return c}catch(t){if(!n||!n.fallbackOnErrors)throw t}return o.get(u)}},662,[7,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e),n(r(d[11]),e),n(r(d[12]),e),n(r(d[13]),e),n(r(d[14]),e),n(r(d[15]),e),n(r(d[16]),e),n(r(d[17]),e),n(r(d[18]),e),n(r(d[19]),e),n(r(d[20]),e),n(r(d[21]),e),n(r(d[22]),e),n(r(d[23]),e),n(r(d[24]),e),n(r(d[25]),e),n(r(d[26]),e),n(r(d[27]),e),n(r(d[28]),e),n(r(d[29]),e),n(r(d[30]),e),n(r(d[31]),e),n(r(d[32]),e),n(r(d[33]),e),n(r(d[34]),e),n(r(d[35]),e),n(r(d[36]),e),n(r(d[37]),e),n(r(d[38]),e),n(r(d[39]),e),n(r(d[40]),e),n(r(d[41]),e),n(r(d[42]),e),n(r(d[43]),e),n(r(d[44]),e),n(r(d[45]),e),n(r(d[46]),e),n(r(d[47]),e),n(r(d[48]),e),n(r(d[49]),e),n(r(d[50]),e),n(r(d[51]),e),n(r(d[52]),e),n(r(d[53]),e),n(r(d[54]),e),n(r(d[55]),e),n(r(d[56]),e),n(r(d[57]),e),n(r(d[58]),e),n(r(d[59]),e),n(r(d[60]),e),n(r(d[61]),e),n(r(d[62]),e),n(r(d[63]),e),n(r(d[64]),e),n(r(d[65]),e),n(r(d[66]),e),n(r(d[67]),e),n(r(d[68]),e),n(r(d[69]),e),n(r(d[70]),e),n(r(d[71]),e),n(r(d[72]),e),n(r(d[73]),e),n(r(d[74]),e),n(r(d[75]),e),n(r(d[76]),e),n(r(d[77]),e),n(r(d[78]),e),n(r(d[79]),e),n(r(d[80]),e),n(r(d[81]),e),n(r(d[82]),e),n(r(d[83]),e),n(r(d[84]),e),n(r(d[85]),e),n(r(d[86]),e),n(r(d[87]),e),n(r(d[88]),e),n(r(d[89]),e),n(r(d[90]),e),n(r(d[91]),e),n(r(d[92]),e),n(r(d[93]),e),n(r(d[94]),e),n(r(d[95]),e),n(r(d[96]),e),n(r(d[97]),e),n(r(d[98]),e),n(r(d[99]),e),n(r(d[100]),e),n(r(d[101]),e),n(r(d[102]),e),n(r(d[103]),e),n(r(d[104]),e),n(r(d[105]),e)},663,[664,673,677,678,674,679,680,681,682,686,687,688,689,690,691,692,693,694,699,700,701,702,703,704,705,708,709,711,713,716,718,720,722,724,726,730,731,733,735,737,739,741,744,745,748,750,752,754,756,758,760,762,764,766,768,770,772,774,776,777,779,781,782,783,785,859,860,862,864,865,867,869,871,873,875,877,879,881,883,885,887,889,891,893,895,897,899,901,903,905,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Allow=void 0,e.Allow=function(t){return function(o,n){var l={type:r(d[0]).ValidationTypes.WHITELIST,target:o.constructor,propertyName:n,validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},664,[665,666,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationTypes=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"isValid",value:function(t){var n=this;return'isValid'!==t&&'getMessage'!==t&&-1!==Object.keys(this).map(function(t){return n[t]}).indexOf(t)}}]),t})();e.ValidationTypes=t,t.CUSTOM_VALIDATION='customValidation',t.NESTED_VALIDATION='nestedValidation',t.PROMISE_VALIDATION='promiseValidation',t.CONDITIONAL_VALIDATION='conditionalValidation',t.WHITELIST='whitelistValidation',t.IS_DEFINED='isDefined'},665,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMetadataStorage=e.MetadataStorage=void 0;var t=(function(){function t(){r(d[0])(this,t),this.validationMetadatas=[],this.constraintMetadatas=[]}return r(d[1])(t,[{key:"hasValidationMetaData",get:function(){return!!this.validationMetadatas.length}},{key:"addValidationSchema",value:function(t){var n=this;(new(r(d[2]).ValidationSchemaToMetadataTransformer)).transform(t).forEach(function(t){return n.addValidationMetadata(t)})}},{key:"addValidationMetadata",value:function(t){this.validationMetadatas.push(t)}},{key:"addConstraintMetadata",value:function(t){this.constraintMetadatas.push(t)}},{key:"groupByPropertyName",value:function(t){var n={};return t.forEach(function(t){n[t.propertyName]||(n[t.propertyName]=[]),n[t.propertyName].push(t)}),n}},{key:"getTargetValidationMetadatas",value:function(t,n,o,u,s){var l=function(t){return void 0!==t.always?t.always:(!t.groups||!t.groups.length)&&o},c=function(t){return!(!u||s&&s.length||!t.groups||!t.groups.length)},f=this.validationMetadatas.filter(function(o){return(o.target===t||o.target===n)&&(!!l(o)||!c(o)&&(!(s&&s.length>0)||o.groups&&!!o.groups.find(function(t){return-1!==s.indexOf(t)})))}),p=this.validationMetadatas.filter(function(n){return'string'!=typeof n.target&&(n.target!==t&&((!(n.target instanceof Function)||t.prototype instanceof n.target)&&(!!l(n)||!c(n)&&(!(s&&s.length>0)||n.groups&&!!n.groups.find(function(t){return-1!==s.indexOf(t)})))))}).filter(function(t){return!f.find(function(n){return n.propertyName===t.propertyName&&n.type===t.type})});return f.concat(p)}},{key:"getTargetValidatorConstraints",value:function(t){return this.constraintMetadatas.filter(function(n){return n.target===t})}}]),t})();e.MetadataStorage=t,e.getMetadataStorage=function(){var n=r(d[3]).getGlobal();return n.classValidatorMetadataStorage||(n.classValidatorMetadataStorage=new t),n.classValidatorMetadataStorage}},666,[7,8,667,669]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationSchemaToMetadataTransformer=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"transform",value:function(t){var n=[];return Object.keys(t.properties).forEach(function(o){t.properties[o].forEach(function(s){var c={message:s.message,groups:s.groups,always:s.always,each:s.each},p={type:s.type,target:t.name,propertyName:o,constraints:s.constraints,validationTypeOptions:s.options,validationOptions:c};n.push(new(r(d[2]).ValidationMetadata)(p))})}),n}}]),t})();e.ValidationSchemaToMetadataTransformer=t},667,[7,8,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationMetadata=void 0;var t=r(d[0])(function t(s){r(d[1])(this,t),this.groups=[],this.each=!1,this.context=void 0,this.type=s.type,this.target=s.target,this.propertyName=s.propertyName,this.constraints=s.constraints,this.constraintCls=s.constraintCls,this.validationTypeOptions=s.validationTypeOptions,s.validationOptions&&(this.message=s.validationOptions.message,this.groups=s.validationOptions.groups,this.always=s.validationOptions.always,this.each=s.validationOptions.each,this.context=s.validationOptions.context)});e.ValidationMetadata=t},668,[8,7]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o),Object.defineProperty(t,c,{enumerable:!0,get:function(){return n[o]}})}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},669,[670,671,672]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertToArray=void 0,e.convertToArray=function(o){return o instanceof Map?Array.from(o.values()):Array.isArray(o)?o:Array.from(o)}},670,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobal=void 0,e.getGlobal=function(){return'undefined'!=typeof globalThis?globalThis:void 0!==g?g:'undefined'!=typeof window?window:'undefined'!=typeof self?self:void 0}},671,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPromise=void 0,e.isPromise=function(t){return null!==t&&'object'==typeof t&&'function'==typeof t.then}},672,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return void 0!==n&&null!==n}Object.defineProperty(e,"__esModule",{value:!0}),e.IsDefined=e.isDefined=e.IS_DEFINED=void 0,e.IS_DEFINED=r(d[0]).ValidationTypes.IS_DEFINED,e.isDefined=n,e.IsDefined=function(t){return r(d[1]).ValidateBy({name:e.IS_DEFINED,validator:{validate:function(t){return n(t)},defaultMessage:r(d[1]).buildMessage(function(n){return n+'$property should not be null or undefined'},t)}},t)}},673,[665,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateBy=e.buildMessage=void 0,e.buildMessage=function(t,n){return function(o){var u=n&&n.each?'each value in ':'';return t(u,o)}},e.ValidateBy=function(t,n){return function(o,u){r(d[0]).registerDecorator({name:t.name,target:o.constructor,propertyName:u,options:n,constraints:t.constraints,validator:t.validator})}}},674,[675]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerDecorator=void 0,e.registerDecorator=function(t){var n;if(t.validator instanceof Function){if(n=t.validator,r(d[0]).getFromContainer(r(d[1]).MetadataStorage).getTargetValidatorConstraints(t.validator).length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: "+t.target.name+":"+t.propertyName}else{var o=t.validator;n=(function(){function t(){r(d[2])(this,t)}return r(d[3])(t,[{key:"validate",value:function(t,n){return o.validate(t,n)}},{key:"defaultMessage",value:function(t){return o.defaultMessage?o.defaultMessage(t):''}}]),t})(),r(d[1]).getMetadataStorage().addConstraintMetadata(new(r(d[4]).ConstraintMetadata)(n,t.name,t.async))}var s={type:t.name&&r(d[5]).ValidationTypes.isValid(t.name)?t.name:r(d[5]).ValidationTypes.CUSTOM_VALIDATION,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:n,constraints:t.constraints};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[6]).ValidationMetadata)(s))}},675,[662,666,7,8,676,665,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConstraintMetadata=void 0;var t=(function(){function t(n,o){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r(d[0])(this,t),this.target=n,this.name=o,this.async=s}return r(d[1])(t,[{key:"instance",get:function(){return r(d[2]).getFromContainer(this.target)}}]),t})();e.ConstraintMetadata=t},676,[7,8,662]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsOptional=void 0,e.IsOptional=function(t){return function(n,o){var u={type:r(d[0]).ValidationTypes.CONDITIONAL_VALIDATION,target:n.constructor,propertyName:o,constraints:[function(t,n){return null!==t[o]&&void 0!==t[o]}],validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(u))}}},677,[665,666,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Validate=e.ValidatorConstraint=void 0,e.ValidatorConstraint=function(t){return function(n){var o=t&&t.async,s=t&&t.name?t.name:'';s||(s=n.name)||(s=s.replace(/\.?([A-Z]+)/g,function(t,n){return'_'+n.toLowerCase()}).replace(/^_/,''));var c=new(r(d[0]).ConstraintMetadata)(n,s,o);r(d[1]).getMetadataStorage().addConstraintMetadata(c)}},e.Validate=function(t,n,o){return function(s,c){var l={type:r(d[2]).ValidationTypes.CUSTOM_VALIDATION,target:s.constructor,propertyName:c,constraintCls:t,constraints:n instanceof Array?n:void 0,validationOptions:n instanceof Array?o:n};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[3]).ValidationMetadata)(l))}}},678,[676,666,665,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateIf=void 0,e.ValidateIf=function(t,n){return function(o,c){var l={type:r(d[0]).ValidationTypes.CONDITIONAL_VALIDATION,target:o.constructor,propertyName:c,constraints:[t],validationOptions:n};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},679,[665,666,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateNested=void 0,e.ValidateNested=function(t){var o=r(d[0])({},t),n=o.each?'each value in ':'';return o.message=o.message||n+'nested property $property must be either object or array',function(t,n){var s={type:r(d[1]).ValidationTypes.NESTED_VALIDATION,target:t.constructor,propertyName:n,validationOptions:o};r(d[2]).getMetadataStorage().addValidationMetadata(new(r(d[3]).ValidationMetadata)(s))}}},680,[4,665,666,668]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidatePromise=void 0,e.ValidatePromise=function(t){return function(o,n){var l={type:r(d[0]).ValidationTypes.PROMISE_VALIDATION,target:o.constructor,propertyName:n,validationOptions:t};r(d[1]).getMetadataStorage().addValidationMetadata(new(r(d[2]).ValidationMetadata)(l))}}},681,[665,666,668]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLatLong=e.isLatLong=e.IS_LATLONG=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_LATLONG='isLatLong',e.isLatLong=u,e.IsLatLong=function(t){return r(d[1]).ValidateBy({name:e.IS_LATLONG,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a latitude,longitude string'},t)}},t)}},682,[683,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,o){if((0,t.default)(u),o=(0,s.default)(o,c),!u.includes(','))return!1;var h=u.split(',');if(h[0].startsWith('(')&&!h[1].endsWith(')')||h[1].endsWith(')')&&!h[0].startsWith('('))return!1;if(o.checkDMS)return l.test(h[0])&&D.test(h[1]);return n.test(h[0])&&f.test(h[1])};var t=u(r(d[0])),s=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}var n=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,f=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,l=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,D=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};m.exports=e.default,m.exports.default=e.default},683,[684,685]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(o){"@babel/helpers - typeof";return(t="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})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){if(!('string'==typeof o||o instanceof String)){var n=t(o);throw null===o?n='null':'object'===n&&(n=o.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},m.exports=e.default,m.exports.default=e.default},684,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var u in o)void 0===t[u]&&(t[u]=o[u]);return t},m.exports=e.default,m.exports.default=e.default},685,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return('number'==typeof t||'string'==typeof t)&&r(d[0]).isLatLong(t+",0")}Object.defineProperty(e,"__esModule",{value:!0}),e.IsLatitude=e.isLatitude=e.IS_LATITUDE=void 0,e.IS_LATITUDE='isLatitude',e.isLatitude=t,e.IsLatitude=function(u){return r(d[1]).ValidateBy({name:e.IS_LATITUDE,validator:{validate:function(u,n){return t(u)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a latitude string or number'},u)}},u)}},686,[682,674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return('number'==typeof t||'string'==typeof t)&&r(d[0]).isLatLong("0,"+t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsLongitude=e.isLongitude=e.IS_LONGITUDE=void 0,e.IS_LONGITUDE='isLongitude',e.isLongitude=t,e.IsLongitude=function(n){return r(d[1]).ValidateBy({name:e.IS_LONGITUDE,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a longitude string or number'},n)}},n)}},687,[682,674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t===n}Object.defineProperty(e,"__esModule",{value:!0}),e.Equals=e.equals=e.EQUALS=void 0,e.EQUALS='equals',e.equals=t,e.Equals=function(n,u){return r(d[0]).ValidateBy({name:e.EQUALS,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be equal to $constraint1'},u)}},u)}},688,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t!==n}Object.defineProperty(e,"__esModule",{value:!0}),e.NotEquals=e.notEquals=e.NOT_EQUALS=void 0,e.NOT_EQUALS='notEquals',e.notEquals=t,e.NotEquals=function(n,o){return r(d[0]).ValidateBy({name:e.NOT_EQUALS,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be equal to $constraint1'},o)}},o)}},689,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return''===t||null===t||void 0===t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsEmpty=e.isEmpty=e.IS_EMPTY=void 0,e.IS_EMPTY='isEmpty',e.isEmpty=t,e.IsEmpty=function(n){return r(d[0]).ValidateBy({name:e.IS_EMPTY,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be empty'},n)}},n)}},690,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return''!==t&&null!==t&&void 0!==t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotEmpty=e.isNotEmpty=e.IS_NOT_EMPTY=void 0,e.IS_NOT_EMPTY='isNotEmpty',e.isNotEmpty=t,e.IsNotEmpty=function(n){return r(d[0]).ValidateBy({name:e.IS_NOT_EMPTY,validator:{validate:function(n,o){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be empty'},n)}},n)}},691,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return!(t instanceof Array)||t.some(function(t){return t===n})}Object.defineProperty(e,"__esModule",{value:!0}),e.IsIn=e.isIn=e.IS_IN=void 0,e.IS_IN='isIn',e.isIn=n,e.IsIn=function(t,s){return r(d[0]).ValidateBy({name:e.IS_IN,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must be one of the following values: $constraint1'},s)}},s)}},692,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return!(t instanceof Array&&t.some(function(t){return t===n}))}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotIn=e.isNotIn=e.IS_NOT_IN=void 0,e.IS_NOT_IN='isNotIn',e.isNotIn=n,e.IsNotIn=function(t,o){return r(d[0]).ValidateBy({name:e.IS_NOT_IN,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property should not be one of the following values: $constraint1'},o)}},o)}},693,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDivisibleBy=e.isDivisibleBy=e.IS_DIVISIBLE_BY=void 0;var n=t(r(d[0]));function s(t,s){return'number'==typeof t&&'number'==typeof s&&n.default(String(t),s)}e.IS_DIVISIBLE_BY='isDivisibleBy',e.isDivisibleBy=s,e.IsDivisibleBy=function(t,n){return r(d[1]).ValidateBy({name:e.IS_DIVISIBLE_BY,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be divisible by $constraint1'},n)}},n)}},694,[695,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,l){return(0,t.default)(f),(0,u.default)(f)%parseInt(l,10)==0};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},695,[684,696]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t)?parseFloat(t):NaN};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},696,[697]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,o){(0,l.default)(t),o=o||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(o.locale?r(d[1]).decimal[o.locale]:'.',"[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(''===t||'.'===t||'-'===t||'+'===t)return!1;var c=parseFloat(t.replace(',','.'));return n.test(t)&&(!o.hasOwnProperty('min')||c>=o.min)&&(!o.hasOwnProperty('max')||c<=o.max)&&(!o.hasOwnProperty('lt')||co.gt)},e.locales=void 0;var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=Object.keys(r(d[1]).decimal);e.locales=o},697,[684,698]); +__d(function(g,r,_i5,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commaDecimal=e.dotDecimal=e.farsiLocales=e.arabicLocales=e.englishLocales=e.decimal=e.alphanumeric=e.alpha=void 0;var i={'en-US':/^[A-Z]+$/i,'az-AZ':/^[A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'bg-BG':/^[\u0410-\u042f]+$/i,'cs-CZ':/^[A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,'da-DK':/^[A-Z\xc6\xd8\xc5]+$/i,'de-DE':/^[A-Z\xc4\xd6\xdc\xdf]+$/i,'el-GR':/^[\u0391-\u03ce]+$/i,'es-ES':/^[A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,'fa-IR':/^[\u0627\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u06cc]+$/i,'fi-FI':/^[A-Z\xc5\xc4\xd6]+$/i,'fr-FR':/^[A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,'it-IT':/^[A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,'nb-NO':/^[A-Z\xc6\xd8\xc5]+$/i,'nl-NL':/^[A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,'nn-NO':/^[A-Z\xc6\xd8\xc5]+$/i,'hu-HU':/^[A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,'pl-PL':/^[A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,'pt-PT':/^[A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,'ru-RU':/^[\u0410-\u042f\u0401]+$/i,'sl-SI':/^[A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,'sk-SK':/^[A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,'sr-RS@latin':/^[A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,'sr-RS':/^[\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,'sv-SE':/^[A-Z\xc5\xc4\xd6]+$/i,'th-TH':/^[\u0e01-\u0e50\s]+$/i,'tr-TR':/^[A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'uk-UA':/^[\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,'vi-VN':/^[A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,'ku-IQ':/^[\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,ar:/^[\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[\u05d0-\u05ea]+$/,fa:/^['\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc']+$/i,'hi-IN':/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};e.alpha=i;var $={'en-US':/^[0-9A-Z]+$/i,'az-AZ':/^[0-9A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'bg-BG':/^[0-9\u0410-\u042f]+$/i,'cs-CZ':/^[0-9A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,'da-DK':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'de-DE':/^[0-9A-Z\xc4\xd6\xdc\xdf]+$/i,'el-GR':/^[0-9\u0391-\u03c9]+$/i,'es-ES':/^[0-9A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,'fi-FI':/^[0-9A-Z\xc5\xc4\xd6]+$/i,'fr-FR':/^[0-9A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,'it-IT':/^[0-9A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,'hu-HU':/^[0-9A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,'nb-NO':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'nl-NL':/^[0-9A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,'nn-NO':/^[0-9A-Z\xc6\xd8\xc5]+$/i,'pl-PL':/^[0-9A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,'pt-PT':/^[0-9A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,'ru-RU':/^[0-9\u0410-\u042f\u0401]+$/i,'sl-SI':/^[0-9A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,'sk-SK':/^[0-9A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,'sr-RS@latin':/^[0-9A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,'sr-RS':/^[0-9\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,'sv-SE':/^[0-9A-Z\xc5\xc4\xd6]+$/i,'th-TH':/^[\u0e01-\u0e59\s]+$/i,'tr-TR':/^[0-9A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,'uk-UA':/^[0-9\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,'ku-IQ':/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,'vi-VN':/^[0-9A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,ar:/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[0-9\u05d0-\u05ea]+$/,fa:/^['0-9\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u06f0']+$/i,'hi-IN':/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};e.alphanumeric=$;var A={'en-US':'.',ar:'\u066b'};e.decimal=A;var Z=['AU','GB','HK','IN','NZ','ZA','ZM'];e.englishLocales=Z;for(var l,n=0;n0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsPositive=e.isPositive=e.IS_POSITIVE=void 0,e.IS_POSITIVE='isPositive',e.isPositive=t,e.IsPositive=function(s){return r(d[0]).ValidateBy({name:e.IS_POSITIVE,validator:{validate:function(s,n){return t(s)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a positive number'},s)}},s)}},699,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'number'==typeof t&&t<0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNegative=e.isNegative=e.IS_NEGATIVE=void 0,e.IS_NEGATIVE='isNegative',e.isNegative=t,e.IsNegative=function(n){return r(d[0]).ValidateBy({name:e.IS_NEGATIVE,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a negative number'},n)}},n)}},700,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return'number'==typeof t&&'number'==typeof n&&t<=n}Object.defineProperty(e,"__esModule",{value:!0}),e.Max=e.max=e.MAX=void 0,e.MAX='max',e.max=t,e.Max=function(n,u){return r(d[0]).ValidateBy({name:e.MAX,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must not be greater than $constraint1'},u)}},u)}},701,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return'number'==typeof n&&'number'==typeof t&&n>=t}Object.defineProperty(e,"__esModule",{value:!0}),e.Min=e.min=e.MIN=void 0,e.MIN='min',e.min=n,e.Min=function(t,u){return r(d[0]).ValidateBy({name:e.MIN,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must not be less than $constraint1'},u)}},u)}},702,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Date&&t.getTime()>=n.getTime()}Object.defineProperty(e,"__esModule",{value:!0}),e.MinDate=e.minDate=e.MIN_DATE=void 0,e.MIN_DATE='minDate',e.minDate=t,e.MinDate=function(n,o){return r(d[0]).ValidateBy({name:e.MIN_DATE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return'minimal allowed date for '+t+'$property is $constraint1'},o)}},o)}},703,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Date&&t.getTime()<=n.getTime()}Object.defineProperty(e,"__esModule",{value:!0}),e.MaxDate=e.maxDate=e.MAX_DATE=void 0,e.MAX_DATE='maxDate',e.maxDate=t,e.MaxDate=function(n,o){return r(d[0]).ValidateBy({name:e.MAX_DATE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return'maximal allowed date for '+t+'$property is $constraint1'},o)}},o)}},704,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Contains=e.contains=e.CONTAINS=void 0;var n=t(r(d[0]));function o(t,o){return'string'==typeof t&&n.default(t,o)}e.CONTAINS='contains',e.contains=o,e.Contains=function(t,n){return r(d[1]).ValidateBy({name:e.CONTAINS,constraints:[t],validator:{validate:function(t,n){return o(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a $constraint1 string'},n)}},n)}},705,[706,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,c,f){if((0,t.default)(l),(f=(0,n.default)(f,s)).ignoreCase)return l.toLowerCase().split((0,u.default)(c).toLowerCase()).length>f.minOccurrences;return l.split((0,u.default)(c)).length>f.minOccurrences};var t=l(r(d[0])),u=l(r(d[1])),n=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}var s={ignoreCase:!1,minOccurrences:1};m.exports=e.default,m.exports.default=e.default},706,[684,707,685]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(o){"@babel/helpers - typeof";return(t="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})(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){'object'===t(o)&&null!==o?o='function'==typeof o.toString?o.toString():'[object Object]':(null===o||void 0===o||isNaN(o)&&!o.length)&&(o='');return String(o)},m.exports=e.default,m.exports.default=e.default},707,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotContains=e.notContains=e.NOT_CONTAINS=void 0;var n=t(r(d[0]));function o(t,o){return'string'==typeof t&&!n.default(t,o)}e.NOT_CONTAINS='notContains',e.notContains=o,e.NotContains=function(t,n){return r(d[1]).ValidateBy({name:e.NOT_CONTAINS,constraints:[t],validator:{validate:function(t,n){return o(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property should not contain a $constraint1 string'},n)}},n)}},708,[706,674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAlpha=e.isAlpha=e.IS_ALPHA=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_ALPHA='isAlpha',e.isAlpha=s,e.IsAlpha=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ALPHA,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only letters (a-zA-Z)'},n)}},n)}},709,[710,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-US',l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(n);var c=n,s=l.ignore;if(s)if(s instanceof RegExp)c=c.replace(s,'');else{if('string'!=typeof s)throw new Error('ignore should be instance of a String or RegExp');c=c.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,'\\$&'),"]"),'g'),'')}if(t in r(d[1]).alpha)return r(d[1]).alpha[t].test(c);throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var n,o=(n=r(d[0]))&&n.__esModule?n:{default:n};var t=Object.keys(r(d[1]).alpha);e.locales=t},710,[684,698]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAlphanumeric=e.isAlphanumeric=e.IS_ALPHANUMERIC=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_ALPHANUMERIC='isAlphanumeric',e.isAlphanumeric=u,e.IsAlphanumeric=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ALPHANUMERIC,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only letters and numbers'},n)}},n)}},711,[712,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'en-US',l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(n);var c=n,s=l.ignore;if(s)if(s instanceof RegExp)c=c.replace(s,'');else{if('string'!=typeof s)throw new Error('ignore should be instance of a String or RegExp');c=c.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,'\\$&'),"]"),'g'),'')}if(t in r(d[1]).alphanumeric)return r(d[1]).alphanumeric[t].test(c);throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var n,o=(n=r(d[0]))&&n.__esModule?n:{default:n};var t=Object.keys(r(d[1]).alphanumeric);e.locales=t},712,[684,698]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDecimal=e.isDecimal=e.IS_DECIMAL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_DECIMAL='isDecimal',e.isDecimal=s,e.IsDecimal=function(t,n){return r(d[1]).ValidateBy({name:e.IS_DECIMAL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property is not a valid decimal number.'},n)}},n)}},713,[714,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,_){if((0,l.default)(o),(_=(0,t.default)(_,u)).locale in r(d[3]).decimal)return!(0,c.default)(f,o.replace(/ /g,''))&&n(_).test(o);throw new Error("Invalid locale '".concat(_.locale,"'"))};var t=o(r(d[0])),l=o(r(d[1])),c=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}function n(t){return new RegExp("^[-+]?([0-9]+)?(\\".concat(r(d[3]).decimal[t.locale],"[0-9]{").concat(t.decimal_digits,"})").concat(t.force_decimal?'':'?',"$"))}var u={force_decimal:!1,decimal_digits:'1,',locale:'en-US'},f=['','-','+'];m.exports=e.default,m.exports.default=e.default},714,[685,684,715,698]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(t,u){return t.some(function(t){return u===t})};e.default=t,m.exports=e.default,m.exports.default=e.default},715,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsAscii=e.isAscii=e.IS_ASCII=void 0;var n=t(r(d[0]));function s(t){return'string'==typeof t&&n.default(t)}e.IS_ASCII='isAscii',e.isAscii=s,e.IsAscii=function(t){return r(d[1]).ValidateBy({name:e.IS_ASCII,validator:{validate:function(t,n){return s(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain only ASCII characters'},t)}},t)}},716,[717,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[\x00-\x7F]+$/;m.exports=e.default,m.exports.default=e.default},717,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBase64=e.isBase64=e.IS_BASE64=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_BASE64='isBase64',e.isBase64=n,e.IsBase64=function(t){return r(d[1]).ValidateBy({name:e.IS_BASE64,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be base64 encoded'},t)}},t)}},718,[719,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,s){(0,t.default)(f),s=(0,u.default)(s,o);var _=f.length;if(s.urlSafe)return n.test(f);if(_%4!=0||l.test(f))return!1;var c=f.indexOf('=');return-1===c||c===_-1||c===_-2&&'='===f[_-1]};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}var l=/[^A-Z0-9+\/=]/i,n=/^[A-Z0-9_\-]*$/i,o={urlSafe:!1};m.exports=e.default,m.exports.default=e.default},719,[684,685]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsByteLength=e.isByteLength=e.IS_BYTE_LENGTH=void 0;var n=t(r(d[0]));function s(t,s,u){return'string'==typeof t&&n.default(t,{min:s,max:u})}e.IS_BYTE_LENGTH='isByteLength',e.isByteLength=s,e.IsByteLength=function(t,n,u){return r(d[1]).ValidateBy({name:e.IS_BYTE_LENGTH,constraints:[t,n],validator:{validate:function(t,n){return s(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t){return t+"$property's byte length must fall into ($constraint1, $constraint2) range"},u)}},u)}},720,[721,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var f,l;(0,o.default)(t),'object'===n(u)?(f=u.min||0,l=u.max):(f=arguments[1],l=arguments[2]);var y=encodeURI(t).split(/%..|./).length-1;return y>=f&&(void 0===l||y<=l)};var t,o=(t=r(d[0]))&&t.__esModule?t:{default:t};function n(t){"@babel/helpers - typeof";return(n="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)}m.exports=e.default,m.exports.default=e.default},721,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCreditCard=e.isCreditCard=e.IS_CREDIT_CARD=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_CREDIT_CARD='isCreditCard',e.isCreditCard=n,e.IsCreditCard=function(t){return r(d[1]).ValidateBy({name:e.IS_CREDIT_CARD,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a credit card'},t)}},t)}},722,[723,674]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,u.default)(t);var l=t.replace(/[- ]+/g,'');if(!f.test(l))return!1;for(var n,s,o,i=0,_=l.length-1;_>=0;_--)n=l.substring(_,_+1),s=parseInt(n,10),i+=o&&(s*=2)>=10?s%10+1:s,o=!o;return!(i%10!=0||!l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;m.exports=e.default,m.exports.default=e.default},723,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCurrency=e.isCurrency=e.IS_CURRENCY=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_CURRENCY='isCurrency',e.isCurrency=u,e.IsCurrency=function(t,n){return r(d[1]).ValidateBy({name:e.IS_CURRENCY,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a currency'},n)}},n)}},724,[725,674]); +__d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,s){return(0,_.default)(n),o(s=(0,t.default)(s,c)).test(n)};var t=n(r(d[0])),_=n(r(d[1]));function n(t){return t&&t.__esModule?t:{default:t}}function o(t){var _="\\d{".concat(t.digits_after_decimal[0],"}");t.digits_after_decimal.forEach(function(t,n){0!==n&&(_="".concat(_,"|\\d{").concat(t,"}"))});var n="(".concat(t.symbol.replace(/\W/,function(t){return"\\".concat(t)}),")").concat(t.require_symbol?'':'?'),o="[1-9]\\d{0,2}(\\".concat(t.thousands_separator,"\\d{3})*"),c="(".concat(['0','[1-9]\\d*',o].join('|'),")?"),s="(\\".concat(t.decimal_separator,"(").concat(_,"))").concat(t.require_decimal?'':'?'),l=c+(t.allow_decimal||t.require_decimal?s:'');return t.allow_negatives&&!t.parens_for_negatives&&(t.negative_sign_after_digits?l+="-?":t.negative_sign_before_digits&&(l="-?"+l)),t.allow_negative_sign_placeholder?l="( (?!\\-))?".concat(l):t.allow_space_after_symbol?l=" ?".concat(l):t.allow_space_after_digits&&(l+='( (?!$))?'),t.symbol_after_digits?l+=n:l=n+l,t.allow_negatives&&(t.parens_for_negatives?l="(\\(".concat(l,"\\)|").concat(l,")"):t.negative_sign_before_digits||t.negative_sign_after_digits||(l="-?"+l)),new RegExp("^(?!-? )(?=.*\\d)".concat(l,"$"))}var c={symbol:'$',require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:',',decimal_separator:'.',allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};_m.exports=e.default,_m.exports.default=e.default},725,[685,684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsEmail=e.isEmail=e.IS_EMAIL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_EMAIL='isEmail',e.isEmail=s,e.IsEmail=function(t,n){return r(d[1]).ValidateBy({name:e.IS_EMAIL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an email'},n)}},n)}},726,[727,674]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,v){if((0,t.default)(f),(v=(0,l.default)(v,s)).require_display_name||v.allow_display_name){var $=f.match(x);if($){var w=$[1];if(f=f.replace(w,'').replace(/(^<|>$)/g,''),w.endsWith(' ')&&(w=w.substr(0,w.length-1)),!b(w))return!1}else if(v.require_display_name)return!1}if(!v.ignore_max_length&&f.length>h)return!1;var D=f.split('@'),q=D.pop(),y=q.toLowerCase();if(v.host_blacklist.includes(y))return!1;var k=D.join('@');if(v.domain_specific_validation&&('gmail.com'===y||'googlemail.com'===y)){var C=(k=k.toLowerCase()).split('+')[0];if(!(0,i.default)(C.replace(/\./g,''),{min:6,max:30}))return!1;for(var E=C.split('.'),z=0;z]/.test(l)){if(l===t)return!1;if(!(l.split('"').length===l.split('\\"').length))return!1}return!0}m.exports=e.default,m.exports.default=e.default},727,[684,685,721,728,729]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,f){(0,t.default)(l),(f=(0,u.default)(f,n)).allow_trailing_dot&&'.'===l[l.length-1]&&(l=l.substring(0,l.length-1));!0===f.allow_wildcard&&0===l.indexOf('*.')&&(l=l.substring(2));var s=l.split('.'),_=s[s.length-1];if(f.require_tld){if(s.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(_))return!1;if(/\s/.test(_))return!1}if(!f.allow_numeric_tld&&/^\d+$/.test(_))return!1;return s.every(function(t){return!(t.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(t)&&(!/[\uff01-\uff5e]/.test(t)&&(!/^-|-$/.test(t)&&!(!f.allow_underscores&&/_/.test(t)))))})};var t=l(r(d[0])),u=l(r(d[1]));function l(t){return t&&t.__esModule?t:{default:t}}var n={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};m.exports=e.default,m.exports.default=e.default},728,[684,685]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function c(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';(0,t.default)(n);a=String(a);if(!a)return c(n,4)||c(n,6);if('4'===a){if(!o.test(n))return!1;var u=n.split('.').sort(function(c,t){return c-t});return u[3]<=255}if('6'===a)return!!f.test(n);return!1};var c,t=(c=r(d[0]))&&c.__esModule?c:{default:c};var n='(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])',a="(".concat(n,"[.]){3}").concat(n),o=new RegExp("^".concat(a,"$")),u='(?:[0-9a-fA-F]{1,4})',f=new RegExp('^('+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+')(%[0-9a-zA-Z-.:]{1,})?$');m.exports=e.default,m.exports.default=e.default},729,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsFQDN=e.isFQDN=e.IS_FQDN=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_FQDN='isFqdn',e.isFQDN=s,e.IsFQDN=function(t,n){return r(d[1]).ValidateBy({name:e.IS_FQDN,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid domain name'},n)}},n)}},730,[728,674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsFullWidth=e.isFullWidth=e.IS_FULL_WIDTH=void 0;var u=t(r(d[0]));function l(t){return'string'==typeof t&&u.default(t)}e.IS_FULL_WIDTH='isFullWidth',e.isFullWidth=l,e.IsFullWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_FULL_WIDTH,validator:{validate:function(t,u){return l(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a full-width characters'},t)}},t)}},731,[732,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),F.test(u)},e.fullWidth=void 0;var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var F=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.fullWidth=F},732,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHalfWidth=e.isHalfWidth=e.IS_HALF_WIDTH=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_HALF_WIDTH='isHalfWidth',e.isHalfWidth=u,e.IsHalfWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_HALF_WIDTH,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a half-width characters'},t)}},t)}},733,[734,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),F.test(u)},e.halfWidth=void 0;var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var F=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;e.halfWidth=F},734,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsVariableWidth=e.isVariableWidth=e.IS_VARIABLE_WIDTH=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_VARIABLE_WIDTH='isVariableWidth',e.isVariableWidth=u,e.IsVariableWidth=function(t){return r(d[1]).ValidateBy({name:e.IS_VARIABLE_WIDTH,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain a full-width and half-width characters'},t)}},t)}},735,[736,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),r(d[1]).fullWidth.test(t)&&r(d[2]).halfWidth.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},736,[684,732,734]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHexColor=e.isHexColor=e.IS_HEX_COLOR=void 0;var o=t(r(d[0]));function u(t){return'string'==typeof t&&o.default(t)}e.IS_HEX_COLOR='isHexColor',e.isHexColor=u,e.IsHexColor=function(t){return r(d[1]).ValidateBy({name:e.IS_HEX_COLOR,validator:{validate:function(t,o){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a hexadecimal color'},t)}},t)}},737,[738,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;m.exports=e.default,m.exports.default=e.default},738,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsHexadecimal=e.isHexadecimal=e.IS_HEXADECIMAL=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_HEXADECIMAL='isHexadecimal',e.isHexadecimal=n,e.IsHexadecimal=function(t){return r(d[1]).ValidateBy({name:e.IS_HEXADECIMAL,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a hexadecimal number'},t)}},t)}},739,[740,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(0x|0h)?[0-9A-F]+$/i;m.exports=e.default,m.exports.default=e.default},740,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var s=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMACAddress=e.isMACAddress=e.IS_MAC_ADDRESS=void 0;var t=s(r(d[0]));function n(s,n){return'string'==typeof s&&t.default(s,n)}e.IS_MAC_ADDRESS='isMacAddress',e.isMACAddress=n,e.IsMACAddress=function(s,t){var u=r(d[1]).isValidationOptions(s)?void 0:s,o=r(d[1]).isValidationOptions(s)?s:t;return r(d[2]).ValidateBy({name:e.IS_MAC_ADDRESS,constraints:[u],validator:{validate:function(s,t){return n(s,u)},defaultMessage:r(d[2]).buildMessage(function(s){return s+'$property must be a MAC Address'},o)}},o)}},741,[742,743,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l){if((0,f.default)(t),l&&(l.no_colons||l.no_separators))return s.test(t);return u.test(t)||o.test(t)};var t,f=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;m.exports=e.default,m.exports.default=e.default},742,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidationOptions=void 0,e.isValidationOptions=function(n){return!!n&&('each'in n||'message'in n||'groups'in n||'always'in n||'context'in n)}},743,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsIP=e.isIP=e.IS_IP=void 0;var n=t(r(d[0]));function s(t,s){var u=s?""+s:void 0;return'string'==typeof t&&n.default(t,u)}e.IS_IP='isIp',e.isIP=s,e.IsIP=function(t,n){return r(d[1]).ValidateBy({name:e.IS_IP,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ip address'},n)}},n)}},744,[729,674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPort=e.isPort=e.IS_PORT=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_PORT='isPort',e.isPort=n,e.IsPort=function(t){return r(d[1]).ValidateBy({name:e.IS_PORT,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a port'},t)}},t)}},745,[746,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t,{min:0,max:65535})};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},746,[747]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,s){(0,l.default)(t);var u=(s=s||{}).hasOwnProperty('allow_leading_zeroes')&&!s.allow_leading_zeroes?o:n,_=!s.hasOwnProperty('min')||t>=s.min,f=!s.hasOwnProperty('max')||t<=s.max,p=!s.hasOwnProperty('lt')||ts.gt;return u.test(t)&&_&&f&&p&&w};var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,n=/^[-+]?[0-9]+$/;m.exports=e.default,m.exports.default=e.default},747,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISBN=e.isISBN=e.IS_ISBN=void 0;var n=t(r(d[0]));function s(t,s){var u=s?""+s:void 0;return'string'==typeof t&&n.default(t,u)}e.IS_ISBN='isIsbn',e.isISBN=s,e.IsISBN=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ISBN,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISBN'},n)}},n)}},748,[749,674]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';(0,f.default)(l);c=String(c);if(!c)return t(l,10)||t(l,13);var o=l.replace(/[\s-]+/g,'');var s=0;var v;if('10'===c){if(!u.test(o))return!1;for(v=0;v<9;v++)s+=(v+1)*o.charAt(v);if('X'===o.charAt(9)?s+=100:s+=10*o.charAt(9),s%11==0)return!!o}else if('13'===c){if(!i.test(o))return!1;for(v=0;v<12;v++)s+=n[v%2]*o.charAt(v);if(o.charAt(12)-(10-s%10)%10==0)return!!o}return!1};var t,f=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,n=[1,3];m.exports=e.default,m.exports.default=e.default},749,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISIN=e.isISIN=e.IS_ISIN=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_ISIN='isIsin',e.isISIN=u,e.IsISIN=function(t){return r(d[1]).ValidateBy({name:e.IS_ISIN,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISIN (stock/security identifier)'},t)}},t)}},750,[751,674]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),!f.test(t))return!1;for(var l=!0,n=0,o=t.length-2;o>=0;o--)if(t[o]>='A'&&t[o]<='Z')for(var c=t[o].charCodeAt(0)-55,h=c%10,s=Math.trunc(c/10),v=0,i=[h,s];v=5?1+2*(A-5):2*A:A,l=!l}else{var _=t[o].charCodeAt(0)-'0'.charCodeAt(0);n+=l?_>=5?1+2*(_-5):2*_:_,l=!l}var M=10*Math.trunc((n+9)/10)-n;return+t[t.length-1]===M};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;m.exports=e.default,m.exports.default=e.default},751,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO8601=e.isISO8601=e.IS_ISO8601=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_ISO8601='isIso8601',e.isISO8601=s,e.IsISO8601=function(t,n){return r(d[1]).ValidateBy({name:e.IS_ISO8601,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO 8601 date string'},n)}},n)}},752,[753,674]); +__d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(d){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,t.default)(d);var l=o.strictSeparator?u.test(d):c.test(d);return l&&o.strict?n(d):l};var d,t=(d=r(_d[0]))&&d.__esModule?d:{default:d};var c=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,u=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,n=function(d){var t=d.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var c=Number(t[1]),u=Number(t[2]);return c%4==0&&c%100!=0||c%400==0?u<=366:u<=365}var n=d.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=n[1],l=n[2],s=n[3],f=l?"0".concat(l).slice(-2):l,v=s?"0".concat(s).slice(-2):s,b=new Date("".concat(o,"-").concat(f||'01',"-").concat(v||'01'));return!l||!s||b.getUTCFullYear()===o&&b.getUTCMonth()+1===l&&b.getUTCDate()===s};m.exports=e.default,m.exports.default=e.default},753,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsJSON=e.isJSON=e.IS_JSON=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_JSON='isJson',e.isJSON=u,e.IsJSON=function(t){return r(d[1]).ValidateBy({name:e.IS_JSON,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a json string'},t)}},t)}},754,[755,674]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(o,n){(0,t.default)(o);try{n=(0,e.default)(n,l);var f=[];n.allow_primitives&&(f=[null,!1,!0]);var c=JSON.parse(o);return f.includes(c)||!!c&&'object'===u(c)}catch(t){}return!1};var t=o(r(d[0])),e=o(r(d[1]));function o(t){return t&&t.__esModule?t:{default:t}}function u(t){"@babel/helpers - typeof";return(u="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)}var l={allow_primitives:!1};m.exports=_e.default,m.exports.default=_e.default},755,[684,685]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsJWT=e.isJWT=e.IS_JWT=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_JWT='isJwt',e.isJWT=u,e.IsJWT=function(t){return r(d[1]).ValidateBy({name:e.IS_JWT,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a jwt string'},t)}},t)}},756,[757,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f){(0,t.default)(f);var n=f.split('.'),l=n.length;if(l>3||l<2)return!1;return n.reduce(function(t,f){return t&&(0,u.default)(f,{urlSafe:!0})},!0)};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},757,[684,719]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLowercase=e.isLowercase=e.IS_LOWERCASE=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_LOWERCASE='isLowercase',e.isLowercase=n,e.IsLowercase=function(t){return r(d[1]).ValidateBy({name:e.IS_LOWERCASE,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a lowercase string'},t)}},t)}},758,[759,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),t===t.toLowerCase()};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},759,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMobilePhone=e.isMobilePhone=e.IS_MOBILE_PHONE=void 0;var n=t(r(d[0]));function o(t,o,s){return'string'==typeof t&&n.default(t,o,s)}e.IS_MOBILE_PHONE='isMobilePhone',e.isMobilePhone=o,e.IsMobilePhone=function(t,n,s){return r(d[1]).ValidateBy({name:e.IS_MOBILE_PHONE,constraints:[t,n],validator:{validate:function(t,n){return o(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a phone number'},s)}},s)}},760,[761,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t,f){if((0,s.default)($),f&&f.strictMode&&!$.startsWith('+'))return!1;if(Array.isArray(t))return t.some(function(s){if(n.hasOwnProperty(s)){var t=n[s];if(t.test($))return!0}return!1});if(t in n)return n[t].test($);if(!t||'any'===t){for(var l in n)if(n.hasOwnProperty(l)){var o=n[l];if(o.test($))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var $,s=($=r(d[0]))&&$.__esModule?$:{default:$};var n={'am-AM':/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,'ar-AE':/^((\+?971)|0)?5[024568]\d{7}$/,'ar-BH':/^(\+?973)?(3|6)\d{7}$/,'ar-DZ':/^(\+?213|0)(5|6|7)\d{8}$/,'ar-LB':/^(\+?961)?((3|81)\d{6}|7\d{7})$/,'ar-EG':/^((\+?20)|0)?1[0125]\d{8}$/,'ar-IQ':/^(\+?964|0)?7[0-9]\d{8}$/,'ar-JO':/^(\+?962|0)?7[789]\d{7}$/,'ar-KW':/^(\+?965)[569]\d{7}$/,'ar-LY':/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,'ar-MA':/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,'ar-OM':/^((\+|00)968)?(9[1-9])\d{6}$/,'ar-PS':/^(\+?970|0)5[6|9](\d{7})$/,'ar-SA':/^(!?(\+?966)|0)?5\d{8}$/,'ar-SY':/^(!?(\+?963)|0)?9\d{8}$/,'ar-TN':/^(\+?216)?[2459]\d{7}$/,'az-AZ':/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,'bs-BA':/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,'be-BY':/^(\+?375)?(24|25|29|33|44)\d{7}$/,'bg-BG':/^(\+?359|0)?8[789]\d{7}$/,'bn-BD':/^(\+?880|0)1[13456789][0-9]{8}$/,'ca-AD':/^(\+376)?[346]\d{5}$/,'cs-CZ':/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,'da-DK':/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,'de-DE':/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,'de-AT':/^(\+43|0)\d{1,4}\d{3,12}$/,'de-CH':/^(\+41|0)([1-9])\d{1,9}$/,'de-LU':/^(\+352)?((6\d1)\d{6})$/,'dv-MV':/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,'el-GR':/^(\+?30|0)?(69\d{8})$/,'en-AU':/^(\+?61|0)4\d{8}$/,'en-BM':/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,'en-GB':/^(\+?44|0)7\d{9}$/,'en-GG':/^(\+?44|0)1481\d{6}$/,'en-GH':/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,'en-GY':/^(\+592|0)6\d{6}$/,'en-HK':/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,'en-MO':/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,'en-IE':/^(\+?353|0)8[356789]\d{7}$/,'en-IN':/^(\+?91|0)?[6789]\d{9}$/,'en-KE':/^(\+?254|0)(7|1)\d{8}$/,'en-KI':/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,'en-MT':/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,'en-MU':/^(\+?230|0)?\d{8}$/,'en-NA':/^(\+?264|0)(6|8)\d{7}$/,'en-NG':/^(\+?234|0)?[789]\d{9}$/,'en-NZ':/^(\+?64|0)[28]\d{7,9}$/,'en-PK':/^((00|\+)?92|0)3[0-6]\d{8}$/,'en-PH':/^(09|\+639)\d{9}$/,'en-RW':/^(\+?250|0)?[7]\d{8}$/,'en-SG':/^(\+65)?[3689]\d{7}$/,'en-SL':/^(\+?232|0)\d{8}$/,'en-TZ':/^(\+?255|0)?[67]\d{8}$/,'en-UG':/^(\+?256|0)?[7]\d{8}$/,'en-US':/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,'en-ZA':/^(\+?27|0)\d{9}$/,'en-ZM':/^(\+?26)?09[567]\d{7}$/,'en-ZW':/^(\+263)[0-9]{9}$/,'en-BW':/^(\+?267)?(7[1-8]{1})\d{6}$/,'es-AR':/^\+?549(11|[2368]\d)\d{8}$/,'es-BO':/^(\+?591)?(6|7)\d{7}$/,'es-CO':/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,'es-CL':/^(\+?56|0)[2-9]\d{1}\d{7}$/,'es-CR':/^(\+506)?[2-8]\d{7}$/,'es-CU':/^(\+53|0053)?5\d{7}/,'es-DO':/^(\+?1)?8[024]9\d{7}$/,'es-HN':/^(\+?504)?[9|8]\d{7}$/,'es-EC':/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,'es-ES':/^(\+?34)?[6|7]\d{8}$/,'es-PE':/^(\+?51)?9\d{8}$/,'es-MX':/^(\+?52)?(1|01)?\d{10,11}$/,'es-PA':/^(\+?507)\d{7,8}$/,'es-PY':/^(\+?595|0)9[9876]\d{7}$/,'es-SV':/^(\+?503)?[67]\d{7}$/,'es-UY':/^(\+598|0)9[1-9][\d]{6}$/,'es-VE':/^(\+?58)?(2|4)\d{9}$/,'et-EE':/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,'fa-IR':/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,'fi-FI':/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,'fj-FJ':/^(\+?679)?\s?\d{3}\s?\d{4}$/,'fo-FO':/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,'fr-BF':/^(\+226|0)[67]\d{7}$/,'fr-CM':/^(\+?237)6[0-9]{8}$/,'fr-FR':/^(\+?33|0)[67]\d{8}$/,'fr-GF':/^(\+?594|0|00594)[67]\d{8}$/,'fr-GP':/^(\+?590|0|00590)[67]\d{8}$/,'fr-MQ':/^(\+?596|0|00596)[67]\d{8}$/,'fr-PF':/^(\+?689)?8[789]\d{6}$/,'fr-RE':/^(\+?262|0|00262)[67]\d{8}$/,'he-IL':/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,'hu-HU':/^(\+?36|06)(20|30|31|50|70)\d{7}$/,'id-ID':/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,'it-IT':/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,'it-SM':/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,'ja-JP':/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,'ka-GE':/^(\+?995)?(5|79)\d{7}$/,'kk-KZ':/^(\+?7|8)?7\d{9}$/,'kl-GL':/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,'ko-KR':/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,'lt-LT':/^(\+370|8)\d{8}$/,'lv-LV':/^(\+?371)2\d{7}$/,'ms-MY':/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,'mz-MZ':/^(\+?258)?8[234567]\d{7}$/,'nb-NO':/^(\+?47)?[49]\d{7}$/,'ne-NP':/^(\+?977)?9[78]\d{8}$/,'nl-BE':/^(\+?32|0)4\d{8}$/,'nl-NL':/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,'nn-NO':/^(\+?47)?[49]\d{7}$/,'pl-PL':/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,'pt-BR':/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,'pt-PT':/^(\+?351)?9[1236]\d{7}$/,'pt-AO':/^(\+244)\d{9}$/,'ro-RO':/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,'ru-RU':/^(\+?7|8)?9\d{9}$/,'si-LK':/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,'sl-SI':/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,'sk-SK':/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,'sq-AL':/^(\+355|0)6[789]\d{6}$/,'sr-RS':/^(\+3816|06)[- \d]{5,9}$/,'sv-SE':/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,'tg-TJ':/^(\+?992)?[5][5]\d{7}$/,'th-TH':/^(\+66|66|0)\d{9}$/,'tr-TR':/^(\+?90|0)?5\d{9}$/,'tk-TM':/^(\+993|993|8)\d{8}$/,'uk-UA':/^(\+?38|8)?0\d{9}$/,'uz-UZ':/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,'vi-VN':/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,'zh-CN':/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,'zh-TW':/^(\+?886\-?|0)?9\d{8}$/,'dz-BT':/^(\+?975|0)?(17|16|77|02)\d{6}$/};n['en-CA']=n['en-US'],n['fr-CA']=n['en-CA'],n['fr-BE']=n['nl-BE'],n['zh-HK']=n['en-HK'],n['zh-MO']=n['en-MO'],n['ga-IE']=n['en-IE'],n['fr-CH']=n['de-CH'],n['it-CH']=n['fr-CH'];var t=Object.keys(n);e.locales=t},761,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO31661Alpha2=e.isISO31661Alpha2=e.IS_ISO31661_ALPHA_2=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_ISO31661_ALPHA_2='isISO31661Alpha2',e.isISO31661Alpha2=n,e.IsISO31661Alpha2=function(t){return r(d[1]).ValidateBy({name:e.IS_ISO31661_ALPHA_2,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO31661 Alpha2 code'},t)}},t)}},762,[763,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(M){return(0,S.default)(M),C.has(M.toUpperCase())},e.CountryCodes=void 0;var M,S=(M=r(d[0]))&&M.__esModule?M:{default:M};var C=new Set(['AD','AE','AF','AG','AI','AL','AM','AO','AQ','AR','AS','AT','AU','AW','AX','AZ','BA','BB','BD','BE','BF','BG','BH','BI','BJ','BL','BM','BN','BO','BQ','BR','BS','BT','BV','BW','BY','BZ','CA','CC','CD','CF','CG','CH','CI','CK','CL','CM','CN','CO','CR','CU','CV','CW','CX','CY','CZ','DE','DJ','DK','DM','DO','DZ','EC','EE','EG','EH','ER','ES','ET','FI','FJ','FK','FM','FO','FR','GA','GB','GD','GE','GF','GG','GH','GI','GL','GM','GN','GP','GQ','GR','GS','GT','GU','GW','GY','HK','HM','HN','HR','HT','HU','ID','IE','IL','IM','IN','IO','IQ','IR','IS','IT','JE','JM','JO','JP','KE','KG','KH','KI','KM','KN','KP','KR','KW','KY','KZ','LA','LB','LC','LI','LK','LR','LS','LT','LU','LV','LY','MA','MC','MD','ME','MF','MG','MH','MK','ML','MM','MN','MO','MP','MQ','MR','MS','MT','MU','MV','MW','MX','MY','MZ','NA','NC','NE','NF','NG','NI','NL','NO','NP','NR','NU','NZ','OM','PA','PE','PF','PG','PH','PK','PL','PM','PN','PR','PS','PT','PW','PY','QA','RE','RO','RS','RU','RW','SA','SB','SC','SD','SE','SG','SH','SI','SJ','SK','SL','SM','SN','SO','SR','SS','ST','SV','SX','SY','SZ','TC','TD','TF','TG','TH','TJ','TK','TL','TM','TN','TO','TR','TT','TV','TW','TZ','UA','UG','UM','US','UY','UZ','VA','VC','VE','VG','VI','VN','VU','WF','WS','YE','YT','ZA','ZM','ZW']);var G=C;e.CountryCodes=G},763,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISO31661Alpha3=e.isISO31661Alpha3=e.IS_ISO31661_ALPHA_3=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_ISO31661_ALPHA_3='isISO31661Alpha3',e.isISO31661Alpha3=n,e.IsISO31661Alpha3=function(t){return r(d[1]).ValidateBy({name:e.IS_ISO31661_ALPHA_3,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a valid ISO31661 Alpha3 code'},t)}},t)}},764,[765,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(M){return(0,A.default)(M),R.has(M.toUpperCase())};var M,A=(M=r(d[0]))&&M.__esModule?M:{default:M};var R=new Set(['AFG','ALA','ALB','DZA','ASM','AND','AGO','AIA','ATA','ATG','ARG','ARM','ABW','AUS','AUT','AZE','BHS','BHR','BGD','BRB','BLR','BEL','BLZ','BEN','BMU','BTN','BOL','BES','BIH','BWA','BVT','BRA','IOT','BRN','BGR','BFA','BDI','KHM','CMR','CAN','CPV','CYM','CAF','TCD','CHL','CHN','CXR','CCK','COL','COM','COG','COD','COK','CRI','CIV','HRV','CUB','CUW','CYP','CZE','DNK','DJI','DMA','DOM','ECU','EGY','SLV','GNQ','ERI','EST','ETH','FLK','FRO','FJI','FIN','FRA','GUF','PYF','ATF','GAB','GMB','GEO','DEU','GHA','GIB','GRC','GRL','GRD','GLP','GUM','GTM','GGY','GIN','GNB','GUY','HTI','HMD','VAT','HND','HKG','HUN','ISL','IND','IDN','IRN','IRQ','IRL','IMN','ISR','ITA','JAM','JPN','JEY','JOR','KAZ','KEN','KIR','PRK','KOR','KWT','KGZ','LAO','LVA','LBN','LSO','LBR','LBY','LIE','LTU','LUX','MAC','MKD','MDG','MWI','MYS','MDV','MLI','MLT','MHL','MTQ','MRT','MUS','MYT','MEX','FSM','MDA','MCO','MNG','MNE','MSR','MAR','MOZ','MMR','NAM','NRU','NPL','NLD','NCL','NZL','NIC','NER','NGA','NIU','NFK','MNP','NOR','OMN','PAK','PLW','PSE','PAN','PNG','PRY','PER','PHL','PCN','POL','PRT','PRI','QAT','REU','ROU','RUS','RWA','BLM','SHN','KNA','LCA','MAF','SPM','VCT','WSM','SMR','STP','SAU','SEN','SRB','SYC','SLE','SGP','SXM','SVK','SVN','SLB','SOM','ZAF','SGS','SSD','ESP','LKA','SDN','SUR','SJM','SWZ','SWE','CHE','SYR','TWN','TJK','TZA','THA','TLS','TGO','TKL','TON','TTO','TUN','TUR','TKM','TCA','TUV','UGA','UKR','ARE','GBR','USA','UMI','URY','UZB','VUT','VEN','VNM','VGB','VIR','WLF','ESH','YEM','ZMB','ZWE']);m.exports=e.default,m.exports.default=e.default},765,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMongoId=e.isMongoId=e.IS_MONGO_ID=void 0;var n=t(r(d[0]));function o(t){return'string'==typeof t&&n.default(t)}e.IS_MONGO_ID='isMongoId',e.isMongoId=o,e.IsMongoId=function(t){return r(d[1]).ValidateBy({name:e.IS_MONGO_ID,validator:{validate:function(t,n){return o(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a mongodb id'},t)}},t)}},766,[767,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f){return(0,t.default)(f),(0,u.default)(f)&&24===f.length};var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}m.exports=e.default,m.exports.default=e.default},767,[684,740]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMultibyte=e.isMultibyte=e.IS_MULTIBYTE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_MULTIBYTE='isMultibyte',e.isMultibyte=n,e.IsMultibyte=function(t){return r(d[1]).ValidateBy({name:e.IS_MULTIBYTE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain one or more multibyte chars'},t)}},t)}},768,[769,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/[^\x00-\x7F]/;m.exports=e.default,m.exports.default=e.default},769,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsSurrogatePair=e.isSurrogatePair=e.IS_SURROGATE_PAIR=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_SURROGATE_PAIR='isSurrogatePair',e.isSurrogatePair=n,e.IsSurrogatePair=function(t){return r(d[1]).ValidateBy({name:e.IS_SURROGATE_PAIR,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must contain any surrogate pairs chars'},t)}},t)}},770,[771,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;m.exports=e.default,m.exports.default=e.default},771,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsUrl=e.isURL=e.IS_URL=void 0;var n=t(r(d[0]));function s(t,s){return'string'==typeof t&&n.default(t,s)}e.IS_URL='isUrl',e.isURL=s,e.IsUrl=function(t,n){return r(d[1]).ValidateBy({name:e.IS_URL,constraints:[t],validator:{validate:function(t,n){return s(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an URL address'},n)}},n)}},772,[773,674]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,s){if((0,t.default)(o),!o||/[\s<>]/.test(o))return!1;if(0===o.indexOf('mailto:'))return!1;if((s=(0,i.default)(s,_)).validate_length&&o.length>=2083)return!1;if(!s.allow_fragments&&o.includes('#'))return!1;if(!s.allow_query_components&&(o.includes('?')||o.includes('&')))return!1;var y,b,w,q,j,O,x,S;if(x=o.split('#'),o=x.shift(),x=o.split('?'),o=x.shift(),(x=o.split('://')).length>1){if(y=x.shift().toLowerCase(),s.require_valid_protocol&&-1===s.protocols.indexOf(y))return!1}else{if(s.require_protocol)return!1;if('//'===o.substr(0,2)){if(!s.allow_protocol_relative_urls)return!1;x[0]=o.substr(2)}}if(''===(o=x.join('://')))return!1;if(x=o.split('/'),''===(o=x.shift())&&!s.require_host)return!0;if((x=o.split('@')).length>1){if(s.disallow_auth)return!1;if(''===x[0])return!1;if((b=x.shift()).indexOf(':')>=0&&b.split(':').length>2)return!1;var A=b.split(':'),I=(C=2,p(k=A)||c(k,C)||f(k,C)||u()),M=I[0],$=I[1];if(''===M&&''===$)return!1}var k,C;q=x.join('@'),O=null,S=null;var E=q.match(h);E?(w='',S=E[1],O=E[2]||null):(x=q.split(':'),w=x.shift(),x.length&&(O=x.join(':')));if(null!==O&&O.length>0){if(j=parseInt(O,10),!/^[0-9]+$/.test(O)||j<=0||j>65535)return!1}else if(s.require_port)return!1;if(s.host_whitelist)return v(w,s.host_whitelist);if(!((0,n.default)(w)||(0,l.default)(w,s)||S&&(0,n.default)(S,6)))return!1;if(w=w||S,s.host_blacklist&&v(w,s.host_blacklist))return!1;return!0};var t=o(r(d[0])),l=o(r(d[1])),n=o(r(d[2])),i=o(r(d[3]));function o(t){return t&&t.__esModule?t:{default:t}}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,l){if(t){if("string"==typeof t)return s(t,l);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)?s(t,l):void 0}}function s(t,l){(null==l||l>t.length)&&(l=t.length);for(var n=0,i=new Array(l);nn.constraints[1]?t+'$property must be shorter than or equal to $constraint2 characters':t+'$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters'},s)}},s)}},779,[780,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){var f,l;(0,o.default)(t),'object'===u(n)?(f=n.min||0,l=n.max):(f=arguments[1]||0,l=arguments[2]);var y=t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=t.length-y.length;return c>=f&&(void 0===l||c<=l)};var t,o=(t=r(d[0]))&&t.__esModule?t:{default:t};function u(t){"@babel/helpers - typeof";return(u="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)}m.exports=e.default,m.exports.default=e.default},780,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MaxLength=e.maxLength=e.MAX_LENGTH=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,{min:0,max:u})}e.MAX_LENGTH='maxLength',e.maxLength=u,e.MaxLength=function(t,n){return r(d[1]).ValidateBy({name:e.MAX_LENGTH,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be shorter than or equal to $constraint1 characters'},n)}},n)}},781,[780,674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MinLength=e.minLength=e.MIN_LENGTH=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,{min:u})}e.MIN_LENGTH='minLength',e.minLength=u,e.MinLength=function(t,n){return r(d[1]).ValidateBy({name:e.MIN_LENGTH,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be longer than or equal to $constraint1 characters'},n)}},n)}},782,[780,674]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Matches=e.matches=e.MATCHES=void 0;var n=t(r(d[0]));function s(t,s,u){return'string'==typeof t&&n.default(t,s,u)}e.MATCHES='matches',e.matches=s,e.Matches=function(t,n,u){var c;return n&&n instanceof Object&&!u?u=n:c=n,r(d[1]).ValidateBy({name:e.MATCHES,constraints:[t,c],validator:{validate:function(t,n){return s(t,n.constraints[0],n.constraints[1])},defaultMessage:r(d[1]).buildMessage(function(t,n){return t+'$property must match $constraint1 regular expression'},u)}},u)}},783,[784,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,o){(0,u.default)(t),'[object RegExp]'!==Object.prototype.toString.call(l)&&(l=new RegExp(l,o));return l.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};m.exports=e.default,m.exports.default=e.default},784,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){try{var u=r(d[0]).parsePhoneNumberFromString(n,t);return!!(null===u||void 0===u?void 0:u.isValid())}catch(n){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.IsPhoneNumber=e.isPhoneNumber=e.IS_PHONE_NUMBER=void 0,e.IS_PHONE_NUMBER='isPhoneNumber',e.isPhoneNumber=n,e.IsPhoneNumber=function(t,u){return r(d[1]).ValidateBy({name:e.IS_PHONE_NUMBER,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(n){return n+'$property must be a valid phone number'},u)}},u)}},785,[786,674]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){var o=Array.prototype.slice.call(n);return o.push(r(d[0])),t.apply(this,o)}(e=m.exports=r(d[1]).parsePhoneNumberFromString).default=r(d[1]).parsePhoneNumberFromString,e.parsePhoneNumberFromString=r(d[1]).parsePhoneNumberFromString,e.ParseError=r(d[1]).ParseError,e.parsePhoneNumber=r(d[1]).parsePhoneNumberWithError,e.parsePhoneNumberWithError=r(d[1]).parsePhoneNumberWithError,e.isValidPhoneNumber=r(d[1]).isValidPhoneNumber,e.isPossiblePhoneNumber=r(d[1]).isPossiblePhoneNumber,e.validatePhoneNumberLength=r(d[1]).validatePhoneNumberLength,e.parse=function(){return t(r(d[2]).default,arguments)},e.parseNumber=e.parse,e.format=function(){return t(r(d[3]).default,arguments)},e.formatNumber=e.format,e.getNumberType=function(){return t(r(d[4]).default,arguments)},e.isPossibleNumber=function(){return t(r(d[5]).default,arguments)},e.isValidNumber=function(){return t(r(d[6]).default,arguments)},e.isValidNumberForRegion=function(){return t(r(d[7]).default,arguments)},e.getExampleNumber=r(d[1]).getExampleNumber,e.Metadata=r(d[1]).Metadata,e.findPhoneNumbers=function(){return t(r(d[8]).default,arguments)},e.searchPhoneNumbers=function(){return t(r(d[8]).searchPhoneNumbers,arguments)},e.PhoneNumberSearch=function(t,n){return r(d[9]).PhoneNumberSearch.call(this,t,n,r(d[0]))},e.PhoneNumberSearch.prototype=Object.create(r(d[9]).PhoneNumberSearch.prototype,{}),e.PhoneNumberSearch.prototype.constructor=e.PhoneNumberSearch,e.findNumbers=r(d[1]).findNumbers,e.searchNumbers=r(d[1]).searchNumbers,e.findPhoneNumbersInText=r(d[1]).findPhoneNumbersInText,e.searchPhoneNumbersInText=r(d[1]).searchPhoneNumbersInText,e.PhoneNumberMatcher=r(d[1]).PhoneNumberMatcher,e.AsYouType=r(d[1]).AsYouType,e.getCountries=r(d[1]).getCountries,e.getCountryCallingCode=r(d[1]).getCountryCallingCode,e.isSupportedCountry=r(d[1]).isSupportedCountry,e.getExtPrefix=r(d[1]).getExtPrefix,e.parseRFC3966=r(d[1]).parseRFC3966,e.formatRFC3966=r(d[1]).formatRFC3966,e.DIGITS=r(d[10]).DIGITS,e.DIGIT_PLACEHOLDER=r(d[1]).DIGIT_PLACEHOLDER,e.getPhoneCode=r(d[1]).getCountryCallingCode,e.formatIncompletePhoneNumber=r(d[1]).formatIncompletePhoneNumber,e.parseIncompletePhoneNumber=r(d[1]).parseIncompletePhoneNumber,e.parsePhoneNumberCharacter=r(d[1]).parsePhoneNumberCharacter,e.parseDigits=r(d[1]).parseDigits},786,[787,788,851,852,853,854,855,856,857,858,802]); +__d(function(d,$,M,S,G,A,C){G.exports={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([457]\\d{6})$","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2457]\\d{6})$","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"1|([267]\\d{6})$","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"0|(183[12])",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:[25689]\\d|40)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([3-8]\\d{6})$","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}",[10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[1256]|33|44|66|77|88)|622)[2-9]\\d{6}"],0,0,0,["600[2-9]\\d{6}"]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"0|(1(?:[12]\\d|79)\\d\\d)",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["[39]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["5"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"0|([59]\\d{7})$","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-59]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94|80\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"0|([25-9]\\d{5})$","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d\\d|606)\\d{5}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|1[0-24-7]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"1|([3-9]\\d{6})$","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-489]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([25-8]\\d{5})$","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[38]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"0|([0-24-8]\\d{5})$","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|(?:[235-8]\\d|99)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"1|([2-8]\\d{6})$","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"0|(1001)"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:29(?:[189][05]|2[29]|3[01])|38(?:8[057]|9[05]))\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|6[0-367]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590|(?:69|80)\\d|976)\\d{6}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["976[01]\\d{5}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"0|([24-9]\\d{6})$","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[57-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[57-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","670$1",0,"670"],MQ:["596","00","(?:69|80)\\d{7}|(?:59|97)6\\d{6}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"1|([34]\\d{6})$","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["5"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9])|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","[2-57-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[04]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",[5,6,7,8,9,10],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,0," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","(?:[45]|80\\d\\d)\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",[7,8,9],[["(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]]],RE:["262","00","9769\\d{5}|(?:26|[68]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,"26[23]|69|[89]"],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-5]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["24|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|(5\\d{6})$","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"1|([2-479]\\d{6})$","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:00|[1-57-9]\\d)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-46-8]\\d{6})$","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[26-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}",[10],[["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:355[0-46-9]|4(?:5(?:2[024-9]|5[0-46-9])|60[1-9]|9(?:2[0-5]|49)))\\d{4}|52(?:3(?:[2-46-9][02-9]|5[02-46-9])|4(?:[2-478][02-9]|5[034]|6[2-9]|9[05-9])|7[2-4]\\d)\\d{5}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[1256]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:33|55|[679]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"1|([2-7]\\d{6})$","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"1|([2-578]\\d{6})$","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"1|([2-9]\\d{6})$","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","80\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,"269|63"],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:005|[1-9]\\d\\d)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:005|[1-9]\\d\\d)\\d{5}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"[0-36-9]\\d{8}",[9],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],0,0,0,0,0,0,[0,["[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["4"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]],883:["883",0,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",[9,10,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}}},787,[]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){var o=Array.prototype.slice.call(n);return o.push(r(d[0])),t.apply(this,o)}function n(){return t(r(d[1]).parsePhoneNumberFromString,arguments)}function o(){return t(r(d[1]).parsePhoneNumberWithError,arguments)}(e=m.exports=n).default=n,e.ParseError=r(d[1]).ParseError,e.parsePhoneNumber=o,e.parsePhoneNumberWithError=o,e.parsePhoneNumberFromString=n,e.isValidPhoneNumber=function(){return t(r(d[1]).isValidPhoneNumber,arguments)},e.isPossiblePhoneNumber=function(){return t(r(d[1]).isPossiblePhoneNumber,arguments)},e.validatePhoneNumberLength=function(){return t(r(d[1]).validatePhoneNumberLength,arguments)},e.findNumbers=function(){return t(r(d[1]).findNumbers,arguments)},e.searchNumbers=function(){return t(r(d[1]).searchNumbers,arguments)},e.findPhoneNumbersInText=function(){return t(r(d[1]).findPhoneNumbersInText,arguments)},e.searchPhoneNumbersInText=function(){return t(r(d[1]).searchPhoneNumbersInText,arguments)},e.PhoneNumberMatcher=function(t,n){return r(d[1]).PhoneNumberMatcher.call(this,t,n,r(d[0]))},e.PhoneNumberMatcher.prototype=Object.create(r(d[1]).PhoneNumberMatcher.prototype,{}),e.PhoneNumberMatcher.prototype.constructor=e.PhoneNumberMatcher,e.AsYouType=function(t){return r(d[1]).AsYouType.call(this,t,r(d[0]))},e.AsYouType.prototype=Object.create(r(d[1]).AsYouType.prototype,{}),e.AsYouType.prototype.constructor=e.AsYouType,e.isSupportedCountry=function(n){return t(r(d[1]).isSupportedCountry,arguments)},e.getCountries=function(){return t(r(d[1]).getCountries,arguments)},e.getCountryCallingCode=function(){return t(r(d[1]).getCountryCallingCode,arguments)},e.getExtPrefix=function(n){return t(r(d[1]).getExtPrefix,arguments)},e.getExampleNumber=function(){return t(r(d[1]).getExampleNumber,arguments)},e.Metadata=function(){return r(d[1]).Metadata.call(this,r(d[0]))},e.Metadata.prototype=Object.create(r(d[1]).Metadata.prototype,{}),e.Metadata.prototype.constructor=e.Metadata,e.formatIncompletePhoneNumber=function(){return t(r(d[1]).formatIncompletePhoneNumber,arguments)},e.parseIncompletePhoneNumber=r(d[1]).parseIncompletePhoneNumber,e.parsePhoneNumberCharacter=r(d[1]).parsePhoneNumberCharacter,e.parseDigits=r(d[1]).parseDigits,e.DIGIT_PLACEHOLDER=r(d[1]).DIGIT_PLACEHOLDER,e.parseRFC3966=r(d[1]).parseRFC3966,e.formatRFC3966=r(d[1]).formatRFC3966},788,[787,789]); +__d(function(g,r,i,a,m,e,d){'use strict';(e=m.exports=r(d[0]).default).default=r(d[0]).default,e.ParseError=r(d[1]).default,e.parsePhoneNumberWithError=r(d[2]).default,e.parsePhoneNumber=r(d[2]).default,e.parsePhoneNumberFromString=r(d[0]).default,e.isValidPhoneNumber=r(d[3]).default,e.isPossiblePhoneNumber=r(d[4]).default,e.validatePhoneNumberLength=r(d[5]).default,e.findNumbers=r(d[6]).default,e.searchNumbers=r(d[7]).default,e.findPhoneNumbersInText=r(d[8]).default,e.searchPhoneNumbersInText=r(d[9]).default,e.PhoneNumberMatcher=r(d[10]).default,e.AsYouType=r(d[11]).default,e.Metadata=r(d[12]).default,e.isSupportedCountry=r(d[12]).isSupportedCountry,e.getCountries=r(d[13]).default,e.getCountryCallingCode=r(d[12]).getCountryCallingCode,e.getExtPrefix=r(d[12]).getExtPrefix,e.getExampleNumber=r(d[14]).default,e.formatIncompletePhoneNumber=r(d[15]).default,e.parseIncompletePhoneNumber=r(d[16]).default,e.parsePhoneNumberCharacter=r(d[16]).parsePhoneNumberCharacter,e.parseDigits=r(d[17]).default,e.DIGIT_PLACEHOLDER=r(d[18]).DIGIT_PLACEHOLDER,e.parseRFC3966=r(d[19]).parseRFC3966,e.formatRFC3966=r(d[19]).formatRFC3966},789,[790,794,823,824,825,826,827,838,839,840,829,841,795,848,849,850,801,802,843,816]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.text,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},790,[791,823]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,f,c){f&&f.defaultCountry&&!(0,r(d[2]).isSupportedCountry)(f.defaultCountry,c)&&(f=o({},f,{defaultCountry:void 0}));try{return(0,t.default)(u,f,c)}catch(t){if(!(t instanceof n.default))throw t}};var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(t){for(var n=1;nr(d[13]).MAX_LENGTH_FOR_NSN){if(o.v2)throw new t.default('TOO_LONG');return{}}if(o.v2){var P=new c.default(y,w,l.metadata);return v&&(P.country=v),b&&(P.carrierCode=b),_&&(P.ext=_),P}var R=!(o.extended?!l.hasSelectedNumberingPlan():!v)&&(0,O.default)(w,l.nationalNumberPattern());if(!o.extended)return R?p(v,w,_):{};return{country:v,countryCallingCode:y,carrierCode:b,valid:R,possible:!!R||!(!0!==o.extended||!l.possibleLengths()||!(0,r(d[14]).isPossibleNumber)(w,l)),phone:w,ext:_}};var t=N(r(d[0])),n=N(r(d[1])),u=(function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,u):{};o.get||o.set?Object.defineProperty(n,u,o):n[u]=t[u]}return n.default=t,n})(r(d[2])),o=N(r(d[3])),l=N(r(d[4])),f=N(r(d[5])),c=N(r(d[6])),O=N(r(d[7])),s=N(r(d[8])),_=(N(r(d[9])),N(r(d[10]))),C=(N(r(d[11])),N(r(d[12])));function N(t){return t&&t.__esModule?t:{default:t}}var v=250,w=new RegExp('['+r(d[13]).PLUS_CHARS+r(d[13]).VALID_DIGITS+']'),y=new RegExp('[^'+r(d[13]).VALID_DIGITS+"#]+$");function b(n,u,o){if(n)if(n.length>v){if(o)throw new t.default('TOO_LONG')}else{if(!1===u)return n;var l=n.search(w);if(!(l<0))return n.slice(l).replace(y,'')}}function h(t,n,l){if(t&&0===t.indexOf('tel:'))return(0,r(d[15]).parseRFC3966)(t);var f=b(t,l,n);if(!f)return{};if(!(0,u.default)(f))return(0,u.isViablePhoneNumberStart)(f)?{error:'TOO_SHORT'}:{};var c=(0,o.default)(f);return c.ext?c:{number:f}}function p(t,n,u){var o={country:t,phone:n};return u&&(o.ext=u),o}function T(t,n,u,o){var c,O=(0,s.default)((0,l.default)(t),n,u,o.metadata),N=O.countryCallingCode,v=O.number;if(N)o.selectNumberingPlan(N);else{if(!v||!n&&!u)return{};o.selectNumberingPlan(n,u),n&&(c=n),N=u||(0,f.default)(n,o.metadata)}if(!v)return{countryCallingCode:N};var w=(0,_.default)((0,l.default)(v),o),y=w.nationalNumber,b=w.carrierCode,h=(0,C.default)(N,y,o);return h&&(c=h,'001'===h||o.country(c)),{country:c,countryCallingCode:N,nationalNumber:y,carrierCode:b}}},793,[794,795,797,800,801,803,804,809,817,819,820,818,822,799,805,816]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function o(n){t(this,o),this.name=this.constructor.name,this.message=n,this.stack=new Error(n).stack};e.default=o,(o.prototype=Object.create(Error.prototype)).constructor=o},794,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateMetadata=b,e.getExtPrefix=function(t,n){if((n=new y(n)).hasCountry(t))return n.country(t).ext();return f},e.getCountryCallingCode=function(t,n){if((n=new y(n)).hasCountry(t))return n.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))},e.isSupportedCountry=function(t,n){return void 0!==n.countries[t]},e.default=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function i(t){return(i="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)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var i=0;iN)return 1;if(N>f)return-1;if(!isNaN(f)&&isNaN(N))return 1;if(isNaN(f)&&!isNaN(N))return-1}if(i[1]&&t[1])return i[1]>t[1]?1:i[1]=r(d[1]).MIN_LENGTH_FOR_NSN&&T.test(_)},e.isViablePhoneNumberStart=function(_){return A.test(_)},e.VALID_PHONE_NUMBER_WITH_EXTENSION=e.VALID_PHONE_NUMBER=void 0;var _,I=(_=r(d[0]))&&_.__esModule?_:{default:_};var N='['+r(d[1]).VALID_DIGITS+']{'+r(d[1]).MIN_LENGTH_FOR_NSN+'}',t='['+r(d[1]).PLUS_CHARS+"]{0,1}(?:["+r(d[1]).VALID_PUNCTUATION+"]*["+r(d[1]).VALID_DIGITS+"]){3,}["+r(d[1]).VALID_PUNCTUATION+r(d[1]).VALID_DIGITS+']*';e.VALID_PHONE_NUMBER=t;var A=new RegExp("^["+r(d[1]).PLUS_CHARS+"]{0,1}(?:["+r(d[1]).VALID_PUNCTUATION+"]*["+r(d[1]).VALID_DIGITS+"]){1,2}$",'i'),E=t+'(?:'+(0,I.default)()+')?';e.VALID_PHONE_NUMBER_WITH_EXTENSION=E;var T=new RegExp('^'+N+"$|^"+E+'$','i')},797,[798,799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){var o=t+n("20"),u="[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)[:\\.\uff0e]?[ \xa0\\t,-]*"+n("20")+"#?",f="[ \xa0\\t,]*(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*"+n("9")+"#?",_="[- ]+"+n('6')+"#",s="[ \xa0\\t]*(?:,{2}|;)[:\\.\uff0e]?[ \xa0\\t,-]*"+n('15')+"#?",x="[ \xa0\\t]*(?:,)+[:\\.\uff0e]?[ \xa0\\t,-]*"+n("9")+"#?";return o+"|"+u+"|"+f+"|"+_+"|"+s+"|"+x};var t=';ext=',n=function(t){return"([".concat(r(d[0]).VALID_DIGITS,"]{1,").concat(t,"})")}},798,[799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLUS_CHARS=e.VALID_PUNCTUATION=e.WHITESPACE=e.VALID_DIGITS=e.MAX_LENGTH_COUNTRY_CODE=e.MAX_LENGTH_FOR_NSN=e.MIN_LENGTH_FOR_NSN=void 0;e.MIN_LENGTH_FOR_NSN=2;e.MAX_LENGTH_FOR_NSN=17;e.MAX_LENGTH_COUNTRY_CODE=3;e.VALID_DIGITS="0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9";e.WHITESPACE=" \xa0\xad\u200b\u2060\u3000";var _="".concat("-\u2010-\u2015\u2212\u30fc\uff0d").concat("\uff0f/").concat("\uff0e.").concat(" \xa0\xad\u200b\u2060\u3000").concat("()\uff08\uff09\uff3b\uff3d\\[\\]").concat("~\u2053\u223c\uff5e");e.VALID_PUNCTUATION=_;e.PLUS_CHARS="+\uff0b"},799,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var u=t.search(n);if(u<0)return{};var f=t.slice(0,u),i=t.match(n),l=1;for(;l=f.length)break;s=f[l++]}else{if((l=f.next()).done)break;s=l.value}var c=s;u+=t(c,u)||''}return u},e.parsePhoneNumberCharacter=t},801,[802]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDigit=n,e.default=function(t){for(var o='',u=t.split(''),f=Array.isArray(u),l=0,u=f?u:u[Symbol.iterator]();;){var s;if(f){if(l>=u.length)break;s=u[l++]}else{if((l=u.next()).done)break;s=l.value}var v=s,c=n(v);c&&(o+=c)}return o},e.DIGITS=void 0;var t={0:'0',1:'1',2:'2',3:'3',4:'4',5:'5',6:'6',7:'7',8:'8',9:'9',"\uff10":'0',"\uff11":'1',"\uff12":'2',"\uff13":'3',"\uff14":'4',"\uff15":'5',"\uff16":'6',"\uff17":'7',"\uff18":'8',"\uff19":'9',"\u0660":'0',"\u0661":'1',"\u0662":'2',"\u0663":'3',"\u0664":'4',"\u0665":'5',"\u0666":'6',"\u0667":'7',"\u0668":'8',"\u0669":'9',"\u06f0":'0',"\u06f1":'1',"\u06f2":'2',"\u06f3":'3',"\u06f4":'4',"\u06f5":'5',"\u06f6":'6',"\u06f7":'7',"\u06f8":'8',"\u06f9":'9'};function n(n){return t[n]}e.DIGITS=t},802,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r(d[0]).getCountryCallingCode}})},803,[795]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(r(d[0])),n=l(r(d[1])),o=l(r(d[2])),i=(l(r(d[3])),l(r(d[4]))),u=l(r(d[5]));function l(t){return t&&t.__esModule?t:{default:t}}function f(t){for(var n=1;nf?'TOO_SHORT':O[O.length-1]=0?'IS_POSSIBLE':'INVALID_LENGTH'}},806,[807]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var a=t.slice(),u=n,f=Array.isArray(u),o=0,u=f?u:u[Symbol.iterator]();;){var l;if(f){if(o>=u.length)break;l=u[o++]}else{if((o=u.next()).done)break;l=o.value}var s=l;t.indexOf(s)<0&&a.push(s)}return a.sort(function(t,n){return t-n})}},807,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,o,f){if(o=o||{},f=new t.default(f),!l.country)return!1;if(f.selectNumberingPlan(l.country,l.countryCallingCode),f.hasTypes())return void 0!==(0,u.default)(l,o,f.metadata);var c=o.v2?l.nationalNumber:l.phone;return(0,n.default)(c,f.nationalNumberPattern())};var t=l(r(d[0])),n=l(r(d[1])),u=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}},808,[795,809,810]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){return t=t||'',new RegExp('^(?:'+n+')$').test(t)}},809,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(E,_,l){if(_=_||{},!E.country)return;(l=new t.default(l)).selectNumberingPlan(E.country,E.countryCallingCode);var L=_.v2?E.nationalNumber:E.phone;if(!(0,n.default)(L,l.nationalNumberPattern()))return;if(I(L,'FIXED_LINE',l))return l.type('MOBILE')&&''===l.type('MOBILE').pattern()?'FIXED_LINE_OR_MOBILE':l.type('MOBILE')?I(L,'MOBILE',l)?'FIXED_LINE_OR_MOBILE':'FIXED_LINE':'FIXED_LINE_OR_MOBILE';for(var o=0,O=u;o=c.length)break;f=c[u++]}else{if((u=c.next()).done)break;f=u.value}var l=f;if(l.leadingDigitsPatterns().length>0){var s=l.leadingDigitsPatterns()[l.leadingDigitsPatterns().length-1];if(0!==o.search(s))continue}if((0,t.default)(o,l.pattern()))return l}}function O(t,n,o,c){return n?c(t,n,o):t}function b(t,n,i,u,f){if((0,o.getCountryCallingCode)(u,f.metadata)===i){var l=s(t,n,'NATIONAL',f);return'1'===i?i+' '+l:l}var y=(0,c.default)(u,void 0,f.metadata);if(y)return"".concat(y," ").concat(i," ").concat(s(t,null,'INTERNATIONAL',f))}},812,[809,813,795,815,816]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,u){var f=u.useInternationalFormat,_=u.withNationalPrefix,R=(u.carrierCode,u.metadata,t.replace(new RegExp(l.pattern()),f?l.internationalFormat():_&&l.nationalPrefixFormattingRule()?l.format().replace(o,l.nationalPrefixFormattingRule()):l.format()));if(f)return(0,n.default)(R);return R},e.FIRST_GROUP_PATTERN=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};var o=/(\$\d)/;e.FIRST_GROUP_PATTERN=o},813,[814]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(new RegExp("[".concat(r(d[0]).VALID_PUNCTUATION,"]+"),'g'),' ').trim()}},814,[799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l,n){var D=new t.default(n);if(D.selectNumberingPlan(u,l),D.defaultIDDPrefix())return D.defaultIDDPrefix();if(f.test(D.IDDPrefix()))return D.IDDPrefix()};var u,t=(u=r(d[0]))&&u.__esModule?u:{default:u};var f=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/},815,[795]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRFC3966=function(t){for(var l,f,c=(t=t.replace(/^tel:/,'tel=')).split(';'),s=Array.isArray(c),v=0,c=s?c:c[Symbol.iterator]();;){var b;if(s){if(v>=c.length)break;b=c[v++]}else{if((v=c.next()).done)break;b=v.value}var y=b,p=y.split('='),h=(k=2,u(_=p)||i(_,k)||o()),x=h[0],w=h[1];switch(x){case'tel':l=w;break;case'ext':f=w;break;case'phone-context':'+'===w[0]&&(l=w+l)}}var _,k;if(!(0,n.default)(l))return{};var A={number:l};f&&(A.ext=f);return A},e.formatRFC3966=function(t){var n=t.number,o=t.ext;if(!n)return'';if('+'!==n[0])throw new Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");return"tel:".concat(n).concat(o?';ext='+o:'')};var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(t,n){var o=[],i=!0,u=!1,l=void 0;try{for(var f,c=t[Symbol.iterator]();!(i=(f=c.next()).done)&&(o.push(f.value),!n||o.length!==n);i=!0);}catch(t){u=!0,l=t}finally{try{i||null==c.return||c.return()}finally{if(u)throw l}}return o}function u(t){if(Array.isArray(t))return t}},816,[797]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l,i,f,o){if(!l)return{};if('+'!==l[0]){var c=(0,n.default)(l,i,f,o);if(!c||c===l){if(i||f){var C=(0,u.default)(l,i,f,o),_=C.countryCallingCode,s=C.number;if(_)return{countryCallingCode:_,number:s}}return{number:l}}l='+'+c}if('0'===l[1])return{};o=new t.default(o);var b=2;for(;b-1<=r(d[3]).MAX_LENGTH_COUNTRY_CODE&&b<=l.length;){var v=l.slice(1,b);if(o.hasCallingCode(v))return o.selectNumberingPlan(v),{countryCallingCode:v,number:l.slice(b)};b++}return{}};var n=l(r(d[0])),u=l(r(d[1])),t=l(r(d[2]));function l(n){return n&&n.__esModule?n:{default:n}}},817,[818,819,795,799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,l,f,c){if(!l)return;var s=new n.default(c);s.selectNumberingPlan(l,f);var _=new RegExp(s.IDDPrefix());if(0!==t.search(_))return;var v=(t=t.slice(t.match(_)[0].length)).match(u);if(v&&null!=v[1]&&v[1].length>0&&'0'===v[1])return;return t};var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=new RegExp('(['+r(d[1]).VALID_DIGITS+'])')},818,[795,799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,b,c,_){var s=b?(0,f.default)(b,_):c;if(0===o.indexOf(s)){(_=new t.default(_)).selectNumberingPlan(b,c);var N=o.slice(s.length),O=(0,u.default)(N,_),v=O.nationalNumber,P=(0,u.default)(o,_),y=P.nationalNumber;if(!(0,n.default)(y,_.nationalNumberPattern())&&(0,n.default)(v,_.nationalNumberPattern())||'TOO_LONG'===(0,l.default)(y,_))return{countryCallingCode:s,number:N}}return{number:o}};var t=o(r(d[0])),n=o(r(d[1])),u=o(r(d[2])),l=o(r(d[3])),f=o(r(d[4]));function o(t){return t&&t.__esModule?t:{default:t}}},819,[795,809,820,806,803]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,l){var f=(0,t.default)(n,l),c=f.nationalNumber,s=f.carrierCode;if(!o(n,c,l))return{nationalNumber:n};if(n.length!==c.length+(s?s.length:0)&&l.possibleLengths())switch((0,u.default)(c,l)){case'TOO_SHORT':case'INVALID_LENGTH':return{nationalNumber:n}}return{nationalNumber:c,carrierCode:s}};var t=l(r(d[0])),n=l(r(d[1])),u=l(r(d[2]));function l(t){return t&&t.__esModule?t:{default:t}}function o(t,u,l){return!((0,n.default)(t,l.nationalNumberPattern())&&!(0,n.default)(u,l.nationalNumberPattern()))}},820,[821,809,806]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,l){if(n&&l.numberingPlan.nationalPrefixForParsing()){var t=new RegExp('^(?:'+l.numberingPlan.nationalPrefixForParsing()+')'),f=t.exec(n);if(f){var o,u,P,s=f.length-1,x=s>0&&f[s];if(l.nationalPrefixTransformRule()&&x)o=n.replace(t,l.nationalPrefixTransformRule()),s>1&&(u=f[1]);else{var c=f[0];o=n.slice(c.length),x&&(u=f[1])}if(x){var b=n.indexOf(f[1]),v=n.slice(0,b);v===l.numberingPlan.nationalPrefix()&&(P=l.numberingPlan.nationalPrefix())}else P=f[0];return{nationalNumber:o,nationalPrefix:P,carrierCode:u}}}return{nationalNumber:n}}},821,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u){var f=u.getCountryCodesForCallingCode(t);if(!f)return;if(1===f.length)return f[0];return o(f,n,u.metadata)};var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(u,o,f){f=new t.default(f);var l=u,s=Array.isArray(l),c=0;for(l=s?l:l[Symbol.iterator]();;){var v;if(s){if(c>=l.length)break;v=l[c++]}else{if((c=l.next()).done)break;v=c.value}var y=v;if(f.country(y),f.leadingDigits()){if(o&&0===o.search(f.leadingDigits()))return y}else if((0,n.default)({phone:o,country:y},void 0,f.metadata))return y}}},822,[795,810]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=y(arguments),o=t.text,u=t.options,i=t.metadata;return(0,n.default)(o,u,i)},e.normalizeArguments=y;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function o(t){return(o="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)}function u(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:'',s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(p(this,n),x(this,"state",'NOT_READY'),x(this,"searchIndex",0),x(this,"regExpCache",new i.default(32)),!(s=h({},s,{defaultCallingCode:s.defaultCallingCode,defaultCountry:s.defaultCountry&&(0,r(d[11]).isSupportedCountry)(s.defaultCountry,l)?s.defaultCountry:void 0,leniency:s.leniency||s.extended?'POSSIBLE':'VALID',maxTries:s.maxTries||P})).leniency)throw new TypeError('`Leniency` not supplied');if(s.maxTries<0)throw new TypeError('`maxTries` not supplied');if(this.text=t,this.options=s,this.metadata=l,this.leniency=o.default[s.leniency],!this.leniency)throw new TypeError("Unknown leniency: ".concat(s.leniency,"."));this.maxTries=s.maxTries,this.PATTERN=new RegExp(_,'ig')}var f,v,C;return f=n,(v=[{key:"find",value:function(){for(var n;this.maxTries>0&&null!==(n=this.PATTERN.exec(this.text));){var i=n[0],o=n.index;if(i=(0,s.default)(i),(0,l.default)(i,o,this.text)){var c=this.parseAndVerify(i,o,this.text)||this.extractInnerMatch(i,o,this.text);if(c){if(this.options.v2){var u=new t.default(c.country||c.countryCallingCode,c.phone,this.metadata);return c.ext&&(u.ext=c.ext),{startsAt:c.startsAt,endsAt:c.endsAt,number:u}}return c}}this.maxTries--}}},{key:"extractInnerMatch",value:function(t,n,i){for(var o=0,s=A;o0&&null!==(c=u.exec(t));){if(l){var f=(0,r(d[9]).trimAfterFirstMatch)(N,t.slice(0,c.index)),h=this.parseAndVerify(f,n,i);if(h)return h;this.maxTries--,l=!1}var p=(0,r(d[9]).trimAfterFirstMatch)(N,c[1]),y=t.indexOf(p,c.index),x=this.parseAndVerify(p,n+y,i);if(x)return x;this.maxTries--}}},{key:"parseAndVerify",value:function(t,n,i){if((0,c.default)(t,n,i,this.options.leniency)){var o=(0,u.default)(t,{extended:!0,defaultCountry:this.options.defaultCountry,defaultCallingCode:this.options.defaultCallingCode},this.metadata);if(o.possible&&this.leniency(o,t,this.metadata,this.regExpCache)){var s={startsAt:n,endsAt:n+t.length,phone:o.phone};return o.country&&'001'!==o.country?s.country=o.country:s.countryCallingCode=o.countryCallingCode,o.ext&&(s.ext=o.ext),s}}}},{key:"hasNext",value:function(){return'NOT_READY'===this.state&&(this.lastMatch=this.find(),this.lastMatch?this.state='READY':this.state='DONE'),'READY'===this.state}},{key:"next",value:function(){if(!this.hasNext())throw new Error('No next element');var t=this.lastMatch;return this.lastMatch=null,this.state='NOT_READY',t}}])&&y(f.prototype,v),C&&y(f,C),n})();e.default=M},829,[804,798,830,832,834,835,836,793,837,833,799,795]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=(t=r(d[0]))&&t.__esModule?t:{default:t};function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function o(t,n){for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;i(this,t),this.key=n,this.value=h,this.next=s,this.prev=l},h=(function(){function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;i(this,h),this.size=0,this.limit=t,this.head=null,this.tail=null,this.cache={}}var s,l,u;return s=h,(l=[{key:"put",value:function(t,i){if(this.ensureLimit(),this.head){var h=new n(t,i,this.head);this.head.prev=h,this.head=h}else this.head=this.tail=new n(t,i);this.cache[t]=this.head,this.size++}},{key:"get",value:function(t){if(this.cache[t]){var i=this.cache[t].value;return this.remove(t),this.put(t,i),i}console.log("Item not available in cache for key ".concat(t))}},{key:"ensureLimit",value:function(){this.size===this.limit&&this.remove(this.tail.key)}},{key:"remove",value:function(t){var i=this.cache[t];null!==i.prev?i.prev.next=i.next:this.head=i.next,null!==i.next?i.next.prev=i.prev:this.tail=i.prev,delete this.cache[t],this.size--}},{key:"clear",value:function(){this.head=null,this.tail=null,this.size=0,this.cache={}}}])&&t(s.prototype,l),u&&t(s,u),h})();e.default=h},831,[]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.containsMoreThanOneSlashInNationalNumber=f,e.default=void 0;var t=i(r(d[0])),n=i(r(d[1]));function i(t){return t&&t.__esModule?t:{default:t}}var o={POSSIBLE:function(t,n,i){return!0},VALID:function(n,i,o){return!(!(0,t.default)(n,void 0,o)||!u(n,i.toString(),o))},STRICT_GROUPING:function(n,i,o,c){var C=i.toString();return!(!(0,t.default)(n,void 0,o)||!u(n,C,o)||f(n,C)||!l(n,o))&&s(n,i,o,N,c)},EXACT_GROUPING:function(n,i,o,c){var N=i.toString();return!(!(0,t.default)(n,void 0,o)||!u(n,N,o)||f(n,N)||!l(n,o))&&s(n,i,o,C,c)}};function u(t,i,o){for(var u=0;u0){if(l.getNationalPrefixOptionalWhenFormatting())return!0;if(PhoneNumberUtil.formattingRuleHasFirstGroupOnly(l.getNationalPrefixFormattingRule()))return!0;var f=PhoneNumberUtil.normalizeDigitsOnly(t.getRawInput());return util.maybeStripNationalPrefixAndCarrierCode(f,o,null)}return!0}function f(t,n){var i=n.indexOf('/');if(i<0)return!1;var o=n.indexOf('/',i+1);return!(o<0)&&(!(t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN||t.getCountryCodeSource()===CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN)||PhoneNumberUtil.normalizeDigitsOnly(n.substring(0,i))!==String(t.getCountryCode())||n.slice(o+1).indexOf('/')>=0)}function s(t,n,i,o,u){var l=normalizeDigits(n,!0),f=c(i,t,null);if(o(i,t,l,f))return!0;var s=MetadataManager.getAlternateFormatsForCountry(t.getCountryCode()),C=util.getNationalSignificantNumber(t);if(s){var N=s.numberFormats(),v=Array.isArray(N),h=0;for(N=v?N:N[Symbol.iterator]();;){var S;if(v){if(h>=N.length)break;S=N[h++]}else{if((h=N.next()).done)break;S=h.value}var y=S;if(y.leadingDigitsPatterns().length>0)if(!u.getPatternForRegExp('^'+y.leadingDigitsPatterns()[0]).test(C))continue;if(o(i,t,l,f=c(i,t,y)))return!0}}return!1}function c(t,n,i){if(i){var o=util.getNationalSignificantNumber(n);return util.formatNsnUsingPattern(o,i,'RFC3966',t).split('-')}var u=formatNumber(n,'RFC3966',t),l=u.indexOf(';');l<0&&(l=u.length);var f=u.indexOf('-')+1;return u.slice(f,l).split('-')}function C(t,n,i,o){var u=i.split(NON_DIGITS_PATTERN),l=n.hasExtension()?u.length-2:u.length-1;if(1==u.length||u[l].contains(util.getNationalSignificantNumber(n)))return!0;for(var f=o.length-1;f>0&&l>=0;){if(u[l]!==o[f])return!1;f--,l--}return l>=0&&(0,r(d[2]).endsWith)(u[l],o[0])}function N(t,n,i,o){var u=0;if(n.getCountryCodeSource()!==CountryCodeSource.FROM_DEFAULT_COUNTRY){var l=String(n.getCountryCode());u=i.indexOf(l)+l.length()}for(var f=0;f=0)return n.slice(0,c);return n},e.startsWith=function(t,n){return 0===t.indexOf(n)},e.endsWith=function(t,n){return t.indexOf(n,t.length-n.length)===t.length-n.length}},833,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,r(d[0]).trimAfterFirstMatch)(t,u)};var t=/[\\/] *x/},834,[833]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,s,c){if(t.test(f))return!1;if(n.test(f)){var l=c.slice(s+f.length);if(u.test(l))return!1}return!0};var t=/(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/,n=/[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/,u=/^:[0-5]\d/},835,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u,f){if(!o.test(t)||s.test(t))return;if('POSSIBLE'!==f){if(n>0&&!c.test(t)){var l=u[n-1];if((0,r(d[2]).isInvalidPunctuationSymbol)(l)||(0,r(d[2]).isLatinLetter)(l))return!1}var L=n+t.length;if(L1}},{key:"determineTheCountry",value:function(){this.state.setCountry((0,s.default)(this.isInternational()?this.state.callingCode:this.defaultCallingCode,this.state.nationalSignificantNumber,this.metadata))}},{key:"getNumberValue",value:function(){var t=this.state,n=t.digits,i=t.callingCode,o=t.country,u=t.nationalSignificantNumber;if(n)return this.isInternational()?i?'+'+i+u:'+'+n:o||i?'+'+(o?this.metadata.countryCallingCode():i)+u:void 0}},{key:"getNumber",value:function(){var t=this.state,i=t.nationalSignificantNumber,o=t.carrierCode,u=t.callingCode,s=this._getCountry();if(i&&(s||u)){var l=new n.default(s||u,i,this.metadata.metadata);return o&&(l.carrierCode=o),l}}},{key:"isPossible",value:function(){var t=this.getNumber();return!!t&&t.isPossible()}},{key:"isValid",value:function(){var t=this.getNumber();return!!t&&t.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?'+':'')+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||''}}])&&b(f.prototype,N),p&&b(f,p),l})();e.default=N},841,[795,804,842,843,847,822]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function t(i,t){for(var n=0;n=l.length)break;f=l[u++]}else{if((u=l.next()).done)break;f=u.value}var h=f,c=(0,t.default)(n,h,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(t){return o.shouldTryNationalPrefixFormattingRule(t,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:this.getSeparatorAfterNationalPrefix});if(c)return this.resetFormat(),this.chosenFormat=h,this.setNationalNumberTemplate(c.replace(/\d/g,r(d[0]).DIGIT_PLACEHOLDER),n),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(r(d[0]).DIGIT_PLACEHOLDER),c}}return this.formatNationalNumberWithNextDigits(i,n)}},{key:"formatNationalNumberWithNextDigits",value:function(t,i){var n=this.chosenFormat,o=this.chooseFormat(i);if(o)return o===n?this.formatNextNationalNumberDigits(t):this.formatNextNationalNumberDigits(i.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(t){var i=this,n=t.nationalSignificantNumber,o=t.nationalPrefix,l=t.international,s=n,u=s.length-3;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(t){return i.formatSuits(t,l,o)&&i.formatMatches(t,s,u)}),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(t,i,n){return!(n&&!t.usesNationalPrefix()&&!t.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!i&&!n&&t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(t,n,o){var l=t.leadingDigitsPatterns().length;if(0===l)return!0;o=Math.min(o,l-1);var s=t.leadingDigitsPatterns()[o];if(n.length<3)try{return void 0!==new i.default(s).match(n,{allowOverflow:!0})}catch(t){return console.error(t),!0}return new RegExp("^(".concat(s,")")).test(n)}},{key:"getFormatFormat",value:function(t,i){return i?t.internationalFormat():t.format()}},{key:"chooseFormat",value:function(t){var i=this,n=function(){if(l){if(s>=o.length)return"break";u=o[s++]}else{if((s=o.next()).done)return"break";u=s.value}var n=u;return i.chosenFormat===n?"break":p.test(i.getFormatFormat(n,t.international))?i.createTemplateForFormat(n,t)?(i.chosenFormat=n,"break"):(i.matchingFormats=i.matchingFormats.filter(function(t){return t!==n}),"continue"):"continue"};var o=this.matchingFormats.slice(),l=Array.isArray(o),s=0;t:for(o=l?o:o[Symbol.iterator]();;){var u;switch(n()){case"break":break t;case"continue":continue}}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(t,i){if(!(t.pattern().indexOf('|')>=0)){var n=this.getTemplateForFormat(t,i);return n?(this.setNationalNumberTemplate(n,i),!0):void 0}}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(t,i){var n=t.IDDPrefix,o=t.missingPlus;return n?i&&!1===i.spacing?n:n+' ':o?'':'+'}},{key:"getTemplate",value:function(t){if(this.template){for(var i=-1,n=0,o=t.international?this.getInternationalPrefixBeforeCountryCallingCode(t,{spacing:!1}):'';np.length)){var N=new RegExp('^'+c+'$'),P=l.replace(/\d/g,"9");N.test(P)&&(p=P);var v,F=this.getFormatFormat(t,s);if(this.shouldTryNationalPrefixFormattingRule(t,{international:s,nationalPrefix:u})){var b=F.replace(r(d[6]).FIRST_GROUP_PATTERN,t.nationalPrefixFormattingRule());if((0,n.default)(t.nationalPrefixFormattingRule())===(u||'')+(0,n.default)('$1')&&(F=b,v=!0,u))for(var x=u.length;x>0;)F=F.replace(/\d/,r(d[0]).DIGIT_PLACEHOLDER),x--}var T=p.replace(new RegExp(c),F).replace(new RegExp("9",'g'),r(d[0]).DIGIT_PLACEHOLDER);return v||(f?T=(0,r(d[0]).repeat)(r(d[0]).DIGIT_PLACEHOLDER,f.length)+' '+T:u&&(T=(0,r(d[0]).repeat)(r(d[0]).DIGIT_PLACEHOLDER,u.length)+this.getSeparatorAfterNationalPrefix(t)+T)),s&&(T=(0,o.default)(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(t){var i=(0,r(d[0]).populateTemplateWithDigits)(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,t);if(i)return this.populatedNationalNumberTemplate=i[0],this.populatedNationalNumberTemplatePosition=i[1],(0,r(d[0]).cutAndStripNonPairedParens)(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}}])&&u(N.prototype,P),v&&u(N,v),l})();e.default=N},843,[844,845,846,802,814,799,813]); +__d(function(g,r,_i4,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.countOccurences=t,e.repeat=function(n,t){if(t<1)return'';var i='';for(;t>1;)1&t&&(i+=n),t>>=1,n+=n;return i+n},e.cutAndStripNonPairedParens=function(n,t){')'===n[t]&&t++;return i(n.slice(0,t))},e.closeNonPairedParens=function(n,i){var o=n.slice(0,i),u=t('(',o),l=t(')',o),s=u-l;for(;s>0&&i=u.length)break;c=u[s++]}else{if((s=u.next()).done)break;c=s.value}var f=c;if(t.slice(i+1).search(n)<0)return;i=t.search(n),t=t.replace(n,f)}return[t,i]},e.DIGIT_PLACEHOLDER=void 0;e.DIGIT_PLACEHOLDER="x";var n=new RegExp("x");function t(n,t){var i=0,o=t.split(''),u=Array.isArray(o),l=0;for(o=u?o:o[Symbol.iterator]();;){var s;if(u){if(l>=o.length)break;s=o[l++]}else{if((l=o.next()).done)break;s=l.value}s===n&&i++}return i}function i(n){for(var t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!t)throw new Error('String is required');var o=s(t.split(''),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!o||!o.overflow||n)return o}}]),n})();function s(t,n,o){if('string'==typeof n){if(o&&t.length>n.length)return{overflow:!0};var i=t.join('');return 0===n.indexOf(i)?t.length===n.length?{match:!0,matchedChars:t}:{partialMatch:!0}:0===i.indexOf(n)?{match:!0,matchedChars:t.slice(0,n.length)}:void 0}if(Array.isArray(n)){for(var h=t.slice(),c=0;c=f.length)break;v=f[w++]}else{if((w=f.next()).done)break;v=w.value}var x=s(t,v,o);if(x){if(x.overflow)return x;if(x.match)return{match:!0,matchedChars:x.matchedChars};if(!x.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(x,null,2)));l=!0}}return l?{partialMatch:!0}:void 0;case'[]':var C=n.args,b=Array.isArray(C),y=0;for(C=b?C:C[Symbol.iterator]();;){var k;if(b){if(y>=C.length)break;k=C[y++]}else{if((y=C.next()).done)break;k=y.value}var E=k;if(t[0]===E)return 1===t.length?{match:!0,matchedChars:t}:o?{overflow:!0}:{match:!0,matchedChars:[E]}}return;default:throw new Error("Unsupported instruction tree: ".concat(n))}}e.default=i;var h=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])"),c=/[\(\)\[\]\?\:\|]/,u=(function(){function n(){t(this,n)}return o(n,[{key:"parse",value:function(t){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(t),1!==this.context.length)throw new Error('Non-finalized contexts left when pattern parse ended');var n=this.context[0],o=n.branches,i=n.instructions;if(o)return[{op:'|',args:o.concat([i])}];if(0===i.length)throw new Error('Pattern is required');return i}},{key:"startContext",value:function(t){this.context.push(t)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(t){if(!t)throw new Error('Pattern is required');var n=t.match(h);if(n){var o=n[1],i=t.slice(0,n.index),s=t.slice(n.index+o.length);switch(o){case'(?:':i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case')':if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var u=this.getContext().branches;u.push(this.getContext().instructions),this.endContext(),this.getContext().instructions.push({op:'|',args:u});break;case'|':if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(this.getContext().instructions),this.getContext().instructions=[];break;case'[':i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case']':if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:'[]',args:l(i)});break;default:throw new Error("Unknown operator: ".concat(o))}s&&this.parsePattern(s)}else{if(c.test(t))throw new Error("Illegal characters found in a pattern: ".concat(t));this.getContext().instructions=this.getContext().instructions.concat(t.split(''))}}}]),n})();function l(t){for(var n=[],o=0;o=3;if(i.appendDigits(t),l&&this.extractIddPrefix(i),this.isWaitingForCountryCallingCode(i)){if(!this.extractCountryCallingCode(i))return}else i.appendNationalSignificantNumberDigits(t);i.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(i.getNationalDigits(),i.update)}},{key:"isWaitingForCountryCallingCode",value:function(t){var i=t.international,n=t.callingCode;return i&&!n}},{key:"extractCountryCallingCode",value:function(i){var n=(0,t.default)('+'+i.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),l=n.countryCallingCode,u=n.number;if(l)return i.setCallingCode(l),i.update({nationalSignificantNumber:u}),!0}},{key:"reset",value:function(t){if(t){this.hasSelectedNumberingPlan=!0;var i=t._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=i&&S.test(i)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(t,i){if(this.hasSelectedNumberingPlan){var l=(0,n.default)(t,this.metadata),u=l.nationalPrefix,o=l.nationalNumber,s=l.carrierCode;if(o!==t)return this.onExtractedNationalNumber(u,s,o,t,i),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(t,i,l){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(t,l);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var u=(0,n.default)(t,this.metadata),o=u.nationalPrefix,s=u.nationalNumber,c=u.carrierCode;if(s!==i)return this.onExtractedNationalNumber(o,c,s,t,l),!0}}},{key:"onExtractedNationalNumber",value:function(t,i,n,l,u){var o,s,c=l.lastIndexOf(n);if(c>=0&&c===l.length-n.length){s=!0;var f=l.slice(0,c);f!==t&&(o=f)}u({nationalPrefix:t,carrierCode:i,nationalSignificantNumber:n,nationalSignificantNumberMatchesInput:s,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(t){return!!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(),t.nationalSignificantNumber,t.update)||(this.extractIddPrefix(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):this.fixMissingPlus(t)?(this.extractCallingCodeAndNationalSignificantNumber(t),!0):void 0)}},{key:"extractIddPrefix",value:function(t){var i=t.international,n=t.IDDPrefix,u=t.digits;t.nationalSignificantNumber;if(!i&&!n){var o=(0,l.default)(u,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==o&&o!==u?(t.update({IDDPrefix:u.slice(0,u.length-o.length)}),this.startInternationalNumber(t),!0):void 0}}},{key:"fixMissingPlus",value:function(t){if(!t.international){var n=(0,i.default)(t.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),l=n.countryCallingCode;n.number;if(l)return t.update({missingPlus:!0}),this.startInternationalNumber(t),!0}}},{key:"startInternationalNumber",value:function(t){t.startInternationalNumber(),t.nationalSignificantNumber&&(t.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(t){this.extractCountryCallingCode(t)&&this.extractNationalSignificantNumber(t.getNationalDigits(),t.update)}}])&&b(c.prototype,f),N&&b(c,N),o})();function P(t){var i,n=t.search(x);if(!(n<0))return'+'===(t=t.slice(n))[0]&&(i=!0,t=t.slice('+'.length)),t=t.replace(y,''),i&&(t='+'+t),t}function p(t){var i=P(t)||'';return'+'===i[0]?[i.slice('+'.length),!0]:[i]}function D(t){var i=s(p(t),2),n=i[0],l=i[1];return v.test(n)||(n=''),[n,l]}e.default=I},847,[817,819,821,818,802,799]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return new u.default(t).getCountries()};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},848,[795]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,f,n){if(f[t])return new u.default(t,f[t],n)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},849,[804]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,f){f||(f=n,n=void 0);return new u.default(n,f).input(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},850,[841]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.text,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},851,[793,823]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=y(arguments),o=n.input,u=n.format,f=n.options,i=n.metadata;return(0,t.default)(o,u,f,i)};var t=o(r(d[0])),n=o(r(d[1]));function o(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="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)}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(t,n){var o=[],u=!0,f=!1,i=void 0;try{for(var l,y=t[Symbol.iterator]();!(u=(l=y.next()).done)&&(o.push(l.value),!n||o.length!==n);u=!0);}catch(t){f=!0,i=t}finally{try{u||null==y.return||y.return()}finally{if(f)throw i}}return o}function l(t){if(Array.isArray(t))return t}function y(t){var o,u,y,p,s,b,h=Array.prototype.slice.call(t),v=(u=5,l(o=h)||i(o,u)||f()),A=v[0],w=v[1],N=v[2],S=v[3],_=v[4];if('string'==typeof A)if('string'==typeof N)p=N,_?(s=S,b=_):b=S,y=(0,n.default)(A,{defaultCountry:w,extended:!0},b);else{if('string'!=typeof w)throw new Error('`format` argument not passed to `formatNumber(number, format)`');p=w,S?(s=N,b=S):b=N,y=(0,n.default)(A,{extended:!0},b)}else{if(!c(A))throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');y=A,p=w,S?(s=N,b=S):b=N}return'International'===p?p='INTERNATIONAL':'National'===p&&(p='NATIONAL'),{input:y,format:p,options:s,metadata:b}}var c=function(t){return'object'===u(t)}},852,[812,793]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=c(arguments),o=t.input,u=t.options,i=t.metadata;return(0,n.default)(o,u,i)},e.normalizeArguments=c;var t=u(r(d[0])),n=u(r(d[1])),o=u(r(d[2]));function u(t){return t&&t.__esModule?t:{default:t}}function i(t){return(i="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)}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function l(t,n){var o=[],u=!0,i=!1,f=void 0;try{for(var l,y=t[Symbol.iterator]();!(u=(l=y.next()).done)&&(o.push(l.value),!n||o.length!==n);u=!0);}catch(t){i=!0,f=t}finally{try{u||null==y.return||y.return()}finally{if(i)throw f}}return o}function y(t){if(Array.isArray(t))return t}function c(n){var u,c,s,b,v=Array.prototype.slice.call(n),h=(c=4,y(u=v)||l(u,c)||f()),S=h[0],_=h[1],w=h[2],A=h[3],j={};if('string'==typeof S)'object'!==i(_)?(A?(j=w,b=A):b=w,s=(0,t.default)(S)?(0,o.default)(S,{defaultCountry:_},b):{}):(w?(j=_,b=w):b=_,s=(0,t.default)(S)?(0,o.default)(S,void 0,b):{});else{if(!p(S))throw new TypeError('A phone number must either be a string or an object of shape { phone, [country] }.');s=S,w?(j=_,b=w):b=_}return{input:s,options:j,metadata:b}}var p=function(t){return'object'===i(t)}},853,[797,810,793]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.input,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},854,[805,853]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,r(d[1]).normalizeArguments)(arguments),n=t.input,o=t.options,l=t.metadata;return(0,u.default)(n,o,l)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t}},855,[808,853]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,f,s){if('string'!=typeof o)throw new TypeError('number must be a string');if('string'!=typeof f)throw new TypeError('country must be a string');var l;l=(0,t.default)(o)?(0,u.default)(o,{defaultCountry:f},s):{};return(0,n.default)(l,f,void 0,s)};var t=o(r(d[0])),u=o(r(d[1])),n=o(r(d[2]));function o(t){return t&&t.__esModule?t:{default:t}}},856,[797,793,811]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=(0,r(d[1]).normalizeArguments)(arguments),o=n.text,u=n.options,c=n.metadata;return(0,t.default)(o,u,c)},e.searchPhoneNumbers=function(){var n=(0,r(d[1]).normalizeArguments)(arguments),o=n.text,u=n.options,c=n.metadata;return(0,t.searchPhoneNumbers)(o,u,c)};var t=(function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,o):{};u.get||u.set?Object.defineProperty(n,o,u):n[o]=t[o]}return n.default=t,n})(r(d[0]))},857,[858,823]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,i){void 0===n&&(n={});var s=new _(t,n,i),u=[];for(;s.hasNext();)u.push(s.next());return u},e.searchPhoneNumbers=function(t,n,i){void 0===n&&(n={});var s=new _(t,n,i);return f({},Symbol.iterator,function(){return{next:function(){return s.hasNext()?{done:!1,value:s.next()}:{done:!0}}}})},e.PhoneNumberSearch=e.EXTN_PATTERNS_FOR_PARSING=void 0;var t=o(r(d[0])),n=o(r(d[1])),i=o(r(d[2])),s=o(r(d[3])),u=o(r(d[4]));function o(t){return t&&t.__esModule?t:{default:t}}function h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function l(t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};(0,u.default)(t);var f=l;if(f=n.require_hyphen?f.replace('?',''):f,!(f=n.case_sensitive?new RegExp(f):new RegExp(f,'i')).test(t))return!1;for(var s=t.replace('-','').toUpperCase(),i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:o;if((0,u.default)(t),n.loose)return s.includes(t.toLowerCase());return l.includes(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var o={loose:!1},l=['true','false','1','0'],s=[].concat(l,['yes','no']);m.exports=e.default,m.exports.default=e.default},866,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsNumberString=e.isNumberString=e.IS_NUMBER_STRING=void 0;var n=t(r(d[0]));function u(t,u){return'string'==typeof t&&n.default(t,u)}e.IS_NUMBER_STRING='isNumberString',e.isNumberString=u,e.IsNumberString=function(t,n){return r(d[1]).ValidateBy({name:e.IS_NUMBER_STRING,constraints:[t],validator:{validate:function(t,n){return u(t,n.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a number string'},n)}},n)}},867,[868,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,o){if((0,l.default)(t),o&&o.no_symbols)return u.test(t);return new RegExp("^[+-]?([0-9]*[".concat((o||{}).locale?r(d[1]).decimal[o.locale]:'.',"])?[0-9]+$")).test(t)};var t,l=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^[0-9]+$/;m.exports=e.default,m.exports.default=e.default},868,[684,698]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBase32=e.isBase32=e.IS_BASE32=void 0;var s=t(r(d[0]));function n(t){return'string'==typeof t&&s.default(t)}e.IS_BASE32='isBase32',e.isBase32=n,e.IsBase32=function(t){return r(d[1]).ValidateBy({name:e.IS_BASE32,validator:{validate:function(t,s){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be base32 encoded'},t)}},t)}},869,[870,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),t.length%8==0&&f.test(t))return!0;return!1};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z2-7]+=*$/;m.exports=e.default,m.exports.default=e.default},870,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBIC=e.isBIC=e.IS_BIC=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_BIC='isBIC',e.isBIC=n,e.IsBIC=function(t){return r(d[1]).ValidateBy({name:e.IS_BIC,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a BIC or SWIFT code'},t)}},t)}},871,[872,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),!r(d[1]).CountryCodes.has(t.slice(4,6).toUpperCase()))return!1;return s.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;m.exports=e.default,m.exports.default=e.default},872,[684,763]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsBtcAddress=e.isBtcAddress=e.IS_BTC_ADDRESS=void 0;var s=t(r(d[0]));function u(t){return'string'==typeof t&&s.default(t)}e.IS_BTC_ADDRESS='isBtcAddress',e.isBtcAddress=u,e.IsBtcAddress=function(t){return r(d[1]).ValidateBy({name:e.IS_BTC_ADDRESS,validator:{validate:function(t,s){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a BTC address'},t)}},t)}},873,[874,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),t.startsWith('bc1'))return f.test(t);return s.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(bc1)[a-z0-9]{25,39}$/,s=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;m.exports=e.default,m.exports.default=e.default},874,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsDataURI=e.isDataURI=e.IS_DATA_URI=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_DATA_URI='isDataURI',e.isDataURI=n,e.IsDataURI=function(t){return r(d[1]).ValidateBy({name:e.IS_DATA_URI,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a data uri format'},t)}},t)}},875,[876,674]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,s.default)(t);var l=t.split(',');if(l.length<2)return!1;var n=l.shift().trim().split(';'),o=n.shift();if('data:'!==o.substr(0,5))return!1;var v=o.substr(5);if(''!==v&&!u.test(v))return!1;for(var _=0;_=2&&n===11-u},IT:function(t){return 9===t.length&&('CA00000AA'!==t&&t.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(t){var n=t.trim();if(isNaN(Number(n)))return!1;if(11!==n.length)return!1;if('00000000000'===n)return!1;var u=n.split('').map(Number),i=(11-(3*u[0]+7*u[1]+6*u[2]+1*u[3]+8*u[4]+9*u[5]+4*u[6]+5*u[7]+2*u[8])%11)%11,s=(11-(5*u[0]+4*u[1]+3*u[2]+2*u[3]+7*u[4]+6*u[5]+5*u[6]+4*u[7]+3*u[8]+2*i)%11)%11;return i===u[9]&&s===u[10]},TH:function(t){if(!t.match(/^[1-8]\d{12}$/))return!1;for(var n=0,u=0;u<12;u++)n+=parseInt(t[u],10)*(13-u);return t[12]===((11-n%11)%10).toString()},LK:function(t){return!(10!==t.length||!/^[1-9]\d{8}[vx]$/i.test(t))||!(12!==t.length||!/^[1-9]\d{11}$/i.test(t))},'he-IL':function(t){var n=t.trim();if(!/^\d{9}$/.test(n))return!1;for(var u,i=n,s=0,f=0;f9?u-9:u;return s%10==0},'ar-LY':function(t){var n=t.trim();return!!/^(1|2)\d{11}$/.test(n)},'ar-TN':function(t){var n=t.trim();return!!/^\d{8}$/.test(n)},'zh-CN':function(t){var n,u=['11','12','13','14','15','21','22','23','31','32','33','34','35','36','37','41','42','43','44','45','46','50','51','52','53','54','61','62','63','64','65','71','81','82','91'],i=['7','9','10','5','8','4','2','1','6','3','7','9','10','5','8','4','2'],s=['1','0','X','9','8','7','6','5','4','3','2'],f=function(t){return u.includes(t)},o=function(t){var n=parseInt(t.substring(0,4),10),u=parseInt(t.substring(4,6),10),i=parseInt(t.substring(6),10),s=new Date(n,u-1,i);return!(s>new Date)&&(s.getFullYear()===n&&s.getMonth()===u-1&&s.getDate()===i)},c=function(t){for(var n=t.substring(0,17),u=0,f=0;f<17;f++)u+=parseInt(n.charAt(f),10)*parseInt(i[f],10);return s[u%11]},l=function(t){return c(t)===t.charAt(17).toUpperCase()},d=function(t){var n=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(t);if(!n)return!1;var u=t.substring(0,2);if(!(n=f(u)))return!1;var i="19".concat(t.substring(6,12));return!!(n=o(i))},v=function(t){var n=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(t);if(!n)return!1;var u=t.substring(0,2);if(!(n=f(u)))return!1;var i=t.substring(6,14);return!!(n=o(i))&&l(t)};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(n=t)&&(15===n.length?d(n):v(n))},'zh-TW':function(t){var n={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},u=t.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(u)&&Array.from(u).reduce(function(t,u,i){if(0===i){var s=n[u];return s%10*9+Math.floor(s/10)}return 9===i?(10-t%10-Number(u))%10==0:t+Number(u)*(9-i)},0)}};m.exports=e.default,m.exports.default=e.default},886,[684,747]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsISRC=e.isISRC=e.IS_ISRC=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_ISRC='isISRC',e.isISRC=u,e.IsISRC=function(t){return r(d[1]).ValidateBy({name:e.IS_ISRC,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be an ISRC'},t)}},t)}},887,[888,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;m.exports=e.default,m.exports.default=e.default},888,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsLocale=e.isLocale=e.IS_LOCALE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_LOCALE='isLocale',e.isLocale=n,e.IsLocale=function(t){return r(d[1]).ValidateBy({name:e.IS_LOCALE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be locale'},t)}},t)}},889,[890,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,u.default)(t),'en_US_POSIX'===t||'ca_ES_VALENCIA'===t)return!0;return _.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var _=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;m.exports=e.default,m.exports.default=e.default},890,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMagnetURI=e.isMagnetURI=e.IS_MAGNET_URI=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_MAGNET_URI='isMagnetURI',e.isMagnetURI=u,e.IsMagnetURI=function(t){return r(d[1]).ValidateBy({name:e.IS_MAGNET_URI,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be magnet uri format'},t)}},t)}},891,[892,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),s.test(t.trim())};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;m.exports=e.default,m.exports.default=e.default},892,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsMimeType=e.isMimeType=e.IS_MIME_TYPE=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_MIME_TYPE='isMimeType',e.isMimeType=n,e.IsMimeType=function(t){return r(d[1]).ValidateBy({name:e.IS_MIME_TYPE,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be MIME type format'},t)}},t)}},893,[894,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,s.default)(t),u.test(t)||l.test(t)||o.test(t)};var t,s=(t=r(d[0]))&&t.__esModule?t:{default:t};var u=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,l=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;m.exports=e.default,m.exports.default=e.default},894,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsOctal=e.isOctal=e.IS_OCTAL=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_OCTAL='isOctal',e.isOctal=n,e.IsOctal=function(t){return r(d[1]).ValidateBy({name:e.IS_OCTAL,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be valid octal number'},t)}},t)}},895,[896,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,u.default)(t),f.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=/^(0o)?[0-7]+$/i;m.exports=e.default,m.exports.default=e.default},896,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPassportNumber=e.isPassportNumber=e.IS_PASSPORT_NUMBER=void 0;var s=t(r(d[0]));function u(t,u){return'string'==typeof t&&s.default(t,u)}e.IS_PASSPORT_NUMBER='isPassportNumber',e.isPassportNumber=u,e.IsPassportNumber=function(t,s){return r(d[1]).ValidateBy({name:e.IS_PASSPORT_NUMBER,constraints:[t],validator:{validate:function(t,s){return u(t,s.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be valid passport number'},s)}},s)}},897,[898,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t){(0,A.default)($);var u=$.replace(/\s/g,'').toUpperCase();return t.toUpperCase()in Z&&Z[t].test(u)};var $,A=($=r(d[0]))&&$.__esModule?$:{default:$};var Z={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};m.exports=e.default,m.exports.default=e.default},898,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsPostalCode=e.isPostalCode=e.IS_POSTAL_CODE=void 0;var o=t(r(d[0]));function s(t,s){return'string'==typeof t&&o.default(t,s)}e.IS_POSTAL_CODE='isPostalCode',e.isPostalCode=s,e.IsPostalCode=function(t,o){return r(d[1]).ValidateBy({name:e.IS_POSTAL_CODE,constraints:[t],validator:{validate:function(t,o){return s(t,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a postal code'},o)}},o)}},899,[900,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function($,t){if((0,s.default)($),t in A)return A[t].test($);if('any'===t){for(var n in A)if(A.hasOwnProperty(n)){var o=A[n];if(o.test($))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},e.locales=void 0;var $,s=($=r(d[0]))&&$.__esModule?$:{default:$};var t=/^\d{4}$/,n=/^\d{5}$/,o=/^\d{6}$/,A={AD:/^AD\d{3}$/,AT:t,AU:t,AZ:/^AZ\d{4}$/,BE:t,BG:t,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:t,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:n,DK:t,DO:n,DZ:n,EE:n,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:n,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:t,ID:n,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:n,JP:/^\d{3}\-\d{4}$/,KE:n,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:t,LV:/^LV\-\d{4}$/,LK:n,MX:n,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:n,NL:/^\d{4}\s?[a-z]{2}$/i,NO:t,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:t,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:o,RU:o,SA:n,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:o,SI:t,SK:/^\d{3}\s?\d{2}$/,TH:n,TN:t,TW:/^\d{3}(\d{2})?$/,UA:n,US:/^\d{5}(-\d{4})?$/,ZA:t,ZM:n},T=Object.keys(A);e.locales=T},900,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsRFC3339=e.isRFC3339=e.IS_RFC_3339=void 0;var u=t(r(d[0]));function n(t){return'string'==typeof t&&u.default(t)}e.IS_RFC_3339='isRFC3339',e.isRFC3339=n,e.IsRFC3339=function(t){return r(d[1]).ValidateBy({name:e.IS_RFC_3339,validator:{validate:function(t,u){return n(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be RFC 3339 date'},t)}},t)}},901,[902,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){return(0,o.default)(c),x.test(c)};var c,o=(c=r(d[0]))&&c.__esModule?c:{default:c};var t=/([01][0-9]|2[0-3])/,u=/[0-5][0-9]/,n=new RegExp("[-+]".concat(t.source,":").concat(u.source)),s=new RegExp("([zZ]|".concat(n.source,")")),f=new RegExp("".concat(t.source,":").concat(u.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),l=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),p=new RegExp("".concat(f.source).concat(s.source)),x=new RegExp("^".concat(l.source,"[ tT]").concat(p.source,"$"));m.exports=e.default,m.exports.default=e.default},902,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsRgbColor=e.isRgbColor=e.IS_RGB_COLOR=void 0;var o=t(r(d[0]));function n(t,n){return'string'==typeof t&&o.default(t,n)}e.IS_RGB_COLOR='isRgbColor',e.isRgbColor=n,e.IsRgbColor=function(t,o){return r(d[1]).ValidateBy({name:e.IS_RGB_COLOR,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be RGB color'},o)}},o)}},903,[904,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,u.default)(t),!o)return s.test(t)||f.test(t);return s.test(t)||f.test(t)||l.test(t)||n.test(t)};var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var s=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,f=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,n=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;m.exports=e.default,m.exports.default=e.default},904,[684]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IsSemVer=e.isSemVer=e.IS_SEM_VER=void 0;var n=t(r(d[0]));function u(t){return'string'==typeof t&&n.default(t)}e.IS_SEM_VER='isSemVer',e.isSemVer=u,e.IsSemVer=function(t){return r(d[1]).ValidateBy({name:e.IS_SEM_VER,validator:{validate:function(t,n){return u(t)},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a Semantic Versioning Specification'},t)}},t)}},905,[906,674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return(0,t.default)(u),f.test(u)};var t=u(r(d[0]));function u(t){return t&&t.__esModule?t:{default:t}}var f=(0,u(r(d[1])).default)(['^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)','(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))','?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$'],'i');m.exports=e.default,m.exports.default=e.default},906,[684,907]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var n=t.join('');return new RegExp(n,u)},m.exports=e.default,m.exports.default=e.default},907,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function o(o){return o instanceof Boolean||'boolean'==typeof o}Object.defineProperty(e,"__esModule",{value:!0}),e.IsBoolean=e.isBoolean=e.IS_BOOLEAN=void 0,e.IS_BOOLEAN='isBoolean',e.isBoolean=o,e.IsBoolean=function(n){return r(d[0]).ValidateBy({name:e.IS_BOOLEAN,validator:{validate:function(n,t){return o(n)},defaultMessage:r(d[0]).buildMessage(function(o){return o+'$property must be a boolean value'},n)}},n)}},908,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Date&&!isNaN(t.getTime())}Object.defineProperty(e,"__esModule",{value:!0}),e.IsDate=e.isDate=e.IS_DATE=void 0,e.IS_DATE='isDate',e.isDate=t,e.IsDate=function(n){return r(d[0]).ValidateBy({name:e.IS_DATE,validator:{validate:function(n,s){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a Date instance'},n)}},n)}},909,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if('number'!=typeof t)return!1;if(t===1/0||t===-1/0)return n.allowInfinity;if(Number.isNaN(t))return n.allowNaN;if(void 0!==n.maxDecimalPlaces){var u=0;if(t%1!=0&&(u=t.toString().split('.')[1].length),u>n.maxDecimalPlaces)return!1}return Number.isFinite(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNumber=e.isNumber=e.IS_NUMBER=void 0,e.IS_NUMBER='isNumber',e.isNumber=t,e.IsNumber=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;return r(d[0]).ValidateBy({name:e.IS_NUMBER,constraints:[n],validator:{validate:function(n,u){return t(n,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a number conforming to the specified constraints'},u)}},u)}},910,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return Object.keys(t).map(function(n){return t[n]}).indexOf(n)>=0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsEnum=e.isEnum=e.IS_ENUM=void 0,e.IS_ENUM='isEnum',e.isEnum=n,e.IsEnum=function(t,u){return r(d[0]).ValidateBy({name:e.IS_ENUM,constraints:[t],validator:{validate:function(t,u){return n(t,u.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must be a valid enum value'},u)}},u)}},911,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'number'==typeof t&&Number.isInteger(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsInt=e.isInt=e.IS_INT=void 0,e.IS_INT='isInt',e.isInt=t,e.IsInt=function(n){return r(d[0]).ValidateBy({name:e.IS_INT,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an integer number'},n)}},n)}},912,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof String||'string'==typeof t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsString=e.isString=e.IS_STRING=void 0,e.IS_STRING='isString',e.isString=t,e.IsString=function(n){return r(d[0]).ValidateBy({name:e.IS_STRING,validator:{validate:function(n,s){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be a string'},n)}},n)}},913,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Array}Object.defineProperty(e,"__esModule",{value:!0}),e.IsArray=e.isArray=e.IS_ARRAY=void 0,e.IS_ARRAY='isArray',e.isArray=t,e.IsArray=function(n){return r(d[0]).ValidateBy({name:e.IS_ARRAY,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an array'},n)}},n)}},914,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return null!=t&&('object'==typeof t||'function'==typeof t)&&!Array.isArray(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.IsObject=e.isObject=e.IS_OBJECT=void 0,e.IS_OBJECT='isObject',e.isObject=t,e.IsObject=function(n){return r(d[0]).ValidateBy({name:e.IS_OBJECT,validator:{validate:function(n,u){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must be an object'},n)}},n)}},915,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&t.every(function(t){return-1!==n.indexOf(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayContains=e.arrayContains=e.ARRAY_CONTAINS=void 0,e.ARRAY_CONTAINS='arrayContains',e.arrayContains=n,e.ArrayContains=function(t,o){return r(d[0]).ValidateBy({name:e.ARRAY_CONTAINS,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must contain $constraint1 values'},o)}},o)}},916,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&t.every(function(t){return-1===n.indexOf(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNotContains=e.arrayNotContains=e.ARRAY_NOT_CONTAINS=void 0,e.ARRAY_NOT_CONTAINS='arrayNotContains',e.arrayNotContains=n,e.ArrayNotContains=function(t,o){return r(d[0]).ValidateBy({name:e.ARRAY_NOT_CONTAINS,constraints:[t],validator:{validate:function(t,o){return n(t,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property should not contain $constraint1 values'},o)}},o)}},917,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t){return t instanceof Array&&t.length>0}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayNotEmpty=e.arrayNotEmpty=e.ARRAY_NOT_EMPTY=void 0,e.ARRAY_NOT_EMPTY='arrayNotEmpty',e.arrayNotEmpty=t,e.ArrayNotEmpty=function(n){return r(d[0]).ValidateBy({name:e.ARRAY_NOT_EMPTY,validator:{validate:function(n,o){return t(n)},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property should not be empty'},n)}},n)}},918,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return n instanceof Array&&n.length>=t}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayMinSize=e.arrayMinSize=e.ARRAY_MIN_SIZE=void 0,e.ARRAY_MIN_SIZE='arrayMinSize',e.arrayMinSize=n,e.ArrayMinSize=function(t,s){return r(d[0]).ValidateBy({name:e.ARRAY_MIN_SIZE,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n){return n+'$property must contain at least $constraint1 elements'},s)}},s)}},919,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){return t instanceof Array&&t.length<=n}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayMaxSize=e.arrayMaxSize=e.ARRAY_MAX_SIZE=void 0,e.ARRAY_MAX_SIZE='arrayMaxSize',e.arrayMaxSize=t,e.ArrayMaxSize=function(n,o){return r(d[0]).ValidateBy({name:e.ARRAY_MAX_SIZE,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(t){return t+'$property must contain not more than $constraint1 elements'},o)}},o)}},920,[674]); +__d(function(g,r,i,_a,m,e,d){"use strict";function n(n,t){if(!(n instanceof Array))return!1;t&&(n=n.map(function(n){return null!=n?t(n):n}));var u=n.filter(function(n,t,u){return u.indexOf(n)===t});return n.length===u.length}Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUnique=e.arrayUnique=e.ARRAY_UNIQUE=void 0,e.ARRAY_UNIQUE='arrayUnique',e.arrayUnique=n,e.ArrayUnique=function(t,u){var a='function'==typeof t?t:void 0,o='function'!=typeof t?t:u;return r(d[0]).ValidateBy({name:e.ARRAY_UNIQUE,validator:{validate:function(t,u){return n(t,a)},defaultMessage:r(d[0]).buildMessage(function(n){return n+"All $property's elements must be unique"},o)}},o)}},921,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,n){if(!r(d[0]).isObject(t))return!1;if(!0===(null===n||void 0===n?void 0:n.nullable))return!Object.values(t).every(function(t){return null===t||void 0===t});for(var o in t)if(t.hasOwnProperty(o))return!0;return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.IsNotEmptyObject=e.isNotEmptyObject=e.IS_NOT_EMPTY_OBJECT=void 0,e.IS_NOT_EMPTY_OBJECT='isNotEmptyObject',e.isNotEmptyObject=t,e.IsNotEmptyObject=function(n,o){return r(d[1]).ValidateBy({name:e.IS_NOT_EMPTY_OBJECT,constraints:[n],validator:{validate:function(n,o){return t(n,o.constraints[0])},defaultMessage:r(d[1]).buildMessage(function(t){return t+'$property must be a non-empty object'},o)}},o)}},922,[915,674]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n,t){return t&&'function'==typeof t&&n instanceof t}Object.defineProperty(e,"__esModule",{value:!0}),e.IsInstance=e.isInstance=e.IS_INSTANCE=void 0,e.IS_INSTANCE='isInstance',e.isInstance=n,e.IsInstance=function(t,s){return r(d[0]).ValidateBy({name:e.IS_INSTANCE,constraints:[t],validator:{validate:function(t,s){return n(t,s.constraints[0])},defaultMessage:r(d[0]).buildMessage(function(n,t){return t.constraints[0]?n+"$property must be an instance of "+t.constraints[0].name:n+(e.IS_INSTANCE+" decorator expects and object as value, but got falsy value.")},s)}},s)}},923,[674]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},924,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"toString",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",h=n?"\x1b[1m":"",c=n?"\x1b[22m":"",u=function(n){return" - property "+h+s+n+c+" has failed the following constraints: "+h+Object.keys(t.constraints).join(", ")+c+" \n"};if(o){var l=Number.isInteger(+this.property)?"["+this.property+"]":(s?".":"")+this.property;return this.constraints?u(l):this.children?this.children.map(function(t){return t.toString(n,!0,""+s+l)}).join(""):""}return"An instance of "+h+(this.target?this.target.constructor.name:'an object')+c+" has failed the validation:\n"+(this.constraints?u(this.property):"")+(this.children?this.children.map(function(o){return o.toString(n,!0,t.property)}).join(""):"")}}]),t})();e.ValidationError=t},925,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},926,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},927,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},928,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Validator=void 0;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"validate",value:function(t,n,o){return this.coreValidate(t,n,o)}},{key:"validateOrReject",value:function(t,n,o){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.coreValidate(t,n,o));case 2:if(!(s=u.sent).length){u.next=5;break}return u.abrupt("return",Promise.reject(s));case 5:case"end":return u.stop()}},null,this,null,Promise)}},{key:"validateSync",value:function(t,n,o){var s='string'==typeof t?n:t,u='string'==typeof t?o:n,c='string'==typeof t?t:void 0,l=new(r(d[3]).ValidationExecutor)(this,u);l.ignoreAsyncValidations=!0;var f=[];return l.execute(s,c,f),l.stripEmptyErrors(f)}},{key:"coreValidate",value:function(t,n,o){var s='string'==typeof t?n:t,u='string'==typeof t?o:n,c='string'==typeof t?t:void 0,l=new(r(d[3]).ValidationExecutor)(this,u),f=[];return l.execute(s,c,f),Promise.all(l.awaitingPromises).then(function(){return l.stripEmptyErrors(f)})}}]),t})();e.Validator=t},929,[7,8,82,930]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationExecutor=void 0;var t=(function(){function t(n,o){r(d[0])(this,t),this.validator=n,this.validatorOptions=o,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=r(d[1]).getMetadataStorage()}return r(d[2])(t,[{key:"execute",value:function(t,n,o){var s,l=this;this.metadataStorage.hasValidationMetaData||!0!==(null===(s=this.validatorOptions)||void 0===s?void 0:s.enableDebugMessages)||console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");var c=this.validatorOptions?this.validatorOptions.groups:void 0,u=this.validatorOptions&&this.validatorOptions.strictGroups||!1,p=this.validatorOptions&&this.validatorOptions.always||!1,v=this.metadataStorage.getTargetValidationMetadatas(t.constructor,n,p,u,c),h=this.metadataStorage.groupByPropertyName(v);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!v.length){var f=new(r(d[3]).ValidationError);return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(f.target=t),f.value=void 0,f.property=void 0,f.children=[],f.constraints={unknownValue:'an unknown value was passed to the validate function'},void o.push(f)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,h,o),Object.keys(h).forEach(function(n){var s=t[n],c=h[n].filter(function(t){return t.type===r(d[4]).ValidationTypes.IS_DEFINED}),u=h[n].filter(function(t){return t.type!==r(d[4]).ValidationTypes.IS_DEFINED&&t.type!==r(d[4]).ValidationTypes.WHITELIST});s instanceof Promise&&u.find(function(t){return t.type===r(d[4]).ValidationTypes.PROMISE_VALIDATION})?l.awaitingPromises.push(s.then(function(s){l.performValidations(t,s,n,c,u,o)})):l.performValidations(t,s,n,c,u,o)})}},{key:"whitelist",value:function(t,n,o){var s=this,l=[];Object.keys(t).forEach(function(t){n[t]&&0!==n[t].length||l.push(t)}),l.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?l.forEach(function(n){var l=s.generateValidationError(t,t[n],n);l.constraints=r(d[5])({},r(d[4]).ValidationTypes.WHITELIST,"property "+n+" should not exist"),l.children=void 0,o.push(l)}):l.forEach(function(n){return delete t[n]}))}},{key:"stripEmptyErrors",value:function(t){var n=this;return t.filter(function(t){if(t.children&&(t.children=n.stripEmptyErrors(t.children)),0===Object.keys(t.constraints).length){if(0===t.children.length)return!1;delete t.constraints}return!0})}},{key:"performValidations",value:function(t,n,o,s,l,c){var u=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.CUSTOM_VALIDATION}),p=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.NESTED_VALIDATION}),v=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.CONDITIONAL_VALIDATION}),h=this.generateValidationError(t,n,o);c.push(h),this.conditionalValidations(t,n,v)&&(this.customValidations(t,n,s,h),this.mapContexts(t,n,s,h),void 0===n&&this.validatorOptions&&!0===this.validatorOptions.skipUndefinedProperties||null===n&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||(null!==n&&void 0!==n||!this.validatorOptions||!0!==this.validatorOptions.skipMissingProperties)&&(this.customValidations(t,n,u,h),this.nestedValidations(n,p,h.children),this.mapContexts(t,n,l,h),this.mapContexts(t,n,u,h)))}},{key:"generateValidationError",value:function(t,n,o){var s=new(r(d[3]).ValidationError);return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(s.target=t),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(s.value=n),s.property=o,s.children=[],s.constraints={},s}},{key:"conditionalValidations",value:function(t,n,o){return o.map(function(o){return o.constraints[0](t,n)}).reduce(function(t,n){return t&&n},!0)}},{key:"customValidations",value:function(t,n,o,s){var l=this;o.forEach(function(o){l.metadataStorage.getTargetValidatorConstraints(o.constraintCls).forEach(function(c){if(!(c.async&&l.ignoreAsyncValidations||l.validatorOptions&&l.validatorOptions.stopAtFirstError&&Object.keys(s.constraints||{}).length>0)){var u={targetName:t.constructor?t.constructor.name:void 0,property:o.propertyName,object:t,value:n,constraints:o.constraints};if(o.each&&(n instanceof Array||n instanceof Set||n instanceof Map)){var p=r(d[6]).convertToArray(n).map(function(t){return c.instance.validate(t,u)});if(p.some(function(t){return r(d[6]).isPromise(t)})){var v=p.map(function(t){return r(d[6]).isPromise(t)?t:Promise.resolve(t)}),h=Promise.all(v).then(function(u){if(!u.every(function(t){return t})){var p=l.createValidationError(t,n,o,c),v=r(d[7])(p,2),h=v[0],f=v[1];s.constraints[h]=f,o.context&&(s.contexts||(s.contexts={}),s.contexts[h]=r(d[8])(s.contexts[h]||{},o.context))}});l.awaitingPromises.push(h)}else{if(!p.every(function(t){return t})){var f=l.createValidationError(t,n,o,c),y=r(d[7])(f,2),O=y[0],V=y[1];s.constraints[O]=V}}}else{var E=c.instance.validate(n,u);if(r(d[6]).isPromise(E)){var T=E.then(function(u){if(!u){var p=l.createValidationError(t,n,o,c),v=r(d[7])(p,2),h=v[0],f=v[1];s.constraints[h]=f,o.context&&(s.contexts||(s.contexts={}),s.contexts[h]=r(d[8])(s.contexts[h]||{},o.context))}});l.awaitingPromises.push(T)}else if(!E){var x=l.createValidationError(t,n,o,c),I=r(d[7])(x,2),k=I[0],A=I[1];s.constraints[k]=A}}}})})}},{key:"nestedValidations",value:function(t,n,o){var s=this;void 0!==t&&n.forEach(function(l){if(l.type===r(d[4]).ValidationTypes.NESTED_VALIDATION||l.type===r(d[4]).ValidationTypes.PROMISE_VALIDATION)if(t instanceof Array||t instanceof Set||t instanceof Map)(t instanceof Set?Array.from(t):t).forEach(function(l,c){s.performValidations(t,l,c.toString(),[],n,o)});else if(t instanceof Object){var c='string'==typeof l.target?l.target:l.target.name;s.execute(t,c,o)}else{var u=new(r(d[3]).ValidationError);u.value=t,u.property=l.propertyName,u.target=l.target;var p=s.createValidationError(l.target,t,l),v=r(d[7])(p,2),h=v[0],f=v[1];u.constraints=r(d[5])({},h,f),o.push(u)}})}},{key:"mapContexts",value:function(t,n,o,s){var l=this;return o.forEach(function(t){if(t.context){var n;if(t.type===r(d[4]).ValidationTypes.CUSTOM_VALIDATION)n=l.metadataStorage.getTargetValidatorConstraints(t.constraintCls)[0];var o=l.getConstraintType(t,n);s.constraints[o]&&(s.contexts||(s.contexts={}),s.contexts[o]=r(d[8])(s.contexts[o]||{},t.context))}})}},{key:"createValidationError",value:function(t,n,o,s){var l=t.constructor?t.constructor.name:void 0,c=this.getConstraintType(o,s),u={targetName:l,property:o.propertyName,object:t,value:n,constraints:o.constraints},p=o.message||'';return o.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||s&&s.instance.defaultMessage instanceof Function&&(p=s.instance.defaultMessage(u)),[c,r(d[9]).ValidationUtils.replaceMessageSpecialTokens(p,u)]}},{key:"getConstraintType",value:function(t,n){return n&&n.name?n.name:t.type}}]),t})();e.ValidationExecutor=t},930,[7,667,8,926,666,249,670,31,4,931]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return Array.isArray(n)?n.join(', '):""+n}Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationUtils=e.constraintToString=void 0,e.constraintToString=n;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"replaceMessageSpecialTokens",value:function(t,o){var c;return t instanceof Function?c=t(o):'string'==typeof t&&(c=t),c&&o.constraints instanceof Array&&o.constraints.forEach(function(t,o){c=c.replace(new RegExp("\\$constraint"+(o+1),'g'),n(t))}),c&&void 0!==o.value&&null!==o.value&&'string'==typeof o.value&&(c=c.replace(/\$value/g,o.value)),c&&(c=c.replace(/\$property/g,o.property)),c&&(c=c.replace(/\$target/g,o.targetName)),c}}]),t})();e.ValidationUtils=t},931,[7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},932,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.isValidationErrorArray=void 0,_e.isValidationErrorArray=function(n){return!!Array.isArray(n)&&n.length>0&&n.every(function(n){return n instanceof r(d[0]).ValidationError})}},933,[662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,o,i){var n,c=arguments.length,f=c<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,r,o,i);else for(var u=t.length-1;u>=0;u--)(n=t[u])&&(f=(c<3?n(f):c>3?n(r,o,f):n(r,o))||f);return c>3&&f&&Object.defineProperty(r,o,f),f},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureQuery=void 0;var o=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.featureType=r.featureType,this.match=r.match)});t([(0,_r(_d[2]).Expose)({name:'feature-type'}),(0,_r(_d[3]).IsString)(),r("design:type",String)],o.prototype,"featureType",void 0),t([(0,_r(_d[3]).IsString)(),r("design:type",String)],o.prototype,"match",void 0),e.FeatureQuery=o},934,[8,7,627,662]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.GoalCode=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){return r(d[3])(this,u),c.call(this,r(d[4])(r(d[4])({},t),{type:u.type}))}return r(d[5])(u)})(r(d[6]).Feature);_e.GoalCode=e,e.type='goal-code'},935,[14,11,9,7,4,8,625]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.GovernanceFramework=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){return r(d[3])(this,u),o.call(this,r(d[4])(r(d[4])({},t),{type:u.type}))}return r(d[5])(u)})(r(d[6]).Feature);_e.GovernanceFramework=e,e.type='gov-fw'},936,[14,11,9,7,4,8,625]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,o){var c,n=arguments.length,f=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(c=t[i])&&(f=(n<3?c(f):n>3?c(e,r,f):c(e,r))||f);return n>3&&f&&Object.defineProperty(e,r,f),f},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Protocol=void 0;var o=(function(e){_r(_d[2])(n,e);var r,o,c=(r=n,o=t(),function(){var t,e=_r(_d[0])(r);if(o){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function n(t){var e;return _r(_d[3])(this,n),e=c.call(this,_r(_d[4])(_r(_d[4])({},t),{type:n.type})),t&&(e.roles=t.roles),e}return _r(_d[5])(n)})(_r(_d[6]).Feature);o.type='protocol',e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],o.prototype,"roles",void 0),_e.Protocol=o},937,[14,11,9,7,4,8,625,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InboundMessageContext=void 0;var n=(function(){function n(t,s){r(d[0])(this,n),this.message=t,this.recipientKey=s.recipientKey,this.senderKey=s.senderKey,this.connection=s.connection,this.sessionId=s.sessionId,this.agentContext=s.agentContext}return r(d[1])(n,[{key:"assertReadyConnection",value:function(){if(!this.connection)throw new(r(d[2]).AriesFrameworkError)("No connection associated with incoming message "+this.message.type);return this.connection.assertReady(),this.connection}},{key:"toJSON",value:function(){var n,t;return{message:this.message,recipientKey:null===(n=this.recipientKey)||void 0===n?void 0:n.fingerprint,senderKey:null===(t=this.senderKey)||void 0===t?void 0:t.fingerprint,sessionId:this.sessionId,agentContext:this.agentContext.toJSON()}}}]),n})();e.InboundMessageContext=n},938,[7,8,612]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutboundMessageContext=void 0;var t=(function(){function t(s,n){r(d[0])(this,t),this.message=s,this.connection=n.connection,this.sessionId=n.sessionId,this.outOfBand=n.outOfBand,this.serviceParams=n.serviceParams,this.associatedRecord=n.associatedRecord,this.agentContext=n.agentContext}return r(d[1])(t,[{key:"assertReadyConnection",value:function(){if(!this.connection)throw new(r(d[2]).AriesFrameworkError)("No connection associated with outgoing message "+this.message.type);return this.connection.assertReady(),this.connection}},{key:"isOutboundServiceMessage",value:function(){var t;return void 0!==(null===(t=this.serviceParams)||void 0===t?void 0:t.service)}},{key:"toJSON",value:function(){return{message:this.message,outOfBand:this.outOfBand,associatedRecord:this.associatedRecord,sessionId:this.sessionId,serviceParams:this.serviceParams,agentContext:this.agentContext.toJSON(),connection:this.connection}}}]),t})();e.OutboundMessageContext=t},939,[7,8,612]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutboundMessageSendStatus=void 0,(function(n){n.SentToSession="SentToSession",n.SentToTransport="SentToTransport",n.QueuedForPickup="QueuedForPickup",n.Undeliverable="Undeliverable"})(e.OutboundMessageSendStatus||(e.OutboundMessageSendStatus={}))},940,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidJweStructure=void 0,e.isValidJweStructure=function(t){return Boolean(t&&'object'==typeof t&&null!==t&&'string'==typeof t.protected&&t.iv&&t.ciphertext&&t.tag)}},941,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function o(o){var s=(0,r(d[0]).rightSplit)(o,'/',3),t=r(d[1])(s,4),n=t[0],c=t[1],p=t[2],l=t[3],y=(0,r(d[2]).parseVersionString)(p),u=r(d[1])(y,2);return{documentUri:n,protocolName:c,protocolVersion:p,protocolMajorVersion:u[0],protocolMinorVersion:u[1],messageName:l,protocolUri:n+"/"+c+"/"+p,messageTypeUri:o}}function s(o,s){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allowLegacyDidSovPrefixMismatch,c=void 0===n||n?t(o.documentUri):o.documentUri,p=s.documentUri===c,l=s.protocolName===o.protocolName,y=s.protocolMajorVersion===o.protocolMajorVersion,u=s.messageName===o.messageName;return p&&l&&y&&u}function t(o){return o.startsWith("did:sov:BzCbsNYhMrjHiqZDTUASHg;spec")?o.replace("did:sov:BzCbsNYhMrjHiqZDTUASHg;spec",'https://didcomm.org'):o}function n(o){return o.startsWith("https://didcomm.org")?o.replace("https://didcomm.org",'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'):o}Object.defineProperty(e,"__esModule",{value:!0}),e.replaceNewDidCommPrefixWithLegacyDidSov=e.replaceLegacyDidSovPrefix=e.replaceNewDidCommPrefixWithLegacyDidSovOnMessage=e.replaceLegacyDidSovPrefixOnMessage=e.IsValidMessageType=e.canHandleMessageType=e.supportsIncomingMessageType=e.parseMessageType=void 0,e.parseMessageType=o,e.supportsIncomingMessageType=s,e.canHandleMessageType=function(o,t){return s(o.type,t)},e.IsValidMessageType=function(t,n){return(0,r(d[3]).ValidateBy)({name:'isValidMessageType',constraints:[t],validator:{validate:function(t,n){var c=r(d[1])(n.constraints,1)[0];return'string'==typeof t&&s(o(t),c)},defaultMessage:(0,r(d[3]).buildMessage)(function(o){return o+'$property does not match the expected message type (only minor version may be lower)'},n)}},n)},e.replaceLegacyDidSovPrefixOnMessage=function(o){o['@type']=t(o['@type'])},e.replaceNewDidCommPrefixWithLegacyDidSovOnMessage=function(o){o['@type']=n(o['@type'])},e.replaceLegacyDidSovPrefix=t,e.replaceNewDidCommPrefixWithLegacyDidSov=n},942,[943,31,944,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rightSplit=void 0,e.rightSplit=function(t,c,n){var l=t.split(c);return n?[l.slice(0,-n).join(c)].concat(l.slice(-n)):l}},943,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFirstVersionEqualToSecond=e.isFirstVersionHigherThanSecond=e.parseVersionString=void 0,e.parseVersionString=function(n){var o=n.split('.'),s=r(d[0])(o,3),t=s[0],u=s[1],c=s[2];return[Number(t),Number(u),Number(null!==c&&void 0!==c?c:'0')]},e.isFirstVersionHigherThanSecond=function(n,o){return n[0]>o[0]||n[0]==o[0]&&n[1]>o[1]||n[0]==o[0]&&n[1]==o[1]&&n[2]>o[2]},e.isFirstVersionEqualToSecond=function(n,o){return n[0]===o[0]&&n[1]===o[1]&&n[2]===o[2]}},944,[31]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},945,[946,1333,1334]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},946,[947]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e)).problemReport=new(r(d[4]).ProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).AriesFrameworkError);_e.ProblemReportError=t},947,[14,11,9,7,948,8,613]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e,i,o,r=this&&this.__decorate||function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProblemReportMessage=_e.OtherStatus=_e.WhereStatus=_e.ImpactStatus=_e.WhoRetriesStatus=void 0,(function(t){t.You="YOU",t.Me="ME",t.Both="BOTH",t.None="NONE"})(e=_e.WhoRetriesStatus||(_e.WhoRetriesStatus={})),(function(t){t.Message="MESSAGE",t.Thread="THREAD",t.Connection="CONNECTION"})(i=_e.ImpactStatus||(_e.ImpactStatus={})),(function(t){t.Cloud="CLOUD",t.Edge="EDGE",t.Wire="WIRE",t.Agency="AGENCY"})(o=_e.WhereStatus||(_e.WhereStatus={})),(function(t){t.You="YOU",t.Me="ME",t.Other="OTHER"})(_e.OtherStatus||(_e.OtherStatus={}));var s=(function(e){_r(_d[2])(n,e);var i,o,r=(i=n,o=t(),function(){var t,e=_r(_d[0])(i);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function n(t){var e;return _r(_d[3])(this,n),(e=r.call(this)).type=n.type.messageTypeUri,t&&(e.id=t.id||e.generateId(),e.description=t.description,e.problemItems=t.problemItems,e.whoRetries=t.whoRetries,e.fixHint=t.fixHint,e.impact=t.impact,e.where=t.where,e.noticedTime=t.noticedTime,e.trackingUri=t.trackingUri,e.escalationUri=t.escalationUri),e}return _r(_d[4])(n)})(_r(_d[5]).AgentMessage);s.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/notification/1.0/problem-report'),r([(0,_r(_d[6]).IsValidMessageType)(s.type),n("design:type",String)],s.prototype,"type",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'problem_items'}),n("design:type",Array)],s.prototype,"problemItems",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(e),(0,_r(_d[8]).Expose)({name:'who_retries'}),n("design:type",String)],s.prototype,"whoRetries",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'fix_hint'}),n("design:type",Object)],s.prototype,"fixHint",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(o),n("design:type",String)],s.prototype,"where",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(i),n("design:type",String)],s.prototype,"impact",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'noticed_time'}),n("design:type",String)],s.prototype,"noticedTime",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'tracking_uri'}),n("design:type",String)],s.prototype,"trackingUri",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'escalation_uri'}),n("design:type",String)],s.prototype,"escalationUri",void 0),_e.ProblemReportMessage=s},948,[14,11,9,7,8,949,942,662,627]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AgentMessage=void 0;var t=(function(t){r(d[10])(s,t);var n,o,c=(n=s,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(){return r(d[11])(this,s),c.apply(this,arguments)}return r(d[12])(s,[{key:"toJSON",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).useLegacyDidSovPrefix,t=void 0!==e&&e,n=r(d[13]).JsonTransformer.toJSON(this);return t&&(0,r(d[14]).replaceNewDidCommPrefixWithLegacyDidSovOnMessage)(n),n}},{key:"is",value:function(e){return this.type===e.type.messageTypeUri}}]),s})((0,r(d[2]).ThreadDecorated)((0,r(d[3]).L10nDecorated)((0,r(d[4]).TransportDecorated)((0,r(d[5]).TimingDecorated)((0,r(d[6]).AckDecorated)((0,r(d[7]).AttachmentDecorated)((0,r(d[8]).ServiceDecorated)(r(d[9]).BaseMessage))))))));_e.AgentMessage=t},949,[14,11,950,969,971,973,975,977,984,952,9,7,8,626,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(o=e[f])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ThreadDecorated=void 0,_e.ThreadDecorated=function(n){var o=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(){return _r(_d[3])(this,c),o.apply(this,arguments)}return _r(_d[4])(c,[{key:"threadId",get:function(){var e,t;return null!==(t=null===(e=this.thread)||void 0===e?void 0:e.threadId)&&void 0!==t?t:this.id}},{key:"setThread",value:function(e){this.thread=new(_r(_d[5]).ThreadDecorator)(e)}}]),c})(n);return t([(0,_r(_d[6]).Expose)({name:'~thread'}),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).ThreadDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).ThreadDecorator),r("design:type",_r(_d[5]).ThreadDecorator)],o.prototype,"thread",void 0),o}},950,[14,11,9,7,8,951,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,d,o){var i,n=arguments.length,s=n<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,d):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,d,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(n<3?i(s):n>3?i(r,d,s):i(r,d))||s);return n>3&&s&&Object.defineProperty(r,d,s),s},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.ThreadDecorator=void 0;var d=_r(_d[0])(function t(r){_r(_d[1])(this,t),this.threadId=null===r||void 0===r?void 0:r.threadId,this.parentThreadId=null===r||void 0===r?void 0:r.parentThreadId,this.senderOrder=null===r||void 0===r?void 0:r.senderOrder,this.receivedOrders=null===r||void 0===r?void 0:r.receivedOrders});t([(0,_r(_d[2]).Expose)({name:'thid'}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),(0,_r(_d[3]).IsOptional)(),r("design:type",String)],d.prototype,"threadId",void 0),t([(0,_r(_d[2]).Expose)({name:'pthid'}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),(0,_r(_d[3]).IsOptional)(),r("design:type",String)],d.prototype,"parentThreadId",void 0),t([(0,_r(_d[2]).Expose)({name:'sender_order'}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsInt)(),r("design:type",Number)],d.prototype,"senderOrder",void 0),t([(0,_r(_d[2]).Expose)({name:'received_orders'}),(0,_r(_d[3]).IsOptional)(),r("design:type",Object)],d.prototype,"receivedOrders",void 0),e.ThreadDecorator=d},951,[8,7,627,662,952]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,s,n,o){var r,i=arguments.length,p=i<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,s,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(p=(i<3?r(p):i>3?r(s,n,p):r(s,n))||p);return i>3&&p&&Object.defineProperty(s,n,p),p},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseMessage=e.MessageTypeRegExp=e.MessageIdRegExp=void 0,e.MessageIdRegExp=/[-_./a-zA-Z0-9]{8,64}/,e.MessageTypeRegExp=/(.*?)([a-zA-Z0-9._-]+)\/(\d[^/]*)\/([a-zA-Z0-9._-]+)$/;var n=(function(){function t(){_r(_d[0])(this,t)}return _r(_d[1])(t,[{key:"generateId",value:function(){return(0,_r(_d[2]).uuid)()}}]),t})();t([(0,_r(_d[3]).Matches)(e.MessageIdRegExp),(0,_r(_d[4]).Expose)({name:'@id'}),s("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[4]).Expose)({name:'@type'}),(0,_r(_d[3]).Matches)(e.MessageTypeRegExp),s("design:type",String)],n.prototype,"type",void 0),e.BaseMessage=n},952,[7,8,953,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uuid=void 0,e.uuid=function(){return(0,r(d[0]).v4)()}},953,[954]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return p.default}});var t=y(r(d[0])),n=y(r(d[1])),u=y(r(d[2])),f=y(r(d[3])),o=y(r(d[4])),l=y(r(d[5])),c=y(r(d[6])),b=y(r(d[7])),p=y(r(d[8]));function y(t){return t&&t.__esModule?t:{default:t}}},954,[955,960,964,965,967,968,958,957,962]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,u=s(r(d[0])),l=s(r(d[1]));function s(n){return n&&n.__esModule?n:{default:n}}var t=0,c=0;var v=function(s,v,i){var f=v&&i||0,_=v||new Array(16),w=(s=s||{}).node||n,k=void 0!==s.clockseq?s.clockseq:o;if(null==w||null==k){var q=s.random||(s.rng||u.default)();null==w&&(w=n=[1|q[0],q[1],q[2],q[3],q[4],q[5]]),null==k&&(k=o=16383&(q[6]<<8|q[7]))}var M=void 0!==s.msecs?s.msecs:Date.now(),h=void 0!==s.nsecs?s.nsecs:c+1,y=M-t+(h-c)/1e4;if(y<0&&void 0===s.clockseq&&(k=k+1&16383),(y<0||M>t)&&void 0===s.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");t=M,c=h,o=k;var b=(1e4*(268435455&(M+=122192928e5))+h)%4294967296;_[f++]=b>>>24&255,_[f++]=b>>>16&255,_[f++]=b>>>8&255,_[f++]=255&b;var j=M/4294967296*1e4&268435455;_[f++]=j>>>8&255,_[f++]=255&j,_[f++]=j>>>24&15|16,_[f++]=j>>>16&255,_[f++]=k>>>8|128,_[f++]=255&k;for(var p=0;p<6;++p)_[f+p]=w[p];return v||(0,l.default)(_)};e.default=v},955,[956,957]); -__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!t&&!(t='undefined'!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||'undefined'!=typeof msCrypto&&'function'==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return t(o)};var o=new Uint8Array(16)},956,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=r(d[0]))&&t.__esModule?t:{default:t};for(var o=[],u=0;u<256;++u)o.push((u+256).toString(16).substr(1));var f=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(o[t[u+0]]+o[t[u+1]]+o[t[u+2]]+o[t[u+3]]+'-'+o[t[u+4]]+o[t[u+5]]+'-'+o[t[u+6]]+o[t[u+7]]+'-'+o[t[u+8]]+o[t[u+9]]+'-'+o[t[u+10]]+o[t[u+11]]+o[t[u+12]]+o[t[u+13]]+o[t[u+14]]+o[t[u+15]]).toLowerCase();if(!(0,i.default)(f))throw TypeError('Stringified UUID is invalid');return f};e.default=f},957,[958]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=function(t){return'string'==typeof t&&u.default.test(t)};e.default=f},958,[959]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},959,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}var l=(0,t.default)('v3',48,u.default);e.default=l},960,[961,963]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,i,l){function s(u,f,c,s){if('string'==typeof u&&(u=o(u)),'string'==typeof f&&(f=(0,n.default)(f)),16!==f.length)throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');var b=new Uint8Array(16+u.length);if(b.set(f),b.set(u,f.length),(b=l(b))[6]=15&b[6]|i,b[8]=63&b[8]|128,c){s=s||0;for(var v=0;v<16;++v)c[s+v]=b[v];return c}return(0,t.default)(b)}try{s.name=u}catch(t){}return s.DNS=f,s.URL=c,s},e.URL=e.DNS=void 0;var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(t){t=unescape(encodeURIComponent(t));for(var n=[],u=0;u>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=255&s,l[4]=(s=parseInt(t.slice(9,13),16))>>>8,l[5]=255&s,l[6]=(s=parseInt(t.slice(14,18),16))>>>8,l[7]=255&s,l[8]=(s=parseInt(t.slice(19,23),16))>>>8,l[9]=255&s,l[10]=(s=parseInt(t.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=255&s,l};e.default=s},962,[958]); -__d(function(g,r,_i,_a,m,e,_d){"use strict";function n(n){for(var t=[],u=32*n.length,f=0;f>5]>>>f%32&255,a=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(a)}return t}function t(n){return 14+(n+64>>>9<<4)+1}function u(n,u){n[u>>5]|=128<>5]|=(255&n[o/8])<>16)+(t>>16)+(u>>16)<<16|65535&u}function a(n,t,u,f,a,c){return o((i=o(o(t,n),o(f,c)))<<(v=a)|i>>>32-v,u);var i,v}function c(n,t,u,f,o,c,i){return a(t&u|~t&f,n,t,o,c,i)}function i(n,t,u,f,o,c,i){return a(t&f|u&~f,n,t,o,c,i)}function v(n,t,u,f,o,c,i){return a(t^u^f,n,t,o,c,i)}function h(n,t,u,f,o,c,i){return a(u^(t|~f),n,t,o,c,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t){if('string'==typeof t){var o=unescape(encodeURIComponent(t));t=new Uint8Array(o.length);for(var a=0;a>>32-t}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var a=function(a){var n=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof a){var f=unescape(encodeURIComponent(a));a=[];for(var u=0;u>>0;C=U,U=_,_=t(M,30)>>>0,M=w,w=I}o[0]=o[0]+w>>>0,o[1]=o[1]+M>>>0,o[2]=o[2]+_>>>0,o[3]=o[3]+U>>>0,o[4]=o[4]+C>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};_e.default=a},966,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default='00000000-0000-0000-0000-000000000000'},967,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=function(t){if(!(0,u.default)(t))throw TypeError('Invalid UUID');return parseInt(t.substr(14,1),16)};e.default=f},968,[958]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(i=(c<3?r(i):c>3?r(t,n,i):r(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.L10nDecorated=void 0,_e.L10nDecorated=function(o){var r=(function(t){_r(_d[2])(c,t);var n,o,r=(n=c,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(){return _r(_d[3])(this,c),r.apply(this,arguments)}return _r(_d[4])(c,[{key:"addLocale",value:function(e){this.l10n=new(_r(_d[5]).L10nDecorator)({locale:e})}},{key:"getLocale",value:function(){var e;if(null===(e=this.l10n)||void 0===e?void 0:e.locale)return this.l10n.locale}}]),c})(o);return t([(0,_r(_d[6]).Expose)({name:'~l10n'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).L10nDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).L10nDecorator),n("design:type",_r(_d[5]).L10nDecorator)],r.prototype,"l10n",void 0),r}},969,[14,11,9,7,8,970,627,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.L10nDecorator=void 0;var o=r(d[0])(function o(t){r(d[1])(this,o),this.locale=null===t||void 0===t?void 0:t.locale});e.L10nDecorator=o},970,[8,7]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,u=arguments.length,s=u<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(u<3?o(s):u>3?o(e,r,s):o(e,r))||s);return u>3&&s&&Object.defineProperty(e,r,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TransportDecorated=void 0,_e.TransportDecorated=function(n){var o=(function(e){_r(_d[2])(u,e);var r,n,o=(r=u,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function u(){return _r(_d[3])(this,u),o.apply(this,arguments)}return _r(_d[4])(u,[{key:"setReturnRouting",value:function(t,e){this.transport=new(_r(_d[5]).TransportDecorator)({returnRoute:t,returnRouteThread:e})}},{key:"hasReturnRouting",value:function(t){return!(!this.transport||!this.transport.returnRoute||this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.none)&&(this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.all||this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.thread&&this.transport.returnRouteThread===t)}},{key:"hasAnyReturnRoute",value:function(){var t,e=null===(t=this.transport)||void 0===t?void 0:t.returnRoute;return e===_r(_d[5]).ReturnRouteTypes.all||e===_r(_d[5]).ReturnRouteTypes.thread}}]),u})(n);return e([(0,_r(_d[6]).Expose)({name:'~transport'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).TransportDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).TransportDecorator),r("design:type",_r(_d[5]).TransportDecorator)],o.prototype,"transport",void 0),o}},971,[14,11,9,7,8,972,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t,r=this&&this.__decorate||function(t,r,o,n){var u,i=arguments.length,d=i<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,o,n);else for(var c=t.length-1;c>=0;c--)(u=t[c])&&(d=(i<3?u(d):i>3?u(r,o,d):u(r,o))||d);return i>3&&d&&Object.defineProperty(r,o,d),d},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.TransportDecorator=e.ReturnRouteTypes=void 0,(function(t){t.none="none",t.all="all",t.thread="thread"})(t=e.ReturnRouteTypes||(e.ReturnRouteTypes={}));var n=_r(_d[0])(function t(r){_r(_d[1])(this,t),this.returnRoute=null===r||void 0===r?void 0:r.returnRoute,this.returnRouteThread=null===r||void 0===r?void 0:r.returnRouteThread});r([(0,_r(_d[2]).Expose)({name:'return_route'}),(0,_r(_d[3]).IsEnum)(t),(0,_r(_d[3]).IsOptional)(),o("design:type",String)],n.prototype,"returnRoute",void 0),r([(0,_r(_d[2]).Expose)({name:'return_route_thread'}),(0,_r(_d[3]).ValidateIf)(function(r){return r.returnRoute===t.thread}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),o("design:type",String)],n.prototype,"returnRouteThread",void 0),e.TransportDecorator=n},972,[8,7,627,662,952]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,c=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(o<3?i(c):o>3?i(e,n,c):i(e,n))||c);return o>3&&c&&Object.defineProperty(e,n,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TimingDecorated=void 0,_e.TimingDecorated=function(r){var i=(function(e){_r(_d[2])(o,e);var n,r,i=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(){return _r(_d[3])(this,o),i.apply(this,arguments)}return _r(_d[4])(o,[{key:"setTiming",value:function(t){this.timing=new(_r(_d[5]).TimingDecorator)(t)}}]),o})(r);return e([(0,_r(_d[6]).Expose)({name:'~timing'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).TimingDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).TimingDecorator),(0,_r(_d[7]).IsOptional)(),n("design:type",_r(_d[5]).TimingDecorator)],i.prototype,"timing",void 0),i}},973,[14,11,9,7,8,974,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var l,s=arguments.length,p=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,i,o,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(p=(s<3?l(p):s>3?l(i,o,p):l(i,o))||p);return s>3&&p&&Object.defineProperty(i,o,p),p},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.TimingDecorator=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),this.inTime=null===i||void 0===i?void 0:i.inTime,this.outTime=null===i||void 0===i?void 0:i.outTime,this.staleTime=null===i||void 0===i?void 0:i.staleTime,this.expiresTime=null===i||void 0===i?void 0:i.expiresTime,this.delayMilli=null===i||void 0===i?void 0:i.delayMilli,this.waitUntilTime=null===i||void 0===i?void 0:i.waitUntilTime});t([(0,_r(_d[2]).Expose)({name:'in_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"inTime",void 0),t([(0,_r(_d[2]).Expose)({name:'out_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"outTime",void 0),t([(0,_r(_d[2]).Expose)({name:'stale_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"staleTime",void 0),t([(0,_r(_d[2]).Expose)({name:'expires_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"expiresTime",void 0),t([(0,_r(_d[2]).Expose)({name:'delay_milli'}),(0,_r(_d[3]).IsNumber)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Number)],o.prototype,"delayMilli",void 0),t([(0,_r(_d[2]).Expose)({name:'wait_until_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"waitUntilTime",void 0),e.TimingDecorator=o},974,[8,7,627,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,c,r);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(o<3?n(i):o>3?n(t,c,i):n(t,c))||i);return o>3&&i&&Object.defineProperty(t,c,i),i},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AckDecorated=void 0,_e.AckDecorated=function(r){var n=(function(t){_r(_d[2])(o,t);var c,r,n=(c=o,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(){return _r(_d[3])(this,o),n.apply(this,arguments)}return _r(_d[4])(o,[{key:"setPleaseAck",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[_r(_d[5]).AckValues.Receipt];this.pleaseAck=new(_r(_d[5]).AckDecorator)({on:e})}},{key:"getPleaseAck",value:function(){return this.pleaseAck}},{key:"requiresAck",value:function(){return void 0!==this.pleaseAck}}]),o})(r);return t([(0,_r(_d[6]).Expose)({name:'~please_ack'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).AckDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).AckDecorator),(0,_r(_d[7]).IsOptional)(),c("design:type",_r(_d[5]).AckDecorator)],n.prototype,"pleaseAck",void 0),n}},975,[14,11,9,7,8,976,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t,o=this&&this.__decorate||function(t,o,c,r){var n,i=arguments.length,f=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,c,r);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(f=(i<3?n(f):i>3?n(o,c,f):n(o,c))||f);return i>3&&f&&Object.defineProperty(o,c,f),f},c=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.AckDecorator=e.AckValues=void 0,(function(t){t.Receipt="RECEIPT",t.Outcome="OUTCOME"})(t=e.AckValues||(e.AckValues={}));var r=_r(_d[0])(function o(c){_r(_d[1])(this,o),this.on=[t.Receipt],c&&(this.on=c.on)});o([(0,_r(_d[2]).IsEnum)(t,{each:!0}),(0,_r(_d[2]).IsArray)(),c("design:type",Array)],r.prototype,"on",void 0),e.AckDecorator=r},976,[8,7,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,c){var r,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,c);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(i=(o<3?r(i):o>3?r(e,n,i):r(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AttachmentDecorated=void 0,_e.AttachmentDecorated=function(c){var r=(function(e){_r(_d[2])(o,e);var n,c,r=(n=o,c=t(),function(){var t,e=_r(_d[0])(n);if(c){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(){return _r(_d[3])(this,o),r.apply(this,arguments)}return _r(_d[4])(o,[{key:"getAppendedAttachmentById",value:function(t){var e;return null===(e=this.appendedAttachments)||void 0===e?void 0:e.find(function(e){return e.id===t})}},{key:"addAppendedAttachment",value:function(t){this.appendedAttachments?this.appendedAttachments.push(t):this.appendedAttachments=[t]}}]),o})(c);return e([(0,_r(_d[5]).Expose)({name:'~attach'}),(0,_r(_d[5]).Type)(function(){return _r(_d[6]).Attachment}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[6]).Attachment,{each:!0}),(0,_r(_d[7]).IsOptional)(),n("design:type",Array)],r.prototype,"appendedAttachments",void 0),r}},977,[14,11,9,7,8,627,978,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,s,n){var o,r=arguments.length,d=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,s,n);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(d=(r<3?o(d):r>3?o(i,s,d):o(i,s))||d);return r>3&&d&&Object.defineProperty(i,s,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Attachment=e.AttachmentData=void 0;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.base64=i.base64,this.json=i.json,this.links=i.links,this.jws=i.jws,this.sha256=i.sha256)});t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsBase64)(),i("design:type",String)],s.prototype,"base64",void 0),t([(0,_r(_d[2]).IsOptional)(),i("design:type",Object)],s.prototype,"json",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)({each:!0}),i("design:type",Array)],s.prototype,"links",void 0),t([(0,_r(_d[2]).IsOptional)(),i("design:type",Object)],s.prototype,"jws",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsHash)('sha256'),i("design:type",String)],s.prototype,"sha256",void 0),e.AttachmentData=s;var n=(function(){function t(i){var s;_r(_d[1])(this,t),i&&(this.id=null!==(s=i.id)&&void 0!==s?s:(0,_r(_d[3]).uuid)(),this.description=i.description,this.filename=i.filename,this.mimeType=i.mimeType,this.lastmodTime=i.lastmodTime,this.byteCount=i.byteCount,this.data=i.data)}return _r(_d[0])(t,[{key:"getDataAsJson",value:function(){if('string'==typeof this.data.base64)return _r(_d[4]).JsonEncoder.fromBase64(this.data.base64);if(this.data.json)return this.data.json;throw new(_r(_d[5]).AriesFrameworkError)('No attachment data found in `json` or `base64` data fields.')}},{key:"addJws",value:function(t){this.data.jws?'signatures'in this.data.jws?this.data.jws.signatures.push(t):this.data.jws={signatures:[this.data.jws,t]}:this.data.jws=t}}]),t})();t([(0,_r(_d[6]).Expose)({name:'@id'}),i("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"description",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"filename",void 0),t([(0,_r(_d[6]).Expose)({name:'mime-type'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsMimeType)(),i("design:type",String)],n.prototype,"mimeType",void 0),t([(0,_r(_d[6]).Expose)({name:'lastmod_time'}),(0,_r(_d[6]).Type)(function(){return Date}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsDate)(),i("design:type",Date)],n.prototype,"lastmodTime",void 0),t([(0,_r(_d[6]).Expose)({name:'byte_count'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInt)(),i("design:type",Number)],n.prototype,"byteCount",void 0),t([(0,_r(_d[6]).Type)(function(){return s}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(s),i("design:type",s)],n.prototype,"data",void 0),e.Attachment=n},978,[8,7,662,953,979,612,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonEncoder=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"toBase64",value:function(t){return n.toBuffer(t).toString('base64')}},{key:"toBase64URL",value:function(t){return(0,r(d[2]).base64ToBase64URL)(n.toBase64(t))}},{key:"fromBase64",value:function(t){return n.fromBuffer(r(d[3]).Buffer.from(t,'base64'))}},{key:"toString",value:function(n){return JSON.stringify(n)}},{key:"fromString",value:function(n){return JSON.parse(n)}},{key:"toBuffer",value:function(t){return r(d[3]).Buffer.from(n.toString(t))}},{key:"fromBuffer",value:function(t){return n.fromString(r(d[3]).Buffer.from(t).toString('utf-8'))}}]),n})();e.JsonEncoder=n},979,[7,8,980,981]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToBase64URL=void 0,e.base64ToBase64URL=function(c){return c.replace(/\+/g,'-').replace(/\//g,'_').replace(/=/g,'')}},980,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Buffer=void 0,Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return r(d[0]).Buffer}})},981,[982]); -__d(function(g,r,_i,_a,_m,_e,d){'use strict';function t(){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}}var e='function'==typeof Symbol&&'function'==typeof Symbol.for?Symbol.for('nodejs.util.inspect.custom'):null;_e.Buffer=o,_e.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},_e.INSPECT_MAX_BYTES=50;var n=2147483647;function i(t){if(t>n)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,n){if('number'==typeof t){if('string'==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,n)}function f(t,e,n){if('string'==typeof t)return a(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(nt(t,ArrayBuffer)||t&&nt(t.buffer,ArrayBuffer))return l(t,e,n);if('undefined'!=typeof SharedArrayBuffer&&(nt(t,SharedArrayBuffer)||t&&nt(t.buffer,SharedArrayBuffer)))return l(t,e,n);if('number'==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return o.from(i,e,n);var f=y(t);if(f)return f;if('undefined'!=typeof Symbol&&null!=Symbol.toPrimitive&&'function'==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]('string'),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if('number'!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function s(t,e,n){return u(t),t<=0?i(t):void 0!==e?'string'==typeof n?i(t).fill(e,n):i(t).fill(e):i(t)}function h(t){return u(t),i(t<0?0:0|w(t))}function a(t,e){if('string'==typeof e&&''!==e||(e='utf8'),!o.isEncoding(e))throw new TypeError('Unknown encoding: '+e);var n=0|v(t,e),f=i(n),u=f.write(t,e);return u!==n&&(f=f.slice(0,u)),f}function p(t){for(var e=t.length<0?0:0|w(t.length),n=i(e),o=0;o=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+' bytes');return 0|t}function v(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||nt(t,ArrayBuffer))return t.byteLength;if('string'!=typeof t)throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var f=!1;;)switch(e){case'ascii':case'latin1':case'binary':return n;case'utf8':case'utf-8':return K(t).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*n;case'hex':return n>>>1;case'base64':return rt(t).length;default:if(f)return i?-1:K(t).length;e=(''+e).toLowerCase(),f=!0}}function b(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return'';if((void 0===n||n>this.length)&&(n=this.length),n<=0)return'';if((n>>>=0)<=(e>>>=0))return'';for(t||(t='utf8');;)switch(t){case'hex':return P(this,e,n);case'utf8':case'utf-8':return L(this,e,n);case'ascii':return S(this,e,n);case'latin1':case'binary':return x(this,e,n);case'base64':return O(this,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return k(this,e,n);default:if(i)throw new TypeError('Unknown encoding: '+t);t=(t+'').toLowerCase(),i=!0}}function B(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function E(t,e,n,i,f){if(0===t.length)return-1;if('string'==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),it(n=+n)&&(n=f?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(f)return-1;n=t.length-1}else if(n<0){if(!f)return-1;n=0}if('string'==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,f);if('number'==typeof e)return e&=255,'function'==typeof Uint8Array.prototype.indexOf?f?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,f);throw new TypeError('val must be string, number or Buffer')}function m(t,e,n,i,o){var f,u=1,s=t.length,h=e.length;if(void 0!==i&&('ucs2'===(i=String(i).toLowerCase())||'ucs-2'===i||'utf16le'===i||'utf-16le'===i)){if(t.length<2||e.length<2)return-1;u=2,s/=2,h/=2,n/=2}function a(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){var p=-1;for(f=n;fs&&(n=s-h),f=n;f>=0;f--){for(var c=!0,l=0;lo&&(i=o):i=o;var f,u=e.length;for(i>u/2&&(i=u/2),f=0;f239?4:f>223?3:f>191?2:1;if(o+s<=n){var h=void 0,a=void 0,p=void 0,c=void 0;switch(s){case 1:f<128&&(u=f);break;case 2:128==(192&(h=t[o+1]))&&(c=(31&f)<<6|63&h)>127&&(u=c);break;case 3:h=t[o+1],a=t[o+2],128==(192&h)&&128==(192&a)&&(c=(15&f)<<12|(63&h)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:h=t[o+1],a=t[o+2],p=t[o+3],128==(192&h)&&128==(192&a)&&128==(192&p)&&(c=(15&f)<<18|(63&h)<<12|(63&a)<<6|63&p)>65535&&c<1114112&&(u=c)}}null===u?(u=65533,s=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=s}return _(i)}_e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=(function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}})(),o.TYPED_ARRAY_SUPPORT||'undefined'==typeof console||'function'!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,'parent',{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,'offset',{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,n){return s(t,e,n)},o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)},o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(nt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),nt(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,f=0,u=Math.min(n,i);fi.length?(o.isBuffer(u)||(u=o.from(u)),u.copy(i,f)):Uint8Array.prototype.set.call(i,u,f);else{if(!o.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,f)}f+=u.length}return i},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var e=0;ee&&(t+=' ... '),''},e&&(o.prototype[e]=o.prototype.inspect),o.prototype.compare=function(t,e,n,i,f){if(nt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===f&&(f=this.length),e<0||n>t.length||i<0||f>this.length)throw new RangeError('out of range index');if(i>=f&&e>=n)return 0;if(i>=f)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,f>>>=0,this===t)return 0;for(var u=f-i,s=n-e,h=Math.min(u,s),a=this.slice(i,f),p=t.slice(e,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i='utf8')):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError('Attempt to write outside buffer bounds');i||(i='utf8');for(var f=!1;;)switch(i){case'hex':return I(this,t,e,n);case'utf8':case'utf-8':return U(this,t,e,n);case'ascii':case'latin1':case'binary':return A(this,t,e,n);case'base64':return R(this,t,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return T(this,t,e,n);default:if(f)throw new TypeError('Unknown encoding: '+i);i=(''+i).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function _(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);for(var n='',i=0;ii)&&(n=i);for(var o='',f=e;fn)throw new RangeError('Trying to access beyond buffer length')}function N(t,e,n,i,f,u){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||et.length)throw new RangeError('Index out of range')}function F(t,e,n,i,o){X(e,i,o,t,n,7);var f=Number(e&BigInt(4294967295));t[n++]=f,f>>=8,t[n++]=f,f>>=8,t[n++]=f,f>>=8,t[n++]=f;var u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,n}function j(t,e,n,i,o){X(e,i,o,t,n,7);var f=Number(e&BigInt(4294967295));t[n+7]=f,f>>=8,t[n+6]=f,f>>=8,t[n+5]=f,f>>=8,t[n+4]=f;var u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=u,u>>=8,t[n+2]=u,u>>=8,t[n+1]=u,u>>=8,t[n]=u,n+8}function D(t,e,n,i,o,f){if(n+i>t.length)throw new RangeError('Index out of range');if(n<0)throw new RangeError('Index out of range')}function z(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,4),r(d[3]).write(t,e,n,i,23,4),n+4}function Y(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,8),r(d[3]).write(t,e,n,i,52,8),n+8}o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t],o=1,f=0;++f>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=ft(function(t){J(t>>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),o=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(i)+(BigInt(o)<>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],o=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+n;return(BigInt(i)<>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t],o=1,f=0;++f=(o*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);for(var i=e,o=1,f=this[t+--i];i>0&&(o*=256);)f+=this[t+--i]*o;return f>=(o*=128)&&(f-=Math.pow(2,8*e)),f},o.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=ft(function(t){J(t>>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(n<<24);return(BigInt(i)<>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(i)<>>=0,e||C(t,4,this.length),r(d[3]).read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),r(d[3]).read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),r(d[3]).read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),r(d[3]).read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,f=0;for(this[e]=255&t;++f>>=0,n>>>=0,i)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,f=1;for(this[e+o]=255&t;--o>=0&&(f*=256);)this[e+o]=t/f&255;return e+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=ft(function(t){return F(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt('0xffffffffffffffff'))}),o.prototype.writeBigUInt64BE=ft(function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt('0xffffffffffffffff'))}),o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);N(this,t,e,n,o-1,-o)}var f=0,u=1,s=0;for(this[e]=255&t;++f>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);N(this,t,e,n,o-1,-o)}var f=n-1,u=1,s=0;for(this[e+f]=255&t;--f>=0&&(u*=256);)t<0&&0===s&&0!==this[e+f+1]&&(s=1),this[e+f]=(t/u>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=ft(function(t){return F(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt('0x8000000000000000'),BigInt('0x7fffffffffffffff'))}),o.prototype.writeBigInt64BE=ft(function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt('0x8000000000000000'),BigInt('0x7fffffffffffffff'))}),o.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(!o.isBuffer(t))throw new TypeError('argument should be a Buffer');if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError('Index out of range');if(i<0)throw new RangeError('sourceEnd out of bounds');i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),'number'==typeof t)for(u=e;u=i+4;n-=3)e="_"+t.slice(n-3,n)+e;return""+t.slice(0,n)+e}function W(t,e,n){J(e,'offset'),void 0!==t[e]&&void 0!==t[e+n]||Z(e,t.length-(n+1))}function X(t,e,n,i,o,f){if(t>n||t3?0===e||e===BigInt(0)?">= 0"+s+" and < 2"+s+" ** "+8*(f+1)+s:">= -(2"+s+" ** "+(8*(f+1)-1)+s+") and < 2 ** "+(8*(f+1)-1)+s:">= "+e+s+" and <= "+n+s,new G.ERR_OUT_OF_RANGE('value',u,t)}W(i,o,f)}function J(t,e){if('number'!=typeof t)throw new G.ERR_INVALID_ARG_TYPE(e,'number',t)}function Z(t,e,n){if(Math.floor(t)!==t)throw J(t,n),new G.ERR_OUT_OF_RANGE(n||'offset','an integer',t);if(e<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(n||'offset',">= "+(n?1:0)+" and <= "+e,t)}V('ERR_BUFFER_OUT_OF_BOUNDS',function(t){return t?t+" is outside of buffer bounds":'Attempt to access memory outside buffer bounds'},RangeError),V('ERR_INVALID_ARG_TYPE',function(t,e){return"The \""+t+"\" argument must be of type number. Received type "+typeof e},TypeError),V('ERR_OUT_OF_RANGE',function(t,e,n){var i="The value of \""+t+"\" is out of range.",o=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?o=q(String(n)):'bigint'==typeof n&&(o=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(o=q(o)),o+='n'),i+=" It must be "+e+". Received "+o},RangeError);var $=/[^+/0-9A-Za-z-_]/g;function H(t){if((t=(t=t.split('=')[0]).trim().replace($,'')).length<2)return'';for(;t.length%4!=0;)t+='=';return t}function K(t,e){var n;e=e||1/0;for(var i=t.length,o=null,f=[],u=0;u55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(u+1===i){(e-=3)>-1&&f.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error('Invalid code point');if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return f}function Q(t){for(var e=[],n=0;n>8,o=n%256,f.push(o),f.push(i);return f}function rt(t){return r(d[2]).toByteArray(H(t))}function et(t,e,n,i){var o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function nt(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function it(t){return t!=t}var ot=(function(){for(var t=new Array(256),e=0;e<16;++e)for(var n=16*e,i=0;i<16;++i)t[n+i]="0123456789abcdef"[e]+"0123456789abcdef"[i];return t})();function ft(t){return'undefined'==typeof BigInt?ut:t}function ut(){throw new Error('BigInt not supported')}},982,[14,11,100,983,9,7,13,8]); -__d(function(g,r,_i,a,_m,_e,_d){_e.read=function(o,t,h,M,f){var w,p,i=8*f-M-1,n=(1<>1,e=-7,u=h?f-1:0,s=h?-1:1,c=o[t+u];for(u+=s,w=c&(1<<-e)-1,c>>=-e,e+=i;e>0;w=256*w+o[t+u],u+=s,e-=8);for(p=w&(1<<-e)-1,w>>=-e,e+=M;e>0;p=256*p+o[t+u],u+=s,e-=8);if(0===w)w=1-N;else{if(w===n)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,M),w-=N}return(c?-1:1)*p*Math.pow(2,w-M)},_e.write=function(o,t,h,M,f,w){var p,i,n,N=8*w-f-1,e=(1<>1,s=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,c=M?0:w-1,l=M?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,p=e):(p=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-p))<1&&(p--,n*=2),(t+=p+u>=1?s/n:s*Math.pow(2,1-u))*n>=2&&(p++,n/=2),p+u>=e?(i=0,p=e):p+u>=1?(i=(t*n-1)*Math.pow(2,f),p+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,f),p=0));f>=8;o[h+c]=255&i,c+=l,i/=256,f-=8);for(p=p<0;o[h+c]=255&p,c+=l,p/=256,N-=8);o[h+c-l]|=128*d}},983,[]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,c){var n,o=arguments.length,i=o<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,c);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ServiceDecorated=void 0,_e.ServiceDecorated=function(c){var n=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(){return _r(_d[3])(this,o),n.apply(this,arguments)}return _r(_d[4])(o,[{key:"setService",value:function(e){this.service=new(_r(_d[5]).ServiceDecorator)(e)}}]),o})(c);return t([(0,_r(_d[6]).Expose)({name:'~service'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).ServiceDecorator}),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).ValidateNested)(),r("design:type",_r(_d[5]).ServiceDecorator)],n.prototype,"service",void 0),n}},984,[14,11,9,7,8,985,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,c=arguments.length,s=c<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var y=t.length-1;y>=0;y--)(o=t[y])&&(s=(c<3?o(s):c>3?o(i,r,s):o(i,r))||s);return c>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDecorator=void 0;var r=(function(){function t(i){_r(_d[0])(this,t),i&&(this.recipientKeys=i.recipientKeys,this.routingKeys=i.routingKeys,this.serviceEndpoint=i.serviceEndpoint)}return _r(_d[1])(t,[{key:"resolvedDidCommService",get:function(){var t,i;return{id:(0,_r(_d[2]).uuid)(),recipientKeys:this.recipientKeys.map(_r(_d[3]).verkeyToInstanceOfKey),routingKeys:null!==(i=null===(t=this.routingKeys)||void 0===t?void 0:t.map(_r(_d[3]).verkeyToInstanceOfKey))&&void 0!==i?i:[],serviceEndpoint:this.serviceEndpoint}}}]),t})();t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).IsString)({each:!0}),i("design:type",Array)],r.prototype,"recipientKeys",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).IsString)({each:!0}),(0,_r(_d[4]).IsOptional)(),i("design:type",Array)],r.prototype,"routingKeys",void 0),t([(0,_r(_d[4]).IsString)(),i("design:type",String)],r.prototype,"serviceEndpoint",void 0),e.ServiceDecorator=r},985,[7,8,953,986,662]); -__d(function(g,r,i,a,m,e,d){"use strict";function y(y){return y.startsWith('did:key')}Object.defineProperty(e,"__esModule",{value:!0}),e.verkeyToInstanceOfKey=e.didKeyToInstanceOfKey=e.verkeyToDidKey=e.didKeyToVerkey=e.isDidKey=void 0,e.isDidKey=y,e.didKeyToVerkey=function(n){return y(n)?r(d[0]).DidKey.fromDid(n).key.publicKeyBase58:n},e.verkeyToDidKey=function(n){if(y(n))return n;var t=n,K=r(d[1]).Key.fromPublicKeyBase58(t,r(d[1]).KeyType.Ed25519);return new(r(d[0]).DidKey)(K).did},e.didKeyToInstanceOfKey=function(y){return r(d[0]).DidKey.fromDid(y).key},e.verkeyToInstanceOfKey=function(y){return r(d[1]).Key.fromPublicKeyBase58(y,r(d[1]).KeyType.Ed25519)}},986,[987,990]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidKey=void 0,Object.defineProperty(e,"DidKey",{enumerable:!0,get:function(){return r(d[0]).DidKey}}),n(r(d[1]),e),n(r(d[2]),e)},987,[988,1092,1332]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidKey=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.key=n}return r(d[1])(t,[{key:"did",get:function(){return"did:key:"+this.key.fingerprint}},{key:"didDocument",get:function(){return(0,r(d[2]).getDidDocumentForKey)(this.did,this.key)}}],[{key:"fromDid",value:function(n){var u=(0,r(d[3]).parseDid)(n);return new t(r(d[4]).Key.fromFingerprint(u.id))}}]),t})();e.DidKey=t},988,[7,8,989,1090,992]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t;function i(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,i){if(t){if("string"==typeof t)return o(t,i);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)?o(t,i):void 0}}function o(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,o=new Array(i);n=255)throw new TypeError('Alphabet too long');for(var n=new Uint8Array(256),o=0;o>>0,A=new Uint8Array(h);t[o];){var u=n[t.charCodeAt(o)];if(255===u)return;for(var v=0,l=h-1;(0!==u||v>>0,A[l]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error('Non-zero carry');i=v,o++}if(' '!==t[o]){for(var s=h-i;s!==h&&0===A[s];)s++;for(var U=new Uint8Array(f+(h-s)),p=f;s!==h;)U[p++]=A[s++];return U}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw new TypeError('Expected Uint8Array');if(0===n.length)return'';for(var o=0,f=0,i=0,h=n.length;i!==h&&0===n[i];)i++,o++;for(var w=(h-i)*A+1>>>0,u=new Uint8Array(w);i!==h;){for(var v=n[i],l=0,s=w-1;(0!==v||l>>0,u[s]=v%c>>>0,v=v/c>>>0;if(0!==v)throw new Error('Non-zero carry');f=l,i++}for(var U=w-f;U!==w&&0===u[U];)U++;for(var p=y.repeat(o);U0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[s++],e--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(s=i(this._temp,this._state,t,s,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[s++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,s=this._bufferLength,h=e/536870912|0,f=e<<3,n=e%64<56?64:128;this._buffer[s]=128;for(var a=s+1;a0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){r(_d[0]).wipe(t.state),t.buffer&&r(_d[0]).wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t})();_e.SHA256=t;var e=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function i(t,i,s,h,f){for(;f>=64;){for(var n=i[0],a=i[1],_=i[2],u=i[3],o=i[4],b=i[5],d=i[6],p=i[7],c=0;c<16;c++){var y=h+4*c;t[c]=r(_d[1]).readUint32BE(s,y)}for(c=16;c<64;c++){var g=t[c-2],L=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,w=((g=t[c-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;t[c]=(L+t[c-7]|0)+(w+t[c-16]|0)}for(c=0;c<64;c++){L=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&b^~o&d)|0)+(p+(e[c]+t[c]|0)|0)|0,w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&a^n&_^a&_)|0;p=d,d=b,b=o,o=u+L|0,u=_,_=a,a=n,n=L+w|0}i[0]+=n,i[1]+=a,i[2]+=_,i[3]+=u,i[4]+=o,i[5]+=b,i[6]+=d,i[7]+=p,h+=64,f-=64}return h}_e.hash=function(e){var i=new t;i.update(e);var s=i.digest();return i.clean(),s}},1000,[1001,1002]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var n=0;n>>8,n[i+1]=t>>>0,n}function n(t,n,i){return void 0===n&&(n=new Uint8Array(2)),void 0===i&&(i=0),n[i+0]=t>>>0,n[i+1]=t>>>8,n}function i(t,n){return void 0===n&&(n=0),t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]}function o(t,n){return void 0===n&&(n=0),(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0}function f(t,n){return void 0===n&&(n=0),t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]}function u(t,n){return void 0===n&&(n=0),(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n])>>>0}function w(t,n,i){return void 0===n&&(n=new Uint8Array(4)),void 0===i&&(i=0),n[i+0]=t>>>24,n[i+1]=t>>>16,n[i+2]=t>>>8,n[i+3]=t>>>0,n}function v(t,n,i){return void 0===n&&(n=new Uint8Array(4)),void 0===i&&(i=0),n[i+0]=t>>>0,n[i+1]=t>>>8,n[i+2]=t>>>16,n[i+3]=t>>>24,n}function E(t,n,i){return void 0===n&&(n=new Uint8Array(8)),void 0===i&&(i=0),w(t/4294967296>>>0,n,i),w(t>>>0,n,i+4),n}function b(t,n,i){return void 0===n&&(n=new Uint8Array(8)),void 0===i&&(i=0),v(t>>>0,n,i),v(t/4294967296>>>0,n,i+4),n}Object.defineProperty(e,"__esModule",{value:!0}),e.readInt16BE=function(t,n){return void 0===n&&(n=0),(t[n+0]<<8|t[n+1])<<16>>16},e.readUint16BE=function(t,n){return void 0===n&&(n=0),(t[n+0]<<8|t[n+1])>>>0},e.readInt16LE=function(t,n){return void 0===n&&(n=0),(t[n+1]<<8|t[n])<<16>>16},e.readUint16LE=function(t,n){return void 0===n&&(n=0),(t[n+1]<<8|t[n])>>>0},e.writeUint16BE=t,e.writeInt16BE=t,e.writeUint16LE=n,e.writeInt16LE=n,e.readInt32BE=i,e.readUint32BE=o,e.readInt32LE=f,e.readUint32LE=u,e.writeUint32BE=w,e.writeInt32BE=w,e.writeUint32LE=v,e.writeInt32LE=v,e.readInt64BE=function(t,n){void 0===n&&(n=0);var o=i(t,n),f=i(t,n+4);return 4294967296*o+f-4294967296*(f>>31)},e.readUint64BE=function(t,n){return void 0===n&&(n=0),4294967296*o(t,n)+o(t,n+4)},e.readInt64LE=function(t,n){void 0===n&&(n=0);var i=f(t,n);return 4294967296*f(t,n+4)+i-4294967296*(i>>31)},e.readUint64LE=function(t,n){void 0===n&&(n=0);var i=u(t,n);return 4294967296*u(t,n+4)+i},e.writeUint64BE=E,e.writeInt64BE=E,e.writeUint64LE=b,e.writeInt64LE=b,e.readUintBE=function(t,n,i){if(void 0===i&&(i=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>n.length-i)throw new Error("readUintBE: array is too short for the given bitLength");for(var o=0,f=1,u=t/8+i-1;u>=i;u--)o+=n[u]*f,f*=256;return o},e.readUintLE=function(t,n,i){if(void 0===i&&(i=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>n.length-i)throw new Error("readUintLE: array is too short for the given bitLength");for(var o=0,f=1,u=i;u=o;u--)i[u]=n/f&255,f*=256;return i},e.writeUintLE=function(t,n,i,o){if(void 0===i&&(i=new Uint8Array(t/8)),void 0===o&&(o=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r(d[0]).isSafeInteger(n))throw new Error("writeUintLE value must be an integer");for(var f=1,u=o;u>>16&65535)*o+u*(t>>>16&65535)<<16>>>0)|0},e.add=function(n,t){return n+t|0},e.sub=function(n,t){return n-t|0},e.rotl=function(n,t){return n<>>32-t},e.rotr=function(n,t){return n<<32-t|n>>>t},e.isInteger=Number.isInteger||function(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(n){return e.isInteger(n)&&n>=-e.MAX_SAFE_INTEGER&&n<=e.MAX_SAFE_INTEGER}},1003,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VarintEncoder=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"decode",value:function(n){return[(0,r(d[2]).decode)(n),r(d[2]).decode.bytes]}},{key:"encode",value:function(t){var o=new(r(d[3]).Buffer)(n.encodingLength(t));return(0,r(d[2]).encode)(t,o),o}},{key:"encodingLength",value:function(n){return(0,r(d[2]).encodingLength)(n)}}]),n})();e.VarintEncoder=n},1004,[7,8,1005,981]); -__d(function(g,r,i,a,m,e,d){m.exports={encode:r(d[0]),decode:r(d[1]),encodingLength:r(d[2])}},1005,[1006,1007,1008]); -__d(function(g,r,i,a,m,e,d){m.exports=function E(u,_,f){if(Number.MAX_SAFE_INTEGER&&u>Number.MAX_SAFE_INTEGER)throw E.bytes=0,new RangeError('Could not encode varint');_=_||[];f=f||0;var b=f;for(;u>=t;)_[f++]=255&u|o,u/=128;for(;u&n;)_[f++]=255&u|o,u>>>=7;_[f]=0|u;E.bytes=f-b+1;return _};var o=128,n=-128,t=Math.pow(2,31)},1006,[]); -__d(function(g,r,i,a,m,e,d){m.exports=function o(h,u){var w,c=0,u=u||0,f=0,l=u,s=h.length;do{if(l>=s||f>49)throw o.bytes=0,new RangeError('Could not decode varint');w=h[l++],c+=f<28?(w&n)<=t);o.bytes=l-u;return c};var t=128,n=127},1007,[]); -__d(function(g,r,i,a,m,e,d){var t=Math.pow(2,7),o=Math.pow(2,14),p=Math.pow(2,21),h=Math.pow(2,28),w=Math.pow(2,35),M=Math.pow(2,42),n=Math.pow(2,49),u=Math.pow(2,56),c=Math.pow(2,63);m.exports=function(f){return f0)throw new(r(d[1]).AriesFrameworkError)("The proof request contains duplicate predicates and attributes: "+u.toString())}Object.defineProperty(e,"__esModule",{value:!0}),e.checkProofRequestForDuplicates=void 0,e.checkProofRequestForDuplicates=function(o){var a=t(o);u(n(o),a)}},1010,[42,613]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsUri=e.UriValidator=e.isStringArray=e.IsInstanceOrArrayOfInstances=e.IsStringOrInstance=void 0,e.IsStringOrInstance=function(t,n){return(0,r(d[0]).ValidateBy)({name:'IsStringOrInstance',constraints:[t],validator:{validate:function(t,n){return(0,r(d[0]).isString)(t)||(0,r(d[0]).isInstance)(t,null===n||void 0===n?void 0:n.constraints[0])},defaultMessage:(0,r(d[0]).buildMessage)(function(t,n){return(null===n||void 0===n?void 0:n.constraints[0])?t+"$property must be of type string or instance of "+n.constraints[0].name:t+"IsStringOrInstance decorator expects an object as value, but got falsy value."},n)}},n)},e.IsInstanceOrArrayOfInstances=function(t){return(0,r(d[0]).ValidateBy)({name:'isInstanceOrArrayOfInstances',validator:{validate:function(n){return Array.isArray(n)?(n.forEach(function(n){if(!(0,r(d[0]).isInstance)(n,t.classType))return!1}),!0):(0,r(d[0]).isInstance)(n,t.classType)},defaultMessage:(0,r(d[0]).buildMessage)(function(n){return n+"$property must be a string or instance of "+t.classType.name},t)}},t)},e.isStringArray=function(t){return Array.isArray(t)&&t.every(function(t){return'string'==typeof t})},e.UriValidator=/\w+:(\/?\/?)[^\s]+/,e.IsUri=function(t){return(0,r(d[0]).ValidateBy)({name:'isUri',validator:{validate:function(t){return e.UriValidator.test(t)},defaultMessage:(0,r(d[0]).buildMessage)(function(t){return t+"$property must be a string that matches regex: "+e.UriValidator.source},t)}},t)}},1011,[662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.isBoolean=e.isNumber=e.isString=void 0;e.isString=function(n){return'string'==typeof n};e.isNumber=function(n){return'number'==typeof n};e.isBoolean=function(n){return'boolean'==typeof n};e.isJsonObject=function(n){return void 0!==n&&'object'==typeof n&&null!==n&&!Array.isArray(n)}},1012,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return!(!n||''===n)&&n.startsWith('did:indy:')}Object.defineProperty(e,"__esModule",{value:!0}),e.getLegacyCredentialDefinitionId=e.getLegacySchemaId=e.getQualifiedIndySchemaId=e.getQualifiedIndyCredentialDefinitionId=e.isQualifiedIndyIdentifier=void 0,e.isQualifiedIndyIdentifier=n,e.getQualifiedIndyCredentialDefinitionId=function(t,u){if(n(u))return u;var f=u.split(':'),c=r(d[0])(f,5);return"did:indy:"+t+":"+c[0]+"/anoncreds/v0/CLAIM_DEF/"+c[3]+"/"+c[4]},e.getQualifiedIndySchemaId=function(t,u){if(n(u))return u;var f=u.split(':'),c=r(d[0])(f,4);return"did:indy:"+t+":"+c[0]+"/anoncreds/v0/SCHEMA/"+c[2]+"/"+c[3]},e.getLegacySchemaId=function(n,t,u){return n+":2:"+t+":"+u},e.getLegacyCredentialDefinitionId=function(n,t,u){return n+":3:CL:"+t+":"+u}},1013,[31]); -__d(function(g,r,i,_a,m,e,d){"use strict";function n(n,t){return n.length===t.length&&n.every(function(n){return t.includes(n)})}function t(n,t){return n===t||(null!==n&&void 0!==n||null!==t&&void 0!==t?n.constructor===t.constructor&&(n instanceof Function?n===t:n instanceof RegExp?n===t:!(!n.valueOf||!t.valueOf||n.valueOf()!==t.valueOf())||!(n instanceof Date||t instanceof Date)&&void 0):n===t)}Object.defineProperty(e,"__esModule",{value:!0}),e.deepEquality=void 0,e.deepEquality=function u(o,a){var f=t(o,a);if(void 0!==f)return f;if(!(o instanceof Map&&a instanceof Map))return(0,r(d[0]).areObjectsEqual)(o,a);var c=o,l=a;return!!n(Array.from(c.keys()),Array.from(l.keys()))&&Array.from(c.entries()).every(function(n){var t=r(d[1])(n,2),o=t[0];return u(t[1],l.get(o))})}},1014,[1015,31]); -__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.areObjectsEqual=void 0,e.areObjectsEqual=function t(n,u){if('object'==typeof n&&null!=n&&'object'==typeof u&&null!=u){if(Object.keys(n).length!==Object.keys(u).length)return!1;for(var f in n)if(!(f in u&&t(n[f],u[f])))return!1;for(var o in u)if(!(o in n&&t(u[o],n[o])))return!1;return!0}return n===u}},1015,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMultiCodecPrefixByKeytype=e.getKeyTypeByMultiCodecPrefix=void 0;var t={234:r(d[0]).KeyType.Bls12381g1,235:r(d[0]).KeyType.Bls12381g2,236:r(d[0]).KeyType.X25519,237:r(d[0]).KeyType.Ed25519,238:r(d[0]).KeyType.Bls12381g1g2};e.getKeyTypeByMultiCodecPrefix=function(y){var o=t[y];if(!o)throw new Error("Unsupported key type from multicodec code '"+y+"'");return o},e.getMultiCodecPrefixByKeytype=function(y){var o=Object.keys(t).find(function(o){return t[o]===y});if(!o)throw new Error("Could not find multicodec prefix for key type '"+y+"'");return Number(o)}},1016,[991]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1017,[1018,1019,1059]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1018,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,i,n){var o,f=arguments.length,c=f<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,i,n);else for(var u=r.length-1;u>=0;u--)(o=r[u])&&(c=(f<3?o(c):f>3?o(t,i,c):o(t,i))||c);return f>3&&c&&Object.defineProperty(t,i,c),c},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},i=this&&this.__param||function(r,t){return function(i,n){t(i,n,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SigningProviderRegistry=e.SigningProviderToken=void 0,e.SigningProviderToken=Symbol('SigningProviderToken');var n=(function(){function r(t){_r(_d[0])(this,r),this.signingKeyProviders=t.filter(function(r){return'default'!==r})}return _r(_d[1])(r,[{key:"hasProviderForKeyType",value:function(r){return void 0!==this.signingKeyProviders.find(function(t){return t.keyType===r})}},{key:"getProviderForKeyType",value:function(r){var t=this.signingKeyProviders.find(function(t){return t.keyType===r});if(!t)throw new(_r(_d[2]).AriesFrameworkError)("No signing key provider for key type: "+r);return t}}]),r})();n=r([(0,_r(_d[3]).injectable)(),i(0,(0,_r(_d[3]).injectAll)(e.SigningProviderToken)),t("design:paramtypes",[Array])],n),e.SigningProviderRegistry=n},1019,[7,8,612,1020]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,c,o){void 0===o&&(o=c);var u=Object.getOwnPropertyDescriptor(n,c);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[c]}}),Object.defineProperty(t,o,u)}:function(t,n,c,o){void 0===o&&(o=c),t[o]=n[c]}),n=this&&this.__exportStar||function(n,c){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(c,o)||t(c,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.injectAll=e.injectable=e.inject=void 0,n(r(d[0]),e),n(r(d[1]),e),Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return r(d[2]).inject}}),Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return r(d[2]).injectable}}),Object.defineProperty(e,"injectAll",{enumerable:!0,get:function(){return r(d[2]).injectAll}})},1020,[1021,1058,1022]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i0&&void 0!==arguments[0]?arguments[0]:r(d[0]).container.createChildContainer(),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[1])(this,n),this.container=t,this.registeredModules=i}return r(d[2])(n,[{key:"registerModules",value:function(t){for(var n=this.resolve(r(d[3]).FeatureRegistry),i=0,o=Object.entries(t);i=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},o=function(t,e){return function(n,r){e(n,r,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(t){try{f(r.next(t))}catch(t){a(t)}}function c(t){try{f(r.throw(t))}catch(t){a(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,c)}f((r=r.apply(t,e||[])).next())})},c=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return f([t,e])}}function f(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=function(){for(var t=[],e=0;e1||c(t,e)})})}function c(t,e){try{(n=o[t](e)).value instanceof p?Promise.resolve(n.value.v).then(f,u):l(a[0][2],n)}catch(t){l(a[0][3],t)}var n}function f(t){c("next",t)}function u(t){c("throw",t)}function l(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},h=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:p(t[r](e)),done:"return"===r}:o?o(e):e}:o}},b=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof u?u(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,a){o(r,a,(e=t[n](e)).done,e.value)})}}function o(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}},d=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},w=function(t){return t&&t.__esModule?t:{default:t}},m=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},O=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},j("__extends",t),j("__assign",e),j("__rest",n),j("__decorate",r),j("__param",o),j("__metadata",a),j("__awaiter",i),j("__generator",c),j("__exportStar",f),j("__createBinding",g),j("__values",u),j("__read",l),j("__spread",s),j("__spreadArrays",y),j("__await",p),j("__asyncGenerator",_),j("__asyncDelegator",h),j("__asyncValues",b),j("__makeTemplateObject",d),j("__importStar",v),j("__importDefault",w),j("__classPrivateFieldGet",m),j("__classPrivateFieldSet",O)})},1025,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"autoInjectable",{enumerable:!0,get:function(){return r(d[0]).default}}),Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return r(d[1]).default}}),Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return r(d[2]).default}}),Object.defineProperty(e,"registry",{enumerable:!0,get:function(){return r(d[3]).default}}),Object.defineProperty(e,"singleton",{enumerable:!0,get:function(){return r(d[4]).default}}),Object.defineProperty(e,"injectAll",{enumerable:!0,get:function(){return r(d[5]).default}}),Object.defineProperty(e,"injectAllWithTransform",{enumerable:!0,get:function(){return r(d[6]).default}}),Object.defineProperty(e,"injectWithTransform",{enumerable:!0,get:function(){return r(d[7]).default}}),Object.defineProperty(e,"scoped",{enumerable:!0,get:function(){return r(d[8]).default}})},1026,[1027,1044,1045,1046,1047,1048,1049,1050,1051]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){return function(n){var e=r(d[2]).getParamInfo(n);return(function(o){r(d[3])(f,o);var c,s,l=(c=f,s=t(),function(){var t,n=r(d[0])(c);if(s){var e=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(){for(var t=arguments.length,o=new Array(t),c=0;c=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o2&&void 0!==arguments[2]?arguments[2]:{lifecycle:r(d[4]).default.Transient};if(this.ensureNotDisposed(),o=r(d[5]).isProvider(t)?t:{useClass:t},r(d[6]).isTokenProvider(o))for(var s=[e],i=o;null!=i;){var l=i.useToken;if(s.includes(l))throw new Error("Token registration cycle detected! "+[].concat(s,[l]).join(" -> "));s.push(l);var u=this._registry.get(l);i=u&&r(d[6]).isTokenProvider(u.provider)?u.provider:null}if((n.lifecycle===r(d[4]).default.Singleton||n.lifecycle==r(d[4]).default.ContainerScoped||n.lifecycle==r(d[4]).default.ResolutionScoped)&&(r(d[6]).isValueProvider(o)||r(d[6]).isFactoryProvider(o)))throw new Error("Cannot use lifecycle \""+r(d[4]).default[n.lifecycle]+"\" with ValueProviders or FactoryProviders");return this._registry.set(e,{provider:o,options:n}),this}},{key:"registerType",value:function(e,t){return this.ensureNotDisposed(),r(d[6]).isNormalToken(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}},{key:"registerInstance",value:function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}},{key:"registerSingleton",value:function(e,t){if(this.ensureNotDisposed(),r(d[6]).isNormalToken(e)){if(r(d[6]).isNormalToken(t))return this.register(e,{useToken:t},{lifecycle:r(d[4]).default.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:r(d[4]).default.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var o=e;return t&&!r(d[6]).isNormalToken(t)&&(o=t),this.register(e,{useClass:o},{lifecycle:r(d[4]).default.Singleton})}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(r(d[7]).default);this.ensureNotDisposed();var o=this.getRegistration(e);if(!o&&r(d[6]).isNormalToken(e))throw new Error("Attempted to resolve unregistered dependency token: \""+e.toString()+"\"");if(this.executePreResolutionInterceptor(e,"Single"),o){var n=this.resolveRegistration(o,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}if(r(d[8]).isConstructorToken(e)){var s=this.construct(e,t);return this.executePostResolutionInterceptor(e,s,"Single"),s}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}},{key:"executePreResolutionInterceptor",value:function(t,o){if(this.interceptors.preResolution.has(t)){for(var n,s=[],i=e(this.interceptors.preResolution.getAll(t));!(n=i()).done;){var l=n.value;"Once"!=l.options.frequency&&s.push(l),l.callback(t,o)}this.interceptors.preResolution.setAll(t,s)}}},{key:"executePostResolutionInterceptor",value:function(t,o,n){if(this.interceptors.postResolution.has(t)){for(var s,i=[],l=e(this.interceptors.postResolution.getAll(t));!(s=l()).done;){var u=s.value;"Once"!=u.options.frequency&&i.push(u),u.callback(t,o,n)}this.interceptors.postResolution.setAll(t,i)}}},{key:"resolveRegistration",value:function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===r(d[4]).default.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var o,n=e.options.lifecycle===r(d[4]).default.Singleton,s=e.options.lifecycle===r(d[4]).default.ContainerScoped,i=n||s;return o=r(d[6]).isValueProvider(e.provider)?e.provider.useValue:r(d[6]).isTokenProvider(e.provider)?i?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):r(d[6]).isClassProvider(e.provider)?i?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):r(d[6]).isFactoryProvider(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===r(d[4]).default.ResolutionScoped&&t.scopedResolutions.set(e,o),o}},{key:"resolveAll",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(r(d[7]).default);this.ensureNotDisposed();var n=this.getAllRegistrations(e);if(!n&&r(d[6]).isNormalToken(e))throw new Error("Attempted to resolve unregistered dependency token: \""+e.toString()+"\"");if(this.executePreResolutionInterceptor(e,"All"),n){var s=n.map(function(e){return t.resolveRegistration(e,o)});return this.executePostResolutionInterceptor(e,s,"All"),s}var i=[this.construct(e,o)];return this.executePostResolutionInterceptor(e,i,"All"),i}},{key:"isRegistered",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}},{key:"reset",value:function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}},{key:"clearInstances",value:function(){this.ensureNotDisposed();for(var t,o=e(this._registry.entries());!(t=o()).done;){var n=t.value,s=r(d[9])(n,2),i=s[0],l=s[1];this._registry.setAll(i,l.filter(function(e){return!r(d[6]).isValueProvider(e.provider)}).map(function(e){return e.instance=void 0,e}))}}},{key:"createChildContainer",value:function(){this.ensureNotDisposed();for(var o,n=new t(this),s=e(this._registry.entries());!(o=s()).done;){var i=o.value,l=r(d[9])(i,2),u=l[0],c=l[1];c.some(function(e){return e.options.lifecycle===r(d[4]).default.ContainerScoped})&&n._registry.setAll(u,c.map(function(e){return e.options.lifecycle===r(d[4]).default.ContainerScoped?{provider:e.provider,options:e.options}:e}))}return n}},{key:"beforeResolution",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.preResolution.set(e,{callback:t,options:o})}},{key:"afterResolution",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.postResolution.set(e,{callback:t,options:o})}},{key:"dispose",value:function(){return r(d[10]).__awaiter(this,void 0,void 0,r(d[11]).mark(function e(){var t;return r(d[11]).wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.disposed=!0,t=[],this.disposables.forEach(function(e){var o=e.dispose();o&&t.push(o)}),e.next=5,Promise.all(t);case 5:case"end":return e.stop()}},e,this)}))}},{key:"getRegistration",value:function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}},{key:"getAllRegistrations",value:function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}},{key:"construct",value:function(e,t){var o=this;if(e instanceof r(d[12]).DelayedConstructor)return e.createProxy(function(e){return o.resolve(e,t)});var n=(function(){var n=_e.typeInfo.get(e);if(!n||0===n.length){if(0===e.length)return new e;throw new Error("TypeInfo not known for \""+e.name+"\"")}var s=n.map(o.resolveParams(t,e));return r(d[13])(e,r(d[14])(s))})();return r(d[15]).isDisposable(n)&&this.disposables.add(n),n}},{key:"resolveParams",value:function(e,t){var o=this;return function(n,s){try{var i,l,u;return r(d[8]).isTokenDescriptor(n)?r(d[8]).isTransformDescriptor(n)?n.multiple?(i=o.resolve(n.transform)).transform.apply(i,[o.resolveAll(n.token)].concat(r(d[14])(n.transformArgs))):(l=o.resolve(n.transform)).transform.apply(l,[o.resolve(n.token,e)].concat(r(d[14])(n.transformArgs))):n.multiple?o.resolveAll(n.token):o.resolve(n.token,e):r(d[8]).isTransformDescriptor(n)?(u=o.resolve(n.transform,e)).transform.apply(u,[o.resolve(n.token,e)].concat(r(d[14])(n.transformArgs))):o.resolve(n,e)}catch(e){throw new Error(r(d[16]).formatErrorCtor(t,s,e))}}}},{key:"ensureNotDisposed",value:function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}]),t})();_e.instance=new n,_e.default=_e.instance},1031,[7,1032,1034,8,1024,1035,1040,1041,1029,31,1025,82,1030,67,42,1042,1043]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0});var e=(function(e){r(d[2])(o,e);var n,c,u=(n=o,c=t(),function(){var t,e=r(d[0])(n);if(c){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(){return r(d[3])(this,o),u.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.default=e},1032,[14,11,9,7,8,1033]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function t(){r(d[0])(this,t),this._registryMap=new Map}return r(d[1])(t,[{key:"entries",value:function(){return this._registryMap.entries()}},{key:"getAll",value:function(t){return this.ensure(t),this._registryMap.get(t)}},{key:"get",value:function(t){this.ensure(t);var s=this._registryMap.get(t);return s[s.length-1]||null}},{key:"set",value:function(t,s){this.ensure(t),this._registryMap.get(t).push(s)}},{key:"setAll",value:function(t,s){this._registryMap.set(t,s)}},{key:"has",value:function(t){return this.ensure(t),this._registryMap.get(t).length>0}},{key:"clear",value:function(){this._registryMap.clear()}},{key:"ensure",value:function(t){this._registryMap.has(t)||this._registryMap.set(t,[])}}]),t})();e.default=t},1033,[7,8]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){var n=e();return function(){var e,o=r(d[0])(t);if(n){var u=r(d[0])(this).constructor;e=Reflect.construct(o,arguments,u)}else e=o.apply(this,arguments);return r(d[1])(this,e)}}function e(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.PostResolutionInterceptors=_e.PreResolutionInterceptors=void 0;var n=(function(e){r(d[2])(o,e);var n=t(o);function o(){return r(d[3])(this,o),n.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.PreResolutionInterceptors=n;var o=(function(e){r(d[2])(o,e);var n=t(o);function o(){return r(d[3])(this,o),n.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.PostResolutionInterceptors=o;var u=r(d[4])(function t(){r(d[3])(this,t),this.preResolution=new n,this.postResolution=new o});_e.default=u},1034,[14,11,9,7,8,1033]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isProvider=void 0,e.isProvider=function(o){return r(d[0]).isClassProvider(o)||r(d[1]).isValueProvider(o)||r(d[2]).isTokenProvider(o)||r(d[3]).isFactoryProvider(o)}},1035,[1036,1037,1038,1039]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isClassProvider=void 0,e.isClassProvider=function(s){return!!s.useClass}},1036,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValueProvider=void 0,e.isValueProvider=function(u){return void 0!=u.useValue}},1037,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTokenProvider=void 0,e.isTokenProvider=function(o){return!!o.useToken}},1038,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFactoryProvider=void 0,e.isFactoryProvider=function(o){return!!o.useFactory}},1039,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isClassProvider",{enumerable:!0,get:function(){return r(d[0]).isClassProvider}}),Object.defineProperty(e,"isFactoryProvider",{enumerable:!0,get:function(){return r(d[1]).isFactoryProvider}}),Object.defineProperty(e,"isNormalToken",{enumerable:!0,get:function(){return r(d[2]).isNormalToken}}),Object.defineProperty(e,"isTokenProvider",{enumerable:!0,get:function(){return r(d[3]).isTokenProvider}}),Object.defineProperty(e,"isValueProvider",{enumerable:!0,get:function(){return r(d[4]).isValueProvider}})},1040,[1036,1039,1029,1038,1037]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0])(function t(){r(d[1])(this,t),this.scopedResolutions=new Map});e.default=t},1041,[8,7]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDisposable=void 0,e.isDisposable=function(s){return"function"==typeof s.dispose&&!(s.dispose.length>0)}},1042,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(t,n){return null===t?"at position #"+n:"\""+t.split(",")[n].trim()+"\" at position #"+n}function n(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";return[t].concat(r(d[0])(n.message.split("\n").map(function(t){return o+t}))).join("\n")}Object.defineProperty(_e,"__esModule",{value:!0}),_e.formatErrorCtor=void 0,_e.formatErrorCtor=function(o,e,c){var u=o.toString().match(/constructor\(([\w, ]+)\)/)||[],s=r(d[1])(u,2)[1];return n("Cannot inject the dependency "+t(void 0===s?null:s,e)+" of \""+o.name+"\" constructor. Reason:",c)}},1043,[42,31]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return r(d[0]).defineInjectionTokenMetadata(t)}},1044,[1028]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return function(t){r(d[0]).typeInfo.set(t,r(d[1]).getParamInfo(t))}}},1045,[1031,1028]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(n){return t.forEach(function(t){var n=t.token,o=t.options,u=r(d[0]).__rest(t,["token","options"]);return r(d[1]).instance.register(n,u,o)}),n}}},1046,[1025,1031]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return function(t){r(d[0]).default()(t),r(d[1]).instance.registerSingleton(t)}}},1047,[1045,1031]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n={token:t,multiple:!0};return r(d[0]).defineInjectionTokenMetadata(n)}},1048,[1028]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o=arguments.length,f=new Array(o>2?o-2:0),u=2;u2?o-2:0),u=2;u3&&void 0!==arguments[3])||arguments[3];return function(c){var f=t(c);return v&&l===f||(o=(l=f)?c.resolve(n):c.resolve(u)),o}}},1055,[]); -__d(function(g,_r,_i3,a,_m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var u,f=arguments.length,c=f<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,i);else for(var o=t.length-1;o>=0;o--)(u=t[o])&&(c=(f<3?u(c):f>3?u(r,n,c):u(r,n))||c);return f>3&&c&&Object.defineProperty(r,n,c),c};Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureRegistry=void 0;var r=(function(){function t(){_r(_d[0])(this,t),this.features=[]}return _r(_d[1])(t,[{key:"register",value:function(){for(var t=this,r=arguments.length,n=new Array(r),i=0;i-1?t.features[n]=t.features[n].combine(r):t.features.push(r)},f=0,c=n;f=r.length?{done:!0}:{done:!1,value:r[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.")}function t(r,t){if(r){if("string"==typeof r)return n(r,t);var s=Object.prototype.toString.call(r).slice(8,-1);return"Object"===s&&r.constructor&&(s=r.constructor.name),"Map"===s||"Set"===s?Array.from(r):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(r,t):void 0}}function n(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,s=new Array(t);n=0;l--)(o=r[l])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u};Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandlerRegistry=void 0;var o=(function(){function t(){_r(_d[0])(this,t),this.messageHandlers=[]}return _r(_d[1])(t,[{key:"registerMessageHandler",value:function(r){this.messageHandlers.push(r)}},{key:"getHandlerForMessageType",value:function(t){for(var n,s=(0,_r(_d[2]).parseMessageType)(t),o=r(this.messageHandlers);!(n=o()).done;)for(var i,u=n.value,l=r(u.supportedMessages);!(i=l()).done;){var c=i.value;if((0,_r(_d[2]).canHandleMessageType)(c,s))return u}}},{key:"getMessageClassForMessageType",value:function(t){for(var n,s=(0,_r(_d[2]).parseMessageType)(t),o=r(this.messageHandlers);!(n=o()).done;)for(var i,u=r(n.value.supportedMessages);!(i=u()).done;){var l=i.value;if((0,_r(_d[2]).canHandleMessageType)(l,s))return l}}},{key:"supportedMessageTypes",get:function(){return this.messageHandlers.reduce(function(r,t){return[].concat(_r(_d[3])(r),_r(_d[3])(t.supportedMessages))},[]).map(function(r){return r.type})}},{key:"supportedProtocols",get:function(){return Array.from(new Set(this.supportedMessageTypes.map(function(r){return r.protocolUri})))}},{key:"filterSupportedProtocolsByMessageFamilies",value:function(r){return this.supportedProtocols.filter(function(t){return r.find(function(r){return t.startsWith(r)})})}}]),t})();o=s([(0,_r(_d[4]).injectable)()],o),e.MessageHandlerRegistry=o},1057,[7,8,942,42,1022]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1058,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningProviderError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){return r(d[3])(this,u),c.apply(this,arguments)}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.SigningProviderError=e},1059,[14,11,9,7,8,612]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g1=e.getBls12381g1VerificationMethod=void 0;var t='Bls12381G1Key2020';function o(o,n){return{id:o+"#"+n.fingerprint,type:t,controller:o,publicKeyBase58:n.publicKeyBase58}}e.getBls12381g1VerificationMethod=o,e.keyDidBls12381g1={supportedVerificationMethodTypes:[t],getVerificationMethods:function(t,n){return[o(t,n)]},getKeyFromVerificationMethod:function(o){if(o.type!==t||!o.publicKeyBase58)throw new Error('Invalid verification method passed');return r(d[0]).Key.fromPublicKeyBase58(o.publicKeyBase58,r(d[1]).KeyType.Bls12381g1)}}},1060,[992,990]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANDED_TYPE_CREDENTIALS_CONTEXT_V1_VC_TYPE=e.VERIFIABLE_PRESENTATION_TYPE=e.VERIFIABLE_CREDENTIAL_TYPE=e.SECURITY_SIGNATURE_URL=e.SECURITY_PROOF_URL=e.CREDENTIALS_ISSUER_URL=e.SECURITY_CONTEXT_BBS_URL=e.CREDENTIALS_CONTEXT_V1_URL=e.DID_V1_CONTEXT_URL=e.SECURITY_X25519_CONTEXT_URL=e.SECURITY_CONTEXT_URL=e.SECURITY_CONTEXT_V3_URL=e.SECURITY_CONTEXT_V2_URL=e.SECURITY_CONTEXT_V1_URL=void 0,e.SECURITY_CONTEXT_V1_URL='https://w3id.org/security/v1',e.SECURITY_CONTEXT_V2_URL='https://w3id.org/security/v2',e.SECURITY_CONTEXT_V3_URL='https://w3id.org/security/v3-unstable',e.SECURITY_CONTEXT_URL=e.SECURITY_CONTEXT_V2_URL,e.SECURITY_X25519_CONTEXT_URL='https://w3id.org/security/suites/x25519-2019/v1',e.DID_V1_CONTEXT_URL='https://www.w3.org/ns/did/v1',e.CREDENTIALS_CONTEXT_V1_URL='https://www.w3.org/2018/credentials/v1',e.SECURITY_CONTEXT_BBS_URL='https://w3id.org/security/bbs/v1',e.CREDENTIALS_ISSUER_URL='https://www.w3.org/2018/credentials#issuer',e.SECURITY_PROOF_URL='https://w3id.org/security#proof',e.SECURITY_SIGNATURE_URL='https://w3id.org/security#signature',e.VERIFIABLE_CREDENTIAL_TYPE='VerifiableCredential',e.VERIFIABLE_PRESENTATION_TYPE='VerifiablePresentation',e.EXPANDED_TYPE_CREDENTIALS_CONTEXT_V1_VC_TYPE='https://www.w3.org/2018/credentials#VerifiableCredential'},1061,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,o){var c=o.publicKey.slice(0,48),s=o.publicKey.slice(48),l=r(d[0]).Key.fromPublicKey(c,r(d[1]).KeyType.Bls12381g1),n=r(d[0]).Key.fromPublicKey(s,r(d[1]).KeyType.Bls12381g2);return[(0,r(d[2]).getBls12381g1VerificationMethod)(t,l),(0,r(d[3]).getBls12381g2VerificationMethod)(t,n)]}Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g1g2=e.getBls12381g1g2VerificationMethod=void 0,e.getBls12381g1g2VerificationMethod=t,e.keyDidBls12381g1g2={supportedVerificationMethodTypes:[],getVerificationMethods:t,getKeyFromVerificationMethod:function(){throw new Error('Not supported for bls12381g1g2 key')}}},1062,[992,990,1060,1063]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(t,_){return{id:t+"#"+_.fingerprint,type:e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020,controller:t,publicKeyBase58:_.publicKeyBase58}}Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g2=e.getBls12381g2VerificationMethod=e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020=void 0,e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020='Bls12381G2Key2020',e.getBls12381g2VerificationMethod=t,e.keyDidBls12381g2={supportedVerificationMethodTypes:[e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020],getVerificationMethods:function(_,o){return[t(_,o)]},getKeyFromVerificationMethod:function(t){if(t.type!==e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020||!t.publicKeyBase58)throw new Error('Invalid verification method passed');return r(d[0]).Key.fromPublicKeyBase58(t.publicKeyBase58,r(d[1]).KeyType.Bls12381g2)}}},1063,[992,990]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentBuilder=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.didDocument=new(r(d[1]).DidDocument)({id:n})}return r(d[2])(t,[{key:"addContext",value:function(t){return'string'==typeof this.didDocument.context?this.didDocument.context=[this.didDocument.context,t]:this.didDocument.context.push(t),this}},{key:"addService",value:function(t){return this.didDocument.service||(this.didDocument.service=[]),this.didDocument.service.push(t),this}},{key:"addVerificationMethod",value:function(t){return this.didDocument.verificationMethod||(this.didDocument.verificationMethod=[]),this.didDocument.verificationMethod.push(t instanceof r(d[3]).VerificationMethod?t:new(r(d[3]).VerificationMethod)(t)),this}},{key:"addAuthentication",value:function(t){this.didDocument.authentication||(this.didDocument.authentication=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.authentication.push(n),this}},{key:"addAssertionMethod",value:function(t){this.didDocument.assertionMethod||(this.didDocument.assertionMethod=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.assertionMethod.push(n),this}},{key:"addCapabilityDelegation",value:function(t){this.didDocument.capabilityDelegation||(this.didDocument.capabilityDelegation=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.capabilityDelegation.push(n),this}},{key:"addCapabilityInvocation",value:function(t){this.didDocument.capabilityInvocation||(this.didDocument.capabilityInvocation=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.capabilityInvocation.push(n),this}},{key:"addKeyAgreement",value:function(t){this.didDocument.keyAgreement||(this.didDocument.keyAgreement=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.keyAgreement.push(n),this}},{key:"build",value:function(){return this.didDocument}}]),t})();e.DidDocumentBuilder=t},1064,[7,1065,8,1076]); -__d(function(g,_r,_i,_a2,_m,e,_d2){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=r(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n=0;s--)(o=t[s])&&(c=(a<3?o(c):a>3?o(r,n,c):o(r,n))||c);return a>3&&c&&Object.defineProperty(r,n,c),c},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},a=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=t[n]&&function(r){return new Promise(function(i,a){o(i,a,(r=t[n](r)).done,r.value)})}}function o(t,r,n,i){Promise.resolve(i).then(function(r){t({value:r,done:n})},r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.findVerificationMethodByKeyType=e.keyReferenceToKey=e.DidDocument=void 0;var c=(function(){function r(t){var n;_r(_d2[0])(this,r),this.context=['https://w3id.org/did/v1'],t&&(this.context=null!==(n=t.context)&&void 0!==n?n:this.context,this.id=t.id,this.alsoKnownAs=t.alsoKnownAs,this.controller=t.controller,this.verificationMethod=t.verificationMethod,this.service=t.service,this.authentication=t.authentication,this.assertionMethod=t.assertionMethod,this.keyAgreement=t.keyAgreement,this.capabilityInvocation=t.capabilityInvocation,this.capabilityDelegation=t.capabilityDelegation)}return _r(_d2[1])(r,[{key:"dereferenceVerificationMethod",value:function(t){var r,n=null===(r=this.verificationMethod)||void 0===r?void 0:r.find(function(r){return r.id.endsWith(t)});if(!n)throw new Error("Unable to locate verification method with id '"+t+"'");return n}},{key:"dereferenceKey",value:function(r,n){for(var i,o,a=null!==n&&void 0!==n?n:['authentication','keyAgreement','assertionMethod','capabilityInvocation','capabilityDelegation'],c=t(a);!(o=c()).done;)for(var s,f=t(null!==(i=this[o.value])&&void 0!==i?i:[]);!(s=f()).done;){var u=s.value;if('string'==typeof u&&u.endsWith(r))return this.dereferenceVerificationMethod(u);if('string'!=typeof u&&u.id.endsWith(r))return u}throw new Error("Unable to locate verification method with id '"+r+"' in purposes "+a)}},{key:"getServicesByType",value:function(t){var r,n;return null!==(n=null===(r=this.service)||void 0===r?void 0:r.filter(function(r){return r.type===t}))&&void 0!==n?n:[]}},{key:"getServicesByClassType",value:function(t){var r,n;return null!==(n=null===(r=this.service)||void 0===r?void 0:r.filter(function(r){return r instanceof t}))&&void 0!==n?n:[]}},{key:"didCommServices",get:function(){var t,r,n=[_r(_d2[2]).IndyAgentService.type,_r(_d2[2]).DidCommV1Service.type];return(null!==(r=null===(t=this.service)||void 0===t?void 0:t.filter(function(t){return n.includes(t.type)}))&&void 0!==r?r:[]).sort(function(t,r){return r.priority-t.priority})}},{key:"recipientKeys",get:function(){for(var r,n=this,i=[],o=t(this.didCommServices);!(r=o()).done;){var a=r.value;a instanceof _r(_d2[2]).IndyAgentService?i=[].concat(_r(_d2[3])(i),_r(_d2[3])(a.recipientKeys.map(function(t){return _r(_d2[4]).Key.fromPublicKeyBase58(t,_r(_d2[4]).KeyType.Ed25519)}))):a instanceof _r(_d2[2]).DidCommV1Service&&(i=[].concat(_r(_d2[3])(i),_r(_d2[3])(a.recipientKeys.map(function(t){return s(n,t)}))))}return i}},{key:"toJSON",value:function(){return _r(_d2[5]).JsonTransformer.toJSON(this)}}]),r})();function s(t,r){var n=t.dereferenceKey(r,['authentication','keyAgreement']);return(0,(0,_r(_d2[10]).getKeyDidMappingByVerificationMethod)(n).getKeyFromVerificationMethod)(n)}i([(0,_r(_d2[6]).Expose)({name:'@context'}),(0,_r(_d2[7]).IsStringOrStringArray)(),o("design:type",Object)],c.prototype,"context",void 0),i([(0,_r(_d2[8]).IsString)(),o("design:type",String)],c.prototype,"id",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[8]).IsString)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"alsoKnownAs",void 0),i([(0,_r(_d2[7]).IsStringOrStringArray)(),(0,_r(_d2[8]).IsOptional)(),o("design:type",Object)],c.prototype,"controller",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[8]).ValidateNested)({each:!0}),(0,_r(_d2[6]).Type)(function(){return _r(_d2[9]).VerificationMethod}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"verificationMethod",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[2]).ServiceTransformer)(),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"service",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"authentication",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"assertionMethod",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"keyAgreement",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"capabilityInvocation",void 0),i([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),o("design:type",Array)],c.prototype,"capabilityDelegation",void 0),e.DidDocument=c,e.keyReferenceToKey=s,e.findVerificationMethodByKeyType=function(t,r){var n,i,o,c,s,f,u,y,d,l,p,v,h,m,b,I,A;return _r(_d2[11]).async(function(S){for(;;)switch(S.prev=S.next){case 0:d=['verificationMethod','authentication','keyAgreement','assertionMethod','capabilityInvocation','capabilityDelegation'],S.prev=1,l=!0,p=a(d);case 3:return S.next=5,_r(_d2[11]).awrap(p.next());case 5:if(v=S.sent,n=v.done){S.next=53;break}if(c=v.value,l=!1,S.prev=10,!((h=r[c])instanceof Array)){S.next=48;break}S.prev=14,m=!0,f=void 0,b=a(h);case 16:return S.next=18,_r(_d2[11]).awrap(b.next());case 18:if(I=S.sent,s=I.done){S.next=33;break}if(y=I.value,m=!1,S.prev=23,'string'==typeof(A=y)){S.next=28;break}if(A.type!==t){S.next=28;break}return S.abrupt("return",A);case 28:return S.prev=28,m=!0,S.finish(28);case 31:S.next=16;break;case 33:S.next=38;break;case 35:S.prev=35,S.t0=S.catch(14),f={error:S.t0};case 38:if(S.prev=38,S.prev=39,m||s||!(u=b.return)){S.next=43;break}return S.next=43,_r(_d2[11]).awrap(u.call(b));case 43:if(S.prev=43,!f){S.next=46;break}throw f.error;case 46:return S.finish(43);case 47:return S.finish(38);case 48:return S.prev=48,l=!0,S.finish(48);case 51:S.next=3;break;case 53:S.next=58;break;case 55:S.prev=55,S.t1=S.catch(1),i={error:S.t1};case 58:if(S.prev=58,S.prev=59,l||n||!(o=p.return)){S.next=63;break}return S.next=63,_r(_d2[11]).awrap(o.call(p));case 63:if(S.prev=63,!i){S.next=66;break}throw i.error;case 66:return S.finish(63);case 67:return S.finish(58);case 68:return S.abrupt("return",null);case 69:case"end":return S.stop()}},null,null,[[1,55,58,68],[10,,48,51],[14,35,38,48],[23,,28,31],[39,,43,47],[59,,63,67]],Promise)}},1065,[7,8,1066,42,990,626,627,1073,662,1076,1079,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serviceTypes=e.ServiceTransformer=e.DidCommV2Service=e.DidDocumentService=e.DidCommV1Service=e.IndyAgentService=void 0,Object.defineProperty(e,"DidCommV1Service",{enumerable:!0,get:function(){return r(d[0]).DidCommV1Service}}),Object.defineProperty(e,"DidCommV2Service",{enumerable:!0,get:function(){return r(d[1]).DidCommV2Service}}),Object.defineProperty(e,"DidDocumentService",{enumerable:!0,get:function(){return r(d[2]).DidDocumentService}}),Object.defineProperty(e,"IndyAgentService",{enumerable:!0,get:function(){return r(d[3]).IndyAgentService}}),Object.defineProperty(e,"ServiceTransformer",{enumerable:!0,get:function(){return r(d[4]).ServiceTransformer}}),Object.defineProperty(e,"serviceTypes",{enumerable:!0,get:function(){return r(d[4]).serviceTypes}})},1066,[1067,1070,1068,1071,1072]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,i){var o,c=arguments.length,n=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(n=(c<3?o(n):c>3?o(e,r,n):o(e,r))||n);return c>3&&n&&Object.defineProperty(e,r,n),n},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommV1Service=void 0;var i=(function(e){_r(_d[2])(c,e);var r,i,o=(r=c,i=t(),function(){var t,e=_r(_d[0])(r);if(i){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t){var e;return _r(_d[3])(this,c),(e=o.call(this,_r(_d[4])(_r(_d[4])({},t),{type:c.type}))).priority=0,t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,e.accept=t.accept,t.priority&&(e.priority=t.priority)),e}return _r(_d[5])(c)})(_r(_d[6]).DidDocumentService);i.type='did-communication',e([(0,_r(_d[7]).ArrayNotEmpty)(),(0,_r(_d[7]).IsString)({each:!0}),r("design:type",Array)],i.prototype,"recipientKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],i.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],i.prototype,"accept",void 0),_e.DidCommV1Service=i},1067,[14,11,9,7,4,8,1068,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,o){var r,c=arguments.length,d=c<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,n,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(d=(c<3?r(d):c>3?r(i,n,d):r(i,n))||d);return c>3&&d&&Object.defineProperty(i,n,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentService=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),i&&(this.id=i.id,this.serviceEndpoint=i.serviceEndpoint,this.type=i.type)}return _r(_d[1])(t,[{key:"protocolScheme",get:function(){return(0,_r(_d[2]).getProtocolScheme)(this.serviceEndpoint)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"serviceEndpoint",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"type",void 0),e.DidDocumentService=n},1068,[7,8,1069,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProtocolScheme=void 0,e.getProtocolScheme=function(t){var o=t.split(':');return r(d[0])(o,1)[0]}},1069,[31]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,c){var n,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,c);else for(var f=t.length-1;f>=0;f--)(n=t[f])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommV2Service=void 0;var c=(function(e){_r(_d[2])(o,e);var r,c,n=(r=o,c=t(),function(){var t,e=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),e=n.call(this,_r(_d[4])(_r(_d[4])({},t),{type:o.type})),t&&(e.routingKeys=t.routingKeys,e.accept=t.accept),e}return _r(_d[5])(o)})(_r(_d[6]).DidDocumentService);c.type='DIDComm',e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],c.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],c.prototype,"accept",void 0),_e.DidCommV2Service=c},1070,[14,11,9,7,4,8,1068,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,c=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(o<3?i(c):o>3?i(e,r,c):i(e,r))||c);return o>3&&c&&Object.defineProperty(e,r,c),c},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyAgentService=void 0;var n=(function(e){_r(_d[2])(o,e);var r,n,i=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=i.call(this,_r(_d[4])(_r(_d[4])({},t),{type:o.type}))).priority=0,t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,t.priority&&(e.priority=t.priority)),e}return _r(_d[5])(o)})(_r(_d[6]).DidDocumentService);n.type='IndyAgent',e([(0,_r(_d[7]).ArrayNotEmpty)(),(0,_r(_d[7]).IsString)({each:!0}),r("design:type",Array)],n.prototype,"recipientKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"routingKeys",void 0),_e.IndyAgentService=n},1071,[14,11,9,7,4,8,1068,662]); -__d(function(g,r,i,a,m,e,d){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceTransformer=e.serviceTypes=void 0,e.serviceTypes=(n={},r(d[0])(n,r(d[1]).IndyAgentService.type,r(d[1]).IndyAgentService),r(d[0])(n,r(d[2]).DidCommV1Service.type,r(d[2]).DidCommV1Service),r(d[0])(n,r(d[3]).DidCommV2Service.type,r(d[3]).DidCommV2Service),n),e.ServiceTransformer=function(){return(0,r(d[4]).Transform)(function(n){var v=n.value;return null===v||void 0===v?void 0:v.map(function(n){var v,c=null!==(v=e.serviceTypes[n.type])&&void 0!==v?v:r(d[5]).DidDocumentService;return(0,r(d[4]).plainToInstance)(c,n)})},{toClassOnly:!0})}},1072,[249,1071,1067,1070,627,1068]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsStringOrStringArray=e.IsMap=e.DateParser=e.DateTransformer=e.MetadataTransformer=e.RecordTransformer=void 0,e.RecordTransformer=function(n){return(0,r(d[0]).Transform)(function(t){var o=t.value;switch(t.type){case r(d[0]).TransformationType.CLASS_TO_PLAIN:return Object.entries(o).reduce(function(n,t){var o=r(d[1])(t,2),s=o[0],u=o[1];return r(d[2])(r(d[2])({},n),r(d[3])({},s,r(d[4]).JsonTransformer.toJSON(u)))},{});case r(d[0]).TransformationType.PLAIN_TO_CLASS:return Object.entries(o).reduce(function(t,o){var s=r(d[1])(o,2),u=s[0],f=s[1];return r(d[2])(r(d[2])({},t),r(d[3])({},u,r(d[4]).JsonTransformer.fromJSON(f,n)))},{});default:return o}})},e.MetadataTransformer=function(){return(0,r(d[0]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[0]).TransformationType.CLASS_TO_PLAIN?r(d[2])({},t.data):o===r(d[0]).TransformationType.PLAIN_TO_CLASS?new(r(d[5]).Metadata)(t):o===r(d[0]).TransformationType.CLASS_TO_CLASS?new(r(d[5]).Metadata)(r(d[2])({},t.data)):void 0})},e.DateTransformer=function(){return(0,r(d[0]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[0]).TransformationType.CLASS_TO_PLAIN?t.toISOString():o===r(d[0]).TransformationType.PLAIN_TO_CLASS?new Date(t):o===r(d[0]).TransformationType.CLASS_TO_CLASS?new Date(t.getTime()):void 0})},e.DateParser=function(n){var t=new Date(n);if(t instanceof Date&&!isNaN(t.getTime()))return t;var o=r(d[6]).DateTime.fromSQL(n);return o.isValid?new Date(o.toString()):new Date},e.IsMap=function(n){return(0,r(d[7]).ValidateBy)({name:'isMap',validator:{validate:function(n){return n instanceof Map},defaultMessage:(0,r(d[7]).buildMessage)(function(n){return n+'$property must be a Map'},n)}},n)},e.IsStringOrStringArray=function(n){return(0,r(d[7]).ValidateBy)({name:'isStringOrStringArray',validator:{validate:function(n){return(0,r(d[7]).isString)(n)||Array.isArray(n)&&n.every(function(n){return(0,r(d[7]).isString)(n)})},defaultMessage:(0,r(d[7]).buildMessage)(function(n){return n+'$property must be a string or string array'},n)}},n)}},1073,[627,31,4,249,626,1074,1075,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.data=n}return r(d[1])(t,[{key:"get",value:function(t){var n;return null!==(n=this.data[t])&&void 0!==n?n:null}},{key:"set",value:function(t,n){this.data[t]=n}},{key:"add",value:function(t,n){this.data[t]=r(d[2])(r(d[2])({},this.data[t]),n)}},{key:"keys",get:function(){return Object.keys(this.data)}},{key:"delete",value:function(t){delete this.data[t]}}]),t})();e.Metadata=t},1074,[7,8,4]); -__d(function(e,t,n,r,i,o,a){'use strict';function u(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}function v(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(o,'__esModule',{value:!0});var w=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(m(Error)),k=(function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return c(t,e),t})(w),S=(function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return c(t,e),t})(w),T=(function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return c(t,e),t})(w),b=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(w),O=(function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return c(t,e),t})(w),M=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(w),N=(function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return c(t,e),t})(w),E="numeric",D="short",I="long",V={year:E,month:E,day:E},L={year:E,month:D,day:E},x={year:E,month:D,day:E,weekday:D},C={year:E,month:I,day:E},F={year:E,month:I,day:E,weekday:I},Z={hour:E,minute:E},A={hour:E,minute:E,second:E},z={hour:E,minute:E,second:E,timeZoneName:D},_={hour:E,minute:E,second:E,timeZoneName:I},j={hour:E,minute:E,hour12:!1},q={hour:E,minute:E,second:E,hour12:!1},H={hour:E,minute:E,second:E,hour12:!1,timeZoneName:D},U={hour:E,minute:E,second:E,hour12:!1,timeZoneName:I},R={year:E,month:E,day:E,hour:E,minute:E},P={year:E,month:E,day:E,hour:E,minute:E,second:E},W={year:E,month:D,day:E,hour:E,minute:E},J={year:E,month:D,day:E,hour:E,minute:E,second:E},Y={year:E,month:D,day:E,weekday:D,hour:E,minute:E},G={year:E,month:I,day:E,hour:E,minute:E,timeZoneName:D},$={year:E,month:I,day:E,hour:E,minute:E,second:E,timeZoneName:D},B={year:E,month:I,day:E,weekday:I,hour:E,minute:E,timeZoneName:I},Q={year:E,month:I,day:E,weekday:I,hour:E,minute:E,second:E,timeZoneName:I};function K(e){return void 0===e}function X(e){return"number"==typeof e}function ee(e){return"number"==typeof e&&e%1==0}function te(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function ne(){return!K(Intl.DateTimeFormat.prototype.formatToParts)}function re(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ie(e,t,n){if(0!==e.length)return e.reduce(function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function oe(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ue(e,t,n){return ee(e)&&e>=t&&e<=n}function se(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ve(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function pe(e){return e>99?e:e>60?1900+e:2e3+e}function ge(e,n,r,i){void 0===i&&(i=null);var o=new Date(e),u={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(u.timeZone=i);var s=t(a[0])({timeZoneName:n},u),c=te();if(c&&ne()){var l=new Intl.DateTimeFormat(r,s).formatToParts(o).find(function(e){return"timezonename"===e.type.toLowerCase()});return l?l.value:null}if(c){var f=new Intl.DateTimeFormat(r,u).format(o);return new Intl.DateTimeFormat(r,s).format(o).substring(f.length).replace(/^[, \u200e]+/,"")}return null}function we(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ke(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new M("Invalid unit value "+e);return t}function Se(e,t,n){var r={};for(var i in e)if(ae(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(void 0===o||null===o)continue;r[t(i)]=ke(o)}return r}function Te(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+se(n,2)+":"+se(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+se(n,2)+se(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function be(e){return oe(e,["hour","minute","second","millisecond"])}var Oe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function Me(e){return JSON.stringify(e,Object.keys(e).sort())}var Ne=["January","February","March","April","May","June","July","August","September","October","November","December"],Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],De=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ie(e){switch(e){case"narrow":return[].concat(De);case"short":return[].concat(Ee);case"long":return[].concat(Ne);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Ve=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Le=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function Ce(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat(Le);case"long":return[].concat(Ve);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Fe=["AM","PM"],Ze=["Before Christ","Anno Domini"],Ae=["BC","AD"],ze=["B","A"];function _e(e){switch(e){case"narrow":return[].concat(ze);case"short":return[].concat(Ae);case"long":return[].concat(Ze);default:return null}}function je(e){return Fe[e.hour<12?0:1]}function qe(e,t){return Ce(t)[e.weekday-1]}function He(e,t){return Ie(t)[e.month-1]}function Ue(e,t){return _e(t)[e.year<0?0:1]}function Re(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var u=Object.is(t,-0)||t<0,s=Math.abs(t),c=1===s,l=i[e],f=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return u?s+" "+f+" ago":"in "+s+" "+f}function Pe(e){switch(Me(oe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case Me(V):return"M/d/yyyy";case Me(L):return"LLL d, yyyy";case Me(x):return"EEE, LLL d, yyyy";case Me(C):return"LLLL d, yyyy";case Me(F):return"EEEE, LLLL d, yyyy";case Me(Z):return"h:mm a";case Me(A):return"h:mm:ss a";case Me(z):case Me(_):return"h:mm a";case Me(j):return"HH:mm";case Me(q):return"HH:mm:ss";case Me(H):case Me(U):return"HH:mm";case Me(R):return"M/d/yyyy, h:mm a";case Me(W):return"LLL d, yyyy, h:mm a";case Me(G):return"LLLL d, yyyy, h:mm a";case Me(B):return"EEEE, LLLL d, yyyy, h:mm a";case Me(P):return"M/d/yyyy, h:mm:ss a";case Me(J):return"LLL d, yyyy, h:mm:ss a";case Me(Y):return"EEE, d LLL yyyy, h:mm a";case Me($):return"LLLL d, yyyy, h:mm:ss a";case Me(Q):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}function We(e,t){for(var n,r="",i=g(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Je={D:V,DD:L,DDD:C,DDDD:F,t:Z,tt:A,ttt:z,tttt:_,T:j,TT:q,TTT:H,TTTT:U,f:R,ff:W,fff:G,ffff:B,F:P,FF:J,FFF:$,FFFF:Q},Ye=(function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r?n+=a:a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Je[e]};var n=e.prototype;return n.formatWithSystemDefault=function(e,n){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,t(a[0])({},this.opts,n)).format()},n.formatDateTime=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).format()},n.formatDateTimeParts=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).formatToParts()},n.resolvedOptions=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).resolvedOptions()},n.num=function(e,n){if(void 0===n&&(n=0),this.opts.forceSimple)return se(e,n);var r=t(a[0])({},this.opts);return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)},n.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&ne(),a=function(e,n){return r.loc.extract(t,e,n)},u=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},s=function(e,n){return i?He(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?qe(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n},f=function(e){return i?Ue(t,e):a({era:e},"era")};return We(e.parseFormat(n),function(e){switch(e){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return u({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return u({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?je(t):a({hour:"numeric",hour12:!0},"dayperiod");case"d":return o?a({day:"numeric"},"day"):r.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return l(e)}})},n.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),u=a.reduce(function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)},[]),s=t.shiftTo.apply(t,u.map(o).filter(function(e){return e}));return We(a,(r=s,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e})(),Ge=(function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e})(),$e=(function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new N},t.formatOffset=function(e,t){throw new N},t.offset=function(e){throw new N},t.equals=function(e){throw new N},s(e,[{key:"type",get:function(){throw new N}},{key:"name",get:function(){throw new N}},{key:"universal",get:function(){throw new N}},{key:"isValid",get:function(){throw new N}}]),e})(),Be=null,Qe=(function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ge(e,t.format,t.locale)},n.formatOffset=function(e,t){return Te(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},s(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return te()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Be&&(Be=new t),Be}}]),t})($e),Ke=RegExp("^"+Oe.source+"$"),Xe={};var et={year:0,month:1,day:2,hour:3,minute:4,second:5};function tt(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}function nt(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?d:1e3+d))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},s(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t})($e),ot=null,at=(function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}c(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(we(n[1],n[2]))}return null},s(t,null,[{key:"utcInstance",get:function(){return null===ot&&(ot=new t(0)),ot}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return Te(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},s(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+Te(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t})($e),ut=(function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}c(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},s(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t})($e);function st(e,t){var n;if(K(e)||null===e)return t;if(e instanceof $e)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?at.utcInstance:null!=(n=it.parseGMTOffset(e))?at.instance(n):it.isValidSpecifier(r)?it.create(e):at.parseSpecifier(r)||new ut(e)}return X(e)?at.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new ut(e)}var ct=function(){return Date.now()},lt=null,ft=null,dt=null,ht=null,mt=!1,yt=(function(){function e(){}return e.resetCaches=function(){xt.resetCache(),it.resetCache()},s(e,null,[{key:"now",get:function(){return ct},set:function(e){ct=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){lt=e?st(e):null}},{key:"defaultZone",get:function(){return lt||Qe.instance}},{key:"defaultLocale",get:function(){return ft},set:function(e){ft=e}},{key:"defaultNumberingSystem",get:function(){return dt},set:function(e){dt=e}},{key:"defaultOutputCalendar",get:function(){return ht},set:function(e){ht=e}},{key:"throwOnInvalid",get:function(){return mt},set:function(e){mt=e}}]),e})(),vt={};function pt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=vt[n];return r||(r=new Intl.DateTimeFormat(e,t),vt[n]=r),r}var gt={};function wt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=gt[n];return r||(r=new Intl.NumberFormat(e,t),gt[n]=r),r}var kt={};function St(e,t){void 0===t&&(t={});var n=t,r=(n.base,y(n,["base"])),i=JSON.stringify([e,r]),o=kt[i];return o||(o=new Intl.RelativeTimeFormat(e,t),kt[i]=o),o}var Tt=null;function bt(){if(Tt)return Tt;if(te()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return Tt=e&&"und"!==e?e:"en-US"}return Tt="en-US"}function Ot(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=pt(e).resolvedOptions()}catch(e){n=pt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}function Mt(e,t,n){return te()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}function Nt(e){for(var t=[],n=1;n<=12;n++){var r=Rr.utc(2016,n,1);t.push(e(r))}return t}function Et(e){for(var t=[],n=1;n<=7;n++){var r=Rr.utc(2016,11,13+n);t.push(e(r))}return t}function Dt(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}var It=(function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&te()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=wt(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return se(this.floor?Math.floor(e):fe(e,3),this.padTo)},e})(),Vt=(function(){function e(e,n,r){var i;if(this.opts=r,this.hasIntl=te(),e.zone.universal&&this.hasIntl){var o=e.offset/60*-1,u=o>=0?"Etc/GMT+"+o:"Etc/GMT"+o,s=it.isValidZone(u);0!==e.offset&&s?(i=u,this.dt=e):(i="UTC",r.timeZoneName?this.dt=e:this.dt=0===e.offset?e:Rr.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,i=e.zone.name);if(this.hasIntl){var c=t(a[0])({},this.opts);i&&(c.timeZone=i),this.dtf=pt(n,c)}}var n=e.prototype;return n.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=Pe(this.opts),t=xt.create("en-US");return Ye.create(t).formatDateTimeFromString(this.dt,e)},n.formatToParts=function(){return this.hasIntl&&ne()?this.dtf.formatToParts(this.dt.toJSDate()):[]},n.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e})(),Lt=(function(){function e(e,n,r){this.opts=t(a[0])({style:"long"},r),!n&&re()&&(this.rtf=St(e,r))}var n=e.prototype;return n.format=function(e,t){return this.rtf?this.rtf.format(e,t):Re(t,e,this.opts.numeric,"long"!==this.opts.style)},n.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e})(),xt=(function(){function e(e,t,n,r){var i=Ot(e),o=i[0],a=i[1],u=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||u||null,this.intl=Mt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||yt.defaultLocale;return new e(o||(i?"en-US":bt()),n||yt.defaultNumberingSystem,r||yt.defaultOutputCalendar,o)},e.resetCache=function(){Tt=null,vt={},gt={},kt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var n=e.prototype;return n.listingMode=function(e){void 0===e&&(e=!0);var t=te()&&ne(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},n.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},n.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(t(a[0])({},e,{defaultToEN:!0}))},n.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(t(a[0])({},e,{defaultToEN:!1}))},n.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),Dt(this,e,n,Ie,function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=Nt(function(e){return r.extract(e,n,"month")})),r.monthsCache[i][e]})},n.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),Dt(this,e,n,Ce,function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=Et(function(e){return r.extract(e,n,"weekday")})),r.weekdaysCache[i][e]})},n.meridiems=function(e){var t=this;return void 0===e&&(e=!0),Dt(this,void 0,e,function(){return Fe},function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[Rr.utc(2016,11,13,9),Rr.utc(2016,11,13,19)].map(function(n){return t.extract(n,e,"dayperiod")})}return t.meridiemCache})},n.eras=function(e,t){var n=this;return void 0===t&&(t=!0),Dt(this,e,t,_e,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[Rr.utc(-40,1,1),Rr.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},n.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},n.numberFormatter=function(e){return void 0===e&&(e={}),new It(this.intl,e.forceSimple||this.fastNumbers,e)},n.dtFormatter=function(e,t){return void 0===t&&(t={}),new Vt(e,this.intl,t)},n.relFormatter=function(e){return void 0===e&&(e={}),new Lt(this.intl,this.isEnglish(),e)},n.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||te()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},n.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},s(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||te()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e})();function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?Ve.indexOf(e)+1:Le.indexOf(e)+1),u}var tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nn(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=en(n,o,i,r,a,u,s);return t=c?Xt[c]:l?0:we(f,d),[h,new at(t)]}function rn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var on=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,an=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,un=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sn(e){var t=e[1],n=e[2],r=e[3];return[en(t,e[4],r,n,e[5],e[6],e[7]),at.utcInstance]}function cn(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[en(t,e[7],n,r,i,o,a),at.utcInstance]}var ln=Ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,qt),fn=Ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,qt),dn=Ct(/(\d{4})-?(\d{3})/,qt),hn=Ct(jt),mn=Ft(Jt,Yt,Gt),yn=Ft(Ht,Yt,Gt),vn=Ft(Ut,Yt,Gt),pn=Ft(Yt,Gt);var gn=Ft(Yt);var wn=Ct(/(\d{4})-(\d\d)-(\d\d)/,Pt),kn=Ct(Rt),Sn=Ft(Jt,Yt,Gt,$t),Tn=Ft(Yt,Gt,$t);var bn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},On=t(a[0])({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},bn),Mn=t(a[0])({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556951.999999996,milliseconds:31556951999.999996},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889237.999999999,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},bn),Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],En=Nn.slice(0).reverse();function Dn(e,n,r){void 0===r&&(r=!1);var i={values:r?n.values:t(a[0])({},e.values,n.values||{}),loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new Ln(i)}function In(e,t,n,r,i){var o,a=e[i][n],u=t[n]/a,s=!(Math.sign(u)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(u)<=1?(o=u)<0?Math.floor(o):Math.ceil(o):Math.trunc(u);r[i]+=s,t[n]-=s*a}function Vn(e,t){En.reduce(function(n,r){return K(t[r])?n:(n&&In(e,t,n,t,r),r)},null)}var Ln=(function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||xt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Mn:On,this.isLuxonDuration=!0}e.fromMillis=function(n,r){return e.fromObject(t(a[0])({milliseconds:n},r))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:Se(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:xt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(n,r){var i=Zt(n,[Qt,Kt])[0];if(i){var o=t(a[0])(i,r);return e.fromObject(o)}return e.invalid("unparsable","the input \""+n+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(n,r){var i=Zt(n,[Bt,gn])[0];if(i){var o=t(a[0])(i,r);return e.fromObject(o)}return e.invalid("unparsable","the input \""+n+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new M("need to specify a reason the Duration is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new T(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new O(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=e.prototype;return n.toFormat=function(e,n){void 0===n&&(n={});var r=t(a[0])({},n,{floor:!1!==n.round&&!1!==n.floor});return this.isValid?Ye.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=t(a[0])({},this.values);return e.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=fe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=this.toMillis();if(n<0||n>=864e5)return null;e=t(a[0])({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(i+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(i+=".SSS"));var o=r.toFormat(i);return e.includePrefix&&(o="T"+o),o},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n.toMillis=function(){return this.as("milliseconds")},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var t,n=xn(e),r={},i=g(Nn);!(t=i()).done;){var o=t.value;(ae(n.values,o)||ae(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return Dn(this,{values:r},!0)},n.minus=function(e){if(!this.isValid)return this;var t=xn(e);return this.plus(t.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=l;var f=0;for(var d in u)f+=this.matrix[d][l]*u[d],u[d]=0;X(s[l])&&(f+=s[l]);var h=Math.trunc(f);for(var m in a[l]=h,u[l]=f-h,s)Nn.indexOf(m)>Nn.indexOf(l)&&In(this.matrix,s,m,a,l)}else X(s[l])&&(u[l]=s[l])}for(var y in u)0!==u[y]&&(a[i]+=y===i?u[y]:u[y]/this.matrix[i][y]);return Dn(this,{values:a},!0).normalize()},n.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;a.push(e.fromDateTimes(u,l)),u=l,s+=1}return a},t.splitBy=function(t){var n=xn(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i+this.e?this.e:u,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],u=t.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),s=g((n=Array.prototype).concat.apply(n,u).sort(function(e,t){return e.time-t.time}));!(r=s()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&a.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=0){var f;r=c;var d,h=l(e,t);if((i=e.plus(((f={})[c]=h,f)))>t)e=e.plus(((d={})[c]=h-1,d)),h-=1;else e=i;o[c]=h}}return[e,o,i,r]}function jn(e,n,r,i){var o=_n(e,n,r),u=o[0],s=o[1],c=o[2],l=o[3],f=n-u,d=r.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0});if(0===d.length){var h;if(c0?(m=Ln.fromMillis(f,i)).shiftTo.apply(m,d).plus(y):y}var qn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Hn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Un=qn.hanidec.replace(/[\[|\]]/g,"").split("");function Rn(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=u&&(t+=r-a)}}return parseInt(t,10)}return t}function Pn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+qn[n||"latn"]+t)}var Wn="missing Intl.DateTimeFormat.formatToParts support";function Jn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(Rn(n))}}}String.fromCharCode(160);var Yn="( |\xa0)",Gn=new RegExp(Yn,"g");function $n(e){return e.replace(/\./g,"\\.?").replace(Gn,Yn)}function Bn(e){return e.replace(/\./g,"").replace(Gn," ").toLowerCase()}function Qn(e,t){return null===e?null:{regex:RegExp(e.map($n).join("|")),deser:function(n){var r=n[0];return e.findIndex(function(e){return Bn(r)===Bn(e)})+t}}}function Kn(e,t){return{regex:e,deser:function(e){return we(e[1],e[2])},groups:t}}function Xn(e){return{regex:e,deser:function(e){return e[0]}}}var er={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tr(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=er[r];return"object"==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}function nr(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function rr(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(ae(n,a)){var u=n[a],s=u.groups?u.groups+1:1;!u.literal&&u.token&&(i[u.token.val[0]]=u.deser(r.slice(o,o+s))),o+=s}return[r,i]}return[r,{}]}function ir(e){var t,n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};return t=K(e.Z)?K(e.z)?null:it.create(e.z):new at(e.Z),K(e.q)||(e.M=3*(e.q-1)+1),K(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),K(e.u)||(e.S=le(e.u)),[Object.keys(e).reduce(function(t,r){var i=n(r);return i&&(t[i]=e[r]),t},{}),t]}var or=null;function ar(e,t){if(e.literal)return e;var n=Ye.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ye.create(t,n).formatDateTimeParts((or||(or=Rr.fromMillis(1555555555555)),or)).map(function(e){return tr(e,0,n)});return r.includes(void 0)?e:r}function ur(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return ar(e,t)}))}function sr(e,t,n){var r=ur(Ye.parseFormat(n),e),i=r.map(function(t){return n=t,i=Pn(r=e),o=Pn(r,"{2}"),a=Pn(r,"{3}"),u=Pn(r,"{4}"),s=Pn(r,"{6}"),c=Pn(r,"{1,2}"),l=Pn(r,"{1,3}"),f=Pn(r,"{1,6}"),d=Pn(r,"{1,9}"),h=Pn(r,"{2,4}"),m=Pn(r,"{4,6}"),y=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(v=(function(e){if(n.literal)return y(e);switch(e.val){case"G":return Qn(r.eras("short",!1),0);case"GG":return Qn(r.eras("long",!1),0);case"y":return Jn(f);case"yy":return Jn(h,pe);case"yyyy":return Jn(u);case"yyyyy":return Jn(m);case"yyyyyy":return Jn(s);case"M":return Jn(c);case"MM":return Jn(o);case"MMM":return Qn(r.months("short",!0,!1),1);case"MMMM":return Qn(r.months("long",!0,!1),1);case"L":return Jn(c);case"LL":return Jn(o);case"LLL":return Qn(r.months("short",!1,!1),1);case"LLLL":return Qn(r.months("long",!1,!1),1);case"d":return Jn(c);case"dd":return Jn(o);case"o":return Jn(l);case"ooo":return Jn(a);case"HH":return Jn(o);case"H":return Jn(c);case"hh":return Jn(o);case"h":return Jn(c);case"mm":return Jn(o);case"m":case"q":return Jn(c);case"qq":return Jn(o);case"s":return Jn(c);case"ss":return Jn(o);case"S":return Jn(l);case"SSS":return Jn(a);case"u":return Xn(d);case"a":return Qn(r.meridiems(),0);case"kkkk":return Jn(u);case"kk":return Jn(h,pe);case"W":return Jn(c);case"WW":return Jn(o);case"E":case"c":return Jn(i);case"EEE":return Qn(r.weekdays("short",!1,!1),1);case"EEEE":return Qn(r.weekdays("long",!1,!1),1);case"ccc":return Qn(r.weekdays("short",!0,!1),1);case"cccc":return Qn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Kn(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Kn(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return Xn(/[a-z_+-/]{1,256}?/i);default:return y(e)}})(n)||{invalidReason:Wn}).token=n,v;var n,r,i,o,a,u,s,c,l,f,d,h,m,y,v}),o=i.find(function(e){return e.invalidReason});if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=nr(i),u=a[0],s=a[1],c=RegExp(u,"i"),l=rr(t,c,s),f=l[0],d=l[1],h=d?ir(d):[null,null],m=h[0],y=h[1];if(ae(d,"a")&&ae(d,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:f,matches:d,result:m,zone:y}}function cr(e,t,n){var r=sr(e,t,n);return[r.result,r.zone,r.invalidReason]}var lr=[0,31,59,90,120,151,181,212,243,273,304,334],fr=[0,31,60,91,121,152,182,213,244,274,305,335];function dr(e,t){return new Ge("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function hr(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function mr(e,t,n){return n+(de(e)?fr:lr)[t-1]}function yr(e,t){var n=de(e)?fr:lr,r=n.findIndex(function(e){return eve(r)?(n=r+1,c=1):n=r,t(a[0])({weekYear:n,weekNumber:c,weekday:s},be(e))}function pr(e){var n,r=e.weekYear,i=e.weekNumber,o=e.weekday,u=hr(r,1,4),s=he(r),c=7*i+o-u-3;c<1?c+=he(n=r-1):c>s?(n=r+1,c-=he(r)):n=r;var l=yr(n,c),f=l.month,d=l.day;return t(a[0])({year:n,month:f,day:d},be(e))}function gr(e){var n=e.year,r=mr(n,e.month,e.day);return t(a[0])({year:n,ordinal:r},be(e))}function wr(e){var n=e.year,r=yr(n,e.ordinal),i=r.month,o=r.day;return t(a[0])({year:n,month:i,day:o},be(e))}function kr(e){var t=ee(e.weekYear),n=ue(e.weekNumber,1,ve(e.weekYear)),r=ue(e.weekday,1,7);return t?n?!r&&dr("weekday",e.weekday):dr("week",e.week):dr("weekYear",e.weekYear)}function Sr(e){var t=ee(e.year),n=ue(e.ordinal,1,he(e.year));return t?!n&&dr("ordinal",e.ordinal):dr("year",e.year)}function Tr(e){var t=ee(e.year),n=ue(e.month,1,12),r=ue(e.day,1,me(e.year,e.month));return t?n?!r&&dr("day",e.day):dr("month",e.month):dr("year",e.year)}function br(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=ue(t,0,23)||24===t&&0===n&&0===r&&0===i,a=ue(n,0,59),u=ue(r,0,59),s=ue(i,0,999);return o?a?u?!s&&dr("millisecond",i):dr("second",r):dr("minute",n):dr("hour",t)}function Or(e){return new Ge("unsupported zone","the zone \""+e.name+"\" is not supported")}function Mr(e){return null===e.weekData&&(e.weekData=vr(e.c)),e.weekData}function Nr(e,n){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Rr(t(a[0])({},r,n,{old:r}))}function Er(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Dr(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ir(e,t,n){return Er(ye(e),t,n)}function Vr(e,n){var r=e.o,i=e.c.year+Math.trunc(n.years),o=e.c.month+Math.trunc(n.months)+3*Math.trunc(n.quarters),u=t(a[0])({},e.c,{year:i,month:o,day:Math.min(e.c.day,me(i,o))+Math.trunc(n.days)+7*Math.trunc(n.weeks)}),s=Ln.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),c=Er(ye(u),r,e.zone),l=c[0],f=c[1];return 0!==s&&(l+=s,f=e.zone.offset(l)),{ts:l,o:f}}function Lr(e,n,r,i,o){var u=r.setZone,s=r.zone;if(e&&0!==Object.keys(e).length){var c=n||s,l=Rr.fromObject(t(a[0])(e,r,{zone:c,setZone:void 0}));return u?l:l.setZone(s)}return Rr.invalid(new Ge("unparsable","the input \""+o+"\" can't be parsed as "+i))}function xr(e,t,n){return void 0===n&&(n=!0),e.isValid?Ye.create(xt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Cr(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,u=t.includePrefix,s=void 0!==u&&u,c=t.includeZone,l=void 0!==c&&c,f=t.spaceZone,d=void 0!==f&&f,h=t.format,m=void 0===h?"extended":h,y="basic"===m?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(y+="basic"===m?"ss":":ss",o&&0===e.millisecond||(y+=".SSS")),(l||a)&&d&&(y+=" "),l?y+="z":a&&(y+="basic"===m?"ZZZ":"ZZ");var v=xr(e,y);return s&&(v="T"+v),v}var Fr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},zr=["year","month","day","hour","minute","second","millisecond"],_r=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],jr=["year","ordinal","hour","minute","second","millisecond"];function qr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new O(e);return t}function Hr(e,t){for(var n,r=g(zr);!(n=r()).done;){var i=n.value;K(e[i])&&(e[i]=Fr[i])}var o=Tr(e)||br(e);if(o)return Rr.invalid(o);var a=yt.now(),u=Ir(e,t.offset(a),t),s=u[0],c=u[1];return new Rr({ts:s,zone:t,o:c})}function Ur(e,t,n){var r=!!K(n.round)||n.round,i=function(e,i){return e=fe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,u=g(n.units);!(a=u()).done;){var s=a.value,c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,n.units[n.units.length-1])}var Rr=(function(){function e(e){var t=e.zone||yt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ge("invalid input"):null)||(t.isValid?null:Or(t));this.ts=K(e.ts)?yt.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Dr(this.ts,a),r=(n=Number.isNaN(r.year)?new Ge("invalid input"):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||xt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,o,a,u){return K(t)?e.now():Hr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},yt.defaultZone)},e.utc=function(t,n,r,i,o,a,u){return K(t)?new e({ts:yt.now(),zone:at.utcInstance}):Hr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},at.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var o=st(n.zone,yt.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:xt.fromObject(n)}):e.invalid(Or(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),X(t))return t<-864e13||t>864e13?e.invalid("Timestamp out of range"):new e({ts:t,zone:st(n.zone,yt.defaultZone),loc:xt.fromObject(n)});throw new M("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),X(t))return new e({ts:1e3*t,zone:st(n.zone,yt.defaultZone),loc:xt.fromObject(n)});throw new M("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=st(t.zone,yt.defaultZone);if(!n.isValid)return e.invalid(Or(n));var r=yt.now(),i=n.offset(r),o=Se(t,qr,["zone","locale","outputCalendar","numberingSystem"]),a=!K(o.ordinal),u=!K(o.year),s=!K(o.month)||!K(o.day),c=u||s,l=o.weekYear||o.weekNumber,f=xt.fromObject(t);if((c||a)&&l)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new b("Can't mix ordinal dates with month/day");var d,h,m=l||o.weekday&&!c,y=Dr(r,i);m?(d=_r,h=Zr,y=vr(y)):a?(d=jr,h=Ar,y=gr(y)):(d=zr,h=Fr);for(var v,p=!1,w=g(d);!(v=w()).done;){var k=v.value;K(o[k])?o[k]=p?h[k]:y[k]:p=!0}var S=(m?kr(o):a?Sr(o):Tr(o))||br(o);if(S)return e.invalid(S);var T=Ir(m?pr(o):a?wr(o):o,i,n),O=new e({ts:T[0],zone:n,o:T[1],loc:f});return o.weekday&&c&&t.weekday!==O.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+O.toISO()):O},e.fromISO=function(e,t){void 0===t&&(t={});var n=Zt(e,[ln,mn],[fn,yn],[dn,vn],[hn,pn]);return Lr(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=Zt(rn(e),[tn,nn]);return Lr(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=Zt(e,[on,sn],[an,sn],[un,cn]);return Lr(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),K(t)||K(n))throw new M("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,u=i.numberingSystem,s=void 0===u?null:u,c=cr(xt.fromOpts({locale:a,numberingSystem:s,defaultToEN:!0}),t,n),l=c[0],f=c[1],d=c[2];return d?e.invalid(d):Lr(l,f,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=Zt(e,[wn,Sn],[kn,Tn]);return Lr(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new M("need to specify a reason the DateTime is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new k(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var n=e.prototype;return n.get=function(e){return this[e]},n.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ye.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},n.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(at.instance(e),t)},n.toLocal=function(){return this.setZone(yt.defaultZone)},n.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,u=void 0!==a&&a;if((t=st(t,yt.defaultZone)).equals(this.zone))return this;if(t.isValid){var s=this.ts;if(o||u){var c=t.offset(this.ts);s=Ir(this.toObject(),c,t)[0]}return Nr(this,{ts:s,zone:t})}return e.invalid(Or(t))},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Nr(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var n,r=Se(e,qr,[]),i=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),o=!K(r.ordinal),u=!K(r.year),s=!K(r.month)||!K(r.day),c=u||s,l=r.weekYear||r.weekNumber;if((c||o)&&l)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new b("Can't mix ordinal dates with month/day");i?n=pr(t(a[0])(vr(this.c),r)):K(r.ordinal)?(n=t(a[0])(this.toObject(),r),K(r.day)&&(n.day=Math.min(me(n.year,n.month),n.day))):n=wr(t(a[0])(gr(this.c),r));var f=Ir(n,this.o,this.zone);return Nr(this,{ts:f[0],o:f[1]})},n.plus=function(e){return this.isValid?Nr(this,Vr(this,xn(e))):this},n.minus=function(e){return this.isValid?Nr(this,Vr(this,xn(e).negate())):this},n.startOf=function(e){if(!this.isValid)return this;var t={},n=Ln.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},n.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},n.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ye.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):"Invalid DateTime"},n.toLocaleString=function(e){return void 0===e&&(e=V),this.isValid?Ye.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ye.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},n.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),xr(this,n)},n.toISOWeekDate=function(){return xr(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,u=void 0===a||a,s=t.includePrefix,c=void 0!==s&&s,l=t.format;return Cr(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:u,includePrefix:c,format:void 0===l?"extended":l})},n.toRFC2822=function(){return xr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return xr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return xr(this,"yyyy-MM-dd")},n.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Cr(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},n.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=t(a[0])({},this.c);return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,n,r){if(void 0===n&&(n="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return Ln.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var i,o=t(a[0])({locale:this.locale,numberingSystem:this.numberingSystem},r),u=(i=n,Array.isArray(i)?i:[i]).map(Ln.normalizeUnit),s=e.valueOf()>this.valueOf(),c=jn(s?this:e,s?e:this,u,o);return s?c.negate():c},n.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},n.until=function(e){return this.isValid?Zn.fromDateTimes(this,e):this},n.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var r=n.base||e.fromObject({zone:this.zone}),i=n.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return de(this.year)}},{key:"daysInMonth",get:function(){return me(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?he(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ve(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return V}},{key:"DATE_MED",get:function(){return L}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return x}},{key:"DATE_FULL",get:function(){return C}},{key:"DATE_HUGE",get:function(){return F}},{key:"TIME_SIMPLE",get:function(){return Z}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return z}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return j}},{key:"TIME_24_WITH_SECONDS",get:function(){return q}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return H}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return U}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return P}},{key:"DATETIME_MED",get:function(){return W}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return J}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return Y}},{key:"DATETIME_FULL",get:function(){return G}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_HUGE",get:function(){return B}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Q}}]),e})();function Pr(e){if(Rr.isDateTime(e))return e;if(e&&e.valueOf&&X(e.valueOf()))return Rr.fromJSDate(e);if(e&&"object"==typeof e)return Rr.fromObject(e);throw new M("Unknown datetime argument: "+e+", of type "+typeof e)}o.DateTime=Rr,o.Duration=Ln,o.FixedOffsetZone=at,o.IANAZone=it,o.Info=An,o.Interval=Zn,o.InvalidZone=ut,o.LocalZone=Qe,o.Settings=yt,o.VERSION="1.28.0",o.Zone=$e},1075,[4]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsStringOrVerificationMethod=e.VerificationMethodTransformer=e.VerificationMethod=void 0,Object.defineProperty(e,"VerificationMethod",{enumerable:!0,get:function(){return r(d[0]).VerificationMethod}}),Object.defineProperty(e,"VerificationMethodTransformer",{enumerable:!0,get:function(){return r(d[1]).VerificationMethodTransformer}}),Object.defineProperty(e,"IsStringOrVerificationMethod",{enumerable:!0,get:function(){return r(d[1]).IsStringOrVerificationMethod}})},1076,[1077,1078]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var p,r=arguments.length,s=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var c=t.length-1;c>=0;c--)(p=t[c])&&(s=(r<3?p(s):r>3?p(i,o,s):p(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.VerificationMethod=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.type=i.type,this.controller=i.controller,this.publicKeyBase58=i.publicKeyBase58,this.publicKeyBase64=i.publicKeyBase64,this.publicKeyJwk=i.publicKeyJwk,this.publicKeyHex=i.publicKeyHex,this.publicKeyMultibase=i.publicKeyMultibase,this.publicKeyPem=i.publicKeyPem,this.blockchainAccountId=i.blockchainAccountId,this.ethereumAddress=i.ethereumAddress)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"id",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"controller",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyBase58",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyBase64",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyHex",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyMultibase",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyPem",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"blockchainAccountId",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"ethereumAddress",void 0),e.VerificationMethod=o},1077,[8,7,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerificationMethodTransformer=e.IsStringOrVerificationMethod=void 0,e.IsStringOrVerificationMethod=function(n){return(0,r(d[0]).ValidateBy)({name:'isStringOrVerificationMethod',validator:{validate:function(n){return(0,r(d[0]).isString)(n)||(0,r(d[0]).isInstance)(n,r(d[1]).VerificationMethod)},defaultMessage:(0,r(d[0]).buildMessage)(function(n){return n+'$property must be a string or instance of VerificationMethod'},n)}},n)},e.VerificationMethodTransformer=function(){return(0,r(d[2]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[2]).TransformationType.PLAIN_TO_CLASS?null===t||void 0===t?void 0:t.map(function(n){return'string'==typeof n?String(n):r(d[3]).JsonTransformer.fromJSON(n,r(d[1]).VerificationMethod)}):o===r(d[2]).TransformationType.CLASS_TO_PLAIN?null===t||void 0===t?void 0:t.map(function(n){return'string'==typeof n?n:r(d[3]).JsonTransformer.toJSON(n)}):t})}},1078,[662,1077,627,626]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,p){void 0===p&&(p=o);var y=Object.getOwnPropertyDescriptor(n,o);y&&("get"in y?n.__esModule:!y.writable&&!y.configurable)||(y={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,p,y)}:function(t,n,o,p){void 0===p&&(p=o),t[p]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var p in n)"default"===p||Object.prototype.hasOwnProperty.call(o,p)||t(o,n,p)};Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyDidMappingByVerificationMethod=e.getKeyDidMappingByKeyType=void 0,Object.defineProperty(e,"getKeyDidMappingByKeyType",{enumerable:!0,get:function(){return r(d[0]).getKeyDidMappingByKeyType}}),Object.defineProperty(e,"getKeyDidMappingByVerificationMethod",{enumerable:!0,get:function(){return r(d[0]).getKeyDidMappingByVerificationMethod}}),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1079,[1080,1063,1060,1062,1081,1088]); -__d(function(g,r,i,a,m,e,d){"use strict";var y;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyDidMappingByVerificationMethod=e.getKeyDidMappingByKeyType=void 0;var t=(y={},r(d[0])(y,r(d[1]).KeyType.Ed25519,r(d[2]).keyDidEd25519),r(d[0])(y,r(d[1]).KeyType.X25519,r(d[3]).keyDidX25519),r(d[0])(y,r(d[1]).KeyType.Bls12381g1,r(d[4]).keyDidBls12381g1),r(d[0])(y,r(d[1]).KeyType.Bls12381g2,r(d[5]).keyDidBls12381g2),r(d[0])(y,r(d[1]).KeyType.Bls12381g1g2,r(d[6]).keyDidBls12381g1g2),y),p=Object.values(r(d[1]).KeyType).reduce(function(y,p){var n=t[p].supportedVerificationMethodTypes.reduce(function(y,n){return r(d[7])(r(d[7])({},y),r(d[0])({},n,t[p]))},{});return r(d[7])(r(d[7])({},y),n)},{});e.getKeyDidMappingByKeyType=function(y){var p=t[y];if(!p)throw new Error("Unsupported key did from key type '"+y+"'");return p},e.getKeyDidMappingByVerificationMethod=function(y){var t=p[y.type];if(!t)throw new Error("Unsupported key did from verification method type '"+y.type+"'");return t}},1080,[249,990,1081,1088,1060,1063,1062,4]); -__d(function(g,r,i,a,m,e,d){"use strict";function E(E){var _=E.key,I=E.id,t=E.controller;return{id:I,type:e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,controller:t,publicKeyBase58:_.publicKeyBase58}}Object.defineProperty(e,"__esModule",{value:!0}),e.convertPublicKeyToX25519=e.keyDidEd25519=e.getEd25519VerificationMethod=e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020=e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018=void 0,Object.defineProperty(e,"convertPublicKeyToX25519",{enumerable:!0,get:function(){return r(d[0]).convertPublicKeyToX25519}}),e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018='Ed25519VerificationKey2018',e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020='Ed25519VerificationKey2020',e.getEd25519VerificationMethod=E,e.keyDidEd25519={supportedVerificationMethodTypes:[e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020],getVerificationMethods:function(_,I){return[E({id:_+"#"+I.fingerprint,key:I,controller:_})]},getKeyFromVerificationMethod:function(E){if(E.type===e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018&&E.publicKeyBase58)return r(d[1]).Key.fromPublicKeyBase58(E.publicKeyBase58,r(d[2]).KeyType.Ed25519);if(E.type===e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020&&E.publicKeyMultibase)return r(d[1]).Key.fromFingerprint(E.publicKeyMultibase);throw new Error('Invalid verification method passed')}}},1081,[1082,992,990]); -__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function r(r){var o=new Float64Array(16);if(r)for(var a=0;a>16&1),t[e-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);var u=t[15]>>16&1;t[14]&=65535,l(n,t,1-u)}for(e=0;e<16;e++)o[2*e]=255&n[e],o[2*e+1]=n[e]>>8}function c(r,o){for(var a=0,t=0;t<32;t++)a|=r[t]^o[t];return(1&a-1>>>8)-1}function y(r,o){var a=new Uint8Array(32),t=new Uint8Array(32);return h(a,r),h(t,o),c(a,t)}function s(r){var o=new Uint8Array(32);return h(o,r),1&o[0]}function M(r,o){for(var a=0;a<16;a++)r[a]=o[2*a]+(o[2*a+1]<<8);r[15]&=32767}function E(r,o,a){for(var t=0;t<16;t++)r[t]=o[t]+a[t]}function w(r,o,a){for(var t=0;t<16;t++)r[t]=o[t]-a[t]}function b(r,o,a){var t,n,e=0,f=0,u=0,i=0,v=0,l=0,h=0,c=0,y=0,s=0,M=0,E=0,w=0,b=0,d=0,A=0,T=0,_=0,U=0,S=0,p=0,G=0,N=0,H=0,K=0,g=0,L=0,m=0,F=0,P=0,R=0,C=a[0],I=a[1],Y=a[2],D=a[3],k=a[4],B=a[5],X=a[6],j=a[7],x=a[8],O=a[9],q=a[10],z=a[11],J=a[12],Q=a[13],V=a[14],W=a[15];e+=(t=o[0])*C,f+=t*I,u+=t*Y,i+=t*D,v+=t*k,l+=t*B,h+=t*X,c+=t*j,y+=t*x,s+=t*O,M+=t*q,E+=t*z,w+=t*J,b+=t*Q,d+=t*V,A+=t*W,f+=(t=o[1])*C,u+=t*I,i+=t*Y,v+=t*D,l+=t*k,h+=t*B,c+=t*X,y+=t*j,s+=t*x,M+=t*O,E+=t*q,w+=t*z,b+=t*J,d+=t*Q,A+=t*V,T+=t*W,u+=(t=o[2])*C,i+=t*I,v+=t*Y,l+=t*D,h+=t*k,c+=t*B,y+=t*X,s+=t*j,M+=t*x,E+=t*O,w+=t*q,b+=t*z,d+=t*J,A+=t*Q,T+=t*V,_+=t*W,i+=(t=o[3])*C,v+=t*I,l+=t*Y,h+=t*D,c+=t*k,y+=t*B,s+=t*X,M+=t*j,E+=t*x,w+=t*O,b+=t*q,d+=t*z,A+=t*J,T+=t*Q,_+=t*V,U+=t*W,v+=(t=o[4])*C,l+=t*I,h+=t*Y,c+=t*D,y+=t*k,s+=t*B,M+=t*X,E+=t*j,w+=t*x,b+=t*O,d+=t*q,A+=t*z,T+=t*J,_+=t*Q,U+=t*V,S+=t*W,l+=(t=o[5])*C,h+=t*I,c+=t*Y,y+=t*D,s+=t*k,M+=t*B,E+=t*X,w+=t*j,b+=t*x,d+=t*O,A+=t*q,T+=t*z,_+=t*J,U+=t*Q,S+=t*V,p+=t*W,h+=(t=o[6])*C,c+=t*I,y+=t*Y,s+=t*D,M+=t*k,E+=t*B,w+=t*X,b+=t*j,d+=t*x,A+=t*O,T+=t*q,_+=t*z,U+=t*J,S+=t*Q,p+=t*V,G+=t*W,c+=(t=o[7])*C,y+=t*I,s+=t*Y,M+=t*D,E+=t*k,w+=t*B,b+=t*X,d+=t*j,A+=t*x,T+=t*O,_+=t*q,U+=t*z,S+=t*J,p+=t*Q,G+=t*V,N+=t*W,y+=(t=o[8])*C,s+=t*I,M+=t*Y,E+=t*D,w+=t*k,b+=t*B,d+=t*X,A+=t*j,T+=t*x,_+=t*O,U+=t*q,S+=t*z,p+=t*J,G+=t*Q,N+=t*V,H+=t*W,s+=(t=o[9])*C,M+=t*I,E+=t*Y,w+=t*D,b+=t*k,d+=t*B,A+=t*X,T+=t*j,_+=t*x,U+=t*O,S+=t*q,p+=t*z,G+=t*J,N+=t*Q,H+=t*V,K+=t*W,M+=(t=o[10])*C,E+=t*I,w+=t*Y,b+=t*D,d+=t*k,A+=t*B,T+=t*X,_+=t*j,U+=t*x,S+=t*O,p+=t*q,G+=t*z,N+=t*J,H+=t*Q,K+=t*V,g+=t*W,E+=(t=o[11])*C,w+=t*I,b+=t*Y,d+=t*D,A+=t*k,T+=t*B,_+=t*X,U+=t*j,S+=t*x,p+=t*O,G+=t*q,N+=t*z,H+=t*J,K+=t*Q,g+=t*V,L+=t*W,w+=(t=o[12])*C,b+=t*I,d+=t*Y,A+=t*D,T+=t*k,_+=t*B,U+=t*X,S+=t*j,p+=t*x,G+=t*O,N+=t*q,H+=t*z,K+=t*J,g+=t*Q,L+=t*V,m+=t*W,b+=(t=o[13])*C,d+=t*I,A+=t*Y,T+=t*D,_+=t*k,U+=t*B,S+=t*X,p+=t*j,G+=t*x,N+=t*O,H+=t*q,K+=t*z,g+=t*J,L+=t*Q,m+=t*V,F+=t*W,d+=(t=o[14])*C,A+=t*I,T+=t*Y,_+=t*D,U+=t*k,S+=t*B,p+=t*X,G+=t*j,N+=t*x,H+=t*O,K+=t*q,g+=t*z,L+=t*J,m+=t*Q,F+=t*V,P+=t*W,A+=(t=o[15])*C,f+=38*(_+=t*Y),u+=38*(U+=t*D),i+=38*(S+=t*k),v+=38*(p+=t*B),l+=38*(G+=t*X),h+=38*(N+=t*j),c+=38*(H+=t*x),y+=38*(K+=t*O),s+=38*(g+=t*q),M+=38*(L+=t*z),E+=38*(m+=t*J),w+=38*(F+=t*Q),b+=38*(P+=t*V),d+=38*(R+=t*W),e=(t=(e+=38*(T+=t*I))+(n=1)+65535)-65536*(n=Math.floor(t/65536)),f=(t=f+n+65535)-65536*(n=Math.floor(t/65536)),u=(t=u+n+65535)-65536*(n=Math.floor(t/65536)),i=(t=i+n+65535)-65536*(n=Math.floor(t/65536)),v=(t=v+n+65535)-65536*(n=Math.floor(t/65536)),l=(t=l+n+65535)-65536*(n=Math.floor(t/65536)),h=(t=h+n+65535)-65536*(n=Math.floor(t/65536)),c=(t=c+n+65535)-65536*(n=Math.floor(t/65536)),y=(t=y+n+65535)-65536*(n=Math.floor(t/65536)),s=(t=s+n+65535)-65536*(n=Math.floor(t/65536)),M=(t=M+n+65535)-65536*(n=Math.floor(t/65536)),E=(t=E+n+65535)-65536*(n=Math.floor(t/65536)),w=(t=w+n+65535)-65536*(n=Math.floor(t/65536)),b=(t=b+n+65535)-65536*(n=Math.floor(t/65536)),d=(t=d+n+65535)-65536*(n=Math.floor(t/65536)),A=(t=A+n+65535)-65536*(n=Math.floor(t/65536)),e=(t=(e+=n-1+37*(n-1))+(n=1)+65535)-65536*(n=Math.floor(t/65536)),f=(t=f+n+65535)-65536*(n=Math.floor(t/65536)),u=(t=u+n+65535)-65536*(n=Math.floor(t/65536)),i=(t=i+n+65535)-65536*(n=Math.floor(t/65536)),v=(t=v+n+65535)-65536*(n=Math.floor(t/65536)),l=(t=l+n+65535)-65536*(n=Math.floor(t/65536)),h=(t=h+n+65535)-65536*(n=Math.floor(t/65536)),c=(t=c+n+65535)-65536*(n=Math.floor(t/65536)),y=(t=y+n+65535)-65536*(n=Math.floor(t/65536)),s=(t=s+n+65535)-65536*(n=Math.floor(t/65536)),M=(t=M+n+65535)-65536*(n=Math.floor(t/65536)),E=(t=E+n+65535)-65536*(n=Math.floor(t/65536)),w=(t=w+n+65535)-65536*(n=Math.floor(t/65536)),b=(t=b+n+65535)-65536*(n=Math.floor(t/65536)),d=(t=d+n+65535)-65536*(n=Math.floor(t/65536)),A=(t=A+n+65535)-65536*(n=Math.floor(t/65536)),e+=n-1+37*(n-1),r[0]=e,r[1]=f,r[2]=u,r[3]=i,r[4]=v,r[5]=l,r[6]=h,r[7]=c,r[8]=y,r[9]=s,r[10]=M,r[11]=E,r[12]=w,r[13]=b,r[14]=d,r[15]=A}function d(r,o){b(r,o,o)}function A(o,a){var t,n=r();for(t=0;t<16;t++)n[t]=a[t];for(t=253;t>=0;t--)d(n,n),2!==t&&4!==t&&b(n,n,a);for(t=0;t<16;t++)o[t]=n[t]}function T(o,a){var t,n=r();for(t=0;t<16;t++)n[t]=a[t];for(t=250;t>=0;t--)d(n,n),1!==t&&b(n,n,a);for(t=0;t<16;t++)o[t]=n[t]}function _(o,a){var t=r(),e=r(),f=r(),u=r(),i=r(),v=r(),l=r(),h=r(),c=r();w(t,o[1],o[0]),w(c,a[1],a[0]),b(t,t,c),E(e,o[0],o[1]),E(c,a[0],a[1]),b(e,e,c),b(f,o[3],a[3]),b(f,f,n),b(u,o[2],a[2]),E(u,u,u),w(i,e,t),w(v,u,f),E(l,u,f),E(h,e,t),b(o[0],i,v),b(o[1],h,l),b(o[2],l,v),b(o[3],i,h)}function U(r,o,a){for(var t=0;t<4;t++)l(r[t],o[t],a)}function S(o,a){var t=r(),n=r(),e=r();A(e,a[2]),b(t,a[0],e),b(n,a[1],e),h(o,n),o[31]^=s(t)<<7}function p(r,t,n){i(r[0],o),i(r[1],a),i(r[2],a),i(r[3],o);for(var e=255;e>=0;--e){var f=n[e/8|0]>>(7&e)&1;U(r,t,f),_(t,r),_(r,r),U(r,t,f)}}function G(o,t){var n=[r(),r(),r(),r()];i(n[0],e),i(n[1],f),i(n[2],a),b(n[3],e,f),p(o,n,t)}function N(o){if(o.length!==_e.SEED_LENGTH)throw new Error("ed25519: seed must be "+_e.SEED_LENGTH+" bytes");var a=_r(_d[0]).hash(o);a[0]&=248,a[31]&=127,a[31]|=64;var t=new Uint8Array(32),n=[r(),r(),r(),r()];G(n,a),S(t,n);var e=new Uint8Array(64);return e.set(o),e.set(t,32),{publicKey:t,secretKey:e}}_e.generateKeyPairFromSeed=N,_e.generateKeyPair=function(r){var o=_r(_d[1]).randomBytes(32,r),a=N(o);return _r(_d[2]).wipe(o),a},_e.extractPublicKeyFromSecretKey=function(r){if(r.length!==_e.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+_e.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(r.subarray(32))};var H=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function K(r,o){var a,t,n,e;for(t=63;t>=32;--t){for(a=0,n=t-32,e=t-12;n>4)*H[n],a=o[n]>>8,o[n]&=255;for(n=0;n<32;n++)o[n]-=a*H[n];for(t=0;t<32;t++)o[t+1]+=o[t]>>8,r[t]=255&o[t]}function g(r){for(var o=new Float64Array(64),a=0;a<64;a++)o[a]=r[a];for(a=0;a<64;a++)r[a]=0;K(r,o)}function L(n,e){var f=r(),v=r(),l=r(),h=r(),c=r(),A=r(),_=r();return i(n[2],a),M(n[1],e),d(l,n[1]),b(h,l,t),w(l,l,n[2]),E(h,n[2],h),d(c,h),d(A,c),b(_,A,c),b(f,_,l),b(f,f,h),T(f,f),b(f,f,l),b(f,f,h),b(f,f,h),b(n[0],f,h),d(v,n[0]),b(v,v,h),y(v,l)&&b(n[0],n[0],u),d(v,n[0]),b(v,v,h),y(v,l)?-1:(s(n[0])===e[31]>>7&&w(n[0],o,n[0]),b(n[3],n[0],n[1]),0)}_e.sign=function(o,a){var t=new Float64Array(64),n=[r(),r(),r(),r()],e=_r(_d[0]).hash(o.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;var f=new Uint8Array(64);f.set(e.subarray(32),32);var u=new(_r(_d[0]).SHA512);u.update(f.subarray(32)),u.update(a);var i=u.digest();u.clean(),g(i),G(n,i),S(f,n),u.reset(),u.update(f.subarray(0,32)),u.update(o.subarray(32)),u.update(a);var v=u.digest();g(v);for(var l=0;l<32;l++)t[l]=i[l];for(l=0;l<32;l++)for(var h=0;h<32;h++)t[l+h]+=v[l]*e[h];return K(f.subarray(32),t),f},_e.verify=function(o,a,t){var n=new Uint8Array(32),e=[r(),r(),r(),r()],f=[r(),r(),r(),r()];if(t.length!==_e.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+_e.SIGNATURE_LENGTH+" bytes");if(L(f,o))return!1;var u=new(_r(_d[0]).SHA512);u.update(t.subarray(0,32)),u.update(o),u.update(a);var i=u.digest();return g(i),p(e,f,i),G(f,t.subarray(32)),_(e,f),S(n,e),!c(t,n)},_e.convertPublicKeyToX25519=function(o){var t=[r(),r(),r(),r()];if(L(t,o))throw new Error("Ed25519: invalid public key");var n=r(),e=r(),f=t[1];E(n,a,f),w(e,a,f),A(e,e),b(n,n,e);var u=new Uint8Array(32);return h(u,n),u},_e.convertSecretKeyToX25519=function(r){var o=_r(_d[0]).hash(r.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;var a=new Uint8Array(o.subarray(0,32));return _r(_d[2]).wipe(o),a}},1082,[1083,1084,1001]); -__d(function(g,r,_i,_a,_m,e,_d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var t=(function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){r(_d[0]).wipe(this._buffer),r(_d[0]).wipe(this._tempHi),r(_d[0]).wipe(this._tempLo),this.reset()},t.prototype.update=function(t,i){if(void 0===i&&(i=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var h=0;if(this._bytesHashed+=i,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[h++],i--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(i>=this.blockSize&&(h=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,h,i),i%=this.blockSize);i>0;)this._buffer[this._bufferLength++]=t[h++],i--;return this},t.prototype.finish=function(t){if(!this._finished){var i=this._bytesHashed,h=this._bufferLength,n=i/536870912|0,f=i<<3,a=i%128<112?128:256;this._buffer[h]=128;for(var _=h+1;_0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){r(_d[0]).wipe(t.stateHi),r(_d[0]).wipe(t.stateLo),t.buffer&&r(_d[0]).wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t})();e.SHA512=t;var i=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(t,s,h,n,f,a,_){for(var o,u,b,L,p,H,d,y,c=h[0],w=h[1],S=h[2],v=h[3],E=h[4],A=h[5],I=h[6],l=h[7],m=n[0],B=n[1],U=n[2],k=n[3],z=n[4],G=n[5],O=n[6],T=n[7];_>=128;){for(var C=0;C<16;C++){var K=8*C+a;t[C]=r(_d[1]).readUint32BE(f,K),s[C]=r(_d[1]).readUint32BE(f,K+4)}for(C=0;C<80;C++){var Z,D,N=c,j=w,M=S,P=v,q=E,x=A,F=I,J=m,Q=B,R=U,V=k,W=z,X=G,Y=O;if(p=65535&(u=T),H=u>>>16,d=65535&(o=l),y=o>>>16,p+=65535&(u=(z>>>14|E<<18)^(z>>>18|E<<14)^(E>>>9|z<<23)),H+=u>>>16,d+=65535&(o=(E>>>14|z<<18)^(E>>>18|z<<14)^(z>>>9|E<<23)),y+=o>>>16,p+=65535&(u=z&G^~z&O),H+=u>>>16,d+=65535&(o=E&A^~E&I),y+=o>>>16,o=i[2*C],p+=65535&(u=i[2*C+1]),H+=u>>>16,d+=65535&o,y+=o>>>16,o=t[C%16],H+=(u=s[C%16])>>>16,d+=65535&o,y+=o>>>16,d+=(H+=(p+=65535&u)>>>16)>>>16,p=65535&(u=L=65535&p|H<<16),H=u>>>16,d=65535&(o=b=65535&d|(y+=d>>>16)<<16),y=o>>>16,p+=65535&(u=(m>>>28|c<<4)^(c>>>2|m<<30)^(c>>>7|m<<25)),H+=u>>>16,d+=65535&(o=(c>>>28|m<<4)^(m>>>2|c<<30)^(m>>>7|c<<25)),y+=o>>>16,H+=(u=m&B^m&U^B&U)>>>16,d+=65535&(o=c&w^c&S^w&S),y+=o>>>16,Z=65535&(d+=(H+=(p+=65535&u)>>>16)>>>16)|(y+=d>>>16)<<16,D=65535&p|H<<16,p=65535&(u=V),H=u>>>16,d=65535&(o=P),y=o>>>16,H+=(u=L)>>>16,d+=65535&(o=b),y+=o>>>16,w=N,S=j,v=M,E=P=65535&(d+=(H+=(p+=65535&u)>>>16)>>>16)|(y+=d>>>16)<<16,A=q,I=x,l=F,c=Z,B=J,U=Q,k=R,z=V=65535&p|H<<16,G=W,O=X,T=Y,m=D,C%16==15)for(K=0;K<16;K++)o=t[K],p=65535&(u=s[K]),H=u>>>16,d=65535&o,y=o>>>16,o=t[(K+9)%16],p+=65535&(u=s[(K+9)%16]),H+=u>>>16,d+=65535&o,y+=o>>>16,b=t[(K+1)%16],p+=65535&(u=((L=s[(K+1)%16])>>>1|b<<31)^(L>>>8|b<<24)^(L>>>7|b<<25)),H+=u>>>16,d+=65535&(o=(b>>>1|L<<31)^(b>>>8|L<<24)^b>>>7),y+=o>>>16,b=t[(K+14)%16],H+=(u=((L=s[(K+14)%16])>>>19|b<<13)^(b>>>29|L<<3)^(L>>>6|b<<26))>>>16,d+=65535&(o=(b>>>19|L<<13)^(L>>>29|b<<3)^b>>>6),y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,t[K]=65535&d|y<<16,s[K]=65535&p|H<<16}p=65535&(u=m),H=u>>>16,d=65535&(o=c),y=o>>>16,o=h[0],H+=(u=n[0])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[0]=c=65535&d|y<<16,n[0]=m=65535&p|H<<16,p=65535&(u=B),H=u>>>16,d=65535&(o=w),y=o>>>16,o=h[1],H+=(u=n[1])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[1]=w=65535&d|y<<16,n[1]=B=65535&p|H<<16,p=65535&(u=U),H=u>>>16,d=65535&(o=S),y=o>>>16,o=h[2],H+=(u=n[2])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[2]=S=65535&d|y<<16,n[2]=U=65535&p|H<<16,p=65535&(u=k),H=u>>>16,d=65535&(o=v),y=o>>>16,o=h[3],H+=(u=n[3])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[3]=v=65535&d|y<<16,n[3]=k=65535&p|H<<16,p=65535&(u=z),H=u>>>16,d=65535&(o=E),y=o>>>16,o=h[4],H+=(u=n[4])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[4]=E=65535&d|y<<16,n[4]=z=65535&p|H<<16,p=65535&(u=G),H=u>>>16,d=65535&(o=A),y=o>>>16,o=h[5],H+=(u=n[5])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[5]=A=65535&d|y<<16,n[5]=G=65535&p|H<<16,p=65535&(u=O),H=u>>>16,d=65535&(o=I),y=o>>>16,o=h[6],H+=(u=n[6])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[6]=I=65535&d|y<<16,n[6]=O=65535&p|H<<16,p=65535&(u=T),H=u>>>16,d=65535&(o=l),y=o>>>16,o=h[7],H+=(u=n[7])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[7]=l=65535&d|y<<16,n[7]=T=65535&p|H<<16,a+=128,_-=128}return a}e.hash=function(i){var s=new t;s.update(i);var h=s.digest();return s.clean(),h}},1083,[1001,1002]); -__d(function(g,r,_i,a,m,e,d){"use strict";function o(o,t){return void 0===t&&(t=e.defaultRandomSource),t.randomBytes(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.defaultRandomSource=new(r(d[0]).SystemRandomSource),e.randomBytes=o,e.randomUint32=function(t){void 0===t&&(t=e.defaultRandomSource);var n=o(4,t),i=r(d[1]).readUint32LE(n);return r(d[2]).wipe(n),i};var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function n(n,i,u){if(void 0===i&&(i=t),void 0===u&&(u=e.defaultRandomSource),i.length<2)throw new Error("randomString charset is too short");if(i.length>256)throw new Error("randomString charset is too long");for(var c='',l=i.length,f=256-256%l;n>0;){for(var h=o(Math.ceil(256*n/f),u),v=0;v0;v++){var s=h[v];s=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[1])(this,e),this.registry=void 0,this.cache=void 0,this.registry=n,this.cache=!0===o.cache?i():o.cache||u,o.legacyResolvers&&Object.keys(o.legacyResolvers).map(function(e){t.registry[e]||(t.registry[e]=v(o.legacyResolvers[e]))})}return r(d[2])(e,[{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=this,o=s(e);if(null===o)return Promise.resolve(r(d[0])({},l,{didResolutionMetadata:{error:'invalidDid'}}));var i=n.registry[o.method];return i?Promise.resolve(n.cache(o,function(){return i(o.did,o,n,t)})):Promise.resolve(r(d[0])({},l,{didResolutionMetadata:{error:'unsupportedDidMethod'}}))}catch(e){return Promise.reject(e)}}}]),e})();_e.Resolver=f,_e.inMemoryCache=i,_e.noCache=u,_e.parse=s,_e.wrapLegacyResolver=v},1091,[4,7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDidRegistrar=void 0;var t=(function(){function t(){r(d[0])(this,t),this.supportedMethods=['key']}return r(d[1])(t,[{key:"create",value:function(t,n){var s,u,o,c,l,p,y,f;return r(d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(o=t.dependencyManager.resolve(r(d[3]).DidRepository),c=n.options.keyType,l=null===(s=n.secret)||void 0===s?void 0:s.seed,c){v.next=5;break}return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Missing key type'}});case 5:if(!l||'string'==typeof l&&32===l.length){v.next=7;break}return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 7:return v.prev=7,v.next=10,r(d[2]).awrap(t.wallet.createKey({keyType:c,seed:l}));case 10:return p=v.sent,y=new(r(d[4]).DidKey)(p),f=new(r(d[3]).DidRecord)({did:y.did,role:r(d[5]).DidDocumentRole.Created}),v.next=15,r(d[2]).awrap(o.save(t,f));case 15:return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'finished',did:y.did,didDocument:y.didDocument,secret:{seed:null===(u=n.secret)||void 0===u?void 0:u.seed}}});case 18:return v.prev=18,v.t0=v.catch(7),v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknownError: "+v.t0.message}});case 21:case"end":return v.stop()}},null,null,[[7,18]],Promise)}},{key:"update",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notSupported: cannot update did:key did"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notSupported: cannot deactivate did:key did"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),t})();e.KeyDidRegistrar=t},1092,[7,8,82,1093,988,1099]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1093,[1094,1095]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(c=(o<3?r(c):o>3?r(t,i,c):r(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidRepository=void 0;var r=(function(t){_r(_d[2])(o,t);var i,n,r=(i=o,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),r.call(this,_r(_d[4]).DidRecord,e,t)}return _r(_d[5])(o,[{key:"findReceivedDidByRecipientKey",value:function(e,t){return this.findSingleByQuery(e,{recipientKeyFingerprints:[t.fingerprint],role:_r(_d[6]).DidDocumentRole.Received})}},{key:"findCreatedDidByRecipientKey",value:function(e,t){return this.findSingleByQuery(e,{recipientKeyFingerprints:[t.fingerprint],role:_r(_d[6]).DidDocumentRole.Created})}},{key:"findAllByRecipientKey",value:function(e,t){return this.findByQuery(e,{recipientKeyFingerprints:[t.fingerprint]})}},{key:"findAllByDid",value:function(e,t){return this.findByQuery(e,{did:t})}},{key:"findReceivedDid",value:function(e,t){return this.findSingleByQuery(e,{did:t,role:_r(_d[6]).DidDocumentRole.Received})}},{key:"findCreatedDid",value:function(e,t){return this.findSingleByQuery(e,{did:t,role:_r(_d[6]).DidDocumentRole.Created})}},{key:"getCreatedDids",value:function(e,t){var i=t.method;return this.findByQuery(e,{role:_r(_d[6]).DidDocumentRole.Created,method:i})}}]),o})(_r(_d[7]).Repository);r=t([(0,_r(_d[8]).injectable)(),n(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),i("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],r),_e.DidRepository=r},1094,[14,11,9,7,1095,8,1099,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length,d=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(d=(n<3?r(d):n>3?r(t,i,d):r(t,i))||d);return n>3&&d&&Object.defineProperty(t,i,d),d},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidRecord=void 0;var o=(function(t){_r(_d[2])(n,t);var i,o,r=(i=n,o=e(),function(){var e,t=_r(_d[0])(i);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t,i,o,d;return _r(_d[3])(this,n),(t=r.call(this)).type=n.type,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:(0,_r(_d[4]).uuid)(),t.did=e.did,t.role=e.role,t.didDocument=e.didDocument,t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t._tags=null!==(d=e.tags)&&void 0!==d?d:{}),t}return _r(_d[5])(n,[{key:"getTags",value:function(){var e=(0,_r(_d[6]).parseDid)(this.did),t=this.metadata.get(_r(_d[7]).DidRecordMetadataKeys.LegacyDid);return _r(_d[8])(_r(_d[8])({},this._tags),{role:this.role,method:e.method,legacyUnqualifiedDid:null===t||void 0===t?void 0:t.unqualifiedDid,did:this.did,methodSpecificIdentifier:e.id})}}]),n})(_r(_d[9]).BaseRecord);o.type='DidRecord',t([(0,_r(_d[10]).Type)(function(){return _r(_d[11]).DidDocument}),(0,_r(_d[12]).ValidateNested)(),i("design:type",_r(_d[11]).DidDocument)],o.prototype,"didDocument",void 0),t([(0,_r(_d[12]).IsEnum)(_r(_d[13]).DidDocumentRole),i("design:type",String)],o.prototype,"role",void 0),_e.DidRecord=o},1095,[14,11,9,7,953,8,1090,1096,4,1097,627,1098,662,1099]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidRecordMetadataKeys=void 0,(function(t){t.LegacyDid="_internal/legacyDid"})(e.DidRecordMetadataKeys||(e.DidRecordMetadataKeys={}))},1096,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,n){var i,s=arguments.length,c=s<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,r,n);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(c=(s<3?i(c):s>3?i(o,r,c):i(o,r))||c);return s>3&&c&&Object.defineProperty(o,r,c),c},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseRecord=void 0;var r=(function(){function t(){_r(_d[0])(this,t),this._tags={},this.type=t.type,this.metadata=new(_r(_d[1]).Metadata)({})}return _r(_d[2])(t,[{key:"setTag",value:function(t,o){this._tags[t]=o}},{key:"getTag",value:function(t){return this.getTags()[t]}},{key:"setTags",value:function(t){this._tags=_r(_d[3])(_r(_d[3])({},this._tags),t)}},{key:"replaceTags",value:function(t){this._tags=t}},{key:"toJSON",value:function(){return _r(_d[4]).JsonTransformer.toJSON(this)}}]),t})();r.type='BaseRecord',t([(0,_r(_d[5]).DateTransformer)(),o("design:type",Date)],r.prototype,"createdAt",void 0),t([(0,_r(_d[5]).DateTransformer)(),o("design:type",Date)],r.prototype,"updatedAt",void 0),t([(0,_r(_d[6]).Exclude)(),o("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[5]).MetadataTransformer)(),o("design:type",_r(_d[1]).Metadata)],r.prototype,"metadata",void 0),e.BaseRecord=r},1097,[7,1074,8,4,626,1073,627]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1098,[1066,1076,1065,1064,1099,1100,1101,1079]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentRole=void 0,(function(o){o.Created="created",o.Received="received"})(e.DidDocumentRole||(e.DidDocumentRole={}))},1099,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new V(i||[]);return c(l,"_invoke",{value:P(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var E={};h(E,l,function(){return this});var L=Object.getPrototypeOf,_=L&&L(L(F([])));_&&_!==o&&i.call(_,l)&&(E=_);var j=b.prototype=w.prototype=Object.create(E);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){h.value=t,l(h)},function(t){return o("throw",t,l,s)})}s(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=G(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.Validator=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"validate",value:function(t,n,o){return this.coreValidate(t,n,o)}},{key:"validateOrReject",value:function(n,o,i){var c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t().awrap(this.coreValidate(n,o,i));case 2:if(!(c=u.sent).length){u.next=5;break}return u.abrupt("return",Promise.reject(c));case 5:case"end":return u.stop()}},null,this,null,Promise)}},{key:"validateSync",value:function(t,n,o){var i='string'==typeof t?n:t,c='string'==typeof t?o:n,u='string'==typeof t?t:void 0,l=new(r(d[2]).ValidationExecutor)(this,c);l.ignoreAsyncValidations=!0;var s=[];return l.execute(i,u,s),l.stripEmptyErrors(s)}},{key:"coreValidate",value:function(t,n,o){var i='string'==typeof t?n:t,c='string'==typeof t?o:n,u='string'==typeof t?t:void 0,l=new(r(d[2]).ValidationExecutor)(this,c),s=[];return l.execute(i,u,s),Promise.all(l.awaitingPromises).then(function(){return l.stripEmptyErrors(s)})}}]),n})();e.Validator=n},928,[7,8,929]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationExecutor=void 0;var t=(function(){function t(n,o){r(d[0])(this,t),this.validator=n,this.validatorOptions=o,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=r(d[1]).getMetadataStorage()}return r(d[2])(t,[{key:"execute",value:function(t,n,o){var s,l=this;this.metadataStorage.hasValidationMetaData||!0!==(null===(s=this.validatorOptions)||void 0===s?void 0:s.enableDebugMessages)||console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");var c=this.validatorOptions?this.validatorOptions.groups:void 0,u=this.validatorOptions&&this.validatorOptions.strictGroups||!1,p=this.validatorOptions&&this.validatorOptions.always||!1,v=this.metadataStorage.getTargetValidationMetadatas(t.constructor,n,p,u,c),h=this.metadataStorage.groupByPropertyName(v);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!v.length){var f=new(r(d[3]).ValidationError);return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(f.target=t),f.value=void 0,f.property=void 0,f.children=[],f.constraints={unknownValue:'an unknown value was passed to the validate function'},void o.push(f)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(t,h,o),Object.keys(h).forEach(function(n){var s=t[n],c=h[n].filter(function(t){return t.type===r(d[4]).ValidationTypes.IS_DEFINED}),u=h[n].filter(function(t){return t.type!==r(d[4]).ValidationTypes.IS_DEFINED&&t.type!==r(d[4]).ValidationTypes.WHITELIST});s instanceof Promise&&u.find(function(t){return t.type===r(d[4]).ValidationTypes.PROMISE_VALIDATION})?l.awaitingPromises.push(s.then(function(s){l.performValidations(t,s,n,c,u,o)})):l.performValidations(t,s,n,c,u,o)})}},{key:"whitelist",value:function(t,n,o){var s=this,l=[];Object.keys(t).forEach(function(t){n[t]&&0!==n[t].length||l.push(t)}),l.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?l.forEach(function(n){var l=s.generateValidationError(t,t[n],n);l.constraints=r(d[5])({},r(d[4]).ValidationTypes.WHITELIST,"property "+n+" should not exist"),l.children=void 0,o.push(l)}):l.forEach(function(n){return delete t[n]}))}},{key:"stripEmptyErrors",value:function(t){var n=this;return t.filter(function(t){if(t.children&&(t.children=n.stripEmptyErrors(t.children)),0===Object.keys(t.constraints).length){if(0===t.children.length)return!1;delete t.constraints}return!0})}},{key:"performValidations",value:function(t,n,o,s,l,c){var u=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.CUSTOM_VALIDATION}),p=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.NESTED_VALIDATION}),v=l.filter(function(t){return t.type===r(d[4]).ValidationTypes.CONDITIONAL_VALIDATION}),h=this.generateValidationError(t,n,o);c.push(h),this.conditionalValidations(t,n,v)&&(this.customValidations(t,n,s,h),this.mapContexts(t,n,s,h),void 0===n&&this.validatorOptions&&!0===this.validatorOptions.skipUndefinedProperties||null===n&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||(null!==n&&void 0!==n||!this.validatorOptions||!0!==this.validatorOptions.skipMissingProperties)&&(this.customValidations(t,n,u,h),this.nestedValidations(n,p,h.children),this.mapContexts(t,n,l,h),this.mapContexts(t,n,u,h)))}},{key:"generateValidationError",value:function(t,n,o){var s=new(r(d[3]).ValidationError);return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(s.target=t),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(s.value=n),s.property=o,s.children=[],s.constraints={},s}},{key:"conditionalValidations",value:function(t,n,o){return o.map(function(o){return o.constraints[0](t,n)}).reduce(function(t,n){return t&&n},!0)}},{key:"customValidations",value:function(t,n,o,s){var l=this;o.forEach(function(o){l.metadataStorage.getTargetValidatorConstraints(o.constraintCls).forEach(function(c){if(!(c.async&&l.ignoreAsyncValidations||l.validatorOptions&&l.validatorOptions.stopAtFirstError&&Object.keys(s.constraints||{}).length>0)){var u={targetName:t.constructor?t.constructor.name:void 0,property:o.propertyName,object:t,value:n,constraints:o.constraints};if(o.each&&(n instanceof Array||n instanceof Set||n instanceof Map)){var p=r(d[6]).convertToArray(n).map(function(t){return c.instance.validate(t,u)});if(p.some(function(t){return r(d[6]).isPromise(t)})){var v=p.map(function(t){return r(d[6]).isPromise(t)?t:Promise.resolve(t)}),h=Promise.all(v).then(function(u){if(!u.every(function(t){return t})){var p=l.createValidationError(t,n,o,c),v=r(d[7])(p,2),h=v[0],f=v[1];s.constraints[h]=f,o.context&&(s.contexts||(s.contexts={}),s.contexts[h]=r(d[8])(s.contexts[h]||{},o.context))}});l.awaitingPromises.push(h)}else{if(!p.every(function(t){return t})){var f=l.createValidationError(t,n,o,c),y=r(d[7])(f,2),O=y[0],V=y[1];s.constraints[O]=V}}}else{var E=c.instance.validate(n,u);if(r(d[6]).isPromise(E)){var T=E.then(function(u){if(!u){var p=l.createValidationError(t,n,o,c),v=r(d[7])(p,2),h=v[0],f=v[1];s.constraints[h]=f,o.context&&(s.contexts||(s.contexts={}),s.contexts[h]=r(d[8])(s.contexts[h]||{},o.context))}});l.awaitingPromises.push(T)}else if(!E){var x=l.createValidationError(t,n,o,c),I=r(d[7])(x,2),k=I[0],A=I[1];s.constraints[k]=A}}}})})}},{key:"nestedValidations",value:function(t,n,o){var s=this;void 0!==t&&n.forEach(function(l){if(l.type===r(d[4]).ValidationTypes.NESTED_VALIDATION||l.type===r(d[4]).ValidationTypes.PROMISE_VALIDATION)if(t instanceof Array||t instanceof Set||t instanceof Map)(t instanceof Set?Array.from(t):t).forEach(function(l,c){s.performValidations(t,l,c.toString(),[],n,o)});else if(t instanceof Object){var c='string'==typeof l.target?l.target:l.target.name;s.execute(t,c,o)}else{var u=new(r(d[3]).ValidationError);u.value=t,u.property=l.propertyName,u.target=l.target;var p=s.createValidationError(l.target,t,l),v=r(d[7])(p,2),h=v[0],f=v[1];u.constraints=r(d[5])({},h,f),o.push(u)}})}},{key:"mapContexts",value:function(t,n,o,s){var l=this;return o.forEach(function(t){if(t.context){var n;if(t.type===r(d[4]).ValidationTypes.CUSTOM_VALIDATION)n=l.metadataStorage.getTargetValidatorConstraints(t.constraintCls)[0];var o=l.getConstraintType(t,n);s.constraints[o]&&(s.contexts||(s.contexts={}),s.contexts[o]=r(d[8])(s.contexts[o]||{},t.context))}})}},{key:"createValidationError",value:function(t,n,o,s){var l=t.constructor?t.constructor.name:void 0,c=this.getConstraintType(o,s),u={targetName:l,property:o.propertyName,object:t,value:n,constraints:o.constraints},p=o.message||'';return o.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||s&&s.instance.defaultMessage instanceof Function&&(p=s.instance.defaultMessage(u)),[c,r(d[9]).ValidationUtils.replaceMessageSpecialTokens(p,u)]}},{key:"getConstraintType",value:function(t,n){return n&&n.name?n.name:t.type}}]),t})();e.ValidationExecutor=t},929,[7,666,8,925,665,248,669,31,4,930]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return Array.isArray(n)?n.join(', '):""+n}Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationUtils=e.constraintToString=void 0,e.constraintToString=n;var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"replaceMessageSpecialTokens",value:function(t,o){var c;return t instanceof Function?c=t(o):'string'==typeof t&&(c=t),c&&o.constraints instanceof Array&&o.constraints.forEach(function(t,o){c=c.replace(new RegExp("\\$constraint"+(o+1),'g'),n(t))}),c&&void 0!==o.value&&null!==o.value&&'string'==typeof o.value&&(c=c.replace(/\$value/g,o.value)),c&&(c=c.replace(/\$property/g,o.property)),c&&(c=c.replace(/\$target/g,o.targetName)),c}}]),t})();e.ValidationUtils=t},930,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},931,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.isValidationErrorArray=void 0,_e.isValidationErrorArray=function(n){return!!Array.isArray(n)&&n.length>0&&n.every(function(n){return n instanceof r(d[0]).ValidationError})}},932,[661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,o,i){var n,c=arguments.length,f=c<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,r,o,i);else for(var u=t.length-1;u>=0;u--)(n=t[u])&&(f=(c<3?n(f):c>3?n(r,o,f):n(r,o))||f);return c>3&&f&&Object.defineProperty(r,o,f),f},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureQuery=void 0;var o=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.featureType=r.featureType,this.match=r.match)});t([(0,_r(_d[2]).Expose)({name:'feature-type'}),(0,_r(_d[3]).IsString)(),r("design:type",String)],o.prototype,"featureType",void 0),t([(0,_r(_d[3]).IsString)(),r("design:type",String)],o.prototype,"match",void 0),e.FeatureQuery=o},933,[8,7,626,661]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.GoalCode=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){return r(d[3])(this,u),c.call(this,r(d[4])(r(d[4])({},t),{type:u.type}))}return r(d[5])(u)})(r(d[6]).Feature);_e.GoalCode=e,e.type='goal-code'},934,[14,11,9,7,4,8,624]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.GovernanceFramework=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){return r(d[3])(this,u),o.call(this,r(d[4])(r(d[4])({},t),{type:u.type}))}return r(d[5])(u)})(r(d[6]).Feature);_e.GovernanceFramework=e,e.type='gov-fw'},935,[14,11,9,7,4,8,624]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,o){var c,n=arguments.length,f=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(c=t[i])&&(f=(n<3?c(f):n>3?c(e,r,f):c(e,r))||f);return n>3&&f&&Object.defineProperty(e,r,f),f},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Protocol=void 0;var o=(function(e){_r(_d[2])(n,e);var r,o,c=(r=n,o=t(),function(){var t,e=_r(_d[0])(r);if(o){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function n(t){var e;return _r(_d[3])(this,n),e=c.call(this,_r(_d[4])(_r(_d[4])({},t),{type:n.type})),t&&(e.roles=t.roles),e}return _r(_d[5])(n)})(_r(_d[6]).Feature);o.type='protocol',e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],o.prototype,"roles",void 0),_e.Protocol=o},936,[14,11,9,7,4,8,624,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InboundMessageContext=void 0;var n=(function(){function n(t,s){r(d[0])(this,n),this.message=t,this.recipientKey=s.recipientKey,this.senderKey=s.senderKey,this.connection=s.connection,this.sessionId=s.sessionId,this.agentContext=s.agentContext}return r(d[1])(n,[{key:"assertReadyConnection",value:function(){if(!this.connection)throw new(r(d[2]).AriesFrameworkError)("No connection associated with incoming message "+this.message.type);return this.connection.assertReady(),this.connection}},{key:"toJSON",value:function(){var n,t;return{message:this.message,recipientKey:null===(n=this.recipientKey)||void 0===n?void 0:n.fingerprint,senderKey:null===(t=this.senderKey)||void 0===t?void 0:t.fingerprint,sessionId:this.sessionId,agentContext:this.agentContext.toJSON()}}}]),n})();e.InboundMessageContext=n},937,[7,8,611]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutboundMessageContext=void 0;var t=(function(){function t(s,n){r(d[0])(this,t),this.message=s,this.connection=n.connection,this.sessionId=n.sessionId,this.outOfBand=n.outOfBand,this.serviceParams=n.serviceParams,this.associatedRecord=n.associatedRecord,this.agentContext=n.agentContext}return r(d[1])(t,[{key:"assertReadyConnection",value:function(){if(!this.connection)throw new(r(d[2]).AriesFrameworkError)("No connection associated with outgoing message "+this.message.type);return this.connection.assertReady(),this.connection}},{key:"isOutboundServiceMessage",value:function(){var t;return void 0!==(null===(t=this.serviceParams)||void 0===t?void 0:t.service)}},{key:"toJSON",value:function(){return{message:this.message,outOfBand:this.outOfBand,associatedRecord:this.associatedRecord,sessionId:this.sessionId,serviceParams:this.serviceParams,agentContext:this.agentContext.toJSON(),connection:this.connection}}}]),t})();e.OutboundMessageContext=t},938,[7,8,611]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutboundMessageSendStatus=void 0,(function(n){n.SentToSession="SentToSession",n.SentToTransport="SentToTransport",n.QueuedForPickup="QueuedForPickup",n.Undeliverable="Undeliverable"})(e.OutboundMessageSendStatus||(e.OutboundMessageSendStatus={}))},939,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidJweStructure=void 0,e.isValidJweStructure=function(t){return Boolean(t&&'object'==typeof t&&null!==t&&'string'==typeof t.protected&&t.iv&&t.ciphertext&&t.tag)}},940,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function o(o){var s=(0,r(d[0]).rightSplit)(o,'/',3),t=r(d[1])(s,4),n=t[0],c=t[1],p=t[2],l=t[3],y=(0,r(d[2]).parseVersionString)(p),u=r(d[1])(y,2);return{documentUri:n,protocolName:c,protocolVersion:p,protocolMajorVersion:u[0],protocolMinorVersion:u[1],messageName:l,protocolUri:n+"/"+c+"/"+p,messageTypeUri:o}}function s(o,s){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allowLegacyDidSovPrefixMismatch,c=void 0===n||n?t(o.documentUri):o.documentUri,p=s.documentUri===c,l=s.protocolName===o.protocolName,y=s.protocolMajorVersion===o.protocolMajorVersion,u=s.messageName===o.messageName;return p&&l&&y&&u}function t(o){return o.startsWith("did:sov:BzCbsNYhMrjHiqZDTUASHg;spec")?o.replace("did:sov:BzCbsNYhMrjHiqZDTUASHg;spec",'https://didcomm.org'):o}function n(o){return o.startsWith("https://didcomm.org")?o.replace("https://didcomm.org",'did:sov:BzCbsNYhMrjHiqZDTUASHg;spec'):o}Object.defineProperty(e,"__esModule",{value:!0}),e.replaceNewDidCommPrefixWithLegacyDidSov=e.replaceLegacyDidSovPrefix=e.replaceNewDidCommPrefixWithLegacyDidSovOnMessage=e.replaceLegacyDidSovPrefixOnMessage=e.IsValidMessageType=e.canHandleMessageType=e.supportsIncomingMessageType=e.parseMessageType=void 0,e.parseMessageType=o,e.supportsIncomingMessageType=s,e.canHandleMessageType=function(o,t){return s(o.type,t)},e.IsValidMessageType=function(t,n){return(0,r(d[3]).ValidateBy)({name:'isValidMessageType',constraints:[t],validator:{validate:function(t,n){var c=r(d[1])(n.constraints,1)[0];return'string'==typeof t&&s(o(t),c)},defaultMessage:(0,r(d[3]).buildMessage)(function(o){return o+'$property does not match the expected message type (only minor version may be lower)'},n)}},n)},e.replaceLegacyDidSovPrefixOnMessage=function(o){o['@type']=t(o['@type'])},e.replaceNewDidCommPrefixWithLegacyDidSovOnMessage=function(o){o['@type']=n(o['@type'])},e.replaceLegacyDidSovPrefix=t,e.replaceNewDidCommPrefixWithLegacyDidSov=n},941,[942,31,943,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rightSplit=void 0,e.rightSplit=function(t,c,n){var l=t.split(c);return n?[l.slice(0,-n).join(c)].concat(l.slice(-n)):l}},942,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFirstVersionEqualToSecond=e.isFirstVersionHigherThanSecond=e.parseVersionString=void 0,e.parseVersionString=function(n){var o=n.split('.'),s=r(d[0])(o,3),t=s[0],u=s[1],c=s[2];return[Number(t),Number(u),Number(null!==c&&void 0!==c?c:'0')]},e.isFirstVersionHigherThanSecond=function(n,o){return n[0]>o[0]||n[0]==o[0]&&n[1]>o[1]||n[0]==o[0]&&n[1]==o[1]&&n[2]>o[2]},e.isFirstVersionEqualToSecond=function(n,o){return n[0]===o[0]&&n[1]===o[1]&&n[2]===o[2]}},943,[31]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},944,[945,1332,1333]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},945,[946]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e)).problemReport=new(r(d[4]).ProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).AriesFrameworkError);_e.ProblemReportError=t},946,[14,11,9,7,947,8,612]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e,i,o,r=this&&this.__decorate||function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProblemReportMessage=_e.OtherStatus=_e.WhereStatus=_e.ImpactStatus=_e.WhoRetriesStatus=void 0,(function(t){t.You="YOU",t.Me="ME",t.Both="BOTH",t.None="NONE"})(e=_e.WhoRetriesStatus||(_e.WhoRetriesStatus={})),(function(t){t.Message="MESSAGE",t.Thread="THREAD",t.Connection="CONNECTION"})(i=_e.ImpactStatus||(_e.ImpactStatus={})),(function(t){t.Cloud="CLOUD",t.Edge="EDGE",t.Wire="WIRE",t.Agency="AGENCY"})(o=_e.WhereStatus||(_e.WhereStatus={})),(function(t){t.You="YOU",t.Me="ME",t.Other="OTHER"})(_e.OtherStatus||(_e.OtherStatus={}));var s=(function(e){_r(_d[2])(n,e);var i,o,r=(i=n,o=t(),function(){var t,e=_r(_d[0])(i);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function n(t){var e;return _r(_d[3])(this,n),(e=r.call(this)).type=n.type.messageTypeUri,t&&(e.id=t.id||e.generateId(),e.description=t.description,e.problemItems=t.problemItems,e.whoRetries=t.whoRetries,e.fixHint=t.fixHint,e.impact=t.impact,e.where=t.where,e.noticedTime=t.noticedTime,e.trackingUri=t.trackingUri,e.escalationUri=t.escalationUri),e}return _r(_d[4])(n)})(_r(_d[5]).AgentMessage);s.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/notification/1.0/problem-report'),r([(0,_r(_d[6]).IsValidMessageType)(s.type),n("design:type",String)],s.prototype,"type",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'problem_items'}),n("design:type",Array)],s.prototype,"problemItems",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(e),(0,_r(_d[8]).Expose)({name:'who_retries'}),n("design:type",String)],s.prototype,"whoRetries",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'fix_hint'}),n("design:type",Object)],s.prototype,"fixHint",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(o),n("design:type",String)],s.prototype,"where",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsEnum)(i),n("design:type",String)],s.prototype,"impact",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'noticed_time'}),n("design:type",String)],s.prototype,"noticedTime",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'tracking_uri'}),n("design:type",String)],s.prototype,"trackingUri",void 0),r([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),(0,_r(_d[8]).Expose)({name:'escalation_uri'}),n("design:type",String)],s.prototype,"escalationUri",void 0),_e.ProblemReportMessage=s},947,[14,11,9,7,8,948,941,661,626]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AgentMessage=void 0;var t=(function(t){r(d[10])(s,t);var n,o,c=(n=s,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(){return r(d[11])(this,s),c.apply(this,arguments)}return r(d[12])(s,[{key:"toJSON",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).useLegacyDidSovPrefix,t=void 0!==e&&e,n=r(d[13]).JsonTransformer.toJSON(this);return t&&(0,r(d[14]).replaceNewDidCommPrefixWithLegacyDidSovOnMessage)(n),n}},{key:"is",value:function(e){return this.type===e.type.messageTypeUri}}]),s})((0,r(d[2]).ThreadDecorated)((0,r(d[3]).L10nDecorated)((0,r(d[4]).TransportDecorated)((0,r(d[5]).TimingDecorated)((0,r(d[6]).AckDecorated)((0,r(d[7]).AttachmentDecorated)((0,r(d[8]).ServiceDecorated)(r(d[9]).BaseMessage))))))));_e.AgentMessage=t},948,[14,11,949,968,970,972,974,976,983,951,9,7,8,625,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(o=e[f])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ThreadDecorated=void 0,_e.ThreadDecorated=function(n){var o=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(){return _r(_d[3])(this,c),o.apply(this,arguments)}return _r(_d[4])(c,[{key:"threadId",get:function(){var e,t;return null!==(t=null===(e=this.thread)||void 0===e?void 0:e.threadId)&&void 0!==t?t:this.id}},{key:"setThread",value:function(e){this.thread=new(_r(_d[5]).ThreadDecorator)(e)}}]),c})(n);return t([(0,_r(_d[6]).Expose)({name:'~thread'}),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).ThreadDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).ThreadDecorator),r("design:type",_r(_d[5]).ThreadDecorator)],o.prototype,"thread",void 0),o}},949,[14,11,9,7,8,950,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,d,o){var i,n=arguments.length,s=n<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,d):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,d,o);else for(var p=t.length-1;p>=0;p--)(i=t[p])&&(s=(n<3?i(s):n>3?i(r,d,s):i(r,d))||s);return n>3&&s&&Object.defineProperty(r,d,s),s},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.ThreadDecorator=void 0;var d=_r(_d[0])(function t(r){_r(_d[1])(this,t),this.threadId=null===r||void 0===r?void 0:r.threadId,this.parentThreadId=null===r||void 0===r?void 0:r.parentThreadId,this.senderOrder=null===r||void 0===r?void 0:r.senderOrder,this.receivedOrders=null===r||void 0===r?void 0:r.receivedOrders});t([(0,_r(_d[2]).Expose)({name:'thid'}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),(0,_r(_d[3]).IsOptional)(),r("design:type",String)],d.prototype,"threadId",void 0),t([(0,_r(_d[2]).Expose)({name:'pthid'}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),(0,_r(_d[3]).IsOptional)(),r("design:type",String)],d.prototype,"parentThreadId",void 0),t([(0,_r(_d[2]).Expose)({name:'sender_order'}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsInt)(),r("design:type",Number)],d.prototype,"senderOrder",void 0),t([(0,_r(_d[2]).Expose)({name:'received_orders'}),(0,_r(_d[3]).IsOptional)(),r("design:type",Object)],d.prototype,"receivedOrders",void 0),e.ThreadDecorator=d},950,[8,7,626,661,951]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,s,n,o){var r,i=arguments.length,p=i<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,s,n,o);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(p=(i<3?r(p):i>3?r(s,n,p):r(s,n))||p);return i>3&&p&&Object.defineProperty(s,n,p),p},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseMessage=e.MessageTypeRegExp=e.MessageIdRegExp=void 0,e.MessageIdRegExp=/[-_./a-zA-Z0-9]{8,64}/,e.MessageTypeRegExp=/(.*?)([a-zA-Z0-9._-]+)\/(\d[^/]*)\/([a-zA-Z0-9._-]+)$/;var n=(function(){function t(){_r(_d[0])(this,t)}return _r(_d[1])(t,[{key:"generateId",value:function(){return(0,_r(_d[2]).uuid)()}}]),t})();t([(0,_r(_d[3]).Matches)(e.MessageIdRegExp),(0,_r(_d[4]).Expose)({name:'@id'}),s("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[4]).Expose)({name:'@type'}),(0,_r(_d[3]).Matches)(e.MessageTypeRegExp),s("design:type",String)],n.prototype,"type",void 0),e.BaseMessage=n},951,[7,8,952,661,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uuid=void 0,e.uuid=function(){return(0,r(d[0]).v4)()}},952,[953]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return p.default}});var t=y(r(d[0])),n=y(r(d[1])),u=y(r(d[2])),f=y(r(d[3])),o=y(r(d[4])),l=y(r(d[5])),c=y(r(d[6])),b=y(r(d[7])),p=y(r(d[8]));function y(t){return t&&t.__esModule?t:{default:t}}},953,[954,959,963,964,966,967,957,956,961]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,u=s(r(d[0])),l=s(r(d[1]));function s(n){return n&&n.__esModule?n:{default:n}}var t=0,c=0;var v=function(s,v,i){var f=v&&i||0,_=v||new Array(16),w=(s=s||{}).node||n,k=void 0!==s.clockseq?s.clockseq:o;if(null==w||null==k){var q=s.random||(s.rng||u.default)();null==w&&(w=n=[1|q[0],q[1],q[2],q[3],q[4],q[5]]),null==k&&(k=o=16383&(q[6]<<8|q[7]))}var M=void 0!==s.msecs?s.msecs:Date.now(),h=void 0!==s.nsecs?s.nsecs:c+1,y=M-t+(h-c)/1e4;if(y<0&&void 0===s.clockseq&&(k=k+1&16383),(y<0||M>t)&&void 0===s.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");t=M,c=h,o=k;var b=(1e4*(268435455&(M+=122192928e5))+h)%4294967296;_[f++]=b>>>24&255,_[f++]=b>>>16&255,_[f++]=b>>>8&255,_[f++]=255&b;var j=M/4294967296*1e4&268435455;_[f++]=j>>>8&255,_[f++]=255&j,_[f++]=j>>>24&15|16,_[f++]=j>>>16&255,_[f++]=k>>>8|128,_[f++]=255&k;for(var p=0;p<6;++p)_[f+p]=w[p];return v||(0,l.default)(_)};e.default=v},954,[955,956]); +__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if(!t&&!(t='undefined'!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||'undefined'!=typeof msCrypto&&'function'==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return t(o)};var o=new Uint8Array(16)},955,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=r(d[0]))&&t.__esModule?t:{default:t};for(var o=[],u=0;u<256;++u)o.push((u+256).toString(16).substr(1));var f=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(o[t[u+0]]+o[t[u+1]]+o[t[u+2]]+o[t[u+3]]+'-'+o[t[u+4]]+o[t[u+5]]+'-'+o[t[u+6]]+o[t[u+7]]+'-'+o[t[u+8]]+o[t[u+9]]+'-'+o[t[u+10]]+o[t[u+11]]+o[t[u+12]]+o[t[u+13]]+o[t[u+14]]+o[t[u+15]]).toLowerCase();if(!(0,i.default)(f))throw TypeError('Stringified UUID is invalid');return f};e.default=f},956,[957]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=function(t){return'string'==typeof t&&u.default.test(t)};e.default=f},957,[958]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},958,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(r(d[0])),u=f(r(d[1]));function f(t){return t&&t.__esModule?t:{default:t}}var l=(0,t.default)('v3',48,u.default);e.default=l},959,[960,962]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,i,l){function s(u,f,c,s){if('string'==typeof u&&(u=o(u)),'string'==typeof f&&(f=(0,n.default)(f)),16!==f.length)throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');var b=new Uint8Array(16+u.length);if(b.set(f),b.set(u,f.length),(b=l(b))[6]=15&b[6]|i,b[8]=63&b[8]|128,c){s=s||0;for(var v=0;v<16;++v)c[s+v]=b[v];return c}return(0,t.default)(b)}try{s.name=u}catch(t){}return s.DNS=f,s.URL=c,s},e.URL=e.DNS=void 0;var t=u(r(d[0])),n=u(r(d[1]));function u(t){return t&&t.__esModule?t:{default:t}}function o(t){t=unescape(encodeURIComponent(t));for(var n=[],u=0;u>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=255&s,l[4]=(s=parseInt(t.slice(9,13),16))>>>8,l[5]=255&s,l[6]=(s=parseInt(t.slice(14,18),16))>>>8,l[7]=255&s,l[8]=(s=parseInt(t.slice(19,23),16))>>>8,l[9]=255&s,l[10]=(s=parseInt(t.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=255&s,l};e.default=s},961,[957]); +__d(function(g,r,_i,_a,m,e,_d){"use strict";function n(n){for(var t=[],u=32*n.length,f=0;f>5]>>>f%32&255,a=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(a)}return t}function t(n){return 14+(n+64>>>9<<4)+1}function u(n,u){n[u>>5]|=128<>5]|=(255&n[o/8])<>16)+(t>>16)+(u>>16)<<16|65535&u}function a(n,t,u,f,a,c){return o((i=o(o(t,n),o(f,c)))<<(v=a)|i>>>32-v,u);var i,v}function c(n,t,u,f,o,c,i){return a(t&u|~t&f,n,t,o,c,i)}function i(n,t,u,f,o,c,i){return a(t&f|u&~f,n,t,o,c,i)}function v(n,t,u,f,o,c,i){return a(t^u^f,n,t,o,c,i)}function h(n,t,u,f,o,c,i){return a(u^(t|~f),n,t,o,c,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t){if('string'==typeof t){var o=unescape(encodeURIComponent(t));t=new Uint8Array(o.length);for(var a=0;a>>32-t}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var a=function(a){var n=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if('string'==typeof a){var f=unescape(encodeURIComponent(a));a=[];for(var u=0;u>>0;C=U,U=_,_=t(M,30)>>>0,M=w,w=I}o[0]=o[0]+w>>>0,o[1]=o[1]+M>>>0,o[2]=o[2]+_>>>0,o[3]=o[3]+U>>>0,o[4]=o[4]+C>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]};_e.default=a},965,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default='00000000-0000-0000-0000-000000000000'},966,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,u=(t=r(d[0]))&&t.__esModule?t:{default:t};var f=function(t){if(!(0,u.default)(t))throw TypeError('Invalid UUID');return parseInt(t.substr(14,1),16)};e.default=f},967,[957]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(i=(c<3?r(i):c>3?r(t,n,i):r(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.L10nDecorated=void 0,_e.L10nDecorated=function(o){var r=(function(t){_r(_d[2])(c,t);var n,o,r=(n=c,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(){return _r(_d[3])(this,c),r.apply(this,arguments)}return _r(_d[4])(c,[{key:"addLocale",value:function(e){this.l10n=new(_r(_d[5]).L10nDecorator)({locale:e})}},{key:"getLocale",value:function(){var e;if(null===(e=this.l10n)||void 0===e?void 0:e.locale)return this.l10n.locale}}]),c})(o);return t([(0,_r(_d[6]).Expose)({name:'~l10n'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).L10nDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).L10nDecorator),n("design:type",_r(_d[5]).L10nDecorator)],r.prototype,"l10n",void 0),r}},968,[14,11,9,7,8,969,626,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.L10nDecorator=void 0;var o=r(d[0])(function o(t){r(d[1])(this,o),this.locale=null===t||void 0===t?void 0:t.locale});e.L10nDecorator=o},969,[8,7]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,u=arguments.length,s=u<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(u<3?o(s):u>3?o(e,r,s):o(e,r))||s);return u>3&&s&&Object.defineProperty(e,r,s),s},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TransportDecorated=void 0,_e.TransportDecorated=function(n){var o=(function(e){_r(_d[2])(u,e);var r,n,o=(r=u,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function u(){return _r(_d[3])(this,u),o.apply(this,arguments)}return _r(_d[4])(u,[{key:"setReturnRouting",value:function(t,e){this.transport=new(_r(_d[5]).TransportDecorator)({returnRoute:t,returnRouteThread:e})}},{key:"hasReturnRouting",value:function(t){return!(!this.transport||!this.transport.returnRoute||this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.none)&&(this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.all||this.transport.returnRoute===_r(_d[5]).ReturnRouteTypes.thread&&this.transport.returnRouteThread===t)}},{key:"hasAnyReturnRoute",value:function(){var t,e=null===(t=this.transport)||void 0===t?void 0:t.returnRoute;return e===_r(_d[5]).ReturnRouteTypes.all||e===_r(_d[5]).ReturnRouteTypes.thread}}]),u})(n);return e([(0,_r(_d[6]).Expose)({name:'~transport'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).TransportDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).TransportDecorator),r("design:type",_r(_d[5]).TransportDecorator)],o.prototype,"transport",void 0),o}},970,[14,11,9,7,8,971,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t,r=this&&this.__decorate||function(t,r,o,n){var u,i=arguments.length,d=i<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,o,n);else for(var c=t.length-1;c>=0;c--)(u=t[c])&&(d=(i<3?u(d):i>3?u(r,o,d):u(r,o))||d);return i>3&&d&&Object.defineProperty(r,o,d),d},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.TransportDecorator=e.ReturnRouteTypes=void 0,(function(t){t.none="none",t.all="all",t.thread="thread"})(t=e.ReturnRouteTypes||(e.ReturnRouteTypes={}));var n=_r(_d[0])(function t(r){_r(_d[1])(this,t),this.returnRoute=null===r||void 0===r?void 0:r.returnRoute,this.returnRouteThread=null===r||void 0===r?void 0:r.returnRouteThread});r([(0,_r(_d[2]).Expose)({name:'return_route'}),(0,_r(_d[3]).IsEnum)(t),(0,_r(_d[3]).IsOptional)(),o("design:type",String)],n.prototype,"returnRoute",void 0),r([(0,_r(_d[2]).Expose)({name:'return_route_thread'}),(0,_r(_d[3]).ValidateIf)(function(r){return r.returnRoute===t.thread}),(0,_r(_d[3]).Matches)(_r(_d[4]).MessageIdRegExp),o("design:type",String)],n.prototype,"returnRouteThread",void 0),e.TransportDecorator=n},971,[8,7,626,661,951]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,c=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(o<3?i(c):o>3?i(e,n,c):i(e,n))||c);return o>3&&c&&Object.defineProperty(e,n,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TimingDecorated=void 0,_e.TimingDecorated=function(r){var i=(function(e){_r(_d[2])(o,e);var n,r,i=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(){return _r(_d[3])(this,o),i.apply(this,arguments)}return _r(_d[4])(o,[{key:"setTiming",value:function(t){this.timing=new(_r(_d[5]).TimingDecorator)(t)}}]),o})(r);return e([(0,_r(_d[6]).Expose)({name:'~timing'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).TimingDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).TimingDecorator),(0,_r(_d[7]).IsOptional)(),n("design:type",_r(_d[5]).TimingDecorator)],i.prototype,"timing",void 0),i}},972,[14,11,9,7,8,973,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var l,s=arguments.length,p=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,i,o,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(p=(s<3?l(p):s>3?l(i,o,p):l(i,o))||p);return s>3&&p&&Object.defineProperty(i,o,p),p},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.TimingDecorator=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),this.inTime=null===i||void 0===i?void 0:i.inTime,this.outTime=null===i||void 0===i?void 0:i.outTime,this.staleTime=null===i||void 0===i?void 0:i.staleTime,this.expiresTime=null===i||void 0===i?void 0:i.expiresTime,this.delayMilli=null===i||void 0===i?void 0:i.delayMilli,this.waitUntilTime=null===i||void 0===i?void 0:i.waitUntilTime});t([(0,_r(_d[2]).Expose)({name:'in_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"inTime",void 0),t([(0,_r(_d[2]).Expose)({name:'out_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"outTime",void 0),t([(0,_r(_d[2]).Expose)({name:'stale_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"staleTime",void 0),t([(0,_r(_d[2]).Expose)({name:'expires_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"expiresTime",void 0),t([(0,_r(_d[2]).Expose)({name:'delay_milli'}),(0,_r(_d[3]).IsNumber)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Number)],o.prototype,"delayMilli",void 0),t([(0,_r(_d[2]).Expose)({name:'wait_until_time'}),(0,_r(_d[2]).Type)(function(){return Date}),(0,_r(_d[3]).IsDate)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Date)],o.prototype,"waitUntilTime",void 0),e.TimingDecorator=o},973,[8,7,626,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,c,r);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(o<3?n(i):o>3?n(t,c,i):n(t,c))||i);return o>3&&i&&Object.defineProperty(t,c,i),i},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AckDecorated=void 0,_e.AckDecorated=function(r){var n=(function(t){_r(_d[2])(o,t);var c,r,n=(c=o,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(){return _r(_d[3])(this,o),n.apply(this,arguments)}return _r(_d[4])(o,[{key:"setPleaseAck",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[_r(_d[5]).AckValues.Receipt];this.pleaseAck=new(_r(_d[5]).AckDecorator)({on:e})}},{key:"getPleaseAck",value:function(){return this.pleaseAck}},{key:"requiresAck",value:function(){return void 0!==this.pleaseAck}}]),o})(r);return t([(0,_r(_d[6]).Expose)({name:'~please_ack'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).AckDecorator}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[5]).AckDecorator),(0,_r(_d[7]).IsOptional)(),c("design:type",_r(_d[5]).AckDecorator)],n.prototype,"pleaseAck",void 0),n}},974,[14,11,9,7,8,975,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t,o=this&&this.__decorate||function(t,o,c,r){var n,i=arguments.length,f=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,c,r);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(f=(i<3?n(f):i>3?n(o,c,f):n(o,c))||f);return i>3&&f&&Object.defineProperty(o,c,f),f},c=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.AckDecorator=e.AckValues=void 0,(function(t){t.Receipt="RECEIPT",t.Outcome="OUTCOME"})(t=e.AckValues||(e.AckValues={}));var r=_r(_d[0])(function o(c){_r(_d[1])(this,o),this.on=[t.Receipt],c&&(this.on=c.on)});o([(0,_r(_d[2]).IsEnum)(t,{each:!0}),(0,_r(_d[2]).IsArray)(),c("design:type",Array)],r.prototype,"on",void 0),e.AckDecorator=r},975,[8,7,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,c){var r,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,c);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(i=(o<3?r(i):o>3?r(e,n,i):r(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AttachmentDecorated=void 0,_e.AttachmentDecorated=function(c){var r=(function(e){_r(_d[2])(o,e);var n,c,r=(n=o,c=t(),function(){var t,e=_r(_d[0])(n);if(c){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(){return _r(_d[3])(this,o),r.apply(this,arguments)}return _r(_d[4])(o,[{key:"getAppendedAttachmentById",value:function(t){var e;return null===(e=this.appendedAttachments)||void 0===e?void 0:e.find(function(e){return e.id===t})}},{key:"addAppendedAttachment",value:function(t){this.appendedAttachments?this.appendedAttachments.push(t):this.appendedAttachments=[t]}}]),o})(c);return e([(0,_r(_d[5]).Expose)({name:'~attach'}),(0,_r(_d[5]).Type)(function(){return _r(_d[6]).Attachment}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[6]).Attachment,{each:!0}),(0,_r(_d[7]).IsOptional)(),n("design:type",Array)],r.prototype,"appendedAttachments",void 0),r}},976,[14,11,9,7,8,626,977,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,s,n){var o,r=arguments.length,d=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,s,n);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(d=(r<3?o(d):r>3?o(i,s,d):o(i,s))||d);return r>3&&d&&Object.defineProperty(i,s,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Attachment=e.AttachmentData=void 0;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.base64=i.base64,this.json=i.json,this.links=i.links,this.jws=i.jws,this.sha256=i.sha256)});t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsBase64)(),i("design:type",String)],s.prototype,"base64",void 0),t([(0,_r(_d[2]).IsOptional)(),i("design:type",Object)],s.prototype,"json",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)({each:!0}),i("design:type",Array)],s.prototype,"links",void 0),t([(0,_r(_d[2]).IsOptional)(),i("design:type",Object)],s.prototype,"jws",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsHash)('sha256'),i("design:type",String)],s.prototype,"sha256",void 0),e.AttachmentData=s;var n=(function(){function t(i){var s;_r(_d[1])(this,t),i&&(this.id=null!==(s=i.id)&&void 0!==s?s:(0,_r(_d[3]).uuid)(),this.description=i.description,this.filename=i.filename,this.mimeType=i.mimeType,this.lastmodTime=i.lastmodTime,this.byteCount=i.byteCount,this.data=i.data)}return _r(_d[0])(t,[{key:"getDataAsJson",value:function(){if('string'==typeof this.data.base64)return _r(_d[4]).JsonEncoder.fromBase64(this.data.base64);if(this.data.json)return this.data.json;throw new(_r(_d[5]).AriesFrameworkError)('No attachment data found in `json` or `base64` data fields.')}},{key:"addJws",value:function(t){this.data.jws?'signatures'in this.data.jws?this.data.jws.signatures.push(t):this.data.jws={signatures:[this.data.jws,t]}:this.data.jws=t}}]),t})();t([(0,_r(_d[6]).Expose)({name:'@id'}),i("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"description",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"filename",void 0),t([(0,_r(_d[6]).Expose)({name:'mime-type'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsMimeType)(),i("design:type",String)],n.prototype,"mimeType",void 0),t([(0,_r(_d[6]).Expose)({name:'lastmod_time'}),(0,_r(_d[6]).Type)(function(){return Date}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsDate)(),i("design:type",Date)],n.prototype,"lastmodTime",void 0),t([(0,_r(_d[6]).Expose)({name:'byte_count'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInt)(),i("design:type",Number)],n.prototype,"byteCount",void 0),t([(0,_r(_d[6]).Type)(function(){return s}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(s),i("design:type",s)],n.prototype,"data",void 0),e.Attachment=n},977,[8,7,661,952,978,611,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonEncoder=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"toBase64",value:function(t){return n.toBuffer(t).toString('base64')}},{key:"toBase64URL",value:function(t){return(0,r(d[2]).base64ToBase64URL)(n.toBase64(t))}},{key:"fromBase64",value:function(t){return n.fromBuffer(r(d[3]).Buffer.from(t,'base64'))}},{key:"toString",value:function(n){return JSON.stringify(n)}},{key:"fromString",value:function(n){return JSON.parse(n)}},{key:"toBuffer",value:function(t){return r(d[3]).Buffer.from(n.toString(t))}},{key:"fromBuffer",value:function(t){return n.fromString(r(d[3]).Buffer.from(t).toString('utf-8'))}}]),n})();e.JsonEncoder=n},978,[7,8,979,980]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToBase64URL=void 0,e.base64ToBase64URL=function(c){return c.replace(/\+/g,'-').replace(/\//g,'_').replace(/=/g,'')}},979,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Buffer=void 0,Object.defineProperty(e,"Buffer",{enumerable:!0,get:function(){return r(d[0]).Buffer}})},980,[981]); +__d(function(g,r,_i,_a,_m,_e,d){'use strict';function t(){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}}var e='function'==typeof Symbol&&'function'==typeof Symbol.for?Symbol.for('nodejs.util.inspect.custom'):null;_e.Buffer=o,_e.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},_e.INSPECT_MAX_BYTES=50;var n=2147483647;function i(t){if(t>n)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,n){if('number'==typeof t){if('string'==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,n)}function f(t,e,n){if('string'==typeof t)return a(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(nt(t,ArrayBuffer)||t&&nt(t.buffer,ArrayBuffer))return l(t,e,n);if('undefined'!=typeof SharedArrayBuffer&&(nt(t,SharedArrayBuffer)||t&&nt(t.buffer,SharedArrayBuffer)))return l(t,e,n);if('number'==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return o.from(i,e,n);var f=y(t);if(f)return f;if('undefined'!=typeof Symbol&&null!=Symbol.toPrimitive&&'function'==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]('string'),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if('number'!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function s(t,e,n){return u(t),t<=0?i(t):void 0!==e?'string'==typeof n?i(t).fill(e,n):i(t).fill(e):i(t)}function h(t){return u(t),i(t<0?0:0|w(t))}function a(t,e){if('string'==typeof e&&''!==e||(e='utf8'),!o.isEncoding(e))throw new TypeError('Unknown encoding: '+e);var n=0|v(t,e),f=i(n),u=f.write(t,e);return u!==n&&(f=f.slice(0,u)),f}function p(t){for(var e=t.length<0?0:0|w(t.length),n=i(e),o=0;o=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+' bytes');return 0|t}function v(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||nt(t,ArrayBuffer))return t.byteLength;if('string'!=typeof t)throw new TypeError("The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type "+typeof t);var n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var f=!1;;)switch(e){case'ascii':case'latin1':case'binary':return n;case'utf8':case'utf-8':return K(t).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*n;case'hex':return n>>>1;case'base64':return rt(t).length;default:if(f)return i?-1:K(t).length;e=(''+e).toLowerCase(),f=!0}}function b(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return'';if((void 0===n||n>this.length)&&(n=this.length),n<=0)return'';if((n>>>=0)<=(e>>>=0))return'';for(t||(t='utf8');;)switch(t){case'hex':return P(this,e,n);case'utf8':case'utf-8':return L(this,e,n);case'ascii':return S(this,e,n);case'latin1':case'binary':return x(this,e,n);case'base64':return O(this,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return k(this,e,n);default:if(i)throw new TypeError('Unknown encoding: '+t);t=(t+'').toLowerCase(),i=!0}}function B(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function E(t,e,n,i,f){if(0===t.length)return-1;if('string'==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),it(n=+n)&&(n=f?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(f)return-1;n=t.length-1}else if(n<0){if(!f)return-1;n=0}if('string'==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,f);if('number'==typeof e)return e&=255,'function'==typeof Uint8Array.prototype.indexOf?f?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,i,f);throw new TypeError('val must be string, number or Buffer')}function m(t,e,n,i,o){var f,u=1,s=t.length,h=e.length;if(void 0!==i&&('ucs2'===(i=String(i).toLowerCase())||'ucs-2'===i||'utf16le'===i||'utf-16le'===i)){if(t.length<2||e.length<2)return-1;u=2,s/=2,h/=2,n/=2}function a(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){var p=-1;for(f=n;fs&&(n=s-h),f=n;f>=0;f--){for(var c=!0,l=0;lo&&(i=o):i=o;var f,u=e.length;for(i>u/2&&(i=u/2),f=0;f239?4:f>223?3:f>191?2:1;if(o+s<=n){var h=void 0,a=void 0,p=void 0,c=void 0;switch(s){case 1:f<128&&(u=f);break;case 2:128==(192&(h=t[o+1]))&&(c=(31&f)<<6|63&h)>127&&(u=c);break;case 3:h=t[o+1],a=t[o+2],128==(192&h)&&128==(192&a)&&(c=(15&f)<<12|(63&h)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:h=t[o+1],a=t[o+2],p=t[o+3],128==(192&h)&&128==(192&a)&&128==(192&p)&&(c=(15&f)<<18|(63&h)<<12|(63&a)<<6|63&p)>65535&&c<1114112&&(u=c)}}null===u?(u=65533,s=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=s}return _(i)}_e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=(function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}})(),o.TYPED_ARRAY_SUPPORT||'undefined'==typeof console||'function'!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,'parent',{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,'offset',{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,n){return s(t,e,n)},o.allocUnsafe=function(t){return h(t)},o.allocUnsafeSlow=function(t){return h(t)},o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(nt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),nt(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,f=0,u=Math.min(n,i);fi.length?(o.isBuffer(u)||(u=o.from(u)),u.copy(i,f)):Uint8Array.prototype.set.call(i,u,f);else{if(!o.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,f)}f+=u.length}return i},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var e=0;ee&&(t+=' ... '),''},e&&(o.prototype[e]=o.prototype.inspect),o.prototype.compare=function(t,e,n,i,f){if(nt(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError("The \"target\" argument must be one of type Buffer or Uint8Array. Received type "+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===f&&(f=this.length),e<0||n>t.length||i<0||f>this.length)throw new RangeError('out of range index');if(i>=f&&e>=n)return 0;if(i>=f)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,f>>>=0,this===t)return 0;for(var u=f-i,s=n-e,h=Math.min(u,s),a=this.slice(i,f),p=t.slice(e,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i='utf8')):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError('Attempt to write outside buffer bounds');i||(i='utf8');for(var f=!1;;)switch(i){case'hex':return I(this,t,e,n);case'utf8':case'utf-8':return U(this,t,e,n);case'ascii':case'latin1':case'binary':return A(this,t,e,n);case'base64':return R(this,t,e,n);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return T(this,t,e,n);default:if(f)throw new TypeError('Unknown encoding: '+i);i=(''+i).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function _(t){var e=t.length;if(e<=M)return String.fromCharCode.apply(String,t);for(var n='',i=0;ii)&&(n=i);for(var o='',f=e;fn)throw new RangeError('Trying to access beyond buffer length')}function N(t,e,n,i,f,u){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>f||et.length)throw new RangeError('Index out of range')}function F(t,e,n,i,o){X(e,i,o,t,n,7);var f=Number(e&BigInt(4294967295));t[n++]=f,f>>=8,t[n++]=f,f>>=8,t[n++]=f,f>>=8,t[n++]=f;var u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,u>>=8,t[n++]=u,n}function j(t,e,n,i,o){X(e,i,o,t,n,7);var f=Number(e&BigInt(4294967295));t[n+7]=f,f>>=8,t[n+6]=f,f>>=8,t[n+5]=f,f>>=8,t[n+4]=f;var u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=u,u>>=8,t[n+2]=u,u>>=8,t[n+1]=u,u>>=8,t[n]=u,n+8}function D(t,e,n,i,o,f){if(n+i>t.length)throw new RangeError('Index out of range');if(n<0)throw new RangeError('Index out of range')}function z(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,4),r(d[3]).write(t,e,n,i,23,4),n+4}function Y(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,8),r(d[3]).write(t,e,n,i,52,8),n+8}o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t],o=1,f=0;++f>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||C(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=ft(function(t){J(t>>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),o=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(i)+(BigInt(o)<>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],o=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+n;return(BigInt(i)<>>=0,e>>>=0,n||C(t,e,this.length);for(var i=this[t],o=1,f=0;++f=(o*=128)&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||C(t,e,this.length);for(var i=e,o=1,f=this[t+--i];i>0&&(o*=256);)f+=this[t+--i]*o;return f>=(o*=128)&&(f-=Math.pow(2,8*e)),f},o.prototype.readInt8=function(t,e){return t>>>=0,e||C(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||C(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){t>>>=0,e||C(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||C(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=ft(function(t){J(t>>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(n<<24);return(BigInt(i)<>>=0,'offset');var e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Z(t,this.length-8);var i=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(i)<>>=0,e||C(t,4,this.length),r(d[3]).read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||C(t,4,this.length),r(d[3]).read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||C(t,8,this.length),r(d[3]).read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||C(t,8,this.length),r(d[3]).read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e>>>=0,n>>>=0,i)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,f=0;for(this[e]=255&t;++f>>=0,n>>>=0,i)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,f=1;for(this[e+o]=255&t;--o>=0&&(f*=256);)this[e+o]=t/f&255;return e+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=ft(function(t){return F(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt('0xffffffffffffffff'))}),o.prototype.writeBigUInt64BE=ft(function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt('0xffffffffffffffff'))}),o.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);N(this,t,e,n,o-1,-o)}var f=0,u=1,s=0;for(this[e]=255&t;++f>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var o=Math.pow(2,8*n-1);N(this,t,e,n,o-1,-o)}var f=n-1,u=1,s=0;for(this[e+f]=255&t;--f>=0&&(u*=256);)t<0&&0===s&&0!==this[e+f+1]&&(s=1),this[e+f]=(t/u>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=ft(function(t){return F(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt('0x8000000000000000'),BigInt('0x7fffffffffffffff'))}),o.prototype.writeBigInt64BE=ft(function(t){return j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt('0x8000000000000000'),BigInt('0x7fffffffffffffff'))}),o.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,i){if(!o.isBuffer(t))throw new TypeError('argument should be a Buffer');if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError('Index out of range');if(i<0)throw new RangeError('sourceEnd out of bounds');i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),'number'==typeof t)for(u=e;u=i+4;n-=3)e="_"+t.slice(n-3,n)+e;return""+t.slice(0,n)+e}function W(t,e,n){J(e,'offset'),void 0!==t[e]&&void 0!==t[e+n]||Z(e,t.length-(n+1))}function X(t,e,n,i,o,f){if(t>n||t3?0===e||e===BigInt(0)?">= 0"+s+" and < 2"+s+" ** "+8*(f+1)+s:">= -(2"+s+" ** "+(8*(f+1)-1)+s+") and < 2 ** "+(8*(f+1)-1)+s:">= "+e+s+" and <= "+n+s,new G.ERR_OUT_OF_RANGE('value',u,t)}W(i,o,f)}function J(t,e){if('number'!=typeof t)throw new G.ERR_INVALID_ARG_TYPE(e,'number',t)}function Z(t,e,n){if(Math.floor(t)!==t)throw J(t,n),new G.ERR_OUT_OF_RANGE(n||'offset','an integer',t);if(e<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(n||'offset',">= "+(n?1:0)+" and <= "+e,t)}V('ERR_BUFFER_OUT_OF_BOUNDS',function(t){return t?t+" is outside of buffer bounds":'Attempt to access memory outside buffer bounds'},RangeError),V('ERR_INVALID_ARG_TYPE',function(t,e){return"The \""+t+"\" argument must be of type number. Received type "+typeof e},TypeError),V('ERR_OUT_OF_RANGE',function(t,e,n){var i="The value of \""+t+"\" is out of range.",o=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?o=q(String(n)):'bigint'==typeof n&&(o=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(o=q(o)),o+='n'),i+=" It must be "+e+". Received "+o},RangeError);var $=/[^+/0-9A-Za-z-_]/g;function H(t){if((t=(t=t.split('=')[0]).trim().replace($,'')).length<2)return'';for(;t.length%4!=0;)t+='=';return t}function K(t,e){var n;e=e||1/0;for(var i=t.length,o=null,f=[],u=0;u55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}if(u+1===i){(e-=3)>-1&&f.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&f.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error('Invalid code point');if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return f}function Q(t){for(var e=[],n=0;n>8,o=n%256,f.push(o),f.push(i);return f}function rt(t){return r(d[2]).toByteArray(H(t))}function et(t,e,n,i){var o;for(o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function nt(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function it(t){return t!=t}var ot=(function(){for(var t=new Array(256),e=0;e<16;++e)for(var n=16*e,i=0;i<16;++i)t[n+i]="0123456789abcdef"[e]+"0123456789abcdef"[i];return t})();function ft(t){return'undefined'==typeof BigInt?ut:t}function ut(){throw new Error('BigInt not supported')}},981,[14,11,99,982,9,7,13,8]); +__d(function(g,r,_i,a,_m,_e,_d){_e.read=function(o,t,h,M,f){var w,p,i=8*f-M-1,n=(1<>1,e=-7,u=h?f-1:0,s=h?-1:1,c=o[t+u];for(u+=s,w=c&(1<<-e)-1,c>>=-e,e+=i;e>0;w=256*w+o[t+u],u+=s,e-=8);for(p=w&(1<<-e)-1,w>>=-e,e+=M;e>0;p=256*p+o[t+u],u+=s,e-=8);if(0===w)w=1-N;else{if(w===n)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,M),w-=N}return(c?-1:1)*p*Math.pow(2,w-M)},_e.write=function(o,t,h,M,f,w){var p,i,n,N=8*w-f-1,e=(1<>1,s=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,c=M?0:w-1,l=M?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,p=e):(p=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-p))<1&&(p--,n*=2),(t+=p+u>=1?s/n:s*Math.pow(2,1-u))*n>=2&&(p++,n/=2),p+u>=e?(i=0,p=e):p+u>=1?(i=(t*n-1)*Math.pow(2,f),p+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,f),p=0));f>=8;o[h+c]=255&i,c+=l,i/=256,f-=8);for(p=p<0;o[h+c]=255&p,c+=l,p/=256,N-=8);o[h+c-l]|=128*d}},982,[]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,c){var n,o=arguments.length,i=o<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,c);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ServiceDecorated=void 0,_e.ServiceDecorated=function(c){var n=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(){return _r(_d[3])(this,o),n.apply(this,arguments)}return _r(_d[4])(o,[{key:"setService",value:function(e){this.service=new(_r(_d[5]).ServiceDecorator)(e)}}]),o})(c);return t([(0,_r(_d[6]).Expose)({name:'~service'}),(0,_r(_d[6]).Type)(function(){return _r(_d[5]).ServiceDecorator}),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).ValidateNested)(),r("design:type",_r(_d[5]).ServiceDecorator)],n.prototype,"service",void 0),n}},983,[14,11,9,7,8,984,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,c=arguments.length,s=c<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var y=t.length-1;y>=0;y--)(o=t[y])&&(s=(c<3?o(s):c>3?o(i,r,s):o(i,r))||s);return c>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceDecorator=void 0;var r=(function(){function t(i){_r(_d[0])(this,t),i&&(this.recipientKeys=i.recipientKeys,this.routingKeys=i.routingKeys,this.serviceEndpoint=i.serviceEndpoint)}return _r(_d[1])(t,[{key:"resolvedDidCommService",get:function(){var t,i;return{id:(0,_r(_d[2]).uuid)(),recipientKeys:this.recipientKeys.map(_r(_d[3]).verkeyToInstanceOfKey),routingKeys:null!==(i=null===(t=this.routingKeys)||void 0===t?void 0:t.map(_r(_d[3]).verkeyToInstanceOfKey))&&void 0!==i?i:[],serviceEndpoint:this.serviceEndpoint}}}]),t})();t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).IsString)({each:!0}),i("design:type",Array)],r.prototype,"recipientKeys",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).IsString)({each:!0}),(0,_r(_d[4]).IsOptional)(),i("design:type",Array)],r.prototype,"routingKeys",void 0),t([(0,_r(_d[4]).IsString)(),i("design:type",String)],r.prototype,"serviceEndpoint",void 0),e.ServiceDecorator=r},984,[7,8,952,985,661]); +__d(function(g,r,i,a,m,e,d){"use strict";function y(y){return y.startsWith('did:key')}Object.defineProperty(e,"__esModule",{value:!0}),e.verkeyToInstanceOfKey=e.didKeyToInstanceOfKey=e.verkeyToDidKey=e.didKeyToVerkey=e.isDidKey=void 0,e.isDidKey=y,e.didKeyToVerkey=function(n){return y(n)?r(d[0]).DidKey.fromDid(n).key.publicKeyBase58:n},e.verkeyToDidKey=function(n){if(y(n))return n;var t=n,K=r(d[1]).Key.fromPublicKeyBase58(t,r(d[1]).KeyType.Ed25519);return new(r(d[0]).DidKey)(K).did},e.didKeyToInstanceOfKey=function(y){return r(d[0]).DidKey.fromDid(y).key},e.verkeyToInstanceOfKey=function(y){return r(d[1]).Key.fromPublicKeyBase58(y,r(d[1]).KeyType.Ed25519)}},985,[986,989]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidKey=void 0,Object.defineProperty(e,"DidKey",{enumerable:!0,get:function(){return r(d[0]).DidKey}}),n(r(d[1]),e),n(r(d[2]),e)},986,[987,1091,1331]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidKey=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.key=n}return r(d[1])(t,[{key:"did",get:function(){return"did:key:"+this.key.fingerprint}},{key:"didDocument",get:function(){return(0,r(d[2]).getDidDocumentForKey)(this.did,this.key)}}],[{key:"fromDid",value:function(n){var u=(0,r(d[3]).parseDid)(n);return new t(r(d[4]).Key.fromFingerprint(u.id))}}]),t})();e.DidKey=t},987,[7,8,988,1089,991]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t;function i(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,i){if(t){if("string"==typeof t)return o(t,i);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)?o(t,i):void 0}}function o(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,o=new Array(i);n=255)throw new TypeError('Alphabet too long');for(var n=new Uint8Array(256),o=0;o>>0,A=new Uint8Array(h);t[o];){var u=n[t.charCodeAt(o)];if(255===u)return;for(var v=0,l=h-1;(0!==u||v>>0,A[l]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error('Non-zero carry');i=v,o++}if(' '!==t[o]){for(var s=h-i;s!==h&&0===A[s];)s++;for(var U=new Uint8Array(f+(h-s)),p=f;s!==h;)U[p++]=A[s++];return U}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw new TypeError('Expected Uint8Array');if(0===n.length)return'';for(var o=0,f=0,i=0,h=n.length;i!==h&&0===n[i];)i++,o++;for(var w=(h-i)*A+1>>>0,u=new Uint8Array(w);i!==h;){for(var v=n[i],l=0,s=w-1;(0!==v||l>>0,u[s]=v%c>>>0,v=v/c>>>0;if(0!==v)throw new Error('Non-zero carry');f=l,i++}for(var U=w-f;U!==w&&0===u[U];)U++;for(var p=y.repeat(o);U0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[s++],e--;this._bufferLength===this.blockSize&&(i(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(s=i(this._temp,this._state,t,s,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[s++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,s=this._bufferLength,h=e/536870912|0,f=e<<3,n=e%64<56?64:128;this._buffer[s]=128;for(var a=s+1;a0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){r(_d[0]).wipe(t.state),t.buffer&&r(_d[0]).wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t})();_e.SHA256=t;var e=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function i(t,i,s,h,f){for(;f>=64;){for(var n=i[0],a=i[1],_=i[2],u=i[3],o=i[4],b=i[5],d=i[6],p=i[7],c=0;c<16;c++){var y=h+4*c;t[c]=r(_d[1]).readUint32BE(s,y)}for(c=16;c<64;c++){var g=t[c-2],L=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,w=((g=t[c-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;t[c]=(L+t[c-7]|0)+(w+t[c-16]|0)}for(c=0;c<64;c++){L=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&b^~o&d)|0)+(p+(e[c]+t[c]|0)|0)|0,w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&a^n&_^a&_)|0;p=d,d=b,b=o,o=u+L|0,u=_,_=a,a=n,n=L+w|0}i[0]+=n,i[1]+=a,i[2]+=_,i[3]+=u,i[4]+=o,i[5]+=b,i[6]+=d,i[7]+=p,h+=64,f-=64}return h}_e.hash=function(e){var i=new t;i.update(e);var s=i.digest();return i.clean(),s}},999,[1000,1001]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var n=0;n>>8,n[i+1]=t>>>0,n}function n(t,n,i){return void 0===n&&(n=new Uint8Array(2)),void 0===i&&(i=0),n[i+0]=t>>>0,n[i+1]=t>>>8,n}function i(t,n){return void 0===n&&(n=0),t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]}function o(t,n){return void 0===n&&(n=0),(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0}function f(t,n){return void 0===n&&(n=0),t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]}function u(t,n){return void 0===n&&(n=0),(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n])>>>0}function w(t,n,i){return void 0===n&&(n=new Uint8Array(4)),void 0===i&&(i=0),n[i+0]=t>>>24,n[i+1]=t>>>16,n[i+2]=t>>>8,n[i+3]=t>>>0,n}function v(t,n,i){return void 0===n&&(n=new Uint8Array(4)),void 0===i&&(i=0),n[i+0]=t>>>0,n[i+1]=t>>>8,n[i+2]=t>>>16,n[i+3]=t>>>24,n}function E(t,n,i){return void 0===n&&(n=new Uint8Array(8)),void 0===i&&(i=0),w(t/4294967296>>>0,n,i),w(t>>>0,n,i+4),n}function b(t,n,i){return void 0===n&&(n=new Uint8Array(8)),void 0===i&&(i=0),v(t>>>0,n,i),v(t/4294967296>>>0,n,i+4),n}Object.defineProperty(e,"__esModule",{value:!0}),e.readInt16BE=function(t,n){return void 0===n&&(n=0),(t[n+0]<<8|t[n+1])<<16>>16},e.readUint16BE=function(t,n){return void 0===n&&(n=0),(t[n+0]<<8|t[n+1])>>>0},e.readInt16LE=function(t,n){return void 0===n&&(n=0),(t[n+1]<<8|t[n])<<16>>16},e.readUint16LE=function(t,n){return void 0===n&&(n=0),(t[n+1]<<8|t[n])>>>0},e.writeUint16BE=t,e.writeInt16BE=t,e.writeUint16LE=n,e.writeInt16LE=n,e.readInt32BE=i,e.readUint32BE=o,e.readInt32LE=f,e.readUint32LE=u,e.writeUint32BE=w,e.writeInt32BE=w,e.writeUint32LE=v,e.writeInt32LE=v,e.readInt64BE=function(t,n){void 0===n&&(n=0);var o=i(t,n),f=i(t,n+4);return 4294967296*o+f-4294967296*(f>>31)},e.readUint64BE=function(t,n){return void 0===n&&(n=0),4294967296*o(t,n)+o(t,n+4)},e.readInt64LE=function(t,n){void 0===n&&(n=0);var i=f(t,n);return 4294967296*f(t,n+4)+i-4294967296*(i>>31)},e.readUint64LE=function(t,n){void 0===n&&(n=0);var i=u(t,n);return 4294967296*u(t,n+4)+i},e.writeUint64BE=E,e.writeInt64BE=E,e.writeUint64LE=b,e.writeInt64LE=b,e.readUintBE=function(t,n,i){if(void 0===i&&(i=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>n.length-i)throw new Error("readUintBE: array is too short for the given bitLength");for(var o=0,f=1,u=t/8+i-1;u>=i;u--)o+=n[u]*f,f*=256;return o},e.readUintLE=function(t,n,i){if(void 0===i&&(i=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>n.length-i)throw new Error("readUintLE: array is too short for the given bitLength");for(var o=0,f=1,u=i;u=o;u--)i[u]=n/f&255,f*=256;return i},e.writeUintLE=function(t,n,i,o){if(void 0===i&&(i=new Uint8Array(t/8)),void 0===o&&(o=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r(d[0]).isSafeInteger(n))throw new Error("writeUintLE value must be an integer");for(var f=1,u=o;u>>16&65535)*o+u*(t>>>16&65535)<<16>>>0)|0},e.add=function(n,t){return n+t|0},e.sub=function(n,t){return n-t|0},e.rotl=function(n,t){return n<>>32-t},e.rotr=function(n,t){return n<<32-t|n>>>t},e.isInteger=Number.isInteger||function(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(n){return e.isInteger(n)&&n>=-e.MAX_SAFE_INTEGER&&n<=e.MAX_SAFE_INTEGER}},1002,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VarintEncoder=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"decode",value:function(n){return[(0,r(d[2]).decode)(n),r(d[2]).decode.bytes]}},{key:"encode",value:function(t){var o=new(r(d[3]).Buffer)(n.encodingLength(t));return(0,r(d[2]).encode)(t,o),o}},{key:"encodingLength",value:function(n){return(0,r(d[2]).encodingLength)(n)}}]),n})();e.VarintEncoder=n},1003,[7,8,1004,980]); +__d(function(g,r,i,a,m,e,d){m.exports={encode:r(d[0]),decode:r(d[1]),encodingLength:r(d[2])}},1004,[1005,1006,1007]); +__d(function(g,r,i,a,m,e,d){m.exports=function E(u,_,f){if(Number.MAX_SAFE_INTEGER&&u>Number.MAX_SAFE_INTEGER)throw E.bytes=0,new RangeError('Could not encode varint');_=_||[];f=f||0;var b=f;for(;u>=t;)_[f++]=255&u|o,u/=128;for(;u&n;)_[f++]=255&u|o,u>>>=7;_[f]=0|u;E.bytes=f-b+1;return _};var o=128,n=-128,t=Math.pow(2,31)},1005,[]); +__d(function(g,r,i,a,m,e,d){m.exports=function o(h,u){var w,c=0,u=u||0,f=0,l=u,s=h.length;do{if(l>=s||f>49)throw o.bytes=0,new RangeError('Could not decode varint');w=h[l++],c+=f<28?(w&n)<=t);o.bytes=l-u;return c};var t=128,n=127},1006,[]); +__d(function(g,r,i,a,m,e,d){var t=Math.pow(2,7),o=Math.pow(2,14),p=Math.pow(2,21),h=Math.pow(2,28),w=Math.pow(2,35),M=Math.pow(2,42),n=Math.pow(2,49),u=Math.pow(2,56),c=Math.pow(2,63);m.exports=function(f){return f0)throw new(r(d[1]).AriesFrameworkError)("The proof request contains duplicate predicates and attributes: "+u.toString())}Object.defineProperty(e,"__esModule",{value:!0}),e.checkProofRequestForDuplicates=void 0,e.checkProofRequestForDuplicates=function(o){var a=t(o);u(n(o),a)}},1009,[42,612]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsUri=e.UriValidator=e.isStringArray=e.IsInstanceOrArrayOfInstances=e.IsStringOrInstance=void 0,e.IsStringOrInstance=function(t,n){return(0,r(d[0]).ValidateBy)({name:'IsStringOrInstance',constraints:[t],validator:{validate:function(t,n){return(0,r(d[0]).isString)(t)||(0,r(d[0]).isInstance)(t,null===n||void 0===n?void 0:n.constraints[0])},defaultMessage:(0,r(d[0]).buildMessage)(function(t,n){return(null===n||void 0===n?void 0:n.constraints[0])?t+"$property must be of type string or instance of "+n.constraints[0].name:t+"IsStringOrInstance decorator expects an object as value, but got falsy value."},n)}},n)},e.IsInstanceOrArrayOfInstances=function(t){return(0,r(d[0]).ValidateBy)({name:'isInstanceOrArrayOfInstances',validator:{validate:function(n){return Array.isArray(n)?(n.forEach(function(n){if(!(0,r(d[0]).isInstance)(n,t.classType))return!1}),!0):(0,r(d[0]).isInstance)(n,t.classType)},defaultMessage:(0,r(d[0]).buildMessage)(function(n){return n+"$property must be a string or instance of "+t.classType.name},t)}},t)},e.isStringArray=function(t){return Array.isArray(t)&&t.every(function(t){return'string'==typeof t})},e.UriValidator=/\w+:(\/?\/?)[^\s]+/,e.IsUri=function(t){return(0,r(d[0]).ValidateBy)({name:'isUri',validator:{validate:function(t){return e.UriValidator.test(t)},defaultMessage:(0,r(d[0]).buildMessage)(function(t){return t+"$property must be a string that matches regex: "+e.UriValidator.source},t)}},t)}},1010,[661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.isBoolean=e.isNumber=e.isString=void 0;e.isString=function(n){return'string'==typeof n};e.isNumber=function(n){return'number'==typeof n};e.isBoolean=function(n){return'boolean'==typeof n};e.isJsonObject=function(n){return void 0!==n&&'object'==typeof n&&null!==n&&!Array.isArray(n)}},1011,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return!(!n||''===n)&&n.startsWith('did:indy:')}Object.defineProperty(e,"__esModule",{value:!0}),e.getLegacyCredentialDefinitionId=e.getLegacySchemaId=e.getQualifiedIndySchemaId=e.getQualifiedIndyCredentialDefinitionId=e.isQualifiedIndyIdentifier=void 0,e.isQualifiedIndyIdentifier=n,e.getQualifiedIndyCredentialDefinitionId=function(t,u){if(n(u))return u;var f=u.split(':'),c=r(d[0])(f,5);return"did:indy:"+t+":"+c[0]+"/anoncreds/v0/CLAIM_DEF/"+c[3]+"/"+c[4]},e.getQualifiedIndySchemaId=function(t,u){if(n(u))return u;var f=u.split(':'),c=r(d[0])(f,4);return"did:indy:"+t+":"+c[0]+"/anoncreds/v0/SCHEMA/"+c[2]+"/"+c[3]},e.getLegacySchemaId=function(n,t,u){return n+":2:"+t+":"+u},e.getLegacyCredentialDefinitionId=function(n,t,u){return n+":3:CL:"+t+":"+u}},1012,[31]); +__d(function(g,r,i,_a,m,e,d){"use strict";function n(n,t){return n.length===t.length&&n.every(function(n){return t.includes(n)})}function t(n,t){return n===t||(null!==n&&void 0!==n||null!==t&&void 0!==t?n.constructor===t.constructor&&(n instanceof Function?n===t:n instanceof RegExp?n===t:!(!n.valueOf||!t.valueOf||n.valueOf()!==t.valueOf())||!(n instanceof Date||t instanceof Date)&&void 0):n===t)}Object.defineProperty(e,"__esModule",{value:!0}),e.deepEquality=void 0,e.deepEquality=function u(o,a){var f=t(o,a);if(void 0!==f)return f;if(!(o instanceof Map&&a instanceof Map))return(0,r(d[0]).areObjectsEqual)(o,a);var c=o,l=a;return!!n(Array.from(c.keys()),Array.from(l.keys()))&&Array.from(c.entries()).every(function(n){var t=r(d[1])(n,2),o=t[0];return u(t[1],l.get(o))})}},1013,[1014,31]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.areObjectsEqual=void 0,e.areObjectsEqual=function t(n,u){if('object'==typeof n&&null!=n&&'object'==typeof u&&null!=u){if(Object.keys(n).length!==Object.keys(u).length)return!1;for(var f in n)if(!(f in u&&t(n[f],u[f])))return!1;for(var o in u)if(!(o in n&&t(u[o],n[o])))return!1;return!0}return n===u}},1014,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMultiCodecPrefixByKeytype=e.getKeyTypeByMultiCodecPrefix=void 0;var t={234:r(d[0]).KeyType.Bls12381g1,235:r(d[0]).KeyType.Bls12381g2,236:r(d[0]).KeyType.X25519,237:r(d[0]).KeyType.Ed25519,238:r(d[0]).KeyType.Bls12381g1g2};e.getKeyTypeByMultiCodecPrefix=function(y){var o=t[y];if(!o)throw new Error("Unsupported key type from multicodec code '"+y+"'");return o},e.getMultiCodecPrefixByKeytype=function(y){var o=Object.keys(t).find(function(o){return t[o]===y});if(!o)throw new Error("Could not find multicodec prefix for key type '"+y+"'");return Number(o)}},1015,[990]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1016,[1017,1018,1058]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1017,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,i,n){var o,f=arguments.length,c=f<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,i,n);else for(var u=r.length-1;u>=0;u--)(o=r[u])&&(c=(f<3?o(c):f>3?o(t,i,c):o(t,i))||c);return f>3&&c&&Object.defineProperty(t,i,c),c},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},i=this&&this.__param||function(r,t){return function(i,n){t(i,n,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SigningProviderRegistry=e.SigningProviderToken=void 0,e.SigningProviderToken=Symbol('SigningProviderToken');var n=(function(){function r(t){_r(_d[0])(this,r),this.signingKeyProviders=t.filter(function(r){return'default'!==r})}return _r(_d[1])(r,[{key:"hasProviderForKeyType",value:function(r){return void 0!==this.signingKeyProviders.find(function(t){return t.keyType===r})}},{key:"getProviderForKeyType",value:function(r){var t=this.signingKeyProviders.find(function(t){return t.keyType===r});if(!t)throw new(_r(_d[2]).AriesFrameworkError)("No signing key provider for key type: "+r);return t}}]),r})();n=r([(0,_r(_d[3]).injectable)(),i(0,(0,_r(_d[3]).injectAll)(e.SigningProviderToken)),t("design:paramtypes",[Array])],n),e.SigningProviderRegistry=n},1018,[7,8,611,1019]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,c,o){void 0===o&&(o=c);var u=Object.getOwnPropertyDescriptor(n,c);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[c]}}),Object.defineProperty(t,o,u)}:function(t,n,c,o){void 0===o&&(o=c),t[o]=n[c]}),n=this&&this.__exportStar||function(n,c){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(c,o)||t(c,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.injectAll=e.injectable=e.inject=void 0,n(r(d[0]),e),n(r(d[1]),e),Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return r(d[2]).inject}}),Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return r(d[2]).injectable}}),Object.defineProperty(e,"injectAll",{enumerable:!0,get:function(){return r(d[2]).injectAll}})},1019,[1020,1057,1021]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function y(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new P(i||[]);return c(s,"_invoke",{value:S(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=y;var p={};function w(){}function b(){}function x(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,k=E&&E(E(G([])));k&&k!==o&&i.call(k,s)&&(L=k);var O=x.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,y=f.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(y).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function S(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=M(s,o);if(l){if(l===p)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===p)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function M(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,M(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),p;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,p;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function A(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function C(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),C(o),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;C(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),p}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o0&&void 0!==arguments[0]?arguments[0]:r(d[0]).container.createChildContainer(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[1])(this,o),this.container=t,this.registeredModules=n}return r(d[2])(o,[{key:"registerModules",value:function(t){for(var n=this.resolve(r(d[3]).FeatureRegistry),o=0,i=Object.entries(t);o=0;c--)(o=t[c])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i},o=function(t,e){return function(n,r){e(n,r,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(t){try{f(r.next(t))}catch(t){a(t)}}function c(t){try{f(r.throw(t))}catch(t){a(t)}}function f(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(i,c)}f((r=r.apply(t,e||[])).next())})},c=function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return f([t,e])}}function f(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},s=function(){for(var t=[],e=0;e1||c(t,e)})})}function c(t,e){try{(n=o[t](e)).value instanceof p?Promise.resolve(n.value.v).then(f,u):l(a[0][2],n)}catch(t){l(a[0][3],t)}var n}function f(t){c("next",t)}function u(t){c("throw",t)}function l(t,e){t(e),a.shift(),a.length&&c(a[0][0],a[0][1])}},h=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:p(t[r](e)),done:"return"===r}:o?o(e):e}:o}},b=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof u?u(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,a){o(r,a,(e=t[n](e)).done,e.value)})}}function o(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}},d=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},w=function(t){return t&&t.__esModule?t:{default:t}},m=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},O=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},j("__extends",t),j("__assign",e),j("__rest",n),j("__decorate",r),j("__param",o),j("__metadata",a),j("__awaiter",i),j("__generator",c),j("__exportStar",f),j("__createBinding",g),j("__values",u),j("__read",l),j("__spread",s),j("__spreadArrays",y),j("__await",p),j("__asyncGenerator",_),j("__asyncDelegator",h),j("__asyncValues",b),j("__makeTemplateObject",d),j("__importStar",v),j("__importDefault",w),j("__classPrivateFieldGet",m),j("__classPrivateFieldSet",O)})},1024,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"autoInjectable",{enumerable:!0,get:function(){return r(d[0]).default}}),Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return r(d[1]).default}}),Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return r(d[2]).default}}),Object.defineProperty(e,"registry",{enumerable:!0,get:function(){return r(d[3]).default}}),Object.defineProperty(e,"singleton",{enumerable:!0,get:function(){return r(d[4]).default}}),Object.defineProperty(e,"injectAll",{enumerable:!0,get:function(){return r(d[5]).default}}),Object.defineProperty(e,"injectAllWithTransform",{enumerable:!0,get:function(){return r(d[6]).default}}),Object.defineProperty(e,"injectWithTransform",{enumerable:!0,get:function(){return r(d[7]).default}}),Object.defineProperty(e,"scoped",{enumerable:!0,get:function(){return r(d[8]).default}})},1025,[1026,1043,1044,1045,1046,1047,1048,1049,1050]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(){return function(n){var e=r(d[2]).getParamInfo(n);return(function(o){r(d[3])(f,o);var c,s,l=(c=f,s=t(),function(){var t,n=r(d[0])(c);if(s){var e=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(){for(var t=arguments.length,o=new Array(t),c=0;c=0;--i){var s=this.tryEntries[i],u=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}function t(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=n(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{lifecycle:r(d[4]).default.Transient};if(this.ensureNotDisposed(),n=r(d[5]).isProvider(t)?t:{useClass:t},r(d[6]).isTokenProvider(n))for(var i=[e],s=n;null!=s;){var u=s.useToken;if(i.includes(u))throw new Error("Token registration cycle detected! "+[].concat(i,[u]).join(" -> "));i.push(u);var l=this._registry.get(u);s=l&&r(d[6]).isTokenProvider(l.provider)?l.provider:null}if((o.lifecycle===r(d[4]).default.Singleton||o.lifecycle==r(d[4]).default.ContainerScoped||o.lifecycle==r(d[4]).default.ResolutionScoped)&&(r(d[6]).isValueProvider(n)||r(d[6]).isFactoryProvider(n)))throw new Error("Cannot use lifecycle \""+r(d[4]).default[o.lifecycle]+"\" with ValueProviders or FactoryProviders");return this._registry.set(e,{provider:n,options:o}),this}},{key:"registerType",value:function(e,t){return this.ensureNotDisposed(),r(d[6]).isNormalToken(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})}},{key:"registerInstance",value:function(e,t){return this.ensureNotDisposed(),this.register(e,{useValue:t})}},{key:"registerSingleton",value:function(e,t){if(this.ensureNotDisposed(),r(d[6]).isNormalToken(e)){if(r(d[6]).isNormalToken(t))return this.register(e,{useToken:t},{lifecycle:r(d[4]).default.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:r(d[4]).default.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=e;return t&&!r(d[6]).isNormalToken(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:r(d[4]).default.Singleton})}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(r(d[7]).default);this.ensureNotDisposed();var n=this.getRegistration(e);if(!n&&r(d[6]).isNormalToken(e))throw new Error("Attempted to resolve unregistered dependency token: \""+e.toString()+"\"");if(this.executePreResolutionInterceptor(e,"Single"),n){var o=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,o,"Single"),o}if(r(d[8]).isConstructorToken(e)){var i=this.construct(e,t);return this.executePostResolutionInterceptor(e,i,"Single"),i}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")}},{key:"executePreResolutionInterceptor",value:function(e,n){if(this.interceptors.preResolution.has(e)){for(var o,i=[],s=t(this.interceptors.preResolution.getAll(e));!(o=s()).done;){var u=o.value;"Once"!=u.options.frequency&&i.push(u),u.callback(e,n)}this.interceptors.preResolution.setAll(e,i)}}},{key:"executePostResolutionInterceptor",value:function(e,n,o){if(this.interceptors.postResolution.has(e)){for(var i,s=[],u=t(this.interceptors.postResolution.getAll(e));!(i=u()).done;){var l=i.value;"Once"!=l.options.frequency&&s.push(l),l.callback(e,n,o)}this.interceptors.postResolution.setAll(e,s)}}},{key:"resolveRegistration",value:function(e,t){if(this.ensureNotDisposed(),e.options.lifecycle===r(d[4]).default.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var n,o=e.options.lifecycle===r(d[4]).default.Singleton,i=e.options.lifecycle===r(d[4]).default.ContainerScoped,s=o||i;return n=r(d[6]).isValueProvider(e.provider)?e.provider.useValue:r(d[6]).isTokenProvider(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):r(d[6]).isClassProvider(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):r(d[6]).isFactoryProvider(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===r(d[4]).default.ResolutionScoped&&t.scopedResolutions.set(e,n),n}},{key:"resolveAll",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(r(d[7]).default);this.ensureNotDisposed();var o=this.getAllRegistrations(e);if(!o&&r(d[6]).isNormalToken(e))throw new Error("Attempted to resolve unregistered dependency token: \""+e.toString()+"\"");if(this.executePreResolutionInterceptor(e,"All"),o){var i=o.map(function(e){return t.resolveRegistration(e,n)});return this.executePostResolutionInterceptor(e,i,"All"),i}var s=[this.construct(e,n)];return this.executePostResolutionInterceptor(e,s,"All"),s}},{key:"isRegistered",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.ensureNotDisposed(),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)}},{key:"reset",value:function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()}},{key:"clearInstances",value:function(){this.ensureNotDisposed();for(var e,n=t(this._registry.entries());!(e=n()).done;){var o=e.value,i=r(d[9])(o,2),s=i[0],u=i[1];this._registry.setAll(s,u.filter(function(e){return!r(d[6]).isValueProvider(e.provider)}).map(function(e){return e.instance=void 0,e}))}}},{key:"createChildContainer",value:function(){this.ensureNotDisposed();for(var e,o=new n(this),i=t(this._registry.entries());!(e=i()).done;){var s=e.value,u=r(d[9])(s,2),l=u[0],c=u[1];c.some(function(e){return e.options.lifecycle===r(d[4]).default.ContainerScoped})&&o._registry.setAll(l,c.map(function(e){return e.options.lifecycle===r(d[4]).default.ContainerScoped?{provider:e.provider,options:e.options}:e}))}return o}},{key:"beforeResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.preResolution.set(e,{callback:t,options:n})}},{key:"afterResolution",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{frequency:"Always"};this.interceptors.postResolution.set(e,{callback:t,options:n})}},{key:"dispose",value:function(){return r(d[10]).__awaiter(this,void 0,void 0,e().mark(function t(){var n;return e().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.disposed=!0,n=[],this.disposables.forEach(function(e){var t=e.dispose();t&&n.push(t)}),e.next=5,Promise.all(n);case 5:case"end":return e.stop()}},t,this)}))}},{key:"getRegistration",value:function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null}},{key:"getAllRegistrations",value:function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null}},{key:"construct",value:function(e,t){var n=this;if(e instanceof r(d[11]).DelayedConstructor)return e.createProxy(function(e){return n.resolve(e,t)});var o=(function(){var o=_e.typeInfo.get(e);if(!o||0===o.length){if(0===e.length)return new e;throw new Error("TypeInfo not known for \""+e.name+"\"")}var i=o.map(n.resolveParams(t,e));return r(d[12])(e,r(d[13])(i))})();return r(d[14]).isDisposable(o)&&this.disposables.add(o),o}},{key:"resolveParams",value:function(e,t){var n=this;return function(o,i){try{var s,u,l;return r(d[8]).isTokenDescriptor(o)?r(d[8]).isTransformDescriptor(o)?o.multiple?(s=n.resolve(o.transform)).transform.apply(s,[n.resolveAll(o.token)].concat(r(d[13])(o.transformArgs))):(u=n.resolve(o.transform)).transform.apply(u,[n.resolve(o.token,e)].concat(r(d[13])(o.transformArgs))):o.multiple?n.resolveAll(o.token):n.resolve(o.token,e):r(d[8]).isTransformDescriptor(o)?(l=n.resolve(o.transform,e)).transform.apply(l,[n.resolve(o.token,e)].concat(r(d[13])(o.transformArgs))):n.resolve(o,e)}catch(e){throw new Error(r(d[15]).formatErrorCtor(t,i,e))}}}},{key:"ensureNotDisposed",value:function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")}}]),n})();_e.instance=new i,_e.default=_e.instance},1030,[7,1031,1033,8,1023,1034,1039,1040,1028,31,1024,1029,67,42,1041,1042]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0});var e=(function(e){r(d[2])(o,e);var n,c,u=(n=o,c=t(),function(){var t,e=r(d[0])(n);if(c){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function o(){return r(d[3])(this,o),u.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.default=e},1031,[14,11,9,7,8,1032]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function t(){r(d[0])(this,t),this._registryMap=new Map}return r(d[1])(t,[{key:"entries",value:function(){return this._registryMap.entries()}},{key:"getAll",value:function(t){return this.ensure(t),this._registryMap.get(t)}},{key:"get",value:function(t){this.ensure(t);var s=this._registryMap.get(t);return s[s.length-1]||null}},{key:"set",value:function(t,s){this.ensure(t),this._registryMap.get(t).push(s)}},{key:"setAll",value:function(t,s){this._registryMap.set(t,s)}},{key:"has",value:function(t){return this.ensure(t),this._registryMap.get(t).length>0}},{key:"clear",value:function(){this._registryMap.clear()}},{key:"ensure",value:function(t){this._registryMap.has(t)||this._registryMap.set(t,[])}}]),t})();e.default=t},1032,[7,8]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(t){var n=e();return function(){var e,o=r(d[0])(t);if(n){var u=r(d[0])(this).constructor;e=Reflect.construct(o,arguments,u)}else e=o.apply(this,arguments);return r(d[1])(this,e)}}function e(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.PostResolutionInterceptors=_e.PreResolutionInterceptors=void 0;var n=(function(e){r(d[2])(o,e);var n=t(o);function o(){return r(d[3])(this,o),n.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.PreResolutionInterceptors=n;var o=(function(e){r(d[2])(o,e);var n=t(o);function o(){return r(d[3])(this,o),n.apply(this,arguments)}return r(d[4])(o)})(r(d[5]).default);_e.PostResolutionInterceptors=o;var u=r(d[4])(function t(){r(d[3])(this,t),this.preResolution=new n,this.postResolution=new o});_e.default=u},1033,[14,11,9,7,8,1032]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isProvider=void 0,e.isProvider=function(o){return r(d[0]).isClassProvider(o)||r(d[1]).isValueProvider(o)||r(d[2]).isTokenProvider(o)||r(d[3]).isFactoryProvider(o)}},1034,[1035,1036,1037,1038]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isClassProvider=void 0,e.isClassProvider=function(s){return!!s.useClass}},1035,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValueProvider=void 0,e.isValueProvider=function(u){return void 0!=u.useValue}},1036,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTokenProvider=void 0,e.isTokenProvider=function(o){return!!o.useToken}},1037,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFactoryProvider=void 0,e.isFactoryProvider=function(o){return!!o.useFactory}},1038,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isClassProvider",{enumerable:!0,get:function(){return r(d[0]).isClassProvider}}),Object.defineProperty(e,"isFactoryProvider",{enumerable:!0,get:function(){return r(d[1]).isFactoryProvider}}),Object.defineProperty(e,"isNormalToken",{enumerable:!0,get:function(){return r(d[2]).isNormalToken}}),Object.defineProperty(e,"isTokenProvider",{enumerable:!0,get:function(){return r(d[3]).isTokenProvider}}),Object.defineProperty(e,"isValueProvider",{enumerable:!0,get:function(){return r(d[4]).isValueProvider}})},1039,[1035,1038,1028,1037,1036]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0])(function t(){r(d[1])(this,t),this.scopedResolutions=new Map});e.default=t},1040,[8,7]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDisposable=void 0,e.isDisposable=function(s){return"function"==typeof s.dispose&&!(s.dispose.length>0)}},1041,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(t,n){return null===t?"at position #"+n:"\""+t.split(",")[n].trim()+"\" at position #"+n}function n(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";return[t].concat(r(d[0])(n.message.split("\n").map(function(t){return o+t}))).join("\n")}Object.defineProperty(_e,"__esModule",{value:!0}),_e.formatErrorCtor=void 0,_e.formatErrorCtor=function(o,e,c){var u=o.toString().match(/constructor\(([\w, ]+)\)/)||[],s=r(d[1])(u,2)[1];return n("Cannot inject the dependency "+t(void 0===s?null:s,e)+" of \""+o.name+"\" constructor. Reason:",c)}},1042,[42,31]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return r(d[0]).defineInjectionTokenMetadata(t)}},1043,[1027]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return function(t){r(d[0]).typeInfo.set(t,r(d[1]).getParamInfo(t))}}},1044,[1030,1027]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(n){return t.forEach(function(t){var n=t.token,o=t.options,u=r(d[0]).__rest(t,["token","options"]);return r(d[1]).instance.register(n,u,o)}),n}}},1045,[1024,1030]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return function(t){r(d[0]).default()(t),r(d[1]).instance.registerSingleton(t)}}},1046,[1044,1030]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n={token:t,multiple:!0};return r(d[0]).defineInjectionTokenMetadata(n)}},1047,[1027]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o=arguments.length,f=new Array(o>2?o-2:0),u=2;u2?o-2:0),u=2;u3&&void 0!==arguments[3])||arguments[3];return function(c){var f=t(c);return v&&l===f||(o=(l=f)?c.resolve(n):c.resolve(u)),o}}},1054,[]); +__d(function(g,_r,_i3,a,_m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var u,f=arguments.length,c=f<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,i);else for(var o=t.length-1;o>=0;o--)(u=t[o])&&(c=(f<3?u(c):f>3?u(r,n,c):u(r,n))||c);return f>3&&c&&Object.defineProperty(r,n,c),c};Object.defineProperty(e,"__esModule",{value:!0}),e.FeatureRegistry=void 0;var r=(function(){function t(){_r(_d[0])(this,t),this.features=[]}return _r(_d[1])(t,[{key:"register",value:function(){for(var t=this,r=arguments.length,n=new Array(r),i=0;i-1?t.features[n]=t.features[n].combine(r):t.features.push(r)},f=0,c=n;f=r.length?{done:!0}:{done:!1,value:r[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.")}function t(r,t){if(r){if("string"==typeof r)return n(r,t);var s=Object.prototype.toString.call(r).slice(8,-1);return"Object"===s&&r.constructor&&(s=r.constructor.name),"Map"===s||"Set"===s?Array.from(r):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(r,t):void 0}}function n(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,s=new Array(t);n=0;l--)(o=r[l])&&(u=(i<3?o(u):i>3?o(t,n,u):o(t,n))||u);return i>3&&u&&Object.defineProperty(t,n,u),u};Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandlerRegistry=void 0;var o=(function(){function t(){_r(_d[0])(this,t),this.messageHandlers=[]}return _r(_d[1])(t,[{key:"registerMessageHandler",value:function(r){this.messageHandlers.push(r)}},{key:"getHandlerForMessageType",value:function(t){for(var n,s=(0,_r(_d[2]).parseMessageType)(t),o=r(this.messageHandlers);!(n=o()).done;)for(var i,u=n.value,l=r(u.supportedMessages);!(i=l()).done;){var c=i.value;if((0,_r(_d[2]).canHandleMessageType)(c,s))return u}}},{key:"getMessageClassForMessageType",value:function(t){for(var n,s=(0,_r(_d[2]).parseMessageType)(t),o=r(this.messageHandlers);!(n=o()).done;)for(var i,u=r(n.value.supportedMessages);!(i=u()).done;){var l=i.value;if((0,_r(_d[2]).canHandleMessageType)(l,s))return l}}},{key:"supportedMessageTypes",get:function(){return this.messageHandlers.reduce(function(r,t){return[].concat(_r(_d[3])(r),_r(_d[3])(t.supportedMessages))},[]).map(function(r){return r.type})}},{key:"supportedProtocols",get:function(){return Array.from(new Set(this.supportedMessageTypes.map(function(r){return r.protocolUri})))}},{key:"filterSupportedProtocolsByMessageFamilies",value:function(r){return this.supportedProtocols.filter(function(t){return r.find(function(r){return t.startsWith(r)})})}}]),t})();o=s([(0,_r(_d[4]).injectable)()],o),e.MessageHandlerRegistry=o},1056,[7,8,941,42,1021]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1057,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.SigningProviderError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){return r(d[3])(this,u),c.apply(this,arguments)}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.SigningProviderError=e},1058,[14,11,9,7,8,611]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g1=e.getBls12381g1VerificationMethod=void 0;var t='Bls12381G1Key2020';function o(o,n){return{id:o+"#"+n.fingerprint,type:t,controller:o,publicKeyBase58:n.publicKeyBase58}}e.getBls12381g1VerificationMethod=o,e.keyDidBls12381g1={supportedVerificationMethodTypes:[t],getVerificationMethods:function(t,n){return[o(t,n)]},getKeyFromVerificationMethod:function(o){if(o.type!==t||!o.publicKeyBase58)throw new Error('Invalid verification method passed');return r(d[0]).Key.fromPublicKeyBase58(o.publicKeyBase58,r(d[1]).KeyType.Bls12381g1)}}},1059,[991,989]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXPANDED_TYPE_CREDENTIALS_CONTEXT_V1_VC_TYPE=e.VERIFIABLE_PRESENTATION_TYPE=e.VERIFIABLE_CREDENTIAL_TYPE=e.SECURITY_SIGNATURE_URL=e.SECURITY_PROOF_URL=e.CREDENTIALS_ISSUER_URL=e.SECURITY_CONTEXT_BBS_URL=e.CREDENTIALS_CONTEXT_V1_URL=e.DID_V1_CONTEXT_URL=e.SECURITY_X25519_CONTEXT_URL=e.SECURITY_CONTEXT_URL=e.SECURITY_CONTEXT_V3_URL=e.SECURITY_CONTEXT_V2_URL=e.SECURITY_CONTEXT_V1_URL=void 0,e.SECURITY_CONTEXT_V1_URL='https://w3id.org/security/v1',e.SECURITY_CONTEXT_V2_URL='https://w3id.org/security/v2',e.SECURITY_CONTEXT_V3_URL='https://w3id.org/security/v3-unstable',e.SECURITY_CONTEXT_URL=e.SECURITY_CONTEXT_V2_URL,e.SECURITY_X25519_CONTEXT_URL='https://w3id.org/security/suites/x25519-2019/v1',e.DID_V1_CONTEXT_URL='https://www.w3.org/ns/did/v1',e.CREDENTIALS_CONTEXT_V1_URL='https://www.w3.org/2018/credentials/v1',e.SECURITY_CONTEXT_BBS_URL='https://w3id.org/security/bbs/v1',e.CREDENTIALS_ISSUER_URL='https://www.w3.org/2018/credentials#issuer',e.SECURITY_PROOF_URL='https://w3id.org/security#proof',e.SECURITY_SIGNATURE_URL='https://w3id.org/security#signature',e.VERIFIABLE_CREDENTIAL_TYPE='VerifiableCredential',e.VERIFIABLE_PRESENTATION_TYPE='VerifiablePresentation',e.EXPANDED_TYPE_CREDENTIALS_CONTEXT_V1_VC_TYPE='https://www.w3.org/2018/credentials#VerifiableCredential'},1060,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,o){var c=o.publicKey.slice(0,48),s=o.publicKey.slice(48),l=r(d[0]).Key.fromPublicKey(c,r(d[1]).KeyType.Bls12381g1),n=r(d[0]).Key.fromPublicKey(s,r(d[1]).KeyType.Bls12381g2);return[(0,r(d[2]).getBls12381g1VerificationMethod)(t,l),(0,r(d[3]).getBls12381g2VerificationMethod)(t,n)]}Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g1g2=e.getBls12381g1g2VerificationMethod=void 0,e.getBls12381g1g2VerificationMethod=t,e.keyDidBls12381g1g2={supportedVerificationMethodTypes:[],getVerificationMethods:t,getKeyFromVerificationMethod:function(){throw new Error('Not supported for bls12381g1g2 key')}}},1061,[991,989,1059,1062]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(t,_){return{id:t+"#"+_.fingerprint,type:e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020,controller:t,publicKeyBase58:_.publicKeyBase58}}Object.defineProperty(e,"__esModule",{value:!0}),e.keyDidBls12381g2=e.getBls12381g2VerificationMethod=e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020=void 0,e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020='Bls12381G2Key2020',e.getBls12381g2VerificationMethod=t,e.keyDidBls12381g2={supportedVerificationMethodTypes:[e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020],getVerificationMethods:function(_,o){return[t(_,o)]},getKeyFromVerificationMethod:function(t){if(t.type!==e.VERIFICATION_METHOD_TYPE_BLS12381G2_KEY_2020||!t.publicKeyBase58)throw new Error('Invalid verification method passed');return r(d[0]).Key.fromPublicKeyBase58(t.publicKeyBase58,r(d[1]).KeyType.Bls12381g2)}}},1062,[991,989]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentBuilder=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.didDocument=new(r(d[1]).DidDocument)({id:n})}return r(d[2])(t,[{key:"addContext",value:function(t){return'string'==typeof this.didDocument.context?this.didDocument.context=[this.didDocument.context,t]:this.didDocument.context.push(t),this}},{key:"addService",value:function(t){return this.didDocument.service||(this.didDocument.service=[]),this.didDocument.service.push(t),this}},{key:"addVerificationMethod",value:function(t){return this.didDocument.verificationMethod||(this.didDocument.verificationMethod=[]),this.didDocument.verificationMethod.push(t instanceof r(d[3]).VerificationMethod?t:new(r(d[3]).VerificationMethod)(t)),this}},{key:"addAuthentication",value:function(t){this.didDocument.authentication||(this.didDocument.authentication=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.authentication.push(n),this}},{key:"addAssertionMethod",value:function(t){this.didDocument.assertionMethod||(this.didDocument.assertionMethod=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.assertionMethod.push(n),this}},{key:"addCapabilityDelegation",value:function(t){this.didDocument.capabilityDelegation||(this.didDocument.capabilityDelegation=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.capabilityDelegation.push(n),this}},{key:"addCapabilityInvocation",value:function(t){this.didDocument.capabilityInvocation||(this.didDocument.capabilityInvocation=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.capabilityInvocation.push(n),this}},{key:"addKeyAgreement",value:function(t){this.didDocument.keyAgreement||(this.didDocument.keyAgreement=[]);var n=t instanceof r(d[3]).VerificationMethod||'string'==typeof t?t:new(r(d[3]).VerificationMethod)(t);return this.didDocument.keyAgreement.push(n),this}},{key:"build",value:function(){return this.didDocument}}]),t})();e.DidDocumentBuilder=t},1063,[7,1064,8,1075]); +__d(function(g,_r,_i,_a2,_m,e,_d2){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,r,n){t[r]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function l(t,r,n,i){var a=r&&r.prototype instanceof p?r:p,c=Object.create(a.prototype),s=new _(i||[]);return o(c,"_invoke",{value:S(t,n,s)}),c}function h(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var y={};function p(){}function d(){}function v(){}var m={};f(m,c,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==n&&i.call(w,c)&&(m=w);var x=v.prototype=p.prototype=Object.create(m);function I(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function O(t,r){function n(o,a,c,s){var u=h(t[o],t,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==typeof l&&i.call(l,"__await")?r.resolve(l.__await).then(function(t){n("next",t,c,s)},function(t){n("throw",t,c,s)}):r.resolve(l).then(function(t){f.value=t,c(f)},function(t){return n("throw",t,c,s)})}s(u.arg)}var a;o(this,"_invoke",{value:function(t,i){function o(){return new r(function(r,o){n(t,i,r,o)})}return a=a?a.then(o,o):o()}})}function S(t,r,n){var i="suspendedStart";return function(o,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw a;return L()}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var s=A(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=h(t,r,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function A(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=h(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function M(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function E(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},r}function r(t,r){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||r&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function n(t,r){if(t){if("string"==typeof t)return i(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)?i(t,r):void 0}}function i(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n=0;s--)(o=t[s])&&(c=(a<3?o(c):a>3?o(r,n,c):o(r,n))||c);return a>3&&c&&Object.defineProperty(r,n,c),c},a=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},c=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(n){r[n]=t[n]&&function(r){return new Promise(function(i,a){o(i,a,(r=t[n](r)).done,r.value)})}}function o(t,r,n,i){Promise.resolve(i).then(function(r){t({value:r,done:n})},r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.findVerificationMethodByKeyType=e.keyReferenceToKey=e.DidDocument=void 0;var s=(function(){function t(r){var n;_r(_d2[0])(this,t),this.context=['https://w3id.org/did/v1'],r&&(this.context=null!==(n=r.context)&&void 0!==n?n:this.context,this.id=r.id,this.alsoKnownAs=r.alsoKnownAs,this.controller=r.controller,this.verificationMethod=r.verificationMethod,this.service=r.service,this.authentication=r.authentication,this.assertionMethod=r.assertionMethod,this.keyAgreement=r.keyAgreement,this.capabilityInvocation=r.capabilityInvocation,this.capabilityDelegation=r.capabilityDelegation)}return _r(_d2[1])(t,[{key:"dereferenceVerificationMethod",value:function(t){var r,n=null===(r=this.verificationMethod)||void 0===r?void 0:r.find(function(r){return r.id.endsWith(t)});if(!n)throw new Error("Unable to locate verification method with id '"+t+"'");return n}},{key:"dereferenceKey",value:function(t,n){for(var i,o,a=null!==n&&void 0!==n?n:['authentication','keyAgreement','assertionMethod','capabilityInvocation','capabilityDelegation'],c=r(a);!(o=c()).done;)for(var s,u=r(null!==(i=this[o.value])&&void 0!==i?i:[]);!(s=u()).done;){var f=s.value;if('string'==typeof f&&f.endsWith(t))return this.dereferenceVerificationMethod(f);if('string'!=typeof f&&f.id.endsWith(t))return f}throw new Error("Unable to locate verification method with id '"+t+"' in purposes "+a)}},{key:"getServicesByType",value:function(t){var r,n;return null!==(n=null===(r=this.service)||void 0===r?void 0:r.filter(function(r){return r.type===t}))&&void 0!==n?n:[]}},{key:"getServicesByClassType",value:function(t){var r,n;return null!==(n=null===(r=this.service)||void 0===r?void 0:r.filter(function(r){return r instanceof t}))&&void 0!==n?n:[]}},{key:"didCommServices",get:function(){var t,r,n=[_r(_d2[2]).IndyAgentService.type,_r(_d2[2]).DidCommV1Service.type];return(null!==(r=null===(t=this.service)||void 0===t?void 0:t.filter(function(t){return n.includes(t.type)}))&&void 0!==r?r:[]).sort(function(t,r){return r.priority-t.priority})}},{key:"recipientKeys",get:function(){for(var t,n=this,i=[],o=r(this.didCommServices);!(t=o()).done;){var a=t.value;a instanceof _r(_d2[2]).IndyAgentService?i=[].concat(_r(_d2[3])(i),_r(_d2[3])(a.recipientKeys.map(function(t){return _r(_d2[4]).Key.fromPublicKeyBase58(t,_r(_d2[4]).KeyType.Ed25519)}))):a instanceof _r(_d2[2]).DidCommV1Service&&(i=[].concat(_r(_d2[3])(i),_r(_d2[3])(a.recipientKeys.map(function(t){return u(n,t)}))))}return i}},{key:"toJSON",value:function(){return _r(_d2[5]).JsonTransformer.toJSON(this)}}]),t})();function u(t,r){var n=t.dereferenceKey(r,['authentication','keyAgreement']);return(0,(0,_r(_d2[10]).getKeyDidMappingByVerificationMethod)(n).getKeyFromVerificationMethod)(n)}o([(0,_r(_d2[6]).Expose)({name:'@context'}),(0,_r(_d2[7]).IsStringOrStringArray)(),a("design:type",Object)],s.prototype,"context",void 0),o([(0,_r(_d2[8]).IsString)(),a("design:type",String)],s.prototype,"id",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[8]).IsString)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"alsoKnownAs",void 0),o([(0,_r(_d2[7]).IsStringOrStringArray)(),(0,_r(_d2[8]).IsOptional)(),a("design:type",Object)],s.prototype,"controller",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[8]).ValidateNested)({each:!0}),(0,_r(_d2[6]).Type)(function(){return _r(_d2[9]).VerificationMethod}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"verificationMethod",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[2]).ServiceTransformer)(),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"service",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"authentication",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"assertionMethod",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"keyAgreement",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"capabilityInvocation",void 0),o([(0,_r(_d2[8]).IsArray)(),(0,_r(_d2[9]).VerificationMethodTransformer)(),(0,_r(_d2[9]).IsStringOrVerificationMethod)({each:!0}),(0,_r(_d2[8]).IsOptional)(),a("design:type",Array)],s.prototype,"capabilityDelegation",void 0),e.DidDocument=s,e.keyReferenceToKey=u,e.findVerificationMethodByKeyType=function(r,n){var i,o,a,s,u,f,l,h,y,p,d,v,m,b,w,x,I;return t().async(function(O){for(;;)switch(O.prev=O.next){case 0:y=['verificationMethod','authentication','keyAgreement','assertionMethod','capabilityInvocation','capabilityDelegation'],O.prev=1,p=!0,d=c(y);case 3:return O.next=5,t().awrap(d.next());case 5:if(v=O.sent,i=v.done){O.next=53;break}if(s=v.value,p=!1,O.prev=10,!((m=n[s])instanceof Array)){O.next=48;break}O.prev=14,b=!0,f=void 0,w=c(m);case 16:return O.next=18,t().awrap(w.next());case 18:if(x=O.sent,u=x.done){O.next=33;break}if(h=x.value,b=!1,O.prev=23,'string'==typeof(I=h)){O.next=28;break}if(I.type!==r){O.next=28;break}return O.abrupt("return",I);case 28:return O.prev=28,b=!0,O.finish(28);case 31:O.next=16;break;case 33:O.next=38;break;case 35:O.prev=35,O.t0=O.catch(14),f={error:O.t0};case 38:if(O.prev=38,O.prev=39,b||u||!(l=w.return)){O.next=43;break}return O.next=43,t().awrap(l.call(w));case 43:if(O.prev=43,!f){O.next=46;break}throw f.error;case 46:return O.finish(43);case 47:return O.finish(38);case 48:return O.prev=48,p=!0,O.finish(48);case 51:O.next=3;break;case 53:O.next=58;break;case 55:O.prev=55,O.t1=O.catch(1),o={error:O.t1};case 58:if(O.prev=58,O.prev=59,p||i||!(a=d.return)){O.next=63;break}return O.next=63,t().awrap(a.call(d));case 63:if(O.prev=63,!o){O.next=66;break}throw o.error;case 66:return O.finish(63);case 67:return O.finish(58);case 68:return O.abrupt("return",null);case 69:case"end":return O.stop()}},null,null,[[1,55,58,68],[10,,48,51],[14,35,38,48],[23,,28,31],[39,,43,47],[59,,63,67]],Promise)}},1064,[7,8,1065,42,989,625,626,1072,661,1075,1078]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serviceTypes=e.ServiceTransformer=e.DidCommV2Service=e.DidDocumentService=e.DidCommV1Service=e.IndyAgentService=void 0,Object.defineProperty(e,"DidCommV1Service",{enumerable:!0,get:function(){return r(d[0]).DidCommV1Service}}),Object.defineProperty(e,"DidCommV2Service",{enumerable:!0,get:function(){return r(d[1]).DidCommV2Service}}),Object.defineProperty(e,"DidDocumentService",{enumerable:!0,get:function(){return r(d[2]).DidDocumentService}}),Object.defineProperty(e,"IndyAgentService",{enumerable:!0,get:function(){return r(d[3]).IndyAgentService}}),Object.defineProperty(e,"ServiceTransformer",{enumerable:!0,get:function(){return r(d[4]).ServiceTransformer}}),Object.defineProperty(e,"serviceTypes",{enumerable:!0,get:function(){return r(d[4]).serviceTypes}})},1065,[1066,1069,1067,1070,1071]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,i){var o,c=arguments.length,n=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,i);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(n=(c<3?o(n):c>3?o(e,r,n):o(e,r))||n);return c>3&&n&&Object.defineProperty(e,r,n),n},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommV1Service=void 0;var i=(function(e){_r(_d[2])(c,e);var r,i,o=(r=c,i=t(),function(){var t,e=_r(_d[0])(r);if(i){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t){var e;return _r(_d[3])(this,c),(e=o.call(this,_r(_d[4])(_r(_d[4])({},t),{type:c.type}))).priority=0,t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,e.accept=t.accept,t.priority&&(e.priority=t.priority)),e}return _r(_d[5])(c)})(_r(_d[6]).DidDocumentService);i.type='did-communication',e([(0,_r(_d[7]).ArrayNotEmpty)(),(0,_r(_d[7]).IsString)({each:!0}),r("design:type",Array)],i.prototype,"recipientKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],i.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],i.prototype,"accept",void 0),_e.DidCommV1Service=i},1066,[14,11,9,7,4,8,1067,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,o){var r,c=arguments.length,d=c<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,n,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(d=(c<3?r(d):c>3?r(i,n,d):r(i,n))||d);return c>3&&d&&Object.defineProperty(i,n,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentService=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),i&&(this.id=i.id,this.serviceEndpoint=i.serviceEndpoint,this.type=i.type)}return _r(_d[1])(t,[{key:"protocolScheme",get:function(){return(0,_r(_d[2]).getProtocolScheme)(this.serviceEndpoint)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"id",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"serviceEndpoint",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"type",void 0),e.DidDocumentService=n},1067,[7,8,1068,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProtocolScheme=void 0,e.getProtocolScheme=function(t){var o=t.split(':');return r(d[0])(o,1)[0]}},1068,[31]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,c){var n,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,c);else for(var f=t.length-1;f>=0;f--)(n=t[f])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommV2Service=void 0;var c=(function(e){_r(_d[2])(o,e);var r,c,n=(r=o,c=t(),function(){var t,e=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),e=n.call(this,_r(_d[4])(_r(_d[4])({},t),{type:o.type})),t&&(e.routingKeys=t.routingKeys,e.accept=t.accept),e}return _r(_d[5])(o)})(_r(_d[6]).DidDocumentService);c.type='DIDComm',e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],c.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],c.prototype,"accept",void 0),_e.DidCommV2Service=c},1069,[14,11,9,7,4,8,1067,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,c=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(o<3?i(c):o>3?i(e,r,c):i(e,r))||c);return o>3&&c&&Object.defineProperty(e,r,c),c},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyAgentService=void 0;var n=(function(e){_r(_d[2])(o,e);var r,n,i=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=i.call(this,_r(_d[4])(_r(_d[4])({},t),{type:o.type}))).priority=0,t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,t.priority&&(e.priority=t.priority)),e}return _r(_d[5])(o)})(_r(_d[6]).DidDocumentService);n.type='IndyAgent',e([(0,_r(_d[7]).ArrayNotEmpty)(),(0,_r(_d[7]).IsString)({each:!0}),r("design:type",Array)],n.prototype,"recipientKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"routingKeys",void 0),_e.IndyAgentService=n},1070,[14,11,9,7,4,8,1067,661]); +__d(function(g,r,i,a,m,e,d){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceTransformer=e.serviceTypes=void 0,e.serviceTypes=(n={},r(d[0])(n,r(d[1]).IndyAgentService.type,r(d[1]).IndyAgentService),r(d[0])(n,r(d[2]).DidCommV1Service.type,r(d[2]).DidCommV1Service),r(d[0])(n,r(d[3]).DidCommV2Service.type,r(d[3]).DidCommV2Service),n),e.ServiceTransformer=function(){return(0,r(d[4]).Transform)(function(n){var v=n.value;return null===v||void 0===v?void 0:v.map(function(n){var v,c=null!==(v=e.serviceTypes[n.type])&&void 0!==v?v:r(d[5]).DidDocumentService;return(0,r(d[4]).plainToInstance)(c,n)})},{toClassOnly:!0})}},1071,[248,1070,1066,1069,626,1067]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsStringOrStringArray=e.IsMap=e.DateParser=e.DateTransformer=e.MetadataTransformer=e.RecordTransformer=void 0,e.RecordTransformer=function(n){return(0,r(d[0]).Transform)(function(t){var o=t.value;switch(t.type){case r(d[0]).TransformationType.CLASS_TO_PLAIN:return Object.entries(o).reduce(function(n,t){var o=r(d[1])(t,2),s=o[0],u=o[1];return r(d[2])(r(d[2])({},n),r(d[3])({},s,r(d[4]).JsonTransformer.toJSON(u)))},{});case r(d[0]).TransformationType.PLAIN_TO_CLASS:return Object.entries(o).reduce(function(t,o){var s=r(d[1])(o,2),u=s[0],f=s[1];return r(d[2])(r(d[2])({},t),r(d[3])({},u,r(d[4]).JsonTransformer.fromJSON(f,n)))},{});default:return o}})},e.MetadataTransformer=function(){return(0,r(d[0]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[0]).TransformationType.CLASS_TO_PLAIN?r(d[2])({},t.data):o===r(d[0]).TransformationType.PLAIN_TO_CLASS?new(r(d[5]).Metadata)(t):o===r(d[0]).TransformationType.CLASS_TO_CLASS?new(r(d[5]).Metadata)(r(d[2])({},t.data)):void 0})},e.DateTransformer=function(){return(0,r(d[0]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[0]).TransformationType.CLASS_TO_PLAIN?t.toISOString():o===r(d[0]).TransformationType.PLAIN_TO_CLASS?new Date(t):o===r(d[0]).TransformationType.CLASS_TO_CLASS?new Date(t.getTime()):void 0})},e.DateParser=function(n){var t=new Date(n);if(t instanceof Date&&!isNaN(t.getTime()))return t;var o=r(d[6]).DateTime.fromSQL(n);return o.isValid?new Date(o.toString()):new Date},e.IsMap=function(n){return(0,r(d[7]).ValidateBy)({name:'isMap',validator:{validate:function(n){return n instanceof Map},defaultMessage:(0,r(d[7]).buildMessage)(function(n){return n+'$property must be a Map'},n)}},n)},e.IsStringOrStringArray=function(n){return(0,r(d[7]).ValidateBy)({name:'isStringOrStringArray',validator:{validate:function(n){return(0,r(d[7]).isString)(n)||Array.isArray(n)&&n.every(function(n){return(0,r(d[7]).isString)(n)})},defaultMessage:(0,r(d[7]).buildMessage)(function(n){return n+'$property must be a string or string array'},n)}},n)}},1072,[626,31,4,248,625,1073,1074,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.data=n}return r(d[1])(t,[{key:"get",value:function(t){var n;return null!==(n=this.data[t])&&void 0!==n?n:null}},{key:"set",value:function(t,n){this.data[t]=n}},{key:"add",value:function(t,n){this.data[t]=r(d[2])(r(d[2])({},this.data[t]),n)}},{key:"keys",get:function(){return Object.keys(this.data)}},{key:"delete",value:function(t){delete this.data[t]}}]),t})();e.Metadata=t},1073,[7,8,4]); +__d(function(e,t,n,r,i,o,a){'use strict';function u(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}function v(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(o,'__esModule',{value:!0});var w=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(m(Error)),k=(function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return c(t,e),t})(w),S=(function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return c(t,e),t})(w),T=(function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return c(t,e),t})(w),b=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(w),O=(function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return c(t,e),t})(w),M=(function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t})(w),N=(function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return c(t,e),t})(w),E="numeric",D="short",I="long",V={year:E,month:E,day:E},L={year:E,month:D,day:E},x={year:E,month:D,day:E,weekday:D},C={year:E,month:I,day:E},F={year:E,month:I,day:E,weekday:I},Z={hour:E,minute:E},A={hour:E,minute:E,second:E},z={hour:E,minute:E,second:E,timeZoneName:D},_={hour:E,minute:E,second:E,timeZoneName:I},j={hour:E,minute:E,hour12:!1},q={hour:E,minute:E,second:E,hour12:!1},H={hour:E,minute:E,second:E,hour12:!1,timeZoneName:D},U={hour:E,minute:E,second:E,hour12:!1,timeZoneName:I},R={year:E,month:E,day:E,hour:E,minute:E},P={year:E,month:E,day:E,hour:E,minute:E,second:E},W={year:E,month:D,day:E,hour:E,minute:E},J={year:E,month:D,day:E,hour:E,minute:E,second:E},Y={year:E,month:D,day:E,weekday:D,hour:E,minute:E},G={year:E,month:I,day:E,hour:E,minute:E,timeZoneName:D},$={year:E,month:I,day:E,hour:E,minute:E,second:E,timeZoneName:D},B={year:E,month:I,day:E,weekday:I,hour:E,minute:E,timeZoneName:I},Q={year:E,month:I,day:E,weekday:I,hour:E,minute:E,second:E,timeZoneName:I};function K(e){return void 0===e}function X(e){return"number"==typeof e}function ee(e){return"number"==typeof e&&e%1==0}function te(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function ne(){return!K(Intl.DateTimeFormat.prototype.formatToParts)}function re(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ie(e,t,n){if(0!==e.length)return e.reduce(function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function oe(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ue(e,t,n){return ee(e)&&e>=t&&e<=n}function se(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ve(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function pe(e){return e>99?e:e>60?1900+e:2e3+e}function ge(e,n,r,i){void 0===i&&(i=null);var o=new Date(e),u={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(u.timeZone=i);var s=t(a[0])({timeZoneName:n},u),c=te();if(c&&ne()){var l=new Intl.DateTimeFormat(r,s).formatToParts(o).find(function(e){return"timezonename"===e.type.toLowerCase()});return l?l.value:null}if(c){var f=new Intl.DateTimeFormat(r,u).format(o);return new Intl.DateTimeFormat(r,s).format(o).substring(f.length).replace(/^[, \u200e]+/,"")}return null}function we(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ke(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new M("Invalid unit value "+e);return t}function Se(e,t,n){var r={};for(var i in e)if(ae(e,i)){if(n.indexOf(i)>=0)continue;var o=e[i];if(void 0===o||null===o)continue;r[t(i)]=ke(o)}return r}function Te(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+se(n,2)+":"+se(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+se(n,2)+se(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function be(e){return oe(e,["hour","minute","second","millisecond"])}var Oe=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function Me(e){return JSON.stringify(e,Object.keys(e).sort())}var Ne=["January","February","March","April","May","June","July","August","September","October","November","December"],Ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],De=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ie(e){switch(e){case"narrow":return[].concat(De);case"short":return[].concat(Ee);case"long":return[].concat(Ne);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Ve=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Le=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function Ce(e){switch(e){case"narrow":return[].concat(xe);case"short":return[].concat(Le);case"long":return[].concat(Ve);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Fe=["AM","PM"],Ze=["Before Christ","Anno Domini"],Ae=["BC","AD"],ze=["B","A"];function _e(e){switch(e){case"narrow":return[].concat(ze);case"short":return[].concat(Ae);case"long":return[].concat(Ze);default:return null}}function je(e){return Fe[e.hour<12?0:1]}function qe(e,t){return Ce(t)[e.weekday-1]}function He(e,t){return Ie(t)[e.month-1]}function Ue(e,t){return _e(t)[e.year<0?0:1]}function Re(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var u=Object.is(t,-0)||t<0,s=Math.abs(t),c=1===s,l=i[e],f=r?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return u?s+" "+f+" ago":"in "+s+" "+f}function Pe(e){switch(Me(oe(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case Me(V):return"M/d/yyyy";case Me(L):return"LLL d, yyyy";case Me(x):return"EEE, LLL d, yyyy";case Me(C):return"LLLL d, yyyy";case Me(F):return"EEEE, LLLL d, yyyy";case Me(Z):return"h:mm a";case Me(A):return"h:mm:ss a";case Me(z):case Me(_):return"h:mm a";case Me(j):return"HH:mm";case Me(q):return"HH:mm:ss";case Me(H):case Me(U):return"HH:mm";case Me(R):return"M/d/yyyy, h:mm a";case Me(W):return"LLL d, yyyy, h:mm a";case Me(G):return"LLLL d, yyyy, h:mm a";case Me(B):return"EEEE, LLLL d, yyyy, h:mm a";case Me(P):return"M/d/yyyy, h:mm:ss a";case Me(J):return"LLL d, yyyy, h:mm:ss a";case Me(Y):return"EEE, d LLL yyyy, h:mm a";case Me($):return"LLLL d, yyyy, h:mm:ss a";case Me(Q):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}function We(e,t){for(var n,r="",i=g(e);!(n=i()).done;){var o=n.value;o.literal?r+=o.val:r+=t(o.val)}return r}var Je={D:V,DD:L,DDD:C,DDDD:F,t:Z,tt:A,ttt:z,tttt:_,T:j,TT:q,TTT:H,TTTT:U,f:R,ff:W,fff:G,ffff:B,F:P,FF:J,FFF:$,FFFF:Q},Ye=(function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;o0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r?n+=a:a===t?n+=a:(n.length>0&&i.push({literal:!1,val:n}),n=a,t=a)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Je[e]};var n=e.prototype;return n.formatWithSystemDefault=function(e,n){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,t(a[0])({},this.opts,n)).format()},n.formatDateTime=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).format()},n.formatDateTimeParts=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).formatToParts()},n.resolvedOptions=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,t(a[0])({},this.opts,n)).resolvedOptions()},n.num=function(e,n){if(void 0===n&&(n=0),this.opts.forceSimple)return se(e,n);var r=t(a[0])({},this.opts);return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)},n.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&ne(),a=function(e,n){return r.loc.extract(t,e,n)},u=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},s=function(e,n){return i?He(t,e):a(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?qe(t,e):a(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n},f=function(e){return i?Ue(t,e):a({era:e},"era")};return We(e.parseFormat(n),function(e){switch(e){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return u({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return u({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?je(t):a({hour:"numeric",hour12:!0},"dayperiod");case"d":return o?a({day:"numeric"},"day"):r.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return o?a({month:"numeric"},"month"):r.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return o?a({year:"numeric"},"year"):r.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):r.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return l(e)}})},n.formatDurationFromString=function(t,n){var r,i=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(n),u=a.reduce(function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)},[]),s=t.shiftTo.apply(t,u.map(o).filter(function(e){return e}));return We(a,(r=s,function(e){var t=o(e);return t?i.num(r.get(t),e.length):e}))},e})(),Ge=(function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e})(),$e=(function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new N},t.formatOffset=function(e,t){throw new N},t.offset=function(e){throw new N},t.equals=function(e){throw new N},s(e,[{key:"type",get:function(){throw new N}},{key:"name",get:function(){throw new N}},{key:"universal",get:function(){throw new N}},{key:"isValid",get:function(){throw new N}}]),e})(),Be=null,Qe=(function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ge(e,t.format,t.locale)},n.formatOffset=function(e,t){return Te(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},s(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return te()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Be&&(Be=new t),Be}}]),t})($e),Ke=RegExp("^"+Oe.source+"$"),Xe={};var et={year:0,month:1,day:2,hour:3,minute:4,second:5};function tt(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),i=r[1],o=r[2];return[r[3],i,o,r[4],r[5],r[6]]}function nt(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?d:1e3+d))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},s(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t})($e),ot=null,at=(function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}c(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(we(n[1],n[2]))}return null},s(t,null,[{key:"utcInstance",get:function(){return null===ot&&(ot=new t(0)),ot}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return Te(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},s(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+Te(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t})($e),ut=(function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}c(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},s(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t})($e);function st(e,t){var n;if(K(e)||null===e)return t;if(e instanceof $e)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?at.utcInstance:null!=(n=it.parseGMTOffset(e))?at.instance(n):it.isValidSpecifier(r)?it.create(e):at.parseSpecifier(r)||new ut(e)}return X(e)?at.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new ut(e)}var ct=function(){return Date.now()},lt=null,ft=null,dt=null,ht=null,mt=!1,yt=(function(){function e(){}return e.resetCaches=function(){xt.resetCache(),it.resetCache()},s(e,null,[{key:"now",get:function(){return ct},set:function(e){ct=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){lt=e?st(e):null}},{key:"defaultZone",get:function(){return lt||Qe.instance}},{key:"defaultLocale",get:function(){return ft},set:function(e){ft=e}},{key:"defaultNumberingSystem",get:function(){return dt},set:function(e){dt=e}},{key:"defaultOutputCalendar",get:function(){return ht},set:function(e){ht=e}},{key:"throwOnInvalid",get:function(){return mt},set:function(e){mt=e}}]),e})(),vt={};function pt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=vt[n];return r||(r=new Intl.DateTimeFormat(e,t),vt[n]=r),r}var gt={};function wt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=gt[n];return r||(r=new Intl.NumberFormat(e,t),gt[n]=r),r}var kt={};function St(e,t){void 0===t&&(t={});var n=t,r=(n.base,y(n,["base"])),i=JSON.stringify([e,r]),o=kt[i];return o||(o=new Intl.RelativeTimeFormat(e,t),kt[i]=o),o}var Tt=null;function bt(){if(Tt)return Tt;if(te()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return Tt=e&&"und"!==e?e:"en-US"}return Tt="en-US"}function Ot(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=pt(e).resolvedOptions()}catch(e){n=pt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}function Mt(e,t,n){return te()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}function Nt(e){for(var t=[],n=1;n<=12;n++){var r=Rr.utc(2016,n,1);t.push(e(r))}return t}function Et(e){for(var t=[],n=1;n<=7;n++){var r=Rr.utc(2016,11,13+n);t.push(e(r))}return t}function Dt(e,t,n,r,i){var o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}var It=(function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&te()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=wt(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return se(this.floor?Math.floor(e):fe(e,3),this.padTo)},e})(),Vt=(function(){function e(e,n,r){var i;if(this.opts=r,this.hasIntl=te(),e.zone.universal&&this.hasIntl){var o=e.offset/60*-1,u=o>=0?"Etc/GMT+"+o:"Etc/GMT"+o,s=it.isValidZone(u);0!==e.offset&&s?(i=u,this.dt=e):(i="UTC",r.timeZoneName?this.dt=e:this.dt=0===e.offset?e:Rr.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,i=e.zone.name);if(this.hasIntl){var c=t(a[0])({},this.opts);i&&(c.timeZone=i),this.dtf=pt(n,c)}}var n=e.prototype;return n.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=Pe(this.opts),t=xt.create("en-US");return Ye.create(t).formatDateTimeFromString(this.dt,e)},n.formatToParts=function(){return this.hasIntl&&ne()?this.dtf.formatToParts(this.dt.toJSDate()):[]},n.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e})(),Lt=(function(){function e(e,n,r){this.opts=t(a[0])({style:"long"},r),!n&&re()&&(this.rtf=St(e,r))}var n=e.prototype;return n.format=function(e,t){return this.rtf?this.rtf.format(e,t):Re(t,e,this.opts.numeric,"long"!==this.opts.style)},n.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e})(),xt=(function(){function e(e,t,n,r){var i=Ot(e),o=i[0],a=i[1],u=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||u||null,this.intl=Mt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var o=t||yt.defaultLocale;return new e(o||(i?"en-US":bt()),n||yt.defaultNumberingSystem,r||yt.defaultOutputCalendar,o)},e.resetCache=function(){Tt=null,vt={},gt={},kt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,o=n.outputCalendar;return e.create(r,i,o)};var n=e.prototype;return n.listingMode=function(e){void 0===e&&(e=!0);var t=te()&&ne(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},n.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},n.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(t(a[0])({},e,{defaultToEN:!0}))},n.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(t(a[0])({},e,{defaultToEN:!1}))},n.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),Dt(this,e,n,Ie,function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=Nt(function(e){return r.extract(e,n,"month")})),r.monthsCache[i][e]})},n.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),Dt(this,e,n,Ce,function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=Et(function(e){return r.extract(e,n,"weekday")})),r.weekdaysCache[i][e]})},n.meridiems=function(e){var t=this;return void 0===e&&(e=!0),Dt(this,void 0,e,function(){return Fe},function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[Rr.utc(2016,11,13,9),Rr.utc(2016,11,13,19)].map(function(n){return t.extract(n,e,"dayperiod")})}return t.meridiemCache})},n.eras=function(e,t){var n=this;return void 0===t&&(t=!0),Dt(this,e,t,_e,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[Rr.utc(-40,1,1),Rr.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},n.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},n.numberFormatter=function(e){return void 0===e&&(e={}),new It(this.intl,e.forceSimple||this.fastNumbers,e)},n.dtFormatter=function(e,t){return void 0===t&&(t={}),new Vt(e,this.intl,t)},n.relFormatter=function(e){return void 0===e&&(e={}),new Lt(this.intl,this.isEnglish(),e)},n.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||te()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},n.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},s(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||te()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e})();function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?Ve.indexOf(e)+1:Le.indexOf(e)+1),u}var tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nn(e){var t,n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],u=e[6],s=e[7],c=e[8],l=e[9],f=e[10],d=e[11],h=en(n,o,i,r,a,u,s);return t=c?Xt[c]:l?0:we(f,d),[h,new at(t)]}function rn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var on=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,an=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,un=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function sn(e){var t=e[1],n=e[2],r=e[3];return[en(t,e[4],r,n,e[5],e[6],e[7]),at.utcInstance]}function cn(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],a=e[6];return[en(t,e[7],n,r,i,o,a),at.utcInstance]}var ln=Ct(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,qt),fn=Ct(/(\d{4})-?W(\d\d)(?:-?(\d))?/,qt),dn=Ct(/(\d{4})-?(\d{3})/,qt),hn=Ct(jt),mn=Ft(Jt,Yt,Gt),yn=Ft(Ht,Yt,Gt),vn=Ft(Ut,Yt,Gt),pn=Ft(Yt,Gt);var gn=Ft(Yt);var wn=Ct(/(\d{4})-(\d\d)-(\d\d)/,Pt),kn=Ct(Rt),Sn=Ft(Jt,Yt,Gt,$t),Tn=Ft(Yt,Gt,$t);var bn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},On=t(a[0])({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},bn),Mn=t(a[0])({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556951.999999996,milliseconds:31556951999.999996},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889237.999999999,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},bn),Nn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],En=Nn.slice(0).reverse();function Dn(e,n,r){void 0===r&&(r=!1);var i={values:r?n.values:t(a[0])({},e.values,n.values||{}),loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new Ln(i)}function In(e,t,n,r,i){var o,a=e[i][n],u=t[n]/a,s=!(Math.sign(u)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(u)<=1?(o=u)<0?Math.floor(o):Math.ceil(o):Math.trunc(u);r[i]+=s,t[n]-=s*a}function Vn(e,t){En.reduce(function(n,r){return K(t[r])?n:(n&&In(e,t,n,t,r),r)},null)}var Ln=(function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||xt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Mn:On,this.isLuxonDuration=!0}e.fromMillis=function(n,r){return e.fromObject(t(a[0])({milliseconds:n},r))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:Se(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:xt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(n,r){var i=Zt(n,[Qt,Kt])[0];if(i){var o=t(a[0])(i,r);return e.fromObject(o)}return e.invalid("unparsable","the input \""+n+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(n,r){var i=Zt(n,[Bt,gn])[0];if(i){var o=t(a[0])(i,r);return e.fromObject(o)}return e.invalid("unparsable","the input \""+n+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new M("need to specify a reason the Duration is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new T(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new O(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=e.prototype;return n.toFormat=function(e,n){void 0===n&&(n={});var r=t(a[0])({},n,{floor:!1!==n.round&&!1!==n.floor});return this.isValid?Ye.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=t(a[0])({},this.values);return e.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=fe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=this.toMillis();if(n<0||n>=864e5)return null;e=t(a[0])({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),i="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(i+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===r.milliseconds||(i+=".SSS"));var o=r.toFormat(i);return e.includePrefix&&(o="T"+o),o},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n.toMillis=function(){return this.as("milliseconds")},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var t,n=xn(e),r={},i=g(Nn);!(t=i()).done;){var o=t.value;(ae(n.values,o)||ae(this.values,o))&&(r[o]=n.get(o)+this.get(o))}return Dn(this,{values:r},!0)},n.minus=function(e){if(!this.isValid)return this;var t=xn(e);return this.plus(t.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=l;var f=0;for(var d in u)f+=this.matrix[d][l]*u[d],u[d]=0;X(s[l])&&(f+=s[l]);var h=Math.trunc(f);for(var m in a[l]=h,u[l]=f-h,s)Nn.indexOf(m)>Nn.indexOf(l)&&In(this.matrix,s,m,a,l)}else X(s[l])&&(u[l]=s[l])}for(var y in u)0!==u[y]&&(a[i]+=y===i?u[y]:u[y]/this.matrix[i][y]);return Dn(this,{values:a},!0).normalize()},n.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:c;a.push(e.fromDateTimes(u,l)),u=l,s+=1}return a},t.splitBy=function(t){var n=xn(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,o=1,a=[];i+this.e?this.e:u,a.push(e.fromDateTimes(i,r)),i=r,o+=1}return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,o=0,a=[],u=t.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),s=g((n=Array.prototype).concat.apply(n,u).sort(function(e,t){return e.time-t.time}));!(r=s()).done;){var c=r.value;1===(o+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&a.push(e.fromDateTimes(i,c.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=0){var f;r=c;var d,h=l(e,t);if((i=e.plus(((f={})[c]=h,f)))>t)e=e.plus(((d={})[c]=h-1,d)),h-=1;else e=i;o[c]=h}}return[e,o,i,r]}function jn(e,n,r,i){var o=_n(e,n,r),u=o[0],s=o[1],c=o[2],l=o[3],f=n-u,d=r.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0});if(0===d.length){var h;if(c0?(m=Ln.fromMillis(f,i)).shiftTo.apply(m,d).plus(y):y}var qn={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},Hn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Un=qn.hanidec.replace(/[\[|\]]/g,"").split("");function Rn(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=a&&r<=u&&(t+=r-a)}}return parseInt(t,10)}return t}function Pn(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+qn[n||"latn"]+t)}var Wn="missing Intl.DateTimeFormat.formatToParts support";function Jn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(Rn(n))}}}String.fromCharCode(160);var Yn="( |\xa0)",Gn=new RegExp(Yn,"g");function $n(e){return e.replace(/\./g,"\\.?").replace(Gn,Yn)}function Bn(e){return e.replace(/\./g,"").replace(Gn," ").toLowerCase()}function Qn(e,t){return null===e?null:{regex:RegExp(e.map($n).join("|")),deser:function(n){var r=n[0];return e.findIndex(function(e){return Bn(r)===Bn(e)})+t}}}function Kn(e,t){return{regex:e,deser:function(e){return we(e[1],e[2])},groups:t}}function Xn(e){return{regex:e,deser:function(e){return e[0]}}}var er={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function tr(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var o=n[r],a=er[r];return"object"==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}function nr(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}function rr(e,t,n){var r=e.match(t);if(r){var i={},o=1;for(var a in n)if(ae(n,a)){var u=n[a],s=u.groups?u.groups+1:1;!u.literal&&u.token&&(i[u.token.val[0]]=u.deser(r.slice(o,o+s))),o+=s}return[r,i]}return[r,{}]}function ir(e){var t,n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};return t=K(e.Z)?K(e.z)?null:it.create(e.z):new at(e.Z),K(e.q)||(e.M=3*(e.q-1)+1),K(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),K(e.u)||(e.S=le(e.u)),[Object.keys(e).reduce(function(t,r){var i=n(r);return i&&(t[i]=e[r]),t},{}),t]}var or=null;function ar(e,t){if(e.literal)return e;var n=Ye.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ye.create(t,n).formatDateTimeParts((or||(or=Rr.fromMillis(1555555555555)),or)).map(function(e){return tr(e,0,n)});return r.includes(void 0)?e:r}function ur(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return ar(e,t)}))}function sr(e,t,n){var r=ur(Ye.parseFormat(n),e),i=r.map(function(t){return n=t,i=Pn(r=e),o=Pn(r,"{2}"),a=Pn(r,"{3}"),u=Pn(r,"{4}"),s=Pn(r,"{6}"),c=Pn(r,"{1,2}"),l=Pn(r,"{1,3}"),f=Pn(r,"{1,6}"),d=Pn(r,"{1,9}"),h=Pn(r,"{2,4}"),m=Pn(r,"{4,6}"),y=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(v=(function(e){if(n.literal)return y(e);switch(e.val){case"G":return Qn(r.eras("short",!1),0);case"GG":return Qn(r.eras("long",!1),0);case"y":return Jn(f);case"yy":return Jn(h,pe);case"yyyy":return Jn(u);case"yyyyy":return Jn(m);case"yyyyyy":return Jn(s);case"M":return Jn(c);case"MM":return Jn(o);case"MMM":return Qn(r.months("short",!0,!1),1);case"MMMM":return Qn(r.months("long",!0,!1),1);case"L":return Jn(c);case"LL":return Jn(o);case"LLL":return Qn(r.months("short",!1,!1),1);case"LLLL":return Qn(r.months("long",!1,!1),1);case"d":return Jn(c);case"dd":return Jn(o);case"o":return Jn(l);case"ooo":return Jn(a);case"HH":return Jn(o);case"H":return Jn(c);case"hh":return Jn(o);case"h":return Jn(c);case"mm":return Jn(o);case"m":case"q":return Jn(c);case"qq":return Jn(o);case"s":return Jn(c);case"ss":return Jn(o);case"S":return Jn(l);case"SSS":return Jn(a);case"u":return Xn(d);case"a":return Qn(r.meridiems(),0);case"kkkk":return Jn(u);case"kk":return Jn(h,pe);case"W":return Jn(c);case"WW":return Jn(o);case"E":case"c":return Jn(i);case"EEE":return Qn(r.weekdays("short",!1,!1),1);case"EEEE":return Qn(r.weekdays("long",!1,!1),1);case"ccc":return Qn(r.weekdays("short",!0,!1),1);case"cccc":return Qn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Kn(new RegExp("([+-]"+c.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Kn(new RegExp("([+-]"+c.source+")("+o.source+")?"),2);case"z":return Xn(/[a-z_+-/]{1,256}?/i);default:return y(e)}})(n)||{invalidReason:Wn}).token=n,v;var n,r,i,o,a,u,s,c,l,f,d,h,m,y,v}),o=i.find(function(e){return e.invalidReason});if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};var a=nr(i),u=a[0],s=a[1],c=RegExp(u,"i"),l=rr(t,c,s),f=l[0],d=l[1],h=d?ir(d):[null,null],m=h[0],y=h[1];if(ae(d,"a")&&ae(d,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:f,matches:d,result:m,zone:y}}function cr(e,t,n){var r=sr(e,t,n);return[r.result,r.zone,r.invalidReason]}var lr=[0,31,59,90,120,151,181,212,243,273,304,334],fr=[0,31,60,91,121,152,182,213,244,274,305,335];function dr(e,t){return new Ge("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function hr(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function mr(e,t,n){return n+(de(e)?fr:lr)[t-1]}function yr(e,t){var n=de(e)?fr:lr,r=n.findIndex(function(e){return eve(r)?(n=r+1,c=1):n=r,t(a[0])({weekYear:n,weekNumber:c,weekday:s},be(e))}function pr(e){var n,r=e.weekYear,i=e.weekNumber,o=e.weekday,u=hr(r,1,4),s=he(r),c=7*i+o-u-3;c<1?c+=he(n=r-1):c>s?(n=r+1,c-=he(r)):n=r;var l=yr(n,c),f=l.month,d=l.day;return t(a[0])({year:n,month:f,day:d},be(e))}function gr(e){var n=e.year,r=mr(n,e.month,e.day);return t(a[0])({year:n,ordinal:r},be(e))}function wr(e){var n=e.year,r=yr(n,e.ordinal),i=r.month,o=r.day;return t(a[0])({year:n,month:i,day:o},be(e))}function kr(e){var t=ee(e.weekYear),n=ue(e.weekNumber,1,ve(e.weekYear)),r=ue(e.weekday,1,7);return t?n?!r&&dr("weekday",e.weekday):dr("week",e.week):dr("weekYear",e.weekYear)}function Sr(e){var t=ee(e.year),n=ue(e.ordinal,1,he(e.year));return t?!n&&dr("ordinal",e.ordinal):dr("year",e.year)}function Tr(e){var t=ee(e.year),n=ue(e.month,1,12),r=ue(e.day,1,me(e.year,e.month));return t?n?!r&&dr("day",e.day):dr("month",e.month):dr("year",e.year)}function br(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,o=ue(t,0,23)||24===t&&0===n&&0===r&&0===i,a=ue(n,0,59),u=ue(r,0,59),s=ue(i,0,999);return o?a?u?!s&&dr("millisecond",i):dr("second",r):dr("minute",n):dr("hour",t)}function Or(e){return new Ge("unsupported zone","the zone \""+e.name+"\" is not supported")}function Mr(e){return null===e.weekData&&(e.weekData=vr(e.c)),e.weekData}function Nr(e,n){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Rr(t(a[0])({},r,n,{old:r}))}function Er(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Dr(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ir(e,t,n){return Er(ye(e),t,n)}function Vr(e,n){var r=e.o,i=e.c.year+Math.trunc(n.years),o=e.c.month+Math.trunc(n.months)+3*Math.trunc(n.quarters),u=t(a[0])({},e.c,{year:i,month:o,day:Math.min(e.c.day,me(i,o))+Math.trunc(n.days)+7*Math.trunc(n.weeks)}),s=Ln.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),c=Er(ye(u),r,e.zone),l=c[0],f=c[1];return 0!==s&&(l+=s,f=e.zone.offset(l)),{ts:l,o:f}}function Lr(e,n,r,i,o){var u=r.setZone,s=r.zone;if(e&&0!==Object.keys(e).length){var c=n||s,l=Rr.fromObject(t(a[0])(e,r,{zone:c,setZone:void 0}));return u?l:l.setZone(s)}return Rr.invalid(new Ge("unparsable","the input \""+o+"\" can't be parsed as "+i))}function xr(e,t,n){return void 0===n&&(n=!0),e.isValid?Ye.create(xt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Cr(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,u=t.includePrefix,s=void 0!==u&&u,c=t.includeZone,l=void 0!==c&&c,f=t.spaceZone,d=void 0!==f&&f,h=t.format,m=void 0===h?"extended":h,y="basic"===m?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(y+="basic"===m?"ss":":ss",o&&0===e.millisecond||(y+=".SSS")),(l||a)&&d&&(y+=" "),l?y+="z":a&&(y+="basic"===m?"ZZZ":"ZZ");var v=xr(e,y);return s&&(v="T"+v),v}var Fr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ar={ordinal:1,hour:0,minute:0,second:0,millisecond:0},zr=["year","month","day","hour","minute","second","millisecond"],_r=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],jr=["year","ordinal","hour","minute","second","millisecond"];function qr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new O(e);return t}function Hr(e,t){for(var n,r=g(zr);!(n=r()).done;){var i=n.value;K(e[i])&&(e[i]=Fr[i])}var o=Tr(e)||br(e);if(o)return Rr.invalid(o);var a=yt.now(),u=Ir(e,t.offset(a),t),s=u[0],c=u[1];return new Rr({ts:s,zone:t,o:c})}function Ur(e,t,n){var r=!!K(n.round)||n.round,i=function(e,i){return e=fe(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},o=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(o(n.unit),n.unit);for(var a,u=g(n.units);!(a=u()).done;){var s=a.value,c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,n.units[n.units.length-1])}var Rr=(function(){function e(e){var t=e.zone||yt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ge("invalid input"):null)||(t.isValid?null:Or(t));this.ts=K(e.ts)?yt.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else{var a=t.offset(this.ts);r=Dr(this.ts,a),r=(n=Number.isNaN(r.year)?new Ge("invalid input"):null)?null:r,i=n?null:a}this._zone=t,this.loc=e.loc||xt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,o,a,u){return K(t)?e.now():Hr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},yt.defaultZone)},e.utc=function(t,n,r,i,o,a,u){return K(t)?new e({ts:yt.now(),zone:at.utcInstance}):Hr({year:t,month:n,day:r,hour:i,minute:o,second:a,millisecond:u},at.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var o=st(n.zone,yt.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:xt.fromObject(n)}):e.invalid(Or(o))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),X(t))return t<-864e13||t>864e13?e.invalid("Timestamp out of range"):new e({ts:t,zone:st(n.zone,yt.defaultZone),loc:xt.fromObject(n)});throw new M("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),X(t))return new e({ts:1e3*t,zone:st(n.zone,yt.defaultZone),loc:xt.fromObject(n)});throw new M("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=st(t.zone,yt.defaultZone);if(!n.isValid)return e.invalid(Or(n));var r=yt.now(),i=n.offset(r),o=Se(t,qr,["zone","locale","outputCalendar","numberingSystem"]),a=!K(o.ordinal),u=!K(o.year),s=!K(o.month)||!K(o.day),c=u||s,l=o.weekYear||o.weekNumber,f=xt.fromObject(t);if((c||a)&&l)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new b("Can't mix ordinal dates with month/day");var d,h,m=l||o.weekday&&!c,y=Dr(r,i);m?(d=_r,h=Zr,y=vr(y)):a?(d=jr,h=Ar,y=gr(y)):(d=zr,h=Fr);for(var v,p=!1,w=g(d);!(v=w()).done;){var k=v.value;K(o[k])?o[k]=p?h[k]:y[k]:p=!0}var S=(m?kr(o):a?Sr(o):Tr(o))||br(o);if(S)return e.invalid(S);var T=Ir(m?pr(o):a?wr(o):o,i,n),O=new e({ts:T[0],zone:n,o:T[1],loc:f});return o.weekday&&c&&t.weekday!==O.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+O.toISO()):O},e.fromISO=function(e,t){void 0===t&&(t={});var n=Zt(e,[ln,mn],[fn,yn],[dn,vn],[hn,pn]);return Lr(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=Zt(rn(e),[tn,nn]);return Lr(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=Zt(e,[on,sn],[an,sn],[un,cn]);return Lr(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),K(t)||K(n))throw new M("fromFormat requires an input string and a format");var i=r,o=i.locale,a=void 0===o?null:o,u=i.numberingSystem,s=void 0===u?null:u,c=cr(xt.fromOpts({locale:a,numberingSystem:s,defaultToEN:!0}),t,n),l=c[0],f=c[1],d=c[2];return d?e.invalid(d):Lr(l,f,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=Zt(e,[wn,Sn],[kn,Tn]);return Lr(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new M("need to specify a reason the DateTime is invalid");var r=t instanceof Ge?t:new Ge(t,n);if(yt.throwOnInvalid)throw new k(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var n=e.prototype;return n.get=function(e){return this[e]},n.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ye.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},n.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(at.instance(e),t)},n.toLocal=function(){return this.setZone(yt.defaultZone)},n.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,o=void 0!==i&&i,a=r.keepCalendarTime,u=void 0!==a&&a;if((t=st(t,yt.defaultZone)).equals(this.zone))return this;if(t.isValid){var s=this.ts;if(o||u){var c=t.offset(this.ts);s=Ir(this.toObject(),c,t)[0]}return Nr(this,{ts:s,zone:t})}return e.invalid(Or(t))},n.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Nr(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var n,r=Se(e,qr,[]),i=!K(r.weekYear)||!K(r.weekNumber)||!K(r.weekday),o=!K(r.ordinal),u=!K(r.year),s=!K(r.month)||!K(r.day),c=u||s,l=r.weekYear||r.weekNumber;if((c||o)&&l)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&o)throw new b("Can't mix ordinal dates with month/day");i?n=pr(t(a[0])(vr(this.c),r)):K(r.ordinal)?(n=t(a[0])(this.toObject(),r),K(r.day)&&(n.day=Math.min(me(n.year,n.month),n.day))):n=wr(t(a[0])(gr(this.c),r));var f=Ir(n,this.o,this.zone);return Nr(this,{ts:f[0],o:f[1]})},n.plus=function(e){return this.isValid?Nr(this,Vr(this,xn(e))):this},n.minus=function(e){return this.isValid?Nr(this,Vr(this,xn(e).negate())):this},n.startOf=function(e){if(!this.isValid)return this;var t={},n=Ln.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},n.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},n.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ye.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):"Invalid DateTime"},n.toLocaleString=function(e){return void 0===e&&(e=V),this.isValid?Ye.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ye.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},n.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),xr(this,n)},n.toISOWeekDate=function(){return xr(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,u=void 0===a||a,s=t.includePrefix,c=void 0!==s&&s,l=t.format;return Cr(this,{suppressSeconds:o,suppressMilliseconds:r,includeOffset:u,includePrefix:c,format:void 0===l?"extended":l})},n.toRFC2822=function(){return xr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return xr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return xr(this,"yyyy-MM-dd")},n.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Cr(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},n.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=t(a[0])({},this.c);return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,n,r){if(void 0===n&&(n="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return Ln.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var i,o=t(a[0])({locale:this.locale,numberingSystem:this.numberingSystem},r),u=(i=n,Array.isArray(i)?i:[i]).map(Ln.normalizeUnit),s=e.valueOf()>this.valueOf(),c=jn(s?this:e,s?e:this,u,o);return s?c.negate():c},n.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},n.until=function(e){return this.isValid?Zn.fromDateTimes(this,e):this},n.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var r=n.base||e.fromObject({zone:this.zone}),i=n.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return de(this.year)}},{key:"daysInMonth",get:function(){return me(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?he(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ve(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return V}},{key:"DATE_MED",get:function(){return L}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return x}},{key:"DATE_FULL",get:function(){return C}},{key:"DATE_HUGE",get:function(){return F}},{key:"TIME_SIMPLE",get:function(){return Z}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return z}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return j}},{key:"TIME_24_WITH_SECONDS",get:function(){return q}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return H}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return U}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return P}},{key:"DATETIME_MED",get:function(){return W}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return J}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return Y}},{key:"DATETIME_FULL",get:function(){return G}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return $}},{key:"DATETIME_HUGE",get:function(){return B}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Q}}]),e})();function Pr(e){if(Rr.isDateTime(e))return e;if(e&&e.valueOf&&X(e.valueOf()))return Rr.fromJSDate(e);if(e&&"object"==typeof e)return Rr.fromObject(e);throw new M("Unknown datetime argument: "+e+", of type "+typeof e)}o.DateTime=Rr,o.Duration=Ln,o.FixedOffsetZone=at,o.IANAZone=it,o.Info=An,o.Interval=Zn,o.InvalidZone=ut,o.LocalZone=Qe,o.Settings=yt,o.VERSION="1.28.0",o.Zone=$e},1074,[4]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsStringOrVerificationMethod=e.VerificationMethodTransformer=e.VerificationMethod=void 0,Object.defineProperty(e,"VerificationMethod",{enumerable:!0,get:function(){return r(d[0]).VerificationMethod}}),Object.defineProperty(e,"VerificationMethodTransformer",{enumerable:!0,get:function(){return r(d[1]).VerificationMethodTransformer}}),Object.defineProperty(e,"IsStringOrVerificationMethod",{enumerable:!0,get:function(){return r(d[1]).IsStringOrVerificationMethod}})},1075,[1076,1077]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var p,r=arguments.length,s=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var c=t.length-1;c>=0;c--)(p=t[c])&&(s=(r<3?p(s):r>3?p(i,o,s):p(i,o))||s);return r>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.VerificationMethod=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.type=i.type,this.controller=i.controller,this.publicKeyBase58=i.publicKeyBase58,this.publicKeyBase64=i.publicKeyBase64,this.publicKeyJwk=i.publicKeyJwk,this.publicKeyHex=i.publicKeyHex,this.publicKeyMultibase=i.publicKeyMultibase,this.publicKeyPem=i.publicKeyPem,this.blockchainAccountId=i.blockchainAccountId,this.ethereumAddress=i.ethereumAddress)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"id",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"controller",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyBase58",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyBase64",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyHex",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyMultibase",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"publicKeyPem",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"blockchainAccountId",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"ethereumAddress",void 0),e.VerificationMethod=o},1076,[8,7,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VerificationMethodTransformer=e.IsStringOrVerificationMethod=void 0,e.IsStringOrVerificationMethod=function(n){return(0,r(d[0]).ValidateBy)({name:'isStringOrVerificationMethod',validator:{validate:function(n){return(0,r(d[0]).isString)(n)||(0,r(d[0]).isInstance)(n,r(d[1]).VerificationMethod)},defaultMessage:(0,r(d[0]).buildMessage)(function(n){return n+'$property must be a string or instance of VerificationMethod'},n)}},n)},e.VerificationMethodTransformer=function(){return(0,r(d[2]).Transform)(function(n){var t=n.value,o=n.type;return o===r(d[2]).TransformationType.PLAIN_TO_CLASS?null===t||void 0===t?void 0:t.map(function(n){return'string'==typeof n?String(n):r(d[3]).JsonTransformer.fromJSON(n,r(d[1]).VerificationMethod)}):o===r(d[2]).TransformationType.CLASS_TO_PLAIN?null===t||void 0===t?void 0:t.map(function(n){return'string'==typeof n?n:r(d[3]).JsonTransformer.toJSON(n)}):t})}},1077,[661,1076,626,625]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,p){void 0===p&&(p=o);var y=Object.getOwnPropertyDescriptor(n,o);y&&("get"in y?n.__esModule:!y.writable&&!y.configurable)||(y={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,p,y)}:function(t,n,o,p){void 0===p&&(p=o),t[p]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var p in n)"default"===p||Object.prototype.hasOwnProperty.call(o,p)||t(o,n,p)};Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyDidMappingByVerificationMethod=e.getKeyDidMappingByKeyType=void 0,Object.defineProperty(e,"getKeyDidMappingByKeyType",{enumerable:!0,get:function(){return r(d[0]).getKeyDidMappingByKeyType}}),Object.defineProperty(e,"getKeyDidMappingByVerificationMethod",{enumerable:!0,get:function(){return r(d[0]).getKeyDidMappingByVerificationMethod}}),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1078,[1079,1062,1059,1061,1080,1087]); +__d(function(g,r,i,a,m,e,d){"use strict";var y;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyDidMappingByVerificationMethod=e.getKeyDidMappingByKeyType=void 0;var t=(y={},r(d[0])(y,r(d[1]).KeyType.Ed25519,r(d[2]).keyDidEd25519),r(d[0])(y,r(d[1]).KeyType.X25519,r(d[3]).keyDidX25519),r(d[0])(y,r(d[1]).KeyType.Bls12381g1,r(d[4]).keyDidBls12381g1),r(d[0])(y,r(d[1]).KeyType.Bls12381g2,r(d[5]).keyDidBls12381g2),r(d[0])(y,r(d[1]).KeyType.Bls12381g1g2,r(d[6]).keyDidBls12381g1g2),y),p=Object.values(r(d[1]).KeyType).reduce(function(y,p){var n=t[p].supportedVerificationMethodTypes.reduce(function(y,n){return r(d[7])(r(d[7])({},y),r(d[0])({},n,t[p]))},{});return r(d[7])(r(d[7])({},y),n)},{});e.getKeyDidMappingByKeyType=function(y){var p=t[y];if(!p)throw new Error("Unsupported key did from key type '"+y+"'");return p},e.getKeyDidMappingByVerificationMethod=function(y){var t=p[y.type];if(!t)throw new Error("Unsupported key did from verification method type '"+y.type+"'");return t}},1079,[248,989,1080,1087,1059,1062,1061,4]); +__d(function(g,r,i,a,m,e,d){"use strict";function E(E){var _=E.key,I=E.id,t=E.controller;return{id:I,type:e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,controller:t,publicKeyBase58:_.publicKeyBase58}}Object.defineProperty(e,"__esModule",{value:!0}),e.convertPublicKeyToX25519=e.keyDidEd25519=e.getEd25519VerificationMethod=e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020=e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018=void 0,Object.defineProperty(e,"convertPublicKeyToX25519",{enumerable:!0,get:function(){return r(d[0]).convertPublicKeyToX25519}}),e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018='Ed25519VerificationKey2018',e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020='Ed25519VerificationKey2020',e.getEd25519VerificationMethod=E,e.keyDidEd25519={supportedVerificationMethodTypes:[e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020],getVerificationMethods:function(_,I){return[E({id:_+"#"+I.fingerprint,key:I,controller:_})]},getKeyFromVerificationMethod:function(E){if(E.type===e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018&&E.publicKeyBase58)return r(d[1]).Key.fromPublicKeyBase58(E.publicKeyBase58,r(d[2]).KeyType.Ed25519);if(E.type===e.VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020&&E.publicKeyMultibase)return r(d[1]).Key.fromFingerprint(E.publicKeyMultibase);throw new Error('Invalid verification method passed')}}},1080,[1081,991,989]); +__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function r(r){var o=new Float64Array(16);if(r)for(var a=0;a>16&1),t[e-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);var u=t[15]>>16&1;t[14]&=65535,l(n,t,1-u)}for(e=0;e<16;e++)o[2*e]=255&n[e],o[2*e+1]=n[e]>>8}function c(r,o){for(var a=0,t=0;t<32;t++)a|=r[t]^o[t];return(1&a-1>>>8)-1}function y(r,o){var a=new Uint8Array(32),t=new Uint8Array(32);return h(a,r),h(t,o),c(a,t)}function s(r){var o=new Uint8Array(32);return h(o,r),1&o[0]}function M(r,o){for(var a=0;a<16;a++)r[a]=o[2*a]+(o[2*a+1]<<8);r[15]&=32767}function E(r,o,a){for(var t=0;t<16;t++)r[t]=o[t]+a[t]}function w(r,o,a){for(var t=0;t<16;t++)r[t]=o[t]-a[t]}function b(r,o,a){var t,n,e=0,f=0,u=0,i=0,v=0,l=0,h=0,c=0,y=0,s=0,M=0,E=0,w=0,b=0,d=0,A=0,T=0,_=0,U=0,S=0,p=0,G=0,N=0,H=0,K=0,g=0,L=0,m=0,F=0,P=0,R=0,C=a[0],I=a[1],Y=a[2],D=a[3],k=a[4],B=a[5],X=a[6],j=a[7],x=a[8],O=a[9],q=a[10],z=a[11],J=a[12],Q=a[13],V=a[14],W=a[15];e+=(t=o[0])*C,f+=t*I,u+=t*Y,i+=t*D,v+=t*k,l+=t*B,h+=t*X,c+=t*j,y+=t*x,s+=t*O,M+=t*q,E+=t*z,w+=t*J,b+=t*Q,d+=t*V,A+=t*W,f+=(t=o[1])*C,u+=t*I,i+=t*Y,v+=t*D,l+=t*k,h+=t*B,c+=t*X,y+=t*j,s+=t*x,M+=t*O,E+=t*q,w+=t*z,b+=t*J,d+=t*Q,A+=t*V,T+=t*W,u+=(t=o[2])*C,i+=t*I,v+=t*Y,l+=t*D,h+=t*k,c+=t*B,y+=t*X,s+=t*j,M+=t*x,E+=t*O,w+=t*q,b+=t*z,d+=t*J,A+=t*Q,T+=t*V,_+=t*W,i+=(t=o[3])*C,v+=t*I,l+=t*Y,h+=t*D,c+=t*k,y+=t*B,s+=t*X,M+=t*j,E+=t*x,w+=t*O,b+=t*q,d+=t*z,A+=t*J,T+=t*Q,_+=t*V,U+=t*W,v+=(t=o[4])*C,l+=t*I,h+=t*Y,c+=t*D,y+=t*k,s+=t*B,M+=t*X,E+=t*j,w+=t*x,b+=t*O,d+=t*q,A+=t*z,T+=t*J,_+=t*Q,U+=t*V,S+=t*W,l+=(t=o[5])*C,h+=t*I,c+=t*Y,y+=t*D,s+=t*k,M+=t*B,E+=t*X,w+=t*j,b+=t*x,d+=t*O,A+=t*q,T+=t*z,_+=t*J,U+=t*Q,S+=t*V,p+=t*W,h+=(t=o[6])*C,c+=t*I,y+=t*Y,s+=t*D,M+=t*k,E+=t*B,w+=t*X,b+=t*j,d+=t*x,A+=t*O,T+=t*q,_+=t*z,U+=t*J,S+=t*Q,p+=t*V,G+=t*W,c+=(t=o[7])*C,y+=t*I,s+=t*Y,M+=t*D,E+=t*k,w+=t*B,b+=t*X,d+=t*j,A+=t*x,T+=t*O,_+=t*q,U+=t*z,S+=t*J,p+=t*Q,G+=t*V,N+=t*W,y+=(t=o[8])*C,s+=t*I,M+=t*Y,E+=t*D,w+=t*k,b+=t*B,d+=t*X,A+=t*j,T+=t*x,_+=t*O,U+=t*q,S+=t*z,p+=t*J,G+=t*Q,N+=t*V,H+=t*W,s+=(t=o[9])*C,M+=t*I,E+=t*Y,w+=t*D,b+=t*k,d+=t*B,A+=t*X,T+=t*j,_+=t*x,U+=t*O,S+=t*q,p+=t*z,G+=t*J,N+=t*Q,H+=t*V,K+=t*W,M+=(t=o[10])*C,E+=t*I,w+=t*Y,b+=t*D,d+=t*k,A+=t*B,T+=t*X,_+=t*j,U+=t*x,S+=t*O,p+=t*q,G+=t*z,N+=t*J,H+=t*Q,K+=t*V,g+=t*W,E+=(t=o[11])*C,w+=t*I,b+=t*Y,d+=t*D,A+=t*k,T+=t*B,_+=t*X,U+=t*j,S+=t*x,p+=t*O,G+=t*q,N+=t*z,H+=t*J,K+=t*Q,g+=t*V,L+=t*W,w+=(t=o[12])*C,b+=t*I,d+=t*Y,A+=t*D,T+=t*k,_+=t*B,U+=t*X,S+=t*j,p+=t*x,G+=t*O,N+=t*q,H+=t*z,K+=t*J,g+=t*Q,L+=t*V,m+=t*W,b+=(t=o[13])*C,d+=t*I,A+=t*Y,T+=t*D,_+=t*k,U+=t*B,S+=t*X,p+=t*j,G+=t*x,N+=t*O,H+=t*q,K+=t*z,g+=t*J,L+=t*Q,m+=t*V,F+=t*W,d+=(t=o[14])*C,A+=t*I,T+=t*Y,_+=t*D,U+=t*k,S+=t*B,p+=t*X,G+=t*j,N+=t*x,H+=t*O,K+=t*q,g+=t*z,L+=t*J,m+=t*Q,F+=t*V,P+=t*W,A+=(t=o[15])*C,f+=38*(_+=t*Y),u+=38*(U+=t*D),i+=38*(S+=t*k),v+=38*(p+=t*B),l+=38*(G+=t*X),h+=38*(N+=t*j),c+=38*(H+=t*x),y+=38*(K+=t*O),s+=38*(g+=t*q),M+=38*(L+=t*z),E+=38*(m+=t*J),w+=38*(F+=t*Q),b+=38*(P+=t*V),d+=38*(R+=t*W),e=(t=(e+=38*(T+=t*I))+(n=1)+65535)-65536*(n=Math.floor(t/65536)),f=(t=f+n+65535)-65536*(n=Math.floor(t/65536)),u=(t=u+n+65535)-65536*(n=Math.floor(t/65536)),i=(t=i+n+65535)-65536*(n=Math.floor(t/65536)),v=(t=v+n+65535)-65536*(n=Math.floor(t/65536)),l=(t=l+n+65535)-65536*(n=Math.floor(t/65536)),h=(t=h+n+65535)-65536*(n=Math.floor(t/65536)),c=(t=c+n+65535)-65536*(n=Math.floor(t/65536)),y=(t=y+n+65535)-65536*(n=Math.floor(t/65536)),s=(t=s+n+65535)-65536*(n=Math.floor(t/65536)),M=(t=M+n+65535)-65536*(n=Math.floor(t/65536)),E=(t=E+n+65535)-65536*(n=Math.floor(t/65536)),w=(t=w+n+65535)-65536*(n=Math.floor(t/65536)),b=(t=b+n+65535)-65536*(n=Math.floor(t/65536)),d=(t=d+n+65535)-65536*(n=Math.floor(t/65536)),A=(t=A+n+65535)-65536*(n=Math.floor(t/65536)),e=(t=(e+=n-1+37*(n-1))+(n=1)+65535)-65536*(n=Math.floor(t/65536)),f=(t=f+n+65535)-65536*(n=Math.floor(t/65536)),u=(t=u+n+65535)-65536*(n=Math.floor(t/65536)),i=(t=i+n+65535)-65536*(n=Math.floor(t/65536)),v=(t=v+n+65535)-65536*(n=Math.floor(t/65536)),l=(t=l+n+65535)-65536*(n=Math.floor(t/65536)),h=(t=h+n+65535)-65536*(n=Math.floor(t/65536)),c=(t=c+n+65535)-65536*(n=Math.floor(t/65536)),y=(t=y+n+65535)-65536*(n=Math.floor(t/65536)),s=(t=s+n+65535)-65536*(n=Math.floor(t/65536)),M=(t=M+n+65535)-65536*(n=Math.floor(t/65536)),E=(t=E+n+65535)-65536*(n=Math.floor(t/65536)),w=(t=w+n+65535)-65536*(n=Math.floor(t/65536)),b=(t=b+n+65535)-65536*(n=Math.floor(t/65536)),d=(t=d+n+65535)-65536*(n=Math.floor(t/65536)),A=(t=A+n+65535)-65536*(n=Math.floor(t/65536)),e+=n-1+37*(n-1),r[0]=e,r[1]=f,r[2]=u,r[3]=i,r[4]=v,r[5]=l,r[6]=h,r[7]=c,r[8]=y,r[9]=s,r[10]=M,r[11]=E,r[12]=w,r[13]=b,r[14]=d,r[15]=A}function d(r,o){b(r,o,o)}function A(o,a){var t,n=r();for(t=0;t<16;t++)n[t]=a[t];for(t=253;t>=0;t--)d(n,n),2!==t&&4!==t&&b(n,n,a);for(t=0;t<16;t++)o[t]=n[t]}function T(o,a){var t,n=r();for(t=0;t<16;t++)n[t]=a[t];for(t=250;t>=0;t--)d(n,n),1!==t&&b(n,n,a);for(t=0;t<16;t++)o[t]=n[t]}function _(o,a){var t=r(),e=r(),f=r(),u=r(),i=r(),v=r(),l=r(),h=r(),c=r();w(t,o[1],o[0]),w(c,a[1],a[0]),b(t,t,c),E(e,o[0],o[1]),E(c,a[0],a[1]),b(e,e,c),b(f,o[3],a[3]),b(f,f,n),b(u,o[2],a[2]),E(u,u,u),w(i,e,t),w(v,u,f),E(l,u,f),E(h,e,t),b(o[0],i,v),b(o[1],h,l),b(o[2],l,v),b(o[3],i,h)}function U(r,o,a){for(var t=0;t<4;t++)l(r[t],o[t],a)}function S(o,a){var t=r(),n=r(),e=r();A(e,a[2]),b(t,a[0],e),b(n,a[1],e),h(o,n),o[31]^=s(t)<<7}function p(r,t,n){i(r[0],o),i(r[1],a),i(r[2],a),i(r[3],o);for(var e=255;e>=0;--e){var f=n[e/8|0]>>(7&e)&1;U(r,t,f),_(t,r),_(r,r),U(r,t,f)}}function G(o,t){var n=[r(),r(),r(),r()];i(n[0],e),i(n[1],f),i(n[2],a),b(n[3],e,f),p(o,n,t)}function N(o){if(o.length!==_e.SEED_LENGTH)throw new Error("ed25519: seed must be "+_e.SEED_LENGTH+" bytes");var a=_r(_d[0]).hash(o);a[0]&=248,a[31]&=127,a[31]|=64;var t=new Uint8Array(32),n=[r(),r(),r(),r()];G(n,a),S(t,n);var e=new Uint8Array(64);return e.set(o),e.set(t,32),{publicKey:t,secretKey:e}}_e.generateKeyPairFromSeed=N,_e.generateKeyPair=function(r){var o=_r(_d[1]).randomBytes(32,r),a=N(o);return _r(_d[2]).wipe(o),a},_e.extractPublicKeyFromSecretKey=function(r){if(r.length!==_e.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+_e.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(r.subarray(32))};var H=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function K(r,o){var a,t,n,e;for(t=63;t>=32;--t){for(a=0,n=t-32,e=t-12;n>4)*H[n],a=o[n]>>8,o[n]&=255;for(n=0;n<32;n++)o[n]-=a*H[n];for(t=0;t<32;t++)o[t+1]+=o[t]>>8,r[t]=255&o[t]}function g(r){for(var o=new Float64Array(64),a=0;a<64;a++)o[a]=r[a];for(a=0;a<64;a++)r[a]=0;K(r,o)}function L(n,e){var f=r(),v=r(),l=r(),h=r(),c=r(),A=r(),_=r();return i(n[2],a),M(n[1],e),d(l,n[1]),b(h,l,t),w(l,l,n[2]),E(h,n[2],h),d(c,h),d(A,c),b(_,A,c),b(f,_,l),b(f,f,h),T(f,f),b(f,f,l),b(f,f,h),b(f,f,h),b(n[0],f,h),d(v,n[0]),b(v,v,h),y(v,l)&&b(n[0],n[0],u),d(v,n[0]),b(v,v,h),y(v,l)?-1:(s(n[0])===e[31]>>7&&w(n[0],o,n[0]),b(n[3],n[0],n[1]),0)}_e.sign=function(o,a){var t=new Float64Array(64),n=[r(),r(),r(),r()],e=_r(_d[0]).hash(o.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;var f=new Uint8Array(64);f.set(e.subarray(32),32);var u=new(_r(_d[0]).SHA512);u.update(f.subarray(32)),u.update(a);var i=u.digest();u.clean(),g(i),G(n,i),S(f,n),u.reset(),u.update(f.subarray(0,32)),u.update(o.subarray(32)),u.update(a);var v=u.digest();g(v);for(var l=0;l<32;l++)t[l]=i[l];for(l=0;l<32;l++)for(var h=0;h<32;h++)t[l+h]+=v[l]*e[h];return K(f.subarray(32),t),f},_e.verify=function(o,a,t){var n=new Uint8Array(32),e=[r(),r(),r(),r()],f=[r(),r(),r(),r()];if(t.length!==_e.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+_e.SIGNATURE_LENGTH+" bytes");if(L(f,o))return!1;var u=new(_r(_d[0]).SHA512);u.update(t.subarray(0,32)),u.update(o),u.update(a);var i=u.digest();return g(i),p(e,f,i),G(f,t.subarray(32)),_(e,f),S(n,e),!c(t,n)},_e.convertPublicKeyToX25519=function(o){var t=[r(),r(),r(),r()];if(L(t,o))throw new Error("Ed25519: invalid public key");var n=r(),e=r(),f=t[1];E(n,a,f),w(e,a,f),A(e,e),b(n,n,e);var u=new Uint8Array(32);return h(u,n),u},_e.convertSecretKeyToX25519=function(r){var o=_r(_d[0]).hash(r.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;var a=new Uint8Array(o.subarray(0,32));return _r(_d[2]).wipe(o),a}},1081,[1082,1083,1000]); +__d(function(g,r,_i,_a,_m,e,_d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var t=(function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){r(_d[0]).wipe(this._buffer),r(_d[0]).wipe(this._tempHi),r(_d[0]).wipe(this._tempLo),this.reset()},t.prototype.update=function(t,i){if(void 0===i&&(i=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var h=0;if(this._bytesHashed+=i,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[h++],i--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(i>=this.blockSize&&(h=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,h,i),i%=this.blockSize);i>0;)this._buffer[this._bufferLength++]=t[h++],i--;return this},t.prototype.finish=function(t){if(!this._finished){var i=this._bytesHashed,h=this._bufferLength,n=i/536870912|0,f=i<<3,a=i%128<112?128:256;this._buffer[h]=128;for(var _=h+1;_0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){r(_d[0]).wipe(t.stateHi),r(_d[0]).wipe(t.stateLo),t.buffer&&r(_d[0]).wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t})();e.SHA512=t;var i=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(t,s,h,n,f,a,_){for(var o,u,b,L,p,H,d,y,c=h[0],w=h[1],S=h[2],v=h[3],E=h[4],A=h[5],I=h[6],l=h[7],m=n[0],B=n[1],U=n[2],k=n[3],z=n[4],G=n[5],O=n[6],T=n[7];_>=128;){for(var C=0;C<16;C++){var K=8*C+a;t[C]=r(_d[1]).readUint32BE(f,K),s[C]=r(_d[1]).readUint32BE(f,K+4)}for(C=0;C<80;C++){var Z,D,N=c,j=w,M=S,P=v,q=E,x=A,F=I,J=m,Q=B,R=U,V=k,W=z,X=G,Y=O;if(p=65535&(u=T),H=u>>>16,d=65535&(o=l),y=o>>>16,p+=65535&(u=(z>>>14|E<<18)^(z>>>18|E<<14)^(E>>>9|z<<23)),H+=u>>>16,d+=65535&(o=(E>>>14|z<<18)^(E>>>18|z<<14)^(z>>>9|E<<23)),y+=o>>>16,p+=65535&(u=z&G^~z&O),H+=u>>>16,d+=65535&(o=E&A^~E&I),y+=o>>>16,o=i[2*C],p+=65535&(u=i[2*C+1]),H+=u>>>16,d+=65535&o,y+=o>>>16,o=t[C%16],H+=(u=s[C%16])>>>16,d+=65535&o,y+=o>>>16,d+=(H+=(p+=65535&u)>>>16)>>>16,p=65535&(u=L=65535&p|H<<16),H=u>>>16,d=65535&(o=b=65535&d|(y+=d>>>16)<<16),y=o>>>16,p+=65535&(u=(m>>>28|c<<4)^(c>>>2|m<<30)^(c>>>7|m<<25)),H+=u>>>16,d+=65535&(o=(c>>>28|m<<4)^(m>>>2|c<<30)^(m>>>7|c<<25)),y+=o>>>16,H+=(u=m&B^m&U^B&U)>>>16,d+=65535&(o=c&w^c&S^w&S),y+=o>>>16,Z=65535&(d+=(H+=(p+=65535&u)>>>16)>>>16)|(y+=d>>>16)<<16,D=65535&p|H<<16,p=65535&(u=V),H=u>>>16,d=65535&(o=P),y=o>>>16,H+=(u=L)>>>16,d+=65535&(o=b),y+=o>>>16,w=N,S=j,v=M,E=P=65535&(d+=(H+=(p+=65535&u)>>>16)>>>16)|(y+=d>>>16)<<16,A=q,I=x,l=F,c=Z,B=J,U=Q,k=R,z=V=65535&p|H<<16,G=W,O=X,T=Y,m=D,C%16==15)for(K=0;K<16;K++)o=t[K],p=65535&(u=s[K]),H=u>>>16,d=65535&o,y=o>>>16,o=t[(K+9)%16],p+=65535&(u=s[(K+9)%16]),H+=u>>>16,d+=65535&o,y+=o>>>16,b=t[(K+1)%16],p+=65535&(u=((L=s[(K+1)%16])>>>1|b<<31)^(L>>>8|b<<24)^(L>>>7|b<<25)),H+=u>>>16,d+=65535&(o=(b>>>1|L<<31)^(b>>>8|L<<24)^b>>>7),y+=o>>>16,b=t[(K+14)%16],H+=(u=((L=s[(K+14)%16])>>>19|b<<13)^(b>>>29|L<<3)^(L>>>6|b<<26))>>>16,d+=65535&(o=(b>>>19|L<<13)^(L>>>29|b<<3)^b>>>6),y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,t[K]=65535&d|y<<16,s[K]=65535&p|H<<16}p=65535&(u=m),H=u>>>16,d=65535&(o=c),y=o>>>16,o=h[0],H+=(u=n[0])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[0]=c=65535&d|y<<16,n[0]=m=65535&p|H<<16,p=65535&(u=B),H=u>>>16,d=65535&(o=w),y=o>>>16,o=h[1],H+=(u=n[1])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[1]=w=65535&d|y<<16,n[1]=B=65535&p|H<<16,p=65535&(u=U),H=u>>>16,d=65535&(o=S),y=o>>>16,o=h[2],H+=(u=n[2])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[2]=S=65535&d|y<<16,n[2]=U=65535&p|H<<16,p=65535&(u=k),H=u>>>16,d=65535&(o=v),y=o>>>16,o=h[3],H+=(u=n[3])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[3]=v=65535&d|y<<16,n[3]=k=65535&p|H<<16,p=65535&(u=z),H=u>>>16,d=65535&(o=E),y=o>>>16,o=h[4],H+=(u=n[4])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[4]=E=65535&d|y<<16,n[4]=z=65535&p|H<<16,p=65535&(u=G),H=u>>>16,d=65535&(o=A),y=o>>>16,o=h[5],H+=(u=n[5])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[5]=A=65535&d|y<<16,n[5]=G=65535&p|H<<16,p=65535&(u=O),H=u>>>16,d=65535&(o=I),y=o>>>16,o=h[6],H+=(u=n[6])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[6]=I=65535&d|y<<16,n[6]=O=65535&p|H<<16,p=65535&(u=T),H=u>>>16,d=65535&(o=l),y=o>>>16,o=h[7],H+=(u=n[7])>>>16,d+=65535&o,y+=o>>>16,y+=(d+=(H+=(p+=65535&u)>>>16)>>>16)>>>16,h[7]=l=65535&d|y<<16,n[7]=T=65535&p|H<<16,a+=128,_-=128}return a}e.hash=function(i){var s=new t;s.update(i);var h=s.digest();return s.clean(),h}},1082,[1000,1001]); +__d(function(g,r,_i,a,m,e,d){"use strict";function o(o,t){return void 0===t&&(t=e.defaultRandomSource),t.randomBytes(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.defaultRandomSource=new(r(d[0]).SystemRandomSource),e.randomBytes=o,e.randomUint32=function(t){void 0===t&&(t=e.defaultRandomSource);var n=o(4,t),i=r(d[1]).readUint32LE(n);return r(d[2]).wipe(n),i};var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function n(n,i,u){if(void 0===i&&(i=t),void 0===u&&(u=e.defaultRandomSource),i.length<2)throw new Error("randomString charset is too short");if(i.length>256)throw new Error("randomString charset is too long");for(var c='',l=i.length,f=256-256%l;n>0;){for(var h=o(Math.ceil(256*n/f),u),v=0;v0;v++){var s=h[v];s=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(d[1])(this,e),this.registry=void 0,this.cache=void 0,this.registry=n,this.cache=!0===o.cache?i():o.cache||u,o.legacyResolvers&&Object.keys(o.legacyResolvers).map(function(e){t.registry[e]||(t.registry[e]=v(o.legacyResolvers[e]))})}return r(d[2])(e,[{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n=this,o=s(e);if(null===o)return Promise.resolve(r(d[0])({},l,{didResolutionMetadata:{error:'invalidDid'}}));var i=n.registry[o.method];return i?Promise.resolve(n.cache(o,function(){return i(o.did,o,n,t)})):Promise.resolve(r(d[0])({},l,{didResolutionMetadata:{error:'unsupportedDidMethod'}}))}catch(e){return Promise.reject(e)}}}]),e})();_e.Resolver=f,_e.inMemoryCache=i,_e.noCache=u,_e.parse=s,_e.wrapLegacyResolver=v},1090,[4,7,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,u=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var c=n&&n.prototype instanceof w?n:w,s=Object.create(c.prototype),l=new R(i||[]);return u(s,"_invoke",{value:O(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};h(L,s,function(){return this});var E=Object.getPrototypeOf,k=E&&E(E(G([])));k&&k!==o&&i.call(k,s)&&(L=k);var _=x.prototype=w.prototype=Object.create(L);function M(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function D(t,n){function o(u,c,s,l){var f=v(t[u],t,c);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var c;u(this,"_invoke",{value:function(t,i){function u(){return new n(function(n,u){o(t,i,n,u)})}return c=c?c.then(u,u):u()}})}function O(t,n,o){var i="suspendedStart";return function(u,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===u)throw c;return N()}for(o.method=u,o.arg=c;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var u=v(i,t.iterator,n.arg);if("throw"===u.type)return n.method="throw",n.arg=u.arg,n.delegate=null,y;var c=u.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function n(){for(;++o=0;--u){var c=this.tryEntries[u],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),f=i.call(c,"finallyLoc");if(l&&f){if(this.prev=0;--o){var u=this.tryEntries[o];if(u.tryLoc<=this.prev&&i.call(u,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var u=i.arg;P(o)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDidRegistrar=void 0;var n=(function(){function n(){r(d[0])(this,n),this.supportedMethods=['key']}return r(d[1])(n,[{key:"create",value:function(n,o){var i,u,c,s,l,f,h,p;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(c=n.dependencyManager.resolve(r(d[2]).DidRepository),s=o.options.keyType,l=null===(i=o.secret)||void 0===i?void 0:i.seed,s){v.next=5;break}return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Missing key type'}});case 5:if(!l||'string'==typeof l&&32===l.length){v.next=7;break}return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 7:return v.prev=7,v.next=10,t().awrap(n.wallet.createKey({keyType:s,seed:l}));case 10:return f=v.sent,h=new(r(d[3]).DidKey)(f),p=new(r(d[2]).DidRecord)({did:h.did,role:r(d[4]).DidDocumentRole.Created}),v.next=15,t().awrap(c.save(n,p));case 15:return v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'finished',did:h.did,didDocument:h.didDocument,secret:{seed:null===(u=o.secret)||void 0===u?void 0:u.seed}}});case 18:return v.prev=18,v.t0=v.catch(7),v.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknownError: "+v.t0.message}});case 21:case"end":return v.stop()}},null,null,[[7,18]],Promise)}},{key:"update",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notSupported: cannot update did:key did"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notSupported: cannot deactivate did:key did"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();e.KeyDidRegistrar=n},1091,[7,8,1092,987,1098]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1092,[1093,1094]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(c=(o<3?r(c):o>3?r(t,i,c):r(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidRepository=void 0;var r=(function(t){_r(_d[2])(o,t);var i,n,r=(i=o,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),r.call(this,_r(_d[4]).DidRecord,e,t)}return _r(_d[5])(o,[{key:"findReceivedDidByRecipientKey",value:function(e,t){return this.findSingleByQuery(e,{recipientKeyFingerprints:[t.fingerprint],role:_r(_d[6]).DidDocumentRole.Received})}},{key:"findCreatedDidByRecipientKey",value:function(e,t){return this.findSingleByQuery(e,{recipientKeyFingerprints:[t.fingerprint],role:_r(_d[6]).DidDocumentRole.Created})}},{key:"findAllByRecipientKey",value:function(e,t){return this.findByQuery(e,{recipientKeyFingerprints:[t.fingerprint]})}},{key:"findAllByDid",value:function(e,t){return this.findByQuery(e,{did:t})}},{key:"findReceivedDid",value:function(e,t){return this.findSingleByQuery(e,{did:t,role:_r(_d[6]).DidDocumentRole.Received})}},{key:"findCreatedDid",value:function(e,t){return this.findSingleByQuery(e,{did:t,role:_r(_d[6]).DidDocumentRole.Created})}},{key:"getCreatedDids",value:function(e,t){var i=t.method;return this.findByQuery(e,{role:_r(_d[6]).DidDocumentRole.Created,method:i})}}]),o})(_r(_d[7]).Repository);r=t([(0,_r(_d[8]).injectable)(),n(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),i("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],r),_e.DidRepository=r},1093,[14,11,9,7,1094,8,1098,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length,d=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,o);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(d=(n<3?r(d):n>3?r(t,i,d):r(t,i))||d);return n>3&&d&&Object.defineProperty(t,i,d),d},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidRecord=void 0;var o=(function(t){_r(_d[2])(n,t);var i,o,r=(i=n,o=e(),function(){var e,t=_r(_d[0])(i);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t,i,o,d;return _r(_d[3])(this,n),(t=r.call(this)).type=n.type,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:(0,_r(_d[4]).uuid)(),t.did=e.did,t.role=e.role,t.didDocument=e.didDocument,t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t._tags=null!==(d=e.tags)&&void 0!==d?d:{}),t}return _r(_d[5])(n,[{key:"getTags",value:function(){var e=(0,_r(_d[6]).parseDid)(this.did),t=this.metadata.get(_r(_d[7]).DidRecordMetadataKeys.LegacyDid);return _r(_d[8])(_r(_d[8])({},this._tags),{role:this.role,method:e.method,legacyUnqualifiedDid:null===t||void 0===t?void 0:t.unqualifiedDid,did:this.did,methodSpecificIdentifier:e.id})}}]),n})(_r(_d[9]).BaseRecord);o.type='DidRecord',t([(0,_r(_d[10]).Type)(function(){return _r(_d[11]).DidDocument}),(0,_r(_d[12]).ValidateNested)(),i("design:type",_r(_d[11]).DidDocument)],o.prototype,"didDocument",void 0),t([(0,_r(_d[12]).IsEnum)(_r(_d[13]).DidDocumentRole),i("design:type",String)],o.prototype,"role",void 0),_e.DidRecord=o},1094,[14,11,9,7,952,8,1089,1095,4,1096,626,1097,661,1098]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidRecordMetadataKeys=void 0,(function(t){t.LegacyDid="_internal/legacyDid"})(e.DidRecordMetadataKeys||(e.DidRecordMetadataKeys={}))},1095,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,n){var i,s=arguments.length,c=s<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,r,n);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(c=(s<3?i(c):s>3?i(o,r,c):i(o,r))||c);return s>3&&c&&Object.defineProperty(o,r,c),c},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseRecord=void 0;var r=(function(){function t(){_r(_d[0])(this,t),this._tags={},this.type=t.type,this.metadata=new(_r(_d[1]).Metadata)({})}return _r(_d[2])(t,[{key:"setTag",value:function(t,o){this._tags[t]=o}},{key:"getTag",value:function(t){return this.getTags()[t]}},{key:"setTags",value:function(t){this._tags=_r(_d[3])(_r(_d[3])({},this._tags),t)}},{key:"replaceTags",value:function(t){this._tags=t}},{key:"toJSON",value:function(){return _r(_d[4]).JsonTransformer.toJSON(this)}}]),t})();r.type='BaseRecord',t([(0,_r(_d[5]).DateTransformer)(),o("design:type",Date)],r.prototype,"createdAt",void 0),t([(0,_r(_d[5]).DateTransformer)(),o("design:type",Date)],r.prototype,"updatedAt",void 0),t([(0,_r(_d[6]).Exclude)(),o("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[5]).MetadataTransformer)(),o("design:type",_r(_d[1]).Metadata)],r.prototype,"metadata",void 0),e.BaseRecord=r},1096,[7,1073,8,4,625,1072,626]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1097,[1065,1075,1064,1063,1098,1099,1100,1078]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidDocumentRole=void 0,(function(o){o.Created="created",o.Received="received"})(e.DidDocumentRole||(e.DidDocumentRole={}))},1098,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1099,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1100,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1101,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Repository=void 0;var t=(function(){function t(n,s,u){r(d[0])(this,t),this.storageService=s,this.recordClass=n,this.eventEmitter=u}return r(d[1])(t,[{key:"save",value:function(t,n){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.storageService.save(t,n));case 2:s=r(d[3]).JsonTransformer.clone(n),this.eventEmitter.emit(t,{type:r(d[4]).RepositoryEventTypes.RecordSaved,payload:{record:s}});case 4:case"end":return u.stop()}},null,this,null,Promise)}},{key:"update",value:function(t,n){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.storageService.update(t,n));case 2:s=r(d[3]).JsonTransformer.clone(n),this.eventEmitter.emit(t,{type:r(d[4]).RepositoryEventTypes.RecordUpdated,payload:{record:s}});case 4:case"end":return u.stop()}},null,this,null,Promise)}},{key:"delete",value:function(t,n){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.storageService.delete(t,n));case 2:s=r(d[3]).JsonTransformer.clone(n),this.eventEmitter.emit(t,{type:r(d[4]).RepositoryEventTypes.RecordDeleted,payload:{record:s}});case 4:case"end":return u.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[2]).awrap(this.storageService.deleteById(t,this.recordClass,n));case 2:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.storageService.getById(t,this.recordClass,n));case 1:case"end":return s.stop()}},null,this,null,Promise)}},{key:"findById",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,r(d[2]).awrap(this.storageService.getById(t,this.recordClass,n));case 3:return s.abrupt("return",s.sent);case 6:if(s.prev=6,s.t0=s.catch(0),!(s.t0 instanceof r(d[5]).RecordNotFoundError)){s.next=10;break}return s.abrupt("return",null);case 10:throw s.t0;case 11:case"end":return s.stop()}},null,this,[[0,6]],Promise)}},{key:"getAll",value:function(t){return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.storageService.getAll(t,this.recordClass));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findByQuery",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.storageService.findByQuery(t,this.recordClass,n));case 1:case"end":return s.stop()}},null,this,null,Promise)}},{key:"findSingleByQuery",value:function(t,n){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.findByQuery(t,n));case 2:if(!((s=u.sent).length>1)){u.next=5;break}throw new(r(d[5]).RecordDuplicateError)("Multiple records found for given query '"+JSON.stringify(n)+"'",{recordType:this.recordClass.type});case 5:if(!(s.length<1)){u.next=7;break}return u.abrupt("return",null);case 7:return u.abrupt("return",s[0]);case 8:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getSingleByQuery",value:function(t,n){var s;return r(d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[2]).awrap(this.findSingleByQuery(t,n));case 2:if(s=u.sent){u.next=5;break}throw new(r(d[5]).RecordNotFoundError)("No record found for given query '"+JSON.stringify(n)+"'",{recordType:this.recordClass.type});case 5:return u.abrupt("return",s);case 6:case"end":return u.stop()}},null,this,null,Promise)}}]),t})();e.Repository=t},1102,[7,8,82,626,1103,612]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepositoryEventTypes=void 0,(function(o){o.RecordSaved="RecordSaved",o.RecordUpdated="RecordUpdated",o.RecordDeleted="RecordDeleted"})(e.RepositoryEventTypes||(e.RepositoryEventTypes={}))},1103,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DID_COMM_TRANSPORT_QUEUE=e.InjectionSymbols=void 0,e.InjectionSymbols={MessageRepository:Symbol('MessageRepository'),StorageService:Symbol('StorageService'),Logger:Symbol('Logger'),AgentContextProvider:Symbol('AgentContextProvider'),AgentDependencies:Symbol('AgentDependencies'),Stop$:Symbol('Stop$'),FileSystem:Symbol('FileSystem'),Wallet:Symbol('Wallet')},e.DID_COMM_TRANSPORT_QUEUE='didcomm:transport/queue'},1104,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,o){var r,c=arguments.length,f=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,n,i,o);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(f=(c<3?r(f):c>3?r(n,i,f):r(n,i))||f);return c>3&&f&&Object.defineProperty(n,i,f),f},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},i=this&&this.__param||function(t,n){return function(i,o){n(i,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var o=(function(){function t(n,i){_r(_d[0])(this,t),this.eventEmitter=new n.EventEmitterClass,this.stop$=i}return _r(_d[1])(t,[{key:"emit",value:function(t,n){this.eventEmitter.emit(n.type,_r(_d[2])(_r(_d[2])({},n),{metadata:{contextCorrelationId:t.contextCorrelationId}}))}},{key:"on",value:function(t,n){this.eventEmitter.on(t,n)}},{key:"off",value:function(t,n){this.eventEmitter.off(t,n)}},{key:"observable",value:function(t){var n=this;return(0,_r(_d[3]).fromEventPattern)(function(i){return n.on(t,i)},function(i){return n.off(t,i)}).pipe((0,_r(_d[4]).takeUntil)(this.stop$))}}]),t})();o=t([(0,_r(_d[5]).injectable)(),i(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.AgentDependencies)),i(1,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Stop$)),n("design:paramtypes",[Object,_r(_d[3]).Subject])],o),e.EventEmitter=o},1105,[7,8,4,1106,1329,1020,1104]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u),Object.defineProperty(t,o,{enumerable:!0,get:function(){return n[u]}})}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),n=this&&this.__exportStar||function(n,u){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(u,o)||t(u,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0,Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return r(d[0]).Observable}}),Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return r(d[1]).ConnectableObservable}}),Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return r(d[2]).observable}}),Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return r(d[3]).animationFrames}}),Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return r(d[4]).Subject}}),Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return r(d[5]).BehaviorSubject}}),Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return r(d[6]).ReplaySubject}}),Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return r(d[7]).AsyncSubject}}),Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return r(d[8]).asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return r(d[8]).asapScheduler}}),Object.defineProperty(e,"async",{enumerable:!0,get:function(){return r(d[9]).async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return r(d[9]).asyncScheduler}}),Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return r(d[10]).queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return r(d[10]).queueScheduler}}),Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return r(d[11]).animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return r(d[11]).animationFrameScheduler}}),Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return r(d[12]).VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return r(d[12]).VirtualAction}}),Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return r(d[13]).Scheduler}}),Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return r(d[14]).Subscription}}),Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return r(d[15]).Subscriber}}),Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return r(d[16]).Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return r(d[16]).NotificationKind}}),Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return r(d[17]).pipe}}),Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(d[18]).noop}}),Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(d[19]).identity}}),Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return r(d[20]).isObservable}}),Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return r(d[21]).lastValueFrom}}),Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return r(d[22]).firstValueFrom}}),Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return r(d[23]).ArgumentOutOfRangeError}}),Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return r(d[24]).EmptyError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return r(d[25]).NotFoundError}}),Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return r(d[26]).ObjectUnsubscribedError}}),Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return r(d[27]).SequenceError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return r(d[28]).TimeoutError}}),Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return r(d[29]).UnsubscriptionError}}),Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return r(d[30]).bindCallback}}),Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return r(d[31]).bindNodeCallback}}),Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return r(d[32]).combineLatest}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r(d[33]).concat}}),Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return r(d[34]).connectable}}),Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return r(d[35]).defer}}),Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return r(d[36]).empty}}),Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return r(d[37]).forkJoin}}),Object.defineProperty(e,"from",{enumerable:!0,get:function(){return r(d[38]).from}}),Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return r(d[39]).fromEvent}}),Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return r(d[40]).fromEventPattern}}),Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return r(d[41]).generate}}),Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return r(d[42]).iif}}),Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(d[43]).interval}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return r(d[44]).merge}}),Object.defineProperty(e,"never",{enumerable:!0,get:function(){return r(d[45]).never}}),Object.defineProperty(e,"of",{enumerable:!0,get:function(){return r(d[46]).of}}),Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return r(d[47]).onErrorResumeNext}}),Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return r(d[48]).pairs}}),Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return r(d[49]).partition}}),Object.defineProperty(e,"race",{enumerable:!0,get:function(){return r(d[50]).race}}),Object.defineProperty(e,"range",{enumerable:!0,get:function(){return r(d[51]).range}}),Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return r(d[52]).throwError}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return r(d[53]).timer}}),Object.defineProperty(e,"using",{enumerable:!0,get:function(){return r(d[54]).using}}),Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return r(d[55]).zip}}),Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return r(d[56]).scheduled}}),Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return r(d[36]).EMPTY}}),Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return r(d[45]).NEVER}}),n(r(d[57]),e),Object.defineProperty(e,"config",{enumerable:!0,get:function(){return r(d[58]).config}}),Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return r(d[59]).audit}}),Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r(d[60]).auditTime}}),Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return r(d[61]).buffer}}),Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return r(d[62]).bufferCount}}),Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return r(d[63]).bufferTime}}),Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return r(d[64]).bufferToggle}}),Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return r(d[65]).bufferWhen}}),Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return r(d[66]).catchError}}),Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return r(d[67]).combineAll}}),Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return r(d[68]).combineLatestAll}}),Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return r(d[69]).combineLatestWith}}),Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return r(d[70]).concatAll}}),Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return r(d[71]).concatMap}}),Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return r(d[72]).concatMapTo}}),Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return r(d[73]).concatWith}}),Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return r(d[74]).connect}}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return r(d[75]).count}}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(d[76]).debounce}}),Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return r(d[77]).debounceTime}}),Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return r(d[78]).defaultIfEmpty}}),Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return r(d[79]).delay}}),Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return r(d[80]).delayWhen}}),Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return r(d[81]).dematerialize}}),Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return r(d[82]).distinct}}),Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return r(d[83]).distinctUntilChanged}}),Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return r(d[84]).distinctUntilKeyChanged}}),Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return r(d[85]).elementAt}}),Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return r(d[86]).endWith}}),Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(d[87]).every}}),Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return r(d[88]).exhaust}}),Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return r(d[89]).exhaustAll}}),Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return r(d[90]).exhaustMap}}),Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return r(d[91]).expand}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(d[92]).filter}}),Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return r(d[93]).finalize}}),Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(d[94]).find}}),Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(d[95]).findIndex}}),Object.defineProperty(e,"first",{enumerable:!0,get:function(){return r(d[96]).first}}),Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(d[97]).groupBy}}),Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return r(d[98]).ignoreElements}}),Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(d[99]).isEmpty}}),Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(d[100]).last}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(d[101]).map}}),Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return r(d[102]).mapTo}}),Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return r(d[103]).materialize}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(d[104]).max}}),Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return r(d[105]).mergeAll}}),Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return r(d[106]).flatMap}}),Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return r(d[107]).mergeMap}}),Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return r(d[108]).mergeMapTo}}),Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return r(d[109]).mergeScan}}),Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return r(d[110]).mergeWith}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(d[111]).min}}),Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return r(d[112]).multicast}}),Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return r(d[113]).observeOn}}),Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return r(d[114]).pairwise}}),Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return r(d[115]).pluck}}),Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return r(d[116]).publish}}),Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return r(d[117]).publishBehavior}}),Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return r(d[118]).publishLast}}),Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return r(d[119]).publishReplay}}),Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return r(d[120]).raceWith}}),Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d[121]).reduce}}),Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return r(d[122]).repeat}}),Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return r(d[123]).repeatWhen}}),Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return r(d[124]).retry}}),Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return r(d[125]).retryWhen}}),Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return r(d[126]).refCount}}),Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return r(d[127]).sample}}),Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return r(d[128]).sampleTime}}),Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return r(d[129]).scan}}),Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return r(d[130]).sequenceEqual}}),Object.defineProperty(e,"share",{enumerable:!0,get:function(){return r(d[131]).share}}),Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return r(d[132]).shareReplay}}),Object.defineProperty(e,"single",{enumerable:!0,get:function(){return r(d[133]).single}}),Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return r(d[134]).skip}}),Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return r(d[135]).skipLast}}),Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return r(d[136]).skipUntil}}),Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return r(d[137]).skipWhile}}),Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return r(d[138]).startWith}}),Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return r(d[139]).subscribeOn}}),Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return r(d[140]).switchAll}}),Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return r(d[141]).switchMap}}),Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return r(d[142]).switchMapTo}}),Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return r(d[143]).switchScan}}),Object.defineProperty(e,"take",{enumerable:!0,get:function(){return r(d[144]).take}}),Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return r(d[145]).takeLast}}),Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return r(d[146]).takeUntil}}),Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return r(d[147]).takeWhile}}),Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return r(d[148]).tap}}),Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(d[149]).throttle}}),Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return r(d[150]).throttleTime}}),Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return r(d[151]).throwIfEmpty}}),Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return r(d[152]).timeInterval}}),Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(d[28]).timeout}}),Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return r(d[153]).timeoutWith}}),Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return r(d[154]).timestamp}}),Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(d[155]).toArray}}),Object.defineProperty(e,"window",{enumerable:!0,get:function(){return r(d[156]).window}}),Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return r(d[157]).windowCount}}),Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return r(d[158]).windowTime}}),Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return r(d[159]).windowToggle}}),Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return r(d[160]).windowWhen}}),Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return r(d[161]).withLatestFrom}}),Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return r(d[162]).zipAll}}),Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return r(d[163]).zipWith}})},1106,[1107,1123,1120,1127,1130,1132,1133,1135,1136,1146,1147,1150,1153,1139,1109,1108,1154,1121,1119,1122,1180,1181,1183,1184,1182,1185,1131,1186,1187,1111,1189,1193,1194,1197,1202,1203,1179,1204,1158,1205,1206,1207,1208,1209,1211,1212,1155,1213,1216,1217,1220,1221,1178,1210,1222,1223,1159,1224,1115,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1239,1198,1241,1242,1243,1245,1247,1248,1249,1250,1251,1252,1256,1257,1258,1259,1260,1262,1263,1264,1265,1266,1267,1218,1268,1269,1270,1271,1272,1254,1273,1274,1192,1255,1276,1277,1199,1278,1200,1279,1280,1281,1283,1284,1171,1285,1286,1287,1288,1289,1290,1291,1237,1292,1293,1294,1295,1126,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1170,1308,1309,1310,1311,1253,1275,1312,1313,1314,1315,1316,1261,1317,1318,1319,1236,1320,1321,1322,1323,1324,1325,1326,1327]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var t=(function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var o=new t;return o.source=this,o.operator=n,o},t.prototype.subscribe=function(t,n,u){var c,s=this,b=(c=t)&&c instanceof r(d[0]).Subscriber||o(c)&&r(d[6]).isSubscription(c)?t:new(r(d[0]).SafeSubscriber)(t,n,u);return r(d[1]).errorContext(function(){var t=s,n=t.operator,o=t.source;b.add(n?n.call(b,o):o?s._subscribe(b):s._trySubscribe(b))}),b},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,o){var u=this;return new(o=n(o))(function(n,o){var c=new(r(d[0]).SafeSubscriber)({next:function(n){try{t(n)}catch(t){o(t),c.unsubscribe()}},error:o,complete:n});u.subscribe(c)})},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[r(d[2]).observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var i,e,o=n.call(r),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(r){e={error:r}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return s},n=this&&this.__spreadArray||function(r,t){for(var n=0,i=t.length,e=r.length;n0)&&!(o=n.next()).done;)u.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return u},r=this&&this.__spreadArray||function(t,r){for(var e=0,o=r.length,i=t.length;e0)&&!(t=o.next()).done;)u.push(t.value)}catch(n){i={error:n}}finally{try{t&&!t.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u},r=this&&this.__spreadArray||function(n,r){for(var e=0,t=r.length,i=n.length;e=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousSubject=e.Subject=void 0;var i=(function(t){function i(){var o=t.call(this)||this;return o.closed=!1,o.currentObservers=null,o.observers=[],o.isStopped=!1,o.hasError=!1,o.thrownError=null,o}return o(i,t),i.prototype.lift=function(t){var o=new s(this,this);return o.operator=t,o},i.prototype._throwIfClosed=function(){if(this.closed)throw new(r(_d[0]).ObjectUnsubscribedError)},i.prototype.next=function(t){var o=this;r(_d[1]).errorContext(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var u=n(o.currentObservers),c=u.next();!c.done;c=u.next()){c.value.next(t)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}}})},i.prototype.error=function(t){var o=this;r(_d[1]).errorContext(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=t;for(var n=o.observers;n.length;)n.shift().error(t)}})},i.prototype.complete=function(){var t=this;r(_d[1]).errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var o=t.observers;o.length;)o.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(o){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,o)},i.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},i.prototype._innerSubscribe=function(t){var o=this,n=this.hasError,i=this.isStopped,s=this.observers;return n||i?r(_d[2]).EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(t),new(r(_d[2]).Subscription)(function(){o.currentObservers=null,r(_d[3]).arrRemove(s,t)}))},i.prototype._checkFinalizedStatuses=function(t){var o=this.hasError,n=this.thrownError,i=this.isStopped;o?t.error(n):i&&t.complete()},i.prototype.asObservable=function(){var t=new(r(_d[4]).Observable);return t.source=this,t},i.create=function(t,o){return new s(t,o)},i})(r(_d[4]).Observable);e.Subject=i;var s=(function(t){function n(o,n){var i=t.call(this)||this;return i.destination=o,i.source=n,i}return o(n,t),n.prototype.next=function(t){var o,n;null===(n=null===(o=this.destination)||void 0===o?void 0:o.next)||void 0===n||n.call(o,t)},n.prototype.error=function(t){var o,n;null===(n=null===(o=this.destination)||void 0===o?void 0:o.error)||void 0===n||n.call(o,t)},n.prototype.complete=function(){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===o||o.call(t)},n.prototype._subscribe=function(t){var o,n;return null!==(n=null===(o=this.source)||void 0===o?void 0:o.subscribe(t))&&void 0!==n?n:r(_d[2]).EMPTY_SUBSCRIPTION},n})(i);e.AnonymousSubject=s},1130,[1131,1116,1109,1113,1107]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0,e.ObjectUnsubscribedError=r(d[0]).createErrorClass(function(s){return function(){s(this),this.name='ObjectUnsubscribedError',this.message='object unsubscribed'}})},1131,[1112]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function u(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(u.prototype=n.prototype,new u)});Object.defineProperty(e,"__esModule",{value:!0}),e.BehaviorSubject=void 0;var n=(function(t){function n(o){var n=t.call(this)||this;return n._value=o,n}return o(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(o){var n=t.prototype._subscribe.call(this,o);return!n.closed&&o.next(this._value),n},n.prototype.getValue=function(){var t=this.hasError,o=this.thrownError,n=this._value;if(t)throw o;return this._throwIfClosed(),n},n.prototype.next=function(o){t.prototype.next.call(this,this._value=o)},n})(r(_d[0]).Subject);e.BehaviorSubject=n},1132,[1130]); -__d(function(g,r,_i,a,m,e,_d){"use strict";var t,i=this&&this.__extends||(t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})(i,n)},function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaySubject=void 0;var n=(function(t){function n(i,n,o){void 0===i&&(i=1/0),void 0===n&&(n=1/0),void 0===o&&(o=r(_d[0]).dateTimestampProvider);var s=t.call(this)||this;return s._bufferSize=i,s._windowTime=n,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,i),s._windowTime=Math.max(1,n),s}return i(n,t),n.prototype.next=function(i){var n=this,o=n.isStopped,s=n._buffer,f=n._infiniteTimeWindow,u=n._timestampProvider,_=n._windowTime;o||(s.push(i),!f&&s.push(u.now()+_)),this._trimBuffer(),t.prototype.next.call(this,i)},n.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this._infiniteTimeWindow,o=this._buffer.slice(),s=0;s0?t.prototype.requestAsyncId.call(this,o,n,c):(o.actions.push(this),o._scheduled||(o._scheduled=r(_d[0]).immediateProvider.setImmediate(o.flush.bind(o,void 0))))},n.prototype.recycleAsyncId=function(o,n,c){if(void 0===c&&(c=0),null!=c&&c>0||null==c&&this.delay>0)return t.prototype.recycleAsyncId.call(this,o,n,c);o.actions.some(function(t){return t.id===n})||(r(_d[0]).immediateProvider.clearImmediate(n),o._scheduled=void 0)},n})(r(_d[1]).AsyncAction);e.AsapAction=n},1140,[1141,1143]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var e=this&&this.__read||function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,o,n=t.call(e),l=[];try{for(;(void 0===r||r-- >0)&&!(i=n.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return l},r=this&&this.__spreadArray||function(e,r){for(var t=0,i=r.length,o=e.length;t0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0?t.prototype.schedule.call(this,o,n):(this.delay=n,this.state=o,this.scheduler.flush(this),this)},n.prototype.execute=function(o,n){return n>0||this.closed?t.prototype.execute.call(this,o,n):this._execute(o,n)},n.prototype.requestAsyncId=function(o,n,u){return void 0===u&&(u=0),null!=u&&u>0||null==u&&this.delay>0?t.prototype.requestAsyncId.call(this,o,n,u):o.flush(this)},n})(r(_d[0]).AsyncAction);e.QueueAction=n},1149,[1143]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0,e.animationFrameScheduler=new(r(d[0]).AnimationFrameScheduler)(r(d[1]).AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},1150,[1151,1152]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var n=(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.flush=function(t){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n,s=this.actions;t=t||s.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=s[0])&&t.id===o&&s.shift());if(this._active=!1,n){for(;(t=s[0])&&t.id===o&&s.shift();)t.unsubscribe();throw n}},n})(r(_d[0]).AsyncScheduler);e.AnimationFrameScheduler=n},1151,[1138]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])})(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameAction=void 0;var o=(function(t){function o(n,o){var c=t.call(this,n,o)||this;return c.scheduler=n,c.work=o,c}return n(o,t),o.prototype.requestAsyncId=function(n,o,c){return void 0===c&&(c=0),null!==c&&c>0?t.prototype.requestAsyncId.call(this,n,o,c):(n.actions.push(this),n._scheduled||(n._scheduled=r(_d[0]).animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},o.prototype.recycleAsyncId=function(n,o,c){if(void 0===c&&(c=0),null!=c&&c>0||null==c&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,o,c);n.actions.some(function(t){return t.id===o})||(r(_d[0]).animationFrameProvider.cancelAnimationFrame(o),n._scheduled=void 0)},o})(r(_d[1]).AsyncAction);e.AnimationFrameAction=o},1152,[1128,1143]); -__d(function(g,r,i,_a2,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])})(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var o=(function(t){function o(n,o){void 0===n&&(n=c),void 0===o&&(o=1/0);var s=t.call(this,n,function(){return s.frame})||this;return s.maxFrames=o,s.frame=0,s.index=-1,s}return n(o,t),o.prototype.flush=function(){for(var t,n,o=this.actions,c=this.maxFrames;(n=o[0])&&n.delay<=c&&(o.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=o.shift();)n.unsubscribe();throw t}},o.frameTimeFactor=10,o})(r(_d[0]).AsyncScheduler);e.VirtualTimeScheduler=o;var c=(function(t){function o(n,o,c){void 0===c&&(c=n.index+=1);var s=t.call(this,n,o)||this;return s.scheduler=n,s.work=o,s.index=c,s.active=!0,s.index=n.index=c,s}return n(o,t),o.prototype.schedule=function(n,c){if(void 0===c&&(c=0),Number.isFinite(c)){if(!this.id)return t.prototype.schedule.call(this,n,c);this.active=!1;var s=new o(this.scheduler,this.work);return this.add(s),s.schedule(n,c)}return r(_d[1]).Subscription.EMPTY},o.prototype.requestAsyncId=function(t,n,c){void 0===c&&(c=0),this.delay=t.frame+c;var s=t.actions;return s.push(this),s.sort(o.sortActions),!0},o.prototype.recycleAsyncId=function(t,n,o){void 0===o&&(o=0)},o.prototype._execute=function(n,o){if(!0===this.active)return t.prototype._execute.call(this,n,o)},o.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},o})(r(_d[2]).AsyncAction);e.VirtualAction=c},1153,[1138,1109,1143]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0,(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var t=(function(){function t(t,o,n){this.kind=t,this.value=o,this.error=n,this.hasValue='N'===t}return t.prototype.observe=function(t){return o(this,t)},t.prototype.do=function(t,o,n){var c=this.kind,u=this.value,l=this.error;return'N'===c?null===t||void 0===t?void 0:t(u):'E'===c?null===o||void 0===o?void 0:o(l):null===n||void 0===n?void 0:n()},t.prototype.accept=function(t,o,n){var c;return r(d[0]).isFunction(null===(c=t)||void 0===c?void 0:c.next)?this.observe(t):this.do(t,o,n)},t.prototype.toObservable=function(){var t=this.kind,o=this.value,n=this.error,c='N'===t?r(d[1]).of(o):'E'===t?r(d[2]).throwError(function(){return n}):'C'===t?r(d[3]).EMPTY:0;if(!c)throw new TypeError("Unexpected notification kind "+t);return c},t.createNext=function(o){return new t('N',o)},t.createError=function(o){return new t('E',void 0,o)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t('C'),t})();function o(t,o){var n,c,u,l=t,f=l.kind,v=l.value,s=l.error;if('string'!=typeof f)throw new TypeError('Invalid notification, missing "kind"');'N'===f?null===(n=o.next)||void 0===n||n.call(o,v):'E'===f?null===(c=o.error)||void 0===c||c.call(o,s):null===(u=o.complete)||void 0===u||u.call(o)}e.Notification=t,e.observeNotification=o},1154,[1110,1155,1178,1179]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.of=void 0,e.of=function(){for(var o=[],t=0;t0&&i[i.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};function i(e){return new(r(_d[0]).Observable)(function(n){var t=e[r(_d[8]).observable]();if(r(_d[9]).isFunction(t.subscribe))return t.subscribe(n);throw new TypeError('Provided object does not correctly implement Symbol.observable')})}function u(e){return new(r(_d[0]).Observable)(function(n){for(var t=0;t0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]1||s(e,t)})})}function s(e,n){try{(r=o[e](n)).value instanceof t?Promise.resolve(r.value.v).then(c,l):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isReadableStreamLike=_e.readableStreamLikeToAsyncGenerator=void 0,_e.readableStreamLikeToAsyncGenerator=function(r){return n(this,arguments,function(){var n,a,o;return e(this,function(e){switch(e.label){case 0:n=r.getReader(),e.label=1;case 1:e.trys.push([1,,9,10]),e.label=2;case 2:return[4,t(n.read())];case 3:return a=e.sent(),o=a.value,a.done?[4,t(void 0)]:[3,5];case 4:return[2,e.sent()];case 5:return[4,t(o)];case 6:return[4,e.sent()];case 7:return e.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})},_e.isReadableStreamLike=function(e){return _r(d[0]).isFunction(null===e||void 0===e?void 0:e.getReader)}},1168,[1110]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createInvalidObservableTypeError=void 0,e.createInvalidObservableTypeError=function(o){return new TypeError("You provided "+(null!==o&&'object'==typeof o?'an invalid object':"'"+o+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1169,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0,e.subscribeOn=function(n,u){return void 0===u&&(u=0),r(d[0]).operate(function(t,c){c.add(n.schedule(function(){return t.subscribe(c)},u))})}},1170,[1124]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0,e.observeOn=function(n,t){return void 0===t&&(t=0),r(d[0]).operate(function(u,c){u.subscribe(r(d[1]).createOperatorSubscriber(c,function(u){return r(d[2]).executeSchedule(c,n,function(){return c.next(u)},t)},function(){return r(d[2]).executeSchedule(c,n,function(){return c.complete()},t)},function(u){return r(d[2]).executeSchedule(c,n,function(){return c.error(u)},t)}))})}},1171,[1124,1125,1172]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.executeSchedule=void 0,e.executeSchedule=function(u,c,t,n,s){void 0===n&&(n=0),void 0===s&&(s=!1);var l=c.schedule(function(){t(),s?u.add(this.schedule(null,n)):this.unsubscribe()},n);if(u.add(l),!s)return l}},1172,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0,e.scheduleArray=function(n,t){return new(r(d[0]).Observable)(function(u){var c=0;return t.schedule(function(){c===n.length?u.complete():(u.next(n[c++]),u.closed||this.schedule())})})}},1173,[1107]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0,e.schedulePromise=function(n,s){return r(d[0]).innerFrom(n).pipe(r(d[1]).subscribeOn(s),r(d[2]).observeOn(s))}},1174,[1162,1170,1171]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAsyncIterable=void 0,e.scheduleAsyncIterable=function(n,t){if(!n)throw new Error('Iterable cannot be null');return new(r(d[0]).Observable)(function(c){r(d[1]).executeSchedule(c,t,function(){var u=n[Symbol.asyncIterator]();r(d[1]).executeSchedule(c,t,function(){u.next().then(function(n){n.done?c.complete():c.next(n.value)})},0,!0)})})}},1175,[1107,1172]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0,e.scheduleIterable=function(t,n){return new(r(d[0]).Observable)(function(u){var c;return r(d[1]).executeSchedule(u,n,function(){c=t[r(d[2]).iterator](),r(d[1]).executeSchedule(u,n,function(){var t,n,o;try{n=(t=c.next()).value,o=t.done}catch(t){return void u.error(t)}o?u.complete():u.next(n)},0,!0)}),function(){return r(d[3]).isFunction(null===c||void 0===c?void 0:c.return)&&c.return()}})}},1176,[1107,1172,1167,1110]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0,e.scheduleReadableStreamLike=function(t,c){return r(d[0]).scheduleAsyncIterable(r(d[1]).readableStreamLikeToAsyncGenerator(t),c)}},1177,[1175,1168]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0,e.throwError=function(n,t){var o=r(d[0]).isFunction(n)?n:function(){return n},u=function(n){return n.error(o())};return new(r(d[1]).Observable)(t?function(n){return t.schedule(u,0,n)}:u)}},1178,[1110,1107]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return new(r(d[0]).Observable)(function(t){return n.schedule(function(){return t.complete()})})}Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0,e.EMPTY=new(r(d[0]).Observable)(function(n){return n.complete()}),e.empty=function(t){return t?n(t):e.EMPTY}},1179,[1107]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObservable=void 0,e.isObservable=function(s){return!!s&&(s instanceof r(d[0]).Observable||r(d[1]).isFunction(s.lift)&&r(d[1]).isFunction(s.subscribe))}},1180,[1107,1110]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0,e.lastValueFrom=function(t,o){var n='object'==typeof o;return new Promise(function(u,c){var l,f=!1;t.subscribe({next:function(t){l=t,f=!0},error:c,complete:function(){f?u(l):n?u(o.defaultValue):c(new(r(d[0]).EmptyError))}})})}},1181,[1182]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyError=void 0,e.EmptyError=r(d[0]).createErrorClass(function(t){return function(){t(this),this.name='EmptyError',this.message='no elements in sequence'}})},1182,[1112]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.firstValueFrom=void 0,e.firstValueFrom=function(t,n){var u='object'==typeof n;return new Promise(function(o,c){var f=new(r(d[0]).SafeSubscriber)({next:function(t){o(t),f.unsubscribe()},error:c,complete:function(){u?o(n.defaultValue):c(new(r(d[1]).EmptyError))}});t.subscribe(f)})}},1183,[1108,1182]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0,e.ArgumentOutOfRangeError=r(d[0]).createErrorClass(function(t){return function(){t(this),this.name='ArgumentOutOfRangeError',this.message='argument out of range'}})},1184,[1112]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotFoundError=void 0,e.NotFoundError=r(d[0]).createErrorClass(function(o){return function(t){o(this),this.name='NotFoundError',this.message=t}})},1185,[1112]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceError=void 0,e.SequenceError=r(d[0]).createErrorClass(function(n){return function(t){n(this),this.name='SequenceError',this.message=t}})},1186,[1112]); -__d(function(g,r,i,a,m,e,d){"use strict";function o(o){throw new e.TimeoutError(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0,e.TimeoutError=r(d[0]).createErrorClass(function(o){return function(u){void 0===u&&(u=null),o(this),this.message='Timeout has occurred',this.name='TimeoutError',this.info=u}}),e.timeout=function(u,t){var n=r(d[1]).isValidDate(u)?{first:u}:'number'==typeof u?{each:u}:u,c=n.first,l=n.each,s=n.with,f=void 0===s?o:s,v=n.scheduler,b=void 0===v?null!==t&&void 0!==t?t:r(d[2]).asyncScheduler:v,h=n.meta,p=void 0===h?null:h;if(null==c&&null==l)throw new TypeError('No timeout provided.');return r(d[3]).operate(function(o,u){var t,n,s=null,v=0,h=function(o){n=r(d[4]).executeSchedule(u,b,function(){try{t.unsubscribe(),r(d[5]).innerFrom(f({meta:p,lastValue:s,seen:v})).subscribe(u)}catch(o){u.error(o)}},o)};t=o.subscribe(r(d[6]).createOperatorSubscriber(u,function(o){null===n||void 0===n||n.unsubscribe(),v++,u.next(s=o),l>0&&h(l)},void 0,void 0,function(){(null===n||void 0===n?void 0:n.closed)||null===n||void 0===n||n.unsubscribe(),s=null})),!v&&h(null!=c?'number'==typeof c?c:+c-b.now():l)})}},1187,[1112,1188,1146,1124,1172,1162,1125]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDate=void 0,e.isValidDate=function(t){return t instanceof Date&&!isNaN(t)}},1188,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallback=void 0,e.bindCallback=function(n,l,t){return r(d[0]).bindCallbackInternals(!1,n,l,t)}},1189,[1190]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,n){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var t,i,l=e.call(r),o=[];try{for(;(void 0===n||n-- >0)&&!(t=l.next()).done;)o.push(t.value)}catch(r){i={error:r}}finally{try{t&&!t.done&&(e=l.return)&&e.call(l)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(r,n){for(var e=0,t=n.length,i=r.length;e0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return u},n=this&&this.__spreadArray||function(r,n){for(var t=0,e=n.length,o=r.length;t0)&&!(t=o.next()).done;)u.push(t.value)}catch(n){i={error:n}}finally{try{t&&!t.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u};Object.defineProperty(_e,"__esModule",{value:!0}),_e.fromEvent=void 0;var r=['addListener','removeListener'],e=['addEventListener','removeEventListener'],t=['on','off'];function i(n,r){return function(e){return function(t){return n[e](r,t)}}}function o(n){return _r(d[0]).isFunction(n.addListener)&&_r(d[0]).isFunction(n.removeListener)}function u(n){return _r(d[0]).isFunction(n.on)&&_r(d[0]).isFunction(n.off)}function f(n){return _r(d[0]).isFunction(n.addEventListener)&&_r(d[0]).isFunction(n.removeEventListener)}_e.fromEvent=function c(v,s,l,m){if(_r(d[0]).isFunction(l)&&(m=l,l=void 0),m)return c(v,s,l).pipe(_r(d[1]).mapOneOrManyArgs(m));var p=n(f(v)?e.map(function(n){return function(r){return v[n](s,r,l)}}):o(v)?r.map(i(v,s)):u(v)?t.map(i(v,s)):[],2),y=p[0],L=p[1];if(!y&&_r(d[2]).isArrayLike(v))return _r(d[3]).mergeMap(function(n){return c(n,s,l)})(_r(d[4]).innerFrom(v));if(!y)throw new TypeError('Invalid event target');return new(_r(d[5]).Observable)(function(n){var r=function(){for(var r=[],e=0;e0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0)&&!(o=i.next()).done;)u.push(o.value)}catch(r){n={error:r}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return u},e=this&&this.__spreadArray||function(r,e){for(var t=0,o=e.length,n=r.length;t0){var e=void 0;try{e=_r(d[2]).innerFrom(i.shift())}catch(e){return void r()}var t=_r(d[3]).createOperatorSubscriber(o,void 0,_r(d[4]).noop,_r(d[4]).noop);e.subscribe(t),t.add(r)}else o.complete()})()})}},1214,[1215,1124,1162,1125,1119]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;e.argsOrArgArray=function(n){return 1===n.length&&t(n[0])?n[0]:n}},1215,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0,e.pairs=function(t,n){return r(d[0]).from(Object.entries(t),n)}},1216,[1158]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0,e.partition=function(t,n,o){return[r(d[0]).filter(n,o)(r(d[1]).innerFrom(t)),r(d[0]).filter(r(d[2]).not(n,o))(r(d[1]).innerFrom(t))]}},1217,[1218,1162,1219]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=void 0,e.filter=function(t,n){return r(d[0]).operate(function(u,c){var o=0;u.subscribe(r(d[1]).createOperatorSubscriber(c,function(u){return t.call(n,u,o++)&&c.next(u)}))})}},1218,[1124,1125]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.not=void 0,e.not=function(n,t){return function(o,u){return!n.call(t,o,u)}}},1219,[]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function n(n){return function(t){for(var c=[],i=function(i){c.push(r(d[1]).innerFrom(n[i]).subscribe(r(d[3]).createOperatorSubscriber(t,function(n){if(c){for(var u=0;u0)&&!(e=u.next()).done;)i.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(t=u.return)&&t.call(u)}finally{if(o)throw o.error}}return i},n=this&&this.__spreadArray||function(r,n){for(var t=0,e=n.length,o=r.length;t=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0,e.bufferCount=function(t,o){return void 0===o&&(o=null),o=null!==o&&void 0!==o?o:t,r(d[0]).operate(function(l,i){var u=[],f=0;l.subscribe(r(d[1]).createOperatorSubscriber(i,function(l){var c,v,y,h,s=null;f++%o==0&&u.push([]);try{for(var b=n(u),p=b.next();!p.done;p=b.next())(_=p.value).push(l),t<=_.length&&(s=null!==s&&void 0!==s?s:[]).push(_)}catch(n){c={error:n}}finally{try{p&&!p.done&&(v=b.return)&&v.call(b)}finally{if(c)throw c.error}}if(s)try{for(var x=n(s),m=x.next();!m.done;m=x.next()){var _=m.value;r(d[2]).arrRemove(u,_),i.next(_)}}catch(n){y={error:n}}finally{try{m&&!m.done&&(h=x.return)&&h.call(x)}finally{if(y)throw y.error}}},function(){var t,o;try{for(var l=n(u),f=l.next();!f.done;f=l.next()){var c=f.value;i.next(c)}}catch(n){t={error:n}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}i.complete()},void 0,function(){u=null}))})}},1228,[1124,1125,1113]); -__d(function(g,r,_i2,a,_m,e,d){"use strict";var n=this&&this.__values||function(n){var t="function"==typeof Symbol&&Symbol.iterator,u=t&&n[t],o=0;if(u)return u.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0,e.bufferTime=function(t){for(var u,o,i=[],l=1;l=0?r(d[5]).executeSchedule(o,f,v,c,!0):l=!0,v();var h=r(d[6]).createOperatorSubscriber(o,function(t){var u,o,l=i.slice();try{for(var f=n(l),c=f.next();!c.done;c=f.next()){var v=c.value,h=v.buffer;h.push(t),s<=h.length&&b(v)}}catch(n){u={error:n}}finally{try{c&&!c.done&&(o=f.return)&&o.call(f)}finally{if(u)throw u.error}}},function(){for(;null===i||void 0===i?void 0:i.length;)o.next(i.shift().buffer);null===h||void 0===h||h.unsubscribe(),o.complete(),o.unsubscribe()},void 0,function(){return i=null});u.subscribe(h)})}},1229,[1156,1146,1124,1113,1109,1172,1125]); -__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0,e.bufferToggle=function(n,o){return r(d[0]).operate(function(i,u){var c=[];r(d[1]).innerFrom(n).subscribe(r(d[2]).createOperatorSubscriber(u,function(t){var n=[];c.push(n);var i=new(r(d[3]).Subscription);i.add(r(d[1]).innerFrom(o(t)).subscribe(r(d[2]).createOperatorSubscriber(u,function(){r(d[4]).arrRemove(c,n),u.next(n),i.unsubscribe()},r(d[5]).noop)))},r(d[5]).noop)),i.subscribe(r(d[2]).createOperatorSubscriber(u,function(n){var o,i;try{for(var u=t(c),f=u.next();!f.done;f=u.next())f.value.push(n)}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}},function(){for(;c.length>0;)u.next(c.shift());u.complete()}))})}},1230,[1124,1162,1125,1109,1113,1119]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0,e.bufferWhen=function(n){return r(d[0]).operate(function(u,t){var o=null,c=null;!(function u(){null===c||void 0===c||c.unsubscribe();var b=o;o=[],b&&t.next(b),r(d[1]).innerFrom(n()).subscribe(c=r(d[2]).createOperatorSubscriber(t,u,r(d[3]).noop))})(),u.subscribe(r(d[2]).createOperatorSubscriber(t,function(n){return null===o||void 0===o?void 0:o.push(n)},function(){o&&t.next(o),t.complete()},void 0,function(){return o=c=null}))})}},1231,[1124,1162,1125,1119]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0,e.catchError=function u(c){return r(d[0]).operate(function(n,o){var s,t=null,b=!1;t=n.subscribe(r(d[1]).createOperatorSubscriber(o,void 0,void 0,function(l){s=r(d[2]).innerFrom(c(l,u(c)(n))),t?(t.unsubscribe(),t=null,s.subscribe(o)):b=!0})),b&&(t.unsubscribe(),t=null,s.subscribe(o))})}},1232,[1124,1125,1162]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineAll=void 0,e.combineAll=r(d[0]).combineLatestAll},1233,[1234]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestAll=void 0,e.combineLatestAll=function(t){return r(d[0]).joinAllInternals(r(d[1]).combineLatest,t)}},1234,[1235,1194]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0,e.joinAllInternals=function(n,t){return r(d[0]).pipe(r(d[1]).toArray(),r(d[2]).mergeMap(function(t){return n(t)}),t?r(d[3]).mapOneOrManyArgs(t):r(d[4]).identity)}},1235,[1121,1236,1200,1191,1122]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=void 0;var t=function(t,u){return t.push(u),t};e.toArray=function(){return r(d[0]).operate(function(u,n){r(d[1]).reduce(t,[])(u).subscribe(n)})}},1236,[1124,1237]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0,e.reduce=function(n,t){return r(d[0]).operate(r(d[1]).scanInternals(n,t,arguments.length>=2,!1,!0))}},1237,[1124,1238]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scanInternals=void 0,e.scanInternals=function(n,t,c,u,i){return function(o,s){var f=c,b=t,l=0;o.subscribe(r(d[0]).createOperatorSubscriber(s,function(t){var c=l++;b=f?n(b,t,c):(f=!0,t),u&&s.next(b)},i&&function(){f&&s.next(b),s.complete()}))}}},1238,[1125]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var t=this&&this.__read||function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),l=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},r=this&&this.__spreadArray||function(t,r){for(var e=0,n=r.length,o=t.length;e0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e0)&&!(e=i.next()).done;)c.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},t=this&&this.__spreadArray||function(r,t){for(var n=0,e=t.length,o=r.length;n0)&&!(n=c.next()).done;)i.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=c.return)&&e.call(c)}finally{if(o)throw o.error}}return i},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e=2;return function(f){return f.pipe(r(d[1]).filter(function(n,u){return u===t}),r(d[2]).take(1),u?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[0]).ArgumentOutOfRangeError)}))}}},1260,[1184,1218,1253,1250,1261]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(){return new(r(d[2]).EmptyError)}Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0,e.throwIfEmpty=function(n){return void 0===n&&(n=t),r(d[0]).operate(function(t,o){var u=!1;t.subscribe(r(d[1]).createOperatorSubscriber(o,function(t){u=!0,o.next(t)},function(){return u?o.complete():o.error(n())}))})}},1261,[1124,1125,1182]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)l.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var n=0,e=t.length,o=r.length;n=2;return function(u){return u.pipe(t?r(d[0]).filter(function(n,i){return t(n,i,u)}):r(d[1]).identity,r(d[2]).take(1),i?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[5]).EmptyError)}))}}},1271,[1218,1122,1253,1250,1261,1182]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0,e.groupBy=function(n,t,u,c){return r(d[0]).operate(function(o,f){var b;t&&'function'!=typeof t?(u=t.duration,b=t.element,c=t.connector):b=t;var s=new Map,v=function(n){s.forEach(n),n(f)},l=function(n){return v(function(t){return t.error(n)})},p=0,y=!1,w=new(r(d[1]).OperatorSubscriber)(f,function(t){try{var o=n(t),v=s.get(o);if(!v){s.set(o,v=c?c():new(r(d[2]).Subject));var O=(S=o,h=v,(j=new(r(d[4]).Observable)(function(n){p++;var t=h.subscribe(n);return function(){t.unsubscribe(),0==--p&&y&&w.unsubscribe()}})).key=S,j);if(f.next(O),u){var _=r(d[1]).createOperatorSubscriber(v,function(){v.complete(),null===_||void 0===_||_.unsubscribe()},void 0,void 0,function(){return s.delete(o)});w.add(r(d[3]).innerFrom(u(O)).subscribe(_))}}v.next(b?b(t):t)}catch(n){l(n)}var S,h,j},function(){return v(function(n){return n.complete()})},l,function(){return s.clear()},function(){return y=!0,0===p});o.subscribe(w)})}},1272,[1124,1125,1130,1162,1107]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0,e.isEmpty=function(){return r(d[0]).operate(function(t,n){t.subscribe(r(d[1]).createOperatorSubscriber(n,function(){n.next(!1),n.complete()},function(){n.next(!0),n.complete()}))})}},1273,[1124,1125]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0,e.last=function(t,n){var u=arguments.length>=2;return function(i){return i.pipe(t?r(d[0]).filter(function(n,u){return t(n,u,i)}):r(d[1]).identity,r(d[2]).takeLast(1),u?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[5]).EmptyError)}))}}},1274,[1218,1122,1275,1250,1261,1182]); -__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0,e.takeLast=function(n){return n<=0?function(){return r(d[0]).EMPTY}:r(d[1]).operate(function(o,i){var u=[];o.subscribe(r(d[2]).createOperatorSubscriber(i,function(t){u.push(t),n0?t:u}:function(n,t){return n>t?n:t})}},1277,[1237,1110]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0,e.flatMap=r(d[0]).mergeMap},1278,[1200]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMapTo=void 0,e.mergeMapTo=function(n,t,o){return void 0===o&&(o=1/0),r(d[0]).isFunction(t)?r(d[1]).mergeMap(function(){return n},t,o):('number'==typeof t&&(o=t),r(d[1]).mergeMap(function(){return n},o))}},1279,[1110,1200]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0,e.mergeScan=function(n,t,u){return void 0===u&&(u=1/0),r(d[0]).operate(function(o,c){var f=t;return r(d[1]).mergeInternals(o,c,function(t,u){return n(f,t,u)},u,function(n){f=n},!1,void 0,function(){return f=null})})}},1280,[1124,1201]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return l},e=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return l},e=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e=2,!0))}},1298,[1124,1238]); -__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceEqual=void 0,e.sequenceEqual=function(u,t){return void 0===t&&(t=function(u,t){return u===t}),r(d[0]).operate(function(n,c){var o={buffer:[],complete:!1},f={buffer:[],complete:!1},b=function(u){c.next(u),c.complete()},l=function(u,n){var o=r(d[1]).createOperatorSubscriber(c,function(c){var o=n.buffer,f=n.complete;0===o.length?f?b(!1):u.buffer.push(c):!t(c,o.shift())&&b(!1)},function(){u.complete=!0;var t=n.complete,c=n.buffer;t&&b(0===c.length),null===o||void 0===o||o.unsubscribe()});return o};n.subscribe(l(o,f)),u.subscribe(l(f,o))})}},1299,[1124,1125]); -__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var n=this&&this.__read||function(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var t,o,u=e.call(n),i=[];try{for(;(void 0===r||r-- >0)&&!(t=u.next()).done;)i.push(t.value)}catch(n){o={error:n}}finally{try{t&&!t.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return i},r=this&&this.__spreadArray||function(n,r){for(var e=0,t=r.length,o=n.length;e=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowCount=void 0,e.windowCount=function(n,o){void 0===o&&(o=0);var i=o>0?o:n;return r(d[0]).operate(function(o,u){var l=[new(r(d[1]).Subject)],f=0;u.next(l[0].asObservable()),o.subscribe(r(d[2]).createOperatorSubscriber(u,function(o){var c,s;try{for(var b=t(l),v=b.next();!v.done;v=b.next())v.value.next(o)}catch(t){c={error:t}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(c)throw c.error}}var h=f-n+1;if(h>=0&&h%i==0&&l.shift().complete(),++f%i==0){var y=new(r(d[1]).Subject);l.push(y),u.next(y.asObservable())}},function(){for(;l.length>0;)l.shift().complete();u.complete()},function(t){for(;l.length>0;)l.shift().error(t);u.error(t)},function(){l=null}))})}},1321,[1124,1130,1125]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0,e.windowTime=function(n){for(var u,t,o=[],c=1;c=0?r(d[6]).executeSchedule(t,s,v,l,!0):c=!0,v();var w=function(n){return o.slice().forEach(n)},p=function(n){w(function(u){var t=u.window;return n(t)}),n(t),t.unsubscribe()};return u.subscribe(r(d[7]).createOperatorSubscriber(t,function(n){w(function(u){u.window.next(n),f<=++u.seen&&b(u)})},function(){return p(function(n){return n.complete()})},function(n){return p(function(u){return u.error(n)})})),function(){o=null}})}},1322,[1156,1146,1124,1113,1109,1130,1172,1125]); -__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowToggle=void 0,e.windowToggle=function(n,o){return r(d[0]).operate(function(i,c){var u=[],l=function(t){for(;00)&&!(n=i.next()).done;)u.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e0)&&!(i=o.next()).done;)l.push(i.value)}catch(r){n={error:r}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,i=t.length,n=r.length;e0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},i=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},c=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EnvelopeService=void 0;var s=(function(){function r(t){_r(_d[0])(this,r),this.logger=t}return _r(_d[1])(r,[{key:"packMessage",value:function(r,n,o){var i,c,s,u,l,f,y,p,d,v,b,h,K;return _r(_d[2]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return i=o.recipientKeys,c=o.routingKeys,s=o.senderKey,u=i.map(function(t){return t.publicKeyBase58}),l=c.map(function(t){return t.publicKeyBase58}),f=s&&s.publicKeyBase58,y=n.toJSON({useLegacyDidSovPrefix:r.config.useLegacyDidSovPrefix}),this.logger.debug("Pack outbound message "+y['@type']),w.next=8,_r(_d[2]).awrap(r.wallet.pack(y,u,null!==f&&void 0!==f?f:void 0));case 8:p=w.sent,d=t(l);case 10:if((v=d()).done){w.next=21;break}return b=v.value,h=new(_r(_d[3]).ForwardMessage)({to:u[0],message:p}),u=[b],this.logger.debug('Forward message created',h),K=h.toJSON({useLegacyDidSovPrefix:r.config.useLegacyDidSovPrefix}),w.next=18,_r(_d[2]).awrap(r.wallet.pack(K,[b],void 0));case 18:p=w.sent;case 19:w.next=10;break;case 21:return w.abrupt("return",p);case 22:case"end":return w.stop()}},null,this,null,Promise)}},{key:"unpackMessage",value:function(t,r){var n,o,i,c;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[2]).awrap(t.wallet.unpack(r));case 2:return n=s.sent,o=n.recipientKey,i=n.senderKey,c=n.plaintextMessage,s.abrupt("return",{recipientKey:o?_r(_d[4]).Key.fromPublicKeyBase58(o,_r(_d[4]).KeyType.Ed25519):void 0,senderKey:i?_r(_d[4]).Key.fromPublicKeyBase58(i,_r(_d[4]).KeyType.Ed25519):void 0,plaintextMessage:c});case 5:case"end":return s.stop()}},null,null,null,Promise)}}]),r})();s=o([(0,_r(_d[5]).injectable)(),c(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Logger)),i("design:paramtypes",[Object])],s),e.EnvelopeService=s},1336,[7,8,82,1337,990,1020,1104]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1337,[1338,1339,1340,1341,1342,1343]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,s=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(c<3?n(s):c>3?n(t,r,s):n(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ForwardMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.to=e.to,t.message=e.message),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/routing/1.0/forward'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),r("design:type",String)],o.prototype,"to",void 0),t([(0,_r(_d[8]).Expose)({name:'msg'}),(0,_r(_d[7]).IsObject)(),r("design:type",Object)],o.prototype,"message",void 0),_e.ForwardMessage=o},1338,[14,11,9,7,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t,i=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(o<3?r(c):o>3?r(t,i,c):r(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.KeylistUpdateMessage=_e.KeylistUpdate=_e.KeylistUpdateAction=void 0,(function(e){e.add="add",e.remove="remove"})(t=_e.KeylistUpdateAction||(_e.KeylistUpdateAction={}));var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.recipientKey=t.recipientKey,this.action=t.action)});i([(0,_r(_d[4]).IsString)(),(0,_r(_d[5]).Expose)({name:'recipient_key'}),n("design:type",String)],r.prototype,"recipientKey",void 0),i([(0,_r(_d[4]).IsEnum)(t),n("design:type",String)],r.prototype,"action",void 0),_e.KeylistUpdate=r;var o=(function(t){_r(_d[6])(o,t);var i,n,r=(i=o,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=r.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.updates=e.updates),t}return _r(_d[2])(o)})(_r(_d[7]).AgentMessage);o.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/keylist-update'),i([(0,_r(_d[8]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),i([(0,_r(_d[5]).Type)(function(){return r}),(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[4]).IsInstance)(r,{each:!0}),n("design:type",Array)],o.prototype,"updates",void 0),_e.KeylistUpdateMessage=o},1339,[14,11,8,7,662,627,9,949,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t,r=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.KeylistUpdateResponseMessage=_e.KeylistUpdated=_e.KeylistUpdateResult=void 0,(function(e){e.ClientError="client_error",e.ServerError="server_error",e.NoChange="no_change",e.Success="success"})(t=_e.KeylistUpdateResult||(_e.KeylistUpdateResult={}));var i=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.recipientKey=t.recipientKey,this.action=t.action,this.result=t.result)});r([(0,_r(_d[4]).IsString)(),(0,_r(_d[5]).Expose)({name:'recipient_key'}),n("design:type",String)],i.prototype,"recipientKey",void 0),r([(0,_r(_d[4]).IsEnum)(_r(_d[6]).KeylistUpdateAction),n("design:type",String)],i.prototype,"action",void 0),r([(0,_r(_d[4]).IsEnum)(t),n("design:type",String)],i.prototype,"result",void 0),_e.KeylistUpdated=i;var s=(function(t){_r(_d[7])(s,t);var r,n,i=(r=s,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t;return _r(_d[3])(this,s),(t=i.call(this)).type=s.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.updated=e.keylist,t.setThread({threadId:e.threadId})),t}return _r(_d[2])(s)})(_r(_d[8]).AgentMessage);s.type=(0,_r(_d[9]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/keylist-update-response'),r([(0,_r(_d[9]).IsValidMessageType)(s.type),n("design:type",Object)],s.prototype,"type",void 0),r([(0,_r(_d[5]).Type)(function(){return i}),(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[4]).IsInstance)(i,{each:!0}),n("design:type",Array)],s.prototype,"updated",void 0),_e.KeylistUpdateResponseMessage=s},1340,[14,11,8,7,662,627,1339,9,949,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationGrantMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.endpoint=e.endpoint,t.routingKeys=e.routingKeys,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-grant'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsNotEmpty)(),(0,_r(_d[7]).IsArray)(),(0,_r(_d[8]).Expose)({name:'routing_keys'}),r("design:type",Array)],n.prototype,"routingKeys",void 0),t([(0,_r(_d[7]).IsNotEmpty)(),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"endpoint",void 0),_e.MediationGrantMessage=n},1341,[14,11,9,7,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,c=arguments.length,i=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var f=e.length-1;f>=0;f--)(o=e[f])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationDenyMessage=void 0;var r=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-deny'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),_e.MediationDenyMessage=r},1342,[14,11,9,7,8,949,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRequestMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.addLocale(e.locale||'en')),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.MediationRequestMessage=n},1343,[14,11,9,7,8,949,942]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var n=this&&this.__decorate||function(n,t,i,o){var r,s=arguments.length,c=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(n,t,i,o);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(c=(s<3?r(c):s>3?r(t,i,c):r(t,i))||c);return s>3&&c&&Object.defineProperty(t,i,c),c};Object.defineProperty(e,"__esModule",{value:!0}),e.TransportService=void 0;var t=(function(){function n(){_r(_d[0])(this,n),this.transportSessionTable={}}return _r(_d[1])(n,[{key:"saveSession",value:function(n){this.transportSessionTable[n.id]=n}},{key:"findSessionByConnectionId",value:function(n){return Object.values(this.transportSessionTable).find(function(t){var i;return(null===(i=null===t||void 0===t?void 0:t.connection)||void 0===i?void 0:i.id)===n})}},{key:"hasInboundEndpoint",value:function(n){var t;return Boolean(null===(t=n.service)||void 0===t?void 0:t.find(function(n){return n.serviceEndpoint!==_r(_d[2]).DID_COMM_TRANSPORT_QUEUE}))}},{key:"findSessionById",value:function(n){return this.transportSessionTable[n]}},{key:"removeSession",value:function(n){delete this.transportSessionTable[n.id]}}]),n})();t=n([(0,_r(_d[3]).injectable)()],t),e.TransportService=t},1344,[7,8,1104,1020]); -__d(function(g,_r,_i,_a2,_m,e,_d2){"use strict";function t(t,r){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=n(t))||r&&t&&"number"==typeof t.length){s&&(t=s);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return r(t,n);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,s=new Array(n);r=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(n,r,a):i(n,r))||a);return o>3&&a&&Object.defineProperty(n,r,a),a},i=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},o=this&&this.__param||function(t,n){return function(r,s){n(r,s,t)}},a=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n);function s(r){n[r]=t[r]&&function(n){return new Promise(function(s,o){i(s,o,(n=t[r](n)).done,n.value)})}}function i(t,n,r,s){Promise.resolve(s).then(function(n){t({value:n,done:r})},n)}};Object.defineProperty(e,"__esModule",{value:!0}),e.isDidCommTransportQueue=e.MessageSender=void 0;var c=(function(){function n(t,r,s,i,o,a,c){_r(_d2[0])(this,n),this.outboundTransports=[],this.envelopeService=t,this.transportService=r,this.messageRepository=s,this.logger=i,this.didResolverService=o,this.didCommDocumentService=a,this.eventEmitter=c,this.outboundTransports=[]}return _r(_d2[1])(n,[{key:"registerOutboundTransport",value:function(t){this.outboundTransports.push(t)}},{key:"packMessage",value:function(t,n){var r,s,i,o;return _r(_d2[2]).async(function(a){for(;;)switch(a.prev=a.next){case 0:return r=n.keys,s=n.message,i=n.endpoint,a.next=3,_r(_d2[2]).awrap(this.envelopeService.packMessage(t,s,r));case 3:return o=a.sent,a.abrupt("return",{payload:o,responseRequested:s.hasAnyReturnRoute(),endpoint:i});case 5:case"end":return a.stop()}},null,this,null,Promise)}},{key:"sendMessageToSession",value:function(t,n,r){var s;return _r(_d2[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.logger.debug("Existing "+n.type+" transport session has been found."),n.keys){i.next=3;break}throw new(_r(_d2[3]).AriesFrameworkError)("There are no keys for the given "+n.type+" transport session.");case 3:return i.next=5,_r(_d2[2]).awrap(this.envelopeService.packMessage(t,r,n.keys));case 5:return s=i.sent,i.next=8,_r(_d2[2]).awrap(n.send(s));case 8:case"end":return i.stop()}},null,this,null,Promise)}},{key:"sendPackage",value:function(n,r){var s,i,o,c,u,d,v,l,h,p,b,f,m,S,y,x,w,M,k,E,R;return _r(_d2[2]).async(function(O){for(;;)switch(O.prev=O.next){case 0:if(s=r.connection,i=r.encryptedMessage,o=r.options,h=[],p=this.transportService.findSessionByConnectionId(s.id),!(null===(l=null===p||void 0===p?void 0:p.inboundMessage)||void 0===l?void 0:l.hasReturnRouting())){O.next=14;break}return O.prev=4,O.next=7,_r(_d2[2]).awrap(p.send(i));case 7:return O.abrupt("return");case 10:O.prev=10,O.t0=O.catch(4),h.push(O.t0),this.logger.debug("Sending packed message via session failed with error: "+O.t0.message+".",O.t0);case 14:return O.next=16,_r(_d2[2]).awrap(this.retrieveServicesByConnection(n,s,null===o||void 0===o?void 0:o.transportPriority));case 16:if(b=O.sent,f=b.services,m=b.queueService,0!==this.outboundTransports.length||m){O.next=21;break}throw new(_r(_d2[3]).AriesFrameworkError)('Agent has no outbound transport!');case 21:O.prev=21,S=!0,y=a(f);case 23:return O.next=25,_r(_d2[2]).awrap(y.next());case 25:if(x=O.sent,c=x.done){O.next=55;break}v=x.value,S=!1,O.prev=30,w=v,this.logger.debug("Sending outbound message to service:",{service:w}),O.prev=33,M=(0,_r(_d2[4]).getProtocolScheme)(w.serviceEndpoint),k=t(this.outboundTransports);case 36:if((E=k()).done){O.next=44;break}if(!(R=E.value).supportedSchemes.includes(M)){O.next=42;break}return O.next=41,_r(_d2[2]).awrap(R.sendMessage({payload:i,endpoint:w.serviceEndpoint,connectionId:s.id}));case 41:return O.abrupt("break",44);case 42:O.next=36;break;case 44:return O.abrupt("return");case 47:O.prev=47,O.t1=O.catch(33),this.logger.debug("Sending outbound message to service with id "+w.id+" failed with the following error:",{message:O.t1.message,error:O.t1});case 50:return O.prev=50,S=!0,O.finish(50);case 53:O.next=23;break;case 55:O.next=60;break;case 57:O.prev=57,O.t2=O.catch(21),u={error:O.t2};case 60:if(O.prev=60,O.prev=61,S||c||!(d=y.return)){O.next=65;break}return O.next=65,_r(_d2[2]).awrap(d.call(y));case 65:if(O.prev=65,!u){O.next=68;break}throw u.error;case 68:return O.finish(65);case 69:return O.finish(60);case 70:if(!m){O.next=75;break}return this.logger.debug("Queue packed message for connection "+s.id+" ("+s.theirLabel+")"),O.next=74,_r(_d2[2]).awrap(this.messageRepository.add(s.id,i));case 74:return O.abrupt("return");case 75:throw this.logger.error("Message is undeliverable to connection "+s.id+" ("+s.theirLabel+")",{message:i,errors:h,connection:s}),new(_r(_d2[3]).AriesFrameworkError)("Message is undeliverable to connection "+s.id+" ("+s.theirLabel+")");case 77:case"end":return O.stop()}},null,this,[[4,10],[21,57,60,70],[30,,50,53],[33,47],[61,,65,69]],Promise)}},{key:"sendMessage",value:function(t,n){var r,s,i,o,c,u,v,l,h,p,b,f,m,S,y,x,w,M,k,E,R,O,T,P,D,C,I;return _r(_d2[2]).async(function(K){for(;;)switch(K.prev=K.next){case 0:if(v=t.agentContext,l=t.connection,h=t.outOfBand,p=t.sessionId,b=t.message,f=[],l){K.next=6;break}throw this.logger.error('Outbound message has no associated connection'),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)('Outbound message has no associated connection',{outboundMessageContext:t});case 6:if(this.logger.debug('Send outbound message',{message:b,connectionId:l.id}),p&&(m=this.transportService.findSessionById(p)),m||(m=this.transportService.findSessionByConnectionId(l.id)),!(null===(c=null===m||void 0===m?void 0:m.inboundMessage)||void 0===c?void 0:c.hasReturnRouting(b.threadId))){K.next=22;break}return this.logger.debug("Found session with return routing for message '"+b.id+"' (connection '"+l.id+"'"),K.prev=11,K.next=14,_r(_d2[2]).awrap(this.sendMessageToSession(v,m,b));case 14:return this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.SentToSession),K.abrupt("return");case 18:K.prev=18,K.t0=K.catch(11),f.push(K.t0),this.logger.debug("Sending an outbound message via session failed with error: "+K.t0.message+".",K.t0);case 22:return S=[],K.prev=23,K.next=27,_r(_d2[2]).awrap(this.retrieveServicesByConnection(v,l,null===n||void 0===n?void 0:n.transportPriority,h));case 27:x=K.sent,S=x.services,y=x.queueService,K.next=37;break;case 32:throw K.prev=32,K.t1=K.catch(23),this.logger.error("Unable to retrieve services for connection '"+l.id),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)("Unable to retrieve services for connection '"+l.id,{outboundMessageContext:t,cause:K.t1});case 37:if(l.did){K.next=41;break}throw this.logger.error("Unable to send message using connection '"+l.id+"' that doesn't have a did"),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)("Unable to send message using connection '"+l.id+"' that doesn't have a did",{outboundMessageContext:t});case 41:return K.prev=41,K.next=44,_r(_d2[2]).awrap(this.didResolverService.resolveDidDocument(v,l.did));case 44:w=K.sent,K.next=52;break;case 47:throw K.prev=47,K.t2=K.catch(41),this.logger.error("Unable to resolve DID Document for '"+l.did),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)("Unable to resolve DID Document for '"+l.did,{outboundMessageContext:t,cause:K.t2});case 52:M=d(w),k=_r(_d2[6])(M,1),E=k[0],R=void 0===(null===(u=b.transport)||void 0===u?void 0:u.returnRoute)&&!this.transportService.hasInboundEndpoint(w),K.prev=55,O=!0,T=a(S);case 57:return K.next=59,_r(_d2[2]).awrap(T.next());case 59:if(P=K.sent,r=P.done){K.next=82;break}return o=P.value,O=!1,K.prev=64,D=o,K.prev=66,K.next=69,_r(_d2[2]).awrap(this.sendToService(new(_r(_d2[5]).OutboundMessageContext)(b,{agentContext:v,serviceParams:{service:D,senderKey:E,returnRoute:R},connection:l})));case 69:return this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.SentToTransport),K.abrupt("return");case 73:K.prev=73,K.t3=K.catch(66),f.push(K.t3),this.logger.debug("Sending outbound message to service with id "+D.id+" failed with the following error:",{message:K.t3.message,error:K.t3});case 77:return K.prev=77,O=!0,K.finish(77);case 80:K.next=57;break;case 82:K.next=87;break;case 84:K.prev=84,K.t4=K.catch(55),s={error:K.t4};case 87:if(K.prev=87,K.prev=88,O||r||!(i=T.return)){K.next=92;break}return K.next=92,_r(_d2[2]).awrap(i.call(T));case 92:if(K.prev=92,!s){K.next=95;break}throw s.error;case 95:return K.finish(92);case 96:return K.finish(87);case 97:if(!y){K.next=107;break}return this.logger.debug("Queue message for connection "+l.id+" ("+l.theirLabel+")"),C={recipientKeys:y.recipientKeys,routingKeys:y.routingKeys,senderKey:E},K.next=102,_r(_d2[2]).awrap(this.envelopeService.packMessage(v,b,C));case 102:return I=K.sent,K.next=105,_r(_d2[2]).awrap(this.messageRepository.add(l.id,I));case 105:return this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.QueuedForPickup),K.abrupt("return");case 107:throw this.logger.error("Message is undeliverable to connection "+l.id+" ("+l.theirLabel+")",{message:b,errors:f,connection:l}),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)("Message is undeliverable to connection "+l.id+" ("+l.theirLabel+")",{outboundMessageContext:t});case 110:case"end":return K.stop()}},null,this,[[11,18],[23,32],[41,47],[55,84,87,97],[64,,77,80],[66,73],[88,,92,96]],Promise)}},{key:"sendMessageToService",value:function(t){var n,r;return _r(_d2[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,_r(_d2[2]).awrap(this.sendToService(t));case 3:this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.SentToTransport),s.next=11;break;case 6:throw s.prev=6,s.t0=s.catch(0),this.logger.error("Message is undeliverable to service with id "+(null===(n=t.serviceParams)||void 0===n?void 0:n.service.id)+": "+s.t0.message,{message:t.message,error:s.t0}),this.emitMessageSentEvent(t,_r(_d2[5]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[3]).MessageSendingError)("Message is undeliverable to service with id "+(null===(r=t.serviceParams)||void 0===r?void 0:r.service.id)+": "+s.t0.message,{outboundMessageContext:t});case 11:case"end":return s.stop()}},null,this,[[0,6]],Promise)}},{key:"sendToService",value:function(n){var r,s,i,o,a,c,u,d,v,l,h,p,b;return _r(_d2[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(r=n.agentContext,s=n.message,i=n.serviceParams,o=n.connection,i){f.next=3;break}throw new(_r(_d2[3]).AriesFrameworkError)('No service parameters found in outbound message context');case 3:if(a=i.service,c=i.senderKey,u=i.returnRoute,0!==this.outboundTransports.length){f.next=6;break}throw new(_r(_d2[3]).AriesFrameworkError)('Agent has no outbound transport!');case 6:this.logger.debug("Sending outbound message to service:",{messageId:s.id,service:_r(_d2[7])(_r(_d2[7])({},a),{recipientKeys:'omitted...',routingKeys:'omitted...'})}),d={recipientKeys:a.recipientKeys,routingKeys:a.routingKeys,senderKey:c},u&&s.setReturnRouting(_r(_d2[8]).ReturnRouteTypes.all),f.prev=9,_r(_d2[9]).MessageValidator.validateSync(s),f.next=17;break;case 13:throw f.prev=13,f.t0=f.catch(9),this.logger.error("Aborting sending outbound message "+s.type+" to "+a.serviceEndpoint+". Message validation failed",{errors:f.t0,message:s.toJSON()}),f.t0;case 17:return f.next=19,_r(_d2[2]).awrap(this.packMessage(r,{message:s,keys:d,endpoint:a.serviceEndpoint}));case 19:(v=f.sent).endpoint=a.serviceEndpoint,v.connectionId=null===o||void 0===o?void 0:o.id,l=t(this.outboundTransports);case 23:if((h=l()).done){f.next=36;break}if(p=h.value,b=(0,_r(_d2[4]).getProtocolScheme)(a.serviceEndpoint)){f.next=30;break}this.logger.warn('Service does not have valid protocolScheme.'),f.next=34;break;case 30:if(!p.supportedSchemes.includes(b)){f.next=34;break}return f.next=33,_r(_d2[2]).awrap(p.sendMessage(v));case 33:return f.abrupt("return");case 34:f.next=23;break;case 36:throw new(_r(_d2[3]).MessageSendingError)("Unable to send message to service: "+a.serviceEndpoint,{outboundMessageContext:n});case 37:case"end":return f.stop()}},null,this,[[9,13]],Promise)}},{key:"retrieveServicesByConnection",value:function(n,r,s,i){var o,a,c,d,v,l,h,p;return _r(_d2[2]).async(function(b){for(;;)switch(b.prev=b.next){case 0:if(this.logger.debug("Retrieving services for connection '"+r.id+"' ("+r.theirLabel+")",{transportPriority:s,connection:r}),a=[],!r.theirDid){b.next=9;break}return this.logger.debug("Resolving services for connection theirDid "+r.theirDid+"."),b.next=6,_r(_d2[2]).awrap(this.didCommDocumentService.resolveServicesFromDid(n,r.theirDid));case 6:a=b.sent,b.next=30;break;case 9:if(!i){b.next=30;break}if(this.logger.debug("Resolving services from out-of-band record "+i.id+"."),!r.isRequester){b.next=30;break}c=t(i.outOfBandInvitation.getServices());case 13:if((d=c()).done){b.next=30;break}if('string'!=typeof(v=d.value)){b.next=27;break}return this.logger.debug("Resolving services for did "+v+"."),b.t0=(l=a).push,b.t1=l,b.t2=_r(_d2[10]),b.next=22,_r(_d2[2]).awrap(this.didCommDocumentService.resolveServicesFromDid(n,v));case 22:b.t3=b.sent,b.t4=(0,b.t2)(b.t3),b.t0.apply.call(b.t0,b.t1,b.t4),b.next=28;break;case 27:a.push({id:v.id,recipientKeys:v.recipientKeys.map(_r(_d2[11]).didKeyToInstanceOfKey),routingKeys:(null===(o=v.routingKeys)||void 0===o?void 0:o.map(_r(_d2[11]).didKeyToInstanceOfKey))||[],serviceEndpoint:v.serviceEndpoint});case 28:b.next=13;break;case 30:return h=a.filter(function(t){return!u(t.serviceEndpoint)}),p=a.find(function(t){return u(t.serviceEndpoint)}),(null===s||void 0===s?void 0:s.restrictive)&&(h=h.filter(function(t){var n=(0,_r(_d2[4]).getProtocolScheme)(t.serviceEndpoint);return s.schemes.includes(n)})),(null===s||void 0===s?void 0:s.schemes)&&(h=h.sort(function(t,n){var r=(0,_r(_d2[4]).getProtocolScheme)(t.serviceEndpoint),i=(0,_r(_d2[4]).getProtocolScheme)(n.serviceEndpoint);return(null===s||void 0===s?void 0:s.schemes.indexOf(r))-(null===s||void 0===s?void 0:s.schemes.indexOf(i))})),this.logger.debug("Retrieved "+h.length+" services for message to connection '"+r.id+"'("+r.theirLabel+")'",{hasQueueService:void 0!==p}),b.abrupt("return",{services:h,queueService:p});case 36:case"end":return b.stop()}},null,this,null,Promise)}},{key:"emitMessageSentEvent",value:function(t,n){var r=t.agentContext;this.eventEmitter.emit(r,{type:_r(_d2[12]).AgentEventTypes.AgentMessageSent,payload:{message:t,status:n}})}}]),n})();function u(t){return t===_r(_d2[14]).DID_COMM_TRANSPORT_QUEUE}function d(t){var n,r;return null!==(r=null===(n=t.authentication)||void 0===n?void 0:n.map(function(n){var r='string'==typeof n?t.dereferenceVerificationMethod(n):n;return(0,(0,_r(_d2[20]).getKeyDidMappingByVerificationMethod)(r).getKeyFromVerificationMethod)(r)}))&&void 0!==r?r:[]}c=s([(0,_r(_d2[13]).injectable)(),o(2,(0,_r(_d2[13]).inject)(_r(_d2[14]).InjectionSymbols.MessageRepository)),o(3,(0,_r(_d2[13]).inject)(_r(_d2[14]).InjectionSymbols.Logger)),i("design:paramtypes",[_r(_d2[15]).EnvelopeService,_r(_d2[16]).TransportService,Object,Object,_r(_d2[17]).DidResolverService,_r(_d2[18]).DidCommDocumentService,_r(_d2[19]).EventEmitter])],c),e.MessageSender=c,e.isDidCommTransportQueue=u},1345,[7,8,82,612,1069,623,31,4,972,661,42,986,1346,1020,1104,1336,1344,1347,1415,1105,1079]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AgentEventTypes=e.filterContextCorrelationId=void 0,e.filterContextCorrelationId=function(t){return function(n){return n.pipe((0,r(d[0]).filter)(function(n){return n.metadata.contextCorrelationId===t}))}},(function(t){t.AgentMessageReceived="AgentMessageReceived",t.AgentMessageProcessed="AgentMessageProcessed",t.AgentMessageSent="AgentMessageSent"})(e.AgentEventTypes||(e.AgentEventTypes={}))},1346,[1106]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,d=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(d=(s<3?i(d):s>3?i(r,n,d):i(r,n))||d);return s>3&&d&&Object.defineProperty(r,n,d),d},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},n=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidResolverService=void 0;var o=(function(){function t(r,n){_r(_d[0])(this,t),this.logger=r,this.didsModuleConfig=n}return _r(_d[1])(t,[{key:"resolve",value:function(t,r){var n,o,i,s,d=arguments;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:n=d.length>2&&void 0!==d[2]?d[2]:{},this.logger.debug("resolving didUrl "+r),o={didResolutionMetadata:{},didDocument:null,didDocumentMetadata:{}},u.prev=3,i=(0,_r(_d[3]).parseDid)(r),u.next=10;break;case 7:return u.prev=7,u.t0=u.catch(3),u.abrupt("return",_r(_d[4])(_r(_d[4])({},o),{didResolutionMetadata:{error:'invalidDid'}}));case 10:if(s=this.findResolver(i)){u.next=13;break}return u.abrupt("return",_r(_d[4])(_r(_d[4])({},o),{didResolutionMetadata:{error:'unsupportedDidMethod'}}));case 13:return u.abrupt("return",s.resolve(t,i.did,i,n));case 14:case"end":return u.stop()}},null,this,[[3,7]],Promise)}},{key:"resolveDidDocument",value:function(t,r){var n,o,i,s,d;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[2]).awrap(this.resolve(t,r));case 2:if(n=u.sent,o=n.didDocument,i=n.didResolutionMetadata,s=i.error,d=i.message,o){u.next=9;break}throw new(_r(_d[5]).AriesFrameworkError)("Unable to resolve did document for did '"+r+"': "+s+" "+d);case 9:return u.abrupt("return",o);case 10:case"end":return u.stop()}},null,this,null,Promise)}},{key:"findResolver",value:function(t){var r;return null!==(r=this.didsModuleConfig.resolvers.find(function(r){return r.supportedMethods.includes(t.method)}))&&void 0!==r?r:null}}]),t})();o=t([(0,_r(_d[6]).injectable)(),n(0,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.Logger)),r("design:paramtypes",[Object,_r(_d[8]).DidsModuleConfig])],o),e.DidResolverService=o},1347,[7,8,82,1090,4,612,1020,1104,1348]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidsModuleConfig=void 0;var s=(function(){function s(n){r(d[0])(this,s),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(s,[{key:"registrars",get:function(){var s;if(this._registrars)return this._registrars;var n=null!==(s=this.options.registrars)&&void 0!==s?s:[new(r(d[2]).KeyDidRegistrar),new(r(d[2]).IndySdkSovDidRegistrar),new(r(d[2]).PeerDidRegistrar)];return n.find(function(s){return s instanceof r(d[2]).PeerDidRegistrar})||(n=[].concat(r(d[3])(n),[new(r(d[2]).PeerDidRegistrar)])),this._registrars=n,n}},{key:"addRegistrar",value:function(s){this.registrars.push(s)}},{key:"resolvers",get:function(){var s;if(this._resolvers)return this._resolvers;var n=null!==(s=this.options.resolvers)&&void 0!==s?s:[new(r(d[2]).IndySdkSovDidResolver),new(r(d[2]).WebDidResolver),new(r(d[2]).KeyDidResolver),new(r(d[2]).PeerDidResolver)];return n.find(function(s){return s instanceof r(d[2]).PeerDidResolver})||(n=[].concat(r(d[3])(n),[new(r(d[2]).PeerDidResolver)])),this._resolvers=n,n}},{key:"addResolver",value:function(s){this.resolvers.push(s)}}]),s})();e.DidsModuleConfig=s},1348,[7,8,1349,42]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1349,[987,1350,1358,1411]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1350,[1351,1356,1353,1357]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PeerDidRegistrar=void 0;var t=(function(){function t(){r(d[0])(this,t),this.supportedMethods=['peer']}return r(d[1])(t,[{key:"create",value:function(t,s){var c,l,p,f,D,v,y,M,b,k,x,R;return r(d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:if(p=t.dependencyManager.resolve(r(d[3]).DidRepository),h.prev=1,!o(s)){h.next=15;break}if(D=s.options.keyType,v=null===(c=s.secret)||void 0===c?void 0:c.seed,D){h.next=7;break}return h.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Missing key type'}});case 7:if(!v||'string'==typeof v&&32===v.length){h.next=9;break}return h.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 9:return h.next=11,r(d[2]).awrap(t.wallet.createKey({keyType:D,seed:v}));case 11:y=h.sent,f=(0,r(d[4]).keyToNumAlgo0DidDocument)(y),h.next=28;break;case 15:if(!n(s)){h.next=21;break}M=s.didDocument.toJSON(),b=(0,r(d[5]).didDocumentJsonToNumAlgo1Did)(M),f=r(d[6]).JsonTransformer.fromJSON(r(d[7])(r(d[7])({},M),{id:b}),r(d[8]).DidDocument),h.next=28;break;case 21:if(!u(s)){h.next=27;break}k=s.didDocument.toJSON(),x=(0,r(d[9]).didDocumentToNumAlgo2Did)(s.didDocument),f=r(d[6]).JsonTransformer.fromJSON(r(d[7])(r(d[7])({},k),{id:x}),r(d[8]).DidDocument),h.next=28;break;case 27:return h.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"Missing or incorrect numAlgo provided"}});case 28:return R=new(r(d[3]).DidRecord)({did:f.id,role:r(d[10]).DidDocumentRole.Created,didDocument:n(s)?f:void 0,tags:{recipientKeyFingerprints:f.recipientKeys.map(function(t){return t.fingerprint})}}),h.next=31,r(d[2]).awrap(p.save(t,R));case 31:return h.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'finished',did:f.id,didDocument:f,secret:{seed:null===(l=s.secret)||void 0===l?void 0:l.seed}}});case 34:return h.prev=34,h.t0=h.catch(1),h.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknown error: "+h.t0.message}});case 37:case"end":return h.stop()}},null,null,[[1,34]],Promise)}},{key:"update",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: updating did:peer not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: deactivating did:peer not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),t})();function n(t){return t.options.numAlgo===r(d[11]).PeerDidNumAlgo.GenesisDoc}function o(t){return t.options.numAlgo===r(d[11]).PeerDidNumAlgo.InceptionKeyWithoutDoc}function u(t){return t.options.numAlgo===r(d[11]).PeerDidNumAlgo.MultipleInceptionKeyWithoutDoc}e.PeerDidRegistrar=t},1351,[7,8,82,1093,1352,1354,993,4,1098,1355,1099,1353]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.didToNumAlgo0DidDocument=e.keyToNumAlgo0DidDocument=void 0,e.keyToNumAlgo0DidDocument=function(o){var t="did:peer:0"+o.fingerprint;return(0,r(d[0]).getDidDocumentForKey)(t,o)},e.didToNumAlgo0DidDocument=function(o){var t=(0,r(d[1]).parseDid)(o),n=(0,r(d[2]).getNumAlgoFromPeerDid)(o);if(!(0,r(d[2]).isValidPeerDid)(o))throw new Error("Invalid peer did '"+o+"'");if(n!==r(d[2]).PeerDidNumAlgo.InceptionKeyWithoutDoc)throw new Error("Invalid numAlgo "+n+", expected "+r(d[2]).PeerDidNumAlgo.InceptionKeyWithoutDoc);var u=r(d[3]).Key.fromFingerprint(t.id.substring(1));return(0,r(d[0]).getDidDocumentForKey)(o,u)}},1352,[989,1090,1353,990]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumAlgoFromPeerDid=e.PeerDidNumAlgo=e.isValidPeerDid=void 0;var o,t=new RegExp('^did:peer:(([01](z)([1-9a-km-zA-HJ-NP-Z]{5,200}))|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{5,200}))+(.(S)[0-9a-zA-Z=]*)?)))$');e.isValidPeerDid=function(o){return t.test(o)},(function(o){o[o.InceptionKeyWithoutDoc=0]="InceptionKeyWithoutDoc",o[o.GenesisDoc=1]="GenesisDoc",o[o.MultipleInceptionKeyWithoutDoc=2]="MultipleInceptionKeyWithoutDoc"})(o=e.PeerDidNumAlgo||(e.PeerDidNumAlgo={})),e.getNumAlgoFromPeerDid=function(t){var n=Number(t[9]);if(n!==o.InceptionKeyWithoutDoc&&n!==o.GenesisDoc&&n!==o.MultipleInceptionKeyWithoutDoc)throw new Error("Invalid peer did numAlgo: "+n);return n}},1353,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.didDocumentJsonToNumAlgo1Did=void 0,e.didDocumentJsonToNumAlgo1Did=function(o){var n=r(d[0]).JsonEncoder.toBuffer(r(d[1])(r(d[1])({},o),{id:void 0}));return"did:peer:1"+r(d[0]).MultiBaseEncoder.encode(r(d[0]).MultiHashEncoder.encode(n,'sha2-256'),'base58btc')}},1354,[993,4]); -__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i,t){var o="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(o)return(o=o.call(i)).next.bind(o);if(Array.isArray(i)||(o=n(i))||t&&i&&"number"==typeof i.length){o&&(i=o);var c=0;return function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(i,n){if(i){if("string"==typeof i)return t(i,n);var o=Object.prototype.toString.call(i).slice(8,-1);return"Object"===o&&i.constructor&&(o=i.constructor.name),"Map"===o||"Set"===o?Array.from(i):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(i,n):void 0}}function t(i,n){(null==n||n>i.length)&&(n=i.length);for(var t=0,o=new Array(n);t0){var y=i.service.map(function(i){var n=r(d[2]).JsonTransformer.toJSON(i);return delete n.id,f(n)}),b=r(d[2]).JsonEncoder.toBase64URL(1===y.length?y[0]:y);c+="."+o.Service+b}return c}function l(i){var n=function(i){var n;return null!==(n=s[i])&&void 0!==n?n:i};return Object.entries(i).reduce(function(i,t){var o=r(d[7])(t,2),c=o[0],u=o[1];return r(d[9])(r(d[9])({},i),r(d[6])({},n(c),n(u)))},{})}function f(i){var n=function(i){var n;return null!==(n=u[i])&&void 0!==n?n:i};return Object.entries(i).reduce(function(i,t){var o=r(d[7])(t,2),c=o[0],u=o[1];return r(d[9])(r(d[9])({},i),r(d[6])({},n(c),n(u)))},{})}function p(i,n,t){var u,s=(u={},r(d[6])(u,o.Assertion,i.addAssertionMethod.bind(i)),r(d[6])(u,o.Encryption,i.addKeyAgreement.bind(i)),r(d[6])(u,o.Verification,i.addAuthentication.bind(i)),r(d[6])(u,o.CapabilityInvocation,i.addCapabilityInvocation.bind(i)),r(d[6])(u,o.CapabilityDelegation,i.addCapabilityDelegation.bind(i)),u);if(!c(t))throw new Error("Unsupported peer did purpose '"+t+"'");(0,s[t])(n)}e.didToNumAlgo2DidDocument=function(n){for(var t,c=(0,r(d[0]).parseDid)(n).id.substring(2).split('.'),u=new(r(d[1]).DidDocumentBuilder)(n),s=0,v=i(c);!(t=v()).done;){var f=t.value,y=f.substring(1),b=f[0];if(b===o.Service)for(var D,A=r(d[2]).JsonEncoder.fromBase64(y),h=i(A=Array.isArray(A)?A:[A]);!(D=h()).done;){var S=D.value;(S=l(S)).id=n+"#"+S.type.toLowerCase()+"-"+s++,u.addService(r(d[2]).JsonTransformer.fromJSON(S,r(d[3]).DidDocumentService))}else for(var K,C=r(d[4]).Key.fromFingerprint(y),E=i((0,(0,r(d[5]).getKeyDidMappingByKeyType)(C.keyType).getVerificationMethods)(n,C));!(K=E()).done;){var M=K.value;M.id=M.id.replace('#z','#'),p(u,M,b)}}return u.build()},e.didDocumentToNumAlgo2Did=v,e.outOfBandServiceToNumAlgo2Did=function(i){var n;return v(new(r(d[1]).DidDocumentBuilder)('').addService(new(r(d[3]).DidCommV1Service)({id:i.id,serviceEndpoint:i.serviceEndpoint,accept:i.accept,recipientKeys:i.recipientKeys.map(function(i){var n=r(d[8]).DidKey.fromDid(i);return n.did+"#"+n.key.fingerprint}),routingKeys:null===(n=i.routingKeys)||void 0===n?void 0:n.map(function(i){var n=r(d[8]).DidKey.fromDid(i);return n.did+"#"+n.key.fingerprint})})).build())}},1355,[1090,1064,993,1098,990,1079,249,31,987,4]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PeerDidResolver=void 0;var o=(function(){function o(){r(d[0])(this,o),this.supportedMethods=['peer']}return r(d[1])(o,[{key:"resolve",value:function(o,t){var n,u,s,c,l,p,D;return r(d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=o.dependencyManager.resolve(r(d[3]).DidRepository),u={},f.prev=2,(0,r(d[4]).isValidPeerDid)(t)){f.next=5;break}throw new(r(d[5]).AriesFrameworkError)("did "+t+" is not a valid peer did");case 5:if((c=(0,r(d[4]).getNumAlgoFromPeerDid)(t))!==r(d[4]).PeerDidNumAlgo.InceptionKeyWithoutDoc){f.next=10;break}s=(0,r(d[6]).didToNumAlgo0DidDocument)(t),f.next=24;break;case 10:if(c!==r(d[4]).PeerDidNumAlgo.GenesisDoc){f.next=23;break}return f.next=13,r(d[2]).awrap(n.findAllByDid(o,t));case 13:if(l=f.sent,p=r(d[7])(l,1),D=p[0]){f.next=18;break}throw new(r(d[5]).AriesFrameworkError)("No did record found for peer did "+t+".");case 18:if(D.didDocument){f.next=20;break}throw new(r(d[5]).AriesFrameworkError)("Found did record for method 1 peer did ("+t+"), but no did document.");case 20:s=D.didDocument,f.next=24;break;case 23:s=(0,r(d[8]).didToNumAlgo2DidDocument)(t);case 24:return f.abrupt("return",{didDocument:s,didDocumentMetadata:u,didResolutionMetadata:{contentType:'application/did+ld+json'}});case 27:return f.prev=27,f.t0=f.catch(2),f.abrupt("return",{didDocument:null,didDocumentMetadata:u,didResolutionMetadata:{error:'notFound',message:"resolver_error: Unable to resolve did '"+t+"': "+f.t0}});case 30:case"end":return f.stop()}},null,null,[[2,27]],Promise)}}]),o})();e.PeerDidResolver=o},1356,[7,8,82,1093,1353,612,1352,31,1355]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createPeerDidDocumentFromServices=void 0,e.createPeerDidDocumentFromServices=function(n){var t=new(r(d[0]).DidDocumentBuilder)(''),o={};return n.forEach(function(n,c){var u,y=n.recipientKeys.map(function(n){if(o[n.fingerprint])return o[n.fingerprint];if(n.keyType!==r(d[1]).KeyType.Ed25519)throw new(r(d[2]).AriesFrameworkError)("Unable to create did document from services. recipient key type "+n.keyType+" is not supported. Supported key types are "+r(d[1]).KeyType.Ed25519);var c=r(d[1]).Key.fromPublicKey((0,r(d[3]).convertPublicKeyToX25519)(n.publicKey),r(d[1]).KeyType.X25519),u=(0,r(d[4]).getEd25519VerificationMethod)({id:"#"+(0,r(d[5]).uuid)(),key:n,controller:'#id'}),y=(0,r(d[6]).getX25519VerificationMethod)({id:"#"+(0,r(d[5]).uuid)(),key:c,controller:'#id'});return o[n.fingerprint]=u.id,t.addAuthentication(u).addKeyAgreement(y),o[n.fingerprint]}),p=null===(u=n.routingKeys)||void 0===u?void 0:u.map(function(n){return new(r(d[7]).DidKey)(n).did+"#"+n.fingerprint});t.addService(new(r(d[8]).DidCommV1Service)({id:n.id,priority:c,serviceEndpoint:n.serviceEndpoint,recipientKeys:y,routingKeys:p}))}),t.build()}},1357,[1064,990,612,1082,1081,953,1088,987,1067]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1358,[1359,1410]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var d,o=arguments.length,s=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,r,i);else for(var c=t.length-1;c>=0;c--)(d=t[c])&&(s=(o<3?d(s):o>3?d(n,r,s):d(n,r))||s);return o>3&&s&&Object.defineProperty(n,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IndySdkSovDidRegistrar=void 0;var n=(function(){function t(){_r(_d[0])(this,t),this.supportedMethods=['sov']}return _r(_d[1])(t,[{key:"create",value:function(t,n){var r,i,d,o,s,c,u,l,p,f,v,y,b,D,h,w,R,M,S,x,k,I,P;return _r(_d[2]).async(function(E){for(;;)switch(E.prev=E.next){case 0:if(d=t.config.agentDependencies.indy,o=t.dependencyManager.resolve(_r(_d[3]).IndyPoolService),s=t.dependencyManager.resolve(_r(_d[4]).DidRepository),c=n.options,u=c.alias,l=c.role,p=c.submitterDid,f=c.indyNamespace,!(v=null===(r=n.secret)||void 0===r?void 0:r.seed)||'string'==typeof v&&32===v.length){E.next=7;break}return E.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 7:if(p.startsWith('did:sov:')){E.next=9;break}return E.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Submitter did must be a valid did:sov did'}});case 9:return E.prev=9,(0,_r(_d[5]).assertIndyWallet)(t.wallet),E.next=13,_r(_d[2]).awrap(d.createAndStoreMyDid(t.wallet.handle,{seed:v}));case 13:return y=E.sent,b=_r(_d[6])(y,2),D=b[0],h=b[1],w="did:sov:"+D,R=p.replace('did:sov:',''),M=o.getPoolForNamespace(f),E.next=22,_r(_d[2]).awrap(this.registerPublicDid(t,R,D,h,u,M,l));case 22:if(S=(0,_r(_d[7]).sovDidDocumentFromDid)(w,h),!n.options.endpoints){E.next=27;break}return E.next=26,_r(_d[2]).awrap(this.setEndpointsForDid(t,D,n.options.endpoints,M));case 26:(0,_r(_d[7]).addServicesFromEndpointsAttrib)(S,w,n.options.endpoints,w+"#key-agreement-1");case 27:return x=S.build(),k=M.config.indyNamespace,I="did:indy:"+k+":"+D,P=new(_r(_d[4]).DidRecord)({did:w,role:_r(_d[8]).DidDocumentRole.Created,tags:{recipientKeyFingerprints:x.recipientKeys.map(function(t){return t.fingerprint}),qualifiedIndyDid:I}}),E.next=33,_r(_d[2]).awrap(s.save(t,P));case 33:return E.abrupt("return",{didDocumentMetadata:{qualifiedIndyDid:I},didRegistrationMetadata:{didIndyNamespace:k},didState:{state:'finished',did:w,didDocument:x,secret:{seed:null===(i=n.secret)||void 0===i?void 0:i.seed}}});case 36:return E.prev=36,E.t0=E.catch(9),E.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknownError: "+E.t0.message}});case 39:case"end":return E.stop()}},null,this,[[9,36]],Promise)}},{key:"update",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: updating did:sov not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: deactivating did:sov not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"registerPublicDid",value:function(t,n,r,i,d,o,s){var c,u,l,p;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return c=t.dependencyManager.resolve(_r(_d[3]).IndyPoolService),u=t.config.agentDependencies.indy,f.prev=2,t.config.logger.debug("Register public did '"+r+"' on ledger '"+o.id+"'"),f.next=6,_r(_d[2]).awrap(u.buildNymRequest(n,r,i,d,s||null));case 6:return l=f.sent,f.next=9,_r(_d[2]).awrap(c.submitWriteRequest(t,o,l,n));case 9:return p=f.sent,t.config.logger.debug("Registered public did '"+r+"' on ledger '"+o.id+"'",{response:p}),f.abrupt("return",r);case 14:throw f.prev=14,f.t0=f.catch(2),t.config.logger.error("Error registering public did '"+r+"' on ledger '"+o.id+"'",{error:f.t0,submitterDid:n,targetDid:r,verkey:i,alias:d,role:s,pool:o.id}),f.t0;case 18:case"end":return f.stop()}},null,null,[[2,14]],Promise)}},{key:"setEndpointsForDid",value:function(t,n,r,i){var d,o,s,c;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return d=t.dependencyManager.resolve(_r(_d[3]).IndyPoolService),o=t.config.agentDependencies.indy,u.prev=2,t.config.logger.debug("Set endpoints for did '"+n+"' on ledger '"+i.id+"'",r),u.next=6,_r(_d[2]).awrap(o.buildAttribRequest(n,n,null,{endpoint:r},null));case 6:return s=u.sent,u.next=9,_r(_d[2]).awrap(d.submitWriteRequest(t,i,s,n));case 9:c=u.sent,t.config.logger.debug("Successfully set endpoints for did '"+n+"' on ledger '"+i.id+"'",{response:c,endpoints:r}),u.next=17;break;case 13:throw u.prev=13,u.t0=u.catch(2),t.config.logger.error("Error setting endpoints for did '"+n+"' on ledger '"+i.id+"'",{error:u.t0,did:n,endpoints:r}),(0,_r(_d[9]).isIndyError)(u.t0)?new(_r(_d[10]).IndySdkError)(u.t0):u.t0;case 17:case"end":return u.stop()}},null,null,[[2,13]],Promise)}}]),t})();n=t([(0,_r(_d[11]).injectable)()],n),e.IndySdkSovDidRegistrar=n},1359,[7,8,82,1360,1093,1366,31,1409,1099,1363,612,1020]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1360,[1361,1388,1382,1408]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1361,[1362,1376]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,i,n){var o,s=arguments.length,d=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(r,t,i,n);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(d=(s<3?o(d):s>3?o(t,i,d):o(t,i))||d);return s>3&&d&&Object.defineProperty(t,i,d),d},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},i=this&&this.__param||function(r,t){return function(i,n){t(i,n,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyLedgerService=void 0;var n=(function(){function r(t,i,n,o){_r(_d[0])(this,r),this.indy=t.indy,this.logger=i,this.indyIssuer=n,this.indyPoolService=o}return _r(_d[1])(r,[{key:"setPools",value:function(r){return this.indyPoolService.setPools(r)}},{key:"getDidIndyWriteNamespace",value:function(){return this.indyPoolService.ledgerWritePool.config.indyNamespace}},{key:"connectToPools",value:function(){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.indyPoolService.connectToPools());case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"registerPublicDid",value:function(r,t,i,n,o,s){var d,c,l;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return d=this.indyPoolService.getPoolForNamespace(),u.prev=1,this.logger.debug("Register public did '"+i+"' on ledger '"+d.id+"'"),u.next=5,_r(_d[2]).awrap(this.indy.buildNymRequest(t,i,n,o,s||null));case 5:return c=u.sent,u.next=8,_r(_d[2]).awrap(this.indyPoolService.submitWriteRequest(r,d,c,t));case 8:return l=u.sent,this.logger.debug("Registered public did '"+i+"' on ledger '"+d.id+"'",{response:l}),u.abrupt("return",i);case 13:throw u.prev=13,u.t0=u.catch(1),this.logger.error("Error registering public did '"+i+"' on ledger '"+d.id+"'",{error:u.t0,submitterDid:t,targetDid:i,verkey:n,alias:o,role:s,pool:d.id}),u.t0;case 17:case"end":return u.stop()}},null,this,[[1,13]],Promise)}},{key:"getPublicDid",value:function(r,t){var i,n;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,t));case 2:return i=o.sent,n=i.did,o.abrupt("return",n);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"setEndpointsForDid",value:function(r,t,i){var n,o,s;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=this.indyPoolService.getPoolForNamespace(),d.prev=1,this.logger.debug("Set endpoints for did '"+t+"' on ledger '"+n.id+"'",i),d.next=5,_r(_d[2]).awrap(this.indy.buildAttribRequest(t,t,null,{endpoint:i},null));case 5:return o=d.sent,d.next=8,_r(_d[2]).awrap(this.indyPoolService.submitWriteRequest(r,n,o,t));case 8:s=d.sent,this.logger.debug("Successfully set endpoints for did '"+t+"' on ledger '"+n.id+"'",{response:s,endpoints:i}),d.next=16;break;case 12:throw d.prev=12,d.t0=d.catch(1),this.logger.error("Error setting endpoints for did '"+t+"' on ledger '"+n.id+"'",{error:d.t0,did:t,endpoints:i}),(0,_r(_d[3]).isIndyError)(d.t0)?new(_r(_d[4]).IndySdkError)(d.t0):d.t0;case 16:case"end":return d.stop()}},null,this,[[1,12]],Promise)}},{key:"getEndpointsForDid",value:function(r,t){var i,n,o,s,d,c;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,t));case 2:return n=l.sent,o=n.pool,l.prev=4,this.logger.debug("Get endpoints for did '"+t+"' from ledger '"+o.id+"'"),l.next=8,_r(_d[2]).awrap(this.indy.buildGetAttribRequest(null,t,'endpoint',null,null));case 8:return s=l.sent,this.logger.debug("Submitting get endpoint ATTRIB request for did '"+t+"' to ledger '"+o.id+"'"),l.next=12,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(o,s));case 12:if((d=l.sent).result.data){l.next=15;break}return l.abrupt("return",{});case 15:return c=null===(i=JSON.parse(d.result.data))||void 0===i?void 0:i.endpoint,this.logger.debug("Got endpoints '"+JSON.stringify(c)+"' for did '"+t+"' from ledger '"+o.id+"'",{response:d,endpoints:c}),l.abrupt("return",null!==c&&void 0!==c?c:{});case 20:throw l.prev=20,l.t0=l.catch(4),this.logger.error("Error retrieving endpoints for did '"+t+"' from ledger '"+o.id+"'",{error:l.t0}),(0,_r(_d[3]).isIndyError)(l.t0)?new(_r(_d[4]).IndySdkError)(l.t0):l.t0;case 24:case"end":return l.stop()}},null,this,[[4,20]],Promise)}},{key:"registerSchema",value:function(r,t,i){var n,o,s,d,c,l,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return n=this.indyPoolService.getPoolForNamespace(),p.prev=1,this.logger.debug("Register schema on ledger '"+n.id+"' with did '"+t+"'",i),o=i.name,s=i.attributes,d=i.version,p.next=6,_r(_d[2]).awrap(this.indyIssuer.createSchema(r,{originDid:t,name:o,version:d,attributes:s}));case 6:return c=p.sent,p.next=9,_r(_d[2]).awrap(this.indy.buildSchemaRequest(t,c));case 9:return l=p.sent,p.next=12,_r(_d[2]).awrap(this.indyPoolService.submitWriteRequest(r,n,l,t));case 12:return u=p.sent,this.logger.debug("Registered schema '"+c.id+"' on ledger '"+n.id+"'",{response:u,schema:c}),c.seqNo=u.result.txnMetadata.seqNo,p.abrupt("return",c);case 18:throw p.prev=18,p.t0=p.catch(1),this.logger.error("Error registering schema for did '"+t+"' on ledger '"+n.id+"'",{error:p.t0,did:t,schemaTemplate:i}),(0,_r(_d[3]).isIndyError)(p.t0)?new(_r(_d[4]).IndySdkError)(p.t0):p.t0;case 22:case"end":return p.stop()}},null,this,[[1,18]],Promise)}},{key:"getSchema",value:function(r,t){var i,n,o,s,d,c,l,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return i=(0,_r(_d[5]).didFromSchemaId)(t),p.next=3,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return n=p.sent,o=n.pool,p.prev=5,this.logger.debug("Getting schema '"+t+"' from ledger '"+o.id+"'"),p.next=9,_r(_d[2]).awrap(this.indy.buildGetSchemaRequest(null,t));case 9:return s=p.sent,this.logger.trace("Submitting get schema request for schema '"+t+"' to ledger '"+o.id+"'"),p.next=13,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(o,s));case 13:return d=p.sent,this.logger.trace("Got un-parsed schema '"+t+"' from ledger '"+o.id+"'",{response:d}),p.next=17,_r(_d[2]).awrap(this.indy.parseGetSchemaResponse(d));case 17:return c=p.sent,l=_r(_d[6])(c,2),u=l[1],this.logger.debug("Got schema '"+t+"' from ledger '"+o.id+"'",{schema:u}),p.abrupt("return",u);case 24:throw p.prev=24,p.t0=p.catch(5),this.logger.error("Error retrieving schema '"+t+"' from ledger '"+o.id+"'",{error:p.t0,schemaId:t}),(0,_r(_d[3]).isIndyError)(p.t0)?new(_r(_d[4]).IndySdkError)(p.t0):p.t0;case 28:case"end":return p.stop()}},null,this,[[5,24]],Promise)}},{key:"registerCredentialDefinition",value:function(r,t,i){var n,o,s,d,c,l,u,p;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=this.indyPoolService.getPoolForNamespace(),h.prev=1,this.logger.debug("Registering credential definition on ledger '"+n.id+"' with did '"+t+"'",i),o=i.schema,s=i.tag,d=i.signatureType,c=i.supportRevocation,h.next=6,_r(_d[2]).awrap(this.indyIssuer.createCredentialDefinition(r,{issuerDid:t,schema:o,tag:s,signatureType:d,supportRevocation:c}));case 6:return l=h.sent,h.next=9,_r(_d[2]).awrap(this.indy.buildCredDefRequest(t,l));case 9:return u=h.sent,h.next=12,_r(_d[2]).awrap(this.indyPoolService.submitWriteRequest(r,n,u,t));case 12:return p=h.sent,this.logger.debug("Registered credential definition '"+l.id+"' on ledger '"+n.id+"'",{response:p,credentialDefinition:l}),h.abrupt("return",l);case 17:throw h.prev=17,h.t0=h.catch(1),this.logger.error("Error registering credential definition for schema '"+i.schema.id+"' on ledger '"+n.id+"'",{error:h.t0,did:t,credentialDefinitionTemplate:i}),(0,_r(_d[3]).isIndyError)(h.t0)?new(_r(_d[4]).IndySdkError)(h.t0):h.t0;case 21:case"end":return h.stop()}},null,this,[[1,17]],Promise)}},{key:"getCredentialDefinition",value:function(r,t){var i,n,o,s,d,c,l,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return i=(0,_r(_d[5]).didFromCredentialDefinitionId)(t),p.next=3,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return n=p.sent,o=n.pool,this.logger.debug("Using ledger '"+o.id+"' to retrieve credential definition '"+t+"'"),p.prev=6,p.next=9,_r(_d[2]).awrap(this.indy.buildGetCredDefRequest(null,t));case 9:return s=p.sent,this.logger.trace("Submitting get credential definition request for credential definition '"+t+"' to ledger '"+o.id+"'"),p.next=13,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(o,s));case 13:return d=p.sent,this.logger.trace("Got un-parsed credential definition '"+t+"' from ledger '"+o.id+"'",{response:d}),p.next=17,_r(_d[2]).awrap(this.indy.parseGetCredDefResponse(d));case 17:return c=p.sent,l=_r(_d[6])(c,2),u=l[1],this.logger.debug("Got credential definition '"+t+"' from ledger '"+o.id+"'",{credentialDefinition:u}),p.abrupt("return",u);case 24:throw p.prev=24,p.t0=p.catch(6),this.logger.error("Error retrieving credential definition '"+t+"' from ledger '"+o.id+"'",{error:p.t0,credentialDefinitionId:t,pool:o.id}),(0,_r(_d[3]).isIndyError)(p.t0)?new(_r(_d[4]).IndySdkError)(p.t0):p.t0;case 28:case"end":return p.stop()}},null,this,[[6,24]],Promise)}},{key:"getRevocationRegistryDefinition",value:function(r,t){var i,n,o,s,d,c,l,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return i=(0,_r(_d[5]).didFromRevocationRegistryDefinitionId)(t),p.next=3,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return n=p.sent,o=n.pool,this.logger.debug("Using ledger '"+o.id+"' to retrieve revocation registry definition '"+t+"'"),p.prev=6,this.logger.trace("Revocation Registry Definition '"+t+"' not cached, retrieving from ledger"),p.next=10,_r(_d[2]).awrap(this.indy.buildGetRevocRegDefRequest(null,t));case 10:return s=p.sent,this.logger.trace("Submitting get revocation registry definition request for revocation registry definition '"+t+"' to ledger"),p.next=14,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(o,s));case 14:return d=p.sent,this.logger.trace("Got un-parsed revocation registry definition '"+t+"' from ledger '"+o.id+"'",{response:d}),p.next=18,_r(_d[2]).awrap(this.indy.parseGetRevocRegDefResponse(d));case 18:return c=p.sent,l=_r(_d[6])(c,2),u=l[1],this.logger.debug("Got revocation registry definition '"+t+"' from ledger",{revocationRegistryDefinition:u}),p.abrupt("return",{revocationRegistryDefinition:u,revocationRegistryDefinitionTxnTime:d.result.txnTime});case 25:throw p.prev=25,p.t0=p.catch(6),this.logger.error("Error retrieving revocation registry definition '"+t+"' from ledger",{error:p.t0,revocationRegistryDefinitionId:t,pool:o.id}),p.t0;case 29:case"end":return p.stop()}},null,this,[[6,25]],Promise)}},{key:"getRevocationRegistryDelta",value:function(r,t){var i,n,o,s,d,c,l,u,p,h,v,y=arguments;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=y.length>2&&void 0!==y[2]?y[2]:(new Date).getTime(),n=y.length>3&&void 0!==y[3]?y[3]:0,o=(0,_r(_d[5]).didFromRevocationRegistryDefinitionId)(t),f.next=5,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,o));case 5:return s=f.sent,d=s.pool,this.logger.debug("Using ledger '"+d.id+"' to retrieve revocation registry delta with revocation registry definition id: '"+t+"'",{to:i,from:n}),f.prev=8,f.next=11,_r(_d[2]).awrap(this.indy.buildGetRevocRegDeltaRequest(null,t,n,i));case 11:return c=f.sent,this.logger.trace("Submitting get revocation registry delta request for revocation registry '"+t+"' to ledger"),f.next=15,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(d,c));case 15:return l=f.sent,this.logger.trace("Got revocation registry delta unparsed-response '"+t+"' from ledger",{response:l}),f.next=19,_r(_d[2]).awrap(this.indy.parseGetRevocRegDeltaResponse(l));case 19:return u=f.sent,p=_r(_d[6])(u,3),h=p[1],v=p[2],this.logger.debug("Got revocation registry delta '"+t+"' from ledger",{revocationRegistryDelta:h,deltaTimestamp:v,to:i,from:n}),f.abrupt("return",{revocationRegistryDelta:h,deltaTimestamp:v});case 27:throw f.prev=27,f.t0=f.catch(8),this.logger.error("Error retrieving revocation registry delta '"+t+"' from ledger, potentially revocation interval ends before revocation registry creation?\"",{error:f.t0,revocationRegistryId:t,pool:d.id}),f.t0;case 31:case"end":return f.stop()}},null,this,[[8,27]],Promise)}},{key:"getRevocationRegistry",value:function(r,t,i){var n,o,s,d,c,l,u,p,h;return _r(_d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return n=(0,_r(_d[5]).didFromRevocationRegistryDefinitionId)(t),v.next=3,_r(_d[2]).awrap(this.indyPoolService.getPoolForDid(r,n));case 3:return o=v.sent,s=o.pool,this.logger.debug("Using ledger '"+s.id+"' to retrieve revocation registry accumulated state with revocation registry definition id: '"+t+"'",{timestamp:i}),v.prev=6,v.next=9,_r(_d[2]).awrap(this.indy.buildGetRevocRegRequest(null,t,i));case 9:return d=v.sent,this.logger.trace("Submitting get revocation registry request for revocation registry '"+t+"' to ledger"),v.next=13,_r(_d[2]).awrap(this.indyPoolService.submitReadRequest(s,d));case 13:return c=v.sent,this.logger.trace("Got un-parsed revocation registry '"+t+"' from ledger '"+s.id+"'",{response:c}),v.next=17,_r(_d[2]).awrap(this.indy.parseGetRevocRegResponse(c));case 17:return l=v.sent,u=_r(_d[6])(l,3),p=u[1],h=u[2],this.logger.debug("Got revocation registry '"+t+"' from ledger",{ledgerTimestamp:h,revocationRegistry:p}),v.abrupt("return",{revocationRegistry:p,ledgerTimestamp:h});case 25:throw v.prev=25,v.t0=v.catch(6),this.logger.error("Error retrieving revocation registry '"+t+"' from ledger",{error:v.t0,revocationRegistryId:t,pool:s.id}),v.t0;case 29:case"end":return v.stop()}},null,this,[[6,25]],Promise)}}]),r})();n=r([(0,_r(_d[7]).injectable)(),i(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.AgentDependencies)),i(1,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.Logger)),t("design:paramtypes",[Object,Object,_r(_d[9]).IndyIssuerService,_r(_d[10]).IndyPoolService])],n),e.IndyLedgerService=n},1362,[7,8,82,1363,620,1364,31,1020,1104,1365,1376]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIndyError=e.indyErrors=void 0,e.indyErrors={100:'CommonInvalidParam1',101:'CommonInvalidParam2',102:'CommonInvalidParam3',103:'CommonInvalidParam4',104:'CommonInvalidParam5',105:'CommonInvalidParam6',106:'CommonInvalidParam7',107:'CommonInvalidParam8',108:'CommonInvalidParam9',109:'CommonInvalidParam10',110:'CommonInvalidParam11',111:'CommonInvalidParam12',112:'CommonInvalidState',113:'CommonInvalidStructure',114:'CommonIOError',115:'CommonInvalidParam13',116:'CommonInvalidParam14',200:'WalletInvalidHandle',201:'WalletUnknownTypeError',202:'WalletTypeAlreadyRegisteredError',203:'WalletAlreadyExistsError',204:'WalletNotFoundError',205:'WalletIncompatiblePoolError',206:'WalletAlreadyOpenedError',207:'WalletAccessFailed',208:'WalletInputError',209:'WalletDecodingError',210:'WalletStorageError',211:'WalletEncryptionError',212:'WalletItemNotFound',213:'WalletItemAlreadyExists',214:'WalletQueryError',300:'PoolLedgerNotCreatedError',301:'PoolLedgerInvalidPoolHandle',302:'PoolLedgerTerminated',303:'LedgerNoConsensusError',304:'LedgerInvalidTransaction',305:'LedgerSecurityError',306:'PoolLedgerConfigAlreadyExistsError',307:'PoolLedgerTimeout',308:'PoolIncompatibleProtocolVersion',309:'LedgerNotFound',400:'AnoncredsRevocationRegistryFullError',401:'AnoncredsInvalidUserRevocId',404:'AnoncredsMasterSecretDuplicateNameError',405:'AnoncredsProofRejected',406:'AnoncredsCredentialRevoked',407:'AnoncredsCredDefAlreadyExistsError',500:'UnknownCryptoTypeError',600:'DidAlreadyExistsError',700:'PaymentUnknownMethodError',701:'PaymentIncompatibleMethodsError',702:'PaymentInsufficientFundsError',703:'PaymentSourceDoesNotExistError',704:'PaymentOperationNotSupportedError',705:'PaymentExtraFundsError',706:'TransactionNotAllowedError'},e.isIndyError=function(o,n){if('object'!=typeof o||null===o)return!1;var t='IndyError'===o.name;if(!t||!n)return t;if(!o.indyName){var l=Number(o.message);if(!isNaN(l)&&Object.prototype.hasOwnProperty.call(e.indyErrors,l))return n===e.indyErrors[l];throw new(r(d[0]).AriesFrameworkError)("Could not determine errorName of indyError "+o.message)}return o.indyName===n}},1363,[612]); -__d(function(g,r,i,a,m,e,d){"use strict";function E(E){var t=r(d[0]).TypedArrayEncoder.fromBase58(E);return r(d[0]).TypedArrayEncoder.toBase58(t.slice(0,16))}function t(E){return e.FULL_VERKEY_REGEX.test(E)}function n(E){return e.ABBREVIATED_VERKEY_REGEX.test(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.getIndyDidFromVerificationMethod=e.isDidIdentifier=e.isDid=e.isVerkey=e.isAbbreviatedVerkey=e.isFullVerkey=e.didFromRevocationRegistryDefinitionId=e.didFromCredentialDefinitionId=e.didFromSchemaId=e.getFullVerkey=e.indyDidFromPublicKeyBase58=e.isSelfCertifiedDid=e.DID_IDENTIFIER_REGEX=e.DID_REGEX=e.VERKEY_REGEX=e.ABBREVIATED_VERKEY_REGEX=e.FULL_VERKEY_REGEX=void 0,e.FULL_VERKEY_REGEX=/^[1-9A-HJ-NP-Za-km-z]{43,44}$/,e.ABBREVIATED_VERKEY_REGEX=/^~[1-9A-HJ-NP-Za-km-z]{21,22}$/,e.VERKEY_REGEX=new RegExp(e.FULL_VERKEY_REGEX.source+"|"+e.ABBREVIATED_VERKEY_REGEX.source),e.DID_REGEX=/^did:([a-z]+):([a-zA-z\d]+)/,e.DID_IDENTIFIER_REGEX=/^[a-zA-z\d-]+$/,e.isSelfCertifiedDid=function(t,o){return!!n(o)||E(o)===t},e.indyDidFromPublicKeyBase58=E,e.getFullVerkey=function(E,n){var o;if(t(n))return n;var s=null!==(o=E.split(':').pop())&&void 0!==o?o:E,u=n.slice(1);return r(d[0]).TypedArrayEncoder.toBase58(r(d[1]).Buffer.concat([r(d[0]).TypedArrayEncoder.fromBase58(s),r(d[0]).TypedArrayEncoder.fromBase58(u)]))},e.didFromSchemaId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.didFromCredentialDefinitionId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.didFromRevocationRegistryDefinitionId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.isFullVerkey=t,e.isAbbreviatedVerkey=n,e.isVerkey=function(E){return e.VERKEY_REGEX.test(E)},e.isDid=function(E){return e.DID_REGEX.test(E)},e.isDidIdentifier=function(E){return e.DID_IDENTIFIER_REGEX.test(E)},e.getIndyDidFromVerificationMethod=function(E){if(!(null===E||void 0===E?void 0:E.publicKeyBase58))throw new Error("Unable to get publicKeyBase58 from verification method");var t=r(d[0]).TypedArrayEncoder.fromBase58(E.publicKeyBase58);return r(d[0]).TypedArrayEncoder.toBase58(t.slice(0,16))}},1364,[994,981,31]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var s,c=arguments.length,o=c<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,n,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(o=(c<3?s(o):c>3?s(r,n,o):s(r,n))||o);return c>3&&o&&Object.defineProperty(r,n,o),o},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},n=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyIssuerService=void 0;var i=(function(){function t(r,n){_r(_d[0])(this,t),this.indy=n.indy,this.indyUtilitiesService=r}return _r(_d[1])(t,[{key:"createSchema",value:function(t,r){var n,i,s,c,o,u,l;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=r.originDid,i=r.name,s=r.version,c=r.attributes,(0,_r(_d[3]).assertIndyWallet)(t.wallet),d.prev=2,d.next=5,_r(_d[2]).awrap(this.indy.issuerCreateSchema(n,i,s,c));case 5:return o=d.sent,u=_r(_d[4])(o,2),l=u[1],d.abrupt("return",l);case 11:throw d.prev=11,d.t0=d.catch(2),(0,_r(_d[5]).isIndyError)(d.t0)?new(_r(_d[6]).IndySdkError)(d.t0):d.t0;case 14:case"end":return d.stop()}},null,this,[[2,11]],Promise)}},{key:"createCredentialDefinition",value:function(t,r){var n,i,s,c,o,u,l,d,f,p,y;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=r.issuerDid,i=r.schema,s=r.tag,c=void 0===s?'default':s,o=r.signatureType,u=void 0===o?'CL':o,l=r.supportRevocation,d=void 0!==l&&l,(0,_r(_d[3]).assertIndyWallet)(t.wallet),h.prev=2,h.next=5,_r(_d[2]).awrap(this.indy.issuerCreateAndStoreCredentialDef(t.wallet.handle,n,i,c,u,{support_revocation:d}));case 5:return f=h.sent,p=_r(_d[4])(f,2),y=p[1],h.abrupt("return",y);case 11:throw h.prev=11,h.t0=h.catch(2),(0,_r(_d[5]).isIndyError)(h.t0)?new(_r(_d[6]).IndySdkError)(h.t0):h.t0;case 14:case"end":return h.stop()}},null,this,[[2,11]],Promise)}},{key:"createCredentialOffer",value:function(t,r){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return(0,_r(_d[3]).assertIndyWallet)(t.wallet),n.prev=1,n.next=4,_r(_d[2]).awrap(this.indy.issuerCreateCredentialOffer(t.wallet.handle,r));case 4:return n.abrupt("return",n.sent);case 7:throw n.prev=7,n.t0=n.catch(1),(0,_r(_d[5]).isIndyError)(n.t0)?new(_r(_d[6]).IndySdkError)(n.t0):n.t0;case 10:case"end":return n.stop()}},null,this,[[1,7]],Promise)}},{key:"createCredential",value:function(t,r){var n,i,s,c,o,u,l,d,f,p;return _r(_d[2]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=r.credentialOffer,i=r.credentialRequest,s=r.credentialValues,c=r.revocationRegistryId,o=r.tailsFilePath,(0,_r(_d[3]).assertIndyWallet)(t.wallet),y.prev=2,!o){y.next=9;break}return y.next=6,_r(_d[2]).awrap(this.indyUtilitiesService.createTailsReader(o));case 6:y.t0=y.sent,y.next=10;break;case 9:y.t0=0;case 10:if(u=y.t0,!c&&!o){y.next=13;break}throw new(_r(_d[7]).AriesFrameworkError)('Revocation not supported yet');case 13:return y.next=15,_r(_d[2]).awrap(this.indy.issuerCreateCredential(t.wallet.handle,n,i,s,null!==c&&void 0!==c?c:null,u));case 15:return l=y.sent,d=_r(_d[4])(l,2),f=d[0],p=d[1],y.abrupt("return",[f,p]);case 22:throw y.prev=22,y.t1=y.catch(2),(0,_r(_d[5]).isIndyError)(y.t1)?new(_r(_d[6]).IndySdkError)(y.t1):y.t1;case 25:case"end":return y.stop()}},null,this,[[2,22]],Promise)}}]),t})();i=t([(0,_r(_d[8]).injectable)(),n(1,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.AgentDependencies)),r("design:paramtypes",[_r(_d[10]).IndyUtilitiesService,Object])],i),e.IndyIssuerService=i},1365,[7,8,82,1366,31,1363,620,613,1020,1104,1374]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertIndyWallet=void 0,e.assertIndyWallet=function(n){var t,o;if(!(n instanceof r(d[0]).IndyWallet)){var l=null!==(o=null===(t=n.constructor)||void 0===t?void 0:t.name)&&void 0!==o?o:'unknown';throw new(r(d[1]).AriesFrameworkError)("Expected wallet to be instance of IndyWallet, found "+l)}}},1366,[1367,612]); -__d(function(g,_r,_i,a,m,e,_d2){"use strict";var r=this&&this.__decorate||function(r,t,n,i){var o,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(r,t,n,i);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(l=(s<3?o(l):s>3?o(t,n,l):o(t,n))||l);return s>3&&l&&Object.defineProperty(t,n,l),l},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},n=this&&this.__param||function(r,t){return function(n,i){t(n,i,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyWallet=void 0;var i=(function(){function r(t,n,i){_r(_d2[0])(this,r),this.logger=n,this.signingKeyProviderRegistry=i,this.indy=t.indy}return _r(_d2[1])(r,[{key:"isProvisioned",get:function(){return void 0!==this.walletConfig}},{key:"isInitialized",get:function(){return void 0!==this.walletHandle}},{key:"publicDid",get:function(){return this.publicDidInfo}},{key:"handle",get:function(){if(!this.walletHandle)throw new(_r(_d2[2]).AriesFrameworkError)('Wallet has not been initialized yet. Make sure to await agent.initialize() before using the agent.');return this.walletHandle}},{key:"masterSecretId",get:function(){var r,t,n,i;if(!this.isInitialized||!((null===(r=this.walletConfig)||void 0===r?void 0:r.id)||(null===(t=this.walletConfig)||void 0===t?void 0:t.masterSecretId)))throw new(_r(_d2[2]).AriesFrameworkError)('Wallet has not been initialized yet. Make sure to await agent.initialize() before using the agent.');return null!==(i=null===(n=this.walletConfig)||void 0===n?void 0:n.masterSecretId)&&void 0!==i?i:this.walletConfig.id}},{key:"dispose",value:function(){return _r(_d2[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.isInitialized){r.next=3;break}return r.next=3,_r(_d2[3]).awrap(this.close());case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"walletStorageConfig",value:function(r){var t,n,i,o={id:r.id,storage_type:null===(t=r.storage)||void 0===t?void 0:t.type};return(null===(n=r.storage)||void 0===n?void 0:n.config)&&(o.storage_config=null===(i=r.storage)||void 0===i?void 0:i.config),o}},{key:"walletCredentials",value:function(r,t,n){var i,o,s={key:r.key,key_derivation_method:r.keyDerivationMethod};return t&&(s.rekey=t),n&&(s.rekey_derivation_method=n),(null===(i=r.storage)||void 0===i?void 0:i.credentials)&&(s.storage_credentials=null===(o=r.storage)||void 0===o?void 0:o.credentials),s}},{key:"create",value:function(r){return _r(_d2[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d2[3]).awrap(this.createAndOpen(r));case 2:return t.next=4,_r(_d2[3]).awrap(this.close());case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"createAndOpen",value:function(r){var t,n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return this.logger.debug("Creating wallet '"+r.id+"' using SQLite storage"),i.prev=1,i.next=4,_r(_d2[3]).awrap(this.indy.createWallet(this.walletStorageConfig(r),this.walletCredentials(r)));case 4:return this.walletConfig=r,i.next=7,_r(_d2[3]).awrap(this.open(r));case 7:return i.next=9,_r(_d2[3]).awrap(this.createMasterSecret(this.handle,this.masterSecretId));case 9:i.next=27;break;case 11:if(i.prev=11,i.t0=i.catch(1),!this.isInitialized){i.next=16;break}return i.next=16,_r(_d2[3]).awrap(this.close());case 16:if(!(0,_r(_d2[4]).isIndyError)(i.t0,'WalletAlreadyExistsError')){i.next=22;break}throw t="Wallet '"+r.id+"' already exists",this.logger.debug(t),new(_r(_d2[5]).WalletDuplicateError)(t,{walletType:'IndyWallet',cause:i.t0});case 22:if((0,_r(_d2[6]).isError)(i.t0)){i.next=24;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 24:throw n="Error creating wallet '"+r.id+"'",this.logger.error(n,{error:i.t0,errorMessage:i.t0.message}),new(_r(_d2[5]).WalletError)(n,{cause:i.t0});case 27:this.logger.debug("Successfully created wallet '"+r.id+"'");case 28:case"end":return i.stop()}},null,this,[[1,11]],Promise)}},{key:"open",value:function(r){return _r(_d2[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d2[3]).awrap(this._open(r));case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"rotateKey",value:function(r){return _r(_d2[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.rekey){t.next=2;break}throw new(_r(_d2[5]).WalletError)('Wallet rekey undefined!. Please specify the new wallet key');case 2:return t.next=4,_r(_d2[3]).awrap(this._open({id:r.id,key:r.key,keyDerivationMethod:r.keyDerivationMethod},r.rekey,r.rekeyDerivationMethod));case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"_open",value:function(r,t,n){var i,o,s;return _r(_d2[3]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.walletHandle){l.next=2;break}throw new(_r(_d2[5]).WalletError)('Wallet instance already opened. Close the currently opened wallet before re-opening the wallet');case 2:return l.prev=2,l.next=5,_r(_d2[3]).awrap(this.indy.openWallet(this.walletStorageConfig(r),this.walletCredentials(r,t,n)));case 5:this.walletHandle=l.sent,this.walletConfig=t?_r(_d2[7])(_r(_d2[7])({},r),{key:t,keyDerivationMethod:n}):r,l.next=28;break;case 9:if(l.prev=9,l.t0=l.catch(2),!(0,_r(_d2[4]).isIndyError)(l.t0,'WalletNotFoundError')){l.next=17;break}throw i="Wallet '"+r.id+"' not found",this.logger.debug(i),new(_r(_d2[5]).WalletNotFoundError)(i,{walletType:'IndyWallet',cause:l.t0});case 17:if(!(0,_r(_d2[4]).isIndyError)(l.t0,'WalletAccessFailed')){l.next=23;break}throw o="Incorrect key for wallet '"+r.id+"'",this.logger.debug(o),new(_r(_d2[8]).WalletInvalidKeyError)(o,{walletType:'IndyWallet',cause:l.t0});case 23:if((0,_r(_d2[6]).isError)(l.t0)){l.next=25;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 25:throw s="Error opening wallet '"+r.id+"': "+l.t0.message,this.logger.error(s,{error:l.t0,errorMessage:l.t0.message}),new(_r(_d2[5]).WalletError)(s,{cause:l.t0});case 28:this.logger.debug("Wallet '"+r.id+"' opened with handle '"+this.handle+"'");case 29:case"end":return l.stop()}},null,this,[[2,9]],Promise)}},{key:"delete",value:function(){var r,t;return _r(_d2[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this.walletConfig){n.next=2;break}throw new(_r(_d2[5]).WalletError)('Can not delete wallet that does not have wallet config set. Make sure to call create wallet before deleting the wallet');case 2:if(this.logger.info("Deleting wallet '"+this.walletConfig.id+"'"),!this.walletHandle){n.next=6;break}return n.next=6,_r(_d2[3]).awrap(this.close());case 6:return n.prev=6,n.next=9,_r(_d2[3]).awrap(this.indy.deleteWallet(this.walletStorageConfig(this.walletConfig),this.walletCredentials(this.walletConfig)));case 9:n.next=24;break;case 11:if(n.prev=11,n.t0=n.catch(6),!(0,_r(_d2[4]).isIndyError)(n.t0,'WalletNotFoundError')){n.next=19;break}throw r="Error deleting wallet: wallet '"+this.walletConfig.id+"' not found",this.logger.debug(r),new(_r(_d2[5]).WalletNotFoundError)(r,{walletType:'IndyWallet',cause:n.t0});case 19:if((0,_r(_d2[6]).isError)(n.t0)){n.next=21;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 21:throw t="Error deleting wallet '"+this.walletConfig.id+"': "+n.t0.message,this.logger.error(t,{error:n.t0,errorMessage:n.t0.message}),new(_r(_d2[5]).WalletError)(t,{cause:n.t0});case 24:case"end":return n.stop()}},null,this,[[6,11]],Promise)}},{key:"export",value:function(r){var t,n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,this.logger.debug("Exporting wallet "+(null===(t=this.walletConfig)||void 0===t?void 0:t.id)+" to path "+r.path),i.next=4,_r(_d2[3]).awrap(this.indy.exportWallet(this.handle,r));case 4:i.next=13;break;case 6:if(i.prev=6,i.t0=i.catch(0),(0,_r(_d2[6]).isError)(i.t0)){i.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw n="Error exporting wallet: "+i.t0.message,this.logger.error(n,{error:i.t0}),new(_r(_d2[5]).WalletError)(n,{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"import",value:function(r,t){var n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,this.logger.debug("Importing wallet "+r.id+" from path "+t.path),i.next=4,_r(_d2[3]).awrap(this.indy.importWallet({id:r.id},{key:r.key,key_derivation_method:r.keyDerivationMethod},t));case 4:i.next=13;break;case 6:if(i.prev=6,i.t0=i.catch(0),(0,_r(_d2[6]).isError)(i.t0)){i.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw n="Error importing wallet': "+i.t0.message,this.logger.error(n,{error:i.t0}),new(_r(_d2[5]).WalletError)(n,{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"close",value:function(){var r,t,n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.logger.debug("Closing wallet "+(null===(r=this.walletConfig)||void 0===r?void 0:r.id)),this.walletHandle){i.next=3;break}throw new(_r(_d2[5]).WalletError)('Wallet is in invalid state, you are trying to close wallet that has no `walletHandle`.');case 3:return i.prev=3,i.next=6,_r(_d2[3]).awrap(this.indy.closeWallet(this.walletHandle));case 6:this.walletHandle=void 0,this.publicDidInfo=void 0,i.next=23;break;case 10:if(i.prev=10,i.t0=i.catch(3),!(0,_r(_d2[4]).isIndyError)(i.t0,'WalletInvalidHandle')){i.next=18;break}throw t="Error closing wallet: wallet already closed",this.logger.debug(t),new(_r(_d2[5]).WalletError)(t,{cause:i.t0});case 18:if((0,_r(_d2[6]).isError)(i.t0)){i.next=20;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 20:throw n="Error closing wallet': "+i.t0.message,this.logger.error(n,{error:i.t0,errorMessage:i.t0.message}),new(_r(_d2[5]).WalletError)(n,{cause:i.t0});case 23:case"end":return i.stop()}},null,this,[[3,10]],Promise)}},{key:"createMasterSecret",value:function(r,t){return _r(_d2[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return this.logger.debug("Creating master secret with id '"+t+"' in wallet with handle '"+r+"'"),n.prev=1,n.next=4,_r(_d2[3]).awrap(this.indy.proverCreateMasterSecret(r,t));case 4:return n.abrupt("return",t);case 7:if(n.prev=7,n.t0=n.catch(1),!(0,_r(_d2[4]).isIndyError)(n.t0,'AnoncredsMasterSecretDuplicateNameError')){n.next=14;break}return this.logger.debug("Master secret with id '"+t+"' already exists in wallet with handle '"+r+"'",{indyError:'AnoncredsMasterSecretDuplicateNameError'}),n.abrupt("return",t);case 14:if((0,_r(_d2[4]).isIndyError)(n.t0)){n.next=16;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw Indy error, but it was not an Indy error');case 16:throw this.logger.error("Error creating master secret with id "+t,{indyError:n.t0.indyName,error:n.t0}),new(_r(_d2[5]).WalletError)("Error creating master secret with id "+t+" in wallet with handle '"+r+"'",{cause:n.t0});case 18:case"end":return n.stop()}},null,this,[[1,7]],Promise)}},{key:"initPublicDid",value:function(r){var t,n,i,o;return _r(_d2[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,_r(_d2[3]).awrap(this.indy.createAndStoreMyDid(this.handle,r||{}));case 3:t=s.sent,n=_r(_d2[9])(t,2),i=n[0],o=n[1],this.publicDidInfo={did:i,verkey:o},s.next=15;break;case 10:if(s.prev=10,s.t0=s.catch(0),(0,_r(_d2[6]).isError)(s.t0)){s.next=14;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 14:throw new(_r(_d2[5]).WalletError)('Error creating Did',{cause:s.t0});case 15:case"end":return s.stop()}},null,this,[[0,10]],Promise)}},{key:"createKey",value:function(r){var t,n,i,o,s;return _r(_d2[3]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=r.seed,n=r.keyType,l.prev=1,n!==_r(_d2[10]).KeyType.Ed25519){l.next=7;break}return l.next=5,_r(_d2[3]).awrap(this.indy.createKey(this.handle,{seed:t,crypto_type:'ed25519'}));case 5:return i=l.sent,l.abrupt("return",_r(_d2[11]).Key.fromPublicKeyBase58(i,n));case 7:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(n)){l.next=15;break}return o=this.signingKeyProviderRegistry.getProviderForKeyType(n),l.next=11,_r(_d2[3]).awrap(o.createKeyPair({seed:t}));case 11:return s=l.sent,l.next=14,_r(_d2[3]).awrap(this.storeKeyPair(s));case 14:return l.abrupt("return",_r(_d2[11]).Key.fromPublicKeyBase58(s.publicKeyBase58,n));case 15:l.next=22;break;case 17:if(l.prev=17,l.t0=l.catch(1),(0,_r(_d2[6]).isError)(l.t0)){l.next=21;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 21:throw new(_r(_d2[5]).WalletError)("Error creating key with key type '"+n+"': "+l.t0.message,{cause:l.t0});case 22:throw new(_r(_d2[5]).WalletError)("Unsupported key type: '"+n+"' for wallet IndyWallet");case 23:case"end":return l.stop()}},null,this,[[1,17]],Promise)}},{key:"sign",value:function(r){var t,n,i,o,s;return _r(_d2[3]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=r.data,n=r.key,l.prev=1,n.keyType!==_r(_d2[10]).KeyType.Ed25519){l.next=8;break}if(_r(_d2[12]).TypedArrayEncoder.isTypedArray(t)){l.next=5;break}throw new(_r(_d2[5]).WalletError)(_r(_d2[10]).KeyType.Ed25519+" does not support multiple singing of multiple messages");case 5:return l.next=7,_r(_d2[3]).awrap(this.indy.cryptoSign(this.handle,n.publicKeyBase58,t));case 7:return l.abrupt("return",l.sent);case 8:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(n.keyType)){l.next=17;break}return i=this.signingKeyProviderRegistry.getProviderForKeyType(n.keyType),l.next=12,_r(_d2[3]).awrap(this.retrieveKeyPair(n.publicKeyBase58));case 12:return o=l.sent,l.next=15,_r(_d2[3]).awrap(i.sign({data:t,privateKeyBase58:o.privateKeyBase58,publicKeyBase58:n.publicKeyBase58}));case 15:return s=l.sent,l.abrupt("return",s);case 17:l.next=24;break;case 19:if(l.prev=19,l.t0=l.catch(1),(0,_r(_d2[6]).isError)(l.t0)){l.next=23;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 23:throw new(_r(_d2[5]).WalletError)("Error signing data with verkey "+n.publicKeyBase58,{cause:l.t0});case 24:throw new(_r(_d2[5]).WalletError)("Unsupported keyType: "+n.keyType);case 25:case"end":return l.stop()}},null,this,[[1,19]],Promise)}},{key:"verify",value:function(r){var t,n,i,o,s;return _r(_d2[3]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(t=r.data,n=r.key,i=r.signature,l.prev=1,n.keyType!==_r(_d2[10]).KeyType.Ed25519){l.next=8;break}if(_r(_d2[12]).TypedArrayEncoder.isTypedArray(t)){l.next=5;break}throw new(_r(_d2[5]).WalletError)(_r(_d2[10]).KeyType.Ed25519+" does not support multiple singing of multiple messages");case 5:return l.next=7,_r(_d2[3]).awrap(this.indy.cryptoVerify(n.publicKeyBase58,t,i));case 7:return l.abrupt("return",l.sent);case 8:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(n.keyType)){l.next=14;break}return o=this.signingKeyProviderRegistry.getProviderForKeyType(n.keyType),l.next=12,_r(_d2[3]).awrap(o.verify({data:t,signature:i,publicKeyBase58:n.publicKeyBase58}));case 12:return s=l.sent,l.abrupt("return",s);case 14:l.next=21;break;case 16:if(l.prev=16,l.t0=l.catch(1),(0,_r(_d2[6]).isError)(l.t0)){l.next=20;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 20:throw new(_r(_d2[5]).WalletError)("Error verifying signature of data signed with verkey "+n.publicKeyBase58,{cause:l.t0});case 21:throw new(_r(_d2[5]).WalletError)("Unsupported keyType: "+n.keyType);case 22:case"end":return l.stop()}},null,this,[[1,16]],Promise)}},{key:"pack",value:function(r,t,n){var i,o;return _r(_d2[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,i=_r(_d2[13]).JsonEncoder.toBuffer(r),s.next=4,_r(_d2[3]).awrap(this.indy.packMessage(this.handle,i,t,null!==n&&void 0!==n?n:null));case 4:return o=s.sent,s.abrupt("return",_r(_d2[13]).JsonEncoder.fromBuffer(o));case 8:if(s.prev=8,s.t0=s.catch(0),(0,_r(_d2[6]).isError)(s.t0)){s.next=12;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 12:throw new(_r(_d2[5]).WalletError)('Error packing message',{cause:s.t0});case 13:case"end":return s.stop()}},null,this,[[0,8]],Promise)}},{key:"unpack",value:function(r){var t,n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,_r(_d2[3]).awrap(this.indy.unpackMessage(this.handle,_r(_d2[13]).JsonEncoder.toBuffer(r)));case 3:return t=i.sent,n=_r(_d2[13]).JsonEncoder.fromBuffer(t),i.abrupt("return",{senderKey:n.sender_verkey,recipientKey:n.recipient_verkey,plaintextMessage:_r(_d2[13]).JsonEncoder.fromString(n.message)});case 8:if(i.prev=8,i.t0=i.catch(0),(0,_r(_d2[6]).isError)(i.t0)){i.next=12;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 12:throw new(_r(_d2[5]).WalletError)('Error unpacking message',{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,8]],Promise)}},{key:"generateNonce",value:function(){return _r(_d2[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_r(_d2[3]).awrap(this.indy.generateNonce());case 3:return r.abrupt("return",r.sent);case 6:if(r.prev=6,r.t0=r.catch(0),(0,_r(_d2[6]).isError)(r.t0)){r.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw new(_r(_d2[5]).WalletError)('Error generating nonce',{cause:r.t0});case 11:case"end":return r.stop()}},null,this,[[0,6]],Promise)}},{key:"retrieveKeyPair",value:function(r){var t,n;return _r(_d2[3]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,_r(_d2[3]).awrap(this.indy.getWalletRecord(this.handle,'KeyPairRecord',"key-"+r,{}));case 3:if(t=i.sent,!(n=t.value)){i.next=9;break}return i.abrupt("return",_r(_d2[13]).JsonEncoder.fromString(n));case 9:throw new(_r(_d2[5]).WalletError)("No content found for record with public key: "+r);case 10:i.next=17;break;case 12:if(i.prev=12,i.t0=i.catch(0),!(0,_r(_d2[4]).isIndyError)(i.t0,'WalletItemNotFound')){i.next=16;break}throw new(_r(_d2[2]).RecordNotFoundError)("KeyPairRecord not found for public key: "+r+".",{recordType:'KeyPairRecord',cause:i.t0});case 16:throw(0,_r(_d2[4]).isIndyError)(i.t0)?new(_r(_d2[2]).IndySdkError)(i.t0):i.t0;case 17:case"end":return i.stop()}},null,this,[[0,12]],Promise)}},{key:"storeKeyPair",value:function(r){return _r(_d2[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,_r(_d2[3]).awrap(this.indy.addWalletRecord(this.handle,'KeyPairRecord',"key-"+r.publicKeyBase58,JSON.stringify(r),{keyType:r.keyType}));case 3:t.next=10;break;case 5:if(t.prev=5,t.t0=t.catch(0),!(0,_r(_d2[4]).isIndyError)(t.t0,'WalletItemAlreadyExists')){t.next=9;break}throw new(_r(_d2[2]).RecordDuplicateError)("Record already exists",{recordType:'KeyPairRecord'});case 9:throw(0,_r(_d2[4]).isIndyError)(t.t0)?new(_r(_d2[2]).IndySdkError)(t.t0):t.t0;case 10:case"end":return t.stop()}},null,this,[[0,5]],Promise)}},{key:"generateWalletKey",value:function(){return _r(_d2[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_r(_d2[3]).awrap(this.indy.generateWalletKey());case 3:return r.abrupt("return",r.sent);case 6:throw r.prev=6,r.t0=r.catch(0),new(_r(_d2[5]).WalletError)('Error generating wallet key',{cause:r.t0});case 9:case"end":return r.stop()}},null,this,[[0,6]],Promise)}}]),r})();i=r([(0,_r(_d2[14]).injectable)(),n(0,(0,_r(_d2[14]).inject)(_r(_d2[15]).InjectionSymbols.AgentDependencies)),n(1,(0,_r(_d2[14]).inject)(_r(_d2[15]).InjectionSymbols.Logger)),t("design:paramtypes",[Object,Object,_r(_d2[16]).SigningProviderRegistry])],i),e.IndyWallet=i},1367,[7,8,612,82,1363,1368,1373,4,1371,31,990,992,993,979,1022,1104,1019]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletError=e.WalletInvalidKeyError=e.WalletNotFoundError=e.WalletDuplicateError=void 0,Object.defineProperty(e,"WalletDuplicateError",{enumerable:!0,get:function(){return r(d[0]).WalletDuplicateError}}),Object.defineProperty(e,"WalletNotFoundError",{enumerable:!0,get:function(){return r(d[1]).WalletNotFoundError}}),Object.defineProperty(e,"WalletInvalidKeyError",{enumerable:!0,get:function(){return r(d[2]).WalletInvalidKeyError}}),Object.defineProperty(e,"WalletError",{enumerable:!0,get:function(){return r(d[3]).WalletError}})},1368,[1369,1370,1371,1372]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletDuplicateError=void 0;var e=(function(e){r(d[2])(u,e);var c,n,o=(c=u,n=t(),function(){var t,e=r(d[0])(c);if(n){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var c=e.walletType,n=e.cause;return r(d[3])(this,u),o.call(this,c+": "+t,{cause:n})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletDuplicateError=e},1369,[14,11,9,7,8,613]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletNotFoundError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n=e.walletType,o=e.cause;return r(d[3])(this,u),c.call(this,n+": "+t,{cause:o})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletNotFoundError=e},1370,[14,11,9,7,8,613]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletInvalidKeyError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n=e.walletType,c=e.cause;return r(d[3])(this,u),o.call(this,n+": "+t,{cause:c})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletInvalidKeyError=e},1371,[14,11,9,7,8,613]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),o.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletError=e},1372,[14,11,9,7,8,613]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isError=void 0;e.isError=function(o){return o instanceof Error}},1373,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var s,o=arguments.length,l=o<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,r,i,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(l=(o<3?s(l):o>3?s(r,i,l):s(r,i))||l);return o>3&&l&&Object.defineProperty(r,i,l),l},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(i,n){r(i,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyUtilitiesService=void 0;var n=(function(){function t(r,i,n){_r(_d[0])(this,t),this.indy=n.indy,this.logger=r,this.fileSystem=i}return _r(_d[1])(t,[{key:"createTailsReader",value:function(t){var r,i,n,s;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,this.logger.debug("Opening tails reader at path "+t),o.next=4,_r(_d[2]).awrap(this.fileSystem.exists(t));case 4:if(r=o.sent,i=(0,_r(_d[3]).getDirFromFilePath)(t),r){o.next=8;break}throw new(_r(_d[4]).AriesFrameworkError)("Tails file does not exist at path "+t);case 8:return n={base_dir:i},o.next=11,_r(_d[2]).awrap(this.indy.openBlobStorageReader('default',n));case 11:return s=o.sent,this.logger.debug("Opened tails reader at path "+t),o.abrupt("return",s);case 16:if(o.prev=16,o.t0=o.catch(0),!(0,_r(_d[5]).isIndyError)(o.t0)){o.next=20;break}throw new(_r(_d[6]).IndySdkError)(o.t0);case 20:throw o.t0;case 21:case"end":return o.stop()}},null,this,[[0,16]],Promise)}},{key:"downloadTails",value:function(t,r){var i,n;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,this.logger.debug("Checking to see if tails file for URL "+r+" has been stored in the FileSystem"),i=this.fileSystem.basePath+"/afj/tails/"+t,s.next=5,_r(_d[2]).awrap(this.fileSystem.exists(i));case 5:if(n=s.sent,this.logger.debug("Tails file for "+r+" "+(n?'is stored':'is not stored')+" at "+i),n){s.next=12;break}return this.logger.debug("Retrieving tails file from URL "+r),s.next=11,_r(_d[2]).awrap(this.fileSystem.downloadToFile(r,i));case 11:this.logger.debug("Saved tails file to FileSystem at path "+i);case 12:return this.logger.debug("Tails file for URL "+r+" is stored in the FileSystem, opening tails reader"),s.abrupt("return",this.createTailsReader(i));case 16:throw s.prev=16,s.t0=s.catch(0),this.logger.error("Error while retrieving tails file from URL "+r,{error:s.t0}),(0,_r(_d[5]).isIndyError)(s.t0)?new(_r(_d[6]).IndySdkError)(s.t0):s.t0;case 20:case"end":return s.stop()}},null,this,[[0,16]],Promise)}}]),t})();n=t([(0,_r(_d[7]).injectable)(),i(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.Logger)),i(1,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.FileSystem)),i(2,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.AgentDependencies)),r("design:paramtypes",[Object,Object,Object])],n),e.IndyUtilitiesService=n},1374,[7,8,82,1375,612,1363,620,1020,1104]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDirFromFilePath=void 0,e.getDirFromFilePath=function(t){return t.substring(0,Math.max(t.lastIndexOf('/'),t.lastIndexOf('\\')))}},1375,[]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=t(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyPoolService=_e.DID_POOL_CACHE_LIMIT=_e.DID_POOL_CACHE_ID=void 0,_e.DID_POOL_CACHE_ID='DID_POOL_CACHE',_e.DID_POOL_CACHE_LIMIT=500;var s=(function(){function t(e,r,n,o,i){_r(_d[0])(this,t),this.pools=[],this.logger=n,this.indy=r.indy,this.agentDependencies=r,this.fileSystem=i,this.stop$=o,this.didCache=new(_r(_d[1]).PersistedLruCache)(_e.DID_POOL_CACHE_ID,_e.DID_POOL_CACHE_LIMIT,e)}return _r(_d[2])(t,[{key:"setPools",value:function(e){var t=this;this.pools=e.map(function(e){return new(_r(_d[3]).IndyPool)(e,t.agentDependencies,t.logger,t.stop$,t.fileSystem)})}},{key:"connectToPools",value:function(){var t,r,n,o,i;return _r(_d[4]).async(function(s){for(;;)switch(s.prev=s.next){case 0:t=[],r=e(this.pools);case 2:if((n=r()).done){s.next=12;break}return o=n.value,this.logger.debug("Connecting to pool: "+o.id),s.next=7,_r(_d[4]).awrap(o.connect());case 7:i=s.sent,this.logger.debug("Finished connection to pool: "+o.id),t.push(i);case 10:s.next=2;break;case 12:return s.abrupt("return",t);case 13:case"end":return s.stop()}},null,this,null,Promise)}},{key:"ledgerWritePool",get:function(){if(0===this.pools.length)throw new(_r(_d[5]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");return this.pools[0]}},{key:"getPoolForDid",value:function(e,t){var r,n,o,i,s,c,u,d,l,p,h,f,y;return _r(_d[4]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(0!==(n=this.pools).length){v.next=3;break}throw new(_r(_d[5]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");case 3:return v.next=5,_r(_d[4]).awrap(this.didCache.get(e,t));case 5:if(o=v.sent,i=this.pools.find(function(e){return e.id===(null===o||void 0===o?void 0:o.poolId)}),!o||!i){v.next=10;break}return this.logger.trace("Found ledger id '"+i.id+"' for did '"+t+"' in cache"),v.abrupt("return",{did:o.nymResponse,pool:i});case 10:return v.next=12,_r(_d[4]).awrap(this.getSettledDidResponsesFromPools(t,n));case 12:if(s=v.sent,c=s.successful,u=s.rejected,0!==c.length){v.next=21;break}if(d=u.every(function(e){return e.reason instanceof _r(_d[6]).LedgerNotFoundError}),l=u.filter(function(e){return!(e.reason instanceof _r(_d[6]).LedgerNotFoundError)}),!d){v.next=20;break}throw new(_r(_d[6]).LedgerNotFoundError)("Did '"+t+"' not found on any of the ledgers (total "+this.pools.length+").");case 20:throw new(_r(_d[7]).LedgerError)("Unknown error retrieving did '"+t+"' from '"+l.length+"' of '"+n.length+"' ledgers",{cause:l[0].reason});case 21:return(p=null===(r=c.find(function(e){return(0,_r(_d[8]).isSelfCertifiedDid)(e.value.did.did,e.value.did.verkey)}))||void 0===r?void 0:r.value)||(h=c.filter(function(e){return e.value.pool.config.isProduction}),f=c.filter(function(e){return!e.value.pool.config.isProduction}),y=h.length>=1?h:f,p=y[0].value),v.next=25,_r(_d[4]).awrap(this.didCache.set(e,t,{nymResponse:p.did,poolId:p.pool.id}));case 25:return v.abrupt("return",{pool:p.pool,did:p.did});case 26:case"end":return v.stop()}},null,this,null,Promise)}},{key:"getSettledDidResponsesFromPools",value:function(e,t){var r,n,o,i=this;return _r(_d[4]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return this.logger.trace("Retrieving did '"+e+"' from "+t.length+" ledgers"),s.next=3,_r(_d[4]).awrap((0,_r(_d[9]).allSettled)(t.map(function(t){return i.getDidFromPool(e,t)})));case 3:return r=s.sent,n=(0,_r(_d[9]).onlyFulfilled)(r),this.logger.trace("Retrieved "+n.length+" responses from ledgers for did '"+e+"'"),o=(0,_r(_d[9]).onlyRejected)(r),s.abrupt("return",{rejected:o,successful:n});case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getPoolForNamespace",value:function(e){if(0===this.pools.length)throw new(_r(_d[5]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");if(!e)return this.logger.warn('Not passing the indyNamespace is deprecated and will be removed in the future version.'),this.pools[0];var t=this.pools.find(function(t){return t.didIndyNamespace===e});if(!t)throw new(_r(_d[6]).LedgerNotFoundError)("No ledgers found for IndyNamespace '"+e+"'.");return t}},{key:"submitWriteRequest",value:function(e,t,r,n){var o,i,s;return _r(_d[4]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,_r(_d[4]).awrap(this.appendTaa(t,r));case 3:return o=c.sent,c.next=6,_r(_d[4]).awrap(this.signRequest(e,n,o));case 6:return i=c.sent,c.next=9,_r(_d[4]).awrap(t.submitWriteRequest(i));case 9:return s=c.sent,c.abrupt("return",s);case 13:throw c.prev=13,c.t0=c.catch(0),(0,_r(_d[10]).isIndyError)(c.t0)?new(_r(_d[11]).IndySdkError)(c.t0):c.t0;case 16:case"end":return c.stop()}},null,this,[[0,13]],Promise)}},{key:"submitReadRequest",value:function(e,t){var r;return _r(_d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[4]).awrap(e.submitReadRequest(t));case 3:return r=n.sent,n.abrupt("return",r);case 7:throw n.prev=7,n.t0=n.catch(0),(0,_r(_d[10]).isIndyError)(n.t0)?new(_r(_d[11]).IndySdkError)(n.t0):n.t0;case 10:case"end":return n.stop()}},null,null,[[0,7]],Promise)}},{key:"signRequest",value:function(e,t,r){return _r(_d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return(0,_r(_d[12]).assertIndyWallet)(e.wallet),n.prev=1,n.abrupt("return",this.indy.signRequest(e.wallet.handle,t,r));case 5:throw n.prev=5,n.t0=n.catch(1),(0,_r(_d[10]).isIndyError)(n.t0)?new(_r(_d[11]).IndySdkError)(n.t0):n.t0;case 8:case"end":return n.stop()}},null,this,[[1,5]],Promise)}},{key:"appendTaa",value:function(e,t){var r,n,o,i;return _r(_d[4]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,_r(_d[4]).awrap(this.getTransactionAuthorAgreement(e));case 3:if(r=s.sent,n=e.config.transactionAuthorAgreement,null!=r){s.next=7;break}return s.abrupt("return",t);case 7:if(n){s.next=9;break}throw new(_r(_d[7]).LedgerError)("Please, specify a transaction author agreement with version and acceptance mechanism. "+JSON.stringify(r));case 9:if(r.version===n.version&&n.acceptanceMechanism in r.acceptanceMechanisms.aml){s.next=12;break}throw o="Unable to satisfy matching TAA with mechanism "+JSON.stringify(n.acceptanceMechanism)+" and version "+JSON.stringify(n.version)+" in pool.\n Found "+JSON.stringify(Object.keys(r.acceptanceMechanisms.aml))+" and version "+r.version+" in pool.",new(_r(_d[7]).LedgerError)(o);case 12:return s.next=14,_r(_d[4]).awrap(this.indy.appendTxnAuthorAgreementAcceptanceToRequest(t,r.text,n.version,r.digest,n.acceptanceMechanism,Math.floor((new Date).getTime()/1e3)));case 14:return i=s.sent,s.abrupt("return",i);case 18:throw s.prev=18,s.t0=s.catch(0),(0,_r(_d[10]).isIndyError)(s.t0)?new(_r(_d[11]).IndySdkError)(s.t0):s.t0;case 21:case"end":return s.stop()}},null,this,[[0,18]],Promise)}},{key:"getTransactionAuthorAgreement",value:function(e){var t,r,n,o,i,s;return _r(_d[4]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,void 0===e.authorAgreement){c.next=3;break}return c.abrupt("return",e.authorAgreement);case 3:return c.next=5,_r(_d[4]).awrap(this.indy.buildGetTxnAuthorAgreementRequest(null));case 5:return t=c.sent,c.next=8,_r(_d[4]).awrap(this.submitReadRequest(e,t));case 8:return r=c.sent,c.next=11,_r(_d[4]).awrap(this.indy.buildGetAcceptanceMechanismsRequest(null));case 11:return n=c.sent,c.next=14,_r(_d[4]).awrap(this.submitReadRequest(e,n));case 14:if(o=c.sent,null!=r.result.data){c.next=18;break}return e.authorAgreement=null,c.abrupt("return",null);case 18:return i=r.result.data,s=o.result.data,e.authorAgreement=_r(_d[13])(_r(_d[13])({},i),{acceptanceMechanisms:s}),c.abrupt("return",e.authorAgreement);case 24:throw c.prev=24,c.t0=c.catch(0),(0,_r(_d[10]).isIndyError)(c.t0)?new(_r(_d[11]).IndySdkError)(c.t0):c.t0;case 27:case"end":return c.stop()}},null,this,[[0,24]],Promise)}},{key:"getDidFromPool",value:function(e,t){var r,n,o;return _r(_d[4]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,this.logger.trace("Get public did '"+e+"' from ledger '"+t.id+"'"),i.next=4,_r(_d[4]).awrap(this.indy.buildGetNymRequest(null,e));case 4:return r=i.sent,this.logger.trace("Submitting get did request for did '"+e+"' to ledger '"+t.id+"'"),i.next=8,_r(_d[4]).awrap(t.submitReadRequest(r));case 8:return n=i.sent,i.next=11,_r(_d[4]).awrap(this.indy.parseGetNymResponse(n));case 11:return o=i.sent,this.logger.trace("Retrieved did '"+e+"' from ledger '"+t.id+"'",o),i.abrupt("return",{did:o,pool:t,response:n});case 16:if(i.prev=16,i.t0=i.catch(0),this.logger.trace("Error retrieving did '"+e+"' from ledger '"+t.id+"'",{error:i.t0,did:e}),!(0,_r(_d[10]).isIndyError)(i.t0,'LedgerNotFound')){i.next=23;break}throw new(_r(_d[6]).LedgerNotFoundError)("Did '"+e+"' not found on ledger "+t.id);case 23:throw(0,_r(_d[10]).isIndyError)(i.t0)?new(_r(_d[11]).IndySdkError)(i.t0):i.t0;case 24:case"end":return i.stop()}},null,this,[[0,16]],Promise)}}]),t})();s=n([(0,_r(_d[14]).injectable)(),i(1,(0,_r(_d[14]).inject)(_r(_d[15]).InjectionSymbols.AgentDependencies)),i(2,(0,_r(_d[14]).inject)(_r(_d[15]).InjectionSymbols.Logger)),i(3,(0,_r(_d[14]).inject)(_r(_d[15]).InjectionSymbols.Stop$)),i(4,(0,_r(_d[14]).inject)(_r(_d[15]).InjectionSymbols.FileSystem)),o("design:paramtypes",[_r(_d[1]).CacheRepository,Object,Object,_r(_d[16]).Subject,Object])],s),_e.IndyPoolService=s},1376,[7,1377,8,1382,82,1385,1386,1384,1364,1387,1363,620,1366,4,1020,1104,1106]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1377,[1378,1380,1381]); -__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.PersistedLruCache=void 0;var e=(function(){function e(t,n,s){r(d[0])(this,e),this.cacheId=t,this.limit=n,this.cacheRepository=s}return r(d[1])(e,[{key:"get",value:function(e,t){var n;return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[2]).awrap(this.getCache(e));case 2:return n=s.sent,s.abrupt("return",n.get(t));case 4:case"end":return s.stop()}},null,this,null,Promise)}},{key:"set",value:function(e,t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[2]).awrap(this.getCache(e));case 2:return s.sent.set(t,n),s.next=6,r(d[2]).awrap(this.persistCache(e));case 6:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getCache",value:function(e){var t;return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this._cache){n.next=5;break}return n.next=3,r(d[2]).awrap(this.fetchCacheRecord(e));case 3:t=n.sent,this._cache=this.lruFromRecord(t);case 5:return n.abrupt("return",this._cache);case 6:case"end":return n.stop()}},null,this,null,Promise)}},{key:"lruFromRecord",value:function(e){return new(r(d[3]).LRUMap)(this.limit,e.entries.map(function(e){return[e.key,e.value]}))}},{key:"fetchCacheRecord",value:function(e){var t;return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[2]).awrap(this.cacheRepository.findById(e,this.cacheId));case 2:if(t=n.sent){n.next=7;break}return t=new(r(d[4]).CacheRecord)({id:this.cacheId,entries:[]}),n.next=7,r(d[2]).awrap(this.cacheRepository.save(e,t));case 7:return n.abrupt("return",t);case 8:case"end":return n.stop()}},null,this,null,Promise)}},{key:"persistCache",value:function(e){var t;return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[2]).awrap(this.getCache(e));case 2:return t=n.sent,n.next=5,r(d[2]).awrap(this.cacheRepository.update(e,new(r(d[4]).CacheRecord)({entries:t.toJSON(),id:this.cacheId})));case 5:case"end":return n.stop()}},null,this,null,Promise)}}]),e})();_e.PersistedLruCache=e},1378,[7,8,82,1379,1380]); -__d(function(_g,r,_i,_a,_m,_e,_d){var t,e;t=this,e=function(t){var e=Symbol("newer"),i=Symbol("older"),s=(function(t){"use strict";function s(t,e){r(_d[0])(this,s),"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),t<1&&(this.limit=this.size))}return r(_d[1])(s,[{key:"_markEntryAsUsed",value:function(t){t!==this.newest&&(t[e]&&(t===this.oldest&&(this.oldest=t[e]),t[e][i]=t[i]),t[i]&&(t[i][e]=t[e]),t[e]=void 0,t[i]=this.newest,this.newest&&(this.newest[e]=t),this.newest=t)}},{key:"assign",value:function(t){var s,o=this.limit||Number.MAX_VALUE;this._keymap.clear();for(var h=t[Symbol.iterator](),u=h.next();!u.done;u=h.next()){var a=new n(u.value[0],u.value[1]);if(this._keymap.set(a.key,a),s?(s[e]=a,a[i]=s):this.oldest=a,s=a,0==o--)throw new Error("overflow")}this.newest=s,this.size=this._keymap.size}},{key:"get",value:function(t){var e=this._keymap.get(t);return e?(this._markEntryAsUsed(e),e.value):void 0}},{key:"set",value:function(t,s){var o=this._keymap.get(t);return o?(o.value=s,this._markEntryAsUsed(o),this):(this._keymap.set(t,o=new n(t,s)),this.newest?(this.newest[e]=o,o[i]=this.newest):this.oldest=o,this.newest=o,++this.size,this.size>this.limit&&this.shift(),this)}},{key:"shift",value:function(){var t=this.oldest;if(t)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),t[e]=t[i]=void 0,this._keymap.delete(t.key),--this.size,[t.key,t.value]}},{key:"find",value:function(t){var e=this._keymap.get(t);return e?e.value:void 0}},{key:"has",value:function(t){return this._keymap.has(t)}},{key:"delete",value:function(t){var s=this._keymap.get(t);return s?(this._keymap.delete(s.key),s[e]&&s[i]?(s[i][e]=s[e],s[e][i]=s[i]):s[e]?(s[e][i]=void 0,this.oldest=s[e]):s[i]?(s[i][e]=void 0,this.newest=s[i]):this.oldest=this.newest=void 0,this.size--,s.value):void 0}},{key:"clear",value:function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}},{key:"keys",value:function(){return new h(this.oldest)}},{key:"values",value:function(){return new u(this.oldest)}},{key:"entries",value:function(){return this}},{key:t,value:function(){return new o(this.oldest)}},{key:"forEach",value:function(t,i){"object"!=typeof i&&(i=this);for(var s=this.oldest;s;)t.call(i,s.value,s.key,this),s=s[e]}},{key:"toJSON",value:function(){for(var t=new Array(this.size),i=0,s=this.oldest;s;)t[i++]={key:s.key,value:s.value},s=s[e];return t}},{key:"toString",value:function(){for(var t="",i=this.oldest;i;)t+=String(i.key)+":"+i.value,(i=i[e])&&(t+=" < ");return t}}]),s})(Symbol.iterator);function n(t,s){this.key=t,this.value=s,this[e]=void 0,this[i]=void 0}function o(t){this.entry=t}function h(t){this.entry=t}function u(t){this.entry=t}t.LRUMap=s,o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:[t.key,t.value]}):{done:!0,value:void 0}},h.prototype[Symbol.iterator]=function(){return this},h.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:t.key}):{done:!0,value:void 0}},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:t.value}):{done:!0,value:void 0}}},"object"==typeof _e&&void 0!==_m?e(_e):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lru_map=t.lru_map||{})},1379,[7,8]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.CacheRecord=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e,n,c,l;return r(d[3])(this,u),(e=o.call(this)).type=u.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),e.createdAt=null!==(c=t.createdAt)&&void 0!==c?c:new Date,e.entries=t.entries,e._tags=null!==(l=t.tags)&&void 0!==l?l:{}),e}return r(d[5])(u,[{key:"getTags",value:function(){return r(d[6])({},this._tags)}}]),u})(r(d[7]).BaseRecord);_e.CacheRecord=e,e.type='CacheRecord'},1380,[14,11,9,7,953,8,4,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CacheRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).CacheRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.CacheRepository=c},1381,[14,11,9,7,1380,8,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndyPool=void 0;var t=(function(){function t(n,o,s,c,u){var l=this;r(d[0])(this,t),this.indy=o.indy,this.fileSystem=u,this.poolConfig=n,this.logger=s,c.subscribe(function(){return r(d[1]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!l._poolHandle){t.next=3;break}return t.next=3,r(d[1]).awrap(l.close());case 3:case"end":return t.stop()}},null,null,null,Promise)})}return r(d[2])(t,[{key:"didIndyNamespace",get:function(){return this.didIndyNamespace}},{key:"id",get:function(){return this.poolConfig.id}},{key:"config",get:function(){return this.poolConfig}},{key:"close",value:function(){var t;return r(d[1]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=this._poolHandle){n.next=3;break}return n.abrupt("return");case 3:return this._poolHandle=void 0,this.poolConnected=void 0,n.next=7,r(d[1]).awrap(this.indy.closePoolLedger(t));case 7:case"end":return n.stop()}},null,this,null,Promise)}},{key:"delete",value:function(){return r(d[1]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._poolHandle){t.next=3;break}return t.next=3,r(d[1]).awrap(this.close());case 3:return t.next=5,r(d[1]).awrap(this.indy.deletePoolLedgerConfig(this.poolConfig.id));case 5:case"end":return t.stop()}},null,this,null,Promise)}},{key:"connect",value:function(){var t=this;return r(d[1]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this.poolConnected){n.next=6;break}return this.poolConnected=this.connectToLedger(),this.poolConnected.catch(function(n){t.poolConnected=void 0,t.logger.error('Connection to pool: '+t.poolConfig.genesisPath+' failed.',{error:n})}),n.abrupt("return",this.poolConnected);case 6:throw new(r(d[3]).AriesFrameworkError)('Cannot attempt connection to ledger, already connecting.');case 7:case"end":return n.stop()}},null,this,null,Promise)}},{key:"connectToLedger",value:function(){var t,n;return r(d[1]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.poolConfig.id,o.next=3,r(d[1]).awrap(this.getGenesisPath());case 3:if(n=o.sent){o.next=6;break}throw new(r(d[3]).AriesFrameworkError)('Cannot connect to ledger without genesis file');case 6:return this.logger.debug("Connecting to ledger pool '"+t+"'",{genesisPath:n}),o.next=9,r(d[1]).awrap(this.indy.setProtocolVersion(2));case 9:return o.prev=9,o.next=12,r(d[1]).awrap(this.indy.openPoolLedger(t));case 12:return this._poolHandle=o.sent,o.abrupt("return",this._poolHandle);case 16:if(o.prev=16,o.t0=o.catch(9),(0,r(d[4]).isIndyError)(o.t0,'PoolLedgerNotCreatedError')){o.next=20;break}throw(0,r(d[4]).isIndyError)(o.t0)?new(r(d[3]).IndySdkError)(o.t0):o.t0;case 20:return this.logger.debug("Pool '"+t+"' does not exist yet, creating.",{indyError:'PoolLedgerNotCreatedError'}),o.prev=21,o.next=24,r(d[1]).awrap(this.indy.createPoolLedgerConfig(t,{genesis_txn:n}));case 24:return o.next=26,r(d[1]).awrap(this.indy.openPoolLedger(t));case 26:return this._poolHandle=o.sent,o.abrupt("return",this._poolHandle);case 30:throw o.prev=30,o.t1=o.catch(21),(0,r(d[4]).isIndyError)(o.t1)?new(r(d[3]).IndySdkError)(o.t1):o.t1;case 33:case"end":return o.stop()}},null,this,[[9,16],[21,30]],Promise)}},{key:"submitRequest",value:function(t){return r(d[1]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=this.indy,n.next=3,r(d[1]).awrap(this.getPoolHandle());case 3:return n.t1=n.sent,n.t2=t,n.abrupt("return",n.t0.submitRequest.call(n.t0,n.t1,n.t2));case 6:case"end":return n.stop()}},null,this,null,Promise)}},{key:"submitReadRequest",value:function(t){var n;return r(d[1]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[1]).awrap(this.submitRequest(t));case 2:if(n=o.sent,!(0,r(d[5]).isLedgerRejectResponse)(n)&&!(0,r(d[5]).isLedgerReqnackResponse)(n)){o.next=5;break}throw new(r(d[6]).LedgerError)("Ledger '"+this.id+"' rejected read transaction request: "+n.reason);case 5:return o.abrupt("return",n);case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"submitWriteRequest",value:function(t){var n;return r(d[1]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[1]).awrap(this.submitRequest(t));case 2:if(n=o.sent,!(0,r(d[5]).isLedgerRejectResponse)(n)&&!(0,r(d[5]).isLedgerReqnackResponse)(n)){o.next=5;break}throw new(r(d[6]).LedgerError)("Ledger '"+this.id+"' rejected write transaction request: "+n.reason);case 5:return o.abrupt("return",n);case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getPoolHandle",value:function(){return r(d[1]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.poolConnected){t.next=9;break}return t.prev=1,t.next=4,r(d[1]).awrap(this.poolConnected);case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),this.logger.error('Connection to pool: '+this.poolConfig.genesisPath+' failed.',{error:t.t0});case 9:if(this._poolHandle){t.next=11;break}return t.abrupt("return",this.connect());case 11:return t.abrupt("return",this._poolHandle);case 12:case"end":return t.stop()}},null,this,[[1,6]],Promise)}},{key:"getGenesisPath",value:function(){var t;return r(d[1]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.poolConfig.genesisPath){n.next=2;break}return n.abrupt("return",this.poolConfig.genesisPath);case 2:if(t=this.fileSystem.basePath+"/afj/genesis-"+this.poolConfig.id+".txn",!this.poolConfig.genesisTransactions){n.next=8;break}return n.next=6,r(d[1]).awrap(this.fileSystem.write(t,this.poolConfig.genesisTransactions));case 6:return this.poolConfig.genesisPath=t,n.abrupt("return",t);case 8:return n.abrupt("return",null);case 9:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.IndyPool=t},1382,[7,82,8,612,1363,1383,1384]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLedgerReqnackResponse=e.isLedgerRejectResponse=void 0,e.isLedgerRejectResponse=function(n){return'REJECT'===n.op},e.isLedgerReqnackResponse=function(n){return'REQNACK'===n.op}},1383,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),o.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.LedgerError=e},1384,[14,11,9,7,8,613]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerNotConfiguredError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).LedgerError);_e.LedgerNotConfiguredError=e},1385,[14,11,9,7,8,1384]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerNotFoundError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).LedgerError);_e.LedgerNotFoundError=e},1386,[14,11,9,7,8,1384]); -__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.onlyRejected=_e.onlyFulfilled=_e.allSettled=void 0,_e.allSettled=function(e){return Promise.all(e.map(function(e){return e.then(function(e){return{status:'fulfilled',value:e}}).catch(function(e){return{status:'rejected',reason:e}})}))},_e.onlyFulfilled=function(e){return e.filter(function(e){return'fulfilled'===e.status})},_e.onlyRejected=function(e){return e.filter(function(e){return'rejected'===e.status})}},1387,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var s,o=arguments.length,c=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(c=(o<3?s(c):o>3?s(n,r,c):s(n,r))||c);return o>3&&c&&Object.defineProperty(n,r,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerApi=void 0;var r=(function(){function t(n,r,i,s,o){_r(_d[0])(this,t),this.ledgerService=n,this.agentContext=r,this.anonCredsCredentialDefinitionRepository=i,this.anonCredsSchemaRepository=s,this.config=o}return _r(_d[1])(t,[{key:"setPools",value:function(t){return this.ledgerService.setPools(t)}},{key:"connectToPools",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[2]).awrap(this.ledgerService.connectToPools());case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerPublicDid",value:function(t,n,r,i){var s,o;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=null===(s=this.agentContext.wallet.publicDid)||void 0===s?void 0:s.did){c.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('Agent has no public DID.');case 3:return c.abrupt("return",this.ledgerService.registerPublicDid(this.agentContext,o,t,n,r,i));case 4:case"end":return c.stop()}},null,this,null,Promise)}},{key:"getPublicDid",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.ledgerService.getPublicDid(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getSchema",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.ledgerService.getSchema(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"registerSchema",value:function(t){var n,r,i,s,o,c,u,d;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=null===(n=this.agentContext.wallet.publicDid)||void 0===n?void 0:n.did){l.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('Agent has no public DID.');case 3:return i=(0,_r(_d[4]).getLegacySchemaId)(r,t.name,t.version),s=(0,_r(_d[4]).getQualifiedIndySchemaId)(this.ledgerService.getDidIndyWriteNamespace(),i),l.next=7,_r(_d[2]).awrap(this.anonCredsSchemaRepository.findById(this.agentContext,s));case 7:if(!(o=l.sent)){l.next=10;break}return l.abrupt("return",_r(_d[5])(_r(_d[5])({},o.schema),{id:i}));case 10:return l.next=12,_r(_d[2]).awrap(this.findBySchemaIdOnLedger(i));case 12:if(!(c=l.sent)){l.next=15;break}return l.abrupt("return",c);case 15:return l.next=17,_r(_d[2]).awrap(this.ledgerService.registerSchema(this.agentContext,r,t));case 17:return u=l.sent,d=new(_r(_d[6]).AnonCredsSchemaRecord)({schema:_r(_d[5])(_r(_d[5])({},u),{id:s})}),l.next=21,_r(_d[2]).awrap(this.anonCredsSchemaRepository.save(this.agentContext,d));case 21:return l.abrupt("return",u);case 22:case"end":return l.stop()}},null,this,null,Promise)}},{key:"findBySchemaIdOnLedger",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[2]).awrap(this.ledgerService.getSchema(this.agentContext,t));case 3:return n.abrupt("return",n.sent);case 6:if(n.prev=6,n.t0=n.catch(0),!(n.t0 instanceof _r(_d[7]).IndySdkError&&(0,_r(_d[8]).isIndyError)(n.t0.cause,'LedgerNotFound'))){n.next=10;break}return n.abrupt("return",null);case 10:throw n.t0;case 11:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"findByCredentialDefinitionIdOnLedger",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[2]).awrap(this.ledgerService.getCredentialDefinition(this.agentContext,t));case 3:return n.abrupt("return",n.sent);case 6:if(n.prev=6,n.t0=n.catch(0),!(n.t0 instanceof _r(_d[7]).IndySdkError&&(0,_r(_d[8]).isIndyError)(n.t0.cause,'LedgerNotFound'))){n.next=10;break}return n.abrupt("return",null);case 10:throw n.t0;case 11:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"registerCredentialDefinition",value:function(t){var n,r,i,s,o,c,u;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(r=null===(n=this.agentContext.wallet.publicDid)||void 0===n?void 0:n.did){d.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('Agent has no public DID.');case 3:return i=(0,_r(_d[4]).getLegacyCredentialDefinitionId)(r,t.schema.seqNo,t.tag),s=(0,_r(_d[4]).getQualifiedIndyCredentialDefinitionId)(this.ledgerService.getDidIndyWriteNamespace(),i),d.next=7,_r(_d[2]).awrap(this.anonCredsCredentialDefinitionRepository.findById(this.agentContext,s));case 7:if(!(o=d.sent)){d.next=10;break}return d.abrupt("return",_r(_d[5])(_r(_d[5])({},o.credentialDefinition),{id:i}));case 10:return d.next=12,_r(_d[2]).awrap(this.findByCredentialDefinitionIdOnLedger(i));case 12:if(!d.sent){d.next=15;break}throw new(_r(_d[3]).AriesFrameworkError)("No credential definition record found and credential definition "+i+" already exists on the ledger.");case 15:return d.next=17,_r(_d[2]).awrap(this.ledgerService.registerCredentialDefinition(this.agentContext,r,_r(_d[5])(_r(_d[5])({},t),{signatureType:'CL'})));case 17:return c=d.sent,u=new(_r(_d[9]).AnonCredsCredentialDefinitionRecord)({credentialDefinition:_r(_d[5])(_r(_d[5])({},c),{id:s})}),d.next=21,_r(_d[2]).awrap(this.anonCredsCredentialDefinitionRepository.save(this.agentContext,u));case 21:return d.abrupt("return",c);case 22:case"end":return d.stop()}},null,this,null,Promise)}},{key:"getCredentialDefinition",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.ledgerService.getCredentialDefinition(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getRevocationRegistryDefinition",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.ledgerService.getRevocationRegistryDefinition(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getRevocationRegistryDelta",value:function(t){var n,r,i=arguments;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:0,r=i.length>2&&void 0!==i[2]?i[2]:(new Date).getTime(),s.abrupt("return",this.ledgerService.getRevocationRegistryDelta(this.agentContext,t,n,r));case 3:case"end":return s.stop()}},null,this,null,Promise)}}]),t})();r=t([(0,_r(_d[10]).injectable)(),n("design:paramtypes",[_r(_d[11]).IndyLedgerService,_r(_d[12]).AgentContext,_r(_d[13]).AnonCredsCredentialDefinitionRepository,_r(_d[14]).AnonCredsSchemaRepository,_r(_d[15]).LedgerModuleConfig])],r),e.LedgerApi=r},1388,[7,8,82,612,1013,4,1389,620,1363,1390,1020,1361,1391,1405,1406,1407]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsSchemaRecord=void 0;var t=(function(t){r(d[2])(o,t);var c,n,s=(c=o,n=e(),function(){var e,t=r(d[0])(c);if(n){var s=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function o(e){var t,c;return r(d[3])(this,o),(t=s.call(this)).type=o.type,e&&(t.id=null!==(c=e.id)&&void 0!==c?c:(0,r(d[4]).uuid)(),t.schema=e.schema),t}return r(d[5])(o,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{schemaId:this.schema.id,schemaIssuerDid:(0,r(d[7]).didFromSchemaId)(this.schema.id),schemaName:this.schema.name,schemaVersion:this.schema.version})}}]),o})(r(d[8]).BaseRecord);_e.AnonCredsSchemaRecord=t,t.type='AnonCredsSchemaRecord'},1389,[14,11,9,7,953,8,4,1364,1097]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsCredentialDefinitionRecord=void 0;var t=(function(t){r(d[2])(u,t);var n,o,c=(n=u,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t;return r(d[3])(this,u),(t=c.call(this)).type=u.type,e&&(t.id=(0,r(d[4]).uuid)(),t.credentialDefinition=e.credentialDefinition),t}return r(d[5])(u,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{credentialDefinitionId:this.credentialDefinition.id})}}]),u})(r(d[7]).BaseRecord);_e.AnonCredsCredentialDefinitionRecord=t,t.type='AnonCredsCredentialDefinitionRecord'},1390,[14,11,9,7,953,8,4,1097]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1391,[1392]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1392,[1393,1403,1404]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AgentContext=void 0;var n=(function(){function n(t){var o=t.dependencyManager,s=t.contextCorrelationId;r(d[0])(this,n),this.dependencyManager=o,this.contextCorrelationId=s}return r(d[1])(n,[{key:"config",get:function(){return this.dependencyManager.resolve(r(d[2]).AgentConfig)}},{key:"wallet",get:function(){return this.dependencyManager.resolve(r(d[3]).InjectionSymbols.Wallet)}},{key:"endSession",value:function(){var n;return r(d[4]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.dependencyManager.resolve(r(d[3]).InjectionSymbols.AgentContextProvider),t.next=3,r(d[4]).awrap(n.endSessionForAgentContext(this));case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"toJSON",value:function(){return{contextCorrelationId:this.contextCorrelationId}}}]),n})();e.AgentContext=n},1393,[7,8,1394,1104,82]); -__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.AgentConfig=void 0;var e=(function(){function e(t,n){var o;r(d[0])(this,e),this.initConfig=t,this.label=t.label,this.logger=null!==(o=t.logger)&&void 0!==o?o:new(r(d[1]).ConsoleLogger)(r(d[1]).LogLevel.off),this.agentDependencies=n;var u=this.initConfig;if([u.mediatorConnectionsInvite,u.clearDefaultMediator,u.defaultMediatorId].filter(function(e){return void 0!==e}).length>1)throw new(r(d[2]).AriesFrameworkError)("Only one of 'mediatorConnectionsInvite', 'clearDefaultMediator' and 'defaultMediatorId' can be set as they negate each other")}return r(d[3])(e,[{key:"connectToIndyLedgersOnStartup",get:function(){var e;return null===(e=this.initConfig.connectToIndyLedgersOnStartup)||void 0===e||e}},{key:"publicDidSeed",get:function(){return this.initConfig.publicDidSeed}},{key:"indyLedgers",get:function(){var e;return null!==(e=this.initConfig.indyLedgers)&&void 0!==e?e:[]}},{key:"walletConfig",get:function(){return this.initConfig.walletConfig}},{key:"autoAcceptConnections",get:function(){var e;return null!==(e=this.initConfig.autoAcceptConnections)&&void 0!==e&&e}},{key:"autoAcceptProofs",get:function(){var e;return null!==(e=this.initConfig.autoAcceptProofs)&&void 0!==e?e:r(d[4]).AutoAcceptProof.Never}},{key:"autoAcceptCredentials",get:function(){var e;return null!==(e=this.initConfig.autoAcceptCredentials)&&void 0!==e?e:r(d[5]).AutoAcceptCredential.Never}},{key:"didCommMimeType",get:function(){var e;return null!==(e=this.initConfig.didCommMimeType)&&void 0!==e?e:r(d[6]).DidCommMimeType.V0}},{key:"mediatorPollingInterval",get:function(){var e;return null!==(e=this.initConfig.mediatorPollingInterval)&&void 0!==e?e:5e3}},{key:"mediatorPickupStrategy",get:function(){return this.initConfig.mediatorPickupStrategy}},{key:"maximumMessagePickup",get:function(){var e;return null!==(e=this.initConfig.maximumMessagePickup)&&void 0!==e?e:10}},{key:"baseMediatorReconnectionIntervalMs",get:function(){var e;return null!==(e=this.initConfig.baseMediatorReconnectionIntervalMs)&&void 0!==e?e:100}},{key:"maximumMediatorReconnectionIntervalMs",get:function(){var e;return null!==(e=this.initConfig.maximumMediatorReconnectionIntervalMs)&&void 0!==e?e:Number.POSITIVE_INFINITY}},{key:"useDidKeyInProtocols",get:function(){var e;return null===(e=this.initConfig.useDidKeyInProtocols)||void 0===e||e}},{key:"endpoints",get:function(){return this.initConfig.endpoints&&0!==this.initConfig.endpoints.length?this.initConfig.endpoints:[r(d[7]).DID_COMM_TRANSPORT_QUEUE]}},{key:"mediatorConnectionsInvite",get:function(){return this.initConfig.mediatorConnectionsInvite}},{key:"autoAcceptMediationRequests",get:function(){var e;return null!==(e=this.initConfig.autoAcceptMediationRequests)&&void 0!==e&&e}},{key:"defaultMediatorId",get:function(){return this.initConfig.defaultMediatorId}},{key:"clearDefaultMediator",get:function(){var e;return null!==(e=this.initConfig.clearDefaultMediator)&&void 0!==e&&e}},{key:"useLegacyDidSovPrefix",get:function(){var e;return null!==(e=this.initConfig.useLegacyDidSovPrefix)&&void 0!==e&&e}},{key:"connectionImageUrl",get:function(){return this.initConfig.connectionImageUrl}},{key:"autoUpdateStorageOnStartup",get:function(){var e;return null!==(e=this.initConfig.autoUpdateStorageOnStartup)&&void 0!==e&&e}},{key:"extend",value:function(t){return new e(r(d[8])(r(d[8])(r(d[8])({},this.initConfig),{logger:this.logger,label:this.label}),t),this.agentDependencies)}},{key:"toJSON",value:function(){var e,t,n,o;return r(d[8])(r(d[8])({},this.initConfig),{walletConfig:r(d[8])(r(d[8])({},this.walletConfig),{key:(null===(e=this.walletConfig)||void 0===e?void 0:e.key)?'[*****]':void 0,storage:r(d[8])(r(d[8])({},null===(t=this.walletConfig)||void 0===t?void 0:t.storage),{credentials:(null===(o=null===(n=this.walletConfig)||void 0===n?void 0:n.storage)||void 0===o?void 0:o.credentials)?'[*****]':void 0})}),logger:this.logger.logLevel,agentDependencies:Boolean(this.agentDependencies),label:this.label})}}]),e})();_e.AgentConfig=e},1394,[7,1395,612,8,1400,1401,1402,1104,4]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1395,[1396,1399,1397]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConsoleLogger=void 0;var o=(function(o){r(d[2])(u,o);var t,n,l=(t=u,n=e(),function(){var e,o=r(d[0])(t);if(n){var l=r(d[0])(this).constructor;e=Reflect.construct(o,arguments,l)}else e=o.apply(this,arguments);return r(d[1])(this,e)});function u(){var e,o;return r(d[3])(this,u),(o=l.apply(this,arguments)).consoleLogMap=(e={},r(d[4])(e,r(d[5]).LogLevel.test,'log'),r(d[4])(e,r(d[5]).LogLevel.trace,'log'),r(d[4])(e,r(d[5]).LogLevel.debug,'debug'),r(d[4])(e,r(d[5]).LogLevel.info,'info'),r(d[4])(e,r(d[5]).LogLevel.warn,'warn'),r(d[4])(e,r(d[5]).LogLevel.error,'error'),r(d[4])(e,r(d[5]).LogLevel.fatal,'error'),e),o}return r(d[6])(u,[{key:"log",value:function(e,o,t){var n=this.consoleLogMap[e],l=r(d[5]).LogLevel[e].toUpperCase();this.isEnabled(e)&&(t?console[n](l+": "+o,JSON.stringify(t,r(d[7]).replaceError,2)):console[n](l+": "+o))}},{key:"test",value:function(e,o){this.log(r(d[5]).LogLevel.test,e,o)}},{key:"trace",value:function(e,o){this.log(r(d[5]).LogLevel.trace,e,o)}},{key:"debug",value:function(e,o){this.log(r(d[5]).LogLevel.debug,e,o)}},{key:"info",value:function(e,o){this.log(r(d[5]).LogLevel.info,e,o)}},{key:"warn",value:function(e,o){this.log(r(d[5]).LogLevel.warn,e,o)}},{key:"error",value:function(e,o){this.log(r(d[5]).LogLevel.error,e,o)}},{key:"fatal",value:function(e,o){this.log(r(d[5]).LogLevel.fatal,e,o)}}]),u})(r(d[8]).BaseLogger);_e.ConsoleLogger=o},1396,[14,11,9,7,249,1397,8,1398,1399]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,(function(o){o[o.test=0]="test",o[o.trace=1]="trace",o[o.debug=2]="debug",o[o.info=3]="info",o[o.warn=4]="warn",o[o.error=5]="error",o[o.fatal=6]="fatal",o[o.off=7]="off"})(e.LogLevel||(e.LogLevel={}))},1397,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.replaceError=void 0,e.replaceError=function(n,t){return t instanceof Error?Object.getOwnPropertyNames(t).reduce(function(n,o){return n[o]=t[o],n},{name:t.name}):t}},1398,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseLogger=void 0;var o=(function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(d[0]).LogLevel.off;r(d[1])(this,o),this.logLevel=t}return r(d[2])(o,[{key:"isEnabled",value:function(o){return o>=this.logLevel}}]),o})();e.BaseLogger=o},1399,[1397,7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoAcceptProof=void 0,(function(o){o.Always="always",o.ContentApproved="contentApproved",o.Never="never"})(e.AutoAcceptProof||(e.AutoAcceptProof={}))},1400,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoAcceptCredential=void 0,(function(t){t.Always="always",t.ContentApproved="contentApproved",t.Never="never"})(e.AutoAcceptCredential||(e.AutoAcceptCredential={}))},1401,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommMimeType=e.KeyDerivationMethod=void 0,(function(o){o.Argon2IMod="ARGON2I_MOD",o.Argon2IInt="ARGON2I_INT",o.Raw="RAW"})(e.KeyDerivationMethod||(e.KeyDerivationMethod={})),(function(o){o.V0="application/ssi-agent-wire",o.V1="application/didcomm-envelope-enc"})(e.DidCommMimeType||(e.DidCommMimeType={}))},1402,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1403,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,o,r){var i,c=arguments.length,s=c<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,o,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(c<3?i(s):c>3?i(n,o,s):i(n,o))||s);return c>3&&s&&Object.defineProperty(n,o,s),s},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAgentContextProvider=void 0;var o=(function(){function t(n){_r(_d[0])(this,t),this.agentContext=n}return _r(_d[1])(t,[{key:"getAgentContextForContextCorrelationId",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(t===this.agentContext.contextCorrelationId){n.next=2;break}throw new(_r(_d[3]).AriesFrameworkError)("Could not get agent context for contextCorrelationId '"+t+"'. Only contextCorrelationId '"+this.agentContext.contextCorrelationId+"' is supported.");case 2:return n.abrupt("return",this.agentContext);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getContextForInboundMessage",value:function(t,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===n||void 0===n?void 0:n.contextCorrelationId)){t.next=2;break}return t.abrupt("return",this.getAgentContextForContextCorrelationId(n.contextCorrelationId));case 2:return t.abrupt("return",this.agentContext);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"endSessionForAgentContext",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(t.contextCorrelationId===this.agentContext.contextCorrelationId){n.next=2;break}throw new(_r(_d[3]).AriesFrameworkError)("Could not end session for agent context with contextCorrelationId '"+t.contextCorrelationId+"'. Only contextCorrelationId '"+this.agentContext.contextCorrelationId+"' is provided by this provider.");case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();o=t([(0,_r(_d[4]).injectable)(),n("design:paramtypes",[_r(_d[5]).AgentContext])],o),e.DefaultAgentContextProvider=o},1404,[7,8,82,612,1020,1393]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsCredentialDefinitionRepository=void 0;var i=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),i.call(this,_r(_d[4]).AnonCredsCredentialDefinitionRecord,e,t)}return _r(_d[5])(o,[{key:"getByCredentialDefinitionId",value:function(e,t){return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.getSingleByQuery(e,{credentialDefinitionId:t}));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findByCredentialDefinitionId",value:function(e,t){return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.findSingleByQuery(e,{credentialDefinitionId:t}));case 1:case"end":return n.stop()}},null,this,null,Promise)}}]),o})(_r(_d[7]).Repository);i=t([(0,_r(_d[8]).injectable)(),r(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],i),_e.AnonCredsCredentialDefinitionRepository=i},1405,[14,11,9,7,1390,8,82,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(c=e[u])&&(i=(o<3?c(i):o>3?c(t,n,i):c(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsSchemaRepository=void 0;var c=(function(t){_r(_d[2])(o,t);var n,r,c=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).AnonCredsSchemaRecord,e,t)}return _r(_d[5])(o,[{key:"getBySchemaId",value:function(e,t){return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.getSingleByQuery(e,{schemaId:t}));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findBySchemaId",value:function(e,t){return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[6]).awrap(this.findSingleByQuery(e,{schemaId:t}));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}}]),o})(_r(_d[7]).Repository);c=t([(0,_r(_d[8]).injectable)(),r(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],c),_e.AnonCredsSchemaRepository=c},1406,[14,11,9,7,1389,8,82,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerModuleConfig=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.options=null!==t&&void 0!==t?t:{}}return r(d[1])(n,[{key:"connectToIndyLedgersOnStartup",get:function(){var n;return null===(n=this.options.connectToIndyLedgersOnStartup)||void 0===n||n}},{key:"indyLedgers",get:function(){var n;return null!==(n=this.options.indyLedgers)&&void 0!==n?n:[]}}]),n})();e.LedgerModuleConfig=n},1407,[7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerModule=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.api=r(d[1]).LedgerApi,this.config=new(r(d[2]).LedgerModuleConfig)(t)}return r(d[3])(n,[{key:"register",value:function(n){n.registerContextScoped(r(d[1]).LedgerApi),n.registerInstance(r(d[2]).LedgerModuleConfig,this.config),n.registerSingleton(r(d[4]).IndyLedgerService),n.registerSingleton(r(d[4]).IndyPoolService),n.registerSingleton(r(d[5]).AnonCredsCredentialDefinitionRepository),n.registerSingleton(r(d[6]).AnonCredsSchemaRepository)}}]),n})();e.LedgerModule=n},1408,[7,1388,1407,8,1361,1405,1406]); -__d(function(g,r,_i2,a,m,_e,d){"use strict";function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=t(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0;u--)(d=r[u])&&(s=(i<3?d(s):i>3?d(t,n,s):d(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IndySdkSovDidResolver=void 0;var t=(function(){function r(){_r(_d[0])(this,r),this.supportedMethods=['sov']}return _r(_d[1])(r,[{key:"resolve",value:function(r,t,n){var o,d,i,s,u;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return o={},c.prev=1,c.next=4,_r(_d[2]).awrap(this.getPublicDid(r,n.id));case 4:return d=c.sent,c.next=7,_r(_d[2]).awrap(this.getEndpointsForDid(r,n.id));case 7:return i=c.sent,s=n.did+"#key-agreement-1",u=(0,_r(_d[3]).sovDidDocumentFromDid)(n.did,d.verkey),(0,_r(_d[3]).addServicesFromEndpointsAttrib)(u,n.did,i,s),c.abrupt("return",{didDocument:u.build(),didDocumentMetadata:o,didResolutionMetadata:{contentType:'application/did+ld+json'}});case 14:return c.prev=14,c.t0=c.catch(1),c.abrupt("return",{didDocument:null,didDocumentMetadata:o,didResolutionMetadata:{error:'notFound',message:"resolver_error: Unable to resolve did '"+t+"': "+c.t0}});case 17:case"end":return c.stop()}},null,this,[[1,14]],Promise)}},{key:"getPublicDid",value:function(r,t){var n,o,d;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=r.dependencyManager.resolve(_r(_d[4]).IndyPoolService),i.next=3,_r(_d[2]).awrap(n.getPoolForDid(r,t));case 3:return o=i.sent,d=o.did,i.abrupt("return",d);case 6:case"end":return i.stop()}},null,null,null,Promise)}},{key:"getEndpointsForDid",value:function(r,t){var n,o,d,i,s,u,c,l;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return o=r.dependencyManager.resolve(_r(_d[4]).IndyPoolService),d=r.config.agentDependencies.indy,p.next=4,_r(_d[2]).awrap(o.getPoolForDid(r,t));case 4:return i=p.sent,s=i.pool,p.prev=6,r.config.logger.debug("Get endpoints for did '"+t+"' from ledger '"+s.id+"'"),p.next=10,_r(_d[2]).awrap(d.buildGetAttribRequest(null,t,'endpoint',null,null));case 10:return u=p.sent,r.config.logger.debug("Submitting get endpoint ATTRIB request for did '"+t+"' to ledger '"+s.id+"'"),p.next=14,_r(_d[2]).awrap(o.submitReadRequest(s,u));case 14:if((c=p.sent).result.data){p.next=17;break}return p.abrupt("return",{});case 17:return l=null===(n=JSON.parse(c.result.data))||void 0===n?void 0:n.endpoint,r.config.logger.debug("Got endpoints '"+JSON.stringify(l)+"' for did '"+t+"' from ledger '"+s.id+"'",{response:c,endpoints:l}),p.abrupt("return",null!==l&&void 0!==l?l:{});case 22:throw p.prev=22,p.t0=p.catch(6),r.config.logger.error("Error retrieving endpoints for did '"+t+"' from ledger '"+s.id+"'",{error:p.t0}),(0,_r(_d[5]).isIndyError)(p.t0)?new(_r(_d[6]).IndySdkError)(p.t0):p.t0;case 26:case"end":return p.stop()}},null,null,[[6,22]],Promise)}}]),r})();t=r([(0,_r(_d[7]).injectable)()],t),e.IndySdkSovDidResolver=t},1410,[7,8,82,1409,1360,1363,612,1020]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1411,[1412]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,s){void 0===s&&(s=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,s,u)}:function(t,n,o,s){void 0===s&&(s=o),t[s]=n[o]}),n=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(null!=o)for(var u in o)"default"!==u&&Object.prototype.hasOwnProperty.call(o,u)&&t(s,o,u);return n(s,o),s};Object.defineProperty(e,"__esModule",{value:!0}),e.WebDidResolver=void 0;var s=o(r(d[0])),u=(function(){function t(){r(d[1])(this,t),this._resolverInstance=new(r(d[2]).Resolver),this.resolver=s.getResolver(),this.supportedMethods=Object.keys(this.resolver)}return r(d[3])(t,[{key:"resolve",value:function(t,n,o,s){var u,c;return r(d[4]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[4]).awrap(this.resolver[o.method](n,o,this._resolverInstance,s));case 2:return u=t.sent,c=null,u.didDocument&&(c=r(d[5]).JsonTransformer.fromJSON(u.didDocument,r(d[6]).DidDocument)),t.abrupt("return",r(d[7])(r(d[7])({},u),{didDocument:c}));case 6:case"end":return t.stop()}},null,this,null,Promise)}}]),t})();e.WebDidResolver=u},1412,[1413,7,1091,8,82,626,1098,4]); -__d(function(g,r,i,a,m,_e,d){var n,t=(n=r(d[0]))&&'object'==typeof n&&'default'in n?n:{default:n};function e(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var o=function(n){try{return Promise.resolve(t.default(n,{mode:'cors'})).then(function(n){if(n.status>=400)throw new Error("Bad response "+n.statusText);return n.json()})}catch(n){return Promise.reject(n)}};function u(n,t,e){if(!n.s){if(e instanceof v){if(!e.s)return void(e.o=u.bind(null,n,t));1&t&&(t=e.s),e=e.v}if(e&&e.then)return void e.then(u.bind(null,n,t),u.bind(null,n,2));n.s=t,n.v=e;var o=n.o;o&&o(n)}}var c='/.well-known/did.json',v=(function(){function n(){}return n.prototype.then=function(t,e){var o=new n,c=this.s;if(c){var v=1&c?t:e;if(v){try{u(o,1,v(this.v))}catch(n){u(o,2,n)}return o}return this}return this.o=function(n){try{var c=n.v;1&n.s?u(o,1,t?t(c):c):e?u(o,1,e(c)):u(o,2,c)}catch(n){u(o,2,n)}},o},n})();function s(n){return n instanceof v&&1&n.s}function f(n,t){var e;do{var o=n();if(o&&o.then){if(!s(o)){e=!0;break}o=o.v}var c=t();if(s(c)&&(c=c.v),!c)return o}while(!c.then);var f=new v,h=u.bind(null,f,2);return(e?o.then(l):c.then(p)).then(void 0,h),f;function l(e){for(o=e;s(c=t())&&(c=c.v),c;){if(c.then)return void c.then(p).then(void 0,h);if((o=n())&&o.then){if(!s(o))return void o.then(l).then(void 0,h);o=o.v}}u(f,1,o)}function p(e){if(e){do{if((o=n())&&o.then){if(!s(o))return void o.then(l).then(void 0,h);o=o.v}if(s(e=t())&&(e=e.v),!e)return void u(f,1,o)}while(!e.then);e.then(p).then(void 0,h)}else u(f,1,o)}}_e.getResolver=function(){return{web:function(n,t){try{var u;function v(){var n,t=void 0!==(null==(n=w)?void 0:n['@context'])?'application/did+ld+json':'application/did+json';return s?{didDocument:w,didDocumentMetadata:j,didResolutionMetadata:{error:'notFound',message:s}}:{didDocument:w,didDocumentMetadata:j,didResolutionMetadata:{contentType:t}}}var s=null,h=decodeURIComponent(t.id)+c,l=t.id.split(':');l.length>1&&(h=l.map(decodeURIComponent).join('/')+'/did.json');var p="https://"+h,j={},w=null,y=f(function(){function t(){var t;u||(null==(t=w)?void 0:t.id)===n||(s='resolver_error: DID document id does not match requested did')}var c=e(function(){return Promise.resolve(o(p)).then(function(n){w=n})},function(n){s="resolver_error: DID must resolve to a valid https URL containing a JSON document: "+n,u=1});return c&&c.then?c.then(t):t()},function(){return!u&&!1});return Promise.resolve(y&&y.then?y.then(v):v())}catch(n){return Promise.reject(n)}}}}},1413,[1414]); -__d(function(g,r,i,a,m,e,d){m.exports=g.fetch,m.exports.default=g.fetch,m.exports.fetch=g.fetch,m.exports.Headers=g.Headers,m.exports.Request=g.Request,m.exports.Response=g.Response},1414,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1415,[1416,1417]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1416,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1417,[1418]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=r(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n=0;u--)(o=t[u])&&(s=(c<3?o(s):c>3?o(r,n,s):o(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommDocumentService=void 0;var c=(function(){function r(t,n){_r(_d[0])(this,r),this.logger=t.logger,this.didResolverService=n}return _r(_d[1])(r,[{key:"resolveServicesFromDid",value:function(r,n){var i,o,c,s,u,d,f,l,v,y,p,b,h;return _r(_d[2]).async(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,_r(_d[2]).awrap(this.didResolverService.resolveDidDocument(r,n));case 2:c=S.sent,s=[],u=t(c.didCommServices);case 5:if((d=u()).done){S.next=26;break}if(!((f=d.value)instanceof _r(_d[3]).IndyAgentService)){S.next=11;break}s.push({id:f.id,recipientKeys:f.recipientKeys.map(_r(_d[4]).verkeyToInstanceOfKey),routingKeys:(null===(i=f.routingKeys)||void 0===i?void 0:i.map(_r(_d[4]).verkeyToInstanceOfKey))||[],serviceEndpoint:f.serviceEndpoint}),S.next=24;break;case 11:if(!(f instanceof _r(_d[3]).DidCommV1Service)){S.next=24;break}l=[],v=t(null!==(o=f.routingKeys)&&void 0!==o?o:[]);case 14:if((y=v()).done){S.next=22;break}return p=y.value,S.next=18,_r(_d[2]).awrap(this.didResolverService.resolveDidDocument(r,p));case 18:b=S.sent,l.push((0,_r(_d[3]).keyReferenceToKey)(b,p));case 20:S.next=14;break;case 22:h=f.recipientKeys.map(function(t){var r=(0,_r(_d[3]).keyReferenceToKey)(c,t);if(r.keyType===_r(_d[5]).KeyType.X25519){var n=(0,_r(_d[6]).findMatchingEd25519Key)(r,c);if(n)return n}return r}),s.push({id:f.id,recipientKeys:h,routingKeys:l,serviceEndpoint:f.serviceEndpoint});case 24:S.next=5;break;case 26:return S.abrupt("return",s);case 27:case"end":return S.stop()}},null,this,null,Promise)}}]),r})();c=i([(0,_r(_d[7]).injectable)(),o("design:paramtypes",[_r(_d[8]).AgentConfig,_r(_d[9]).DidResolverService])],c),e.DidCommDocumentService=c},1418,[7,8,82,1098,986,990,1419,1020,1394,1420]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findMatchingEd25519Key=void 0,e.findMatchingEd25519Key=function(n,t){var u,o,y;if(n.keyType===r(d[0]).KeyType.X25519){var c=null!==(u=t.verificationMethod)&&void 0!==u?u:[],f=null!==(o=t.keyAgreement)&&void 0!==o?o:[],l=null!==(y=t.authentication)&&void 0!==y?y:[];return[].concat(r(d[1])(c),r(d[1])(l.filter(function(n){return'string'!=typeof n})),r(d[1])(f.filter(function(n){return'string'!=typeof n}))).map(function(n){return(0,r(d[2]).keyReferenceToKey)(t,n.id)}).filter(function(n){return(null===n||void 0===n?void 0:n.keyType)===r(d[0]).KeyType.Ed25519}).find(function(t){return r(d[0]).Key.fromPublicKey((0,r(d[3]).convertPublicKeyToX25519)(t.publicKey),r(d[0]).KeyType.X25519).publicKeyBase58===n.publicKeyBase58})}}},1419,[990,42,1420,1081]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1420,[1421,1098,1422,1093,1423,1425,1349,1348]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1421,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,d=arguments.length,s=d<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(d<3?o(s):d>3?o(i,r,s):o(i,r))||s);return d>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidsApi=void 0;var r=(function(){function t(i,r,n,o,d){_r(_d[0])(this,t),this.didResolverService=i,this.didRegistrarService=r,this.didRepository=n,this.agentContext=o,this.config=d}return _r(_d[1])(t,[{key:"resolve",value:function(t,i){return this.didResolverService.resolve(this.agentContext,t,i)}},{key:"create",value:function(t){return this.didRegistrarService.create(this.agentContext,t)}},{key:"update",value:function(t){return this.didRegistrarService.update(this.agentContext,t)}},{key:"deactivate",value:function(t){return this.didRegistrarService.deactivate(this.agentContext,t)}},{key:"resolveDidDocument",value:function(t){return this.didResolverService.resolveDidDocument(this.agentContext,t)}},{key:"getCreatedDids",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).method;return this.didRepository.getCreatedDids(this.agentContext,{method:t})}}]),t})();r=t([(0,_r(_d[2]).injectable)(),i("design:paramtypes",[_r(_d[3]).DidResolverService,_r(_d[3]).DidRegistrarService,_r(_d[4]).DidRepository,_r(_d[5]).AgentContext,_r(_d[6]).DidsModuleConfig])],r),e.DidsApi=r},1422,[7,8,1020,1423,1093,1391,1348]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1423,[1347,1424]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,d,r,i){var n,o=arguments.length,u=o<3?d:null===i?i=Object.getOwnPropertyDescriptor(d,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,d,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(u=(o<3?n(u):o>3?n(d,r,u):n(d,r))||u);return o>3&&u&&Object.defineProperty(d,r,u),u},d=this&&this.__metadata||function(t,d){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,d)},r=this&&this.__param||function(t,d){return function(r,i){d(r,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidRegistrarService=void 0;var i=(function(){function t(d,r){_r(_d[0])(this,t),this.logger=d,this.didsModuleConfig=r}return _r(_d[1])(t,[{key:"create",value:function(t,d){var r,i,n,o,u,s;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.logger.debug("creating did "+(null!==(r=d.did)&&void 0!==r?r:d.method)),o={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:d.did}},!(!d.did&&!d.method||d.did&&d.method)){c.next=4;break}return c.abrupt("return",_r(_d[3])(_r(_d[3])({},o),{didState:_r(_d[3])(_r(_d[3])({},o.didState),{reason:'Either did OR method must be specified'})}));case 4:if(u=null!==(i=d.method)&&void 0!==i?i:null===(n=(0,_r(_d[4]).tryParseDid)(d.did))||void 0===n?void 0:n.method){c.next=7;break}return c.abrupt("return",_r(_d[3])(_r(_d[3])({},o),{didState:_r(_d[3])(_r(_d[3])({},o.didState),{reason:"Could not extract method from did "+d.did})}));case 7:if(s=this.findRegistrarForMethod(u)){c.next=10;break}return c.abrupt("return",_r(_d[3])(_r(_d[3])({},o),{didState:_r(_d[3])(_r(_d[3])({},o.didState),{reason:"Unsupported did method: '"+u+"'"})}));case 10:return c.next=12,_r(_d[2]).awrap(s.create(t,d));case 12:return c.abrupt("return",c.sent);case 13:case"end":return c.stop()}},null,this,null,Promise)}},{key:"update",value:function(t,d){var r,i,n,o;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.logger.debug("updating did "+d.did),i=null===(r=(0,_r(_d[4]).tryParseDid)(d.did))||void 0===r?void 0:r.method,n={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:d.did}},i){u.next=5;break}return u.abrupt("return",_r(_d[3])(_r(_d[3])({},n),{didState:_r(_d[3])(_r(_d[3])({},n.didState),{reason:"Could not extract method from did "+d.did})}));case 5:if(o=this.findRegistrarForMethod(i)){u.next=8;break}return u.abrupt("return",_r(_d[3])(_r(_d[3])({},n),{didState:_r(_d[3])(_r(_d[3])({},n.didState),{reason:"Unsupported did method: '"+i+"'"})}));case 8:return u.next=10,_r(_d[2]).awrap(o.update(t,d));case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"deactivate",value:function(t,d){var r,i,n,o;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.logger.debug("deactivating did "+d.did),i={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:d.did}},n=null===(r=(0,_r(_d[4]).tryParseDid)(d.did))||void 0===r?void 0:r.method){u.next=5;break}return u.abrupt("return",_r(_d[3])(_r(_d[3])({},i),{didState:_r(_d[3])(_r(_d[3])({},i.didState),{reason:"Could not extract method from did "+d.did})}));case 5:if(o=this.findRegistrarForMethod(n)){u.next=8;break}return u.abrupt("return",_r(_d[3])(_r(_d[3])({},i),{didState:_r(_d[3])(_r(_d[3])({},i.didState),{reason:"Unsupported did method: '"+n+"'"})}));case 8:return u.next=10,_r(_d[2]).awrap(o.deactivate(t,d));case 10:return u.abrupt("return",u.sent);case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"findRegistrarForMethod",value:function(t){var d;return null!==(d=this.didsModuleConfig.registrars.find(function(d){return d.supportedMethods.includes(t)}))&&void 0!==d?d:null}}]),t})();i=t([(0,_r(_d[5]).injectable)(),r(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Logger)),d("design:paramtypes",[Object,_r(_d[7]).DidsModuleConfig])],i),e.DidRegistrarService=i},1424,[7,8,82,4,1090,1020,1104,1348]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidsModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.api=r(d[1]).DidsApi,this.config=new(r(d[2]).DidsModuleConfig)(n)}return r(d[3])(t,[{key:"register",value:function(t){t.registerContextScoped(r(d[1]).DidsApi),t.registerInstance(r(d[2]).DidsModuleConfig,this.config),t.registerSingleton(r(d[4]).DidResolverService),t.registerSingleton(r(d[4]).DidRegistrarService),t.registerSingleton(r(d[5]).DidRepository)}}]),t})();e.DidsModule=t},1425,[7,1422,1348,8,1423,1093]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e)},1426,[1427,1435,1463,1466,1477,1481,1482,1495,1527,1528]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e)},1427,[1428,1434,1454,1456,1457,1458,1459,1460,1461,1462]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionInvitationMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var r,i,n=(r=o,i=e(),function(){var e,t=_r(_d[0])(r);if(i){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;if(_r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.imageUrl=e.imageUrl,t.appendedAttachments=e.appendedAttachments,void 0!==e.did?t.did=e.did:(t.recipientKeys=e.recipientKeys,t.serviceEndpoint=e.serviceEndpoint,t.routingKeys=e.routingKeys),e.did&&(e.recipientKeys||e.routingKeys||e.serviceEndpoint)))throw new(_r(_d[4]).AriesFrameworkError)('either the did or the recipientKeys/serviceEndpoint/routingKeys must be set, but not both');return t}return _r(_d[5])(o,[{key:"toUrl",value:function(e){var t=e.domain,r=e.useLegacyDidSovPrefix,i=void 0!==r&&r,n=this.toJSON({useLegacyDidSovPrefix:i});return t+"?c_i="+_r(_d[6]).JsonEncoder.toBase64URL(n)}}],[{key:"fromUrl",value:function(e){var t,r=(0,_r(_d[7]).parseUrl)(e).query,i=null!==(t=r.c_i)&&void 0!==t?t:r.d_m;if('string'==typeof i){var n=_r(_d[6]).JsonEncoder.fromBase64(i);return _r(_d[8]).JsonTransformer.fromJSON(n,o)}throw new(_r(_d[4]).AriesFrameworkError)('InvitationUrl is invalid. Needs to be encoded with either c_i, d_m, or oob')}}]),o})(_r(_d[9]).AgentMessage);i.type=(0,_r(_d[10]).parseMessageType)('https://didcomm.org/connections/1.0/invitation'),t([(0,_r(_d[10]).IsValidMessageType)(i.type),(0,_r(_d[11]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).replaceLegacyDidSovPrefix)(t)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[12]).IsString)(),r("design:type",String)],i.prototype,"label",void 0),t([(0,_r(_d[12]).IsString)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.recipientKeys}),r("design:type",String)],i.prototype,"did",void 0),t([(0,_r(_d[12]).IsString)({each:!0}),(0,_r(_d[12]).IsArray)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),(0,_r(_d[12]).ArrayNotEmpty)(),r("design:type",Array)],i.prototype,"recipientKeys",void 0),t([(0,_r(_d[12]).IsString)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),r("design:type",String)],i.prototype,"serviceEndpoint",void 0),t([(0,_r(_d[12]).IsString)({each:!0}),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),(0,_r(_d[12]).IsOptional)(),r("design:type",Array)],i.prototype,"routingKeys",void 0),t([(0,_r(_d[12]).IsOptional)(),(0,_r(_d[12]).IsUrl)(),r("design:type",String)],i.prototype,"imageUrl",void 0),_e.ConnectionInvitationMessage=i},1428,[14,11,9,7,612,8,979,1429,626,949,942,627,662]); -__d(function(g,r,_i4,_a,m,e,d){'use strict';function t(t,a){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||a&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return a(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,n):void 0}}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var a=0,o=new Array(n);a0}).join('&')},e.parseUrl=function(t,n){n=r(d[3])({decode:!0},n);var a=r(d[4])(t,'#'),o=r(d[5])(a,2),i=o[0],u=o[1];return r(d[3])({url:i.split('?')[0]||'',query:k(v(t),n)},n&&n.parseFragmentIdentifier&&u?{fragmentIdentifier:l(u,n)}:{})},e.stringifyUrl=function(t,n){n=r(d[3])(r(d[6])({encode:!0,strict:!0},o,!0),n);var a=p(t.url).split('?')[0]||'',i=e.extract(t.url),u=e.parse(i,{sort:!1}),c=r(d[3])(u,t.query),l=e.stringify(c,n);l&&(l="?"+l);var f=y(t.url);return t.fragmentIdentifier&&(f="#"+(n[o]?s(t.fragmentIdentifier,n):t.fragmentIdentifier)),""+a+l+f},e.pick=function(t,n,a){a=r(d[3])(r(d[6])({parseFragmentIdentifier:!0},o,!1),a);var i=e.parseUrl(t,a),u=i.url,c=i.query,s=i.fragmentIdentifier;return e.stringifyUrl({url:u,query:r(d[7])(c,n),fragmentIdentifier:s},a)},e.exclude=function(t,n,a){var o=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,a){return!n(t,a)};return e.pick(t,o,a)}},1429,[42,1430,1431,4,1432,31,249,1433]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},1430,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp('%[a-f0-9]{2}','gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return decodeURIComponent(t.join(''))}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t),p=1;p=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,n,c):r(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRequestMessage=void 0;var o=(function(t){_r(_d[2])(i,t);var n,o,r=(n=i,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.imageUrl=e.imageUrl,t.connection=new(_r(_d[4]).Connection)({did:e.did,didDoc:e.didDoc})),t}return _r(_d[5])(i)})(_r(_d[6]).AgentMessage);o.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/connections/1.0/request'),t([(0,_r(_d[7]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),n("design:type",String)],o.prototype,"label",void 0),t([(0,_r(_d[9]).Type)(function(){return _r(_d[4]).Connection}),(0,_r(_d[8]).ValidateNested)(),(0,_r(_d[8]).IsInstance)(_r(_d[4]).Connection),n("design:type",_r(_d[4]).Connection)],o.prototype,"connection",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsUrl)(),n("design:type",String)],o.prototype,"imageUrl",void 0),_e.ConnectionRequestMessage=o},1434,[14,11,9,7,1435,8,949,942,662,627]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1435,[1436,1447,1448,1449,1450,1451,1452,1453]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,i,n){var c,d=arguments.length,r=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,o,i,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(r=(d<3?c(r):d>3?c(o,i,r):c(o,i))||r);return d>3&&r&&Object.defineProperty(o,i,r),r},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Connection=void 0;var i=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.did=o.did,this.didDoc=o.didDoc)});t([(0,_r(_d[2]).IsString)(),(0,_r(_d[3]).Expose)({name:'DID'}),o("design:type",String)],i.prototype,"did",void 0),t([(0,_r(_d[3]).Expose)({name:'DIDDoc'}),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).DidDoc}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(_r(_d[4]).DidDoc),(0,_r(_d[2]).IsOptional)(),o("design:type",_r(_d[4]).DidDoc)],i.prototype,"didDoc",void 0),e.Connection=i},1436,[8,7,662,627,1437]); -__d(function(g,_r,_i,_a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,c=arguments.length,s=c<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(c<3?o(s):c>3?o(i,r,s):o(i,r))||s);return c>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidDoc=void 0;var r=(function(){function t(i){_r(_d[0])(this,t),this.context='https://w3id.org/did/v1',this.publicKey=[],this.service=[],this.authentication=[],i&&(this.id=i.id,this.publicKey=i.publicKey,this.service=i.service,this.authentication=i.authentication)}return _r(_d[1])(t,[{key:"getPublicKey",value:function(t){return this.publicKey.find(function(i){return i.id===t})}},{key:"getServicesByType",value:function(t){return this.service.filter(function(i){return i.type===t})}},{key:"getServicesByClassType",value:function(t){return this.service.filter(function(i){return i instanceof t})}},{key:"didCommServices",get:function(){var t=[_r(_d[2]).IndyAgentService.type,_r(_d[2]).DidCommV1Service.type];return this.service.filter(function(i){return t.includes(i.type)}).sort(function(t,i){return i.priority-t.priority})}}]),t})();t([(0,_r(_d[3]).Expose)({name:'@context'}),(0,_r(_d[4]).Equals)('https://w3id.org/did/v1'),i("design:type",Object)],r.prototype,"context",void 0),t([(0,_r(_d[4]).IsString)(),i("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[5]).PublicKeyTransformer)(),i("design:type",Array)],r.prototype,"publicKey",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[2]).ServiceTransformer)(),i("design:type",Array)],r.prototype,"service",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[6]).AuthenticationTransformer)(),i("design:type",Array)],r.prototype,"authentication",void 0),e.DidDoc=r},1437,[7,8,1066,627,662,1438,1443]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RsaSig2018=e.EddsaSaSigSecp256k1=e.PublicKey=e.Ed25119Sig2018=e.PublicKeyTransformer=e.publicKeyTypes=void 0,Object.defineProperty(e,"Ed25119Sig2018",{enumerable:!0,get:function(){return r(d[0]).Ed25119Sig2018}}),Object.defineProperty(e,"EddsaSaSigSecp256k1",{enumerable:!0,get:function(){return r(d[1]).EddsaSaSigSecp256k1}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return r(d[2]).PublicKey}}),Object.defineProperty(e,"RsaSig2018",{enumerable:!0,get:function(){return r(d[3]).RsaSig2018}}),e.publicKeyTypes={RsaVerificationKey2018:r(d[3]).RsaSig2018,Ed25519VerificationKey2018:r(d[0]).Ed25119Sig2018,Secp256k1VerificationKey2018:r(d[1]).EddsaSaSigSecp256k1},e.PublicKeyTransformer=function(){return(0,r(d[4]).Transform)(function(n){return n.value.map(function(n){var t,u=null!==(t=e.publicKeyTypes[n.type])&&void 0!==t?t:r(d[2]).PublicKey;return(0,r(d[4]).plainToInstance)(u,n)})},{toClassOnly:!0})}},1438,[1439,1441,1440,1442,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Ed25119Sig2018=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'Ed25519VerificationKey2018'}))).type='Ed25519VerificationKey2018',e&&(t.value=e.publicKeyBase58),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('Ed25519VerificationKey2018'),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyBase58'}),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"value",void 0),_e.Ed25119Sig2018=n},1439,[14,11,9,7,4,8,1440,662,627]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,r){var n,c=arguments.length,l=c<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,o,r);else for(var p=t.length-1;p>=0;p--)(n=t[p])&&(l=(c<3?n(l):c>3?n(i,o,l):n(i,o))||l);return c>3&&l&&Object.defineProperty(i,o,l),l},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.controller=i.controller,this.type=i.type,this.value=i.value)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"id",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"controller",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],o.prototype,"value",void 0),e.PublicKey=o},1440,[8,7,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,c,r);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(o=(i<3?n(o):i>3?n(t,c,o):n(t,c))||o);return i>3&&o&&Object.defineProperty(t,c,o),o},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.EddsaSaSigSecp256k1=void 0;var r=(function(t){_r(_d[2])(i,t);var c,r,n=(c=i,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=n.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'Secp256k1VerificationKey2018'}))).type='Secp256k1VerificationKey2018',e&&(t.value=e.publicKeyHex),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('Secp256k1VerificationKey2018'),c("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyHex'}),(0,_r(_d[7]).IsString)(),c("design:type",String)],r.prototype,"value",void 0),_e.EddsaSaSigSecp256k1=r},1441,[14,11,9,7,4,8,1440,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.RsaSig2018=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'RsaVerificationKey2018'}))).type='RsaVerificationKey2018',e&&(t.value=e.publicKeyPem),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('RsaVerificationKey2018'),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyPem'}),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"value",void 0),_e.RsaSig2018=n},1442,[14,11,9,7,4,8,1440,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencedAuthentication=e.EmbeddedAuthentication=e.Authentication=e.AuthenticationTransformer=e.authenticationTypes=void 0,Object.defineProperty(e,"Authentication",{enumerable:!0,get:function(){return r(d[0]).Authentication}}),Object.defineProperty(e,"EmbeddedAuthentication",{enumerable:!0,get:function(){return r(d[1]).EmbeddedAuthentication}}),Object.defineProperty(e,"ReferencedAuthentication",{enumerable:!0,get:function(){return r(d[2]).ReferencedAuthentication}}),e.authenticationTypes={RsaVerificationKey2018:'RsaSignatureAuthentication2018',Ed25519VerificationKey2018:'Ed25519SignatureAuthentication2018',Secp256k1VerificationKey2018:'Secp256k1SignatureAuthenticationKey2018'},e.AuthenticationTransformer=function(){return(0,r(d[3]).Transform)(function(n){var t=n.value,u=n.obj;return n.type===r(d[3]).TransformationType.PLAIN_TO_CLASS?t.map(function(n){var t,c;if(n.publicKey){var o=u.publicKey.find(function(t){return t.id===n.publicKey});if(!o)throw new(r(d[4]).AriesFrameworkError)("Invalid public key referenced "+n.publicKey);var f=null!==(t=r(d[5]).publicKeyTypes[o.type])&&void 0!==t?t:r(d[5]).PublicKey,p=(0,r(d[3]).plainToInstance)(f,o);return new(r(d[2]).ReferencedAuthentication)(p,n.type)}var y=null!==(c=r(d[5]).publicKeyTypes[n.type])&&void 0!==c?c:r(d[5]).PublicKey,l=(0,r(d[3]).plainToInstance)(y,n);return new(r(d[1]).EmbeddedAuthentication)(l)}):t.map(function(n){return n instanceof r(d[1]).EmbeddedAuthentication?(0,r(d[3]).instanceToPlain)(n.publicKey):n})})}},1443,[1444,1445,1446,627,612,1438]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Authentication=void 0;var t=r(d[0])(function t(){r(d[1])(this,t)});e.Authentication=t},1444,[8,7]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,c){var r,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,c);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(i=(o<3?r(i):o>3?r(e,n,i):r(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmbeddedAuthentication=void 0;var c=(function(e){_r(_d[2])(o,e);var n,c,r=(n=o,c=t(),function(){var t,e=_r(_d[0])(n);if(c){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=r.call(this)).publicKey=t,e}return _r(_d[4])(o)})(_r(_d[5]).Authentication);e([(0,_r(_d[6]).IsNotEmpty)(),(0,_r(_d[6]).ValidateNested)(),(0,_r(_d[6]).IsInstance)(_r(_d[7]).PublicKey),n("design:type",_r(_d[7]).PublicKey)],c.prototype,"publicKey",void 0),_e.EmbeddedAuthentication=c},1445,[14,11,9,7,8,1444,662,1440]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var c,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,n,i):c(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReferencedAuthentication=void 0;var r=(function(e){_r(_d[2])(o,e);var n,r,c=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){var n;return _r(_d[3])(this,o),(n=c.call(this)).publicKey=t,n.type=e,n}return _r(_d[4])(o)})(_r(_d[5]).Authentication);e([(0,_r(_d[6]).IsString)(),n("design:type",String)],r.prototype,"type",void 0),e([(0,_r(_d[7]).Transform)(function(t){return t.value.id},{toPlainOnly:!0}),n("design:type",_r(_d[8]).PublicKey)],r.prototype,"publicKey",void 0),_e.ReferencedAuthentication=r},1446,[14,11,9,7,8,1444,662,627,1440]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionRole=void 0,(function(n){n.Inviter="inviter",n.Invitee="invitee"})(e.ConnectionRole||(e.ConnectionRole={}))},1447,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.rfc0160StateFromDidExchangeState=e.ConnectionState=void 0,(function(t){t.Null="null",t.Invited="invited",t.Requested="requested",t.Responded="responded",t.Complete="complete"})(t=e.ConnectionState||(e.ConnectionState={})),e.rfc0160StateFromDidExchangeState=function(n){var o;return(o={},r(d[0])(o,r(d[1]).DidExchangeState.Start,t.Null),r(d[0])(o,r(d[1]).DidExchangeState.Abandoned,t.Null),r(d[0])(o,r(d[1]).DidExchangeState.InvitationReceived,t.Invited),r(d[0])(o,r(d[1]).DidExchangeState.InvitationSent,t.Invited),r(d[0])(o,r(d[1]).DidExchangeState.RequestReceived,t.Requested),r(d[0])(o,r(d[1]).DidExchangeState.RequestSent,t.Requested),r(d[0])(o,r(d[1]).DidExchangeState.ResponseReceived,t.Responded),r(d[0])(o,r(d[1]).DidExchangeState.ResponseSent,t.Responded),r(d[0])(o,r(d[1]).DidExchangeState.Completed,t.Complete),o)[n]}},1448,[249,1449]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeState=void 0,(function(t){t.Start="start",t.InvitationSent="invitation-sent",t.InvitationReceived="invitation-received",t.RequestSent="request-sent",t.RequestReceived="request-received",t.ResponseSent="response-sent",t.ResponseReceived="response-received",t.Abandoned="abandoned",t.Completed="completed"})(e.DidExchangeState||(e.DidExchangeState={}))},1449,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeRole=void 0,(function(n){n.Requester="requester",n.Responder="responder"})(e.DidExchangeRole||(e.DidExchangeRole={}))},1450,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HandshakeProtocol=void 0,(function(o){o.Connections="https://didcomm.org/connections/1.0",o.DidExchange="https://didcomm.org/didexchange/1.0"})(e.HandshakeProtocol||(e.HandshakeProtocol={}))},1451,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1452,[1437,1438,1443]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionType=void 0,(function(n){n.Mediator="mediator"})(e.ConnectionType||(e.ConnectionType={}))},1453,[]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(i=(c<3?r(i):c>3?r(t,n,i):r(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionResponseMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var n,o,r=(n=c,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=r.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.connectionSig=e.connectionSig,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/connections/1.0/response'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).SignatureDecorator}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).SignatureDecorator),(0,_r(_d[7]).Expose)({name:'connection~sig'}),n("design:type",_r(_d[8]).SignatureDecorator)],o.prototype,"connectionSig",void 0),_e.ConnectionResponseMessage=o},1454,[14,11,9,7,8,949,942,627,1455,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,p=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,r,i,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(p=(s<3?o(p):s>3?o(r,i,p):o(r,i))||p);return s>3&&p&&Object.defineProperty(r,i,p),p},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureDecorator=void 0;var i=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.signatureType=r.signatureType,this.signatureData=r.signatureData,this.signer=r.signer,this.signature=r.signature)});t([(0,_r(_d[2]).Expose)({name:'@type'}),(0,_r(_d[2]).Transform)(function(t){var r=t.value;return(0,_r(_d[3]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),(0,_r(_d[4]).Matches)(_r(_d[5]).MessageTypeRegExp),r("design:type",String)],i.prototype,"signatureType",void 0),t([(0,_r(_d[2]).Expose)({name:'sig_data'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signatureData",void 0),t([(0,_r(_d[2]).Expose)({name:'signer'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signer",void 0),t([(0,_r(_d[2]).Expose)({name:'signature'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signature",void 0),e.SignatureDecorator=i},1455,[8,7,627,942,662,952]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TrustPingMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var n,i,r=(n=o,i=e(),function(){var e,t=_r(_d[0])(n);if(i){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=r.call(this)).type=o.type.messageTypeUri,t.responseRequested=!0,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.responseRequested=void 0===e.responseRequested||e.responseRequested,e.timing&&t.setTiming({outTime:e.timing.outTime,expiresTime:e.timing.expiresTime,delayMilli:e.timing.delayMilli})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);i.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/trust_ping/1.0/ping'),t([(0,_r(_d[6]).IsValidMessageType)(i.type),n("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],i.prototype,"comment",void 0),t([(0,_r(_d[7]).IsBoolean)(),(0,_r(_d[8]).Expose)({name:'response_requested'}),n("design:type",Object)],i.prototype,"responseRequested",void 0),_e.TrustPingMessage=i},1456,[14,11,9,7,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TrustPingResponseMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.setThread({threadId:e.threadId}),e.timing&&t.setTiming({inTime:e.timing.inTime,outTime:e.timing.outTime})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/trust_ping/1.0/ping_response'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),_e.TrustPingResponseMessage=r},1457,[14,11,9,7,8,949,942,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/connection/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.ConnectionProblemReportMessage=o},1458,[14,11,9,7,8,948,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,d=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(d=(i<3?r(d):i>3?r(t,o,d):r(t,o))||d);return i>3&&d&&Object.defineProperty(t,o,d),d},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeRequestMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.goalCode=e.goalCode,t.goal=e.goal,t.did=e.did,t.setThread({threadId:t.id,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"label",void 0),t([(0,_r(_d[8]).Expose)({name:'goal_code'}),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"goalCode",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"goal",void 0),t([(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"did",void 0),t([(0,_r(_d[8]).Expose)({name:'did_doc~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).ValidateNested)(),o("design:type",_r(_d[9]).Attachment)],n.prototype,"didDoc",void 0),_e.DidExchangeRequestMessage=n},1459,[14,11,9,7,8,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,c=arguments.length,i=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeResponseMessage=void 0;var r=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.did=e.did,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/response'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),n("design:type",String)],r.prototype,"did",void 0),t([(0,_r(_d[8]).Expose)({name:'did_doc~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).ValidateNested)(),n("design:type",_r(_d[9]).Attachment)],r.prototype,"didDoc",void 0),_e.DidExchangeResponseMessage=r},1460,[14,11,9,7,8,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(i=(o<3?c(i):o>3?c(t,r,i):c(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeCompleteMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:e.threadId,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/complete'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.DidExchangeCompleteMessage=n},1461,[14,11,9,7,8,949,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var c,n=arguments.length,i=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(i=(n<3?c(i):n>3?c(t,r,i):c(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(n,t);var r,o,c=(r=n,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t;return _r(_d[3])(this,n),(t=c.call(this,e)).type=n.type.messageTypeUri,t}return _r(_d[4])(n)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.DidExchangeProblemReportMessage=o},1462,[14,11,9,7,8,948,942]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1463,[1464,1465]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRecord=void 0;var t=(function(t){r(d[2])(c,t);var n,o,s=(n=c,o=e(),function(){var e,t=r(d[0])(n);if(o){var s=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t,n,o,u,l;return r(d[3])(this,c),(t=s.call(this)).connectionTypes=[],t.type=c.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.did=e.did,t.invitationDid=e.invitationDid,t.theirDid=e.theirDid,t.theirLabel=e.theirLabel,t.state=e.state,t.role=e.role,t.alias=e.alias,t.autoAcceptConnection=e.autoAcceptConnection,t._tags=null!==(u=e.tags)&&void 0!==u?u:{},t.threadId=e.threadId,t.imageUrl=e.imageUrl,t.mediatorId=e.mediatorId,t.errorMessage=e.errorMessage,t.protocol=e.protocol,t.outOfBandId=e.outOfBandId,t.connectionTypes=null!==(l=e.connectionTypes)&&void 0!==l?l:[]),t}return r(d[5])(c,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{state:this.state,role:this.role,threadId:this.threadId,mediatorId:this.mediatorId,did:this.did,theirDid:this.theirDid,outOfBandId:this.outOfBandId,invitationDid:this.invitationDid,connectionTypes:this.connectionTypes})}},{key:"isRequester",get:function(){return this.role===r(d[7]).DidExchangeRole.Requester}},{key:"rfc0160State",get:function(){return(0,r(d[7]).rfc0160StateFromDidExchangeState)(this.state)}},{key:"isReady",get:function(){return this.state&&[r(d[7]).DidExchangeState.Completed,r(d[7]).DidExchangeState.ResponseSent].includes(this.state)}},{key:"assertReady",value:function(){if(!this.isReady)throw new(r(d[8]).AriesFrameworkError)("Connection record is not ready to be used. Expected "+r(d[7]).DidExchangeState.ResponseSent+", "+r(d[7]).DidExchangeState.ResponseReceived+" or "+r(d[7]).DidExchangeState.Completed+", found invalid state "+this.state)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(r(d[8]).AriesFrameworkError)("Connection record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertRole",value:function(e){if(this.role!==e)throw new(r(d[8]).AriesFrameworkError)("Connection record has invalid role "+this.role+". Expected role "+e+".")}}]),c})(r(d[9]).BaseRecord);_e.ConnectionRecord=t,t.type='ConnectionRecord'},1464,[14,11,9,7,953,8,4,1435,612,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRepository=void 0;var i=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),i.call(this,_r(_d[4]).ConnectionRecord,e,t)}return _r(_d[5])(o,[{key:"findByDids",value:function(e,t){var n,r;return _r(_d[6]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.ourDid,r=t.theirDid,i.abrupt("return",this.findSingleByQuery(e,{did:n,theirDid:r}));case 2:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(e,t){return this.getSingleByQuery(e,{threadId:t})}},{key:"getByRoleAndThreadId",value:function(e,t,n){return this.getSingleByQuery(e,{threadId:n,role:t})}}]),o})(_r(_d[7]).Repository);i=t([(0,_r(_d[8]).injectable)(),r(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],i),_e.ConnectionRepository=i},1465,[14,11,9,7,1464,8,82,1102,1020,1104,1105]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1466,[1467,1480]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";var e=this&&this.__decorate||function(e,n,t,r){var i,o=arguments.length,s=o<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(n,t,s):i(n,t))||s);return o>3&&s&&Object.defineProperty(n,t,s),s},n=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},t=this&&this.__param||function(e,n){return function(t,r){n(t,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionService=void 0;var r=(function(){function e(n,t,r,i,o){_r(_d[0])(this,e),this.connectionRepository=t,this.didRepository=r,this.didRegistrarService=i,this.eventEmitter=o,this.logger=n}return _r(_d[1])(e,[{key:"createRequest",value:function(e,n,t){var r,i,o,s,c,d,u,p,l,y,f;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return this.logger.debug("Create message "+_r(_d[3]).ConnectionRequestMessage.type.messageTypeUri+" start",n),n.assertRole(_r(_d[4]).OutOfBandRole.Receiver),n.assertState(_r(_d[5]).OutOfBandState.PrepareResponse),r=n.outOfBandInvitation,i=t.routing.mediatorId,o=this.createDidDoc(t.routing),s=_r(_d[6])(r.invitationDids,1),c=s[0],h.next=9,_r(_d[2]).awrap(this.createDid(e,{role:_r(_d[7]).DidDocumentRole.Created,didDoc:o}));case 9:return d=h.sent,u=d.did,p=t.label,l=t.imageUrl,(y=new(_r(_d[3]).ConnectionRequestMessage)({label:null!==p&&void 0!==p?p:e.config.label,did:o.id,didDoc:o,imageUrl:null!==l&&void 0!==l?l:e.config.connectionImageUrl})).setThread({threadId:y.id,parentThreadId:r.id}),h.next=16,_r(_d[2]).awrap(this.createConnection(e,{protocol:_r(_d[8]).HandshakeProtocol.Connections,role:_r(_d[8]).DidExchangeRole.Requester,state:_r(_d[8]).DidExchangeState.InvitationReceived,theirLabel:r.label,alias:null===t||void 0===t?void 0:t.alias,did:u,mediatorId:i,autoAcceptConnection:null===t||void 0===t?void 0:t.autoAcceptConnection,outOfBandId:n.id,invitationDid:c,imageUrl:r.imageUrl,threadId:y.id}));case 16:return f=h.sent,h.next=19,_r(_d[2]).awrap(this.updateState(e,f,_r(_d[8]).DidExchangeState.RequestSent));case 19:return h.abrupt("return",{connectionRecord:f,message:y});case 20:case"end":return h.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(e,n){var t,r,i,o;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:if(this.logger.debug("Process message "+_r(_d[3]).ConnectionRequestMessage.type.messageTypeUri+" start",{message:e.message}),n.assertRole(_r(_d[4]).OutOfBandRole.Sender),n.assertState(_r(_d[5]).OutOfBandState.AwaitResponse),(t=e.message).connection.didDoc){s.next=6;break}throw new(_r(_d[9]).ConnectionProblemReportError)('Public DIDs are not supported yet',{problemCode:_r(_d[9]).ConnectionProblemReportReason.RequestNotAccepted});case 6:return s.next=8,_r(_d[2]).awrap(this.createDid(e.agentContext,{role:_r(_d[7]).DidDocumentRole.Received,didDoc:t.connection.didDoc}));case 8:return r=s.sent,i=r.did,s.next=12,_r(_d[2]).awrap(this.createConnection(e.agentContext,{protocol:_r(_d[8]).HandshakeProtocol.Connections,role:_r(_d[8]).DidExchangeRole.Responder,state:_r(_d[8]).DidExchangeState.RequestReceived,alias:n.alias,theirLabel:t.label,imageUrl:t.imageUrl,outOfBandId:n.id,theirDid:i,threadId:t.threadId,mediatorId:n.mediatorId,autoAcceptConnection:n.autoAcceptConnection}));case 12:return o=s.sent,s.next=15,_r(_d[2]).awrap(this.connectionRepository.update(e.agentContext,o));case 15:return this.emitStateChangedEvent(e.agentContext,o,null),this.logger.debug("Process message "+_r(_d[3]).ConnectionRequestMessage.type.messageTypeUri+" end",o),s.abrupt("return",o);case 18:case"end":return s.stop()}},null,this,null,Promise)}},{key:"createResponse",value:function(e,n,t,r){var i,o,s,c,d,u,p;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return this.logger.debug("Create message "+_r(_d[3]).ConnectionResponseMessage.type.messageTypeUri+" start",n),n.assertState(_r(_d[8]).DidExchangeState.RequestReceived),n.assertRole(_r(_d[8]).DidExchangeRole.Responder),i=r?this.createDidDoc(r):this.createDidDocFromOutOfBandDidCommServices(t.outOfBandInvitation.getInlineServices()),l.next=6,_r(_d[2]).awrap(this.createDid(e,{role:_r(_d[7]).DidDocumentRole.Created,didDoc:i}));case 6:if(o=l.sent,s=o.did,c=new(_r(_d[8]).Connection)({did:i.id,didDoc:i}),d=_r(_d[10]).JsonTransformer.toJSON(c),n.threadId){l.next=12;break}throw new(_r(_d[11]).AriesFrameworkError)("Connection record with id "+n.id+" does not have a thread id");case 12:return u=_r(_d[12]).Key.fromFingerprint(t.getTags().recipientKeyFingerprints[0]).publicKeyBase58,l.t0=_r(_d[3]).ConnectionResponseMessage,l.t1=n.threadId,l.next=17,_r(_d[2]).awrap((0,_r(_d[13]).signData)(d,e.wallet,u));case 17:return l.t2=l.sent,l.t3={threadId:l.t1,connectionSig:l.t2},p=new l.t0(l.t3),n.did=s,l.next=23,_r(_d[2]).awrap(this.updateState(e,n,_r(_d[8]).DidExchangeState.ResponseSent));case 23:return this.logger.debug("Create message "+_r(_d[3]).ConnectionResponseMessage.type.messageTypeUri+" end",{connectionRecord:n,message:p}),l.abrupt("return",{connectionRecord:n,message:p});case 25:case"end":return l.stop()}},null,this,null,Promise)}},{key:"processResponse",value:function(e,n){var t,r,i,o,s,c,d,u,p,l;return _r(_d[2]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(this.logger.debug("Process message "+_r(_d[3]).ConnectionResponseMessage.type.messageTypeUri+" start",{message:e.message}),t=e.connection,r=e.message,i=e.recipientKey,o=e.senderKey,i&&o){y.next=4;break}throw new(_r(_d[11]).AriesFrameworkError)('Unable to process connection request without senderKey or recipientKey');case 4:if(t){y.next=6;break}throw new(_r(_d[11]).AriesFrameworkError)('No connection record in message context.');case 6:return t.assertState(_r(_d[8]).DidExchangeState.RequestSent),t.assertRole(_r(_d[8]).DidExchangeRole.Requester),s=null,y.prev=9,y.next=12,_r(_d[2]).awrap((0,_r(_d[13]).unpackAndVerifySignatureDecorator)(r.connectionSig,e.agentContext.wallet));case 12:s=y.sent,y.next=20;break;case 15:if(y.prev=15,y.t0=y.catch(9),!(y.t0 instanceof _r(_d[11]).AriesFrameworkError)){y.next=19;break}throw new(_r(_d[9]).ConnectionProblemReportError)(y.t0.message,{problemCode:_r(_d[9]).ConnectionProblemReportReason.ResponseProcessingError});case 19:throw y.t0;case 20:if(c=_r(_d[10]).JsonTransformer.fromJSON(s,_r(_d[8]).Connection),d=r.connectionSig.signer,u=_r(_d[12]).Key.fromFingerprint(n.getTags().recipientKeyFingerprints[0]).publicKeyBase58,d===u){y.next=25;break}throw new(_r(_d[9]).ConnectionProblemReportError)("Connection object in connection response message is not signed with same key as recipient key in invitation expected='"+u+"' received='"+d+"'",{problemCode:_r(_d[9]).ConnectionProblemReportReason.ResponseNotAccepted});case 25:if(c.didDoc){y.next=27;break}throw new(_r(_d[11]).AriesFrameworkError)('DID Document is missing.');case 27:return y.next=29,_r(_d[2]).awrap(this.createDid(e.agentContext,{role:_r(_d[7]).DidDocumentRole.Received,didDoc:c.didDoc}));case 29:return p=y.sent,l=p.did,t.theirDid=l,t.threadId=r.threadId,y.next=35,_r(_d[2]).awrap(this.updateState(e.agentContext,t,_r(_d[8]).DidExchangeState.ResponseReceived));case 35:return y.abrupt("return",t);case 36:case"end":return y.stop()}},null,this,[[9,15]],Promise)}},{key:"createTrustPing",value:function(e,n){var t,r,i=arguments;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=i.length>2&&void 0!==i[2]?i[2]:{},n.assertState([_r(_d[8]).DidExchangeState.ResponseReceived,_r(_d[8]).DidExchangeState.Completed]),r=new(_r(_d[3]).TrustPingMessage)(t),n.state===_r(_d[8]).DidExchangeState.Completed){o.next=6;break}return o.next=6,_r(_d[2]).awrap(this.updateState(e,n,_r(_d[8]).DidExchangeState.Completed));case 6:return o.abrupt("return",{connectionRecord:n,message:r});case 7:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processAck",value:function(e){var n,t;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.connection,t=e.recipientKey,n){r.next=3;break}throw new(_r(_d[11]).AriesFrameworkError)("Unable to process connection ack: connection for recipient key "+(null===t||void 0===t?void 0:t.fingerprint)+" not found");case 3:if(n.state!==_r(_d[8]).DidExchangeState.ResponseSent||n.role!==_r(_d[8]).DidExchangeRole.Responder){r.next=6;break}return r.next=6,_r(_d[2]).awrap(this.updateState(e.agentContext,n,_r(_d[8]).DidExchangeState.Completed));case 6:return r.abrupt("return",n);case 7:case"end":return r.stop()}},null,this,null,Promise)}},{key:"processProblemReport",value:function(e){var n,t,r,i,o,s,c;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(t=e.message,r=e.recipientKey,i=e.senderKey,this.logger.debug("Processing connection problem report for verkey "+(null===r||void 0===r?void 0:r.fingerprint)),r){d.next=4;break}throw new(_r(_d[11]).AriesFrameworkError)('Unable to process connection problem report without recipientKey');case 4:return d.next=6,_r(_d[2]).awrap(this.didRepository.findCreatedDidByRecipientKey(e.agentContext,r));case 6:if(o=d.sent){d.next=9;break}throw new(_r(_d[11]).AriesFrameworkError)("Unable to process connection problem report: created did record for recipient key "+r.fingerprint+" not found");case 9:return d.next=11,_r(_d[2]).awrap(this.findByOurDid(e.agentContext,o.did));case 11:if(s=d.sent){d.next=14;break}throw new(_r(_d[11]).AriesFrameworkError)("Unable to process connection problem report: connection for recipient key "+r.fingerprint+" not found");case 14:if(d.t0=s.theirDid,!d.t0){d.next=19;break}return d.next=18,_r(_d[2]).awrap(this.didRepository.findReceivedDid(e.agentContext,s.theirDid));case 18:d.t0=d.sent;case 19:if(c=d.t0){d.next=22;break}throw new(_r(_d[11]).AriesFrameworkError)("Received did record for did "+s.theirDid+" not found.");case 22:if(!i){d.next=25;break}if(null===(n=null===c||void 0===c?void 0:c.getTags().recipientKeyFingerprints)||void 0===n?void 0:n.includes(i.fingerprint)){d.next=25;break}throw new(_r(_d[11]).AriesFrameworkError)("Sender key doesn't match key of connection record");case 25:return s.errorMessage=t.description.code+" : "+t.description.en,d.next=28,_r(_d[2]).awrap(this.update(e.agentContext,s));case 28:return d.abrupt("return",s);case 29:case"end":return d.stop()}},null,this,null,Promise)}},{key:"assertConnectionOrServiceDecorator",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.previousSentMessage,r=n.previousReceivedMessage,i=e.connection,o=e.message;if(i)i.assertReady(),this.logger.debug("Processing message with id "+o.id+" and connection id "+i.id,{type:o.type});else{this.logger.debug("Processing connection-less message with id "+o.id,{type:o.type});var s=e.recipientKey&&e.recipientKey.publicKeyBase58,c=e.senderKey&&e.senderKey.publicKeyBase58;if(t){if(!s)throw new(_r(_d[11]).AriesFrameworkError)('Cannot verify service without recipientKey on incoming message (received unpacked message)');if(!(null===t||void 0===t?void 0:t.service)||!t.service.recipientKeys.includes(s))throw new(_r(_d[11]).AriesFrameworkError)('Previously sent message ~service recipientKeys does not include current received message recipient key')}if(r){if(!c)throw new(_r(_d[11]).AriesFrameworkError)('Cannot verify service without senderKey on incoming message (received AnonCrypt or unpacked message)');if(!r.service||!r.service.recipientKeys.includes(c))throw new(_r(_d[11]).AriesFrameworkError)('Previously received message ~service recipientKeys does not include current received message sender key')}if(!o.service&&!s)throw new(_r(_d[11]).AriesFrameworkError)('Message recipientKey must have ~service decorator')}}},{key:"updateState",value:function(e,n,t){var r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=n.state,n.state=t,i.next=4,_r(_d[2]).awrap(this.connectionRepository.update(e,n));case 4:this.emitStateChangedEvent(e,n,r);case 5:case"end":return i.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(e,n,t){var r=_r(_d[10]).JsonTransformer.clone(n);this.eventEmitter.emit(e,{type:_r(_d[14]).ConnectionEventTypes.ConnectionStateChanged,payload:{connectionRecord:r,previousState:t}})}},{key:"update",value:function(e,n){return this.connectionRepository.update(e,n)}},{key:"getAll",value:function(e){return this.connectionRepository.getAll(e)}},{key:"getById",value:function(e,n){return this.connectionRepository.getById(e,n)}},{key:"findById",value:function(e,n){return this.connectionRepository.findById(e,n)}},{key:"deleteById",value:function(e,n){var t;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.getById(e,n));case 2:return t=r.sent,r.abrupt("return",this.connectionRepository.delete(e,t));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findByDids",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findByDids(e,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.getByThreadId(e,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByRoleAndThreadId",value:function(e,n,t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.connectionRepository.getByRoleAndThreadId(e,n,t));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findByTheirDid",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findSingleByQuery(e,{theirDid:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByOurDid",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findSingleByQuery(e,{did:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findAllByOutOfBandId",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findByQuery(e,{outOfBandId:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findAllByConnectionTypes",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findByQuery(e,{connectionTypes:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByInvitationDid",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findByQuery(e,{invitationDid:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByKeys",value:function(e,n){var t,r,i,o,s;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=n.senderKey,r=n.recipientKey,c.next=3,_r(_d[2]).awrap(this.didRepository.findReceivedDidByRecipientKey(e,t));case 3:if(!(i=c.sent)){c.next=14;break}return c.next=7,_r(_d[2]).awrap(this.didRepository.findCreatedDidByRecipientKey(e,r));case 7:if(!(o=c.sent)){c.next=14;break}return c.next=11,_r(_d[2]).awrap(this.findByDids(e,{ourDid:o.did,theirDid:i.did}));case 11:if(!(s=c.sent)||!s.isReady){c.next=14;break}return c.abrupt("return",s);case 14:return this.logger.debug("No connection record found for encrypted message with recipient key "+r.fingerprint+" and sender key "+t.fingerprint),c.abrupt("return",null);case 16:case"end":return c.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(e,n){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionRepository.findByQuery(e,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"createConnection",value:function(e,n){var t;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return t=new(_r(_d[15]).ConnectionRecord)(n),r.next=3,_r(_d[2]).awrap(this.connectionRepository.save(e,t));case 3:return r.abrupt("return",t);case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"addConnectionType",value:function(e,n,t){var r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=n.connectionTypes||[],n.connectionTypes=[t].concat(_r(_d[16])(r)),i.next=4,_r(_d[2]).awrap(this.update(e,n));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"removeConnectionType",value:function(e,n,t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return n.connectionTypes=n.connectionTypes.filter(function(e){return e!==t}),r.next=3,_r(_d[2]).awrap(this.update(e,n));case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getConnectionTypes",value:function(e){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.connectionTypes||[]);case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"createDid",value:function(e,n){var t,r,i,o,s;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=n.role,r=n.didDoc,i=(0,_r(_d[17]).convertToNewDidDocument)(r),o=(0,_r(_d[18]).didDocumentJsonToNumAlgo1Did)(i.toJSON()),i.id=o,(s=new(_r(_d[19]).DidRecord)({did:o,role:t,didDocument:i,tags:{recipientKeyFingerprints:i.recipientKeys.map(function(e){return e.fingerprint})}})).metadata.set(_r(_d[20]).DidRecordMetadataKeys.LegacyDid,{unqualifiedDid:r.id,didDocumentString:_r(_d[10]).JsonTransformer.serialize(r)}),this.logger.debug('Saving DID record',{id:s.id,did:s.did,role:s.role,tags:s.getTags(),didDocument:'omitted...'}),c.next=9,_r(_d[2]).awrap(this.didRepository.save(e,s));case 9:return this.logger.debug('Did record created.',s),c.abrupt("return",{did:o,didDocument:i});case 11:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createDidDoc",value:function(e){var n=(0,_r(_d[21]).indyDidFromPublicKeyBase58)(e.recipientKey.publicKeyBase58),t=new(_r(_d[8]).Ed25119Sig2018)({id:n+"#1",controller:n,publicKeyBase58:e.recipientKey.publicKeyBase58}),r=new(_r(_d[8]).ReferencedAuthentication)(t,_r(_d[8]).authenticationTypes.Ed25519VerificationKey2018),i=e.endpoints.map(function(t,r){return new(_r(_d[22]).IndyAgentService)({id:n+"#IndyAgentService",serviceEndpoint:t,recipientKeys:[e.recipientKey.publicKeyBase58],routingKeys:e.routingKeys.map(function(e){return e.publicKeyBase58}),priority:r})});return new(_r(_d[8]).DidDoc)({id:n,authentication:[r],service:i,publicKey:[t]})}},{key:"createDidDocFromOutOfBandDidCommServices",value:function(e){var n=_r(_d[6])(e[0].recipientKeys,1)[0],t=_r(_d[22]).DidKey.fromDid(n).key,r=(0,_r(_d[21]).indyDidFromPublicKeyBase58)(t.publicKeyBase58),i=new(_r(_d[8]).Ed25119Sig2018)({id:r+"#1",controller:r,publicKeyBase58:t.publicKeyBase58}),o=new(_r(_d[8]).ReferencedAuthentication)(i,_r(_d[8]).authenticationTypes.Ed25519VerificationKey2018),s=e.map(function(e,n){var i;return new(_r(_d[22]).IndyAgentService)({id:r+"#IndyAgentService",serviceEndpoint:e.serviceEndpoint,recipientKeys:[t.publicKeyBase58],routingKeys:null===(i=e.routingKeys)||void 0===i?void 0:i.map(_r(_d[23]).didKeyToVerkey),priority:n})});return new(_r(_d[8]).DidDoc)({id:r,authentication:[o],service:s,publicKey:[i]})}},{key:"returnWhenIsConnected",value:function(e,n){var t,r,i,o,s,c=arguments;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return t=c.length>2&&void 0!==c[2]?c[2]:2e4,r=function(e){return e.id===n&&e.state===_r(_d[8]).DidExchangeState.Completed},i=this.eventEmitter.observable(_r(_d[14]).ConnectionEventTypes.ConnectionStateChanged),o=new(_r(_d[24]).ReplaySubject)(1),i.pipe((0,_r(_d[25]).filterContextCorrelationId)(e.contextCorrelationId),(0,_r(_d[26]).map)(function(e){return e.payload.connectionRecord}),(0,_r(_d[26]).first)(r),(0,_r(_d[26]).timeout)(t)).subscribe(o),d.next=7,_r(_d[2]).awrap(this.getById(e,n));case 7:return s=d.sent,r(s)&&o.next(s),d.abrupt("return",(0,_r(_d[24]).firstValueFrom)(o));case 10:case"end":return d.stop()}},null,this,null,Promise)}}]),e})();r=e([(0,_r(_d[27]).injectable)(),t(0,(0,_r(_d[27]).inject)(_r(_d[28]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,_r(_d[29]).ConnectionRepository,_r(_d[19]).DidRepository,_r(_d[22]).DidRegistrarService,_r(_d[30]).EventEmitter])],r),_e.ConnectionService=r},1467,[7,8,82,1427,1468,1469,31,1099,1435,1470,626,612,990,1475,1477,1464,42,1478,1354,1093,1096,1364,1420,986,1106,1346,1329,1020,1104,1465,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandRole=void 0,(function(n){n.Sender="sender",n.Receiver="receiver"})(e.OutOfBandRole||(e.OutOfBandRole={}))},1468,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandState=void 0,(function(t){t.Initial="initial",t.AwaitResponse="await-response",t.PrepareResponse="prepare-response",t.Done="done"})(e.OutOfBandState||(e.OutOfBandState={}))},1469,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1470,[1471,1472,1473,1474]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).ConnectionProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.ConnectionProblemReportError=t},1471,[14,11,9,7,1427,8,945]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionProblemReportReason=void 0,(function(o){o.RequestNotAccepted="request_not_accepted",o.RequestProcessingError="request_processing_error",o.ResponseNotAccepted="response_not_accepted",o.ResponseProcessingError="response_processing_error"})(e.ConnectionProblemReportReason||(e.ConnectionProblemReportReason={}))},1472,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).DidExchangeProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.DidExchangeProblemReportError=t},1473,[14,11,9,7,1427,8,945]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeProblemReportReason=void 0,(function(o){o.RequestNotAccepted="request_not_accepted",o.RequestProcessingError="request_processing_error",o.ResponseNotAccepted="response_not_accepted",o.ResponseProcessingError="response_processing_error",o.CompleteRejected="complete_rejected"})(e.DidExchangeProblemReportReason||(e.DidExchangeProblemReportReason={}))},1474,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.signData=e.unpackAndVerifySignatureDecorator=void 0;var t=n(r(d[0]));e.unpackAndVerifySignatureDecorator=function(n,t){var s,u,o,c;return r(d[1]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return s=n.signer,u=r(d[2]).Key.fromPublicKeyBase58(s,r(d[2]).KeyType.Ed25519),o=r(d[3]).TypedArrayEncoder.fromBase64(n.signatureData),c=r(d[3]).TypedArrayEncoder.fromBase64(n.signature),f.next=6,r(d[1]).awrap(t.verify({signature:c,data:o,key:u}));case 6:if(f.sent){f.next=9;break}throw new(r(d[4]).AriesFrameworkError)('Signature is not valid');case 9:return f.abrupt("return",r(d[5]).JsonEncoder.fromBuffer(o.slice(8)));case 10:case"end":return f.stop()}},null,null,null,Promise)},e.signData=function(n,s,u){var o,c,f,y;return r(d[1]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return o=r(d[6]).Buffer.concat([(0,t.default)(),r(d[5]).JsonEncoder.toBuffer(n)]),c=r(d[2]).Key.fromPublicKeyBase58(u,r(d[2]).KeyType.Ed25519),l.next=4,r(d[1]).awrap(s.sign({key:c,data:o}));case 4:return f=l.sent,y=new(r(d[7]).SignatureDecorator)({signatureType:'https://didcomm.org/signature/1.0/ed25519Sha512_single',signature:r(d[3]).TypedArrayEncoder.toBase64URL(f),signatureData:r(d[3]).TypedArrayEncoder.toBase64URL(o),signer:u}),l.abrupt("return",y);case 7:case"end":return l.stop()}},null,null,null,Promise)}},1475,[1476,82,990,994,612,979,981,1455]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=Date.now(),n=[],u=0;u<8;u++){var o=255&t;n.push(o),t=(t-o)/256}return Uint8Array.from(n).reverse()}},1476,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionEventTypes=void 0,(function(n){n.ConnectionStateChanged="ConnectionStateChanged"})(e.ConnectionEventTypes||(e.ConnectionEventTypes={}))},1477,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(!n.includes('#')&&n.includes(';')){var t=n.split(';');return"#"+r(d[3])(t).slice(1).join(';')}var o=n.split('#'),c=r(d[3])(o).slice(1);return"#"+(c.length?c.join('#'):n)}function t(n){if(!n.value)throw new(r(d[4]).AriesFrameworkError)("Public key "+n.id+" does not have value property");var t=n.value,o=r(d[5]).Key.fromPublicKeyBase58(t,r(d[5]).KeyType.Ed25519);return(0,r(d[6]).getEd25519VerificationMethod)({id:"#"+t.slice(0,8),key:o,controller:'#id'})}Object.defineProperty(e,"__esModule",{value:!0}),e.convertToNewDidDocument=void 0,e.convertToNewDidDocument=function(o){var c=new(r(d[0]).DidDocumentBuilder)(''),u={};o.authentication.forEach(function(o){var s=o.publicKey;if('Ed25519VerificationKey2018'===s.type&&s.value){var v=t(s),y=n(s.id);u[y]=v.id,c.addAuthentication(v.id),o instanceof r(d[1]).EmbeddedAuthentication&&c.addVerificationMethod(v)}}),o.publicKey.forEach(function(o){if('Ed25519VerificationKey2018'===o.type&&o.value){var s=t(o),v=n(o.id);u[v]=s.id,c.addVerificationMethod(s)}}),o.didCommServices.forEach(function(t){var o=n(t.id);if(t instanceof r(d[0]).DidCommV1Service){var s=t.recipientKeys.map(function(t){var o=n(t);return u[o]});t=new(r(d[0]).DidCommV1Service)({id:o,recipientKeys:s,serviceEndpoint:t.serviceEndpoint,routingKeys:t.routingKeys,accept:t.accept,priority:t.priority})}else t instanceof r(d[0]).IndyAgentService&&(t=new(r(d[0]).IndyAgentService)({id:o,recipientKeys:t.recipientKeys,serviceEndpoint:t.serviceEndpoint,routingKeys:t.routingKeys,priority:t.priority}));c.addService(t)});var s=c.build(),v=(0,r(d[2]).didDocumentJsonToNumAlgo1Did)(s.toJSON());return s.id=v,s}},1478,[1420,1435,1354,1479,612,990,1081]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){return r(d[0])(t)||r(d[1])(t)||r(d[2])(t)||r(d[3])()},m.exports.default=m.exports,m.exports.__esModule=!0},1479,[32,44,34,36]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,s){var r,o=arguments.length,c=o<3?n:null===s?s=Object.getOwnPropertyDescriptor(n,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,i,s);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(c=(o<3?r(c):o>3?r(n,i,c):r(n,i))||c);return o>3&&c&&Object.defineProperty(n,i,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingService=void 0;var i=(function(){function t(n){_r(_d[0])(this,t),this.eventEmitter=n}return _r(_d[1])(t,[{key:"processPing",value:function(t,n){var i=t.message,s=t.agentContext;if(this.eventEmitter.emit(s,{type:_r(_d[2]).TrustPingEventTypes.TrustPingReceivedEvent,payload:{connectionRecord:n,message:i}}),i.responseRequested){var r=new(_r(_d[3]).TrustPingResponseMessage)({threadId:i.id});return new(_r(_d[4]).OutboundMessageContext)(r,{agentContext:s,connection:n})}}},{key:"processPingResponse",value:function(t){var n=t.agentContext,i=t.message,s=t.assertReadyConnection();this.eventEmitter.emit(n,{type:_r(_d[2]).TrustPingEventTypes.TrustPingResponseReceivedEvent,payload:{connectionRecord:s,message:i}})}}]),t})();i=t([(0,_r(_d[5]).injectable)(),n("design:paramtypes",[_r(_d[6]).EventEmitter])],i),e.TrustPingService=i},1480,[7,8,1481,1427,623,1020,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingEventTypes=void 0,(function(n){n.TrustPingReceivedEvent="TrustPingReceivedEvent",n.TrustPingResponseReceivedEvent="TrustPingResponseReceivedEvent"})(e.TrustPingEventTypes||(e.TrustPingEventTypes={}))},1481,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var s,o=arguments.length,c=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(c=(o<3?s(c):o>3?s(n,r,c):s(n,r))||c);return o>3&&c&&Object.defineProperty(n,r,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsApi=void 0;var r=(function(){function t(n,r,i,s,o,c,u,d,h,l,f){_r(_d[0])(this,t),this.didExchangeProtocol=r,this.connectionService=i,this.outOfBandService=s,this.trustPingService=o,this.routingService=c,this.didRepository=u,this.messageSender=h,this.didResolverService=d,this.agentContext=l,this.config=f,this.registerMessageHandlers(n)}return _r(_d[1])(t,[{key:"acceptOutOfBandInvitation",value:function(t,n){var r,i,s,o,c,u,d,h,l,f,x;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(r=n.protocol,i=n.label,s=n.alias,o=n.imageUrl,c=n.autoAcceptConnection,p.t0=n.routing,p.t0){p.next=6;break}return p.next=5,_r(_d[2]).awrap(this.routingService.getRouting(this.agentContext,{mediatorId:t.mediatorId}));case 5:p.t0=p.sent;case 6:if(u=p.t0,r!==_r(_d[3]).HandshakeProtocol.DidExchange){p.next=13;break}return p.next=10,_r(_d[2]).awrap(this.didExchangeProtocol.createRequest(this.agentContext,t,{label:i,alias:s,routing:u,autoAcceptConnection:c}));case 10:d=p.sent,p.next=20;break;case 13:if(r!==_r(_d[3]).HandshakeProtocol.Connections){p.next=19;break}return p.next=16,_r(_d[2]).awrap(this.connectionService.createRequest(this.agentContext,t,{label:i,alias:s,imageUrl:o,routing:u,autoAcceptConnection:c}));case 16:d=p.sent,p.next=20;break;case 19:throw new(_r(_d[4]).AriesFrameworkError)("Unsupported handshake protocol "+r+".");case 20:return l=(h=d).message,f=h.connectionRecord,x=new(_r(_d[5]).OutboundMessageContext)(l,{agentContext:this.agentContext,connection:f,outOfBand:t}),p.next=24,_r(_d[2]).awrap(this.messageSender.sendMessage(x));case 24:return p.abrupt("return",f);case 25:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t){var n,r,i,s,o,c,u;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,_r(_d[2]).awrap(this.connectionService.findById(this.agentContext,t));case 2:if(n=d.sent){d.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("Connection record "+t+" not found.");case 5:if(n.outOfBandId){d.next=7;break}throw new(_r(_d[4]).AriesFrameworkError)("Connection record "+t+" does not have out-of-band record.");case 7:return d.next=9,_r(_d[2]).awrap(this.outOfBandService.findById(this.agentContext,n.outOfBandId));case 9:if(r=d.sent){d.next=12;break}throw new(_r(_d[4]).AriesFrameworkError)("Out-of-band record "+n.outOfBandId+" not found.");case 12:if(!r.reusable){d.next=18;break}return d.next=15,_r(_d[2]).awrap(this.routingService.getRouting(this.agentContext));case 15:d.t0=d.sent,d.next=19;break;case 18:d.t0=void 0;case 19:if(i=d.t0,n.protocol!==_r(_d[3]).HandshakeProtocol.DidExchange){d.next=27;break}return d.next=23,_r(_d[2]).awrap(this.didExchangeProtocol.createResponse(this.agentContext,n,r,i));case 23:o=d.sent,s=new(_r(_d[5]).OutboundMessageContext)(o,{agentContext:this.agentContext,connection:n}),d.next=32;break;case 27:return d.next=29,_r(_d[2]).awrap(this.connectionService.createResponse(this.agentContext,n,r,i));case 29:c=d.sent,u=c.message,s=new(_r(_d[5]).OutboundMessageContext)(u,{agentContext:this.agentContext,connection:n});case 32:return d.next=34,_r(_d[2]).awrap(this.messageSender.sendMessage(s));case 34:return d.abrupt("return",n);case 35:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptResponse",value:function(t){var n,r,i,s,o,c;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[2]).awrap(this.connectionService.getById(this.agentContext,t));case 2:if((n=u.sent).protocol!==_r(_d[3]).HandshakeProtocol.DidExchange){u.next=18;break}if(n.outOfBandId){u.next=6;break}throw new(_r(_d[4]).AriesFrameworkError)("Connection "+n.id+" does not have outOfBandId!");case 6:return u.next=8,_r(_d[2]).awrap(this.outOfBandService.findById(this.agentContext,n.outOfBandId));case 8:if(i=u.sent){u.next=11;break}throw new(_r(_d[4]).AriesFrameworkError)("OutOfBand record for connection "+n.id+" with outOfBandId "+n.outOfBandId+" not found!");case 11:return u.next=13,_r(_d[2]).awrap(this.didExchangeProtocol.createComplete(this.agentContext,n,i));case 13:(s=u.sent).setReturnRouting(_r(_d[6]).ReturnRouteTypes.none),r=new(_r(_d[5]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:n}),u.next=24;break;case 18:return u.next=20,_r(_d[2]).awrap(this.connectionService.createTrustPing(this.agentContext,n,{responseRequested:!1}));case 20:o=u.sent,(c=o.message).setReturnRouting(_r(_d[6]).ReturnRouteTypes.none),r=new(_r(_d[5]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:n});case 24:return u.next=26,_r(_d[2]).awrap(this.messageSender.sendMessage(r));case 26:return u.abrupt("return",n);case 27:case"end":return u.stop()}},null,this,null,Promise)}},{key:"sendPing",value:function(t,n){var r,i,s,o,c,u,d;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return r=n.responseRequested,i=void 0===r||r,s=n.withReturnRouting,o=void 0===s?void 0:s,h.next=3,_r(_d[2]).awrap(this.getById(t));case 3:return c=h.sent,h.next=6,_r(_d[2]).awrap(this.connectionService.createTrustPing(this.agentContext,c,{responseRequested:i}));case 6:return u=h.sent,d=u.message,!0===o&&d.setReturnRouting(_r(_d[6]).ReturnRouteTypes.all),!1===o&&d.setReturnRouting(_r(_d[6]).ReturnRouteTypes.none),h.next=12,_r(_d[2]).awrap(this.messageSender.sendMessage(new(_r(_d[5]).OutboundMessageContext)(d,{agentContext:this.agentContext,connection:c})));case 12:return h.abrupt("return",d);case 13:case"end":return h.stop()}},null,this,null,Promise)}},{key:"returnWhenIsConnected",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.connectionService.returnWhenIsConnected(this.agentContext,t,null===n||void 0===n?void 0:n.timeoutMs));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(){return this.connectionService.getAll(this.agentContext)}},{key:"findAllByQuery",value:function(t){return this.connectionService.findAllByQuery(this.agentContext,t)}},{key:"addConnectionType",value:function(t,n){var r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[2]).awrap(this.getById(t));case 2:return r=i.sent,i.next=5,_r(_d[2]).awrap(this.connectionService.addConnectionType(this.agentContext,r,n));case 5:return i.abrupt("return",r);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"removeConnectionType",value:function(t,n){var r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[2]).awrap(this.getById(t));case 2:return r=i.sent,i.next=5,_r(_d[2]).awrap(this.connectionService.removeConnectionType(this.agentContext,r,n));case 5:return i.abrupt("return",r);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getConnectionTypes",value:function(t){var n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.getById(t));case 2:return n=r.sent,r.abrupt("return",this.connectionService.getConnectionTypes(n));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findAllByConnectionTypes",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.connectionService.findAllByConnectionTypes(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t){return this.connectionService.getById(this.agentContext,t)}},{key:"findById",value:function(t){return this.connectionService.findById(this.agentContext,t)}},{key:"deleteById",value:function(t){var n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[2]).awrap(this.connectionService.getById(this.agentContext,t));case 2:if(!(n=i.sent).mediatorId||!n.did){i.next=10;break}return i.next=6,_r(_d[2]).awrap(this.didResolverService.resolve(this.agentContext,n.did));case 6:if(!(r=i.sent).didDocument){i.next=10;break}return i.next=10,_r(_d[2]).awrap(this.routingService.removeRouting(this.agentContext,{recipientKeys:r.didDocument.recipientKeys,mediatorId:n.mediatorId}));case 10:return i.abrupt("return",this.connectionService.deleteById(this.agentContext,t));case 11:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findAllByOutOfBandId",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.connectionService.findAllByOutOfBandId(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(t){return this.connectionService.getByThreadId(this.agentContext,t)}},{key:"findByDid",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.connectionService.findByTheirDid(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findByInvitationDid",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.connectionService.findByInvitationDid(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d[7]).ConnectionRequestHandler)(this.connectionService,this.outOfBandService,this.routingService,this.didRepository,this.config)),t.registerMessageHandler(new(_r(_d[7]).ConnectionResponseHandler)(this.connectionService,this.outOfBandService,this.didResolverService,this.config)),t.registerMessageHandler(new(_r(_d[7]).AckMessageHandler)(this.connectionService)),t.registerMessageHandler(new(_r(_d[7]).TrustPingMessageHandler)(this.trustPingService,this.connectionService)),t.registerMessageHandler(new(_r(_d[7]).TrustPingResponseMessageHandler)(this.trustPingService)),t.registerMessageHandler(new(_r(_d[7]).DidExchangeRequestHandler)(this.didExchangeProtocol,this.outOfBandService,this.routingService,this.didRepository,this.config)),t.registerMessageHandler(new(_r(_d[7]).DidExchangeResponseHandler)(this.didExchangeProtocol,this.outOfBandService,this.connectionService,this.didResolverService,this.config)),t.registerMessageHandler(new(_r(_d[7]).DidExchangeCompleteHandler)(this.didExchangeProtocol,this.outOfBandService))}}]),t})();r=t([(0,_r(_d[8]).injectable)(),n("design:paramtypes",[_r(_d[9]).Dispatcher,_r(_d[10]).DidExchangeProtocol,_r(_d[11]).ConnectionService,_r(_d[12]).OutOfBandService,_r(_d[13]).TrustPingService,_r(_d[14]).RoutingService,_r(_d[15]).DidRepository,_r(_d[16]).DidResolverService,_r(_d[17]).MessageSender,_r(_d[18]).AgentContext,_r(_d[19]).ConnectionsModuleConfig])],r),e.ConnectionsApi=r},1482,[7,8,82,1435,612,623,972,1483,1020,1494,1495,1467,1498,1480,1508,1093,1420,1345,1391,1527]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1483,[1484,1487,1488,1489,1490,1491,1492,1493]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AckMessageHandler=void 0;var n=(function(){function n(s){r(d[0])(this,n),this.supportedMessages=[r(d[1]).AckMessage],this.connectionService=s}return r(d[2])(n,[{key:"handle",value:function(n){return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.connectionService.processAck(n));case 2:case"end":return s.stop()}},null,this,null,Promise)}}]),n})();e.AckMessageHandler=n},1484,[7,1485,8,82]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1485,[1486]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e,r=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var i=t.length-1;i>=0;i--)(c=t[i])&&(s=(o<3?c(s):o>3?c(e,r,s):c(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AckMessage=_e.AckStatus=void 0,(function(t){t.OK="OK",t.PENDING="PENDING"})(e=_e.AckStatus||(_e.AckStatus={}));var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=c.call(this)).type=o.type.messageTypeUri,t&&(e.id=t.id||e.generateId(),e.status=t.status,e.setThread({threadId:t.threadId})),e}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/notification/1.0/ack'),r([(0,_r(_d[6]).IsValidMessageType)(c.type),n("design:type",String)],c.prototype,"type",void 0),r([(0,_r(_d[7]).IsEnum)(e),n("design:type",String)],c.prototype,"status",void 0),_e.AckMessage=c},1486,[14,11,9,7,8,949,942,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionRequestHandler=void 0;var n=(function(){function n(t,o,s,c,u){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ConnectionRequestMessage],this.connectionService=t,this.outOfBandService=o,this.routingService=s,this.didRepository=c,this.connectionsModuleConfig=u}return r(d[2])(n,[{key:"handle",value:function(n){var t,o,s,c,u,f,p,l,x;return r(d[3]).async(function(h){for(;;)switch(h.prev=h.next){case 0:if(o=n.connection,s=n.recipientKey,c=n.senderKey,s&&c){h.next=3;break}throw new(r(d[4]).AriesFrameworkError)('Unable to process connection request without senderVerkey or recipientKey');case 3:return h.next=5,r(d[3]).awrap(this.outOfBandService.findCreatedByRecipientKey(n.agentContext,s));case 5:if(u=h.sent){h.next=8;break}throw new(r(d[4]).AriesFrameworkError)("Out-of-band record for recipient key "+s.fingerprint+" was not found.");case 8:if(!o||u.reusable){h.next=10;break}throw new(r(d[4]).AriesFrameworkError)("Connection record for non-reusable out-of-band "+u.id+" already exists.");case 10:return h.next=12,r(d[3]).awrap(this.didRepository.findReceivedDidByRecipientKey(n.agentContext,c));case 12:if(!h.sent){h.next=15;break}throw new(r(d[4]).AriesFrameworkError)("A received did record for sender key "+c.fingerprint+" already exists.");case 15:return h.next=17,r(d[3]).awrap(this.connectionService.processRequest(n,u));case 17:if(f=h.sent,!(null!==(t=null===f||void 0===f?void 0:f.autoAcceptConnection)&&void 0!==t?t:this.connectionsModuleConfig.autoAcceptConnections)){h.next=32;break}if(!u.reusable){h.next=25;break}return h.next=22,r(d[3]).awrap(this.routingService.getRouting(n.agentContext));case 22:h.t0=h.sent,h.next=26;break;case 25:h.t0=void 0;case 26:return p=h.t0,h.next=29,r(d[3]).awrap(this.connectionService.createResponse(n.agentContext,f,u,p));case 29:return l=h.sent,x=l.message,h.abrupt("return",new(r(d[5]).OutboundMessageContext)(x,{agentContext:n.agentContext,connection:f,outOfBand:u}));case 32:case"end":return h.stop()}},null,this,null,Promise)}}]),n})();e.ConnectionRequestHandler=n},1487,[7,1427,8,82,613,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionResponseHandler=void 0;var n=(function(){function n(t,o,s,c){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ConnectionResponseMessage],this.connectionService=t,this.outOfBandService=o,this.didResolverService=s,this.connectionsModuleConfig=c}return r(d[2])(n,[{key:"handle",value:function(n){var t,o,s,c,u,f,p,h,w,x;return r(d[3]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=n.recipientKey,s=n.senderKey,c=n.message,o&&s){l.next=3;break}throw new(r(d[4]).AriesFrameworkError)('Unable to process connection response without senderKey or recipientKey');case 3:return l.next=5,r(d[3]).awrap(this.connectionService.getByRoleAndThreadId(n.agentContext,r(d[5]).DidExchangeRole.Requester,c.threadId));case 5:if(u=l.sent){l.next=8;break}throw new(r(d[4]).AriesFrameworkError)("Connection for thread ID "+c.threadId+" not found!");case 8:if(u.did){l.next=10;break}throw new(r(d[4]).AriesFrameworkError)("Connection record "+u.id+" has no 'did'");case 10:return l.next=12,r(d[3]).awrap(this.didResolverService.resolveDidDocument(n.agentContext,u.did));case 12:if(f=l.sent){l.next=15;break}throw new(r(d[4]).AriesFrameworkError)("Did document for did "+u.did+" was not resolved!");case 15:if(f.recipientKeys.find(function(n){return n.fingerprint===o.fingerprint})){l.next=17;break}throw new(r(d[4]).AriesFrameworkError)("Recipient key "+o.fingerprint+" not found in did document recipient keys.");case 17:if(l.t0=u.outOfBandId,!l.t0){l.next=22;break}return l.next=21,r(d[3]).awrap(this.outOfBandService.findById(n.agentContext,u.outOfBandId));case 21:l.t0=l.sent;case 22:if(p=l.t0){l.next=25;break}throw new(r(d[4]).AriesFrameworkError)("Out-of-band record "+u.outOfBandId+" was not found.");case 25:return n.connection=u,l.next=28,r(d[3]).awrap(this.connectionService.processResponse(n,p));case 28:if(h=l.sent,!(null!==(t=h.autoAcceptConnection)&&void 0!==t?t:this.connectionsModuleConfig.autoAcceptConnections)){l.next=36;break}return l.next=32,r(d[3]).awrap(this.connectionService.createTrustPing(n.agentContext,h,{responseRequested:!1}));case 32:return w=l.sent,(x=w.message).setReturnRouting(r(d[6]).ReturnRouteTypes.none),l.abrupt("return",new(r(d[7]).OutboundMessageContext)(x,{agentContext:n.agentContext,connection:h}));case 36:case"end":return l.stop()}},null,this,null,Promise)}}]),n})();e.ConnectionResponseHandler=n},1488,[7,1427,8,82,612,1435,972,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingMessageHandler=void 0;var n=(function(){function n(t,s){r(d[0])(this,n),this.supportedMessages=[r(d[1]).TrustPingMessage],this.trustPingService=t,this.connectionService=s}return r(d[2])(n,[{key:"handle",value:function(n){var t,s;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(t=n.connection,s=n.recipientKey,t){o.next=3;break}throw new(r(d[4]).AriesFrameworkError)("Connection for verkey "+(null===s||void 0===s?void 0:s.fingerprint)+" not found!");case 3:if(t.state!==r(d[5]).DidExchangeState.ResponseSent){o.next=6;break}return o.next=6,r(d[3]).awrap(this.connectionService.updateState(n.agentContext,t,r(d[5]).DidExchangeState.Completed));case 6:return o.abrupt("return",this.trustPingService.processPing(n,t));case 7:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.TrustPingMessageHandler=n},1489,[7,1427,8,82,612,1435]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingResponseMessageHandler=void 0;var s=(function(){function s(n){r(d[0])(this,s),this.supportedMessages=[r(d[1]).TrustPingResponseMessage],this.trustPingService=n}return r(d[2])(s,[{key:"handle",value:function(s){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.trustPingService.processPingResponse(s));case 1:case"end":return n.stop()}},null,this,null,Promise)}}]),s})();e.TrustPingResponseMessageHandler=s},1490,[7,1427,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeRequestHandler=void 0;var t=(function(){function t(n,o,s,c,u){r(d[0])(this,t),this.supportedMessages=[r(d[1]).DidExchangeRequestMessage],this.didExchangeProtocol=n,this.outOfBandService=o,this.routingService=s,this.didRepository=c,this.connectionsModuleConfig=u}return r(d[2])(t,[{key:"handle",value:function(t){var n,o,s,c,u,h,f,x,l,p,w;return r(d[3]).async(function(b){for(;;)switch(b.prev=b.next){case 0:if(c=t.recipientKey,u=t.senderKey,h=t.message,f=t.connection,c&&u){b.next=3;break}throw new(r(d[4]).AriesFrameworkError)('Unable to process connection request without senderKey or recipientKey');case 3:if(null===(n=h.thread)||void 0===n?void 0:n.parentThreadId){b.next=5;break}throw new(r(d[4]).AriesFrameworkError)("Message does not contain 'pthid' attribute");case 5:return b.next=7,r(d[3]).awrap(this.outOfBandService.findByCreatedInvitationId(t.agentContext,h.thread.parentThreadId));case 7:if(x=b.sent){b.next=10;break}throw new(r(d[4]).AriesFrameworkError)("OutOfBand record for message ID "+(null===(o=h.thread)||void 0===o?void 0:o.parentThreadId)+" not found!");case 10:if(!f||x.reusable){b.next=12;break}throw new(r(d[4]).AriesFrameworkError)("Connection record for non-reusable out-of-band "+x.id+" already exists.");case 12:return b.next=14,r(d[3]).awrap(this.didRepository.findReceivedDidByRecipientKey(t.agentContext,u));case 14:if(!b.sent){b.next=17;break}throw new(r(d[4]).AriesFrameworkError)("A received did record for sender key "+u.fingerprint+" already exists.");case 17:if(x.state!==r(d[5]).OutOfBandState.Done){b.next=19;break}throw new(r(d[4]).AriesFrameworkError)('Out-of-band record has been already processed and it does not accept any new requests');case 19:return b.next=21,r(d[3]).awrap(this.didExchangeProtocol.processRequest(t,x));case 21:if(l=b.sent,!(null!==(s=l.autoAcceptConnection)&&void 0!==s?s:this.connectionsModuleConfig.autoAcceptConnections)){b.next=35;break}if(!x.reusable){b.next=29;break}return b.next=26,r(d[3]).awrap(this.routingService.getRouting(t.agentContext));case 26:b.t0=b.sent,b.next=30;break;case 29:b.t0=void 0;case 30:return p=b.t0,b.next=33,r(d[3]).awrap(this.didExchangeProtocol.createResponse(t.agentContext,l,x,p));case 33:return w=b.sent,b.abrupt("return",new(r(d[6]).OutboundMessageContext)(w,{agentContext:t.agentContext,connection:l,outOfBand:x}));case 35:case"end":return b.stop()}},null,this,null,Promise)}}]),t})();e.DidExchangeRequestHandler=t},1491,[7,1427,8,82,613,1469,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeResponseHandler=void 0;var n=(function(){function n(t,o,s,c,u){r(d[0])(this,n),this.supportedMessages=[r(d[1]).DidExchangeResponseMessage],this.didExchangeProtocol=t,this.outOfBandService=o,this.connectionService=s,this.didResolverService=c,this.connectionsModuleConfig=u}return r(d[2])(n,[{key:"handle",value:function(n){var t,o,s,c,u,h,f,p,w,l,x;return r(d[3]).async(function(k){for(;;)switch(k.prev=k.next){case 0:if(o=n.agentContext,s=n.recipientKey,c=n.senderKey,u=n.message,s&&c){k.next=3;break}throw new(r(d[4]).AriesFrameworkError)('Unable to process connection response without sender key or recipient key');case 3:return k.next=5,r(d[3]).awrap(this.connectionService.getByRoleAndThreadId(o,r(d[5]).DidExchangeRole.Requester,u.threadId));case 5:if(h=k.sent){k.next=8;break}throw new(r(d[4]).AriesFrameworkError)("Connection for thread ID "+u.threadId+" not found!");case 8:if(h.did){k.next=10;break}throw new(r(d[4]).AriesFrameworkError)("Connection record "+h.id+" has no 'did'");case 10:return k.next=12,r(d[3]).awrap(this.didResolverService.resolveDidDocument(o,h.did));case 12:if(f=k.sent){k.next=15;break}throw new(r(d[4]).AriesFrameworkError)("Did document for did "+h.did+" was not resolved");case 15:if(f.recipientKeys.find(function(n){return n.fingerprint===s.fingerprint})){k.next=17;break}throw new(r(d[4]).AriesFrameworkError)("Recipient key "+s.fingerprint+" not found in did document recipient keys.");case 17:if((p=h.protocol)===r(d[5]).HandshakeProtocol.DidExchange){k.next=20;break}throw new(r(d[4]).AriesFrameworkError)("Connection record protocol is "+p+" but handler supports only "+r(d[5]).HandshakeProtocol.DidExchange+".");case 20:if(h.outOfBandId){k.next=22;break}throw new(r(d[4]).AriesFrameworkError)("Connection "+h.id+" does not have outOfBandId!");case 22:return k.next=24,r(d[3]).awrap(this.outOfBandService.findById(o,h.outOfBandId));case 24:if(w=k.sent){k.next=27;break}throw new(r(d[4]).AriesFrameworkError)("OutOfBand record for connection "+h.id+" with outOfBandId "+h.outOfBandId+" not found!");case 27:return n.connection=h,k.next=30,r(d[3]).awrap(this.didExchangeProtocol.processResponse(n,w));case 30:if(l=k.sent,!(null!==(t=l.autoAcceptConnection)&&void 0!==t?t:this.connectionsModuleConfig.autoAcceptConnections)){k.next=40;break}return k.next=34,r(d[3]).awrap(this.didExchangeProtocol.createComplete(o,l,w));case 34:if((x=k.sent).setReturnRouting(r(d[6]).ReturnRouteTypes.none),w.reusable){k.next=39;break}return k.next=39,r(d[3]).awrap(this.outOfBandService.updateState(o,w,r(d[7]).OutOfBandState.Done));case 39:return k.abrupt("return",new(r(d[8]).OutboundMessageContext)(x,{agentContext:o,connection:l}));case 40:case"end":return k.stop()}},null,this,null,Promise)}}]),n})();e.DidExchangeResponseHandler=n},1492,[7,1427,8,82,612,1435,972,1469,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeCompleteHandler=void 0;var t=(function(){function t(n,o){r(d[0])(this,t),this.supportedMessages=[r(d[1]).DidExchangeCompleteMessage],this.didExchangeProtocol=n,this.outOfBandService=o}return r(d[2])(t,[{key:"handle",value:function(t){var n,o,s,c,u,h,l;return r(d[3]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(c=t.connection){p.next=3;break}throw new(r(d[4]).AriesFrameworkError)("Connection is missing in message context");case 3:if((u=c.protocol)===r(d[5]).HandshakeProtocol.DidExchange){p.next=6;break}throw new(r(d[4]).AriesFrameworkError)("Connection record protocol is "+u+" but handler supports only "+r(d[5]).HandshakeProtocol.DidExchange+".");case 6:if(h=t.message,null===(n=h.thread)||void 0===n?void 0:n.parentThreadId){p.next=9;break}throw new(r(d[4]).AriesFrameworkError)("Message does not contain pthid attribute");case 9:return p.next=11,r(d[3]).awrap(this.outOfBandService.findByCreatedInvitationId(t.agentContext,null===(o=h.thread)||void 0===o?void 0:o.parentThreadId));case 11:if(l=p.sent){p.next=14;break}throw new(r(d[4]).AriesFrameworkError)("OutOfBand record for message ID "+(null===(s=h.thread)||void 0===s?void 0:s.parentThreadId)+" not found!");case 14:if(l.reusable){p.next=17;break}return p.next=17,r(d[3]).awrap(this.outOfBandService.updateState(t.agentContext,l,r(d[6]).OutOfBandState.Done));case 17:return p.next=19,r(d[3]).awrap(this.didExchangeProtocol.processComplete(t,l));case 19:case"end":return p.stop()}},null,this,null,Promise)}}]),t})();e.DidExchangeCompleteHandler=t},1493,[7,1427,8,82,612,1435,1469]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,s){var i,o=arguments.length,c=o<3?n:null===s?s=Object.getOwnPropertyDescriptor(n,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,s);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(c=(o<3?i(c):o>3?i(n,r,c):i(n,r))||c);return o>3&&c&&Object.defineProperty(n,r,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},r=this&&this.__param||function(t,n){return function(r,s){n(r,s,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Dispatcher=void 0;var s=(function(){function t(n,r,s,i){_r(_d[0])(this,t),this.messageSender=n,this.eventEmitter=r,this.messageHandlerRegistry=s,this.logger=i}return _r(_d[1])(t,[{key:"registerMessageHandler",value:function(t){this.messageHandlerRegistry.registerMessageHandler(t)}},{key:"dispatch",value:function(t){var n,r,s,i,o,c,d,l;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=t.agentContext,r=t.connection,s=t.senderKey,i=t.recipientKey,o=t.message,c=this.messageHandlerRegistry.getHandlerForMessageType(o.type)){f.next=4;break}throw new(_r(_d[3]).AriesFrameworkError)("No handler for message type \""+o.type+"\" found");case 4:return f.prev=4,f.next=7,_r(_d[2]).awrap(c.handle(t));case 7:d=f.sent,f.next=20;break;case 10:if(f.prev=10,f.t0=f.catch(4),!((l=f.t0.problemReport)instanceof _r(_d[4]).ProblemReportMessage&&t.connection)){f.next=18;break}l.setThread({threadId:o.threadId}),d=new(_r(_d[5]).OutboundMessageContext)(l,{agentContext:n,connection:t.connection}),f.next=20;break;case 18:throw this.logger.error("Error handling message with type "+o.type,{message:o.toJSON(),error:f.t0,senderKey:null===s||void 0===s?void 0:s.fingerprint,recipientKey:null===i||void 0===i?void 0:i.fingerprint,connectionId:null===r||void 0===r?void 0:r.id}),f.t0;case 20:if(!d){f.next=29;break}if(!d.isOutboundServiceMessage()){f.next=26;break}return f.next=24,_r(_d[2]).awrap(this.messageSender.sendMessageToService(d));case 24:f.next=29;break;case 26:return d.sessionId=t.sessionId,f.next=29,_r(_d[2]).awrap(this.messageSender.sendMessage(d));case 29:this.eventEmitter.emit(n,{type:_r(_d[6]).AgentEventTypes.AgentMessageProcessed,payload:{message:o,connection:r}});case 30:case"end":return f.stop()}},null,this,[[4,10]],Promise)}}]),t})();s=t([(0,_r(_d[7]).injectable)(),r(3,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[9]).MessageSender,_r(_d[10]).EventEmitter,_r(_d[11]).MessageHandlerRegistry,Object])],s),e.Dispatcher=s},1494,[7,8,82,613,948,623,1346,1020,1104,1345,1105,1057]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var s,o=arguments.length,d=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,n,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(d=(o<3?s(d):o>3?s(r,n,d):s(r,n))||d);return o>3&&d&&Object.defineProperty(r,n,d),d},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},n=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeProtocol=void 0;var i=(function(){function t(r,n,i,s,o){_r(_d[0])(this,t),this.connectionService=r,this.didRegistrarService=n,this.didRepository=i,this.jwsService=s,this.logger=o}return _r(_d[1])(t,[{key:"createRequest",value:function(t,r,n){var i,s,o,d,c,u,p,l,h,D,x,f,v,y,R,b;return _r(_d[2]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return this.logger.debug("Create message "+_r(_d[3]).DidExchangeRequestMessage.type.messageTypeUri+" start",{outOfBandRecord:r,params:n}),o=r.outOfBandInvitation,d=n.alias,c=n.goal,u=n.goalCode,p=n.routing,l=n.autoAcceptConnection,h=_r(_d[4])(o.invitationDids,1),D=h[0],w.next=6,_r(_d[2]).awrap(this.connectionService.createConnection(t,{protocol:_r(_d[5]).HandshakeProtocol.DidExchange,role:_r(_d[5]).DidExchangeRole.Requester,alias:d,state:_r(_d[5]).DidExchangeState.InvitationReceived,theirLabel:o.label,mediatorId:null!==(i=p.mediatorId)&&void 0!==i?i:r.mediatorId,autoAcceptConnection:r.autoAcceptConnection,outOfBandId:r.id,invitationDid:D}));case 6:return x=w.sent,_r(_d[6]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[3]).DidExchangeRequestMessage.type,x),f=null!==(s=n.label)&&void 0!==s?s:t.config.label,w.next=11,_r(_d[2]).awrap(this.createPeerDidDoc(t,this.routingToServices(p)));case 11:if(v=w.sent,y=o.id,R=new(_r(_d[3]).DidExchangeRequestMessage)({label:f,parentThreadId:y,did:v.id,goal:c,goalCode:u}),(0,_r(_d[7]).getNumAlgoFromPeerDid)(v.id)!==_r(_d[7]).PeerDidNumAlgo.GenesisDoc){w.next=19;break}return w.next=17,_r(_d[2]).awrap(this.createSignedAttachment(t,v,[p.recipientKey.publicKeyBase58]));case 17:b=w.sent,R.didDoc=b;case 19:return x.did=v.id,x.threadId=R.id,void 0===l&&null===l||(x.autoAcceptConnection=l),w.next=24,_r(_d[2]).awrap(this.updateState(t,_r(_d[3]).DidExchangeRequestMessage.type,x));case 24:return this.logger.debug("Create message "+_r(_d[3]).DidExchangeRequestMessage.type.messageTypeUri+" end",{connectionRecord:x,message:R}),w.abrupt("return",{message:R,connectionRecord:x});case 26:case"end":return w.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(t,r){var n,i,s,o,d,c,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.logger.debug("Process message "+_r(_d[3]).DidExchangeRequestMessage.type.messageTypeUri+" start",{message:t.message}),r.assertRole(_r(_d[8]).OutOfBandRole.Sender),r.assertState(_r(_d[9]).OutOfBandState.AwaitResponse),s=t.message,(null===(n=s.thread)||void 0===n?void 0:n.parentThreadId)&&(null===(i=s.thread)||void 0===i?void 0:i.parentThreadId)===r.getTags().invitationId){p.next=6;break}throw new(_r(_d[10]).DidExchangeProblemReportError)('Missing reference to invitation.',{problemCode:_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted});case 6:if(s.did.startsWith('did:peer:')){p.next=8;break}throw new(_r(_d[10]).DidExchangeProblemReportError)("Message contains unsupported did "+s.did+". Supported dids are [did:peer]",{problemCode:_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted});case 8:if((o=(0,_r(_d[7]).getNumAlgoFromPeerDid)(s.did))===_r(_d[7]).PeerDidNumAlgo.GenesisDoc){p.next=11;break}throw new(_r(_d[10]).DidExchangeProblemReportError)("Unsupported numalgo "+o+". Supported numalgos are ["+_r(_d[7]).PeerDidNumAlgo.GenesisDoc+"]",{problemCode:_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted});case 11:return p.next=13,_r(_d[2]).awrap(this.extractDidDocument(t.agentContext,s));case 13:return d=p.sent,c=new(_r(_d[11]).DidRecord)({did:s.did,role:_r(_d[7]).DidDocumentRole.Received,didDocument:d,tags:{recipientKeyFingerprints:d.recipientKeys.map(function(t){return t.fingerprint})}}),this.logger.debug('Saving DID record',{id:c.id,did:c.did,role:c.role,tags:c.getTags(),didDocument:'omitted...'}),p.next=18,_r(_d[2]).awrap(this.didRepository.save(t.agentContext,c));case 18:return p.next=20,_r(_d[2]).awrap(this.connectionService.createConnection(t.agentContext,{protocol:_r(_d[5]).HandshakeProtocol.DidExchange,role:_r(_d[5]).DidExchangeRole.Responder,state:_r(_d[5]).DidExchangeState.RequestReceived,alias:r.alias,theirDid:s.did,theirLabel:s.label,threadId:s.threadId,mediatorId:r.mediatorId,autoAcceptConnection:r.autoAcceptConnection,outOfBandId:r.id}));case 20:return u=p.sent,p.next=23,_r(_d[2]).awrap(this.updateState(t.agentContext,_r(_d[3]).DidExchangeRequestMessage.type,u));case 23:return this.logger.debug("Process message "+_r(_d[3]).DidExchangeRequestMessage.type.messageTypeUri+" end",u),p.abrupt("return",u);case 25:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createResponse",value:function(t,r,n,i){var s,o,d,c,u,p;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.logger.debug("Create message "+_r(_d[12]).DidExchangeResponseMessage.type.messageTypeUri+" start",r),_r(_d[6]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[12]).DidExchangeResponseMessage.type,r),s=r.threadId){l.next=5;break}throw new(_r(_d[13]).AriesFrameworkError)('Missing threadId on connection record.');case 5:return o=[],i?o=this.routingToServices(i):n&&(d=n.outOfBandInvitation.getInlineServices(),o=d.map(function(t){var r,n;return{id:t.id,serviceEndpoint:t.serviceEndpoint,recipientKeys:t.recipientKeys.map(_r(_d[14]).didKeyToInstanceOfKey),routingKeys:null!==(n=null===(r=t.routingKeys)||void 0===r?void 0:r.map(_r(_d[14]).didKeyToInstanceOfKey))&&void 0!==n?n:[]}})),l.next=9,_r(_d[2]).awrap(this.createPeerDidDoc(t,o));case 9:if(c=l.sent,u=new(_r(_d[12]).DidExchangeResponseMessage)({did:c.id,threadId:s}),(0,_r(_d[7]).getNumAlgoFromPeerDid)(c.id)!==_r(_d[7]).PeerDidNumAlgo.GenesisDoc){l.next=16;break}return l.next=14,_r(_d[2]).awrap(this.createSignedAttachment(t,c,Array.from(new Set(o.map(function(t){return t.recipientKeys}).reduce(function(t,r){return t.concat(r)},[]).map(function(t){return t.publicKeyBase58})))));case 14:p=l.sent,u.didDoc=p;case 16:return r.did=c.id,l.next=19,_r(_d[2]).awrap(this.updateState(t,_r(_d[12]).DidExchangeResponseMessage.type,r));case 19:return this.logger.debug("Create message "+_r(_d[12]).DidExchangeResponseMessage.type.messageTypeUri+" end",{connectionRecord:r,message:u}),l.abrupt("return",u);case 21:case"end":return l.stop()}},null,this,null,Promise)}},{key:"processResponse",value:function(t,r){var n,i,s,o,d,c,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.logger.debug("Process message "+_r(_d[12]).DidExchangeResponseMessage.type.messageTypeUri+" start",{message:t.message}),s=t.connection,o=t.message,s){p.next=4;break}throw new(_r(_d[13]).AriesFrameworkError)('No connection record in message context.');case 4:if(_r(_d[6]).DidExchangeStateMachine.assertProcessMessageState(_r(_d[12]).DidExchangeResponseMessage.type,s),(null===(n=o.thread)||void 0===n?void 0:n.threadId)&&(null===(i=o.thread)||void 0===i?void 0:i.threadId)===s.threadId){p.next=7;break}throw new(_r(_d[10]).DidExchangeProblemReportError)('Invalid or missing thread ID.',{problemCode:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted});case 7:if(o.did.startsWith('did:peer:')){p.next=9;break}throw new(_r(_d[10]).DidExchangeProblemReportError)("Message contains unsupported did "+o.did+". Supported dids are [did:peer]",{problemCode:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted});case 9:if((d=(0,_r(_d[7]).getNumAlgoFromPeerDid)(o.did))===_r(_d[7]).PeerDidNumAlgo.GenesisDoc){p.next=12;break}throw new(_r(_d[10]).DidExchangeProblemReportError)("Unsupported numalgo "+d+". Supported numalgos are ["+_r(_d[7]).PeerDidNumAlgo.GenesisDoc+"]",{problemCode:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted});case 12:return p.next=14,_r(_d[2]).awrap(this.extractDidDocument(t.agentContext,o,r.getTags().recipientKeyFingerprints.map(function(t){return _r(_d[15]).Key.fromFingerprint(t).publicKeyBase58})));case 14:return c=p.sent,u=new(_r(_d[11]).DidRecord)({did:o.did,role:_r(_d[7]).DidDocumentRole.Received,didDocument:c,tags:{recipientKeyFingerprints:c.recipientKeys.map(function(t){return t.fingerprint})}}),this.logger.debug('Saving DID record',{id:u.id,did:u.did,role:u.role,tags:u.getTags(),didDocument:'omitted...'}),p.next=19,_r(_d[2]).awrap(this.didRepository.save(t.agentContext,u));case 19:return s.theirDid=o.did,p.next=22,_r(_d[2]).awrap(this.updateState(t.agentContext,_r(_d[12]).DidExchangeResponseMessage.type,s));case 22:return this.logger.debug("Process message "+_r(_d[12]).DidExchangeResponseMessage.type.messageTypeUri+" end",s),p.abrupt("return",s);case 24:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createComplete",value:function(t,r,n){var i,s,o;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.logger.debug("Create message "+_r(_d[16]).DidExchangeCompleteMessage.type.messageTypeUri+" start",r),_r(_d[6]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[16]).DidExchangeCompleteMessage.type,r),i=r.threadId,s=n.outOfBandInvitation.id,i){d.next=6;break}throw new(_r(_d[13]).AriesFrameworkError)("Connection record "+r.id+" does not have 'threadId' attribute.");case 6:if(s){d.next=8;break}throw new(_r(_d[13]).AriesFrameworkError)("Connection record "+r.id+" does not have 'parentThreadId' attribute.");case 8:return o=new(_r(_d[16]).DidExchangeCompleteMessage)({threadId:i,parentThreadId:s}),d.next=11,_r(_d[2]).awrap(this.updateState(t,_r(_d[16]).DidExchangeCompleteMessage.type,r));case 11:return this.logger.debug("Create message "+_r(_d[16]).DidExchangeCompleteMessage.type.messageTypeUri+" end",{connectionRecord:r,message:o}),d.abrupt("return",o);case 13:case"end":return d.stop()}},null,this,null,Promise)}},{key:"processComplete",value:function(t,r){var n,i,s,o;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.logger.debug("Process message "+_r(_d[16]).DidExchangeCompleteMessage.type.messageTypeUri+" start",{message:t.message}),s=t.connection,o=t.message,s){d.next=4;break}throw new(_r(_d[13]).AriesFrameworkError)('No connection record in message context.');case 4:if(_r(_d[6]).DidExchangeStateMachine.assertProcessMessageState(_r(_d[16]).DidExchangeCompleteMessage.type,s),o.threadId===s.threadId){d.next=7;break}throw new(_r(_d[10]).DidExchangeProblemReportError)('Invalid or missing thread ID.',{problemCode:_r(_d[10]).DidExchangeProblemReportReason.CompleteRejected});case 7:if((null===(n=o.thread)||void 0===n?void 0:n.parentThreadId)&&(null===(i=o.thread)||void 0===i?void 0:i.parentThreadId)===r.getTags().invitationId){d.next=9;break}throw new(_r(_d[10]).DidExchangeProblemReportError)('Invalid or missing parent thread ID referencing to the invitation.',{problemCode:_r(_d[10]).DidExchangeProblemReportReason.CompleteRejected});case 9:return d.next=11,_r(_d[2]).awrap(this.updateState(t.agentContext,_r(_d[16]).DidExchangeCompleteMessage.type,s));case 11:return this.logger.debug("Process message "+_r(_d[16]).DidExchangeCompleteMessage.type.messageTypeUri+" end",{connectionRecord:s}),d.abrupt("return",s);case 13:case"end":return d.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(t,r,n){var i;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return this.logger.debug("Updating state",{connectionRecord:n}),i=_r(_d[6]).DidExchangeStateMachine.nextState(r,n),s.abrupt("return",this.connectionService.updateState(t,n,i));case 3:case"end":return s.stop()}},null,this,null,Promise)}},{key:"createPeerDidDoc",value:function(t,r){var n,i,s;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=(0,_r(_d[7]).createPeerDidDocumentFromServices)(r),o.next=3,_r(_d[2]).awrap(this.didRegistrarService.create(t,{method:'peer',didDocument:i,options:{numAlgo:_r(_d[7]).PeerDidNumAlgo.GenesisDoc}}));case 3:if(s=o.sent,'finished'===(null===(n=s.didState)||void 0===n?void 0:n.state)){o.next=6;break}throw new(_r(_d[13]).AriesFrameworkError)("Did document creation failed: "+JSON.stringify(s.didState));case 6:return this.logger.debug("Did document with did "+s.didState.did+" created.",{did:s.didState.did,didDocument:s.didState.didDocument}),o.abrupt("return",s.didState.didDocument);case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"createSignedAttachment",value:function(t,r,n){var i,s=this;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=new(_r(_d[17]).Attachment)({mimeType:'application/json',data:new(_r(_d[17]).AttachmentData)({base64:_r(_d[18]).JsonEncoder.toBase64(r)})}),o.next=3,_r(_d[2]).awrap(Promise.all(n.map(function(n){var o,d,c,u;return _r(_d[2]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return o=_r(_d[15]).Key.fromPublicKeyBase58(n,_r(_d[15]).KeyType.Ed25519),d=new(_r(_d[7]).DidKey)(o).did,c=_r(_d[18]).JsonEncoder.toBuffer(r),p.next=5,_r(_d[2]).awrap(s.jwsService.createJws(t,{payload:c,verkey:n,header:{kid:d}}));case 5:u=p.sent,i.addJws(u);case 7:case"end":return p.stop()}},null,null,null,Promise)})));case 3:return o.abrupt("return",i);case 4:case"end":return o.stop()}},null,null,null,Promise)}},{key:"extractDidDocument",value:function(t,r){var n,i,s,o,d,c,u,p,l,h,D,x,f,v,y=arguments;return _r(_d[2]).async(function(R){for(;;)switch(R.prev=R.next){case 0:if(n=y.length>2&&void 0!==y[2]?y[2]:[],r.didDoc){R.next=4;break}throw s=r instanceof _r(_d[3]).DidExchangeRequestMessage?_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[10]).DidExchangeProblemReportError)('DID Document attachment is missing.',{problemCode:s});case 4:if(o=r.didDoc,d=o.data.jws){R.next=9;break}throw c=r instanceof _r(_d[3]).DidExchangeRequestMessage?_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[10]).DidExchangeProblemReportError)('DID Document signature is missing.',{problemCode:c});case 9:return u=o.getDataAsJson(),this.logger.trace('DidDocument JSON',u),p=_r(_d[18]).JsonEncoder.toBuffer(u),R.next=14,_r(_d[2]).awrap(this.jwsService.verifyJws(t,{jws:d,payload:p}));case 14:if(l=R.sent,h=l.isValid,D=l.signerVerkeys,x=_r(_d[19]).JsonTransformer.fromJSON(u,_r(_d[7]).DidDocument),f=null===(i=x.authentication)||void 0===i?void 0:i.map(function(t){var r='string'==typeof t?x.dereferenceVerificationMethod(t):t;return(0,(0,_r(_d[20]).getKeyDidMappingByVerificationMethod)(r).getKeyFromVerificationMethod)(r).publicKeyBase58}).concat(n),this.logger.trace('JWS verification result',{isValid:h,signerVerkeys:D,didDocumentKeysBase58:f}),h&&D.every(function(t){return null===f||void 0===f?void 0:f.includes(t)})){R.next=23;break}throw v=r instanceof _r(_d[3]).DidExchangeRequestMessage?_r(_d[10]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[10]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[10]).DidExchangeProblemReportError)('DID Document signature is invalid.',{problemCode:v});case 23:return R.abrupt("return",x);case 24:case"end":return R.stop()}},null,this,null,Promise)}},{key:"routingToServices",value:function(t){return t.endpoints.map(function(r,n){return{id:"#inline-"+n,serviceEndpoint:r,recipientKeys:[t.recipientKey],routingKeys:t.routingKeys}})}}]),t})();i=t([(0,_r(_d[21]).injectable)(),n(4,(0,_r(_d[21]).inject)(_r(_d[22]).InjectionSymbols.Logger)),r("design:paramtypes",[_r(_d[23]).ConnectionService,_r(_d[7]).DidRegistrarService,_r(_d[11]).DidRepository,_r(_d[24]).JwsService,Object])],i),e.DidExchangeProtocol=i},1495,[7,8,82,1459,31,1435,1496,1420,1468,1469,1470,1093,1460,612,986,990,1461,978,979,626,1079,1020,1104,1466,1497]); -__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeStateMachine=void 0;var t=(function(){function t(){_r(d[0])(this,t)}return _r(d[1])(t,null,[{key:"assertCreateMessageState",value:function(t,s){var n=this.createMessageStateRules.find(function(s){return(0,_r(d[2]).canHandleMessageType)(s.message,t)});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for "+t);if(n.state!==s.state||n.role!==s.role)throw new(_r(d[3]).AriesFrameworkError)("Record with role "+s.role+" is in invalid state "+s.state+" to create "+t+". Expected state for role "+n.role+" is "+n.state+".")}},{key:"assertProcessMessageState",value:function(t,s){var n=this.processMessageStateRules.find(function(s){return(0,_r(d[2]).canHandleMessageType)(s.message,t)});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for "+t);if(n.state!==s.state||n.role!==s.role)throw new(_r(d[3]).AriesFrameworkError)("Record with role "+s.role+" is in invalid state "+s.state+" to process "+t+". Expected state for role "+n.role+" is "+n.state+".")}},{key:"nextState",value:function(t,s){var n=this.createMessageStateRules.concat(this.processMessageStateRules).find(function(n){return(0,_r(d[2]).canHandleMessageType)(n.message,t)&&n.role===s.role});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for messageType "+t+", state "+s.state+" and role "+s.role);return n.nextState}}]),t})();e.DidExchangeStateMachine=t,t.createMessageStateRules=[{message:_r(d[4]).DidExchangeRequestMessage,state:_r(d[5]).DidExchangeState.InvitationReceived,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.RequestSent},{message:_r(d[4]).DidExchangeResponseMessage,state:_r(d[5]).DidExchangeState.RequestReceived,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.ResponseSent},{message:_r(d[4]).DidExchangeCompleteMessage,state:_r(d[5]).DidExchangeState.ResponseReceived,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.Completed}],t.processMessageStateRules=[{message:_r(d[4]).DidExchangeRequestMessage,state:_r(d[5]).DidExchangeState.InvitationSent,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.RequestReceived},{message:_r(d[4]).DidExchangeResponseMessage,state:_r(d[5]).DidExchangeState.RequestSent,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.ResponseReceived},{message:_r(d[4]).DidExchangeCompleteMessage,state:_r(d[5]).DidExchangeState.ResponseSent,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.Completed}]},1496,[7,8,942,612,1427,1435]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";function r(r,n){var o="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=t(r))||n&&r&&"number"==typeof r.length){o&&(r=o);var i=0;return function(){return i>=r.length?{done:!0}:{done:!1,value:r[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(r,t){if(r){if("string"==typeof r)return n(r,t);var o=Object.prototype.toString.call(r).slice(8,-1);return"Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o?Array.from(r):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(r,t):void 0}}function n(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,o=new Array(t);n=0;d--)(i=r[d])&&(c=(s<3?i(c):s>3?i(t,n,c):i(t,n))||c);return s>3&&c&&Object.defineProperty(t,n,c),c};Object.defineProperty(e,"__esModule",{value:!0}),e.JwsService=void 0;var i=(function(){function t(){_r(_d[0])(this,t)}return _r(_d[1])(t,[{key:"createJws",value:function(r,t){var n,o,i,s,c,d,u;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=t.payload,o=t.verkey,i=t.header,s=_r(_d[3]).TypedArrayEncoder.toBase64URL(n),c=_r(_d[3]).JsonEncoder.toBase64URL(this.buildProtected(o)),d=_r(_d[4]).Key.fromPublicKeyBase58(o,_r(_d[5]).KeyType.Ed25519),l.t0=_r(_d[3]).TypedArrayEncoder,l.next=7,_r(_d[2]).awrap(r.wallet.sign({data:_r(_d[3]).TypedArrayEncoder.fromString(c+"."+s),key:d}));case 7:return l.t1=l.sent,u=l.t0.toBase64URL.call(l.t0,l.t1),l.abrupt("return",{protected:c,signature:u,header:i});case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"verifyJws",value:function(t,n){var o,i,s,c,d,u,l,y,f,v,p,b,w,h,k,E,A,x,j;return _r(_d[2]).async(function(S){for(;;)switch(S.prev=S.next){case 0:if(o=n.jws,i=n.payload,u=_r(_d[3]).TypedArrayEncoder.toBase64URL(i),0!==(l='signatures'in o?o.signatures:[o]).length){S.next=5;break}throw new(_r(_d[6]).AriesFrameworkError)('Unable to verify JWS: No entries in JWS signatures array.');case 5:y=[],f=r(l);case 7:if((v=f()).done){S.next=35;break}if(p=v.value,b=_r(_d[3]).JsonEncoder.fromBase64(p.protected),w="OKP"===(null===(s=null===b||void 0===b?void 0:b.jwk)||void 0===s?void 0:s.kty),h="Ed25519"===(null===(c=null===b||void 0===b?void 0:b.jwk)||void 0===c?void 0:c.crv),k="EdDSA"===(null===b||void 0===b?void 0:b.alg),w&&h&&k){S.next=15;break}throw new(_r(_d[6]).AriesFrameworkError)('Invalid protected header');case 15:return E=_r(_d[3]).TypedArrayEncoder.fromString(p.protected+"."+u),A=_r(_d[3]).TypedArrayEncoder.fromBase64(p.signature),x=_r(_d[3]).TypedArrayEncoder.toBase58(_r(_d[3]).TypedArrayEncoder.fromBase64(null===(d=null===b||void 0===b?void 0:b.jwk)||void 0===d?void 0:d.x)),j=_r(_d[4]).Key.fromPublicKeyBase58(x,_r(_d[5]).KeyType.Ed25519),y.push(x),S.prev=20,S.next=23,_r(_d[2]).awrap(t.wallet.verify({key:j,data:E,signature:A}));case 23:if(S.sent){S.next=26;break}return S.abrupt("return",{isValid:!1,signerVerkeys:[]});case 26:S.next=33;break;case 28:if(S.prev=28,S.t0=S.catch(20),!(S.t0 instanceof _r(_d[7]).WalletError)){S.next=32;break}return S.abrupt("return",{isValid:!1,signerVerkeys:[]});case 32:throw S.t0;case 33:S.next=7;break;case 35:return S.abrupt("return",{isValid:!0,signerVerkeys:y});case 36:case"end":return S.stop()}},null,null,[[20,28]],Promise)}},{key:"buildProtected",value:function(r){return{alg:'EdDSA',jwk:{kty:'OKP',crv:'Ed25519',x:_r(_d[3]).TypedArrayEncoder.toBase64URL(_r(_d[3]).TypedArrayEncoder.fromBase58(r))}}}}]),t})();i=o([(0,_r(_d[8]).injectable)()],i),e.JwsService=i},1497,[7,8,82,993,992,991,612,1368,1020]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,s){var o,u=arguments.length,i=u<3?n:null===s?s=Object.getOwnPropertyDescriptor(n,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,n,r,s);else for(var d=t.length-1;d>=0;d--)(o=t[d])&&(i=(u<3?o(i):u>3?o(n,r,i):o(n,r))||i);return u>3&&i&&Object.defineProperty(n,r,i),i},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandService=void 0;var r=(function(){function t(n,r){_r(_d[0])(this,t),this.outOfBandRepository=n,this.eventEmitter=r}return _r(_d[1])(t,[{key:"processHandshakeReuse",value:function(t){var n,r,s,o,u,i,d,c;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(o=t.message,u=null===(n=o.thread)||void 0===n?void 0:n.parentThreadId){f.next=4;break}throw new(_r(_d[3]).AriesFrameworkError)('handshake-reuse message must have a parent thread id');case 4:return f.next=6,_r(_d[2]).awrap(this.findByCreatedInvitationId(t.agentContext,u));case 6:if(i=f.sent){f.next=9;break}throw new(_r(_d[3]).AriesFrameworkError)('No out of band record found for handshake-reuse message');case 9:if(i.assertRole(_r(_d[4]).OutOfBandRole.Sender),i.assertState(_r(_d[5]).OutOfBandState.AwaitResponse),!((null!==(s=null===(r=i.outOfBandInvitation.getRequests())||void 0===r?void 0:r.length)&&void 0!==s?s:0)>0)){f.next=14;break}throw new(_r(_d[3]).AriesFrameworkError)('Handshake reuse should only be used when no requests are present');case 14:if(d=t.assertReadyConnection(),this.eventEmitter.emit(t.agentContext,{type:_r(_d[6]).OutOfBandEventTypes.HandshakeReused,payload:{reuseThreadId:o.threadId,connectionRecord:d,outOfBandRecord:i}}),i.reusable){f.next=19;break}return f.next=19,_r(_d[2]).awrap(this.updateState(t.agentContext,i,_r(_d[5]).OutOfBandState.Done));case 19:return c=new(_r(_d[7]).HandshakeReuseAcceptedMessage)({threadId:o.threadId,parentThreadId:u}),f.abrupt("return",c);case 21:case"end":return f.stop()}},null,this,null,Promise)}},{key:"processHandshakeReuseAccepted",value:function(t){var n,r,s,o,u;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if(r=t.message,s=null===(n=r.thread)||void 0===n?void 0:n.parentThreadId){i.next=4;break}throw new(_r(_d[3]).AriesFrameworkError)('handshake-reuse-accepted message must have a parent thread id');case 4:return i.next=6,_r(_d[2]).awrap(this.findByReceivedInvitationId(t.agentContext,s));case 6:if(o=i.sent){i.next=9;break}throw new(_r(_d[3]).AriesFrameworkError)('No out of band record found for handshake-reuse-accepted message');case 9:if(o.assertRole(_r(_d[4]).OutOfBandRole.Receiver),o.assertState(_r(_d[5]).OutOfBandState.PrepareResponse),u=t.assertReadyConnection(),o.reuseConnectionId===u.id){i.next=14;break}throw new(_r(_d[3]).AriesFrameworkError)('handshake-reuse-accepted is not in response to a handshake-reuse message.');case 14:return this.eventEmitter.emit(t.agentContext,{type:_r(_d[6]).OutOfBandEventTypes.HandshakeReused,payload:{reuseThreadId:r.threadId,connectionRecord:u,outOfBandRecord:o}}),i.next=17,_r(_d[2]).awrap(this.updateState(t.agentContext,o,_r(_d[5]).OutOfBandState.Done));case 17:case"end":return i.stop()}},null,this,null,Promise)}},{key:"createHandShakeReuse",value:function(t,n,r){var s;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return s=new(_r(_d[8]).HandshakeReuseMessage)({parentThreadId:n.outOfBandInvitation.id}),n.reuseConnectionId=r.id,o.next=4,_r(_d[2]).awrap(this.outOfBandRepository.update(t,n));case 4:return o.abrupt("return",s);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"save",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.save(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(t,n,r){var s;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return s=n.state,n.state=r,o.next=4,_r(_d[2]).awrap(this.outOfBandRepository.update(t,n));case 4:this.emitStateChangedEvent(t,n,s);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,n,r){var s=_r(_d[9]).JsonTransformer.clone(n);this.eventEmitter.emit(t,{type:_r(_d[6]).OutOfBandEventTypes.OutOfBandStateChanged,payload:{outOfBandRecord:s,previousState:r}})}},{key:"findById",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.findById(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.getById(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findByReceivedInvitationId",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.findSingleByQuery(t,{invitationId:n,role:_r(_d[4]).OutOfBandRole.Receiver}));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findByCreatedInvitationId",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.findSingleByQuery(t,{invitationId:n,role:_r(_d[4]).OutOfBandRole.Sender}));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findCreatedByRecipientKey",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.findSingleByQuery(t,{recipientKeyFingerprints:[n.fingerprint],role:_r(_d[4]).OutOfBandRole.Sender}));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.outOfBandRepository.getAll(t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.outOfBandRepository.findByQuery(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(t,n){var r;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[2]).awrap(this.getById(t,n));case 2:return r=s.sent,s.abrupt("return",this.outOfBandRepository.delete(t,r));case 4:case"end":return s.stop()}},null,this,null,Promise)}}]),t})();r=t([(0,_r(_d[10]).injectable)(),n("design:paramtypes",[_r(_d[11]).OutOfBandRepository,_r(_d[12]).EventEmitter])],r),e.OutOfBandService=r},1498,[7,8,82,612,1468,1469,1499,1500,1501,993,1020,1505,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandEventTypes=void 0,(function(t){t.OutOfBandStateChanged="OutOfBandStateChanged",t.HandshakeReused="HandshakeReused"})(e.OutOfBandEventTypes||(e.OutOfBandEventTypes={}))},1499,[]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(s=(o<3?c(s):o>3?c(t,r,s):c(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.HandshakeReuseAcceptedMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:e.threadId,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/out-of-band/1.1/handshake-reuse-accepted'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.HandshakeReuseAcceptedMessage=n},1500,[14,11,9,7,8,949,942]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1501,[1502,1504]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandInvitation=void 0;var r=(function(t){_r(_d[2])(i,t);var n,r,o=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.label=e.label,t.goalCode=e.goalCode,t.goal=e.goal,t.accept=e.accept,t.handshakeProtocols=e.handshakeProtocols,t.services=e.services,t.imageUrl=e.imageUrl,t.appendedAttachments=e.appendedAttachments),t}return _r(_d[4])(i,[{key:"addRequest",value:function(e){this.requests||(this.requests=[]);var t=new(_r(_d[5]).Attachment)({id:this.generateId(),mimeType:'application/json',data:new(_r(_d[5]).AttachmentData)({base64:_r(_d[6]).JsonEncoder.toBase64(e.toJSON())})});this.requests.push(t)}},{key:"getRequests",value:function(){var e;return null===(e=this.requests)||void 0===e?void 0:e.map(function(e){return e.getDataAsJson()})}},{key:"toUrl",value:function(e){var t=e.domain,n=this.toJSON();return t+"?oob="+_r(_d[6]).JsonEncoder.toBase64URL(n)}},{key:"invitationDids",get:function(){return this.getServices().map(function(e){return'string'==typeof e?e:(0,_r(_d[7]).outOfBandServiceToNumAlgo2Did)(e)})}},{key:"getServices",value:function(){return this.services.map(function(e){return e instanceof String?e.toString():e})}},{key:"getDidServices",value:function(){return this.getServices().filter(function(e){return'string'==typeof e})}},{key:"getInlineServices",value:function(){return this.getServices().filter(function(e){return'string'!=typeof e})}}],[{key:"fromUrl",value:function(e){var t=(0,_r(_d[8]).parseUrl)(e).query.oob;if('string'==typeof t){var n=_r(_d[6]).JsonEncoder.fromBase64(t);return this.fromJson(n)}throw new(_r(_d[9]).AriesFrameworkError)('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters; `oob`')}},{key:"fromJson",value:function(e){return _r(_d[10]).JsonTransformer.fromJSON(e,i)}}]),i})(_r(_d[11]).AgentMessage);r.type=(0,_r(_d[12]).parseMessageType)('https://didcomm.org/out-of-band/1.1/invitation'),t([(0,_r(_d[13]).Transform)(function(e){var t=e.value;return(0,_r(_d[12]).replaceLegacyDidSovPrefix)(t)},{toClassOnly:!0}),(0,_r(_d[12]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[13]).Expose)({name:'goal_code'}),n("design:type",String)],r.prototype,"goalCode",void 0),t([(0,_r(_d[13]).Transform)(function(e){var t=e.value;return null===t||void 0===t?void 0:t.map(_r(_d[12]).replaceLegacyDidSovPrefix)},{toClassOnly:!0}),(0,_r(_d[13]).Expose)({name:'handshake_protocols'}),n("design:type",Array)],r.prototype,"handshakeProtocols",void 0),t([(0,_r(_d[13]).Expose)({name:'requests~attach'}),(0,_r(_d[13]).Type)(function(){return _r(_d[5]).Attachment}),(0,_r(_d[14]).IsArray)(),(0,_r(_d[14]).ValidateNested)({each:!0}),(0,_r(_d[14]).IsInstance)(_r(_d[5]).Attachment,{each:!0}),(0,_r(_d[14]).IsOptional)(),n("design:type",Array)],r.prototype,"requests",void 0),t([(0,_r(_d[14]).IsArray)(),(0,_r(_d[14]).ArrayNotEmpty)(),(0,_r(_d[13]).Transform)(function(e){var t=e.value,n=e.type;return n===_r(_d[13]).TransformationType.PLAIN_TO_CLASS?t.map(function(e){return'string'==typeof e?new String(e):_r(_d[10]).JsonTransformer.fromJSON(e,_r(_d[16]).OutOfBandDidCommService)}):n===_r(_d[13]).TransformationType.CLASS_TO_PLAIN?t.map(function(e){return'string'==typeof e||e instanceof String?e.toString():_r(_d[10]).JsonTransformer.toJSON(e)}):t}),(0,_r(_d[15]).IsStringOrInstance)(_r(_d[16]).OutOfBandDidCommService,{each:!0}),(0,_r(_d[14]).ValidateNested)({each:!0}),n("design:type",Array)],r.prototype,"services",void 0),t([(0,_r(_d[14]).IsOptional)(),(0,_r(_d[14]).IsUrl)(),n("design:type",String)],r.prototype,"imageUrl",void 0),_e.OutOfBandInvitation=r},1502,[14,11,9,7,8,978,979,1355,1429,612,626,949,942,627,662,1011,1503]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var i,c=arguments.length,o=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(c<3?i(o):c>3?i(e,r,o):i(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandDidCommService=void 0;var n=(function(e){_r(_d[2])(c,e);var r,n,i=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t){var e;return _r(_d[3])(this,c),e=i.call(this,_r(_d[4])(_r(_d[4])({},t),{type:c.type})),t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,e.accept=t.accept),e}return _r(_d[5])(c)})(_r(_d[6]).DidDocumentService);function i(t){return(0,_r(_d[7]).ValidateBy)({name:'isDidKeyString',validator:{validate:function(t){return(0,_r(_d[7]).isString)(t)&&t.startsWith('did:key:')},defaultMessage:(0,_r(_d[7]).buildMessage)(function(t){return t+'$property must be a did:key string'},t)}},t)}n.type='did-communication',e([(0,_r(_d[7]).ArrayNotEmpty)(),i({each:!0}),r("design:type",Array)],n.prototype,"recipientKeys",void 0),e([i({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"accept",void 0),_e.OutOfBandDidCommService=n},1503,[14,11,9,7,4,8,1420,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,s=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,r,s):o(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.HandshakeReuseMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:t.id,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/out-of-band/1.1/handshake-reuse'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.HandshakeReuseMessage=n},1504,[14,11,9,7,8,949,942]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1505,[1506,1507]); -__d(function(g,_r,_i,a,m,_e,_d2){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandRecord=void 0;var r=(function(e){_r(_d2[2])(i,e);var n,r,o=(n=i,r=t(),function(){var t,e=_r(_d2[0])(n);if(r){var o=_r(_d2[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d2[1])(this,t)});function i(t){var e,n,r,c,u;return _r(_d2[3])(this,i),(e=o.call(this)).type=i.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,_r(_d2[4]).uuid)(),e.createdAt=null!==(r=t.createdAt)&&void 0!==r?r:new Date,e.outOfBandInvitation=t.outOfBandInvitation,e.role=t.role,e.state=t.state,e.alias=t.alias,e.autoAcceptConnection=t.autoAcceptConnection,e.reusable=null!==(c=t.reusable)&&void 0!==c&&c,e.mediatorId=t.mediatorId,e.reuseConnectionId=t.reuseConnectionId,e._tags=null!==(u=t.tags)&&void 0!==u?u:{recipientKeyFingerprints:[]}),e}return _r(_d2[5])(i,[{key:"getTags",value:function(){return _r(_d2[6])(_r(_d2[6])({},this._tags),{role:this.role,state:this.state,invitationId:this.outOfBandInvitation.id})}},{key:"assertRole",value:function(t){if(this.role!==t)throw new(_r(_d2[7]).AriesFrameworkError)("Invalid out-of-band record role "+this.role+", expected is "+t+".")}},{key:"assertState",value:function(t){if(Array.isArray(t)||(t=[t]),!t.includes(this.state))throw new(_r(_d2[7]).AriesFrameworkError)("Invalid out-of-band record state "+this.state+", valid states are: "+t.join(', ')+".")}}]),i})(_r(_d2[8]).BaseRecord);r.type='OutOfBandRecord',e([(0,_r(_d2[9]).Type)(function(){return _r(_d2[10]).OutOfBandInvitation}),n("design:type",_r(_d2[10]).OutOfBandInvitation)],r.prototype,"outOfBandInvitation",void 0),_e.OutOfBandRecord=r},1506,[14,11,9,7,953,8,4,612,1097,627,1501]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var c,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,n,i):c(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var n,r,c=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).OutOfBandRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),r(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.OutOfBandRepository=c},1507,[14,11,9,7,1506,8,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,r){var o,c=arguments.length,u=c<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(u=(c<3?o(u):c>3?o(n,i,u):o(n,i))||u);return c>3&&u&&Object.defineProperty(n,i,u),u},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingService=void 0;var i=(function(){function t(n,i){_r(_d[0])(this,t),this.mediationRecipientService=n,this.eventEmitter=i}return _r(_d[1])(t,[{key:"getRouting",value:function(t){var n,i,r,o,c,u,s=arguments;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},i=n.mediatorId,r=n.useDefaultMediator,o=void 0===r||r,d.next=3,_r(_d[2]).awrap(t.wallet.createKey({keyType:_r(_d[3]).KeyType.Ed25519}));case 3:return c=d.sent,u={endpoints:t.config.endpoints,routingKeys:[],recipientKey:c},d.next=7,_r(_d[2]).awrap(this.mediationRecipientService.addMediationRouting(t,u,{mediatorId:i,useDefaultMediator:o}));case 7:return u=d.sent,this.eventEmitter.emit(t,{type:_r(_d[4]).RoutingEventTypes.RoutingCreatedEvent,payload:{routing:u}}),d.abrupt("return",u);case 10:case"end":return d.stop()}},null,this,null,Promise)}},{key:"removeRouting",value:function(t,n){return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[2]).awrap(this.mediationRecipientService.removeMediationRouting(t,n));case 2:case"end":return i.stop()}},null,this,null,Promise)}}]),t})();i=t([(0,_r(_d[5]).injectable)(),n("design:paramtypes",[_r(_d[6]).MediationRecipientService,_r(_d[7]).EventEmitter])],i),e.RoutingService=i},1508,[7,8,82,990,1509,1020,1510,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingEventTypes=void 0,(function(t){t.MediationStateChanged="MediationStateChanged",t.RecipientKeylistUpdated="RecipientKeylistUpdated",t.RoutingCreatedEvent="RoutingCreatedEvent"})(e.RoutingEventTypes||(e.RoutingEventTypes={}))},1509,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(t,r){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||r&&t&&"number"==typeof t.length){i&&(t=i);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r=0;c--)(s=t[c])&&(u=(o<3?s(u):o>3?s(n,r,u):s(n,r))||u);return o>3&&u&&Object.defineProperty(n,r,u),u},s=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.MediationRecipientService=void 0;var o=(function(){function n(t,r,i,s,o){_r(_d[0])(this,n),this.mediationRepository=i,this.eventEmitter=s,this.connectionService=t,this.messageSender=r,this.recipientModuleConfig=o}return _r(_d[1])(n,[{key:"createStatusRequest",value:function(t){var n,r,i,s=arguments;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.assertRole(_r(_d[3]).MediationRole.Recipient),t.assertReady(),r=n.recipientKey,i=new(_r(_d[4]).StatusRequestMessage)({recipientKey:r}),o.abrupt("return",i);case 6:case"end":return o.stop()}},null,null,null,Promise)}},{key:"createRequest",value:function(t,n){var r,i;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=new(_r(_d[5]).MediationRequestMessage)({}),i=new(_r(_d[6]).MediationRecord)({threadId:r.threadId,state:_r(_d[3]).MediationState.Requested,role:_r(_d[3]).MediationRole.Recipient,connectionId:n.id}),s.next=4,_r(_d[2]).awrap(this.connectionService.addConnectionType(t,n,_r(_d[7]).ConnectionType.Mediator));case 4:return s.next=6,_r(_d[2]).awrap(this.mediationRepository.save(t,i));case 6:return this.emitStateChangedEvent(t,i,null),s.abrupt("return",{mediationRecord:i,message:r});case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processMediationGrant",value:function(t){var n,r,i;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.assertReadyConnection(),s.next=3,_r(_d[2]).awrap(this.mediationRepository.getByConnectionId(t.agentContext,n.id));case 3:return(r=s.sent).assertState(_r(_d[3]).MediationState.Requested),r.assertRole(_r(_d[3]).MediationRole.Recipient),r.endpoint=t.message.endpoint,i=t.message.routingKeys.some(_r(_d[8]).isDidKey),s.next=10,_r(_d[2]).awrap(this.updateUseDidKeysFlag(t.agentContext,n,_r(_d[5]).MediationGrantMessage.type.protocolUri,i));case 10:return r.routingKeys=t.message.routingKeys.map(_r(_d[8]).didKeyToVerkey),s.next=13,_r(_d[2]).awrap(this.updateState(t.agentContext,r,_r(_d[3]).MediationState.Granted));case 13:return s.abrupt("return",s.sent);case 14:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processKeylistUpdateResults",value:function(n){var r,i,s,o,u,c,d;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=n.assertReadyConnection(),l.next=3,_r(_d[2]).awrap(this.mediationRepository.getByConnectionId(n.agentContext,r.id));case 3:return(i=l.sent).assertReady(),i.assertRole(_r(_d[3]).MediationRole.Recipient),s=n.message.updated,o=s.some(function(t){return(0,_r(_d[8]).isDidKey)(t.recipientKey)}),l.next=10,_r(_d[2]).awrap(this.updateUseDidKeysFlag(n.agentContext,r,_r(_d[5]).KeylistUpdateResponseMessage.type.protocolUri,o));case 10:for(u=t(s);!(c=u()).done;)(d=c.value).action===_r(_d[5]).KeylistUpdateAction.add?i.addRecipientKey((0,_r(_d[8]).didKeyToVerkey)(d.recipientKey)):d.action===_r(_d[5]).KeylistUpdateAction.remove&&i.removeRecipientKey((0,_r(_d[8]).didKeyToVerkey)(d.recipientKey));return l.next=13,_r(_d[2]).awrap(this.mediationRepository.update(n.agentContext,i));case 13:this.eventEmitter.emit(n.agentContext,{type:_r(_d[9]).RoutingEventTypes.RecipientKeylistUpdated,payload:{mediationRecord:i,keylist:s}});case 14:case"end":return l.stop()}},null,this,null,Promise)}},{key:"keylistUpdateAndAwait",value:function(t,n,r){var i,s,o,u,c,d,l,p,y,f,h=arguments;return _r(_d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return i=h.length>3&&void 0!==h[3]?h[3]:15e3,v.next=3,_r(_d[2]).awrap(this.connectionService.getById(t,n.connectionId));case 3:return o=v.sent,u=t.config.useDidKeyInProtocols,(c=o.metadata.get(_r(_d[10]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&(u=null!==(s=c[_r(_d[11]).KeylistUpdateMessage.type.protocolUri])&&void 0!==s?s:u),d=this.createKeylistUpdateMessage(r.map(function(t){return new(_r(_d[11]).KeylistUpdate)({action:t.action,recipientKey:u?new(_r(_d[12]).DidKey)(t.recipientKey).did:t.recipientKey.publicKeyBase58})})),n.assertReady(),n.assertRole(_r(_d[3]).MediationRole.Recipient),l=this.eventEmitter.observable(_r(_d[9]).RoutingEventTypes.RecipientKeylistUpdated),p=new(_r(_d[13]).ReplaySubject)(1),l.pipe((0,_r(_d[14]).filterContextCorrelationId)(t.contextCorrelationId),(0,_r(_d[15]).filter)(function(t){return n.id===t.payload.mediationRecord.id}),(0,_r(_d[15]).first)(),(0,_r(_d[15]).timeout)(i)).subscribe(p),y=new(_r(_d[16]).OutboundMessageContext)(d,{agentContext:t,connection:o}),v.next=16,_r(_d[2]).awrap(this.messageSender.sendMessage(y));case 16:return v.next=18,_r(_d[2]).awrap((0,_r(_d[13]).firstValueFrom)(p));case 18:return f=v.sent,v.abrupt("return",f.payload.mediationRecord);case 20:case"end":return v.stop()}},null,this,null,Promise)}},{key:"createKeylistUpdateMessage",value:function(t){return new(_r(_d[11]).KeylistUpdateMessage)({updates:t})}},{key:"addMediationRouting",value:function(t,n){var r,i,s,o,u,c=arguments;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:{},i=r.mediatorId,s=r.useDefaultMediator,o=void 0===s||s,u=null,!i){d.next=8;break}return d.next=5,_r(_d[2]).awrap(this.getById(t,i));case 5:u=d.sent,d.next=12;break;case 8:if(!o){d.next=12;break}return d.next=11,_r(_d[2]).awrap(this.findDefaultMediator(t));case 11:u=d.sent;case 12:if(u){d.next=14;break}return d.abrupt("return",n);case 14:return d.next=16,_r(_d[2]).awrap(this.keylistUpdateAndAwait(t,u,[{recipientKey:n.recipientKey,action:_r(_d[5]).KeylistUpdateAction.add}]));case 16:return u=d.sent,d.abrupt("return",_r(_d[17])(_r(_d[17])({},n),{mediatorId:u.id,endpoints:u.endpoint?[u.endpoint]:n.endpoints,routingKeys:u.routingKeys.map(function(t){return _r(_d[18]).Key.fromPublicKeyBase58(t,_r(_d[18]).KeyType.Ed25519)})}));case 18:case"end":return d.stop()}},null,this,null,Promise)}},{key:"removeMediationRouting",value:function(t,n){var r,i,s;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=n.recipientKeys,i=n.mediatorId,o.next=3,_r(_d[2]).awrap(this.getById(t,i));case 3:if(s=o.sent){o.next=6;break}throw new(_r(_d[19]).AriesFrameworkError)('No mediation record to remove routing from has been found');case 6:return o.next=8,_r(_d[2]).awrap(this.keylistUpdateAndAwait(t,s,r.map(function(t){return{recipientKey:t,action:_r(_d[5]).KeylistUpdateAction.remove}})));case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processMediationDeny",value:function(t){var n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.assertReadyConnection(),i.next=3,_r(_d[2]).awrap(this.findByConnectionId(t.agentContext,n.id));case 3:if(r=i.sent){i.next=6;break}throw new Error("No mediation has been requested for this connection id: "+n.id);case 6:return r.assertRole(_r(_d[3]).MediationRole.Recipient),r.assertState(_r(_d[3]).MediationState.Requested),i.next=10,_r(_d[2]).awrap(this.updateState(t.agentContext,r,_r(_d[3]).MediationState.Denied));case 10:return i.abrupt("return",r);case 11:case"end":return i.stop()}},null,this,null,Promise)}},{key:"processStatus",value:function(t){var n,r,i,s,o,u,c,d,l,p,y;return _r(_d[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=t.assertReadyConnection(),r=t.message,i=r.messageCount,s=r.recipientKey,0!==i){f.next=13;break}return f.next=6,_r(_d[2]).awrap(this.connectionService.createTrustPing(t.agentContext,n,{responseRequested:!1}));case 6:return o=f.sent,u=o.message,c=o.connectionRecord,d=['ws','wss'],f.next=12,_r(_d[2]).awrap(this.messageSender.sendMessage(new(_r(_d[16]).OutboundMessageContext)(u,{agentContext:t.agentContext,connection:c}),{transportPriority:{schemes:d,restrictive:!0}}));case 12:return f.abrupt("return",null);case 13:return l=this.recipientModuleConfig.maximumMessagePickup,p=i=0;s--)(n=e[s])&&(c=(o<3?n(c):o>3?n(t,r,c):n(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DeliveryRequestMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var r,i,n=(r=o,i=e(),function(){var e,t=_r(_d[0])(r);if(i){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.limit=e.limit),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(o)})(_r(_d[6]).AgentMessage);i.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/delivery-request'),t([(0,_r(_d[7]).IsValidMessageType)(i.type),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),r("design:type",String)],i.prototype,"recipientKey",void 0),t([(0,_r(_d[8]).IsInt)(),r("design:type",Number)],i.prototype,"limit",void 0),_e.DeliveryRequestMessage=i},1515,[14,11,9,7,972,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var i,c=arguments.length,o=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(c<3?i(o):c>3?i(t,r,o):i(t,r))||o);return c>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MessageDeliveryMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,i=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=i.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.appendedAttachments=e.attachments,t.setThread({threadId:e.threadId})),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(c)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/delivery'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),r("design:type",String)],n.prototype,"recipientKey",void 0),_e.MessageDeliveryMessage=n},1516,[14,11,9,7,972,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,s,r){var n,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(o<3?n(c):o>3?n(t,s,c):n(t,s))||c);return o>3&&c&&Object.defineProperty(t,s,c),c},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MessagesReceivedMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var s,r,n=(s=o,r=e(),function(){var e,t=_r(_d[0])(s);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.messageIdList=e.messageIdList),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(o)})(_r(_d[6]).AgentMessage);r.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/messages-received'),t([(0,_r(_d[7]).IsValidMessageType)(r.type),s("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[8]).IsArray)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'message_id_list'}),s("design:type",Array)],r.prototype,"messageIdList",void 0),_e.MessagesReceivedMessage=r},1517,[14,11,9,7,972,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var s,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(r=(i<3?s(r):i>3?s(t,o,r):s(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StatusMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,s=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=s.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.messageCount=e.messageCount,t.longestWaitedSeconds=e.longestWaitedSeconds,t.newestReceivedTime=e.newestReceivedTime,t.oldestReceivedTime=e.oldestReceivedTime,t.totalBytes=e.totalBytes,t.liveDelivery=e.liveDelivery,t.setThread({threadId:e.threadId})),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(i)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/status'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),o("design:type",String)],n.prototype,"recipientKey",void 0),t([(0,_r(_d[8]).IsInt)(),(0,_r(_d[9]).Expose)({name:'message_count'}),o("design:type",Number)],n.prototype,"messageCount",void 0),t([(0,_r(_d[8]).IsInt)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'longest_waited_seconds'}),o("design:type",Number)],n.prototype,"longestWaitedSeconds",void 0),t([(0,_r(_d[9]).Expose)({name:'newest_received_time'}),(0,_r(_d[9]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).DateParser)(t)}),(0,_r(_d[8]).IsDate)(),(0,_r(_d[8]).IsOptional)(),o("design:type",Date)],n.prototype,"newestReceivedTime",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).DateParser)(t)}),(0,_r(_d[8]).IsDate)(),(0,_r(_d[9]).Expose)({name:'oldest_received_time'}),o("design:type",Date)],n.prototype,"oldestReceivedTime",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsInt)(),(0,_r(_d[9]).Expose)({name:'total_bytes'}),o("design:type",Number)],n.prototype,"totalBytes",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsBoolean)(),(0,_r(_d[9]).Expose)({name:'live_delivery'}),o("design:type",Boolean)],n.prototype,"liveDelivery",void 0),_e.StatusMessage=n},1518,[14,11,9,7,972,8,949,942,662,627,1073]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StatusRequestMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/messagepickup/2.0/status-request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'recipient_key'}),r("design:type",String)],n.prototype,"recipientKey",void 0),_e.StatusRequestMessage=n},1519,[14,11,9,7,8,949,942,662,627]); -__d(function(g,_r,_i,a,m,_e,_d2){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(c=(o<3?n(c):o>3?n(t,i,c):n(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRecord=void 0;var r=(function(t){_r(_d2[2])(o,t);var i,r,n=(i=o,r=e(),function(){var e,t=_r(_d2[0])(i);if(r){var n=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function o(e){var t,i,r,c,s;return _r(_d2[3])(this,o),(t=n.call(this)).type=o.type,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:(0,_r(_d2[4]).uuid)(),t.createdAt=null!==(r=e.createdAt)&&void 0!==r?r:new Date,t.connectionId=e.connectionId,t.threadId=e.threadId,t.recipientKeys=e.recipientKeys||[],t.routingKeys=e.routingKeys||[],t.state=e.state,t.role=e.role,t.endpoint=null!==(c=e.endpoint)&&void 0!==c?c:void 0,t.pickupStrategy=e.pickupStrategy,t._tags=null!==(s=e.tags)&&void 0!==s?s:{}),t}return _r(_d2[5])(o,[{key:"getTags",value:function(){return _r(_d2[6])(_r(_d2[6])({},this._tags),{state:this.state,role:this.role,connectionId:this.connectionId,threadId:this.threadId,recipientKeys:this.recipientKeys})}},{key:"addRecipientKey",value:function(e){this.recipientKeys.push(e)}},{key:"removeRecipientKey",value:function(e){var t=this.recipientKeys.indexOf(e,0);return t>-1&&(this.recipientKeys.splice(t,1),!0)}},{key:"isReady",get:function(){return this.state===_r(_d2[7]).MediationState.Granted}},{key:"assertReady",value:function(){if(!this.isReady)throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record is not ready to be used. Expected "+_r(_d2[7]).MediationState.Granted+", found invalid state "+this.state)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertRole",value:function(e){if(this.role!==e)throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record has invalid role "+this.role+". Expected role "+e+".")}}]),o})(_r(_d2[9]).BaseRecord);r.type='MediationRecord',t([(0,_r(_d2[10]).Transform)(function(e){var t=e.value;return'Explicit'===t?_r(_d2[11]).MediatorPickupStrategy.PickUpV1:t}),i("design:type",String)],r.prototype,"pickupStrategy",void 0),_e.MediationRecord=r},1520,[14,11,9,7,953,8,4,1513,612,1097,627,1521]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorPickupStrategy=void 0,(function(t){t.PickUpV1="PickUpV1",t.PickUpV2="PickUpV2",t.Implicit="Implicit",t.None="None"})(e.MediatorPickupStrategy||(e.MediatorPickupStrategy={}))},1521,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionMetadataKeys=void 0,(function(o){o.UseDidKeysForProtocol="_internal/useDidKeysForProtocol"})(e.ConnectionMetadataKeys||(e.ConnectionMetadataKeys={}))},1522,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1523,[1524]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingProblemReportReason=void 0,(function(o){o.ErrorProcessingAttachments="error-processing-attachments"})(e.RoutingProblemReportReason||(e.RoutingProblemReportReason={}))},1524,[]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,c=arguments.length,o=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(c<3?i(o):c>3?i(t,n,o):i(t,n))||o);return c>3&&o&&Object.defineProperty(t,n,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRepository=void 0;var i=(function(t){_r(_d[2])(c,t);var n,r,i=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e,t){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).MediationRecord,e,t)}return _r(_d[5])(c,[{key:"getSingleByRecipientKey",value:function(e,t){return this.getSingleByQuery(e,{recipientKeys:[t]})}},{key:"getByConnectionId",value:function(e,t){return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.getSingleByQuery(e,{connectionId:t}));case 1:case"end":return n.stop()}},null,this,null,Promise)}}]),c})(_r(_d[7]).Repository);i=t([(0,_r(_d[8]).injectable)(),r(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],i),_e.MediationRepository=i},1525,[14,11,9,7,1520,8,82,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecipientModuleConfig=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(t,[{key:"mediatorPollingInterval",get:function(){var t;return null!==(t=this.options.mediatorPollingInterval)&&void 0!==t?t:5e3}},{key:"mediatorPickupStrategy",get:function(){return this.options.mediatorPickupStrategy}},{key:"maximumMessagePickup",get:function(){var t;return null!==(t=this.options.maximumMessagePickup)&&void 0!==t?t:10}},{key:"baseMediatorReconnectionIntervalMs",get:function(){var t;return null!==(t=this.options.baseMediatorReconnectionIntervalMs)&&void 0!==t?t:100}},{key:"maximumMediatorReconnectionIntervalMs",get:function(){var t;return null!==(t=this.options.maximumMediatorReconnectionIntervalMs)&&void 0!==t?t:Number.POSITIVE_INFINITY}},{key:"mediatorInvitationUrl",get:function(){return this.options.mediatorInvitationUrl}}]),t})();e.RecipientModuleConfig=t},1526,[7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsModuleConfig=void 0;var n=(function(){function n(o){r(d[0])(this,n),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(n,[{key:"autoAcceptConnections",get:function(){var n;return null!==(n=this.options.autoAcceptConnections)&&void 0!==n&&n}}]),n})();e.ConnectionsModuleConfig=n},1527,[7,8]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsModule=void 0;var n=(function(){function n(o){r(d[0])(this,n),this.api=r(d[1]).ConnectionsApi,this.config=new(r(d[2]).ConnectionsModuleConfig)(o)}return r(d[3])(n,[{key:"register",value:function(n,o){n.registerContextScoped(r(d[1]).ConnectionsApi),n.registerInstance(r(d[2]).ConnectionsModuleConfig,this.config),n.registerSingleton(r(d[4]).ConnectionService),n.registerSingleton(r(d[5]).DidExchangeProtocol),n.registerSingleton(r(d[4]).TrustPingService),n.registerSingleton(r(d[6]).ConnectionRepository),o.register(new(r(d[7]).Protocol)({id:'https://didcomm.org/connections/1.0',roles:[r(d[8]).ConnectionRole.Invitee,r(d[8]).ConnectionRole.Inviter]}),new(r(d[7]).Protocol)({id:'https://didcomm.org/didexchange/1.0',roles:[r(d[8]).DidExchangeRole.Requester,r(d[8]).DidExchangeRole.Responder]}))}}]),n})();e.ConnectionsModule=n},1528,[7,1482,1527,8,1466,1495,1463,623,1435]); -__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=t(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:new(r(d[3]).DependencyManager);r(d[4])(this,c);var i=new(r(d[5]).AgentConfig)(e.config,e.dependencies),o=(0,r(d[6]).extendModulesWithDefaultModules)(i,e.modules);n.registerSingleton(r(d[7]).MessageHandlerRegistry),n.registerSingleton(r(d[8]).EventEmitter),n.registerSingleton(r(d[9]).MessageSender),n.registerSingleton(r(d[10]).MessageReceiver),n.registerSingleton(r(d[11]).TransportService),n.registerSingleton(r(d[12]).Dispatcher),n.registerSingleton(r(d[13]).EnvelopeService),n.registerSingleton(r(d[14]).FeatureRegistry),n.registerSingleton(r(d[15]).JwsService),n.registerSingleton(r(d[16]).CacheRepository),n.registerSingleton(r(d[17]).DidCommMessageRepository),n.registerSingleton(r(d[17]).StorageVersionRepository),n.registerSingleton(r(d[17]).StorageUpdateService),n.registerInstance(r(d[18]).SigningProviderToken,'default'),n.registerInstance(r(d[5]).AgentConfig,i),n.registerInstance(r(d[19]).InjectionSymbols.AgentDependencies,i.agentDependencies),n.registerInstance(r(d[19]).InjectionSymbols.Stop$,new(r(d[20]).Subject)),n.registerInstance(r(d[19]).InjectionSymbols.FileSystem,new i.agentDependencies.FileSystem),n.isRegistered(r(d[19]).InjectionSymbols.Wallet)||n.registerContextScoped(r(d[19]).InjectionSymbols.Wallet,r(d[21]).IndyWallet),n.isRegistered(r(d[19]).InjectionSymbols.Logger)||n.registerInstance(r(d[19]).InjectionSymbols.Logger,i.logger),n.isRegistered(r(d[19]).InjectionSymbols.StorageService)||n.registerSingleton(r(d[19]).InjectionSymbols.StorageService,r(d[22]).IndyStorageService),n.isRegistered(r(d[19]).InjectionSymbols.MessageRepository)||n.registerSingleton(r(d[19]).InjectionSymbols.MessageRepository,r(d[23]).InMemoryMessageRepository),n.registerModules(o),n.registerInstance(r(d[24]).AgentContext,new(r(d[24]).AgentContext)({dependencyManager:n,contextCorrelationId:'default'})),n.isRegistered(r(d[19]).InjectionSymbols.AgentContextProvider)||n.registerSingleton(r(d[19]).InjectionSymbols.AgentContextProvider,r(d[24]).DefaultAgentContextProvider);var l=(t=s.call(this,i,n)).dependencyManager.resolve(r(d[19]).InjectionSymbols.Stop$);return t.messageSubscription=t.eventEmitter.observable(r(d[25]).AgentEventTypes.AgentMessageReceived).pipe((0,r(d[26]).takeUntil)(l),(0,r(d[26]).concatMap)(function(e){return t.messageReceiver.receiveMessage(e.payload.message,{connection:e.payload.connection,contextCorrelationId:e.payload.contextCorrelationId}).catch(function(e){t.logger.error('Failed to process message',{error:e})})})).subscribe(),t}return r(d[27])(c,[{key:"registerInboundTransport",value:function(e){this.messageReceiver.registerInboundTransport(e)}},{key:"inboundTransports",get:function(){return this.messageReceiver.inboundTransports}},{key:"registerOutboundTransport",value:function(e){this.messageSender.registerOutboundTransport(e)}},{key:"outboundTransports",get:function(){return this.messageSender.outboundTransports}},{key:"events",get:function(){return this.eventEmitter}},{key:"features",get:function(){return this.featureRegistry}},{key:"initialize",value:function(){var t,n,i,o,s,l,u,p=this;return r(d[28]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,r(d[28]).awrap(r(d[29])(r(d[0])(c.prototype),"initialize",this).call(this));case 2:this.ledger.setPools(this.ledger.config.indyLedgers),this.ledger.config.connectToIndyLedgersOnStartup&&this.ledger.connectToPools().catch(function(e){p.logger.warn('Error connecting to ledger, will try to reconnect when needed.',{error:e})}),t=e(this.inboundTransports);case 5:if((n=t()).done){f.next=11;break}return i=n.value,f.next=9,r(d[28]).awrap(i.start(this));case 9:f.next=5;break;case 11:o=e(this.outboundTransports);case 12:if((s=o()).done){f.next=18;break}return l=s.value,f.next=16,r(d[28]).awrap(l.start(this));case 16:f.next=12;break;case 18:if(!this.mediationRecipient.config.mediatorInvitationUrl){f.next=25;break}return this.logger.debug('Provision mediation with invitation',{mediatorInvitationUrl:this.mediationRecipient.config.mediatorInvitationUrl}),f.next=22,r(d[28]).awrap(this.getMediationConnection(this.mediationRecipient.config.mediatorInvitationUrl));case 22:return u=f.sent,f.next=25,r(d[28]).awrap(this.mediationRecipient.provision(u));case 25:return f.next=27,r(d[28]).awrap(this.mediator.initialize());case 27:return f.next=29,r(d[28]).awrap(this.mediationRecipient.initialize());case 29:this._isInitialized=!0;case 30:case"end":return f.stop()}},null,this,null,Promise)}},{key:"shutdown",value:function(){var e,t;return r(d[28]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return this.dependencyManager.resolve(r(d[19]).InjectionSymbols.Stop$).next(!0),e=[].concat(r(d[30])(this.inboundTransports),r(d[30])(this.outboundTransports)),t=e.map(function(e){return e.stop()}),n.next=6,r(d[28]).awrap(Promise.all(t));case 6:if(!this.wallet.isInitialized){n.next=9;break}return n.next=9,r(d[28]).awrap(this.wallet.close());case 9:this._isInitialized=!1;case 10:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getMediationConnection",value:function(e){var t,n,i,o,s,c,l,u;return r(d[28]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,r(d[28]).awrap(this.oob.parseInvitation(e));case 2:return t=p.sent,p.next=5,r(d[28]).awrap(this.oob.findByReceivedInvitationId(t.id));case 5:if(!(n=p.sent)){p.next=12;break}return p.next=9,r(d[28]).awrap(this.connections.findAllByOutOfBandId(n.id));case 9:p.t0=p.sent,p.next=13;break;case 12:p.t0=[];case 13:if(i=p.t0,o=r(d[31])(i,1),s=o[0]){p.next=30;break}return this.logger.debug('Mediation connection does not exist, creating connection'),p.next=20,r(d[28]).awrap(this.mediationRecipient.getRouting({useDefaultMediator:!1}));case 20:return c=p.sent,this.logger.debug('Routing created',c),p.next=24,r(d[28]).awrap(this.oob.receiveInvitation(t,{routing:c}));case 24:if(l=p.sent,u=l.connectionRecord,this.logger.debug("Mediation invitation processed",{outOfBandInvitation:t}),u){p.next=29;break}throw new(r(d[32]).AriesFrameworkError)('No connection record to provision mediation.');case 29:return p.abrupt("return",this.connections.returnWhenIsConnected(u.id));case 30:if(s.isReady){p.next=32;break}return p.abrupt("return",this.connections.returnWhenIsConnected(s.id));case 32:return p.abrupt("return",s);case 33:case"end":return p.stop()}},null,this,null,Promise)}}]),c})(r(d[33]).BaseAgent);_e.Agent=o},1529,[14,11,9,1020,7,1394,1530,1057,1105,1345,611,1344,1494,1336,1056,1497,1377,1533,990,1104,1106,1367,1952,1953,1392,1346,1329,8,82,91,42,31,612,1954]); -__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return{connections:function(){return new(r(d[0]).ConnectionsModule)({autoAcceptConnections:n.autoAcceptConnections})},credentials:function(){return new(r(d[1]).CredentialsModule)({autoAcceptCredentials:n.autoAcceptCredentials})},proofs:function(){return new(r(d[2]).ProofsModule)({autoAcceptProofs:n.autoAcceptProofs})},mediator:function(){return new(r(d[3]).MediatorModule)({autoAcceptMediationRequests:n.autoAcceptMediationRequests})},mediationRecipient:function(){return new(r(d[3]).RecipientModule)({maximumMessagePickup:n.maximumMessagePickup,mediatorInvitationUrl:n.mediatorConnectionsInvite,mediatorPickupStrategy:n.mediatorPickupStrategy,baseMediatorReconnectionIntervalMs:n.baseMediatorReconnectionIntervalMs,maximumMediatorReconnectionIntervalMs:n.maximumMediatorReconnectionIntervalMs,mediatorPollingInterval:n.mediatorPollingInterval})},basicMessages:function(){return new(r(d[4]).BasicMessagesModule)},genericRecords:function(){return new(r(d[5]).GenericRecordsModule)},ledger:function(){return new(r(d[6]).LedgerModule)({connectToIndyLedgersOnStartup:n.connectToIndyLedgersOnStartup,indyLedgers:n.indyLedgers})},discovery:function(){return new(r(d[7]).DiscoverFeaturesModule)},dids:function(){return new(r(d[8]).DidsModule)},wallet:function(){return new(r(d[9]).WalletModule)},oob:function(){return new(r(d[10]).OutOfBandModule)},indy:function(){return new(r(d[11]).IndyModule)},w3cVc:function(){return new(r(d[12]).W3cVcModule)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAgentApi=e.extendModulesWithDefaultModules=void 0,e.extendModulesWithDefaultModules=function(t,o){for(var u=r(d[13])({},o),c=n(t),s=0,l=Object.entries(c);s1&&void 0!==arguments[1]?arguments[1]:[];return Object.entries(n.registeredModules).reduce(function(o,u){var c=r(d[14])(u,2),s=c[0],l=c[1];if(!l.api)return o;var M=n.resolve(l.api);return t.includes(M)?o:r(d[13])(r(d[13])({},o),r(d[15])({},s,M))},{})}},1530,[1426,1531,1839,1552,1920,1934,1360,1593,1420,1940,1944,1895,1699,4,31,249]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e)},1531,[1532,1647,1643,1636,1645,1648,1805,1838,1644]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,o){var s,c=arguments.length,i=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,n,r,o);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(i=(c<3?s(i):c>3?s(n,r,i):s(n,r))||i);return c>3&&i&&Object.defineProperty(n,r,i),i},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},r=this&&this.__param||function(t,n){return function(r,o){n(r,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialsApi=void 0;var o=(function(){function t(n,r,o,s,c,i,u,d,l){_r(_d[0])(this,t),this.messageSender=n,this.connectionService=r,this.credentialRepository=c,this.routingService=i,this.agentContext=o,this.didCommMessageRepository=u,this.logger=s,this.config=l,this.credentialProtocolMap=l.credentialProtocols.reduce(function(t,n){return _r(_d[1])(_r(_d[1])({},t),_r(_d[2])({},n.version,n))},{})}return _r(_d[3])(t,[{key:"getProtocol",value:function(t){if(!this.credentialProtocolMap[t])throw new(_r(_d[4]).AriesFrameworkError)("No credential protocol registered for protocol version "+t);return this.credentialProtocolMap[t]}},{key:"proposeCredential",value:function(t){var n,r,o,s,c,i;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=this.getProtocol(t.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+t.protocolVersion),u.next=4,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,t.connectionId));case 4:return r=u.sent,u.next=7,_r(_d[5]).awrap(n.createProposal(this.agentContext,{connection:r,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 7:return o=u.sent,s=o.credentialRecord,c=o.message,this.logger.debug('We have a message (sending outbound): ',c),i=new(_r(_d[6]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:r,associatedRecord:s}),this.logger.debug('In proposeCredential: Send Proposal to Issuer'),u.next=15,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 15:return u.abrupt("return",s);case 16:case"end":return u.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(t){var n,r,o,s,c,i;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:if((n=u.sent).connectionId){u.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for credential record '"+n.id+"'. Connection-less issuance does not support credential proposal or negotiation.");case 5:return r=this.getProtocol(n.protocolVersion),u.next=8,_r(_d[5]).awrap(r.acceptProposal(this.agentContext,{credentialRecord:n,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 8:return o=u.sent,s=o.message,u.next=12,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 12:return c=u.sent,i=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:c,associatedRecord:n}),u.next=16,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 16:return u.abrupt("return",n);case 17:case"end":return u.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(t){var n,r,o,s,c,i;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:if((n=u.sent).connectionId){u.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connection id for credential record "+n.id+" not found. Connection-less issuance does not support negotiation");case 5:return r=this.getProtocol(n.protocolVersion),u.next=8,_r(_d[5]).awrap(r.negotiateProposal(this.agentContext,{credentialRecord:n,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 8:return o=u.sent,s=o.message,u.next=12,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 12:return c=u.sent,i=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:c,associatedRecord:n}),u.next=16,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 16:return u.abrupt("return",n);case 17:case"end":return u.stop()}},null,this,null,Promise)}},{key:"offerCredential",value:function(t){var n,r,o,s,c,i;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,t.connectionId));case 2:return n=u.sent,r=this.getProtocol(t.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+t.protocolVersion),u.next=7,_r(_d[5]).awrap(r.createOffer(this.agentContext,{credentialFormats:t.credentialFormats,autoAcceptCredential:t.autoAcceptCredential,comment:t.comment,connection:n}));case 7:return o=u.sent,s=o.message,c=o.credentialRecord,this.logger.debug('Offer Message successfully created; message= ',s),i=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:n,associatedRecord:c}),u.next=14,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 14:return u.abrupt("return",c);case 15:case"end":return u.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(t){var n,r,o,s,c,i,u,d,l,p,h,f;return _r(_d[5]).async(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:return n=x.sent,r=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for this version; version = "+r.version),x.next=7,_r(_d[5]).awrap(r.findOfferMessage(this.agentContext,n.id));case 7:if(o=x.sent,!n.connectionId){x.next=22;break}return x.next=11,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 11:return s=x.sent,x.next=14,_r(_d[5]).awrap(r.acceptOffer(this.agentContext,{credentialRecord:n,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 14:return c=x.sent,i=c.message,u=new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:s,associatedRecord:n}),x.next=19,_r(_d[5]).awrap(this.messageSender.sendMessage(u));case 19:return x.abrupt("return",n);case 22:if(!(null===o||void 0===o?void 0:o.service)){x.next=40;break}return x.next=25,_r(_d[5]).awrap(this.routingService.getRouting(this.agentContext));case 25:return d=x.sent,l=new(_r(_d[7]).ServiceDecorator)({serviceEndpoint:d.endpoints[0],recipientKeys:[d.recipientKey.publicKeyBase58],routingKeys:d.routingKeys.map(function(t){return t.publicKeyBase58})}),p=o.service,x.next=30,_r(_d[5]).awrap(r.acceptOffer(this.agentContext,{credentialRecord:n,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 30:return h=x.sent,(f=h.message).service=l,x.next=35,_r(_d[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(this.agentContext,{agentMessage:f,role:_r(_d[8]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 35:return x.next=37,_r(_d[5]).awrap(this.messageSender.sendMessageToService(new(_r(_d[6]).OutboundMessageContext)(f,{agentContext:this.agentContext,serviceParams:{service:p.resolvedDidCommService,senderKey:l.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 37:return x.abrupt("return",n);case 40:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept offer for credential record without connectionId or ~service decorator on credential offer.");case 41:case"end":return x.stop()}},null,this,null,Promise)}},{key:"declineOffer",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return(n=o.sent).assertState(_r(_d[9]).CredentialState.OfferReceived),r=this.getProtocol(n.protocolVersion),o.next=7,_r(_d[5]).awrap(r.updateState(this.agentContext,n,_r(_d[9]).CredentialState.Declined));case 7:return o.abrupt("return",n);case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"negotiateOffer",value:function(t){var n,r,o,s,c,i;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:return n=u.sent,r=this.getProtocol(n.protocolVersion),u.next=6,_r(_d[5]).awrap(r.negotiateOffer(this.agentContext,{credentialFormats:t.credentialFormats,credentialRecord:n,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 6:if(o=u.sent,s=o.message,n.connectionId){u.next=10;break}throw new(_r(_d[4]).AriesFrameworkError)("No connection id for credential record "+n.id+" not found. Connection-less issuance does not support negotiation");case 10:return u.next=12,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 12:return c=u.sent,i=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:c,associatedRecord:n}),u.next=16,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 16:return u.abrupt("return",n);case 17:case"end":return u.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(t){var n,r,o,s;return _r(_d[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=this.getProtocol(t.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+t.protocolVersion),c.next=4,_r(_d[5]).awrap(n.createOffer(this.agentContext,{credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 4:return r=c.sent,o=r.message,s=r.credentialRecord,this.logger.debug('Offer Message successfully created; message= ',o),c.abrupt("return",{message:o,credentialRecord:s});case 9:case"end":return c.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t){var n,r,o,s,c,i,u,d,l,p;return _r(_d[5]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:return n=h.sent,r=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+n.protocolVersion),h.next=7,_r(_d[5]).awrap(r.acceptRequest(this.agentContext,{credentialRecord:n,credentialFormats:t.credentialFormats,comment:t.comment,autoAcceptCredential:t.autoAcceptCredential}));case 7:return o=h.sent,s=o.message,this.logger.debug('We have a credential message (sending outbound): ',s),h.next=12,_r(_d[5]).awrap(r.findRequestMessage(this.agentContext,n.id));case 12:return c=h.sent,h.next=15,_r(_d[5]).awrap(r.findOfferMessage(this.agentContext,n.id));case 15:if(i=h.sent,!n.connectionId){h.next=26;break}return h.next=19,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 19:return u=h.sent,d=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:u,associatedRecord:n}),h.next=23,_r(_d[5]).awrap(this.messageSender.sendMessage(d));case 23:return h.abrupt("return",n);case 26:if(!((null===c||void 0===c?void 0:c.service)&&(null===i||void 0===i?void 0:i.service))){h.next=37;break}return l=c.service,p=i.service,s.service=p,h.next=32,_r(_d[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(this.agentContext,{agentMessage:s,role:_r(_d[8]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 32:return h.next=34,_r(_d[5]).awrap(this.messageSender.sendMessageToService(new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:p.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 34:return h.abrupt("return",n);case 37:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept request for credential record without connectionId or ~service decorator on credential offer / request.");case 38:case"end":return h.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(t){var n,r,o,s,c,i,u,d,l,p;return _r(_d[5]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:return n=h.sent,r=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+n.protocolVersion),h.next=7,_r(_d[5]).awrap(r.acceptCredential(this.agentContext,{credentialRecord:n}));case 7:return o=h.sent,s=o.message,h.next=11,_r(_d[5]).awrap(r.findRequestMessage(this.agentContext,n.id));case 11:return c=h.sent,h.next=14,_r(_d[5]).awrap(r.findCredentialMessage(this.agentContext,n.id));case 14:if(i=h.sent,!n.connectionId){h.next=25;break}return h.next=18,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 18:return u=h.sent,d=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:u,associatedRecord:n}),h.next=22,_r(_d[5]).awrap(this.messageSender.sendMessage(d));case 22:return h.abrupt("return",n);case 25:if(!((null===i||void 0===i?void 0:i.service)&&(null===c||void 0===c?void 0:c.service))){h.next=33;break}return l=i.service,p=c.service,h.next=30,_r(_d[5]).awrap(this.messageSender.sendMessageToService(new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:p.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 30:return h.abrupt("return",n);case 33:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept credential without connectionId or ~service decorator on credential message.");case 34:case"end":return h.stop()}},null,this,null,Promise)}},{key:"sendProblemReport",value:function(t){var n,r,o,s,c;return _r(_d[5]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[5]).awrap(this.getById(t.credentialRecordId));case 2:if((n=i.sent).connectionId){i.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for credential record '"+n.id+"'.");case 5:return i.next=7,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 7:return r=i.sent,o=this.getProtocol(n.protocolVersion),(s=o.createProblemReport(this.agentContext,{message:t.message})).setThread({threadId:n.threadId}),c=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:r,associatedRecord:n}),i.next=14,_r(_d[5]).awrap(this.messageSender.sendMessage(c));case 14:return i.abrupt("return",n);case 15:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getFormatData",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getProtocol(n.protocolVersion),o.abrupt("return",r.getFormatData(this.agentContext,t));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t){return this.credentialRepository.getById(this.agentContext,t)}},{key:"getAll",value:function(){return this.credentialRepository.getAll(this.agentContext)}},{key:"findAllByQuery",value:function(t){return this.credentialRepository.findByQuery(this.agentContext,t)}},{key:"findById",value:function(t){return this.credentialRepository.findById(this.agentContext,t)}},{key:"deleteById",value:function(t,n){var r,o;return _r(_d[5]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return r=s.sent,o=this.getProtocol(r.protocolVersion),s.abrupt("return",o.delete(this.agentContext,r,n));case 5:case"end":return s.stop()}},null,this,null,Promise)}},{key:"update",value:function(t){return _r(_d[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[5]).awrap(this.credentialRepository.update(this.agentContext,t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(t){var n;return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[5]).awrap(this.getServiceForCredentialExchangeId(t));case 2:return n=r.sent,r.abrupt("return",n.findProposalMessage(this.agentContext,t));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findOfferMessage",value:function(t){var n;return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[5]).awrap(this.getServiceForCredentialExchangeId(t));case 2:return n=r.sent,r.abrupt("return",n.findOfferMessage(this.agentContext,t));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findRequestMessage",value:function(t){var n;return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[5]).awrap(this.getServiceForCredentialExchangeId(t));case 2:return n=r.sent,r.abrupt("return",n.findRequestMessage(this.agentContext,t));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findCredentialMessage",value:function(t){var n;return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[5]).awrap(this.getServiceForCredentialExchangeId(t));case 2:return n=r.sent,r.abrupt("return",n.findCredentialMessage(this.agentContext,t));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getServiceForCredentialExchangeId",value:function(t){var n;return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=r.sent,r.abrupt("return",this.getProtocol(n.protocolVersion));case 4:case"end":return r.stop()}},null,this,null,Promise)}}]),t})();o=t([(0,_r(_d[10]).injectable)(),r(3,(0,_r(_d[10]).inject)(_r(_d[11]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[12]).MessageSender,_r(_d[13]).ConnectionService,_r(_d[14]).AgentContext,Object,_r(_d[15]).CredentialRepository,_r(_d[16]).RoutingService,_r(_d[17]).DidCommMessageRepository,_r(_d[18]).RevocationNotificationService,_r(_d[19]).CredentialsModuleConfig])],o),e.CredentialsApi=o},1532,[7,4,249,8,612,82,623,985,1533,1550,1020,1104,1345,1466,1391,1545,1508,1536,1633,1644]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1533,[1534,1538]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1534,[1535,1536,1537]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommMessageRecord=void 0;var t=(function(t){r(d[2])(c,t);var s,o,n=(s=c,o=e(),function(){var e,t=r(d[0])(s);if(o){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t,s,o;return r(d[3])(this,c),(t=n.call(this)).type=c.type,e&&(t.id=null!==(s=e.id)&&void 0!==s?s:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.associatedRecordId=e.associatedRecordId,t.role=e.role,t.message=e.message),t}return r(d[5])(c,[{key:"getTags",value:function(){var e=this.message['@id'],t=this.message['@type'],s=(0,r(d[6]).parseMessageType)(t),o=s.protocolName,n=s.protocolMajorVersion,c=s.protocolMinorVersion,u=s.messageName,l=this.message['~thread'],f=e;return(0,r(d[7]).isJsonObject)(l)&&'string'==typeof l.thid&&(f=l.thid),r(d[8])(r(d[8])({},this._tags),{role:this.role,associatedRecordId:this.associatedRecordId,threadId:f,protocolName:o,messageName:u,protocolMajorVersion:n.toString(),protocolMinorVersion:c.toString(),messageType:t,messageId:e})}},{key:"getMessageInstance",value:function(e){var t=(0,r(d[6]).parseMessageType)(this.message['@type']);if(!(0,r(d[6]).canHandleMessageType)(e,t))throw new(r(d[9]).AriesFrameworkError)('Provided message class type does not match type of stored message');return r(d[10]).JsonTransformer.fromJSON(this.message,e)}}]),c})(r(d[11]).BaseRecord);_e.DidCommMessageRecord=t,t.type='DidCommMessageRecord'},1535,[14,11,9,7,953,8,942,1012,4,612,626,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,s){var n,o=arguments.length,c=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,s);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(o<3?n(c):o>3?n(t,r,c):n(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,s){t(r,s,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommMessageRepository=void 0;var n=(function(t){_r(_d[2])(o,t);var r,s,n=(r=o,s=e(),function(){var e,t=_r(_d[0])(r);if(s){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),n.call(this,_r(_d[4]).DidCommMessageRecord,e,t)}return _r(_d[5])(o,[{key:"saveAgentMessage",value:function(e,t){var r,s,n,o;return _r(_d[6]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.role,s=t.agentMessage,n=t.associatedRecordId,o=new(_r(_d[4]).DidCommMessageRecord)({message:s.toJSON(),role:r,associatedRecordId:n}),c.next=4,_r(_d[6]).awrap(this.save(e,o));case 4:case"end":return c.stop()}},null,this,null,Promise)}},{key:"saveOrUpdateAgentMessage",value:function(e,t){var r,s,n,o,c;return _r(_d[6]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=(0,_r(_d[7]).parseMessageType)(t.agentMessage.type),s=r.messageName,n=r.protocolName,o=r.protocolMajorVersion,i.next=3,_r(_d[6]).awrap(this.findSingleByQuery(e,{associatedRecordId:t.associatedRecordId,messageName:s,protocolName:n,protocolMajorVersion:String(o)}));case 3:if(!(c=i.sent)){i.next=10;break}return c.message=t.agentMessage.toJSON(),c.role=t.role,i.next=9,_r(_d[6]).awrap(this.update(e,c));case 9:return i.abrupt("return");case 10:return i.next=12,_r(_d[6]).awrap(this.saveAgentMessage(e,t));case 12:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getAgentMessage",value:function(e,t){var r,s,n;return _r(_d[6]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=t.associatedRecordId,s=t.messageClass,o.next=3,_r(_d[6]).awrap(this.getSingleByQuery(e,{associatedRecordId:r,messageName:s.type.messageName,protocolName:s.type.protocolName,protocolMajorVersion:String(s.type.protocolMajorVersion)}));case 3:return n=o.sent,o.abrupt("return",n.getMessageInstance(s));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findAgentMessage",value:function(e,t){var r,s,n,o;return _r(_d[6]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.associatedRecordId,s=t.messageClass,c.next=3,_r(_d[6]).awrap(this.findSingleByQuery(e,{associatedRecordId:r,messageName:s.type.messageName,protocolName:s.type.protocolName,protocolMajorVersion:String(s.type.protocolMajorVersion)}));case 3:return o=c.sent,c.abrupt("return",null!==(n=null===o||void 0===o?void 0:o.getMessageInstance(s))&&void 0!==n?n:null);case 5:case"end":return c.stop()}},null,this,null,Promise)}}]),o})(_r(_d[8]).Repository);n=t([(0,_r(_d[9]).injectable)(),s(0,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[11]).EventEmitter])],n),_e.DidCommMessageRepository=n},1536,[14,11,9,7,1535,8,82,942,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommMessageRole=void 0,(function(o){o.Sender="sender",o.Receiver="receiver"})(e.DidCommMessageRole||(e.DidCommMessageRole={}))},1537,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1538,[1539,1540,1541,1631]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageVersionRecord=void 0;var t=(function(t){r(d[2])(u,t);var n,o,c=(n=u,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t,n,o;return r(d[3])(this,u),(t=c.call(this)).type=u.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.storageVersion=e.storageVersion),t}return r(d[5])(u,[{key:"getTags",value:function(){return this._tags}}]),u})(r(d[6]).BaseRecord);_e.StorageVersionRecord=t,t.type='StorageVersionRecord'},1539,[14,11,9,7,953,8,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,c=arguments.length,i=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(i=(c<3?o(i):c>3?o(e,r,i):o(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageVersionRepository=void 0;var o=(function(e){_r(_d[2])(c,e);var r,n,o=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),o.call(this,_r(_d[4]).StorageVersionRecord,t,e)}return _r(_d[5])(c)})(_r(_d[6]).Repository);o=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],o),_e.StorageVersionRepository=o},1540,[14,11,9,7,1539,8,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t,r=this&&this.__decorate||function(t,r,n,o){var s,i=arguments.length,c=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(c=(i<3?s(c):i>3?s(r,n,c):s(r,n))||c);return i>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageUpdateService=void 0;var s=t=(function(){function r(t,n){_r(_d[0])(this,r),this.logger=t,this.storageVersionRepository=n}return _r(_d[1])(r,[{key:"isUpToDate",value:function(t,r){var n,o,s;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=_r(_d[3]).parseVersionString,i.next=3,_r(_d[2]).awrap(this.getCurrentStorageVersion(t));case 3:return i.t1=i.sent,n=(0,i.t0)(i.t1),o=(0,_r(_d[3]).parseVersionString)(null!==r&&void 0!==r?r:_r(_d[4]).CURRENT_FRAMEWORK_STORAGE_VERSION),s=(0,_r(_d[3]).isFirstVersionEqualToSecond)(n,o)||(0,_r(_d[3]).isFirstVersionHigherThanSecond)(n,o),i.abrupt("return",s);case 8:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getCurrentStorageVersion",value:function(t){var r;return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.getStorageVersionRecord(t));case 2:return r=n.sent,n.abrupt("return",r.storageVersion);case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"setCurrentStorageVersion",value:function(r,n){var o;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return this.logger.debug("Setting current agent storage version to "+n),s.next=3,_r(_d[2]).awrap(this.storageVersionRepository.findById(r,t.STORAGE_VERSION_RECORD_ID));case 3:if(o=s.sent){s.next=10;break}return this.logger.trace('Storage upgrade record does not exist yet. Creating.'),s.next=8,_r(_d[2]).awrap(this.storageVersionRepository.save(r,new(_r(_d[5]).StorageVersionRecord)({id:t.STORAGE_VERSION_RECORD_ID,storageVersion:n})));case 8:s.next=14;break;case 10:return this.logger.trace('Storage upgrade record already exists. Updating.'),o.storageVersion=n,s.next=14,_r(_d[2]).awrap(this.storageVersionRepository.update(r,o));case 14:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getStorageVersionRecord",value:function(r){var n;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[2]).awrap(this.storageVersionRepository.findById(r,t.STORAGE_VERSION_RECORD_ID));case 2:if(n=o.sent){o.next=7;break}return n=new(_r(_d[5]).StorageVersionRecord)({id:t.STORAGE_VERSION_RECORD_ID,storageVersion:_r(_d[4]).INITIAL_STORAGE_VERSION}),o.next=7,_r(_d[2]).awrap(this.storageVersionRepository.save(r,n));case 7:return o.abrupt("return",n);case 8:case"end":return o.stop()}},null,this,null,Promise)}}]),r})();s.STORAGE_VERSION_RECORD_ID='STORAGE_VERSION_RECORD_ID',s=t=r([(0,_r(_d[6]).injectable)(),o(0,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,_r(_d[8]).StorageVersionRepository])],s),e.StorageUpdateService=s},1541,[7,8,82,944,1542,1539,1020,1104,1540]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CURRENT_FRAMEWORK_STORAGE_VERSION=e.supportedUpdates=e.DEFAULT_UPDATE_CONFIG=e.INITIAL_STORAGE_VERSION=void 0,e.INITIAL_STORAGE_VERSION='0.1',e.DEFAULT_UPDATE_CONFIG={v0_1ToV0_2:{mediationRoleUpdateStrategy:'recipientIfEndpoint'}},e.supportedUpdates=[{fromVersion:'0.1',toVersion:'0.2',doUpdate:r(d[0]).updateV0_1ToV0_2},{fromVersion:'0.2',toVersion:'0.3',doUpdate:r(d[1]).updateV0_2ToV0_3},{fromVersion:'0.3',toVersion:'0.3.1',doUpdate:r(d[2]).updateV0_3ToV0_3_1}],e.CURRENT_FRAMEWORK_STORAGE_VERSION=e.supportedUpdates[e.supportedUpdates.length-1].toVersion},1542,[1543,1621,1629]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_1ToV0_2=void 0,e.updateV0_1ToV0_2=function(n,t){return r(d[0]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[0]).awrap((0,r(d[1]).migrateCredentialRecordToV0_2)(n));case 2:return o.next=4,r(d[0]).awrap((0,r(d[2]).migrateMediationRecordToV0_2)(n,t.v0_1ToV0_2));case 4:return o.next=6,r(d[0]).awrap((0,r(d[3]).migrateConnectionRecordToV0_2)(n));case 6:case"end":return o.stop()}},null,null,null,Promise)}},1543,[82,1544,1551,1619]); -__d(function(g,r,_i,a,m,_e,d){"use strict";var e;function t(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=n(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?i.Holder:e.state===r(d[2]).CredentialState.Done?i.Issuer:l.includes(e.state)?i.Holder:i.Issuer}function p(e,t){var n,o,i,l,c,u;return r(d[0]).async(function(f){for(;;)switch(f.prev=f.next){case 0:e.config.logger.debug("Updating indy metadata to use the generic metadata api available to records."),n=t.metadata.data,o=n.requestMetadata,i=n.schemaId,l=n.credentialDefinitionId,c=s(n,["requestMetadata","schemaId","credentialDefinitionId"]),u=new(r(d[5]).Metadata)(c),o&&(e.config.logger.trace("Found top-level 'requestMetadata' key, moving to '"+r(d[6]).CredentialMetadataKeys.IndyRequest+"'"),u.add(r(d[6]).CredentialMetadataKeys.IndyRequest,r(d[7])({},o))),i&&'string'==typeof i&&(e.config.logger.trace("Found top-level 'schemaId' key, moving to '"+r(d[6]).CredentialMetadataKeys.IndyCredential+".schemaId'"),u.add(r(d[6]).CredentialMetadataKeys.IndyCredential,{schemaId:i})),l&&'string'==typeof l&&(e.config.logger.trace("Found top-level 'credentialDefinitionId' key, moving to '"+r(d[6]).CredentialMetadataKeys.IndyCredential+".credentialDefinitionId'"),u.add(r(d[6]).CredentialMetadataKeys.IndyCredential,{credentialDefinitionId:l})),t.metadata=u;case 7:case"end":return f.stop()}},null,null,null,Promise)}function y(e,t){var n;return r(d[0]).async(function(o){for(;;)switch(o.prev=o.next){case 0:e.config.logger.debug("Migrating internal credential record "+t.id+" properties to storage version 0.2"),t.protocolVersion||(e.config.logger.debug("Setting protocolVersion to v1"),t.protocolVersion='v1'),(n=t).credentialId&&(e.config.logger.debug("Migrating indy credentialId "+n.id+" to credentials array"),t.credentials=[{credentialRecordId:n.credentialId,credentialRecordType:'indy'}],delete n.credentialId),e.config.logger.debug("Successfully migrated internal credential record "+t.id+" properties to storage version 0.2");case 5:case"end":return o.stop()}},null,null,null,Promise)}function v(e,n){var o,i,s,l,p,y,v,M,C;return r(d[0]).async(function(b){for(;;)switch(b.prev=b.next){case 0:e.config.logger.debug("Moving didcomm messages from credential record with id "+n.id+" to DidCommMessageRecord"),o=e.dependencyManager.resolve(r(d[4]).DidCommMessageRepository),i=t(u);case 3:if((s=i()).done){b.next=21;break}if(l=s.value,e.config.logger.debug("Starting move of "+l+" from credential record with id "+n.id+" to DIDCommMessageRecord"),!(y=(p=n)[l])){b.next=18;break}return v=f(n),M=c[v][l],C=new(r(d[4]).DidCommMessageRecord)({role:M,associatedRecordId:n.id,message:y}),b.next=14,r(d[0]).awrap(o.save(e.context,C));case 14:e.config.logger.debug("Successfully moved "+l+" from credential record with id "+n.id+" to DIDCommMessageRecord"),delete p[l],b.next=19;break;case 18:e.config.logger.debug("Credential record with id "+n.id+" does not have a "+l+". Not creating a DIDCommMessageRecord");case 19:b.next=3;break;case 21:e.config.logger.debug("Successfully moved didcomm messages from credential record with id "+n.id+" to DIDCommMessageRecord");case 22:case"end":return b.stop()}},null,null,null,Promise)}_e.getCredentialRole=f,_e.updateIndyMetadata=p,_e.migrateInternalCredentialRecordProperties=y,_e.moveDidCommMessages=v},1544,[82,1545,1550,249,1534,1074,1547,4]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).CredentialExchangeRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.CredentialRepository=c},1545,[14,11,9,7,1546,8,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialExchangeRecord=void 0;var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,n,r,c;return _r(_d[3])(this,o),(t=i.call(this)).credentials=[],t.type=o.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,_r(_d[4]).uuid)(),t.createdAt=null!==(r=e.createdAt)&&void 0!==r?r:new Date,t.state=e.state,t.connectionId=e.connectionId,t.threadId=e.threadId,t.protocolVersion=e.protocolVersion,t._tags=null!==(c=e.tags)&&void 0!==c?c:{},t.credentialAttributes=e.credentialAttributes,t.autoAcceptCredential=e.autoAcceptCredential,t.linkedAttachments=e.linkedAttachments,t.revocationNotification=e.revocationNotification,t.errorMessage=e.errorMessage,t.credentials=e.credentials||[]),t}return _r(_d[5])(o,[{key:"getTags",value:function(){var e=this.metadata.get(_r(_d[6]).CredentialMetadataKeys.IndyCredential),t=this.credentials.map(function(e){return e.credentialRecordId});return _r(_d[7])(_r(_d[7])({},this._tags),{threadId:this.threadId,connectionId:this.connectionId,state:this.state,credentialIds:t,indyRevocationRegistryId:null===e||void 0===e?void 0:e.indyRevocationRegistryId,indyCredentialRevocationId:null===e||void 0===e?void 0:e.indyCredentialRevocationId})}},{key:"getCredentialInfo",value:function(){if(!this.credentialAttributes)return null;var e=this.credentialAttributes.reduce(function(e,t){return _r(_d[7])(_r(_d[7])({},e),_r(_d[8])({},t.name,t.value))},{});return new(_r(_d[9]).IndyCredentialView)({claims:e,attachments:this.linkedAttachments,metadata:this.metadata.data})}},{key:"assertProtocolVersion",value:function(e){if(this.protocolVersion!=e)throw new(_r(_d[10]).AriesFrameworkError)("Credential record has invalid protocol version "+this.protocolVersion+". Expected version "+e)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(_r(_d[10]).AriesFrameworkError)("Credential record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertConnection",value:function(e){if(!this.connectionId)throw new(_r(_d[10]).AriesFrameworkError)("Credential record is not associated with any connection. This is often the case with connection-less credential exchange");if(this.connectionId!==e)throw new(_r(_d[10]).AriesFrameworkError)("Credential record is associated with connection '"+this.connectionId+"'. Current connection is '"+e+"'")}}]),o})(_r(_d[11]).BaseRecord);r.type='CredentialRecord',t([(0,_r(_d[12]).Type)(function(){return _r(_d[13]).CredentialPreviewAttribute}),n("design:type",Array)],r.prototype,"credentialAttributes",void 0),t([(0,_r(_d[12]).Type)(function(){return _r(_d[14]).Attachment}),n("design:type",Array)],r.prototype,"linkedAttachments",void 0),_e.CredentialExchangeRecord=r},1546,[14,11,9,7,953,8,1547,4,249,1548,612,1097,627,1549,978]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialMetadataKeys=void 0,(function(t){t.IndyCredential="_internal/indyCredential",t.IndyRequest="_internal/indyRequest"})(e.CredentialMetadataKeys||(e.CredentialMetadataKeys={}))},1547,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredentialView=void 0;var t=r(d[0])(function t(n){var s;r(d[1])(this,t),this.metadata=null!==(s=n.metadata)&&void 0!==s?s:{},this.claims=n.claims,this.attachments=n.attachments});e.IndyCredentialView=t},1548,[8,7]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,p=arguments.length,s=p<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(p<3?o(s):p>3?o(i,n,s):o(i,n))||s);return p>3&&s&&Object.defineProperty(i,n,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialPreviewAttribute=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),this.mimeType='text/plain',i&&(this.name=i.name,this.mimeType=i.mimeType,this.value=i.value)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"name",void 0),t([(0,_r(_d[4]).Expose)({name:'mime-type'}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsMimeType)(),i("design:type",String)],n.prototype,"mimeType",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"value",void 0),e.CredentialPreviewAttribute=n},1549,[7,8,626,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialState=void 0,(function(t){t.ProposalSent="proposal-sent",t.ProposalReceived="proposal-received",t.OfferSent="offer-sent",t.OfferReceived="offer-received",t.Declined="declined",t.RequestSent="request-sent",t.RequestReceived="request-received",t.CredentialIssued="credential-issued",t.CredentialReceived="credential-received",t.Done="done"})(e.CredentialState||(e.CredentialState={}))},1550,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,o){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||o&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=t.length?{done:!0}:{done:!1,value:t[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.")}function n(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r=0;c--)(o=t[c])&&(u=(s<3?o(u):s>3?o(n,r,u):o(n,r))||u);return s>3&&u&&Object.defineProperty(n,r,u),u},o=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},s=this&&this.__param||function(t,n){return function(r,i){n(r,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorService=void 0;var u=(function(){function n(t,r,i,o,s){_r(_d[0])(this,n),this.mediationRepository=t,this.mediatorRoutingRepository=r,this.eventEmitter=i,this.logger=o,this.connectionService=s}return _r(_d[1])(n,[{key:"getRoutingKeys",value:function(t){var n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.findMediatorRoutingRecord(t));case 2:if(!(n=r.sent)){r.next=6;break}return this.logger.debug("Returning mediator routing keys "+n.routingKeys),r.abrupt("return",n.routingKeys);case 6:throw new(_r(_d[3]).AriesFrameworkError)("Mediator has not been initialized yet.");case 7:case"end":return r.stop()}},null,this,null,Promise)}},{key:"processForwardMessage",value:function(t){var n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if((n=t.message).to){i.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('Invalid Message: Missing required attribute "to"');case 3:return i.next=5,_r(_d[2]).awrap(this.mediationRepository.getSingleByRecipientKey(t.agentContext,n.to));case 5:return(r=i.sent).assertReady(),r.assertRole(_r(_d[4]).MediationRole.Mediator),i.abrupt("return",{encryptedMessage:n.message,mediationRecord:r});case 9:case"end":return i.stop()}},null,this,null,Promise)}},{key:"processKeylistUpdateRequest",value:function(n){var r,i,o,s,u,c,d,l,p,y,f;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return r=n.assertReadyConnection(),i=n.message,o=[],h.next=5,_r(_d[2]).awrap(this.mediationRepository.getByConnectionId(n.agentContext,r.id));case 5:return(s=h.sent).assertReady(),s.assertRole(_r(_d[4]).MediationRole.Mediator),u=i.updates.some(function(t){return(0,_r(_d[5]).isDidKey)(t.recipientKey)}),h.next=11,_r(_d[2]).awrap(this.updateUseDidKeysFlag(n.agentContext,r,_r(_d[6]).KeylistUpdateMessage.type.protocolUri,u));case 11:for(c=t(i.updates);!(d=c()).done;)l=d.value,p=new(_r(_d[6]).KeylistUpdated)({action:l.action,recipientKey:l.recipientKey,result:_r(_d[6]).KeylistUpdateResult.NoChange}),y=(0,_r(_d[5]).didKeyToVerkey)(l.recipientKey),l.action===_r(_d[6]).KeylistUpdateAction.add?(s.addRecipientKey(y),p.result=_r(_d[6]).KeylistUpdateResult.Success,o.push(p)):l.action===_r(_d[6]).KeylistUpdateAction.remove&&(f=s.removeRecipientKey(y),p.result=f?_r(_d[6]).KeylistUpdateResult.Success:_r(_d[6]).KeylistUpdateResult.NoChange,o.push(p));return h.next=14,_r(_d[2]).awrap(this.mediationRepository.update(n.agentContext,s));case 14:return h.abrupt("return",new(_r(_d[6]).KeylistUpdateResponseMessage)({keylist:o,threadId:i.threadId}));case 15:case"end":return h.stop()}},null,this,null,Promise)}},{key:"createGrantMediationMessage",value:function(t,n){var r,i;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.assertState(_r(_d[7]).MediationState.Requested),n.assertRole(_r(_d[4]).MediationRole.Mediator),o.next=4,_r(_d[2]).awrap(this.updateState(t,n,_r(_d[7]).MediationState.Granted));case 4:if(r=t.config.useDidKeyInProtocols,o.t0=_r(_d[6]).MediationGrantMessage,o.t1=t.config.endpoints[0],!r){o.next=13;break}return o.next=10,_r(_d[2]).awrap(this.getRoutingKeys(t));case 10:o.t2=o.sent.map(_r(_d[5]).verkeyToDidKey),o.next=16;break;case 13:return o.next=15,_r(_d[2]).awrap(this.getRoutingKeys(t));case 15:o.t2=o.sent;case 16:return o.t3=o.t2,o.t4=n.threadId,o.t5={endpoint:o.t1,routingKeys:o.t3,threadId:o.t4},i=new o.t0(o.t5),o.abrupt("return",{mediationRecord:n,message:i});case 21:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processMediationRequest",value:function(t){var n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.assertReadyConnection(),r=new(_r(_d[8]).MediationRecord)({connectionId:n.id,role:_r(_d[4]).MediationRole.Mediator,state:_r(_d[7]).MediationState.Requested,threadId:t.message.threadId}),i.next=4,_r(_d[2]).awrap(this.mediationRepository.save(t.agentContext,r));case 4:return this.emitStateChangedEvent(t.agentContext,r,null),i.abrupt("return",r);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findById",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.mediationRepository.findById(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.mediationRepository.getById(t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.mediationRepository.getAll(t));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findMediatorRoutingRecord",value:function(t){var n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.mediatorRoutingRepository.findById(t,this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID));case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"createMediatorRoutingRecord",value:function(t){var n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[2]).awrap(t.wallet.createKey({keyType:_r(_d[9]).KeyType.Ed25519}));case 2:return n=i.sent,r=new(_r(_d[10]).MediatorRoutingRecord)({id:this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID,routingKeys:[n.publicKeyBase58]}),i.next=6,_r(_d[2]).awrap(this.mediatorRoutingRepository.save(t,r));case 6:return i.abrupt("return",r);case 7:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.mediationRepository.findByQuery(t,n));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(t,n,r){var i;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.state,n.state=r,o.next=4,_r(_d[2]).awrap(this.mediationRepository.update(t,n));case 4:this.emitStateChangedEvent(t,n,i);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,n,r){var i=_r(_d[11]).JsonTransformer.clone(n);this.eventEmitter.emit(t,{type:_r(_d[12]).RoutingEventTypes.MediationStateChanged,payload:{mediationRecord:i,previousState:r}})}},{key:"updateUseDidKeysFlag",value:function(t,n,r,i){var o,s;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return(s=null!==(o=n.metadata.get(_r(_d[13]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&void 0!==o?o:{})[r]=i,n.metadata.set(_r(_d[13]).ConnectionMetadataKeys.UseDidKeysForProtocol,s),u.next=5,_r(_d[2]).awrap(this.connectionService.update(t,n));case 5:case"end":return u.stop()}},null,this,null,Promise)}}]),n})();u=i([(0,_r(_d[14]).injectable)(),s(3,(0,_r(_d[14]).inject)(_r(_d[15]).InjectionSymbols.Logger)),o("design:paramtypes",[_r(_d[16]).MediationRepository,_r(_d[17]).MediatorRoutingRepository,_r(_d[18]).EventEmitter,Object,_r(_d[19]).ConnectionService])],u),e.MediatorService=u},1554,[7,8,82,612,1512,986,1337,1513,1520,990,1555,626,1509,1522,1020,1104,1525,1556,1105,1426]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1555,[1525,1556,1520,1557]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,c=arguments.length,i=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(i=(c<3?o(i):c>3?o(e,r,i):o(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediatorRoutingRepository=void 0;var o=(function(e){_r(_d[2])(c,e);var r,n,o=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){var r;return _r(_d[3])(this,c),(r=o.call(this,_r(_d[4]).MediatorRoutingRecord,t,e)).MEDIATOR_ROUTING_RECORD_ID='MEDIATOR_ROUTING_RECORD',r}return _r(_d[5])(c)})(_r(_d[6]).Repository);o=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],o),_e.MediatorRoutingRepository=o},1556,[14,11,9,7,1557,8,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediatorRoutingRecord=void 0;var e=(function(e){r(d[2])(c,e);var n,o,u=(n=c,o=t(),function(){var t,e=r(d[0])(n);if(o){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(t){var e,n,o;return r(d[3])(this,c),(e=u.call(this)).type=c.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),e.createdAt=null!==(o=t.createdAt)&&void 0!==o?o:new Date,e.routingKeys=t.routingKeys||[]),e}return r(d[5])(c,[{key:"getTags",value:function(){return this._tags}}]),c})(r(d[6]).BaseRecord);_e.MediatorRoutingRecord=e,e.type='MediatorRoutingRecord'},1557,[14,11,9,7,953,8,1097]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1558,[1559]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1559,[1560,1568]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1560,[1561,1562]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,s,n,r){var i,c=arguments.length,o=c<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(c<3?i(o):c>3?i(s,n,o):i(s,n))||o);return c>3&&o&&Object.defineProperty(s,n,o),o},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)},n=this&&this.__param||function(t,s){return function(n,r){s(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePickupService=void 0;var r=(function(){function t(s,n,r){_r(_d[0])(this,t),this.messageRepository=s,this.dispatcher=n,this.eventEmitter=r,this.registerMessageHandlers()}return _r(_d[1])(t,[{key:"batch",value:function(t){var s,n,r,i,c;return _r(_d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return s=t.assertReadyConnection(),n=t.message,o.next=4,_r(_d[2]).awrap(this.messageRepository.takeFromQueue(s.id,n.batchSize));case 4:return r=o.sent,i=r.map(function(t){return new(_r(_d[3]).BatchMessageMessage)({message:t})}),c=new(_r(_d[3]).BatchMessage)({messages:i}),o.abrupt("return",new(_r(_d[4]).OutboundMessageContext)(c,{agentContext:t.agentContext,connection:s}));case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(t,s){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.messageRepository.add(t,s));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[5]).BatchPickupHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[5]).BatchHandler)(this.eventEmitter))}}]),t})();r=t([(0,_r(_d[6]).injectable)(),n(0,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.MessageRepository)),s("design:paramtypes",[Object,_r(_d[8]).Dispatcher,_r(_d[9]).EventEmitter])],r),e.MessagePickupService=r},1561,[7,8,82,1562,623,1565,1020,1104,1494,1105]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1562,[1563,1564]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,s,r){var c,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,r);else for(var i=e.length-1;i>=0;i--)(c=e[i])&&(o=(n<3?c(o):n>3?c(t,s,o):c(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BatchMessage=_e.BatchMessageMessage=void 0;var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.id=t.id||(0,_r(_d[4]).uuid)(),this.message=t.message)});t([(0,_r(_d[5]).Matches)(_r(_d[6]).MessageIdRegExp),s("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[5]).IsObject)(),s("design:type",Object)],r.prototype,"message",void 0),_e.BatchMessageMessage=r;var c=(function(t){_r(_d[7])(n,t);var s,r,c=(s=n,r=e(),function(){var e,t=_r(_d[0])(s);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t;return _r(_d[3])(this,n),(t=c.call(this)).type=n.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.messages=e.messages),t}return _r(_d[2])(n)})(_r(_d[8]).AgentMessage);c.type=(0,_r(_d[9]).parseMessageType)('https://didcomm.org/messagepickup/1.0/batch'),t([(0,_r(_d[9]).IsValidMessageType)(c.type),s("design:type",Object)],c.prototype,"type",void 0),t([(0,_r(_d[10]).Type)(function(){return r}),(0,_r(_d[5]).IsArray)(),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(r,{each:!0}),(0,_r(_d[10]).Expose)({name:'messages~attach'}),s("design:type",Array)],c.prototype,"messages",void 0),_e.BatchMessage=c},1563,[14,11,8,7,953,662,952,9,949,942,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,c,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(o<3?n(i):o>3?n(t,c,i):n(t,c))||i);return o>3&&i&&Object.defineProperty(t,c,i),i},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BatchPickupMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var c,r,n=(c=o,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.batchSize=e.batchSize),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/messagepickup/1.0/batch-pickup'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),c("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsInt)(),(0,_r(_d[8]).Expose)({name:'batch_size'}),c("design:type",Number)],r.prototype,"batchSize",void 0),_e.BatchPickupMessage=r},1564,[14,11,9,7,8,949,942,662,627]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1565,[1566,1567]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).BatchMessage],this.eventEmitter=n}return r(d[2])(t,[{key:"handle",value:function(t){var n,s=this;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:n=t.message,t.assertReadyConnection(),n.messages.forEach(function(n){s.eventEmitter.emit(t.agentContext,{type:r(d[4]).AgentEventTypes.AgentMessageReceived,payload:{message:n.message,contextCorrelationId:t.agentContext.contextCorrelationId}})});case 4:case"end":return o.stop()}},null,null,null,Promise)}}]),t})();e.BatchHandler=t},1566,[7,1562,8,82,1346]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchPickupHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).BatchPickupMessage],this.messagePickupService=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return t.assertReadyConnection(),n.abrupt("return",this.messagePickupService.batch(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.BatchPickupHandler=t},1567,[7,1562,8,82]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1568,[1569,1514]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,s,n,r){var i,o=arguments.length,c=o<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(c=(o<3?i(c):o>3?i(s,n,c):i(s,n))||c);return o>3&&c&&Object.defineProperty(s,n,c),c},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)},n=this&&this.__param||function(t,s){return function(n,r){s(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.V2MessagePickupService=void 0;var r=(function(){function t(s,n,r){_r(_d[0])(this,t),this.messageRepository=s,this.dispatcher=n,this.mediationRecipientService=r,this.registerMessageHandlers()}return _r(_d[1])(t,[{key:"processStatusRequest",value:function(t){var s,n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=t.assertReadyConnection(),!t.message.recipientKey){r.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('recipient_key parameter not supported');case 3:return r.t0=_r(_d[4]).StatusMessage,r.t1=t.message.threadId,r.next=7,_r(_d[2]).awrap(this.messageRepository.getAvailableMessageCount(s.id));case 7:return r.t2=r.sent,r.t3={threadId:r.t1,messageCount:r.t2},n=new r.t0(r.t3),r.abrupt("return",new(_r(_d[5]).OutboundMessageContext)(n,{agentContext:t.agentContext,connection:s}));case 11:case"end":return r.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(t,s){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.messageRepository.add(t,s));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"processDeliveryRequest",value:function(t){var s,n,r,i,o;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(s=t.assertReadyConnection(),!t.message.recipientKey){c.next=3;break}throw new(_r(_d[3]).AriesFrameworkError)('recipient_key parameter not supported');case 3:return n=t.message,c.next=6,_r(_d[2]).awrap(this.messageRepository.takeFromQueue(s.id,n.limit,!0));case 6:return r=c.sent,i=r.map(function(t){return new(_r(_d[6]).Attachment)({data:{json:t}})}),o=r.length>0?new(_r(_d[4]).MessageDeliveryMessage)({threadId:t.message.threadId,attachments:i}):new(_r(_d[4]).StatusMessage)({threadId:t.message.threadId,messageCount:0}),c.abrupt("return",new(_r(_d[5]).OutboundMessageContext)(o,{agentContext:t.agentContext,connection:s}));case 10:case"end":return c.stop()}},null,this,null,Promise)}},{key:"processMessagesReceived",value:function(t){var s,n,r;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return s=t.assertReadyConnection(),n=t.message,i.next=4,_r(_d[2]).awrap(this.messageRepository.takeFromQueue(s.id,n.messageIdList?n.messageIdList.length:void 0));case 4:return i.t0=_r(_d[4]).StatusMessage,i.t1=t.message.threadId,i.next=8,_r(_d[2]).awrap(this.messageRepository.getAvailableMessageCount(s.id));case 8:return i.t2=i.sent,i.t3={threadId:i.t1,messageCount:i.t2},r=new i.t0(i.t3),i.abrupt("return",new(_r(_d[5]).OutboundMessageContext)(r,{agentContext:t.agentContext,connection:s}));case 12:case"end":return i.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[7]).StatusRequestHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[7]).DeliveryRequestHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[7]).MessagesReceivedHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[7]).StatusHandler)(this.mediationRecipientService)),this.dispatcher.registerMessageHandler(new(_r(_d[7]).MessageDeliveryHandler)(this.mediationRecipientService))}}]),t})();r=t([(0,_r(_d[8]).injectable)(),n(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.MessageRepository)),s("design:paramtypes",[Object,_r(_d[10]).Dispatcher,_r(_d[11]).MediationRecipientService])],r),e.V2MessagePickupService=r},1569,[7,8,82,612,1514,623,978,1570,1020,1104,1494,1553]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1570,[1571,1572,1573,1574,1575]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DeliveryRequestHandler=void 0;var s=(function(){function s(t){r(d[0])(this,s),this.supportedMessages=[r(d[1]).DeliveryRequestMessage],this.messagePickupService=t}return r(d[2])(s,[{key:"handle",value:function(s){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return s.assertReadyConnection(),t.abrupt("return",this.messagePickupService.processDeliveryRequest(s));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),s})();e.DeliveryRequestHandler=s},1571,[7,1514,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageDeliveryHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MessageDeliveryMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){var t,s;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=n.assertReadyConnection(),o.next=3,r(d[3]).awrap(this.mediationRecipientService.processDelivery(n));case 3:if(!(s=o.sent)){o.next=6;break}return o.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:n.agentContext,connection:t}));case 6:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.MessageDeliveryHandler=n},1572,[7,1516,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagesReceivedHandler=void 0;var s=(function(){function s(n){r(d[0])(this,s),this.supportedMessages=[r(d[1]).MessagesReceivedMessage],this.messagePickupService=n}return r(d[2])(s,[{key:"handle",value:function(s){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return s.assertReadyConnection(),n.abrupt("return",this.messagePickupService.processMessagesReceived(s));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),s})();e.MessagesReceivedHandler=s},1573,[7,1514,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).StatusMessage],this.mediatorRecipientService=n}return r(d[2])(t,[{key:"handle",value:function(t){var n,s;return r(d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=t.assertReadyConnection(),u.next=3,r(d[3]).awrap(this.mediatorRecipientService.processStatus(t));case 3:if(!(s=u.sent)){u.next=6;break}return u.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:t.agentContext,connection:n}));case 6:case"end":return u.stop()}},null,this,null,Promise)}}]),t})();e.StatusHandler=t},1574,[7,1514,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusRequestHandler=void 0;var t=(function(){function t(s){r(d[0])(this,t),this.supportedMessages=[r(d[1]).StatusRequestMessage],this.messagePickupService=s}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.assertReadyConnection(),s.abrupt("return",this.messagePickupService.processStatusRequest(t));case 2:case"end":return s.stop()}},null,this,null,Promise)}}]),t})();e.StatusRequestHandler=t},1575,[7,1514,8,82]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var s,o=arguments.length,c=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,i);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(c=(o<3?s(c):o>3?s(n,r,c):s(n,r))||c);return o>3&&c&&Object.defineProperty(n,r,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorApi=void 0;var r=(function(){function t(n,r,i,s,o,c,d,u,h){_r(_d[0])(this,t),this.mediatorService=r,this.messagePickupService=i,this.messageSender=o,this.eventEmitter=c,this.connectionService=u,this.agentContext=d,this.config=h,this.registerMessageHandlers(n)}return _r(_d[1])(t,[{key:"initialize",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return this.agentContext.config.logger.debug('Mediator routing record not loaded yet, retrieving from storage'),t.next=3,_r(_d[2]).awrap(this.mediatorService.findMediatorRoutingRecord(this.agentContext));case 3:if(t.sent){t.next=8;break}return this.agentContext.config.logger.debug('Mediator routing record does not exist yet, creating routing keys and record'),t.next=8,_r(_d[2]).awrap(this.mediatorService.createMediatorRoutingRecord(this.agentContext));case 8:case"end":return t.stop()}},null,this,null,Promise)}},{key:"grantRequestedMediation",value:function(t){var n,r,i,s,o,c;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,_r(_d[2]).awrap(this.mediatorService.getById(this.agentContext,t));case 2:return n=d.sent,d.next=5,_r(_d[2]).awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 5:return r=d.sent,d.next=8,_r(_d[2]).awrap(this.mediatorService.createGrantMediationMessage(this.agentContext,n));case 8:return i=d.sent,s=i.message,o=i.mediationRecord,c=new(_r(_d[3]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:r,associatedRecord:o}),d.next=14,_r(_d[2]).awrap(this.messageSender.sendMessage(c));case 14:return d.abrupt("return",o);case 15:case"end":return d.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(t,n){return this.messagePickupService.queueMessage(t,n)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d[4]).KeylistUpdateHandler)(this.mediatorService)),t.registerMessageHandler(new(_r(_d[4]).ForwardHandler)(this.mediatorService,this.connectionService,this.messageSender)),t.registerMessageHandler(new(_r(_d[5]).BatchPickupHandler)(this.messagePickupService)),t.registerMessageHandler(new(_r(_d[5]).BatchHandler)(this.eventEmitter)),t.registerMessageHandler(new(_r(_d[6]).MediationRequestHandler)(this.mediatorService,this.config))}}]),t})();r=t([(0,_r(_d[7]).injectable)(),n("design:paramtypes",[_r(_d[8]).Dispatcher,_r(_d[9]).MediatorService,_r(_d[10]).MessagePickupService,_r(_d[10]).V2MessagePickupService,_r(_d[11]).MessageSender,_r(_d[12]).EventEmitter,_r(_d[13]).AgentContext,_r(_d[14]).ConnectionService,_r(_d[15]).MediatorModuleConfig])],r),e.MediatorApi=r},1576,[7,8,82,623,1577,1565,1583,1020,1494,1554,1558,1345,1105,1391,1466,1584]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1577,[1578,1579,1580,1581,1582,1583]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForwardHandler=void 0;var n=(function(){function n(t,s,c){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ForwardMessage],this.mediatorService=t,this.connectionService=s,this.messageSender=c}return r(d[2])(n,[{key:"handle",value:function(n){var t,s,c,o;return r(d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[3]).awrap(this.mediatorService.processForwardMessage(n));case 2:return t=u.sent,s=t.encryptedMessage,c=t.mediationRecord,u.next=7,r(d[3]).awrap(this.connectionService.getById(n.agentContext,c.connectionId));case 7:return o=u.sent,u.next=10,r(d[3]).awrap(this.messageSender.sendPackage(n.agentContext,{connection:o,encryptedMessage:s}));case 10:case"end":return u.stop()}},null,this,null,Promise)}}]),n})();e.ForwardHandler=n},1578,[7,1337,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeylistUpdateHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).KeylistUpdateMessage],this.mediatorService=n}return r(d[2])(t,[{key:"handle",value:function(t){var n,s;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.assertReadyConnection(),o.next=3,r(d[3]).awrap(this.mediatorService.processKeylistUpdateRequest(t));case 3:return s=o.sent,o.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:t.agentContext,connection:n}));case 5:case"end":return o.stop()}},null,this,null,Promise)}}]),t})();e.KeylistUpdateHandler=t},1579,[7,1337,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeylistUpdateResponseHandler=void 0;var t=(function(){function t(s){r(d[0])(this,t),this.supportedMessages=[r(d[1]).KeylistUpdateResponseMessage],this.mediationRecipientService=s}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return t.assertReadyConnection(),s.next=3,r(d[3]).awrap(this.mediationRecipientService.processKeylistUpdateResults(t));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this,null,Promise)}}]),t})();e.KeylistUpdateResponseHandler=t},1580,[7,1337,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediationDenyHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MediationDenyMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.next=3,r(d[3]).awrap(this.mediationRecipientService.processMediationDeny(n));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.MediationDenyHandler=n},1581,[7,1337,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediationGrantHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MediationGrantMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.next=3,r(d[3]).awrap(this.mediationRecipientService.processMediationGrant(n));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.MediationGrantHandler=n},1582,[7,1337,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediationRequestHandler=void 0;var t=(function(){function t(n,s){r(d[0])(this,t),this.supportedMessages=[r(d[1]).MediationRequestMessage],this.mediatorService=n,this.mediatorModuleConfig=s}return r(d[2])(t,[{key:"handle",value:function(t){var n,s,o,u;return r(d[3]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=t.assertReadyConnection(),c.next=3,r(d[3]).awrap(this.mediatorService.processMediationRequest(t));case 3:if(s=c.sent,!this.mediatorModuleConfig.autoAcceptMediationRequests){c.next=10;break}return c.next=7,r(d[3]).awrap(this.mediatorService.createGrantMediationMessage(t.agentContext,s));case 7:return o=c.sent,u=o.message,c.abrupt("return",new(r(d[4]).OutboundMessageContext)(u,{agentContext:t.agentContext,connection:n,associatedRecord:s}));case 10:case"end":return c.stop()}},null,this,null,Promise)}}]),t})();e.MediationRequestHandler=t},1583,[7,1343,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(t,[{key:"autoAcceptMediationRequests",get:function(){var t;return null!==(t=this.options.autoAcceptMediationRequests)&&void 0!==t&&t}}]),t})();e.MediatorModuleConfig=t},1584,[7,8]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";var e=this&&this.__decorate||function(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},t=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.RecipientApi=void 0;var i=(function(){function e(t,n,i,r,s,o,c,u,d,p,l,h,f){_r(_d[0])(this,e),this.stopMessagePickup$=new(_r(_d[1]).Subject),this.connectionService=i,this.dids=r,this.mediationRecipientService=n,this.messageSender=s,this.eventEmitter=o,this.logger=p,this.discoverFeaturesApi=c,this.mediationRepository=u,this.routingService=d,this.agentContext=l,this.stop$=h,this.config=f,this.registerMessageHandlers(t)}return _r(_d[2])(e,[{key:"initialize",value:function(){var e,t,n,i,r,s=this;return _r(_d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(e=this.agentContext.config,t=e.defaultMediatorId,n=e.clearDefaultMediator,!t){o.next=9;break}return o.next=4,_r(_d[3]).awrap(this.mediationRecipientService.getById(this.agentContext,t));case 4:return i=o.sent,o.next=7,_r(_d[3]).awrap(this.mediationRecipientService.setDefaultMediator(this.agentContext,i));case 7:o.next=12;break;case 9:if(!n){o.next=12;break}return o.next=12,_r(_d[3]).awrap(this.mediationRecipientService.clearDefaultMediator(this.agentContext));case 12:return o.next=14,_r(_d[3]).awrap(this.findDefaultMediator());case 14:(r=o.sent)&&this.initiateMessagePickup(r).catch(function(e){s.logger.warn("Error initiating message pickup with mediator "+r.id,{error:e})});case 16:case"end":return o.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(e,t){var n,i;return _r(_d[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return n=null!==t&&void 0!==t?t:this.config.mediatorPickupStrategy,i=n===_r(_d[4]).MediatorPickupStrategy.Implicit?{schemes:['wss','ws'],restrictive:!0}:void 0,r.next=4,_r(_d[3]).awrap(this.messageSender.sendMessage(e,{transportPriority:i}));case 4:case"end":return r.stop()}},null,this,null,Promise)}},{key:"openMediationWebSocket",value:function(e){var t,n,i,r,s,o,c;return _r(_d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[3]).awrap(this.connectionService.getById(this.agentContext,e.connectionId));case 2:return t=u.sent,u.next=5,_r(_d[3]).awrap(this.connectionService.createTrustPing(this.agentContext,t,{responseRequested:!1}));case 5:if(n=u.sent,i=n.message,r=n.connectionRecord,s=['ws','wss'],u.t0=r.theirDid,!u.t0){u.next=14;break}return u.next=13,_r(_d[3]).awrap(this.dids.resolveDidDocument(r.theirDid));case 13:u.t0=u.sent;case 14:if(o=u.t0,c=o&&(null===o||void 0===o?void 0:o.didCommServices),c&&c.some(function(e){return s.includes(e.protocolScheme)})){u.next=19;break}throw new(_r(_d[5]).AriesFrameworkError)('Cannot open websocket to connection without websocket service endpoint');case 19:return u.next=21,_r(_d[3]).awrap(this.messageSender.sendMessage(new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:r}),{transportPriority:{schemes:s,restrictive:!0}}));case 21:case"end":return u.stop()}},null,this,null,Promise)}},{key:"openWebSocketAndPickUp",value:function(e,t){var n,i,r,s,o,c=this;return _r(_d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=this.config,i=n.baseMediatorReconnectionIntervalMs,r=n.maximumMediatorReconnectionIntervalMs,s=i,o=(0,_r(_d[1]).merge)(this.stop$,this.stopMessagePickup$).pipe(),this.eventEmitter.observable(_r(_d[7]).TransportEventTypes.OutboundWebSocketOpenedEvent).pipe((0,_r(_d[8]).takeUntil)(o),(0,_r(_d[8]).filter)(function(t){return t.payload.connectionId===e.connectionId})).subscribe(function(){s=i}),this.eventEmitter.observable(_r(_d[7]).TransportEventTypes.OutboundWebSocketClosedEvent).pipe((0,_r(_d[8]).takeUntil)(o),(0,_r(_d[8]).filter)(function(t){return t.payload.connectionId===e.connectionId}),(0,_r(_d[8]).throttleTime)(s),(0,_r(_d[8]).delayWhen)(function(){return(0,_r(_d[1]).timer)(s)}),(0,_r(_d[8]).tap)(function(){s=Math.min(2*s,r)})).subscribe({next:function(){return _r(_d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(c.logger.debug("Websocket connection to mediator with connectionId '"+e.connectionId+"' is closed, attempting to reconnect..."),n.prev=1,t!==_r(_d[4]).MediatorPickupStrategy.PickUpV2){n.next=7;break}return n.next=5,_r(_d[3]).awrap(c.sendStatusRequest({mediatorId:e.id}));case 5:n.next=9;break;case 7:return n.next=9,_r(_d[3]).awrap(c.openMediationWebSocket(e));case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),c.logger.warn('Unable to re-open websocket connection to mediator',{error:n.t0});case 14:case"end":return n.stop()}},null,null,[[1,11]],Promise)},complete:function(){return c.logger.info("Stopping pickup of messages from mediator '"+e.id+"'")}}),u.prev=5,t!==_r(_d[4]).MediatorPickupStrategy.Implicit){u.next=9;break}return u.next=9,_r(_d[3]).awrap(this.openMediationWebSocket(e));case 9:u.next=14;break;case 11:u.prev=11,u.t0=u.catch(5),this.logger.warn('Unable to open websocket connection to mediator',{error:u.t0});case 14:case"end":return u.stop()}},null,this,[[5,11]],Promise)}},{key:"initiateMessagePickup",value:function(e,t){var n,i,r,s,o,c,u=this;return _r(_d[3]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(n=this.config.mediatorPollingInterval,null===e||void 0===e){d.next=5;break}d.t0=e,d.next=8;break;case 5:return d.next=7,_r(_d[3]).awrap(this.findDefaultMediator());case 7:d.t0=d.sent;case 8:if(i=d.t0){d.next=11;break}throw new(_r(_d[5]).AriesFrameworkError)('There is no mediator to pickup messages from');case 11:if(null===t||void 0===t){d.next=15;break}d.t1=t,d.next=18;break;case 15:return d.next=17,_r(_d[3]).awrap(this.getPickupStrategyForMediator(i));case 17:d.t1=d.sent;case 18:return r=d.t1,d.next=21,_r(_d[3]).awrap(this.connectionService.getById(this.agentContext,i.connectionId));case 21:s=d.sent,d.t2=r,d.next=d.t2===_r(_d[4]).MediatorPickupStrategy.PickUpV2?25:d.t2===_r(_d[4]).MediatorPickupStrategy.PickUpV1?31:d.t2===_r(_d[4]).MediatorPickupStrategy.Implicit?35:39;break;case 25:return this.logger.info("Starting pickup of messages from mediator '"+i.id+"'"),d.next=28,_r(_d[3]).awrap(this.openWebSocketAndPickUp(i,r));case 28:return d.next=30,_r(_d[3]).awrap(this.sendStatusRequest({mediatorId:i.id}));case 30:return d.abrupt("break",40);case 31:return o=(0,_r(_d[1]).merge)(this.stop$,this.stopMessagePickup$).pipe(),this.logger.info("Starting explicit (batch) pickup of messages from mediator '"+i.id+"'"),c=(0,_r(_d[1]).interval)(n).pipe((0,_r(_d[8]).takeUntil)(o)).subscribe({next:function(){return _r(_d[3]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_r(_d[3]).awrap(u.pickupMessages(s));case 2:case"end":return e.stop()}},null,null,null,Promise)},complete:function(){return u.logger.info("Stopping pickup of messages from mediator '"+i.id+"'")}}),d.abrupt("return",c);case 35:return this.logger.info("Starting implicit pickup of messages from mediator '"+i.id+"'"),d.next=38,_r(_d[3]).awrap(this.openWebSocketAndPickUp(i,r));case 38:return d.abrupt("break",40);case 39:this.logger.info("Skipping pickup of messages from mediator '"+i.id+"' due to pickup strategy none");case 40:case"end":return d.stop()}},null,this,null,Promise)}},{key:"stopMessagePickup",value:function(){return _r(_d[3]).async(function(e){for(;;)switch(e.prev=e.next){case 0:this.stopMessagePickup$.next(!0);case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"sendStatusRequest",value:function(e){var t,n,i;return _r(_d[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[3]).awrap(this.mediationRecipientService.getById(this.agentContext,e.mediatorId));case 2:return t=r.sent,r.next=5,_r(_d[3]).awrap(this.mediationRecipientService.createStatusRequest(t,{recipientKey:e.recipientKey}));case 5:return n=r.sent,r.next=8,_r(_d[3]).awrap(this.connectionService.getById(this.agentContext,t.connectionId));case 8:return i=r.sent,r.abrupt("return",this.messageSender.sendMessage(new(_r(_d[6]).OutboundMessageContext)(n,{agentContext:this.agentContext,connection:i})));case 10:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getPickupStrategyForMediator",value:function(e){var t,n,i,r,s,o;return _r(_d[3]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=null!==(t=e.pickupStrategy)&&void 0!==t?t:this.config.mediatorPickupStrategy){c.next=16;break}return c.next=4,_r(_d[3]).awrap(this.discoverFeaturesApi.queryFeatures({connectionId:e.connectionId,protocolVersion:'v1',queries:[{featureType:'protocol',match:_r(_d[9]).StatusMessage.type.protocolUri}],awaitDisclosures:!0}));case 4:if(s=c.sent,!(null===(n=s.features)||void 0===n?void 0:n.find(function(e){return e.id===_r(_d[9]).StatusMessage.type.protocolUri}))){c.next=9;break}r=_r(_d[4]).MediatorPickupStrategy.PickUpV2,c.next=13;break;case 9:return c.next=11,_r(_d[3]).awrap(this.discoverFeaturesApi.queryFeatures({connectionId:e.connectionId,protocolVersion:'v1',queries:[{featureType:'protocol',match:_r(_d[9]).BatchPickupMessage.type.protocolUri}],awaitDisclosures:!0}));case 11:o=c.sent,r=(null===(i=o.features)||void 0===i?void 0:i.find(function(e){return e.id===_r(_d[9]).BatchPickupMessage.type.protocolUri}))?_r(_d[4]).MediatorPickupStrategy.PickUpV1:_r(_d[4]).MediatorPickupStrategy.Implicit;case 13:return e.pickupStrategy=r,c.next=16,_r(_d[3]).awrap(this.mediationRepository.update(this.agentContext,e));case 16:return c.abrupt("return",r);case 17:case"end":return c.stop()}},null,this,null,Promise)}},{key:"discoverMediation",value:function(){return _r(_d[3]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mediationRecipientService.discoverMediation(this.agentContext));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"pickupMessages",value:function(e,t){var n,i;return _r(_d[3]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return e.assertReady(),n=t===_r(_d[4]).MediatorPickupStrategy.PickUpV2?new(_r(_d[9]).StatusRequestMessage)({}):new(_r(_d[9]).BatchPickupMessage)({batchSize:10}),i=new(_r(_d[6]).OutboundMessageContext)(n,{agentContext:this.agentContext,connection:e}),r.next=5,_r(_d[3]).awrap(this.sendMessage(i,t));case 5:case"end":return r.stop()}},null,this,null,Promise)}},{key:"setDefaultMediator",value:function(e){return _r(_d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.mediationRecipientService.setDefaultMediator(this.agentContext,e));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"requestMediation",value:function(e){var t,n,i,r;return _r(_d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[3]).awrap(this.mediationRecipientService.createRequest(this.agentContext,e));case 2:return t=s.sent,n=t.mediationRecord,i=t.message,r=new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:e}),s.next=8,_r(_d[3]).awrap(this.sendMessage(r));case 8:return s.abrupt("return",n);case 9:case"end":return s.stop()}},null,this,null,Promise)}},{key:"notifyKeylistUpdate",value:function(e,t,n){var i,r,s,o,c;return _r(_d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return r=this.agentContext.config.useDidKeyInProtocols,(s=e.metadata.get(_r(_d[10]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&(r=null!==(i=s[_r(_d[11]).KeylistUpdateMessage.type.protocolUri])&&void 0!==i?i:r),o=this.mediationRecipientService.createKeylistUpdateMessage([new(_r(_d[11]).KeylistUpdate)({action:null!==n&&void 0!==n?n:_r(_d[11]).KeylistUpdateAction.add,recipientKey:r?(0,_r(_d[12]).verkeyToDidKey)(t):t})]),c=new(_r(_d[6]).OutboundMessageContext)(o,{agentContext:this.agentContext,connection:e}),u.next=7,_r(_d[3]).awrap(this.sendMessage(c));case 7:case"end":return u.stop()}},null,this,null,Promise)}},{key:"findByConnectionId",value:function(e){return _r(_d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[3]).awrap(this.mediationRecipientService.findByConnectionId(this.agentContext,e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getMediators",value:function(){return _r(_d[3]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_r(_d[3]).awrap(this.mediationRecipientService.getMediators(this.agentContext));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findDefaultMediator",value:function(){return _r(_d[3]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mediationRecipientService.findDefaultMediator(this.agentContext));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findDefaultMediatorConnection",value:function(){var e;return _r(_d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[3]).awrap(this.findDefaultMediator());case 2:if(!(e=t.sent)){t.next=5;break}return t.abrupt("return",this.connectionService.getById(this.agentContext,e.connectionId));case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}},null,this,null,Promise)}},{key:"requestAndAwaitGrant",value:function(e){var t,n,i,r,s,o,c,u,d=arguments;return _r(_d[3]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=d.length>1&&void 0!==d[1]?d[1]:1e4,p.next=3,_r(_d[3]).awrap(this.mediationRecipientService.createRequest(this.agentContext,e));case 3:return n=p.sent,i=n.mediationRecord,r=n.message,s=this.eventEmitter.observable(_r(_d[13]).RoutingEventTypes.MediationStateChanged),o=new(_r(_d[1]).ReplaySubject)(1),s.pipe((0,_r(_d[14]).filterContextCorrelationId)(this.agentContext.contextCorrelationId),(0,_r(_d[8]).filter)(function(e){return e.payload.mediationRecord.id===i.id}),(0,_r(_d[8]).filter)(function(e){return e.payload.previousState===_r(_d[15]).MediationState.Requested}),(0,_r(_d[8]).filter)(function(e){return e.payload.mediationRecord.state===_r(_d[15]).MediationState.Granted}),(0,_r(_d[8]).first)(),(0,_r(_d[8]).timeout)(t)).subscribe(o),c=new(_r(_d[6]).OutboundMessageContext)(r,{agentContext:this.agentContext,connection:e,associatedRecord:i}),p.next=12,_r(_d[3]).awrap(this.sendMessage(c));case 12:return p.next=14,_r(_d[3]).awrap((0,_r(_d[1]).firstValueFrom)(o));case 14:return u=p.sent,p.abrupt("return",u.payload.mediationRecord);case 16:case"end":return p.stop()}},null,this,null,Promise)}},{key:"provision",value:function(e){var t;return _r(_d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return this.logger.debug('Connection completed, requesting mediation'),n.next=3,_r(_d[3]).awrap(this.findByConnectionId(e.id));case 3:if(t=n.sent){n.next=15;break}return this.logger.info("Requesting mediation for connection "+e.id),n.next=8,_r(_d[3]).awrap(this.requestAndAwaitGrant(e,6e4));case 8:return t=n.sent,this.logger.debug('Mediation granted, setting as default mediator'),n.next=12,_r(_d[3]).awrap(this.setDefaultMediator(t));case 12:this.logger.debug('Default mediator set'),n.next=16;break;case 15:this.logger.debug("Mediator invitation has already been "+(t.isReady?'granted':'requested'));case 16:return n.abrupt("return",t);case 17:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getRouting",value:function(e){return _r(_d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.routingService.getRouting(this.agentContext,e));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[16]).KeylistUpdateResponseHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[17]).MediationGrantHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[18]).MediationDenyHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[19]).StatusHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[19]).MessageDeliveryHandler)(this.mediationRecipientService))}}]),e})();i=e([(0,_r(_d[20]).injectable)(),n(9,(0,_r(_d[20]).inject)(_r(_d[21]).InjectionSymbols.Logger)),n(11,(0,_r(_d[20]).inject)(_r(_d[21]).InjectionSymbols.Stop$)),t("design:paramtypes",[_r(_d[22]).Dispatcher,_r(_d[23]).MediationRecipientService,_r(_d[24]).ConnectionService,_r(_d[25]).DidsApi,_r(_d[26]).MessageSender,_r(_d[27]).EventEmitter,_r(_d[28]).DiscoverFeaturesApi,_r(_d[29]).MediationRepository,_r(_d[30]).RoutingService,Object,_r(_d[31]).AgentContext,_r(_d[1]).Subject,_r(_d[32]).RecipientModuleConfig])],i),_e.RecipientApi=i},1585,[7,1106,8,82,1521,612,623,1586,1329,1558,1522,1337,986,1509,1346,1513,1580,1582,1581,1570,1020,1104,1494,1510,1466,1420,1345,1105,1593,1555,1508,1391,1526]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1586,[1587,1588,1589,1591,1592]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new B(i||[]);return c(s,"_invoke",{value:O(t,o,l)}),s}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v={};function w(){}function x(){}function b(){}var E={};h(E,s,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(R([])));k&&k!==o&&i.call(k,s)&&(E=k);var S=b.prototype=w.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,u,s,l){var f=y(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function O(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=j(s,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=y(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var c=y(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,v;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function T(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function R(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),T(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;T(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:R(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.Repository=void 0;var n=(function(){function n(t,o,i){r(d[0])(this,n),this.storageService=o,this.recordClass=t,this.eventEmitter=i}return r(d[1])(n,[{key:"save",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.storageService.save(n,o));case 2:i=r(d[2]).JsonTransformer.clone(o),this.eventEmitter.emit(n,{type:r(d[3]).RepositoryEventTypes.RecordSaved,payload:{record:i}});case 4:case"end":return c.stop()}},null,this,null,Promise)}},{key:"update",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.storageService.update(n,o));case 2:i=r(d[2]).JsonTransformer.clone(o),this.eventEmitter.emit(n,{type:r(d[3]).RepositoryEventTypes.RecordUpdated,payload:{record:i}});case 4:case"end":return c.stop()}},null,this,null,Promise)}},{key:"delete",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.storageService.delete(n,o));case 2:i=r(d[2]).JsonTransformer.clone(o),this.eventEmitter.emit(n,{type:r(d[3]).RepositoryEventTypes.RecordDeleted,payload:{record:i}});case 4:case"end":return c.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(n,o){return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.storageService.deleteById(n,this.recordClass,o));case 2:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getById",value:function(n,o){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.storageService.getById(n,this.recordClass,o));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findById",value:function(n,o){return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,t().awrap(this.storageService.getById(n,this.recordClass,o));case 3:return i.abrupt("return",i.sent);case 6:if(i.prev=6,i.t0=i.catch(0),!(i.t0 instanceof r(d[4]).RecordNotFoundError)){i.next=10;break}return i.abrupt("return",null);case 10:throw i.t0;case 11:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"getAll",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.storageService.getAll(n,this.recordClass));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByQuery",value:function(n,o){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.storageService.findByQuery(n,this.recordClass,o));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findSingleByQuery",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.findByQuery(n,o));case 2:if(!((i=c.sent).length>1)){c.next=5;break}throw new(r(d[4]).RecordDuplicateError)("Multiple records found for given query '"+JSON.stringify(o)+"'",{recordType:this.recordClass.type});case 5:if(!(i.length<1)){c.next=7;break}return c.abrupt("return",null);case 7:return c.abrupt("return",i[0]);case 8:case"end":return c.stop()}},null,this,null,Promise)}},{key:"getSingleByQuery",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(this.findSingleByQuery(n,o));case 2:if(i=c.sent){c.next=5;break}throw new(r(d[4]).RecordNotFoundError)("No record found for given query '"+JSON.stringify(o)+"'",{recordType:this.recordClass.type});case 5:return c.abrupt("return",i);case 6:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.Repository=n},1101,[7,8,625,1102,611]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RepositoryEventTypes=void 0,(function(o){o.RecordSaved="RecordSaved",o.RecordUpdated="RecordUpdated",o.RecordDeleted="RecordDeleted"})(e.RepositoryEventTypes||(e.RepositoryEventTypes={}))},1102,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DID_COMM_TRANSPORT_QUEUE=e.InjectionSymbols=void 0,e.InjectionSymbols={MessageRepository:Symbol('MessageRepository'),StorageService:Symbol('StorageService'),Logger:Symbol('Logger'),AgentContextProvider:Symbol('AgentContextProvider'),AgentDependencies:Symbol('AgentDependencies'),Stop$:Symbol('Stop$'),FileSystem:Symbol('FileSystem'),Wallet:Symbol('Wallet')},e.DID_COMM_TRANSPORT_QUEUE='didcomm:transport/queue'},1103,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,o){var r,c=arguments.length,f=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,n,i,o);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(f=(c<3?r(f):c>3?r(n,i,f):r(n,i))||f);return c>3&&f&&Object.defineProperty(n,i,f),f},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},i=this&&this.__param||function(t,n){return function(i,o){n(i,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var o=(function(){function t(n,i){_r(_d[0])(this,t),this.eventEmitter=new n.EventEmitterClass,this.stop$=i}return _r(_d[1])(t,[{key:"emit",value:function(t,n){this.eventEmitter.emit(n.type,_r(_d[2])(_r(_d[2])({},n),{metadata:{contextCorrelationId:t.contextCorrelationId}}))}},{key:"on",value:function(t,n){this.eventEmitter.on(t,n)}},{key:"off",value:function(t,n){this.eventEmitter.off(t,n)}},{key:"observable",value:function(t){var n=this;return(0,_r(_d[3]).fromEventPattern)(function(i){return n.on(t,i)},function(i){return n.off(t,i)}).pipe((0,_r(_d[4]).takeUntil)(this.stop$))}}]),t})();o=t([(0,_r(_d[5]).injectable)(),i(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.AgentDependencies)),i(1,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Stop$)),n("design:paramtypes",[Object,_r(_d[3]).Subject])],o),e.EventEmitter=o},1104,[7,8,4,1105,1328,1019,1103]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u),Object.defineProperty(t,o,{enumerable:!0,get:function(){return n[u]}})}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),n=this&&this.__exportStar||function(n,u){for(var o in n)"default"===o||Object.prototype.hasOwnProperty.call(u,o)||t(u,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=void 0,Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return r(d[0]).Observable}}),Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return r(d[1]).ConnectableObservable}}),Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return r(d[2]).observable}}),Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return r(d[3]).animationFrames}}),Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return r(d[4]).Subject}}),Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return r(d[5]).BehaviorSubject}}),Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return r(d[6]).ReplaySubject}}),Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return r(d[7]).AsyncSubject}}),Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return r(d[8]).asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return r(d[8]).asapScheduler}}),Object.defineProperty(e,"async",{enumerable:!0,get:function(){return r(d[9]).async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return r(d[9]).asyncScheduler}}),Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return r(d[10]).queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return r(d[10]).queueScheduler}}),Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return r(d[11]).animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return r(d[11]).animationFrameScheduler}}),Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return r(d[12]).VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return r(d[12]).VirtualAction}}),Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return r(d[13]).Scheduler}}),Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return r(d[14]).Subscription}}),Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return r(d[15]).Subscriber}}),Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return r(d[16]).Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return r(d[16]).NotificationKind}}),Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return r(d[17]).pipe}}),Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(d[18]).noop}}),Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(d[19]).identity}}),Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return r(d[20]).isObservable}}),Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return r(d[21]).lastValueFrom}}),Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return r(d[22]).firstValueFrom}}),Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return r(d[23]).ArgumentOutOfRangeError}}),Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return r(d[24]).EmptyError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return r(d[25]).NotFoundError}}),Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return r(d[26]).ObjectUnsubscribedError}}),Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return r(d[27]).SequenceError}}),Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return r(d[28]).TimeoutError}}),Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return r(d[29]).UnsubscriptionError}}),Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return r(d[30]).bindCallback}}),Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return r(d[31]).bindNodeCallback}}),Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return r(d[32]).combineLatest}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return r(d[33]).concat}}),Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return r(d[34]).connectable}}),Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return r(d[35]).defer}}),Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return r(d[36]).empty}}),Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return r(d[37]).forkJoin}}),Object.defineProperty(e,"from",{enumerable:!0,get:function(){return r(d[38]).from}}),Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return r(d[39]).fromEvent}}),Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return r(d[40]).fromEventPattern}}),Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return r(d[41]).generate}}),Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return r(d[42]).iif}}),Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(d[43]).interval}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return r(d[44]).merge}}),Object.defineProperty(e,"never",{enumerable:!0,get:function(){return r(d[45]).never}}),Object.defineProperty(e,"of",{enumerable:!0,get:function(){return r(d[46]).of}}),Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return r(d[47]).onErrorResumeNext}}),Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return r(d[48]).pairs}}),Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return r(d[49]).partition}}),Object.defineProperty(e,"race",{enumerable:!0,get:function(){return r(d[50]).race}}),Object.defineProperty(e,"range",{enumerable:!0,get:function(){return r(d[51]).range}}),Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return r(d[52]).throwError}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return r(d[53]).timer}}),Object.defineProperty(e,"using",{enumerable:!0,get:function(){return r(d[54]).using}}),Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return r(d[55]).zip}}),Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return r(d[56]).scheduled}}),Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return r(d[36]).EMPTY}}),Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return r(d[45]).NEVER}}),n(r(d[57]),e),Object.defineProperty(e,"config",{enumerable:!0,get:function(){return r(d[58]).config}}),Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return r(d[59]).audit}}),Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return r(d[60]).auditTime}}),Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return r(d[61]).buffer}}),Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return r(d[62]).bufferCount}}),Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return r(d[63]).bufferTime}}),Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return r(d[64]).bufferToggle}}),Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return r(d[65]).bufferWhen}}),Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return r(d[66]).catchError}}),Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return r(d[67]).combineAll}}),Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return r(d[68]).combineLatestAll}}),Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return r(d[69]).combineLatestWith}}),Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return r(d[70]).concatAll}}),Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return r(d[71]).concatMap}}),Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return r(d[72]).concatMapTo}}),Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return r(d[73]).concatWith}}),Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return r(d[74]).connect}}),Object.defineProperty(e,"count",{enumerable:!0,get:function(){return r(d[75]).count}}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(d[76]).debounce}}),Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return r(d[77]).debounceTime}}),Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return r(d[78]).defaultIfEmpty}}),Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return r(d[79]).delay}}),Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return r(d[80]).delayWhen}}),Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return r(d[81]).dematerialize}}),Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return r(d[82]).distinct}}),Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return r(d[83]).distinctUntilChanged}}),Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return r(d[84]).distinctUntilKeyChanged}}),Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return r(d[85]).elementAt}}),Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return r(d[86]).endWith}}),Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(d[87]).every}}),Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return r(d[88]).exhaust}}),Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return r(d[89]).exhaustAll}}),Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return r(d[90]).exhaustMap}}),Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return r(d[91]).expand}}),Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(d[92]).filter}}),Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return r(d[93]).finalize}}),Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(d[94]).find}}),Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(d[95]).findIndex}}),Object.defineProperty(e,"first",{enumerable:!0,get:function(){return r(d[96]).first}}),Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(d[97]).groupBy}}),Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return r(d[98]).ignoreElements}}),Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(d[99]).isEmpty}}),Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(d[100]).last}}),Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(d[101]).map}}),Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return r(d[102]).mapTo}}),Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return r(d[103]).materialize}}),Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(d[104]).max}}),Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return r(d[105]).mergeAll}}),Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return r(d[106]).flatMap}}),Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return r(d[107]).mergeMap}}),Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return r(d[108]).mergeMapTo}}),Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return r(d[109]).mergeScan}}),Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return r(d[110]).mergeWith}}),Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(d[111]).min}}),Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return r(d[112]).multicast}}),Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return r(d[113]).observeOn}}),Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return r(d[114]).pairwise}}),Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return r(d[115]).pluck}}),Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return r(d[116]).publish}}),Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return r(d[117]).publishBehavior}}),Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return r(d[118]).publishLast}}),Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return r(d[119]).publishReplay}}),Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return r(d[120]).raceWith}}),Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d[121]).reduce}}),Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return r(d[122]).repeat}}),Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return r(d[123]).repeatWhen}}),Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return r(d[124]).retry}}),Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return r(d[125]).retryWhen}}),Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return r(d[126]).refCount}}),Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return r(d[127]).sample}}),Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return r(d[128]).sampleTime}}),Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return r(d[129]).scan}}),Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return r(d[130]).sequenceEqual}}),Object.defineProperty(e,"share",{enumerable:!0,get:function(){return r(d[131]).share}}),Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return r(d[132]).shareReplay}}),Object.defineProperty(e,"single",{enumerable:!0,get:function(){return r(d[133]).single}}),Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return r(d[134]).skip}}),Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return r(d[135]).skipLast}}),Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return r(d[136]).skipUntil}}),Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return r(d[137]).skipWhile}}),Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return r(d[138]).startWith}}),Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return r(d[139]).subscribeOn}}),Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return r(d[140]).switchAll}}),Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return r(d[141]).switchMap}}),Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return r(d[142]).switchMapTo}}),Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return r(d[143]).switchScan}}),Object.defineProperty(e,"take",{enumerable:!0,get:function(){return r(d[144]).take}}),Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return r(d[145]).takeLast}}),Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return r(d[146]).takeUntil}}),Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return r(d[147]).takeWhile}}),Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return r(d[148]).tap}}),Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(d[149]).throttle}}),Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return r(d[150]).throttleTime}}),Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return r(d[151]).throwIfEmpty}}),Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return r(d[152]).timeInterval}}),Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(d[28]).timeout}}),Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return r(d[153]).timeoutWith}}),Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return r(d[154]).timestamp}}),Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(d[155]).toArray}}),Object.defineProperty(e,"window",{enumerable:!0,get:function(){return r(d[156]).window}}),Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return r(d[157]).windowCount}}),Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return r(d[158]).windowTime}}),Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return r(d[159]).windowToggle}}),Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return r(d[160]).windowWhen}}),Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return r(d[161]).withLatestFrom}}),Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return r(d[162]).zipAll}}),Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return r(d[163]).zipWith}})},1105,[1106,1122,1119,1126,1129,1131,1132,1134,1135,1145,1146,1149,1152,1138,1108,1107,1153,1120,1118,1121,1179,1180,1182,1183,1181,1184,1130,1185,1186,1110,1188,1192,1193,1196,1201,1202,1178,1203,1157,1204,1205,1206,1207,1208,1210,1211,1154,1212,1215,1216,1219,1220,1177,1209,1221,1222,1158,1223,1114,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1238,1197,1240,1241,1242,1244,1246,1247,1248,1249,1250,1251,1255,1256,1257,1258,1259,1261,1262,1263,1264,1265,1266,1217,1267,1268,1269,1270,1271,1253,1272,1273,1191,1254,1275,1276,1198,1277,1199,1278,1279,1280,1282,1283,1170,1284,1285,1286,1287,1288,1289,1290,1236,1291,1292,1293,1294,1125,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1169,1307,1308,1309,1310,1252,1274,1311,1312,1313,1314,1315,1260,1316,1317,1318,1235,1319,1320,1321,1322,1323,1324,1325,1326]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var t=(function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var o=new t;return o.source=this,o.operator=n,o},t.prototype.subscribe=function(t,n,u){var c,s=this,b=(c=t)&&c instanceof r(d[0]).Subscriber||o(c)&&r(d[6]).isSubscription(c)?t:new(r(d[0]).SafeSubscriber)(t,n,u);return r(d[1]).errorContext(function(){var t=s,n=t.operator,o=t.source;b.add(n?n.call(b,o):o?s._subscribe(b):s._trySubscribe(b))}),b},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,o){var u=this;return new(o=n(o))(function(n,o){var c=new(r(d[0]).SafeSubscriber)({next:function(n){try{t(n)}catch(t){o(t),c.unsubscribe()}},error:o,complete:n});u.subscribe(c)})},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[r(d[2]).observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var i,e,o=n.call(r),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(r){e={error:r}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return s},n=this&&this.__spreadArray||function(r,t){for(var n=0,i=t.length,e=r.length;n0)&&!(o=n.next()).done;)u.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return u},r=this&&this.__spreadArray||function(t,r){for(var e=0,o=r.length,i=t.length;e0)&&!(t=o.next()).done;)u.push(t.value)}catch(n){i={error:n}}finally{try{t&&!t.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u},r=this&&this.__spreadArray||function(n,r){for(var e=0,t=r.length,i=n.length;e=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousSubject=e.Subject=void 0;var i=(function(t){function i(){var o=t.call(this)||this;return o.closed=!1,o.currentObservers=null,o.observers=[],o.isStopped=!1,o.hasError=!1,o.thrownError=null,o}return o(i,t),i.prototype.lift=function(t){var o=new s(this,this);return o.operator=t,o},i.prototype._throwIfClosed=function(){if(this.closed)throw new(r(_d[0]).ObjectUnsubscribedError)},i.prototype.next=function(t){var o=this;r(_d[1]).errorContext(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var u=n(o.currentObservers),c=u.next();!c.done;c=u.next()){c.value.next(t)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}}})},i.prototype.error=function(t){var o=this;r(_d[1]).errorContext(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=t;for(var n=o.observers;n.length;)n.shift().error(t)}})},i.prototype.complete=function(){var t=this;r(_d[1]).errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var o=t.observers;o.length;)o.shift().complete()}})},i.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(i.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),i.prototype._trySubscribe=function(o){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,o)},i.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},i.prototype._innerSubscribe=function(t){var o=this,n=this.hasError,i=this.isStopped,s=this.observers;return n||i?r(_d[2]).EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(t),new(r(_d[2]).Subscription)(function(){o.currentObservers=null,r(_d[3]).arrRemove(s,t)}))},i.prototype._checkFinalizedStatuses=function(t){var o=this.hasError,n=this.thrownError,i=this.isStopped;o?t.error(n):i&&t.complete()},i.prototype.asObservable=function(){var t=new(r(_d[4]).Observable);return t.source=this,t},i.create=function(t,o){return new s(t,o)},i})(r(_d[4]).Observable);e.Subject=i;var s=(function(t){function n(o,n){var i=t.call(this)||this;return i.destination=o,i.source=n,i}return o(n,t),n.prototype.next=function(t){var o,n;null===(n=null===(o=this.destination)||void 0===o?void 0:o.next)||void 0===n||n.call(o,t)},n.prototype.error=function(t){var o,n;null===(n=null===(o=this.destination)||void 0===o?void 0:o.error)||void 0===n||n.call(o,t)},n.prototype.complete=function(){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===o||o.call(t)},n.prototype._subscribe=function(t){var o,n;return null!==(n=null===(o=this.source)||void 0===o?void 0:o.subscribe(t))&&void 0!==n?n:r(_d[2]).EMPTY_SUBSCRIPTION},n})(i);e.AnonymousSubject=s},1129,[1130,1115,1108,1112,1106]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectUnsubscribedError=void 0,e.ObjectUnsubscribedError=r(d[0]).createErrorClass(function(s){return function(){s(this),this.name='ObjectUnsubscribedError',this.message='object unsubscribed'}})},1130,[1111]); +__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function u(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(u.prototype=n.prototype,new u)});Object.defineProperty(e,"__esModule",{value:!0}),e.BehaviorSubject=void 0;var n=(function(t){function n(o){var n=t.call(this)||this;return n._value=o,n}return o(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(o){var n=t.prototype._subscribe.call(this,o);return!n.closed&&o.next(this._value),n},n.prototype.getValue=function(){var t=this.hasError,o=this.thrownError,n=this._value;if(t)throw o;return this._throwIfClosed(),n},n.prototype.next=function(o){t.prototype.next.call(this,this._value=o)},n})(r(_d[0]).Subject);e.BehaviorSubject=n},1131,[1129]); +__d(function(g,r,_i,a,m,e,_d){"use strict";var t,i=this&&this.__extends||(t=function(i,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])})(i,n)},function(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.ReplaySubject=void 0;var n=(function(t){function n(i,n,o){void 0===i&&(i=1/0),void 0===n&&(n=1/0),void 0===o&&(o=r(_d[0]).dateTimestampProvider);var s=t.call(this)||this;return s._bufferSize=i,s._windowTime=n,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,i),s._windowTime=Math.max(1,n),s}return i(n,t),n.prototype.next=function(i){var n=this,o=n.isStopped,s=n._buffer,f=n._infiniteTimeWindow,u=n._timestampProvider,_=n._windowTime;o||(s.push(i),!f&&s.push(u.now()+_)),this._trimBuffer(),t.prototype.next.call(this,i)},n.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this._infiniteTimeWindow,o=this._buffer.slice(),s=0;s0?t.prototype.requestAsyncId.call(this,o,n,c):(o.actions.push(this),o._scheduled||(o._scheduled=r(_d[0]).immediateProvider.setImmediate(o.flush.bind(o,void 0))))},n.prototype.recycleAsyncId=function(o,n,c){if(void 0===c&&(c=0),null!=c&&c>0||null==c&&this.delay>0)return t.prototype.recycleAsyncId.call(this,o,n,c);o.actions.some(function(t){return t.id===n})||(r(_d[0]).immediateProvider.clearImmediate(n),o._scheduled=void 0)},n})(r(_d[1]).AsyncAction);e.AsapAction=n},1139,[1140,1142]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var e=this&&this.__read||function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var i,o,n=t.call(e),l=[];try{for(;(void 0===r||r-- >0)&&!(i=n.next()).done;)l.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return l},r=this&&this.__spreadArray||function(e,r){for(var t=0,i=r.length,o=e.length;t0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0?t.prototype.schedule.call(this,o,n):(this.delay=n,this.state=o,this.scheduler.flush(this),this)},n.prototype.execute=function(o,n){return n>0||this.closed?t.prototype.execute.call(this,o,n):this._execute(o,n)},n.prototype.requestAsyncId=function(o,n,u){return void 0===u&&(u=0),null!=u&&u>0||null==u&&this.delay>0?t.prototype.requestAsyncId.call(this,o,n,u):o.flush(this)},n})(r(_d[0]).AsyncAction);e.QueueAction=n},1148,[1142]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0,e.animationFrameScheduler=new(r(d[0]).AnimationFrameScheduler)(r(d[1]).AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},1149,[1150,1151]); +__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])})(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameScheduler=void 0;var n=(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.flush=function(t){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n,s=this.actions;t=t||s.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=s[0])&&t.id===o&&s.shift());if(this._active=!1,n){for(;(t=s[0])&&t.id===o&&s.shift();)t.unsubscribe();throw n}},n})(r(_d[0]).AsyncScheduler);e.AnimationFrameScheduler=n},1150,[1137]); +__d(function(g,r,i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])})(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrameAction=void 0;var o=(function(t){function o(n,o){var c=t.call(this,n,o)||this;return c.scheduler=n,c.work=o,c}return n(o,t),o.prototype.requestAsyncId=function(n,o,c){return void 0===c&&(c=0),null!==c&&c>0?t.prototype.requestAsyncId.call(this,n,o,c):(n.actions.push(this),n._scheduled||(n._scheduled=r(_d[0]).animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},o.prototype.recycleAsyncId=function(n,o,c){if(void 0===c&&(c=0),null!=c&&c>0||null==c&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,o,c);n.actions.some(function(t){return t.id===o})||(r(_d[0]).animationFrameProvider.cancelAnimationFrame(o),n._scheduled=void 0)},o})(r(_d[1]).AsyncAction);e.AnimationFrameAction=o},1151,[1127,1142]); +__d(function(g,r,i,_a2,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])})(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualAction=e.VirtualTimeScheduler=void 0;var o=(function(t){function o(n,o){void 0===n&&(n=c),void 0===o&&(o=1/0);var s=t.call(this,n,function(){return s.frame})||this;return s.maxFrames=o,s.frame=0,s.index=-1,s}return n(o,t),o.prototype.flush=function(){for(var t,n,o=this.actions,c=this.maxFrames;(n=o[0])&&n.delay<=c&&(o.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=o.shift();)n.unsubscribe();throw t}},o.frameTimeFactor=10,o})(r(_d[0]).AsyncScheduler);e.VirtualTimeScheduler=o;var c=(function(t){function o(n,o,c){void 0===c&&(c=n.index+=1);var s=t.call(this,n,o)||this;return s.scheduler=n,s.work=o,s.index=c,s.active=!0,s.index=n.index=c,s}return n(o,t),o.prototype.schedule=function(n,c){if(void 0===c&&(c=0),Number.isFinite(c)){if(!this.id)return t.prototype.schedule.call(this,n,c);this.active=!1;var s=new o(this.scheduler,this.work);return this.add(s),s.schedule(n,c)}return r(_d[1]).Subscription.EMPTY},o.prototype.requestAsyncId=function(t,n,c){void 0===c&&(c=0),this.delay=t.frame+c;var s=t.actions;return s.push(this),s.sort(o.sortActions),!0},o.prototype.recycleAsyncId=function(t,n,o){void 0===o&&(o=0)},o.prototype._execute=function(n,o){if(!0===this.active)return t.prototype._execute.call(this,n,o)},o.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},o})(r(_d[2]).AsyncAction);e.VirtualAction=c},1152,[1137,1108,1142]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0,(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var t=(function(){function t(t,o,n){this.kind=t,this.value=o,this.error=n,this.hasValue='N'===t}return t.prototype.observe=function(t){return o(this,t)},t.prototype.do=function(t,o,n){var c=this.kind,u=this.value,l=this.error;return'N'===c?null===t||void 0===t?void 0:t(u):'E'===c?null===o||void 0===o?void 0:o(l):null===n||void 0===n?void 0:n()},t.prototype.accept=function(t,o,n){var c;return r(d[0]).isFunction(null===(c=t)||void 0===c?void 0:c.next)?this.observe(t):this.do(t,o,n)},t.prototype.toObservable=function(){var t=this.kind,o=this.value,n=this.error,c='N'===t?r(d[1]).of(o):'E'===t?r(d[2]).throwError(function(){return n}):'C'===t?r(d[3]).EMPTY:0;if(!c)throw new TypeError("Unexpected notification kind "+t);return c},t.createNext=function(o){return new t('N',o)},t.createError=function(o){return new t('E',void 0,o)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t('C'),t})();function o(t,o){var n,c,u,l=t,f=l.kind,v=l.value,s=l.error;if('string'!=typeof f)throw new TypeError('Invalid notification, missing "kind"');'N'===f?null===(n=o.next)||void 0===n||n.call(o,v):'E'===f?null===(c=o.error)||void 0===c||c.call(o,s):null===(u=o.complete)||void 0===u||u.call(o)}e.Notification=t,e.observeNotification=o},1153,[1109,1154,1177,1178]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.of=void 0,e.of=function(){for(var o=[],t=0;t0&&i[i.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};function i(e){return new(r(_d[0]).Observable)(function(n){var t=e[r(_d[8]).observable]();if(r(_d[9]).isFunction(t.subscribe))return t.subscribe(n);throw new TypeError('Provided object does not correctly implement Symbol.observable')})}function u(e){return new(r(_d[0]).Observable)(function(n){for(var t=0;t0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]1||s(e,t)})})}function s(e,n){try{(r=o[e](n)).value instanceof t?Promise.resolve(r.value.v).then(c,l):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isReadableStreamLike=_e.readableStreamLikeToAsyncGenerator=void 0,_e.readableStreamLikeToAsyncGenerator=function(r){return n(this,arguments,function(){var n,a,o;return e(this,function(e){switch(e.label){case 0:n=r.getReader(),e.label=1;case 1:e.trys.push([1,,9,10]),e.label=2;case 2:return[4,t(n.read())];case 3:return a=e.sent(),o=a.value,a.done?[4,t(void 0)]:[3,5];case 4:return[2,e.sent()];case 5:return[4,t(o)];case 6:return[4,e.sent()];case 7:return e.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})},_e.isReadableStreamLike=function(e){return _r(d[0]).isFunction(null===e||void 0===e?void 0:e.getReader)}},1167,[1109]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createInvalidObservableTypeError=void 0,e.createInvalidObservableTypeError=function(o){return new TypeError("You provided "+(null!==o&&'object'==typeof o?'an invalid object':"'"+o+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1168,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeOn=void 0,e.subscribeOn=function(n,u){return void 0===u&&(u=0),r(d[0]).operate(function(t,c){c.add(n.schedule(function(){return t.subscribe(c)},u))})}},1169,[1123]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observeOn=void 0,e.observeOn=function(n,t){return void 0===t&&(t=0),r(d[0]).operate(function(u,c){u.subscribe(r(d[1]).createOperatorSubscriber(c,function(u){return r(d[2]).executeSchedule(c,n,function(){return c.next(u)},t)},function(){return r(d[2]).executeSchedule(c,n,function(){return c.complete()},t)},function(u){return r(d[2]).executeSchedule(c,n,function(){return c.error(u)},t)}))})}},1170,[1123,1124,1171]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.executeSchedule=void 0,e.executeSchedule=function(u,c,t,n,s){void 0===n&&(n=0),void 0===s&&(s=!1);var l=c.schedule(function(){t(),s?u.add(this.schedule(null,n)):this.unsubscribe()},n);if(u.add(l),!s)return l}},1171,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleArray=void 0,e.scheduleArray=function(n,t){return new(r(d[0]).Observable)(function(u){var c=0;return t.schedule(function(){c===n.length?u.complete():(u.next(n[c++]),u.closed||this.schedule())})})}},1172,[1106]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.schedulePromise=void 0,e.schedulePromise=function(n,s){return r(d[0]).innerFrom(n).pipe(r(d[1]).subscribeOn(s),r(d[2]).observeOn(s))}},1173,[1161,1169,1170]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleAsyncIterable=void 0,e.scheduleAsyncIterable=function(n,t){if(!n)throw new Error('Iterable cannot be null');return new(r(d[0]).Observable)(function(c){r(d[1]).executeSchedule(c,t,function(){var u=n[Symbol.asyncIterator]();r(d[1]).executeSchedule(c,t,function(){u.next().then(function(n){n.done?c.complete():c.next(n.value)})},0,!0)})})}},1174,[1106,1171]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleIterable=void 0,e.scheduleIterable=function(t,n){return new(r(d[0]).Observable)(function(u){var c;return r(d[1]).executeSchedule(u,n,function(){c=t[r(d[2]).iterator](),r(d[1]).executeSchedule(u,n,function(){var t,n,o;try{n=(t=c.next()).value,o=t.done}catch(t){return void u.error(t)}o?u.complete():u.next(n)},0,!0)}),function(){return r(d[3]).isFunction(null===c||void 0===c?void 0:c.return)&&c.return()}})}},1175,[1106,1171,1166,1109]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scheduleReadableStreamLike=void 0,e.scheduleReadableStreamLike=function(t,c){return r(d[0]).scheduleAsyncIterable(r(d[1]).readableStreamLikeToAsyncGenerator(t),c)}},1176,[1174,1167]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throwError=void 0,e.throwError=function(n,t){var o=r(d[0]).isFunction(n)?n:function(){return n},u=function(n){return n.error(o())};return new(r(d[1]).Observable)(t?function(n){return t.schedule(u,0,n)}:u)}},1177,[1109,1106]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return new(r(d[0]).Observable)(function(t){return n.schedule(function(){return t.complete()})})}Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0,e.EMPTY=new(r(d[0]).Observable)(function(n){return n.complete()}),e.empty=function(t){return t?n(t):e.EMPTY}},1178,[1106]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObservable=void 0,e.isObservable=function(s){return!!s&&(s instanceof r(d[0]).Observable||r(d[1]).isFunction(s.lift)&&r(d[1]).isFunction(s.subscribe))}},1179,[1106,1109]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lastValueFrom=void 0,e.lastValueFrom=function(t,o){var n='object'==typeof o;return new Promise(function(u,c){var l,f=!1;t.subscribe({next:function(t){l=t,f=!0},error:c,complete:function(){f?u(l):n?u(o.defaultValue):c(new(r(d[0]).EmptyError))}})})}},1180,[1181]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyError=void 0,e.EmptyError=r(d[0]).createErrorClass(function(t){return function(){t(this),this.name='EmptyError',this.message='no elements in sequence'}})},1181,[1111]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.firstValueFrom=void 0,e.firstValueFrom=function(t,n){var u='object'==typeof n;return new Promise(function(o,c){var f=new(r(d[0]).SafeSubscriber)({next:function(t){o(t),f.unsubscribe()},error:c,complete:function(){u?o(n.defaultValue):c(new(r(d[1]).EmptyError))}});t.subscribe(f)})}},1182,[1107,1181]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=void 0,e.ArgumentOutOfRangeError=r(d[0]).createErrorClass(function(t){return function(){t(this),this.name='ArgumentOutOfRangeError',this.message='argument out of range'}})},1183,[1111]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotFoundError=void 0,e.NotFoundError=r(d[0]).createErrorClass(function(o){return function(t){o(this),this.name='NotFoundError',this.message=t}})},1184,[1111]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceError=void 0,e.SequenceError=r(d[0]).createErrorClass(function(n){return function(t){n(this),this.name='SequenceError',this.message=t}})},1185,[1111]); +__d(function(g,r,i,a,m,e,d){"use strict";function o(o){throw new e.TimeoutError(o)}Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0,e.TimeoutError=r(d[0]).createErrorClass(function(o){return function(u){void 0===u&&(u=null),o(this),this.message='Timeout has occurred',this.name='TimeoutError',this.info=u}}),e.timeout=function(u,t){var n=r(d[1]).isValidDate(u)?{first:u}:'number'==typeof u?{each:u}:u,c=n.first,l=n.each,s=n.with,f=void 0===s?o:s,v=n.scheduler,b=void 0===v?null!==t&&void 0!==t?t:r(d[2]).asyncScheduler:v,h=n.meta,p=void 0===h?null:h;if(null==c&&null==l)throw new TypeError('No timeout provided.');return r(d[3]).operate(function(o,u){var t,n,s=null,v=0,h=function(o){n=r(d[4]).executeSchedule(u,b,function(){try{t.unsubscribe(),r(d[5]).innerFrom(f({meta:p,lastValue:s,seen:v})).subscribe(u)}catch(o){u.error(o)}},o)};t=o.subscribe(r(d[6]).createOperatorSubscriber(u,function(o){null===n||void 0===n||n.unsubscribe(),v++,u.next(s=o),l>0&&h(l)},void 0,void 0,function(){(null===n||void 0===n?void 0:n.closed)||null===n||void 0===n||n.unsubscribe(),s=null})),!v&&h(null!=c?'number'==typeof c?c:+c-b.now():l)})}},1186,[1111,1187,1145,1123,1171,1161,1124]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDate=void 0,e.isValidDate=function(t){return t instanceof Date&&!isNaN(t)}},1187,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindCallback=void 0,e.bindCallback=function(n,l,t){return r(d[0]).bindCallbackInternals(!1,n,l,t)}},1188,[1189]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,n){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var t,i,l=e.call(r),o=[];try{for(;(void 0===n||n-- >0)&&!(t=l.next()).done;)o.push(t.value)}catch(r){i={error:r}}finally{try{t&&!t.done&&(e=l.return)&&e.call(l)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(r,n){for(var e=0,t=n.length,i=r.length;e0)&&!(e=i.next()).done;)u.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return u},n=this&&this.__spreadArray||function(r,n){for(var t=0,e=n.length,o=r.length;t0)&&!(t=o.next()).done;)u.push(t.value)}catch(n){i={error:n}}finally{try{t&&!t.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u};Object.defineProperty(_e,"__esModule",{value:!0}),_e.fromEvent=void 0;var r=['addListener','removeListener'],e=['addEventListener','removeEventListener'],t=['on','off'];function i(n,r){return function(e){return function(t){return n[e](r,t)}}}function o(n){return _r(d[0]).isFunction(n.addListener)&&_r(d[0]).isFunction(n.removeListener)}function u(n){return _r(d[0]).isFunction(n.on)&&_r(d[0]).isFunction(n.off)}function f(n){return _r(d[0]).isFunction(n.addEventListener)&&_r(d[0]).isFunction(n.removeEventListener)}_e.fromEvent=function c(v,s,l,m){if(_r(d[0]).isFunction(l)&&(m=l,l=void 0),m)return c(v,s,l).pipe(_r(d[1]).mapOneOrManyArgs(m));var p=n(f(v)?e.map(function(n){return function(r){return v[n](s,r,l)}}):o(v)?r.map(i(v,s)):u(v)?t.map(i(v,s)):[],2),y=p[0],L=p[1];if(!y&&_r(d[2]).isArrayLike(v))return _r(d[3]).mergeMap(function(n){return c(n,s,l)})(_r(d[4]).innerFrom(v));if(!y)throw new TypeError('Invalid event target');return new(_r(d[5]).Observable)(function(n){var r=function(){for(var r=[],e=0;e0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]0)&&!(o=i.next()).done;)u.push(o.value)}catch(r){n={error:r}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return u},e=this&&this.__spreadArray||function(r,e){for(var t=0,o=e.length,n=r.length;t0){var e=void 0;try{e=_r(d[2]).innerFrom(i.shift())}catch(e){return void r()}var t=_r(d[3]).createOperatorSubscriber(o,void 0,_r(d[4]).noop,_r(d[4]).noop);e.subscribe(t),t.add(r)}else o.complete()})()})}},1213,[1214,1123,1161,1124,1118]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.argsOrArgArray=void 0;var t=Array.isArray;e.argsOrArgArray=function(n){return 1===n.length&&t(n[0])?n[0]:n}},1214,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pairs=void 0,e.pairs=function(t,n){return r(d[0]).from(Object.entries(t),n)}},1215,[1157]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partition=void 0,e.partition=function(t,n,o){return[r(d[0]).filter(n,o)(r(d[1]).innerFrom(t)),r(d[0]).filter(r(d[2]).not(n,o))(r(d[1]).innerFrom(t))]}},1216,[1217,1161,1218]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=void 0,e.filter=function(t,n){return r(d[0]).operate(function(u,c){var o=0;u.subscribe(r(d[1]).createOperatorSubscriber(c,function(u){return t.call(n,u,o++)&&c.next(u)}))})}},1217,[1123,1124]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.not=void 0,e.not=function(n,t){return function(o,u){return!n.call(t,o,u)}}},1218,[]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function n(n){return function(t){for(var c=[],i=function(i){c.push(r(d[1]).innerFrom(n[i]).subscribe(r(d[3]).createOperatorSubscriber(t,function(n){if(c){for(var u=0;u0)&&!(e=u.next()).done;)i.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(t=u.return)&&t.call(u)}finally{if(o)throw o.error}}return i},n=this&&this.__spreadArray||function(r,n){for(var t=0,e=n.length,o=r.length;t=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferCount=void 0,e.bufferCount=function(t,o){return void 0===o&&(o=null),o=null!==o&&void 0!==o?o:t,r(d[0]).operate(function(l,i){var u=[],f=0;l.subscribe(r(d[1]).createOperatorSubscriber(i,function(l){var c,v,y,h,s=null;f++%o==0&&u.push([]);try{for(var b=n(u),p=b.next();!p.done;p=b.next())(_=p.value).push(l),t<=_.length&&(s=null!==s&&void 0!==s?s:[]).push(_)}catch(n){c={error:n}}finally{try{p&&!p.done&&(v=b.return)&&v.call(b)}finally{if(c)throw c.error}}if(s)try{for(var x=n(s),m=x.next();!m.done;m=x.next()){var _=m.value;r(d[2]).arrRemove(u,_),i.next(_)}}catch(n){y={error:n}}finally{try{m&&!m.done&&(h=x.return)&&h.call(x)}finally{if(y)throw y.error}}},function(){var t,o;try{for(var l=n(u),f=l.next();!f.done;f=l.next()){var c=f.value;i.next(c)}}catch(n){t={error:n}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}i.complete()},void 0,function(){u=null}))})}},1227,[1123,1124,1112]); +__d(function(g,r,_i2,a,_m,e,d){"use strict";var n=this&&this.__values||function(n){var t="function"==typeof Symbol&&Symbol.iterator,u=t&&n[t],o=0;if(u)return u.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferTime=void 0,e.bufferTime=function(t){for(var u,o,i=[],l=1;l=0?r(d[5]).executeSchedule(o,f,v,c,!0):l=!0,v();var h=r(d[6]).createOperatorSubscriber(o,function(t){var u,o,l=i.slice();try{for(var f=n(l),c=f.next();!c.done;c=f.next()){var v=c.value,h=v.buffer;h.push(t),s<=h.length&&b(v)}}catch(n){u={error:n}}finally{try{c&&!c.done&&(o=f.return)&&o.call(f)}finally{if(u)throw u.error}}},function(){for(;null===i||void 0===i?void 0:i.length;)o.next(i.shift().buffer);null===h||void 0===h||h.unsubscribe(),o.complete(),o.unsubscribe()},void 0,function(){return i=null});u.subscribe(h)})}},1228,[1155,1145,1123,1112,1108,1171,1124]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToggle=void 0,e.bufferToggle=function(n,o){return r(d[0]).operate(function(i,u){var c=[];r(d[1]).innerFrom(n).subscribe(r(d[2]).createOperatorSubscriber(u,function(t){var n=[];c.push(n);var i=new(r(d[3]).Subscription);i.add(r(d[1]).innerFrom(o(t)).subscribe(r(d[2]).createOperatorSubscriber(u,function(){r(d[4]).arrRemove(c,n),u.next(n),i.unsubscribe()},r(d[5]).noop)))},r(d[5]).noop)),i.subscribe(r(d[2]).createOperatorSubscriber(u,function(n){var o,i;try{for(var u=t(c),f=u.next();!f.done;f=u.next())f.value.push(n)}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}},function(){for(;c.length>0;)u.next(c.shift());u.complete()}))})}},1229,[1123,1161,1124,1108,1112,1118]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bufferWhen=void 0,e.bufferWhen=function(n){return r(d[0]).operate(function(u,t){var o=null,c=null;!(function u(){null===c||void 0===c||c.unsubscribe();var b=o;o=[],b&&t.next(b),r(d[1]).innerFrom(n()).subscribe(c=r(d[2]).createOperatorSubscriber(t,u,r(d[3]).noop))})(),u.subscribe(r(d[2]).createOperatorSubscriber(t,function(n){return null===o||void 0===o?void 0:o.push(n)},function(){o&&t.next(o),t.complete()},void 0,function(){return o=c=null}))})}},1230,[1123,1161,1124,1118]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.catchError=void 0,e.catchError=function u(c){return r(d[0]).operate(function(n,o){var s,t=null,b=!1;t=n.subscribe(r(d[1]).createOperatorSubscriber(o,void 0,void 0,function(l){s=r(d[2]).innerFrom(c(l,u(c)(n))),t?(t.unsubscribe(),t=null,s.subscribe(o)):b=!0})),b&&(t.unsubscribe(),t=null,s.subscribe(o))})}},1231,[1123,1124,1161]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineAll=void 0,e.combineAll=r(d[0]).combineLatestAll},1232,[1233]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineLatestAll=void 0,e.combineLatestAll=function(t){return r(d[0]).joinAllInternals(r(d[1]).combineLatest,t)}},1233,[1234,1193]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinAllInternals=void 0,e.joinAllInternals=function(n,t){return r(d[0]).pipe(r(d[1]).toArray(),r(d[2]).mergeMap(function(t){return n(t)}),t?r(d[3]).mapOneOrManyArgs(t):r(d[4]).identity)}},1234,[1120,1235,1199,1190,1121]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toArray=void 0;var t=function(t,u){return t.push(u),t};e.toArray=function(){return r(d[0]).operate(function(u,n){r(d[1]).reduce(t,[])(u).subscribe(n)})}},1235,[1123,1236]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.reduce=void 0,e.reduce=function(n,t){return r(d[0]).operate(r(d[1]).scanInternals(n,t,arguments.length>=2,!1,!0))}},1236,[1123,1237]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scanInternals=void 0,e.scanInternals=function(n,t,c,u,i){return function(o,s){var f=c,b=t,l=0;o.subscribe(r(d[0]).createOperatorSubscriber(s,function(t){var c=l++;b=f?n(b,t,c):(f=!0,t),u&&s.next(b)},i&&function(){f&&s.next(b),s.complete()}))}}},1237,[1124]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var t=this&&this.__read||function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),l=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},r=this&&this.__spreadArray||function(t,r){for(var e=0,n=r.length,o=t.length;e0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e0)&&!(e=i.next()).done;)c.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},t=this&&this.__spreadArray||function(r,t){for(var n=0,e=t.length,o=r.length;n0)&&!(n=c.next()).done;)i.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=c.return)&&e.call(c)}finally{if(o)throw o.error}}return i},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e=2;return function(f){return f.pipe(r(d[1]).filter(function(n,u){return u===t}),r(d[2]).take(1),u?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[0]).ArgumentOutOfRangeError)}))}}},1259,[1183,1217,1252,1249,1260]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(){return new(r(d[2]).EmptyError)}Object.defineProperty(e,"__esModule",{value:!0}),e.throwIfEmpty=void 0,e.throwIfEmpty=function(n){return void 0===n&&(n=t),r(d[0]).operate(function(t,o){var u=!1;t.subscribe(r(d[1]).createOperatorSubscriber(o,function(t){u=!0,o.next(t)},function(){return u?o.complete():o.error(n())}))})}},1260,[1123,1124,1181]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,o,i=n.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)l.push(e.value)}catch(r){o={error:r}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var n=0,e=t.length,o=r.length;n=2;return function(u){return u.pipe(t?r(d[0]).filter(function(n,i){return t(n,i,u)}):r(d[1]).identity,r(d[2]).take(1),i?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[5]).EmptyError)}))}}},1270,[1217,1121,1252,1249,1260,1181]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupBy=void 0,e.groupBy=function(n,t,u,c){return r(d[0]).operate(function(o,f){var b;t&&'function'!=typeof t?(u=t.duration,b=t.element,c=t.connector):b=t;var s=new Map,v=function(n){s.forEach(n),n(f)},l=function(n){return v(function(t){return t.error(n)})},p=0,y=!1,w=new(r(d[1]).OperatorSubscriber)(f,function(t){try{var o=n(t),v=s.get(o);if(!v){s.set(o,v=c?c():new(r(d[2]).Subject));var O=(S=o,h=v,(j=new(r(d[4]).Observable)(function(n){p++;var t=h.subscribe(n);return function(){t.unsubscribe(),0==--p&&y&&w.unsubscribe()}})).key=S,j);if(f.next(O),u){var _=r(d[1]).createOperatorSubscriber(v,function(){v.complete(),null===_||void 0===_||_.unsubscribe()},void 0,void 0,function(){return s.delete(o)});w.add(r(d[3]).innerFrom(u(O)).subscribe(_))}}v.next(b?b(t):t)}catch(n){l(n)}var S,h,j},function(){return v(function(n){return n.complete()})},l,function(){return s.clear()},function(){return y=!0,0===p});o.subscribe(w)})}},1271,[1123,1124,1129,1161,1106]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=void 0,e.isEmpty=function(){return r(d[0]).operate(function(t,n){t.subscribe(r(d[1]).createOperatorSubscriber(n,function(){n.next(!1),n.complete()},function(){n.next(!0),n.complete()}))})}},1272,[1123,1124]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.last=void 0,e.last=function(t,n){var u=arguments.length>=2;return function(i){return i.pipe(t?r(d[0]).filter(function(n,u){return t(n,u,i)}):r(d[1]).identity,r(d[2]).takeLast(1),u?r(d[3]).defaultIfEmpty(n):r(d[4]).throwIfEmpty(function(){return new(r(d[5]).EmptyError)}))}}},1273,[1217,1121,1274,1249,1260,1181]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.takeLast=void 0,e.takeLast=function(n){return n<=0?function(){return r(d[0]).EMPTY}:r(d[1]).operate(function(o,i){var u=[];o.subscribe(r(d[2]).createOperatorSubscriber(i,function(t){u.push(t),n0?t:u}:function(n,t){return n>t?n:t})}},1276,[1236,1109]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flatMap=void 0,e.flatMap=r(d[0]).mergeMap},1277,[1199]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMapTo=void 0,e.mergeMapTo=function(n,t,o){return void 0===o&&(o=1/0),r(d[0]).isFunction(t)?r(d[1]).mergeMap(function(){return n},t,o):('number'==typeof t&&(o=t),r(d[1]).mergeMap(function(){return n},o))}},1278,[1109,1199]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeScan=void 0,e.mergeScan=function(n,t,u){return void 0===u&&(u=1/0),r(d[0]).operate(function(o,c){var f=t;return r(d[1]).mergeInternals(o,c,function(t,u){return n(f,t,u)},u,function(n){f=n},!1,void 0,function(){return f=null})})}},1279,[1123,1200]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var r=this&&this.__read||function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),l=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return l},e=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return l},e=this&&this.__spreadArray||function(r,e){for(var t=0,n=e.length,o=r.length;t0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e=2,!0))}},1297,[1123,1237]); +__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sequenceEqual=void 0,e.sequenceEqual=function(u,t){return void 0===t&&(t=function(u,t){return u===t}),r(d[0]).operate(function(n,c){var o={buffer:[],complete:!1},f={buffer:[],complete:!1},b=function(u){c.next(u),c.complete()},l=function(u,n){var o=r(d[1]).createOperatorSubscriber(c,function(c){var o=n.buffer,f=n.complete;0===o.length?f?b(!1):u.buffer.push(c):!t(c,o.shift())&&b(!1)},function(){u.complete=!0;var t=n.complete,c=n.buffer;t&&b(0===c.length),null===o||void 0===o||o.unsubscribe()});return o};n.subscribe(l(o,f)),u.subscribe(l(f,o))})}},1298,[1123,1124]); +__d(function(g,_r,_i2,a,_m,_e,d){"use strict";var n=this&&this.__read||function(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var t,o,u=e.call(n),i=[];try{for(;(void 0===r||r-- >0)&&!(t=u.next()).done;)i.push(t.value)}catch(n){o={error:n}}finally{try{t&&!t.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return i},r=this&&this.__spreadArray||function(n,r){for(var e=0,t=r.length,o=n.length;e=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowCount=void 0,e.windowCount=function(n,o){void 0===o&&(o=0);var i=o>0?o:n;return r(d[0]).operate(function(o,u){var l=[new(r(d[1]).Subject)],f=0;u.next(l[0].asObservable()),o.subscribe(r(d[2]).createOperatorSubscriber(u,function(o){var c,s;try{for(var b=t(l),v=b.next();!v.done;v=b.next())v.value.next(o)}catch(t){c={error:t}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(c)throw c.error}}var h=f-n+1;if(h>=0&&h%i==0&&l.shift().complete(),++f%i==0){var y=new(r(d[1]).Subject);l.push(y),u.next(y.asObservable())}},function(){for(;l.length>0;)l.shift().complete();u.complete()},function(t){for(;l.length>0;)l.shift().error(t);u.error(t)},function(){l=null}))})}},1320,[1123,1129,1124]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.windowTime=void 0,e.windowTime=function(n){for(var u,t,o=[],c=1;c=0?r(d[6]).executeSchedule(t,s,v,l,!0):c=!0,v();var w=function(n){return o.slice().forEach(n)},p=function(n){w(function(u){var t=u.window;return n(t)}),n(t),t.unsubscribe()};return u.subscribe(r(d[7]).createOperatorSubscriber(t,function(n){w(function(u){u.window.next(n),f<=++u.seen&&b(u)})},function(){return p(function(n){return n.complete()})},function(n){return p(function(u){return u.error(n)})})),function(){o=null}})}},1321,[1155,1145,1123,1112,1108,1129,1171,1124]); +__d(function(g,r,_i,a,_m,e,d){"use strict";var t=this&&this.__values||function(t){var n="function"==typeof Symbol&&Symbol.iterator,o=n&&t[n],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.windowToggle=void 0,e.windowToggle=function(n,o){return r(d[0]).operate(function(i,c){var u=[],l=function(t){for(;00)&&!(n=i.next()).done;)u.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e0)&&!(i=o.next()).done;)l.push(i.value)}catch(r){n={error:r}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,i=t.length,n=r.length;e0)&&!(n=o.next()).done;)l.push(n.value)}catch(r){i={error:r}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e0)&&!(n=i.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return l},t=this&&this.__spreadArray||function(r,t){for(var e=0,n=t.length,o=r.length;e=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.KeyDidResolver=void 0;var n=(function(){function n(){r(d[0])(this,n),this.supportedMethods=['key']}return r(d[1])(n,[{key:"resolve",value:function(n,o){var i,c;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return i={},t.prev=1,c=r(d[2]).DidKey.fromDid(o).didDocument,t.abrupt("return",{didDocument:c,didDocumentMetadata:i,didResolutionMetadata:{contentType:'application/did+ld+json'}});case 6:return t.prev=6,t.t0=t.catch(1),t.abrupt("return",{didDocument:null,didDocumentMetadata:i,didResolutionMetadata:{error:'notFound',message:"resolver_error: Unable to resolve did '"+o+"': "+t.t0}});case 9:case"end":return t.stop()}},null,null,[[1,6]],Promise)}}]),n})();e.KeyDidResolver=n},1331,[7,8,987]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1332,[947]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1333,[1334]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProblemReportReason=void 0,(function(o){o.MessageParseFailure="message-parse-failure"})(e.ProblemReportReason||(e.ProblemReportReason={}))},1334,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof d?r:d,u=Object.create(c.prototype),s=new K(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var y={};function d(){}function v(){}function w(){}var b={};f(b,u,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==n&&o.call(L,u)&&(b=L);var E=w.prototype=d.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function _(t,r){function n(i,c,u,s){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):r.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return A()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=S(u,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function K(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},r}function r(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,r){if(t){if("string"==typeof t)return o(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)?o(t,r):void 0}}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},c=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},u=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EnvelopeService=void 0;var s=(function(){function n(t){_r(_d[0])(this,n),this.logger=t}return _r(_d[1])(n,[{key:"packMessage",value:function(n,o,i){var c,u,s,l,f,h,p,y,d,v,w,b,x;return t().async(function(L){for(;;)switch(L.prev=L.next){case 0:return c=i.recipientKeys,u=i.routingKeys,s=i.senderKey,l=c.map(function(t){return t.publicKeyBase58}),f=u.map(function(t){return t.publicKeyBase58}),h=s&&s.publicKeyBase58,p=o.toJSON({useLegacyDidSovPrefix:n.config.useLegacyDidSovPrefix}),this.logger.debug("Pack outbound message "+p['@type']),L.next=8,t().awrap(n.wallet.pack(p,l,null!==h&&void 0!==h?h:void 0));case 8:y=L.sent,d=r(f);case 10:if((v=d()).done){L.next=21;break}return w=v.value,b=new(_r(_d[2]).ForwardMessage)({to:l[0],message:y}),l=[w],this.logger.debug('Forward message created',b),x=b.toJSON({useLegacyDidSovPrefix:n.config.useLegacyDidSovPrefix}),L.next=18,t().awrap(n.wallet.pack(x,[w],void 0));case 18:y=L.sent;case 19:L.next=10;break;case 21:return L.abrupt("return",y);case 22:case"end":return L.stop()}},null,this,null,Promise)}},{key:"unpackMessage",value:function(r,n){var o,i,c,u;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t().awrap(r.wallet.unpack(n));case 2:return o=s.sent,i=o.recipientKey,c=o.senderKey,u=o.plaintextMessage,s.abrupt("return",{recipientKey:i?_r(_d[3]).Key.fromPublicKeyBase58(i,_r(_d[3]).KeyType.Ed25519):void 0,senderKey:c?_r(_d[3]).Key.fromPublicKeyBase58(c,_r(_d[3]).KeyType.Ed25519):void 0,plaintextMessage:u});case 5:case"end":return s.stop()}},null,null,null,Promise)}}]),n})();s=i([(0,_r(_d[4]).injectable)(),u(0,(0,_r(_d[4]).inject)(_r(_d[5]).InjectionSymbols.Logger)),c("design:paramtypes",[Object])],s),e.EnvelopeService=s},1335,[7,8,1336,989,1019,1103]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1336,[1337,1338,1339,1340,1341,1342]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,s=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(c<3?n(s):c>3?n(t,r,s):n(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ForwardMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.to=e.to,t.message=e.message),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/routing/1.0/forward'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),r("design:type",String)],o.prototype,"to",void 0),t([(0,_r(_d[8]).Expose)({name:'msg'}),(0,_r(_d[7]).IsObject)(),r("design:type",Object)],o.prototype,"message",void 0),_e.ForwardMessage=o},1337,[14,11,9,7,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t,i=this&&this.__decorate||function(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(o<3?r(c):o>3?r(t,i,c):r(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.KeylistUpdateMessage=_e.KeylistUpdate=_e.KeylistUpdateAction=void 0,(function(e){e.add="add",e.remove="remove"})(t=_e.KeylistUpdateAction||(_e.KeylistUpdateAction={}));var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.recipientKey=t.recipientKey,this.action=t.action)});i([(0,_r(_d[4]).IsString)(),(0,_r(_d[5]).Expose)({name:'recipient_key'}),n("design:type",String)],r.prototype,"recipientKey",void 0),i([(0,_r(_d[4]).IsEnum)(t),n("design:type",String)],r.prototype,"action",void 0),_e.KeylistUpdate=r;var o=(function(t){_r(_d[6])(o,t);var i,n,r=(i=o,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=r.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.updates=e.updates),t}return _r(_d[2])(o)})(_r(_d[7]).AgentMessage);o.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/keylist-update'),i([(0,_r(_d[8]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),i([(0,_r(_d[5]).Type)(function(){return r}),(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[4]).IsInstance)(r,{each:!0}),n("design:type",Array)],o.prototype,"updates",void 0),_e.KeylistUpdateMessage=o},1338,[14,11,8,7,661,626,9,948,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t,r=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.KeylistUpdateResponseMessage=_e.KeylistUpdated=_e.KeylistUpdateResult=void 0,(function(e){e.ClientError="client_error",e.ServerError="server_error",e.NoChange="no_change",e.Success="success"})(t=_e.KeylistUpdateResult||(_e.KeylistUpdateResult={}));var i=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.recipientKey=t.recipientKey,this.action=t.action,this.result=t.result)});r([(0,_r(_d[4]).IsString)(),(0,_r(_d[5]).Expose)({name:'recipient_key'}),n("design:type",String)],i.prototype,"recipientKey",void 0),r([(0,_r(_d[4]).IsEnum)(_r(_d[6]).KeylistUpdateAction),n("design:type",String)],i.prototype,"action",void 0),r([(0,_r(_d[4]).IsEnum)(t),n("design:type",String)],i.prototype,"result",void 0),_e.KeylistUpdated=i;var s=(function(t){_r(_d[7])(s,t);var r,n,i=(r=s,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t;return _r(_d[3])(this,s),(t=i.call(this)).type=s.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.updated=e.keylist,t.setThread({threadId:e.threadId})),t}return _r(_d[2])(s)})(_r(_d[8]).AgentMessage);s.type=(0,_r(_d[9]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/keylist-update-response'),r([(0,_r(_d[9]).IsValidMessageType)(s.type),n("design:type",Object)],s.prototype,"type",void 0),r([(0,_r(_d[5]).Type)(function(){return i}),(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[4]).IsInstance)(i,{each:!0}),n("design:type",Array)],s.prototype,"updated",void 0),_e.KeylistUpdateResponseMessage=s},1339,[14,11,8,7,661,626,1338,9,948,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationGrantMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.endpoint=e.endpoint,t.routingKeys=e.routingKeys,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-grant'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsNotEmpty)(),(0,_r(_d[7]).IsArray)(),(0,_r(_d[8]).Expose)({name:'routing_keys'}),r("design:type",Array)],n.prototype,"routingKeys",void 0),t([(0,_r(_d[7]).IsNotEmpty)(),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"endpoint",void 0),_e.MediationGrantMessage=n},1340,[14,11,9,7,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,c=arguments.length,i=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var f=e.length-1;f>=0;f--)(o=e[f])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationDenyMessage=void 0;var r=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-deny'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),_e.MediationDenyMessage=r},1341,[14,11,9,7,8,948,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRequestMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.addLocale(e.locale||'en')),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/coordinate-mediation/1.0/mediate-request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.MediationRequestMessage=n},1342,[14,11,9,7,8,948,941]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var n=this&&this.__decorate||function(n,t,i,o){var r,s=arguments.length,c=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(n,t,i,o);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(c=(s<3?r(c):s>3?r(t,i,c):r(t,i))||c);return s>3&&c&&Object.defineProperty(t,i,c),c};Object.defineProperty(e,"__esModule",{value:!0}),e.TransportService=void 0;var t=(function(){function n(){_r(_d[0])(this,n),this.transportSessionTable={}}return _r(_d[1])(n,[{key:"saveSession",value:function(n){this.transportSessionTable[n.id]=n}},{key:"findSessionByConnectionId",value:function(n){return Object.values(this.transportSessionTable).find(function(t){var i;return(null===(i=null===t||void 0===t?void 0:t.connection)||void 0===i?void 0:i.id)===n})}},{key:"hasInboundEndpoint",value:function(n){var t;return Boolean(null===(t=n.service)||void 0===t?void 0:t.find(function(n){return n.serviceEndpoint!==_r(_d[2]).DID_COMM_TRANSPORT_QUEUE}))}},{key:"findSessionById",value:function(n){return this.transportSessionTable[n]}},{key:"removeSession",value:function(n){delete this.transportSessionTable[n.id]}}]),n})();t=n([(0,_r(_d[3]).injectable)()],t),e.TransportService=t},1343,[7,8,1103,1019]); +__d(function(g,_r,_i,_a2,_m,e,_d2){"use strict";function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=r(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(c&&u){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var i=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,a=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,r,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(s<3?i(a):s>3?i(r,n,a):i(r,n))||a);return s>3&&a&&Object.defineProperty(r,n,a),a},s=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},a=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}},c=this&&this.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(n){r[n]=t[n]&&function(r){return new Promise(function(o,s){i(o,s,(r=t[n](r)).done,r.value)})}}function i(t,r,n,o){Promise.resolve(o).then(function(r){t({value:r,done:n})},r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.isDidCommTransportQueue=e.MessageSender=void 0;var u=(function(){function r(t,n,o,i,s,a,c){_r(_d2[0])(this,r),this.outboundTransports=[],this.envelopeService=t,this.transportService=n,this.messageRepository=o,this.logger=i,this.didResolverService=s,this.didCommDocumentService=a,this.eventEmitter=c,this.outboundTransports=[]}return _r(_d2[1])(r,[{key:"registerOutboundTransport",value:function(t){this.outboundTransports.push(t)}},{key:"packMessage",value:function(t,r){var n,i,s,a;return o().async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=r.keys,i=r.message,s=r.endpoint,c.next=3,o().awrap(this.envelopeService.packMessage(t,i,n));case 3:return a=c.sent,c.abrupt("return",{payload:a,responseRequested:i.hasAnyReturnRoute(),endpoint:s});case 5:case"end":return c.stop()}},null,this,null,Promise)}},{key:"sendMessageToSession",value:function(t,r,n){var i;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:if(this.logger.debug("Existing "+r.type+" transport session has been found."),r.keys){s.next=3;break}throw new(_r(_d2[2]).AriesFrameworkError)("There are no keys for the given "+r.type+" transport session.");case 3:return s.next=5,o().awrap(this.envelopeService.packMessage(t,n,r.keys));case 5:return i=s.sent,s.next=8,o().awrap(r.send(i));case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"sendPackage",value:function(r,n){var i,s,a,u,d,l,v,h,p,f,y,b,m,w,S,x,k,E,M,O,L;return o().async(function(T){for(;;)switch(T.prev=T.next){case 0:if(i=n.connection,s=n.encryptedMessage,a=n.options,p=[],f=this.transportService.findSessionByConnectionId(i.id),!(null===(h=null===f||void 0===f?void 0:f.inboundMessage)||void 0===h?void 0:h.hasReturnRouting())){T.next=14;break}return T.prev=4,T.next=7,o().awrap(f.send(s));case 7:return T.abrupt("return");case 10:T.prev=10,T.t0=T.catch(4),p.push(T.t0),this.logger.debug("Sending packed message via session failed with error: "+T.t0.message+".",T.t0);case 14:return T.next=16,o().awrap(this.retrieveServicesByConnection(r,i,null===a||void 0===a?void 0:a.transportPriority));case 16:if(y=T.sent,b=y.services,m=y.queueService,0!==this.outboundTransports.length||m){T.next=21;break}throw new(_r(_d2[2]).AriesFrameworkError)('Agent has no outbound transport!');case 21:T.prev=21,w=!0,S=c(b);case 23:return T.next=25,o().awrap(S.next());case 25:if(x=T.sent,u=x.done){T.next=55;break}v=x.value,w=!1,T.prev=30,k=v,this.logger.debug("Sending outbound message to service:",{service:k}),T.prev=33,E=(0,_r(_d2[3]).getProtocolScheme)(k.serviceEndpoint),M=t(this.outboundTransports);case 36:if((O=M()).done){T.next=44;break}if(!(L=O.value).supportedSchemes.includes(E)){T.next=42;break}return T.next=41,o().awrap(L.sendMessage({payload:s,endpoint:k.serviceEndpoint,connectionId:i.id}));case 41:return T.abrupt("break",44);case 42:T.next=36;break;case 44:return T.abrupt("return");case 47:T.prev=47,T.t1=T.catch(33),this.logger.debug("Sending outbound message to service with id "+k.id+" failed with the following error:",{message:T.t1.message,error:T.t1});case 50:return T.prev=50,w=!0,T.finish(50);case 53:T.next=23;break;case 55:T.next=60;break;case 57:T.prev=57,T.t2=T.catch(21),d={error:T.t2};case 60:if(T.prev=60,T.prev=61,w||u||!(l=S.return)){T.next=65;break}return T.next=65,o().awrap(l.call(S));case 65:if(T.prev=65,!d){T.next=68;break}throw d.error;case 68:return T.finish(65);case 69:return T.finish(60);case 70:if(!m){T.next=75;break}return this.logger.debug("Queue packed message for connection "+i.id+" ("+i.theirLabel+")"),T.next=74,o().awrap(this.messageRepository.add(i.id,s));case 74:return T.abrupt("return");case 75:throw this.logger.error("Message is undeliverable to connection "+i.id+" ("+i.theirLabel+")",{message:s,errors:p,connection:i}),new(_r(_d2[2]).AriesFrameworkError)("Message is undeliverable to connection "+i.id+" ("+i.theirLabel+")");case 77:case"end":return T.stop()}},null,this,[[4,10],[21,57,60,70],[30,,50,53],[33,47],[61,,65,69]],Promise)}},{key:"sendMessage",value:function(t,r){var n,i,s,a,u,d,v,h,p,f,y,b,m,w,S,x,k,E,M,O,L,T,R,P,_,j,I;return o().async(function(D){for(;;)switch(D.prev=D.next){case 0:if(v=t.agentContext,h=t.connection,p=t.outOfBand,f=t.sessionId,y=t.message,b=[],h){D.next=6;break}throw this.logger.error('Outbound message has no associated connection'),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)('Outbound message has no associated connection',{outboundMessageContext:t});case 6:if(this.logger.debug('Send outbound message',{message:y,connectionId:h.id}),f&&(m=this.transportService.findSessionById(f)),m||(m=this.transportService.findSessionByConnectionId(h.id)),!(null===(u=null===m||void 0===m?void 0:m.inboundMessage)||void 0===u?void 0:u.hasReturnRouting(y.threadId))){D.next=22;break}return this.logger.debug("Found session with return routing for message '"+y.id+"' (connection '"+h.id+"'"),D.prev=11,D.next=14,o().awrap(this.sendMessageToSession(v,m,y));case 14:return this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.SentToSession),D.abrupt("return");case 18:D.prev=18,D.t0=D.catch(11),b.push(D.t0),this.logger.debug("Sending an outbound message via session failed with error: "+D.t0.message+".",D.t0);case 22:return w=[],D.prev=23,D.next=27,o().awrap(this.retrieveServicesByConnection(v,h,null===r||void 0===r?void 0:r.transportPriority,p));case 27:x=D.sent,w=x.services,S=x.queueService,D.next=37;break;case 32:throw D.prev=32,D.t1=D.catch(23),this.logger.error("Unable to retrieve services for connection '"+h.id),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)("Unable to retrieve services for connection '"+h.id,{outboundMessageContext:t,cause:D.t1});case 37:if(h.did){D.next=41;break}throw this.logger.error("Unable to send message using connection '"+h.id+"' that doesn't have a did"),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)("Unable to send message using connection '"+h.id+"' that doesn't have a did",{outboundMessageContext:t});case 41:return D.prev=41,D.next=44,o().awrap(this.didResolverService.resolveDidDocument(v,h.did));case 44:k=D.sent,D.next=52;break;case 47:throw D.prev=47,D.t2=D.catch(41),this.logger.error("Unable to resolve DID Document for '"+h.did),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)("Unable to resolve DID Document for '"+h.did,{outboundMessageContext:t,cause:D.t2});case 52:E=l(k),M=_r(_d2[5])(E,1),O=M[0],L=void 0===(null===(d=y.transport)||void 0===d?void 0:d.returnRoute)&&!this.transportService.hasInboundEndpoint(k),D.prev=55,T=!0,R=c(w);case 57:return D.next=59,o().awrap(R.next());case 59:if(P=D.sent,n=P.done){D.next=82;break}return a=P.value,T=!1,D.prev=64,_=a,D.prev=66,D.next=69,o().awrap(this.sendToService(new(_r(_d2[4]).OutboundMessageContext)(y,{agentContext:v,serviceParams:{service:_,senderKey:O,returnRoute:L},connection:h})));case 69:return this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.SentToTransport),D.abrupt("return");case 73:D.prev=73,D.t3=D.catch(66),b.push(D.t3),this.logger.debug("Sending outbound message to service with id "+_.id+" failed with the following error:",{message:D.t3.message,error:D.t3});case 77:return D.prev=77,T=!0,D.finish(77);case 80:D.next=57;break;case 82:D.next=87;break;case 84:D.prev=84,D.t4=D.catch(55),i={error:D.t4};case 87:if(D.prev=87,D.prev=88,T||n||!(s=R.return)){D.next=92;break}return D.next=92,o().awrap(s.call(R));case 92:if(D.prev=92,!i){D.next=95;break}throw i.error;case 95:return D.finish(92);case 96:return D.finish(87);case 97:if(!S){D.next=107;break}return this.logger.debug("Queue message for connection "+h.id+" ("+h.theirLabel+")"),j={recipientKeys:S.recipientKeys,routingKeys:S.routingKeys,senderKey:O},D.next=102,o().awrap(this.envelopeService.packMessage(v,y,j));case 102:return I=D.sent,D.next=105,o().awrap(this.messageRepository.add(h.id,I));case 105:return this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.QueuedForPickup),D.abrupt("return");case 107:throw this.logger.error("Message is undeliverable to connection "+h.id+" ("+h.theirLabel+")",{message:y,errors:b,connection:h}),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)("Message is undeliverable to connection "+h.id+" ("+h.theirLabel+")",{outboundMessageContext:t});case 110:case"end":return D.stop()}},null,this,[[11,18],[23,32],[41,47],[55,84,87,97],[64,,77,80],[66,73],[88,,92,96]],Promise)}},{key:"sendMessageToService",value:function(t){var r,n;return o().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,o().awrap(this.sendToService(t));case 3:this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.SentToTransport),i.next=11;break;case 6:throw i.prev=6,i.t0=i.catch(0),this.logger.error("Message is undeliverable to service with id "+(null===(r=t.serviceParams)||void 0===r?void 0:r.service.id)+": "+i.t0.message,{message:t.message,error:i.t0}),this.emitMessageSentEvent(t,_r(_d2[4]).OutboundMessageSendStatus.Undeliverable),new(_r(_d2[2]).MessageSendingError)("Message is undeliverable to service with id "+(null===(n=t.serviceParams)||void 0===n?void 0:n.service.id)+": "+i.t0.message,{outboundMessageContext:t});case 11:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"sendToService",value:function(r){var n,i,s,a,c,u,d,l,v,h,p,f,y;return o().async(function(b){for(;;)switch(b.prev=b.next){case 0:if(n=r.agentContext,i=r.message,s=r.serviceParams,a=r.connection,s){b.next=3;break}throw new(_r(_d2[2]).AriesFrameworkError)('No service parameters found in outbound message context');case 3:if(c=s.service,u=s.senderKey,d=s.returnRoute,0!==this.outboundTransports.length){b.next=6;break}throw new(_r(_d2[2]).AriesFrameworkError)('Agent has no outbound transport!');case 6:this.logger.debug("Sending outbound message to service:",{messageId:i.id,service:_r(_d2[6])(_r(_d2[6])({},c),{recipientKeys:'omitted...',routingKeys:'omitted...'})}),l={recipientKeys:c.recipientKeys,routingKeys:c.routingKeys,senderKey:u},d&&i.setReturnRouting(_r(_d2[7]).ReturnRouteTypes.all),b.prev=9,_r(_d2[8]).MessageValidator.validateSync(i),b.next=17;break;case 13:throw b.prev=13,b.t0=b.catch(9),this.logger.error("Aborting sending outbound message "+i.type+" to "+c.serviceEndpoint+". Message validation failed",{errors:b.t0,message:i.toJSON()}),b.t0;case 17:return b.next=19,o().awrap(this.packMessage(n,{message:i,keys:l,endpoint:c.serviceEndpoint}));case 19:(v=b.sent).endpoint=c.serviceEndpoint,v.connectionId=null===a||void 0===a?void 0:a.id,h=t(this.outboundTransports);case 23:if((p=h()).done){b.next=36;break}if(f=p.value,y=(0,_r(_d2[3]).getProtocolScheme)(c.serviceEndpoint)){b.next=30;break}this.logger.warn('Service does not have valid protocolScheme.'),b.next=34;break;case 30:if(!f.supportedSchemes.includes(y)){b.next=34;break}return b.next=33,o().awrap(f.sendMessage(v));case 33:return b.abrupt("return");case 34:b.next=23;break;case 36:throw new(_r(_d2[2]).MessageSendingError)("Unable to send message to service: "+c.serviceEndpoint,{outboundMessageContext:r});case 37:case"end":return b.stop()}},null,this,[[9,13]],Promise)}},{key:"retrieveServicesByConnection",value:function(r,n,i,s){var a,c,u,l,v,h,p,f;return o().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(this.logger.debug("Retrieving services for connection '"+n.id+"' ("+n.theirLabel+")",{transportPriority:i,connection:n}),c=[],!n.theirDid){y.next=9;break}return this.logger.debug("Resolving services for connection theirDid "+n.theirDid+"."),y.next=6,o().awrap(this.didCommDocumentService.resolveServicesFromDid(r,n.theirDid));case 6:c=y.sent,y.next=30;break;case 9:if(!s){y.next=30;break}if(this.logger.debug("Resolving services from out-of-band record "+s.id+"."),!n.isRequester){y.next=30;break}u=t(s.outOfBandInvitation.getServices());case 13:if((l=u()).done){y.next=30;break}if('string'!=typeof(v=l.value)){y.next=27;break}return this.logger.debug("Resolving services for did "+v+"."),y.t0=(h=c).push,y.t1=h,y.t2=_r(_d2[9]),y.next=22,o().awrap(this.didCommDocumentService.resolveServicesFromDid(r,v));case 22:y.t3=y.sent,y.t4=(0,y.t2)(y.t3),y.t0.apply.call(y.t0,y.t1,y.t4),y.next=28;break;case 27:c.push({id:v.id,recipientKeys:v.recipientKeys.map(_r(_d2[10]).didKeyToInstanceOfKey),routingKeys:(null===(a=v.routingKeys)||void 0===a?void 0:a.map(_r(_d2[10]).didKeyToInstanceOfKey))||[],serviceEndpoint:v.serviceEndpoint});case 28:y.next=13;break;case 30:return p=c.filter(function(t){return!d(t.serviceEndpoint)}),f=c.find(function(t){return d(t.serviceEndpoint)}),(null===i||void 0===i?void 0:i.restrictive)&&(p=p.filter(function(t){var r=(0,_r(_d2[3]).getProtocolScheme)(t.serviceEndpoint);return i.schemes.includes(r)})),(null===i||void 0===i?void 0:i.schemes)&&(p=p.sort(function(t,r){var n=(0,_r(_d2[3]).getProtocolScheme)(t.serviceEndpoint),o=(0,_r(_d2[3]).getProtocolScheme)(r.serviceEndpoint);return(null===i||void 0===i?void 0:i.schemes.indexOf(n))-(null===i||void 0===i?void 0:i.schemes.indexOf(o))})),this.logger.debug("Retrieved "+p.length+" services for message to connection '"+n.id+"'("+n.theirLabel+")'",{hasQueueService:void 0!==f}),y.abrupt("return",{services:p,queueService:f});case 36:case"end":return y.stop()}},null,this,null,Promise)}},{key:"emitMessageSentEvent",value:function(t,r){var n=t.agentContext;this.eventEmitter.emit(n,{type:_r(_d2[11]).AgentEventTypes.AgentMessageSent,payload:{message:t,status:r}})}}]),r})();function d(t){return t===_r(_d2[13]).DID_COMM_TRANSPORT_QUEUE}function l(t){var r,n;return null!==(n=null===(r=t.authentication)||void 0===r?void 0:r.map(function(r){var n='string'==typeof r?t.dereferenceVerificationMethod(r):r;return(0,(0,_r(_d2[19]).getKeyDidMappingByVerificationMethod)(n).getKeyFromVerificationMethod)(n)}))&&void 0!==n?n:[]}u=i([(0,_r(_d2[12]).injectable)(),a(2,(0,_r(_d2[12]).inject)(_r(_d2[13]).InjectionSymbols.MessageRepository)),a(3,(0,_r(_d2[12]).inject)(_r(_d2[13]).InjectionSymbols.Logger)),s("design:paramtypes",[_r(_d2[14]).EnvelopeService,_r(_d2[15]).TransportService,Object,Object,_r(_d2[16]).DidResolverService,_r(_d2[17]).DidCommDocumentService,_r(_d2[18]).EventEmitter])],u),e.MessageSender=u,e.isDidCommTransportQueue=d},1344,[7,8,611,1068,622,31,4,971,660,42,985,1345,1019,1103,1335,1343,1346,1414,1104,1078]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AgentEventTypes=e.filterContextCorrelationId=void 0,e.filterContextCorrelationId=function(t){return function(n){return n.pipe((0,r(d[0]).filter)(function(n){return n.metadata.contextCorrelationId===t}))}},(function(t){t.AgentMessageReceived="AgentMessageReceived",t.AgentMessageProcessed="AgentMessageProcessed",t.AgentMessageSent="AgentMessageSent"})(e.AgentEventTypes||(e.AgentEventTypes={}))},1345,[1105]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof v?r:v,u=Object.create(c.prototype),s=new P(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function v(){}function y(){}function w(){}var b={};f(b,u,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(M([])));L&&L!==n&&o.call(L,u)&&(b=L);var _=w.prototype=v.prototype=Object.create(b);function E(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,u,s){var l=d(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):r.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return S()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=k(u,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=d(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function R(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function D(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function M(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;D(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidResolverService=void 0;var i=(function(){function r(t,n){_r(_d[0])(this,r),this.logger=t,this.didsModuleConfig=n}return _r(_d[1])(r,[{key:"resolve",value:function(r,n){var o,i,c,u,s=arguments;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:o=s.length>2&&void 0!==s[2]?s[2]:{},this.logger.debug("resolving didUrl "+n),i={didResolutionMetadata:{},didDocument:null,didDocumentMetadata:{}},t.prev=3,c=(0,_r(_d[2]).parseDid)(n),t.next=10;break;case 7:return t.prev=7,t.t0=t.catch(3),t.abrupt("return",_r(_d[3])(_r(_d[3])({},i),{didResolutionMetadata:{error:'invalidDid'}}));case 10:if(u=this.findResolver(c)){t.next=13;break}return t.abrupt("return",_r(_d[3])(_r(_d[3])({},i),{didResolutionMetadata:{error:'unsupportedDidMethod'}}));case 13:return t.abrupt("return",u.resolve(r,c.did,c,o));case 14:case"end":return t.stop()}},null,this,[[3,7]],Promise)}},{key:"resolveDidDocument",value:function(r,n){var o,i,c,u,s;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,t().awrap(this.resolve(r,n));case 2:if(o=l.sent,i=o.didDocument,c=o.didResolutionMetadata,u=c.error,s=c.message,i){l.next=9;break}throw new(_r(_d[4]).AriesFrameworkError)("Unable to resolve did document for did '"+n+"': "+u+" "+s);case 9:return l.abrupt("return",i);case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"findResolver",value:function(t){var r;return null!==(r=this.didsModuleConfig.resolvers.find(function(r){return r.supportedMethods.includes(t.method)}))&&void 0!==r?r:null}}]),r})();i=r([(0,_r(_d[5]).injectable)(),o(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,_r(_d[7]).DidsModuleConfig])],i),e.DidResolverService=i},1346,[7,8,1089,4,611,1019,1103,1347]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidsModuleConfig=void 0;var s=(function(){function s(n){r(d[0])(this,s),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(s,[{key:"registrars",get:function(){var s;if(this._registrars)return this._registrars;var n=null!==(s=this.options.registrars)&&void 0!==s?s:[new(r(d[2]).KeyDidRegistrar),new(r(d[2]).IndySdkSovDidRegistrar),new(r(d[2]).PeerDidRegistrar)];return n.find(function(s){return s instanceof r(d[2]).PeerDidRegistrar})||(n=[].concat(r(d[3])(n),[new(r(d[2]).PeerDidRegistrar)])),this._registrars=n,n}},{key:"addRegistrar",value:function(s){this.registrars.push(s)}},{key:"resolvers",get:function(){var s;if(this._resolvers)return this._resolvers;var n=null!==(s=this.options.resolvers)&&void 0!==s?s:[new(r(d[2]).IndySdkSovDidResolver),new(r(d[2]).WebDidResolver),new(r(d[2]).KeyDidResolver),new(r(d[2]).PeerDidResolver)];return n.find(function(s){return s instanceof r(d[2]).PeerDidResolver})||(n=[].concat(r(d[3])(n),[new(r(d[2]).PeerDidResolver)])),this._resolvers=n,n}},{key:"addResolver",value:function(s){this.resolvers.push(s)}}]),s})();e.DidsModuleConfig=s},1347,[7,8,1348,42]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1348,[986,1349,1357,1410]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1349,[1350,1355,1352,1356]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,u=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var c=n&&n.prototype instanceof w?n:w,s=Object.create(c.prototype),l=new j(i||[]);return u(s,"_invoke",{value:_(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var D={};h(D,s,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(A([])));k&&k!==o&&i.call(k,s)&&(D=k);var E=x.prototype=w.prototype=Object.create(D);function M(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){function o(u,c,s,l){var f=v(t[u],t,c);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var c;u(this,"_invoke",{value:function(t,i){function u(){return new n(function(n,u){o(t,i,n,u)})}return c=c?c.then(u,u):u()}})}function _(t,n,o){var i="suspendedStart";return function(u,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===u)throw c;return R()}for(o.method=u,o.arg=c;;){var s=o.delegate;if(s){var l=N(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var u=v(i,t.iterator,n.arg);if("throw"===u.type)return n.method="throw",n.arg=u.arg,n.delegate=null,y;var c=u.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function n(){for(;++o=0;--u){var c=this.tryEntries[u],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),f=i.call(c,"finallyLoc");if(l&&f){if(this.prev=0;--o){var u=this.tryEntries[o];if(u.tryLoc<=this.prev&&i.call(u,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var u=i.arg;P(o)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.PeerDidRegistrar=void 0;var n=(function(){function n(){r(d[0])(this,n),this.supportedMethods=['peer']}return r(d[1])(n,[{key:"create",value:function(n,c){var s,l,f,h,p,v,y,w,b,x,D,L;return t().async(function(k){for(;;)switch(k.prev=k.next){case 0:if(f=n.dependencyManager.resolve(r(d[2]).DidRepository),k.prev=1,!i(c)){k.next=15;break}if(p=c.options.keyType,v=null===(s=c.secret)||void 0===s?void 0:s.seed,p){k.next=7;break}return k.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Missing key type'}});case 7:if(!v||'string'==typeof v&&32===v.length){k.next=9;break}return k.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 9:return k.next=11,t().awrap(n.wallet.createKey({keyType:p,seed:v}));case 11:y=k.sent,h=(0,r(d[3]).keyToNumAlgo0DidDocument)(y),k.next=28;break;case 15:if(!o(c)){k.next=21;break}w=c.didDocument.toJSON(),b=(0,r(d[4]).didDocumentJsonToNumAlgo1Did)(w),h=r(d[5]).JsonTransformer.fromJSON(r(d[6])(r(d[6])({},w),{id:b}),r(d[7]).DidDocument),k.next=28;break;case 21:if(!u(c)){k.next=27;break}x=c.didDocument.toJSON(),D=(0,r(d[8]).didDocumentToNumAlgo2Did)(c.didDocument),h=r(d[5]).JsonTransformer.fromJSON(r(d[6])(r(d[6])({},x),{id:D}),r(d[7]).DidDocument),k.next=28;break;case 27:return k.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"Missing or incorrect numAlgo provided"}});case 28:return L=new(r(d[2]).DidRecord)({did:h.id,role:r(d[9]).DidDocumentRole.Created,didDocument:o(c)?h:void 0,tags:{recipientKeyFingerprints:h.recipientKeys.map(function(t){return t.fingerprint})}}),k.next=31,t().awrap(f.save(n,L));case 31:return k.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'finished',did:h.id,didDocument:h,secret:{seed:null===(l=c.secret)||void 0===l?void 0:l.seed}}});case 34:return k.prev=34,k.t0=k.catch(1),k.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknown error: "+k.t0.message}});case 37:case"end":return k.stop()}},null,null,[[1,34]],Promise)}},{key:"update",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: updating did:peer not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: deactivating did:peer not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();function o(t){return t.options.numAlgo===r(d[10]).PeerDidNumAlgo.GenesisDoc}function i(t){return t.options.numAlgo===r(d[10]).PeerDidNumAlgo.InceptionKeyWithoutDoc}function u(t){return t.options.numAlgo===r(d[10]).PeerDidNumAlgo.MultipleInceptionKeyWithoutDoc}e.PeerDidRegistrar=n},1350,[7,8,1092,1351,1353,992,4,1097,1354,1098,1352]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.didToNumAlgo0DidDocument=e.keyToNumAlgo0DidDocument=void 0,e.keyToNumAlgo0DidDocument=function(o){var t="did:peer:0"+o.fingerprint;return(0,r(d[0]).getDidDocumentForKey)(t,o)},e.didToNumAlgo0DidDocument=function(o){var t=(0,r(d[1]).parseDid)(o),n=(0,r(d[2]).getNumAlgoFromPeerDid)(o);if(!(0,r(d[2]).isValidPeerDid)(o))throw new Error("Invalid peer did '"+o+"'");if(n!==r(d[2]).PeerDidNumAlgo.InceptionKeyWithoutDoc)throw new Error("Invalid numAlgo "+n+", expected "+r(d[2]).PeerDidNumAlgo.InceptionKeyWithoutDoc);var u=r(d[3]).Key.fromFingerprint(t.id.substring(1));return(0,r(d[0]).getDidDocumentForKey)(o,u)}},1351,[988,1089,1352,989]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumAlgoFromPeerDid=e.PeerDidNumAlgo=e.isValidPeerDid=void 0;var o,t=new RegExp('^did:peer:(([01](z)([1-9a-km-zA-HJ-NP-Z]{5,200}))|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{5,200}))+(.(S)[0-9a-zA-Z=]*)?)))$');e.isValidPeerDid=function(o){return t.test(o)},(function(o){o[o.InceptionKeyWithoutDoc=0]="InceptionKeyWithoutDoc",o[o.GenesisDoc=1]="GenesisDoc",o[o.MultipleInceptionKeyWithoutDoc=2]="MultipleInceptionKeyWithoutDoc"})(o=e.PeerDidNumAlgo||(e.PeerDidNumAlgo={})),e.getNumAlgoFromPeerDid=function(t){var n=Number(t[9]);if(n!==o.InceptionKeyWithoutDoc&&n!==o.GenesisDoc&&n!==o.MultipleInceptionKeyWithoutDoc)throw new Error("Invalid peer did numAlgo: "+n);return n}},1352,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.didDocumentJsonToNumAlgo1Did=void 0,e.didDocumentJsonToNumAlgo1Did=function(o){var n=r(d[0]).JsonEncoder.toBuffer(r(d[1])(r(d[1])({},o),{id:void 0}));return"did:peer:1"+r(d[0]).MultiBaseEncoder.encode(r(d[0]).MultiHashEncoder.encode(n,'sha2-256'),'base58btc')}},1353,[992,4]); +__d(function(g,r,_i2,a,m,e,d){"use strict";function i(i,t){var o="undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(o)return(o=o.call(i)).next.bind(o);if(Array.isArray(i)||(o=n(i))||t&&i&&"number"==typeof i.length){o&&(i=o);var c=0;return function(){return c>=i.length?{done:!0}:{done:!1,value:i[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(i,n){if(i){if("string"==typeof i)return t(i,n);var o=Object.prototype.toString.call(i).slice(8,-1);return"Object"===o&&i.constructor&&(o=i.constructor.name),"Map"===o||"Set"===o?Array.from(i):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(i,n):void 0}}function t(i,n){(null==n||n>i.length)&&(n=i.length);for(var t=0,o=new Array(n);t0){var D=i.service.map(function(i){var n=r(d[2]).JsonTransformer.toJSON(i);return delete n.id,f(n)}),A=r(d[2]).JsonEncoder.toBase64URL(1===D.length?D[0]:D);c+="."+o.Service+A}return c}function l(i){var n=function(i){var n;return null!==(n=s[i])&&void 0!==n?n:i};return Object.entries(i).reduce(function(i,t){var o=r(d[7])(t,2),c=o[0],u=o[1];return r(d[9])(r(d[9])({},i),r(d[6])({},n(c),n(u)))},{})}function f(i){var n=function(i){var n;return null!==(n=u[i])&&void 0!==n?n:i};return Object.entries(i).reduce(function(i,t){var o=r(d[7])(t,2),c=o[0],u=o[1];return r(d[9])(r(d[9])({},i),r(d[6])({},n(c),n(u)))},{})}function p(i,n,t){var u,s=(u={},r(d[6])(u,o.Assertion,i.addAssertionMethod.bind(i)),r(d[6])(u,o.Encryption,i.addKeyAgreement.bind(i)),r(d[6])(u,o.Verification,i.addAuthentication.bind(i)),r(d[6])(u,o.CapabilityInvocation,i.addCapabilityInvocation.bind(i)),r(d[6])(u,o.CapabilityDelegation,i.addCapabilityDelegation.bind(i)),u);if(!c(t))throw new Error("Unsupported peer did purpose '"+t+"'");(0,s[t])(n)}e.didToNumAlgo2DidDocument=function(n){for(var t,c=(0,r(d[0]).parseDid)(n).id.substring(2).split('.'),u=new(r(d[1]).DidDocumentBuilder)(n),s=0,v=i(c);!(t=v()).done;){var f=t.value,y=f.substring(1),b=f[0];if(b===o.Service)for(var D,A=r(d[2]).JsonEncoder.fromBase64(y),h=i(A=Array.isArray(A)?A:[A]);!(D=h()).done;){var S=D.value;(S=l(S)).id=n+"#"+S.type.toLowerCase()+"-"+s++,u.addService(r(d[2]).JsonTransformer.fromJSON(S,r(d[3]).DidDocumentService))}else for(var K,C=r(d[4]).Key.fromFingerprint(y),E=i((0,(0,r(d[5]).getKeyDidMappingByKeyType)(C.keyType).getVerificationMethods)(n,C));!(K=E()).done;){var M=K.value;M.id=M.id.replace('#z','#'),p(u,M,b)}}return u.build()},e.didDocumentToNumAlgo2Did=v,e.outOfBandServiceToNumAlgo2Did=function(i){var n;return v(new(r(d[1]).DidDocumentBuilder)('').addService(new(r(d[3]).DidCommV1Service)({id:i.id,serviceEndpoint:i.serviceEndpoint,accept:i.accept,recipientKeys:i.recipientKeys.map(function(i){var n=r(d[8]).DidKey.fromDid(i);return n.did+"#"+n.key.fingerprint}),routingKeys:null===(n=i.routingKeys)||void 0===n?void 0:n.map(function(i){var n=r(d[8]).DidKey.fromDid(i);return n.did+"#"+n.key.fingerprint})})).build())}},1354,[1089,1063,992,1097,989,1078,248,31,986,4]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new F(i||[]);return c(s,"_invoke",{value:O(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};h(L,s,function(){return this});var E=Object.getPrototypeOf,D=E&&E(E(G([])));D&&D!==o&&i.call(D,s)&&(L=D);var _=x.prototype=w.prototype=Object.create(L);function k(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function O(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=P(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.PeerDidResolver=void 0;var n=(function(){function n(){r(d[0])(this,n),this.supportedMethods=['peer']}return r(d[1])(n,[{key:"resolve",value:function(n,o){var i,c,u,s,l,f,h;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(i=n.dependencyManager.resolve(r(d[2]).DidRepository),c={},p.prev=2,(0,r(d[3]).isValidPeerDid)(o)){p.next=5;break}throw new(r(d[4]).AriesFrameworkError)("did "+o+" is not a valid peer did");case 5:if((s=(0,r(d[3]).getNumAlgoFromPeerDid)(o))!==r(d[3]).PeerDidNumAlgo.InceptionKeyWithoutDoc){p.next=10;break}u=(0,r(d[5]).didToNumAlgo0DidDocument)(o),p.next=24;break;case 10:if(s!==r(d[3]).PeerDidNumAlgo.GenesisDoc){p.next=23;break}return p.next=13,t().awrap(i.findAllByDid(n,o));case 13:if(l=p.sent,f=r(d[6])(l,1),h=f[0]){p.next=18;break}throw new(r(d[4]).AriesFrameworkError)("No did record found for peer did "+o+".");case 18:if(h.didDocument){p.next=20;break}throw new(r(d[4]).AriesFrameworkError)("Found did record for method 1 peer did ("+o+"), but no did document.");case 20:u=h.didDocument,p.next=24;break;case 23:u=(0,r(d[7]).didToNumAlgo2DidDocument)(o);case 24:return p.abrupt("return",{didDocument:u,didDocumentMetadata:c,didResolutionMetadata:{contentType:'application/did+ld+json'}});case 27:return p.prev=27,p.t0=p.catch(2),p.abrupt("return",{didDocument:null,didDocumentMetadata:c,didResolutionMetadata:{error:'notFound',message:"resolver_error: Unable to resolve did '"+o+"': "+p.t0}});case 30:case"end":return p.stop()}},null,null,[[2,27]],Promise)}}]),n})();e.PeerDidResolver=n},1355,[7,8,1092,1352,611,1351,31,1354]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createPeerDidDocumentFromServices=void 0,e.createPeerDidDocumentFromServices=function(n){var t=new(r(d[0]).DidDocumentBuilder)(''),o={};return n.forEach(function(n,c){var u,y=n.recipientKeys.map(function(n){if(o[n.fingerprint])return o[n.fingerprint];if(n.keyType!==r(d[1]).KeyType.Ed25519)throw new(r(d[2]).AriesFrameworkError)("Unable to create did document from services. recipient key type "+n.keyType+" is not supported. Supported key types are "+r(d[1]).KeyType.Ed25519);var c=r(d[1]).Key.fromPublicKey((0,r(d[3]).convertPublicKeyToX25519)(n.publicKey),r(d[1]).KeyType.X25519),u=(0,r(d[4]).getEd25519VerificationMethod)({id:"#"+(0,r(d[5]).uuid)(),key:n,controller:'#id'}),y=(0,r(d[6]).getX25519VerificationMethod)({id:"#"+(0,r(d[5]).uuid)(),key:c,controller:'#id'});return o[n.fingerprint]=u.id,t.addAuthentication(u).addKeyAgreement(y),o[n.fingerprint]}),p=null===(u=n.routingKeys)||void 0===u?void 0:u.map(function(n){return new(r(d[7]).DidKey)(n).did+"#"+n.fingerprint});t.addService(new(r(d[8]).DidCommV1Service)({id:n.id,priority:c,serviceEndpoint:n.serviceEndpoint,recipientKeys:y,routingKeys:p}))}),t.build()}},1356,[1063,989,611,1081,1080,952,1087,986,1066]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1357,[1358,1409]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},d=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function f(t,r,n,i){var c=r&&r.prototype instanceof v?r:v,d=Object.create(c.prototype),s=new M(i||[]);return o(d,"_invoke",{value:k(t,n,s)}),d}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h={};function v(){}function y(){}function w(){}var b={};l(b,d,function(){return this});var x=Object.getPrototypeOf,D=x&&x(x(j([])));D&&D!==n&&i.call(D,d)&&(b=D);var E=w.prototype=v.prototype=Object.create(b);function L(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function S(t,r){function n(o,c,d,s){var u=p(t[o],t,c);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&i.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,d,s)},function(t){n("throw",t,d,s)}):r.resolve(f).then(function(t){l.value=t,d(l)},function(t){return n("throw",t,d,s)})}s(u.arg)}var c;o(this,"_invoke",{value:function(t,i){function o(){return new r(function(r,o){n(t,i,r,o)})}return c=c?c.then(o,o):o()}})}function k(t,r,n){var i="suspendedStart";return function(o,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw c;return O()}for(n.method=o,n.arg=c;;){var d=n.delegate;if(d){var s=P(d,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=p(t,r,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function P(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function _(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function R(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var r=t[d];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var c=this.tryEntries[o],d=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=i.call(c,"catchLoc"),u=i.call(c,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}var r=this&&this.__decorate||function(t,r,n,i){var o,c=arguments.length,d=c<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(d=(c<3?o(d):c>3?o(r,n,d):o(r,n))||d);return c>3&&d&&Object.defineProperty(r,n,d),d};Object.defineProperty(e,"__esModule",{value:!0}),e.IndySdkSovDidRegistrar=void 0;var n=(function(){function r(){_r(_d[0])(this,r),this.supportedMethods=['sov']}return _r(_d[1])(r,[{key:"create",value:function(r,n){var i,o,c,d,s,u,l,f,p,h,v,y,w,b,x,D,E,L,S,k,P,_,R;return t().async(function(M){for(;;)switch(M.prev=M.next){case 0:if(c=r.config.agentDependencies.indy,d=r.dependencyManager.resolve(_r(_d[2]).IndyPoolService),s=r.dependencyManager.resolve(_r(_d[3]).DidRepository),u=n.options,l=u.alias,f=u.role,p=u.submitterDid,h=u.indyNamespace,!(v=null===(i=n.secret)||void 0===i?void 0:i.seed)||'string'==typeof v&&32===v.length){M.next=7;break}return M.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Invalid seed provided'}});case 7:if(p.startsWith('did:sov:')){M.next=9;break}return M.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:'Submitter did must be a valid did:sov did'}});case 9:return M.prev=9,(0,_r(_d[4]).assertIndyWallet)(r.wallet),M.next=13,t().awrap(c.createAndStoreMyDid(r.wallet.handle,{seed:v}));case 13:return y=M.sent,w=_r(_d[5])(y,2),b=w[0],x=w[1],D="did:sov:"+b,E=p.replace('did:sov:',''),L=d.getPoolForNamespace(h),M.next=22,t().awrap(this.registerPublicDid(r,E,b,x,l,L,f));case 22:if(S=(0,_r(_d[6]).sovDidDocumentFromDid)(D,x),!n.options.endpoints){M.next=27;break}return M.next=26,t().awrap(this.setEndpointsForDid(r,b,n.options.endpoints,L));case 26:(0,_r(_d[6]).addServicesFromEndpointsAttrib)(S,D,n.options.endpoints,D+"#key-agreement-1");case 27:return k=S.build(),P=L.config.indyNamespace,_="did:indy:"+P+":"+b,R=new(_r(_d[3]).DidRecord)({did:D,role:_r(_d[7]).DidDocumentRole.Created,tags:{recipientKeyFingerprints:k.recipientKeys.map(function(t){return t.fingerprint}),qualifiedIndyDid:_}}),M.next=33,t().awrap(s.save(r,R));case 33:return M.abrupt("return",{didDocumentMetadata:{qualifiedIndyDid:_},didRegistrationMetadata:{didIndyNamespace:P},didState:{state:'finished',did:D,didDocument:k,secret:{seed:null===(o=n.secret)||void 0===o?void 0:o.seed}}});case 36:return M.prev=36,M.t0=M.catch(9),M.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"unknownError: "+M.t0.message}});case 39:case"end":return M.stop()}},null,this,[[9,36]],Promise)}},{key:"update",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: updating did:sov not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deactivate",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',reason:"notImplemented: deactivating did:sov not implemented yet"}});case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"registerPublicDid",value:function(r,n,i,o,c,d,s){var u,l,f,p;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return u=r.dependencyManager.resolve(_r(_d[2]).IndyPoolService),l=r.config.agentDependencies.indy,h.prev=2,r.config.logger.debug("Register public did '"+i+"' on ledger '"+d.id+"'"),h.next=6,t().awrap(l.buildNymRequest(n,i,o,c,s||null));case 6:return f=h.sent,h.next=9,t().awrap(u.submitWriteRequest(r,d,f,n));case 9:return p=h.sent,r.config.logger.debug("Registered public did '"+i+"' on ledger '"+d.id+"'",{response:p}),h.abrupt("return",i);case 14:throw h.prev=14,h.t0=h.catch(2),r.config.logger.error("Error registering public did '"+i+"' on ledger '"+d.id+"'",{error:h.t0,submitterDid:n,targetDid:i,verkey:o,alias:c,role:s,pool:d.id}),h.t0;case 18:case"end":return h.stop()}},null,null,[[2,14]],Promise)}},{key:"setEndpointsForDid",value:function(r,n,i,o){var c,d,s,u;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return c=r.dependencyManager.resolve(_r(_d[2]).IndyPoolService),d=r.config.agentDependencies.indy,l.prev=2,r.config.logger.debug("Set endpoints for did '"+n+"' on ledger '"+o.id+"'",i),l.next=6,t().awrap(d.buildAttribRequest(n,n,null,{endpoint:i},null));case 6:return s=l.sent,l.next=9,t().awrap(c.submitWriteRequest(r,o,s,n));case 9:u=l.sent,r.config.logger.debug("Successfully set endpoints for did '"+n+"' on ledger '"+o.id+"'",{response:u,endpoints:i}),l.next=17;break;case 13:throw l.prev=13,l.t0=l.catch(2),r.config.logger.error("Error setting endpoints for did '"+n+"' on ledger '"+o.id+"'",{error:l.t0,did:n,endpoints:i}),(0,_r(_d[8]).isIndyError)(l.t0)?new(_r(_d[9]).IndySdkError)(l.t0):l.t0;case 17:case"end":return l.stop()}},null,null,[[2,13]],Promise)}}]),r})();n=r([(0,_r(_d[10]).injectable)()],n),e.IndySdkSovDidRegistrar=n},1358,[7,8,1359,1092,1365,31,1408,1098,1362,611,1019]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1359,[1360,1387,1381,1407]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1360,[1361,1375]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,r,n){t[r]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function h(t,r,n,i){var s=r&&r.prototype instanceof v?r:v,c=Object.create(s.prototype),u=new L(i||[]);return o(c,"_invoke",{value:E(t,n,u)}),c}function f(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function v(){}function y(){}function w(){}var b={};l(b,c,function(){return this});var R=Object.getPrototypeOf,x=R&&R(R(q([])));x&&x!==n&&i.call(x,c)&&(b=x);var P=w.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function D(t,r){function n(o,s,c,u){var d=f(t[o],t,s);if("throw"!==d.type){var l=d.arg,h=l.value;return h&&"object"==typeof h&&i.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,c,u)},function(t){n("throw",t,c,u)}):r.resolve(h).then(function(t){l.value=t,c(l)},function(t){return n("throw",t,c,u)})}u(d.arg)}var s;o(this,"_invoke",{value:function(t,i){function o(){return new r(function(r,o){n(t,i,r,o)})}return s=s?s.then(o,o):o()}})}function E(t,r,n){var i="suspendedStart";return function(o,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw s;return j()}for(n.method=o,n.arg=s;;){var c=n.delegate;if(c){var u=I(c,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var d=f(t,r,n);if("normal"===d.type){if(i=n.done?"completed":"suspendedYield",d.arg===p)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(i="completed",n.method="throw",n.arg=d.arg)}}}function I(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function G(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function q(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var s=this.tryEntries[o],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),d=i.call(s,"finallyLoc");if(u&&d){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:q(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,i){var o,s=arguments.length,c=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(r,n,c):o(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyLedgerService=void 0;var o=(function(){function r(t,n,i,o){_r(_d[0])(this,r),this.indy=t.indy,this.logger=n,this.indyIssuer=i,this.indyPoolService=o}return _r(_d[1])(r,[{key:"setPools",value:function(t){return this.indyPoolService.setPools(t)}},{key:"getDidIndyWriteNamespace",value:function(){return this.indyPoolService.ledgerWritePool.config.indyNamespace}},{key:"connectToPools",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.indyPoolService.connectToPools());case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerPublicDid",value:function(r,n,i,o,s,c){var u,d,l;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return u=this.indyPoolService.getPoolForNamespace(),h.prev=1,this.logger.debug("Register public did '"+i+"' on ledger '"+u.id+"'"),h.next=5,t().awrap(this.indy.buildNymRequest(n,i,o,s,c||null));case 5:return d=h.sent,h.next=8,t().awrap(this.indyPoolService.submitWriteRequest(r,u,d,n));case 8:return l=h.sent,this.logger.debug("Registered public did '"+i+"' on ledger '"+u.id+"'",{response:l}),h.abrupt("return",i);case 13:throw h.prev=13,h.t0=h.catch(1),this.logger.error("Error registering public did '"+i+"' on ledger '"+u.id+"'",{error:h.t0,submitterDid:n,targetDid:i,verkey:o,alias:s,role:c,pool:u.id}),h.t0;case 17:case"end":return h.stop()}},null,this,[[1,13]],Promise)}},{key:"getPublicDid",value:function(r,n){var i,o;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t().awrap(this.indyPoolService.getPoolForDid(r,n));case 2:return i=s.sent,o=i.did,s.abrupt("return",o);case 5:case"end":return s.stop()}},null,this,null,Promise)}},{key:"setEndpointsForDid",value:function(r,n,i){var o,s,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return o=this.indyPoolService.getPoolForNamespace(),u.prev=1,this.logger.debug("Set endpoints for did '"+n+"' on ledger '"+o.id+"'",i),u.next=5,t().awrap(this.indy.buildAttribRequest(n,n,null,{endpoint:i},null));case 5:return s=u.sent,u.next=8,t().awrap(this.indyPoolService.submitWriteRequest(r,o,s,n));case 8:c=u.sent,this.logger.debug("Successfully set endpoints for did '"+n+"' on ledger '"+o.id+"'",{response:c,endpoints:i}),u.next=16;break;case 12:throw u.prev=12,u.t0=u.catch(1),this.logger.error("Error setting endpoints for did '"+n+"' on ledger '"+o.id+"'",{error:u.t0,did:n,endpoints:i}),(0,_r(_d[2]).isIndyError)(u.t0)?new(_r(_d[3]).IndySdkError)(u.t0):u.t0;case 16:case"end":return u.stop()}},null,this,[[1,12]],Promise)}},{key:"getEndpointsForDid",value:function(r,n){var i,o,s,c,u,d;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,t().awrap(this.indyPoolService.getPoolForDid(r,n));case 2:return o=l.sent,s=o.pool,l.prev=4,this.logger.debug("Get endpoints for did '"+n+"' from ledger '"+s.id+"'"),l.next=8,t().awrap(this.indy.buildGetAttribRequest(null,n,'endpoint',null,null));case 8:return c=l.sent,this.logger.debug("Submitting get endpoint ATTRIB request for did '"+n+"' to ledger '"+s.id+"'"),l.next=12,t().awrap(this.indyPoolService.submitReadRequest(s,c));case 12:if((u=l.sent).result.data){l.next=15;break}return l.abrupt("return",{});case 15:return d=null===(i=JSON.parse(u.result.data))||void 0===i?void 0:i.endpoint,this.logger.debug("Got endpoints '"+JSON.stringify(d)+"' for did '"+n+"' from ledger '"+s.id+"'",{response:u,endpoints:d}),l.abrupt("return",null!==d&&void 0!==d?d:{});case 20:throw l.prev=20,l.t0=l.catch(4),this.logger.error("Error retrieving endpoints for did '"+n+"' from ledger '"+s.id+"'",{error:l.t0}),(0,_r(_d[2]).isIndyError)(l.t0)?new(_r(_d[3]).IndySdkError)(l.t0):l.t0;case 24:case"end":return l.stop()}},null,this,[[4,20]],Promise)}},{key:"registerSchema",value:function(r,n,i){var o,s,c,u,d,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return o=this.indyPoolService.getPoolForNamespace(),f.prev=1,this.logger.debug("Register schema on ledger '"+o.id+"' with did '"+n+"'",i),s=i.name,c=i.attributes,u=i.version,f.next=6,t().awrap(this.indyIssuer.createSchema(r,{originDid:n,name:s,version:u,attributes:c}));case 6:return d=f.sent,f.next=9,t().awrap(this.indy.buildSchemaRequest(n,d));case 9:return l=f.sent,f.next=12,t().awrap(this.indyPoolService.submitWriteRequest(r,o,l,n));case 12:return h=f.sent,this.logger.debug("Registered schema '"+d.id+"' on ledger '"+o.id+"'",{response:h,schema:d}),d.seqNo=h.result.txnMetadata.seqNo,f.abrupt("return",d);case 18:throw f.prev=18,f.t0=f.catch(1),this.logger.error("Error registering schema for did '"+n+"' on ledger '"+o.id+"'",{error:f.t0,did:n,schemaTemplate:i}),(0,_r(_d[2]).isIndyError)(f.t0)?new(_r(_d[3]).IndySdkError)(f.t0):f.t0;case 22:case"end":return f.stop()}},null,this,[[1,18]],Promise)}},{key:"getSchema",value:function(r,n){var i,o,s,c,u,d,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=(0,_r(_d[4]).didFromSchemaId)(n),f.next=3,t().awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return o=f.sent,s=o.pool,f.prev=5,this.logger.debug("Getting schema '"+n+"' from ledger '"+s.id+"'"),f.next=9,t().awrap(this.indy.buildGetSchemaRequest(null,n));case 9:return c=f.sent,this.logger.trace("Submitting get schema request for schema '"+n+"' to ledger '"+s.id+"'"),f.next=13,t().awrap(this.indyPoolService.submitReadRequest(s,c));case 13:return u=f.sent,this.logger.trace("Got un-parsed schema '"+n+"' from ledger '"+s.id+"'",{response:u}),f.next=17,t().awrap(this.indy.parseGetSchemaResponse(u));case 17:return d=f.sent,l=_r(_d[5])(d,2),h=l[1],this.logger.debug("Got schema '"+n+"' from ledger '"+s.id+"'",{schema:h}),f.abrupt("return",h);case 24:throw f.prev=24,f.t0=f.catch(5),this.logger.error("Error retrieving schema '"+n+"' from ledger '"+s.id+"'",{error:f.t0,schemaId:n}),(0,_r(_d[2]).isIndyError)(f.t0)?new(_r(_d[3]).IndySdkError)(f.t0):f.t0;case 28:case"end":return f.stop()}},null,this,[[5,24]],Promise)}},{key:"registerCredentialDefinition",value:function(r,n,i){var o,s,c,u,d,l,h,f;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:return o=this.indyPoolService.getPoolForNamespace(),p.prev=1,this.logger.debug("Registering credential definition on ledger '"+o.id+"' with did '"+n+"'",i),s=i.schema,c=i.tag,u=i.signatureType,d=i.supportRevocation,p.next=6,t().awrap(this.indyIssuer.createCredentialDefinition(r,{issuerDid:n,schema:s,tag:c,signatureType:u,supportRevocation:d}));case 6:return l=p.sent,p.next=9,t().awrap(this.indy.buildCredDefRequest(n,l));case 9:return h=p.sent,p.next=12,t().awrap(this.indyPoolService.submitWriteRequest(r,o,h,n));case 12:return f=p.sent,this.logger.debug("Registered credential definition '"+l.id+"' on ledger '"+o.id+"'",{response:f,credentialDefinition:l}),p.abrupt("return",l);case 17:throw p.prev=17,p.t0=p.catch(1),this.logger.error("Error registering credential definition for schema '"+i.schema.id+"' on ledger '"+o.id+"'",{error:p.t0,did:n,credentialDefinitionTemplate:i}),(0,_r(_d[2]).isIndyError)(p.t0)?new(_r(_d[3]).IndySdkError)(p.t0):p.t0;case 21:case"end":return p.stop()}},null,this,[[1,17]],Promise)}},{key:"getCredentialDefinition",value:function(r,n){var i,o,s,c,u,d,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=(0,_r(_d[4]).didFromCredentialDefinitionId)(n),f.next=3,t().awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return o=f.sent,s=o.pool,this.logger.debug("Using ledger '"+s.id+"' to retrieve credential definition '"+n+"'"),f.prev=6,f.next=9,t().awrap(this.indy.buildGetCredDefRequest(null,n));case 9:return c=f.sent,this.logger.trace("Submitting get credential definition request for credential definition '"+n+"' to ledger '"+s.id+"'"),f.next=13,t().awrap(this.indyPoolService.submitReadRequest(s,c));case 13:return u=f.sent,this.logger.trace("Got un-parsed credential definition '"+n+"' from ledger '"+s.id+"'",{response:u}),f.next=17,t().awrap(this.indy.parseGetCredDefResponse(u));case 17:return d=f.sent,l=_r(_d[5])(d,2),h=l[1],this.logger.debug("Got credential definition '"+n+"' from ledger '"+s.id+"'",{credentialDefinition:h}),f.abrupt("return",h);case 24:throw f.prev=24,f.t0=f.catch(6),this.logger.error("Error retrieving credential definition '"+n+"' from ledger '"+s.id+"'",{error:f.t0,credentialDefinitionId:n,pool:s.id}),(0,_r(_d[2]).isIndyError)(f.t0)?new(_r(_d[3]).IndySdkError)(f.t0):f.t0;case 28:case"end":return f.stop()}},null,this,[[6,24]],Promise)}},{key:"getRevocationRegistryDefinition",value:function(r,n){var i,o,s,c,u,d,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=(0,_r(_d[4]).didFromRevocationRegistryDefinitionId)(n),f.next=3,t().awrap(this.indyPoolService.getPoolForDid(r,i));case 3:return o=f.sent,s=o.pool,this.logger.debug("Using ledger '"+s.id+"' to retrieve revocation registry definition '"+n+"'"),f.prev=6,this.logger.trace("Revocation Registry Definition '"+n+"' not cached, retrieving from ledger"),f.next=10,t().awrap(this.indy.buildGetRevocRegDefRequest(null,n));case 10:return c=f.sent,this.logger.trace("Submitting get revocation registry definition request for revocation registry definition '"+n+"' to ledger"),f.next=14,t().awrap(this.indyPoolService.submitReadRequest(s,c));case 14:return u=f.sent,this.logger.trace("Got un-parsed revocation registry definition '"+n+"' from ledger '"+s.id+"'",{response:u}),f.next=18,t().awrap(this.indy.parseGetRevocRegDefResponse(u));case 18:return d=f.sent,l=_r(_d[5])(d,2),h=l[1],this.logger.debug("Got revocation registry definition '"+n+"' from ledger",{revocationRegistryDefinition:h}),f.abrupt("return",{revocationRegistryDefinition:h,revocationRegistryDefinitionTxnTime:u.result.txnTime});case 25:throw f.prev=25,f.t0=f.catch(6),this.logger.error("Error retrieving revocation registry definition '"+n+"' from ledger",{error:f.t0,revocationRegistryDefinitionId:n,pool:s.id}),f.t0;case 29:case"end":return f.stop()}},null,this,[[6,25]],Promise)}},{key:"getRevocationRegistryDelta",value:function(r,n){var i,o,s,c,u,d,l,h,f,p,v,y=arguments;return t().async(function(w){for(;;)switch(w.prev=w.next){case 0:return i=y.length>2&&void 0!==y[2]?y[2]:(new Date).getTime(),o=y.length>3&&void 0!==y[3]?y[3]:0,s=(0,_r(_d[4]).didFromRevocationRegistryDefinitionId)(n),w.next=5,t().awrap(this.indyPoolService.getPoolForDid(r,s));case 5:return c=w.sent,u=c.pool,this.logger.debug("Using ledger '"+u.id+"' to retrieve revocation registry delta with revocation registry definition id: '"+n+"'",{to:i,from:o}),w.prev=8,w.next=11,t().awrap(this.indy.buildGetRevocRegDeltaRequest(null,n,o,i));case 11:return d=w.sent,this.logger.trace("Submitting get revocation registry delta request for revocation registry '"+n+"' to ledger"),w.next=15,t().awrap(this.indyPoolService.submitReadRequest(u,d));case 15:return l=w.sent,this.logger.trace("Got revocation registry delta unparsed-response '"+n+"' from ledger",{response:l}),w.next=19,t().awrap(this.indy.parseGetRevocRegDeltaResponse(l));case 19:return h=w.sent,f=_r(_d[5])(h,3),p=f[1],v=f[2],this.logger.debug("Got revocation registry delta '"+n+"' from ledger",{revocationRegistryDelta:p,deltaTimestamp:v,to:i,from:o}),w.abrupt("return",{revocationRegistryDelta:p,deltaTimestamp:v});case 27:throw w.prev=27,w.t0=w.catch(8),this.logger.error("Error retrieving revocation registry delta '"+n+"' from ledger, potentially revocation interval ends before revocation registry creation?\"",{error:w.t0,revocationRegistryId:n,pool:u.id}),w.t0;case 31:case"end":return w.stop()}},null,this,[[8,27]],Promise)}},{key:"getRevocationRegistry",value:function(r,n,i){var o,s,c,u,d,l,h,f,p;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:return o=(0,_r(_d[4]).didFromRevocationRegistryDefinitionId)(n),v.next=3,t().awrap(this.indyPoolService.getPoolForDid(r,o));case 3:return s=v.sent,c=s.pool,this.logger.debug("Using ledger '"+c.id+"' to retrieve revocation registry accumulated state with revocation registry definition id: '"+n+"'",{timestamp:i}),v.prev=6,v.next=9,t().awrap(this.indy.buildGetRevocRegRequest(null,n,i));case 9:return u=v.sent,this.logger.trace("Submitting get revocation registry request for revocation registry '"+n+"' to ledger"),v.next=13,t().awrap(this.indyPoolService.submitReadRequest(c,u));case 13:return d=v.sent,this.logger.trace("Got un-parsed revocation registry '"+n+"' from ledger '"+c.id+"'",{response:d}),v.next=17,t().awrap(this.indy.parseGetRevocRegResponse(d));case 17:return l=v.sent,h=_r(_d[5])(l,3),f=h[1],p=h[2],this.logger.debug("Got revocation registry '"+n+"' from ledger",{ledgerTimestamp:p,revocationRegistry:f}),v.abrupt("return",{revocationRegistry:f,ledgerTimestamp:p});case 25:throw v.prev=25,v.t0=v.catch(6),this.logger.error("Error retrieving revocation registry '"+n+"' from ledger",{error:v.t0,revocationRegistryId:n,pool:c.id}),v.t0;case 29:case"end":return v.stop()}},null,this,[[6,25]],Promise)}}]),r})();o=r([(0,_r(_d[6]).injectable)(),i(0,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.AgentDependencies)),i(1,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,Object,_r(_d[8]).IndyIssuerService,_r(_d[9]).IndyPoolService])],o),e.IndyLedgerService=o},1361,[7,8,1362,619,1363,31,1019,1103,1364,1375]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isIndyError=e.indyErrors=void 0,e.indyErrors={100:'CommonInvalidParam1',101:'CommonInvalidParam2',102:'CommonInvalidParam3',103:'CommonInvalidParam4',104:'CommonInvalidParam5',105:'CommonInvalidParam6',106:'CommonInvalidParam7',107:'CommonInvalidParam8',108:'CommonInvalidParam9',109:'CommonInvalidParam10',110:'CommonInvalidParam11',111:'CommonInvalidParam12',112:'CommonInvalidState',113:'CommonInvalidStructure',114:'CommonIOError',115:'CommonInvalidParam13',116:'CommonInvalidParam14',200:'WalletInvalidHandle',201:'WalletUnknownTypeError',202:'WalletTypeAlreadyRegisteredError',203:'WalletAlreadyExistsError',204:'WalletNotFoundError',205:'WalletIncompatiblePoolError',206:'WalletAlreadyOpenedError',207:'WalletAccessFailed',208:'WalletInputError',209:'WalletDecodingError',210:'WalletStorageError',211:'WalletEncryptionError',212:'WalletItemNotFound',213:'WalletItemAlreadyExists',214:'WalletQueryError',300:'PoolLedgerNotCreatedError',301:'PoolLedgerInvalidPoolHandle',302:'PoolLedgerTerminated',303:'LedgerNoConsensusError',304:'LedgerInvalidTransaction',305:'LedgerSecurityError',306:'PoolLedgerConfigAlreadyExistsError',307:'PoolLedgerTimeout',308:'PoolIncompatibleProtocolVersion',309:'LedgerNotFound',400:'AnoncredsRevocationRegistryFullError',401:'AnoncredsInvalidUserRevocId',404:'AnoncredsMasterSecretDuplicateNameError',405:'AnoncredsProofRejected',406:'AnoncredsCredentialRevoked',407:'AnoncredsCredDefAlreadyExistsError',500:'UnknownCryptoTypeError',600:'DidAlreadyExistsError',700:'PaymentUnknownMethodError',701:'PaymentIncompatibleMethodsError',702:'PaymentInsufficientFundsError',703:'PaymentSourceDoesNotExistError',704:'PaymentOperationNotSupportedError',705:'PaymentExtraFundsError',706:'TransactionNotAllowedError'},e.isIndyError=function(o,n){if('object'!=typeof o||null===o)return!1;var t='IndyError'===o.name;if(!t||!n)return t;if(!o.indyName){var l=Number(o.message);if(!isNaN(l)&&Object.prototype.hasOwnProperty.call(e.indyErrors,l))return n===e.indyErrors[l];throw new(r(d[0]).AriesFrameworkError)("Could not determine errorName of indyError "+o.message)}return o.indyName===n}},1362,[611]); +__d(function(g,r,i,a,m,e,d){"use strict";function E(E){var t=r(d[0]).TypedArrayEncoder.fromBase58(E);return r(d[0]).TypedArrayEncoder.toBase58(t.slice(0,16))}function t(E){return e.FULL_VERKEY_REGEX.test(E)}function n(E){return e.ABBREVIATED_VERKEY_REGEX.test(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.getIndyDidFromVerificationMethod=e.isDidIdentifier=e.isDid=e.isVerkey=e.isAbbreviatedVerkey=e.isFullVerkey=e.didFromRevocationRegistryDefinitionId=e.didFromCredentialDefinitionId=e.didFromSchemaId=e.getFullVerkey=e.indyDidFromPublicKeyBase58=e.isSelfCertifiedDid=e.DID_IDENTIFIER_REGEX=e.DID_REGEX=e.VERKEY_REGEX=e.ABBREVIATED_VERKEY_REGEX=e.FULL_VERKEY_REGEX=void 0,e.FULL_VERKEY_REGEX=/^[1-9A-HJ-NP-Za-km-z]{43,44}$/,e.ABBREVIATED_VERKEY_REGEX=/^~[1-9A-HJ-NP-Za-km-z]{21,22}$/,e.VERKEY_REGEX=new RegExp(e.FULL_VERKEY_REGEX.source+"|"+e.ABBREVIATED_VERKEY_REGEX.source),e.DID_REGEX=/^did:([a-z]+):([a-zA-z\d]+)/,e.DID_IDENTIFIER_REGEX=/^[a-zA-z\d-]+$/,e.isSelfCertifiedDid=function(t,o){return!!n(o)||E(o)===t},e.indyDidFromPublicKeyBase58=E,e.getFullVerkey=function(E,n){var o;if(t(n))return n;var s=null!==(o=E.split(':').pop())&&void 0!==o?o:E,u=n.slice(1);return r(d[0]).TypedArrayEncoder.toBase58(r(d[1]).Buffer.concat([r(d[0]).TypedArrayEncoder.fromBase58(s),r(d[0]).TypedArrayEncoder.fromBase58(u)]))},e.didFromSchemaId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.didFromCredentialDefinitionId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.didFromRevocationRegistryDefinitionId=function(E){var t=E.split(':');return r(d[2])(t,1)[0]},e.isFullVerkey=t,e.isAbbreviatedVerkey=n,e.isVerkey=function(E){return e.VERKEY_REGEX.test(E)},e.isDid=function(E){return e.DID_REGEX.test(E)},e.isDidIdentifier=function(E){return e.DID_IDENTIFIER_REGEX.test(E)},e.getIndyDidFromVerificationMethod=function(E){if(!(null===E||void 0===E?void 0:E.publicKeyBase58))throw new Error("Unable to get publicKeyBase58 from verification method");var t=r(d[0]).TypedArrayEncoder.fromBase58(E.publicKeyBase58);return r(d[0]).TypedArrayEncoder.toBase58(t.slice(0,16))}},1363,[993,980,31]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof y?r:y,u=Object.create(c.prototype),s=new P(o||[]);return i(u,"_invoke",{value:I(t,n,s)}),u}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function y(){}function v(){}function w(){}var b={};f(b,u,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(C([])));E&&E!==n&&o.call(E,u)&&(b=E);var L=w.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,u,s){var l=d(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):r.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function I(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return R()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=O(u,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=d(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyIssuerService=void 0;var i=(function(){function r(t,n){_r(_d[0])(this,r),this.indy=n.indy,this.indyUtilitiesService=t}return _r(_d[1])(r,[{key:"createSchema",value:function(r,n){var o,i,c,u,s,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return o=n.originDid,i=n.name,c=n.version,u=n.attributes,(0,_r(_d[2]).assertIndyWallet)(r.wallet),h.prev=2,h.next=5,t().awrap(this.indy.issuerCreateSchema(o,i,c,u));case 5:return s=h.sent,l=_r(_d[3])(s,2),f=l[1],h.abrupt("return",f);case 11:throw h.prev=11,h.t0=h.catch(2),(0,_r(_d[4]).isIndyError)(h.t0)?new(_r(_d[5]).IndySdkError)(h.t0):h.t0;case 14:case"end":return h.stop()}},null,this,[[2,11]],Promise)}},{key:"createCredentialDefinition",value:function(r,n){var o,i,c,u,s,l,f,h,d,p,y;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:return o=n.issuerDid,i=n.schema,c=n.tag,u=void 0===c?'default':c,s=n.signatureType,l=void 0===s?'CL':s,f=n.supportRevocation,h=void 0!==f&&f,(0,_r(_d[2]).assertIndyWallet)(r.wallet),v.prev=2,v.next=5,t().awrap(this.indy.issuerCreateAndStoreCredentialDef(r.wallet.handle,o,i,u,l,{support_revocation:h}));case 5:return d=v.sent,p=_r(_d[3])(d,2),y=p[1],v.abrupt("return",y);case 11:throw v.prev=11,v.t0=v.catch(2),(0,_r(_d[4]).isIndyError)(v.t0)?new(_r(_d[5]).IndySdkError)(v.t0):v.t0;case 14:case"end":return v.stop()}},null,this,[[2,11]],Promise)}},{key:"createCredentialOffer",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return(0,_r(_d[2]).assertIndyWallet)(r.wallet),o.prev=1,o.next=4,t().awrap(this.indy.issuerCreateCredentialOffer(r.wallet.handle,n));case 4:return o.abrupt("return",o.sent);case 7:throw o.prev=7,o.t0=o.catch(1),(0,_r(_d[4]).isIndyError)(o.t0)?new(_r(_d[5]).IndySdkError)(o.t0):o.t0;case 10:case"end":return o.stop()}},null,this,[[1,7]],Promise)}},{key:"createCredential",value:function(r,n){var o,i,c,u,s,l,f,h,d,p;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(o=n.credentialOffer,i=n.credentialRequest,c=n.credentialValues,u=n.revocationRegistryId,s=n.tailsFilePath,(0,_r(_d[2]).assertIndyWallet)(r.wallet),y.prev=2,!s){y.next=9;break}return y.next=6,t().awrap(this.indyUtilitiesService.createTailsReader(s));case 6:y.t0=y.sent,y.next=10;break;case 9:y.t0=0;case 10:if(l=y.t0,!u&&!s){y.next=13;break}throw new(_r(_d[6]).AriesFrameworkError)('Revocation not supported yet');case 13:return y.next=15,t().awrap(this.indy.issuerCreateCredential(r.wallet.handle,o,i,c,null!==u&&void 0!==u?u:null,l));case 15:return f=y.sent,h=_r(_d[3])(f,2),d=h[0],p=h[1],y.abrupt("return",[d,p]);case 22:throw y.prev=22,y.t1=y.catch(2),(0,_r(_d[4]).isIndyError)(y.t1)?new(_r(_d[5]).IndySdkError)(y.t1):y.t1;case 25:case"end":return y.stop()}},null,this,[[2,22]],Promise)}}]),r})();i=r([(0,_r(_d[7]).injectable)(),o(1,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.AgentDependencies)),n("design:paramtypes",[_r(_d[9]).IndyUtilitiesService,Object])],i),e.IndyIssuerService=i},1364,[7,8,1365,31,1362,619,612,1019,1103,1373]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertIndyWallet=void 0,e.assertIndyWallet=function(n){var t,o;if(!(n instanceof r(d[0]).IndyWallet)){var l=null!==(o=null===(t=n.constructor)||void 0===t?void 0:t.name)&&void 0!==o?o:'unknown';throw new(r(d[1]).AriesFrameworkError)("Expected wallet to be instance of IndyWallet, found "+l)}}},1365,[1366,611]); +__d(function(g,_r,_i,a,m,e,_d2){"use strict";function r(){r=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(r,t,n){r[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(r,t,n){return Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{h({},"")}catch(r){h=function(r,t,n){return r[t]=n}}function d(r,t,n,o){var s=t&&t.prototype instanceof f?t:f,l=Object.create(s.prototype),c=new T(o||[]);return i(l,"_invoke",{value:K(r,n,c)}),l}function y(r,t,n){try{return{type:"normal",arg:r.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=d;var p={};function f(){}function w(){}function v(){}var k={};h(k,l,function(){return this});var b=Object.getPrototypeOf,E=b&&b(b(F([])));E&&E!==n&&o.call(E,l)&&(k=E);var x=v.prototype=f.prototype=Object.create(k);function W(r){["next","throw","return"].forEach(function(t){h(r,t,function(r){return this._invoke(t,r)})})}function P(r,t){function n(i,s,l,c){var u=y(r[i],r,s);if("throw"!==u.type){var h=u.arg,d=h.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then(function(r){n("next",r,l,c)},function(r){n("throw",r,l,c)}):t.resolve(d).then(function(r){h.value=r,l(h)},function(r){return n("throw",r,l,c)})}c(u.arg)}var s;i(this,"_invoke",{value:function(r,o){function i(){return new t(function(t,i){n(r,o,t,i)})}return s=s?s.then(i,i):i()}})}function K(r,t,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return S()}for(n.method=i,n.arg=s;;){var l=n.delegate;if(l){var c=A(l,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var u=y(r,t,n);if("normal"===u.type){if(o=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o="completed",n.method="throw",n.arg=u.arg)}}}function A(r,t){var n=t.method,o=r.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&r.iterator.return&&(t.method="return",t.arg=void 0,A(r,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=y(o,r.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var s=i.arg;return s?s.done?(t[r.resultName]=s.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function I(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function _(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function T(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(I,this),this.reset(!0)}function F(r){if(r){var t=r[l];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var n=-1,i=function t(){for(;++n=0;--i){var s=this.tryEntries[i],l=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),u=o.call(s,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===r){var o=n.completion;if("throw"===o.type){var i=o.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,n){return this.delegate={iterator:F(r),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}var t=this&&this.__decorate||function(r,t,n,o){var i,s=arguments.length,l=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(r,t,n,o);else for(var c=r.length-1;c>=0;c--)(i=r[c])&&(l=(s<3?i(l):s>3?i(t,n,l):i(t,n))||l);return s>3&&l&&Object.defineProperty(t,n,l),l},n=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},o=this&&this.__param||function(r,t){return function(n,o){t(n,o,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyWallet=void 0;var i=(function(){function t(r,n,o){_r(_d2[0])(this,t),this.logger=n,this.signingKeyProviderRegistry=o,this.indy=r.indy}return _r(_d2[1])(t,[{key:"isProvisioned",get:function(){return void 0!==this.walletConfig}},{key:"isInitialized",get:function(){return void 0!==this.walletHandle}},{key:"publicDid",get:function(){return this.publicDidInfo}},{key:"handle",get:function(){if(!this.walletHandle)throw new(_r(_d2[2]).AriesFrameworkError)('Wallet has not been initialized yet. Make sure to await agent.initialize() before using the agent.');return this.walletHandle}},{key:"masterSecretId",get:function(){var r,t,n,o;if(!this.isInitialized||!((null===(r=this.walletConfig)||void 0===r?void 0:r.id)||(null===(t=this.walletConfig)||void 0===t?void 0:t.masterSecretId)))throw new(_r(_d2[2]).AriesFrameworkError)('Wallet has not been initialized yet. Make sure to await agent.initialize() before using the agent.');return null!==(o=null===(n=this.walletConfig)||void 0===n?void 0:n.masterSecretId)&&void 0!==o?o:this.walletConfig.id}},{key:"dispose",value:function(){return r().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isInitialized){t.next=3;break}return t.next=3,r().awrap(this.close());case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"walletStorageConfig",value:function(r){var t,n,o,i={id:r.id,storage_type:null===(t=r.storage)||void 0===t?void 0:t.type};return(null===(n=r.storage)||void 0===n?void 0:n.config)&&(i.storage_config=null===(o=r.storage)||void 0===o?void 0:o.config),i}},{key:"walletCredentials",value:function(r,t,n){var o,i,s={key:r.key,key_derivation_method:r.keyDerivationMethod};return t&&(s.rekey=t),n&&(s.rekey_derivation_method=n),(null===(o=r.storage)||void 0===o?void 0:o.credentials)&&(s.storage_credentials=null===(i=r.storage)||void 0===i?void 0:i.credentials),s}},{key:"create",value:function(t){return r().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r().awrap(this.createAndOpen(t));case 2:return n.next=4,r().awrap(this.close());case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createAndOpen",value:function(t){var n,o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:return this.logger.debug("Creating wallet '"+t.id+"' using SQLite storage"),i.prev=1,i.next=4,r().awrap(this.indy.createWallet(this.walletStorageConfig(t),this.walletCredentials(t)));case 4:return this.walletConfig=t,i.next=7,r().awrap(this.open(t));case 7:return i.next=9,r().awrap(this.createMasterSecret(this.handle,this.masterSecretId));case 9:i.next=27;break;case 11:if(i.prev=11,i.t0=i.catch(1),!this.isInitialized){i.next=16;break}return i.next=16,r().awrap(this.close());case 16:if(!(0,_r(_d2[3]).isIndyError)(i.t0,'WalletAlreadyExistsError')){i.next=22;break}throw n="Wallet '"+t.id+"' already exists",this.logger.debug(n),new(_r(_d2[4]).WalletDuplicateError)(n,{walletType:'IndyWallet',cause:i.t0});case 22:if((0,_r(_d2[5]).isError)(i.t0)){i.next=24;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 24:throw o="Error creating wallet '"+t.id+"'",this.logger.error(o,{error:i.t0,errorMessage:i.t0.message}),new(_r(_d2[4]).WalletError)(o,{cause:i.t0});case 27:this.logger.debug("Successfully created wallet '"+t.id+"'");case 28:case"end":return i.stop()}},null,this,[[1,11]],Promise)}},{key:"open",value:function(t){return r().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r().awrap(this._open(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"rotateKey",value:function(t){return r().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(t.rekey){n.next=2;break}throw new(_r(_d2[4]).WalletError)('Wallet rekey undefined!. Please specify the new wallet key');case 2:return n.next=4,r().awrap(this._open({id:t.id,key:t.key,keyDerivationMethod:t.keyDerivationMethod},t.rekey,t.rekeyDerivationMethod));case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"_open",value:function(t,n,o){var i,s,l;return r().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this.walletHandle){c.next=2;break}throw new(_r(_d2[4]).WalletError)('Wallet instance already opened. Close the currently opened wallet before re-opening the wallet');case 2:return c.prev=2,c.next=5,r().awrap(this.indy.openWallet(this.walletStorageConfig(t),this.walletCredentials(t,n,o)));case 5:this.walletHandle=c.sent,this.walletConfig=n?_r(_d2[6])(_r(_d2[6])({},t),{key:n,keyDerivationMethod:o}):t,c.next=28;break;case 9:if(c.prev=9,c.t0=c.catch(2),!(0,_r(_d2[3]).isIndyError)(c.t0,'WalletNotFoundError')){c.next=17;break}throw i="Wallet '"+t.id+"' not found",this.logger.debug(i),new(_r(_d2[4]).WalletNotFoundError)(i,{walletType:'IndyWallet',cause:c.t0});case 17:if(!(0,_r(_d2[3]).isIndyError)(c.t0,'WalletAccessFailed')){c.next=23;break}throw s="Incorrect key for wallet '"+t.id+"'",this.logger.debug(s),new(_r(_d2[7]).WalletInvalidKeyError)(s,{walletType:'IndyWallet',cause:c.t0});case 23:if((0,_r(_d2[5]).isError)(c.t0)){c.next=25;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 25:throw l="Error opening wallet '"+t.id+"': "+c.t0.message,this.logger.error(l,{error:c.t0,errorMessage:c.t0.message}),new(_r(_d2[4]).WalletError)(l,{cause:c.t0});case 28:this.logger.debug("Wallet '"+t.id+"' opened with handle '"+this.handle+"'");case 29:case"end":return c.stop()}},null,this,[[2,9]],Promise)}},{key:"delete",value:function(){var t,n;return r().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(this.walletConfig){o.next=2;break}throw new(_r(_d2[4]).WalletError)('Can not delete wallet that does not have wallet config set. Make sure to call create wallet before deleting the wallet');case 2:if(this.logger.info("Deleting wallet '"+this.walletConfig.id+"'"),!this.walletHandle){o.next=6;break}return o.next=6,r().awrap(this.close());case 6:return o.prev=6,o.next=9,r().awrap(this.indy.deleteWallet(this.walletStorageConfig(this.walletConfig),this.walletCredentials(this.walletConfig)));case 9:o.next=24;break;case 11:if(o.prev=11,o.t0=o.catch(6),!(0,_r(_d2[3]).isIndyError)(o.t0,'WalletNotFoundError')){o.next=19;break}throw t="Error deleting wallet: wallet '"+this.walletConfig.id+"' not found",this.logger.debug(t),new(_r(_d2[4]).WalletNotFoundError)(t,{walletType:'IndyWallet',cause:o.t0});case 19:if((0,_r(_d2[5]).isError)(o.t0)){o.next=21;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 21:throw n="Error deleting wallet '"+this.walletConfig.id+"': "+o.t0.message,this.logger.error(n,{error:o.t0,errorMessage:o.t0.message}),new(_r(_d2[4]).WalletError)(n,{cause:o.t0});case 24:case"end":return o.stop()}},null,this,[[6,11]],Promise)}},{key:"export",value:function(t){var n,o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,this.logger.debug("Exporting wallet "+(null===(n=this.walletConfig)||void 0===n?void 0:n.id)+" to path "+t.path),i.next=4,r().awrap(this.indy.exportWallet(this.handle,t));case 4:i.next=13;break;case 6:if(i.prev=6,i.t0=i.catch(0),(0,_r(_d2[5]).isError)(i.t0)){i.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw o="Error exporting wallet: "+i.t0.message,this.logger.error(o,{error:i.t0}),new(_r(_d2[4]).WalletError)(o,{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"import",value:function(t,n){var o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,this.logger.debug("Importing wallet "+t.id+" from path "+n.path),i.next=4,r().awrap(this.indy.importWallet({id:t.id},{key:t.key,key_derivation_method:t.keyDerivationMethod},n));case 4:i.next=13;break;case 6:if(i.prev=6,i.t0=i.catch(0),(0,_r(_d2[5]).isError)(i.t0)){i.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw o="Error importing wallet': "+i.t0.message,this.logger.error(o,{error:i.t0}),new(_r(_d2[4]).WalletError)(o,{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,6]],Promise)}},{key:"close",value:function(){var t,n,o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:if(this.logger.debug("Closing wallet "+(null===(t=this.walletConfig)||void 0===t?void 0:t.id)),this.walletHandle){i.next=3;break}throw new(_r(_d2[4]).WalletError)('Wallet is in invalid state, you are trying to close wallet that has no `walletHandle`.');case 3:return i.prev=3,i.next=6,r().awrap(this.indy.closeWallet(this.walletHandle));case 6:this.walletHandle=void 0,this.publicDidInfo=void 0,i.next=23;break;case 10:if(i.prev=10,i.t0=i.catch(3),!(0,_r(_d2[3]).isIndyError)(i.t0,'WalletInvalidHandle')){i.next=18;break}throw n="Error closing wallet: wallet already closed",this.logger.debug(n),new(_r(_d2[4]).WalletError)(n,{cause:i.t0});case 18:if((0,_r(_d2[5]).isError)(i.t0)){i.next=20;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 20:throw o="Error closing wallet': "+i.t0.message,this.logger.error(o,{error:i.t0,errorMessage:i.t0.message}),new(_r(_d2[4]).WalletError)(o,{cause:i.t0});case 23:case"end":return i.stop()}},null,this,[[3,10]],Promise)}},{key:"createMasterSecret",value:function(t,n){return r().async(function(o){for(;;)switch(o.prev=o.next){case 0:return this.logger.debug("Creating master secret with id '"+n+"' in wallet with handle '"+t+"'"),o.prev=1,o.next=4,r().awrap(this.indy.proverCreateMasterSecret(t,n));case 4:return o.abrupt("return",n);case 7:if(o.prev=7,o.t0=o.catch(1),!(0,_r(_d2[3]).isIndyError)(o.t0,'AnoncredsMasterSecretDuplicateNameError')){o.next=14;break}return this.logger.debug("Master secret with id '"+n+"' already exists in wallet with handle '"+t+"'",{indyError:'AnoncredsMasterSecretDuplicateNameError'}),o.abrupt("return",n);case 14:if((0,_r(_d2[3]).isIndyError)(o.t0)){o.next=16;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw Indy error, but it was not an Indy error');case 16:throw this.logger.error("Error creating master secret with id "+n,{indyError:o.t0.indyName,error:o.t0}),new(_r(_d2[4]).WalletError)("Error creating master secret with id "+n+" in wallet with handle '"+t+"'",{cause:o.t0});case 18:case"end":return o.stop()}},null,this,[[1,7]],Promise)}},{key:"initPublicDid",value:function(t){var n,o,i,s;return r().async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,r().awrap(this.indy.createAndStoreMyDid(this.handle,t||{}));case 3:n=l.sent,o=_r(_d2[8])(n,2),i=o[0],s=o[1],this.publicDidInfo={did:i,verkey:s},l.next=15;break;case 10:if(l.prev=10,l.t0=l.catch(0),(0,_r(_d2[5]).isError)(l.t0)){l.next=14;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 14:throw new(_r(_d2[4]).WalletError)('Error creating Did',{cause:l.t0});case 15:case"end":return l.stop()}},null,this,[[0,10]],Promise)}},{key:"createKey",value:function(t){var n,o,i,s,l;return r().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(n=t.seed,o=t.keyType,c.prev=1,o!==_r(_d2[9]).KeyType.Ed25519){c.next=7;break}return c.next=5,r().awrap(this.indy.createKey(this.handle,{seed:n,crypto_type:'ed25519'}));case 5:return i=c.sent,c.abrupt("return",_r(_d2[10]).Key.fromPublicKeyBase58(i,o));case 7:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(o)){c.next=15;break}return s=this.signingKeyProviderRegistry.getProviderForKeyType(o),c.next=11,r().awrap(s.createKeyPair({seed:n}));case 11:return l=c.sent,c.next=14,r().awrap(this.storeKeyPair(l));case 14:return c.abrupt("return",_r(_d2[10]).Key.fromPublicKeyBase58(l.publicKeyBase58,o));case 15:c.next=22;break;case 17:if(c.prev=17,c.t0=c.catch(1),(0,_r(_d2[5]).isError)(c.t0)){c.next=21;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 21:throw new(_r(_d2[4]).WalletError)("Error creating key with key type '"+o+"': "+c.t0.message,{cause:c.t0});case 22:throw new(_r(_d2[4]).WalletError)("Unsupported key type: '"+o+"' for wallet IndyWallet");case 23:case"end":return c.stop()}},null,this,[[1,17]],Promise)}},{key:"sign",value:function(t){var n,o,i,s,l;return r().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(n=t.data,o=t.key,c.prev=1,o.keyType!==_r(_d2[9]).KeyType.Ed25519){c.next=8;break}if(_r(_d2[11]).TypedArrayEncoder.isTypedArray(n)){c.next=5;break}throw new(_r(_d2[4]).WalletError)(_r(_d2[9]).KeyType.Ed25519+" does not support multiple singing of multiple messages");case 5:return c.next=7,r().awrap(this.indy.cryptoSign(this.handle,o.publicKeyBase58,n));case 7:return c.abrupt("return",c.sent);case 8:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(o.keyType)){c.next=17;break}return i=this.signingKeyProviderRegistry.getProviderForKeyType(o.keyType),c.next=12,r().awrap(this.retrieveKeyPair(o.publicKeyBase58));case 12:return s=c.sent,c.next=15,r().awrap(i.sign({data:n,privateKeyBase58:s.privateKeyBase58,publicKeyBase58:o.publicKeyBase58}));case 15:return l=c.sent,c.abrupt("return",l);case 17:c.next=24;break;case 19:if(c.prev=19,c.t0=c.catch(1),(0,_r(_d2[5]).isError)(c.t0)){c.next=23;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 23:throw new(_r(_d2[4]).WalletError)("Error signing data with verkey "+o.publicKeyBase58,{cause:c.t0});case 24:throw new(_r(_d2[4]).WalletError)("Unsupported keyType: "+o.keyType);case 25:case"end":return c.stop()}},null,this,[[1,19]],Promise)}},{key:"verify",value:function(t){var n,o,i,s,l;return r().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(n=t.data,o=t.key,i=t.signature,c.prev=1,o.keyType!==_r(_d2[9]).KeyType.Ed25519){c.next=8;break}if(_r(_d2[11]).TypedArrayEncoder.isTypedArray(n)){c.next=5;break}throw new(_r(_d2[4]).WalletError)(_r(_d2[9]).KeyType.Ed25519+" does not support multiple singing of multiple messages");case 5:return c.next=7,r().awrap(this.indy.cryptoVerify(o.publicKeyBase58,n,i));case 7:return c.abrupt("return",c.sent);case 8:if(!this.signingKeyProviderRegistry.hasProviderForKeyType(o.keyType)){c.next=14;break}return s=this.signingKeyProviderRegistry.getProviderForKeyType(o.keyType),c.next=12,r().awrap(s.verify({data:n,signature:i,publicKeyBase58:o.publicKeyBase58}));case 12:return l=c.sent,c.abrupt("return",l);case 14:c.next=21;break;case 16:if(c.prev=16,c.t0=c.catch(1),(0,_r(_d2[5]).isError)(c.t0)){c.next=20;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 20:throw new(_r(_d2[4]).WalletError)("Error verifying signature of data signed with verkey "+o.publicKeyBase58,{cause:c.t0});case 21:throw new(_r(_d2[4]).WalletError)("Unsupported keyType: "+o.keyType);case 22:case"end":return c.stop()}},null,this,[[1,16]],Promise)}},{key:"pack",value:function(t,n,o){var i,s;return r().async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,i=_r(_d2[12]).JsonEncoder.toBuffer(t),l.next=4,r().awrap(this.indy.packMessage(this.handle,i,n,null!==o&&void 0!==o?o:null));case 4:return s=l.sent,l.abrupt("return",_r(_d2[12]).JsonEncoder.fromBuffer(s));case 8:if(l.prev=8,l.t0=l.catch(0),(0,_r(_d2[5]).isError)(l.t0)){l.next=12;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 12:throw new(_r(_d2[4]).WalletError)('Error packing message',{cause:l.t0});case 13:case"end":return l.stop()}},null,this,[[0,8]],Promise)}},{key:"unpack",value:function(t){var n,o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r().awrap(this.indy.unpackMessage(this.handle,_r(_d2[12]).JsonEncoder.toBuffer(t)));case 3:return n=i.sent,o=_r(_d2[12]).JsonEncoder.fromBuffer(n),i.abrupt("return",{senderKey:o.sender_verkey,recipientKey:o.recipient_verkey,plaintextMessage:_r(_d2[12]).JsonEncoder.fromString(o.message)});case 8:if(i.prev=8,i.t0=i.catch(0),(0,_r(_d2[5]).isError)(i.t0)){i.next=12;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 12:throw new(_r(_d2[4]).WalletError)('Error unpacking message',{cause:i.t0});case 13:case"end":return i.stop()}},null,this,[[0,8]],Promise)}},{key:"generateNonce",value:function(){return r().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r().awrap(this.indy.generateNonce());case 3:return t.abrupt("return",t.sent);case 6:if(t.prev=6,t.t0=t.catch(0),(0,_r(_d2[5]).isError)(t.t0)){t.next=10;break}throw new(_r(_d2[2]).AriesFrameworkError)('Attempted to throw error, but it was not of type Error');case 10:throw new(_r(_d2[4]).WalletError)('Error generating nonce',{cause:t.t0});case 11:case"end":return t.stop()}},null,this,[[0,6]],Promise)}},{key:"retrieveKeyPair",value:function(t){var n,o;return r().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r().awrap(this.indy.getWalletRecord(this.handle,'KeyPairRecord',"key-"+t,{}));case 3:if(n=i.sent,!(o=n.value)){i.next=9;break}return i.abrupt("return",_r(_d2[12]).JsonEncoder.fromString(o));case 9:throw new(_r(_d2[4]).WalletError)("No content found for record with public key: "+t);case 10:i.next=17;break;case 12:if(i.prev=12,i.t0=i.catch(0),!(0,_r(_d2[3]).isIndyError)(i.t0,'WalletItemNotFound')){i.next=16;break}throw new(_r(_d2[2]).RecordNotFoundError)("KeyPairRecord not found for public key: "+t+".",{recordType:'KeyPairRecord',cause:i.t0});case 16:throw(0,_r(_d2[3]).isIndyError)(i.t0)?new(_r(_d2[2]).IndySdkError)(i.t0):i.t0;case 17:case"end":return i.stop()}},null,this,[[0,12]],Promise)}},{key:"storeKeyPair",value:function(t){return r().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r().awrap(this.indy.addWalletRecord(this.handle,'KeyPairRecord',"key-"+t.publicKeyBase58,JSON.stringify(t),{keyType:t.keyType}));case 3:n.next=10;break;case 5:if(n.prev=5,n.t0=n.catch(0),!(0,_r(_d2[3]).isIndyError)(n.t0,'WalletItemAlreadyExists')){n.next=9;break}throw new(_r(_d2[2]).RecordDuplicateError)("Record already exists",{recordType:'KeyPairRecord'});case 9:throw(0,_r(_d2[3]).isIndyError)(n.t0)?new(_r(_d2[2]).IndySdkError)(n.t0):n.t0;case 10:case"end":return n.stop()}},null,this,[[0,5]],Promise)}},{key:"generateWalletKey",value:function(){return r().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r().awrap(this.indy.generateWalletKey());case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),new(_r(_d2[4]).WalletError)('Error generating wallet key',{cause:t.t0});case 9:case"end":return t.stop()}},null,this,[[0,6]],Promise)}}]),t})();i=t([(0,_r(_d2[13]).injectable)(),o(0,(0,_r(_d2[13]).inject)(_r(_d2[14]).InjectionSymbols.AgentDependencies)),o(1,(0,_r(_d2[13]).inject)(_r(_d2[14]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,Object,_r(_d2[15]).SigningProviderRegistry])],i),e.IndyWallet=i},1366,[7,8,611,1362,1367,1372,4,1370,31,989,991,992,978,1021,1103,1018]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletError=e.WalletInvalidKeyError=e.WalletNotFoundError=e.WalletDuplicateError=void 0,Object.defineProperty(e,"WalletDuplicateError",{enumerable:!0,get:function(){return r(d[0]).WalletDuplicateError}}),Object.defineProperty(e,"WalletNotFoundError",{enumerable:!0,get:function(){return r(d[1]).WalletNotFoundError}}),Object.defineProperty(e,"WalletInvalidKeyError",{enumerable:!0,get:function(){return r(d[2]).WalletInvalidKeyError}}),Object.defineProperty(e,"WalletError",{enumerable:!0,get:function(){return r(d[3]).WalletError}})},1367,[1368,1369,1370,1371]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletDuplicateError=void 0;var e=(function(e){r(d[2])(u,e);var c,n,o=(c=u,n=t(),function(){var t,e=r(d[0])(c);if(n){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var c=e.walletType,n=e.cause;return r(d[3])(this,u),o.call(this,c+": "+t,{cause:n})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletDuplicateError=e},1368,[14,11,9,7,8,612]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletNotFoundError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n=e.walletType,o=e.cause;return r(d[3])(this,u),c.call(this,n+": "+t,{cause:o})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletNotFoundError=e},1369,[14,11,9,7,8,612]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletInvalidKeyError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t,e){var n=e.walletType,c=e.cause;return r(d[3])(this,u),o.call(this,n+": "+t,{cause:c})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletInvalidKeyError=e},1370,[14,11,9,7,8,612]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),o.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.WalletError=e},1371,[14,11,9,7,8,612]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isError=void 0;e.isError=function(o){return o instanceof Error}},1372,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof y?r:y,s=Object.create(c.prototype),u=new R(o||[]);return i(s,"_invoke",{value:S(t,n,u)}),s}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function y(){}function v(){}function w(){}var b={};f(b,s,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(F([])));L&&L!==n&&o.call(L,s)&&(b=L);var j=w.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function _(t,r){function n(i,c,s,u){var l=d(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(h).then(function(t){f.value=t,s(f)},function(t){return n("throw",t,s,u)})}u(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function S(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return I()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=d(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function F(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyUtilitiesService=void 0;var i=(function(){function r(t,n,o){_r(_d[0])(this,r),this.indy=o.indy,this.logger=t,this.fileSystem=n}return _r(_d[1])(r,[{key:"createTailsReader",value:function(r){var n,o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,this.logger.debug("Opening tails reader at path "+r),s.next=4,t().awrap(this.fileSystem.exists(r));case 4:if(n=s.sent,o=(0,_r(_d[2]).getDirFromFilePath)(r),n){s.next=8;break}throw new(_r(_d[3]).AriesFrameworkError)("Tails file does not exist at path "+r);case 8:return i={base_dir:o},s.next=11,t().awrap(this.indy.openBlobStorageReader('default',i));case 11:return c=s.sent,this.logger.debug("Opened tails reader at path "+r),s.abrupt("return",c);case 16:if(s.prev=16,s.t0=s.catch(0),!(0,_r(_d[4]).isIndyError)(s.t0)){s.next=20;break}throw new(_r(_d[5]).IndySdkError)(s.t0);case 20:throw s.t0;case 21:case"end":return s.stop()}},null,this,[[0,16]],Promise)}},{key:"downloadTails",value:function(r,n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,this.logger.debug("Checking to see if tails file for URL "+n+" has been stored in the FileSystem"),o=this.fileSystem.basePath+"/afj/tails/"+r,c.next=5,t().awrap(this.fileSystem.exists(o));case 5:if(i=c.sent,this.logger.debug("Tails file for "+n+" "+(i?'is stored':'is not stored')+" at "+o),i){c.next=12;break}return this.logger.debug("Retrieving tails file from URL "+n),c.next=11,t().awrap(this.fileSystem.downloadToFile(n,o));case 11:this.logger.debug("Saved tails file to FileSystem at path "+o);case 12:return this.logger.debug("Tails file for URL "+n+" is stored in the FileSystem, opening tails reader"),c.abrupt("return",this.createTailsReader(o));case 16:throw c.prev=16,c.t0=c.catch(0),this.logger.error("Error while retrieving tails file from URL "+n,{error:c.t0}),(0,_r(_d[4]).isIndyError)(c.t0)?new(_r(_d[5]).IndySdkError)(c.t0):c.t0;case 20:case"end":return c.stop()}},null,this,[[0,16]],Promise)}}]),r})();i=r([(0,_r(_d[6]).injectable)(),o(0,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.Logger)),o(1,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.FileSystem)),o(2,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.AgentDependencies)),n("design:paramtypes",[Object,Object,Object])],i),e.IndyUtilitiesService=i},1373,[7,8,1374,611,1362,619,1019,1103]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDirFromFilePath=void 0,e.getDirFromFilePath=function(t){return t.substring(0,Math.max(t.lastIndexOf('/'),t.lastIndexOf('\\')))}},1374,[]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,s=Object.create(i.prototype),c=new j(n||[]);return o(s,"_invoke",{value:P(e,r,c)}),s}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function p(){}function y(){}function v(){}var w={};l(w,s,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(S([])));x&&x!==r&&n.call(x,s)&&(w=x);var E=v.prototype=p.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){function r(o,i,s,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,s,c)},function(e){r("throw",e,s,c)}):t.resolve(d).then(function(e){l.value=e,s(l)},function(e){return r("throw",e,s,c)})}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function P(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var c=_(s,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function r(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyPoolService=_e.DID_POOL_CACHE_LIMIT=_e.DID_POOL_CACHE_ID=void 0,_e.DID_POOL_CACHE_ID='DID_POOL_CACHE',_e.DID_POOL_CACHE_LIMIT=500;var c=(function(){function r(e,t,n,o,i){_r(_d[0])(this,r),this.pools=[],this.logger=n,this.indy=t.indy,this.agentDependencies=t,this.fileSystem=i,this.stop$=o,this.didCache=new(_r(_d[1]).PersistedLruCache)(_e.DID_POOL_CACHE_ID,_e.DID_POOL_CACHE_LIMIT,e)}return _r(_d[2])(r,[{key:"setPools",value:function(e){var t=this;this.pools=e.map(function(e){return new(_r(_d[3]).IndyPool)(e,t.agentDependencies,t.logger,t.stop$,t.fileSystem)})}},{key:"connectToPools",value:function(){var r,n,o,i,s;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:r=[],n=t(this.pools);case 2:if((o=n()).done){c.next=12;break}return i=o.value,this.logger.debug("Connecting to pool: "+i.id),c.next=7,e().awrap(i.connect());case 7:s=c.sent,this.logger.debug("Finished connection to pool: "+i.id),r.push(s);case 10:c.next=2;break;case 12:return c.abrupt("return",r);case 13:case"end":return c.stop()}},null,this,null,Promise)}},{key:"ledgerWritePool",get:function(){if(0===this.pools.length)throw new(_r(_d[4]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");return this.pools[0]}},{key:"getPoolForDid",value:function(t,r){var n,o,i,s,c,u,l,d,h,f,p,y,v;return e().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(0!==(o=this.pools).length){w.next=3;break}throw new(_r(_d[4]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");case 3:return w.next=5,e().awrap(this.didCache.get(t,r));case 5:if(i=w.sent,s=this.pools.find(function(e){return e.id===(null===i||void 0===i?void 0:i.poolId)}),!i||!s){w.next=10;break}return this.logger.trace("Found ledger id '"+s.id+"' for did '"+r+"' in cache"),w.abrupt("return",{did:i.nymResponse,pool:s});case 10:return w.next=12,e().awrap(this.getSettledDidResponsesFromPools(r,o));case 12:if(c=w.sent,u=c.successful,l=c.rejected,0!==u.length){w.next=21;break}if(d=l.every(function(e){return e.reason instanceof _r(_d[5]).LedgerNotFoundError}),h=l.filter(function(e){return!(e.reason instanceof _r(_d[5]).LedgerNotFoundError)}),!d){w.next=20;break}throw new(_r(_d[5]).LedgerNotFoundError)("Did '"+r+"' not found on any of the ledgers (total "+this.pools.length+").");case 20:throw new(_r(_d[6]).LedgerError)("Unknown error retrieving did '"+r+"' from '"+h.length+"' of '"+o.length+"' ledgers",{cause:h[0].reason});case 21:return(f=null===(n=u.find(function(e){return(0,_r(_d[7]).isSelfCertifiedDid)(e.value.did.did,e.value.did.verkey)}))||void 0===n?void 0:n.value)||(p=u.filter(function(e){return e.value.pool.config.isProduction}),y=u.filter(function(e){return!e.value.pool.config.isProduction}),v=p.length>=1?p:y,f=v[0].value),w.next=25,e().awrap(this.didCache.set(t,r,{nymResponse:f.did,poolId:f.pool.id}));case 25:return w.abrupt("return",{pool:f.pool,did:f.did});case 26:case"end":return w.stop()}},null,this,null,Promise)}},{key:"getSettledDidResponsesFromPools",value:function(t,r){var n,o,i,s=this;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:return this.logger.trace("Retrieving did '"+t+"' from "+r.length+" ledgers"),c.next=3,e().awrap((0,_r(_d[8]).allSettled)(r.map(function(e){return s.getDidFromPool(t,e)})));case 3:return n=c.sent,o=(0,_r(_d[8]).onlyFulfilled)(n),this.logger.trace("Retrieved "+o.length+" responses from ledgers for did '"+t+"'"),i=(0,_r(_d[8]).onlyRejected)(n),c.abrupt("return",{rejected:i,successful:o});case 8:case"end":return c.stop()}},null,this,null,Promise)}},{key:"getPoolForNamespace",value:function(e){if(0===this.pools.length)throw new(_r(_d[4]).LedgerNotConfiguredError)("No indy ledgers configured. Provide at least one pool configuration in the 'indyLedgers' agent configuration");if(!e)return this.logger.warn('Not passing the indyNamespace is deprecated and will be removed in the future version.'),this.pools[0];var t=this.pools.find(function(t){return t.didIndyNamespace===e});if(!t)throw new(_r(_d[5]).LedgerNotFoundError)("No ledgers found for IndyNamespace '"+e+"'.");return t}},{key:"submitWriteRequest",value:function(t,r,n,o){var i,s,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,e().awrap(this.appendTaa(r,n));case 3:return i=u.sent,u.next=6,e().awrap(this.signRequest(t,o,i));case 6:return s=u.sent,u.next=9,e().awrap(r.submitWriteRequest(s));case 9:return c=u.sent,u.abrupt("return",c);case 13:throw u.prev=13,u.t0=u.catch(0),(0,_r(_d[9]).isIndyError)(u.t0)?new(_r(_d[10]).IndySdkError)(u.t0):u.t0;case 16:case"end":return u.stop()}},null,this,[[0,13]],Promise)}},{key:"submitReadRequest",value:function(t,r){var n;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,e().awrap(t.submitReadRequest(r));case 3:return n=o.sent,o.abrupt("return",n);case 7:throw o.prev=7,o.t0=o.catch(0),(0,_r(_d[9]).isIndyError)(o.t0)?new(_r(_d[10]).IndySdkError)(o.t0):o.t0;case 10:case"end":return o.stop()}},null,null,[[0,7]],Promise)}},{key:"signRequest",value:function(t,r,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return(0,_r(_d[11]).assertIndyWallet)(t.wallet),e.prev=1,e.abrupt("return",this.indy.signRequest(t.wallet.handle,r,n));case 5:throw e.prev=5,e.t0=e.catch(1),(0,_r(_d[9]).isIndyError)(e.t0)?new(_r(_d[10]).IndySdkError)(e.t0):e.t0;case 8:case"end":return e.stop()}},null,this,[[1,5]],Promise)}},{key:"appendTaa",value:function(t,r){var n,o,i,s;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,e().awrap(this.getTransactionAuthorAgreement(t));case 3:if(n=c.sent,o=t.config.transactionAuthorAgreement,null!=n){c.next=7;break}return c.abrupt("return",r);case 7:if(o){c.next=9;break}throw new(_r(_d[6]).LedgerError)("Please, specify a transaction author agreement with version and acceptance mechanism. "+JSON.stringify(n));case 9:if(n.version===o.version&&o.acceptanceMechanism in n.acceptanceMechanisms.aml){c.next=12;break}throw i="Unable to satisfy matching TAA with mechanism "+JSON.stringify(o.acceptanceMechanism)+" and version "+JSON.stringify(o.version)+" in pool.\n Found "+JSON.stringify(Object.keys(n.acceptanceMechanisms.aml))+" and version "+n.version+" in pool.",new(_r(_d[6]).LedgerError)(i);case 12:return c.next=14,e().awrap(this.indy.appendTxnAuthorAgreementAcceptanceToRequest(r,n.text,o.version,n.digest,o.acceptanceMechanism,Math.floor((new Date).getTime()/1e3)));case 14:return s=c.sent,c.abrupt("return",s);case 18:throw c.prev=18,c.t0=c.catch(0),(0,_r(_d[9]).isIndyError)(c.t0)?new(_r(_d[10]).IndySdkError)(c.t0):c.t0;case 21:case"end":return c.stop()}},null,this,[[0,18]],Promise)}},{key:"getTransactionAuthorAgreement",value:function(t){var r,n,o,i,s,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(u.prev=0,void 0===t.authorAgreement){u.next=3;break}return u.abrupt("return",t.authorAgreement);case 3:return u.next=5,e().awrap(this.indy.buildGetTxnAuthorAgreementRequest(null));case 5:return r=u.sent,u.next=8,e().awrap(this.submitReadRequest(t,r));case 8:return n=u.sent,u.next=11,e().awrap(this.indy.buildGetAcceptanceMechanismsRequest(null));case 11:return o=u.sent,u.next=14,e().awrap(this.submitReadRequest(t,o));case 14:if(i=u.sent,null!=n.result.data){u.next=18;break}return t.authorAgreement=null,u.abrupt("return",null);case 18:return s=n.result.data,c=i.result.data,t.authorAgreement=_r(_d[12])(_r(_d[12])({},s),{acceptanceMechanisms:c}),u.abrupt("return",t.authorAgreement);case 24:throw u.prev=24,u.t0=u.catch(0),(0,_r(_d[9]).isIndyError)(u.t0)?new(_r(_d[10]).IndySdkError)(u.t0):u.t0;case 27:case"end":return u.stop()}},null,this,[[0,24]],Promise)}},{key:"getDidFromPool",value:function(t,r){var n,o,i;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,this.logger.trace("Get public did '"+t+"' from ledger '"+r.id+"'"),s.next=4,e().awrap(this.indy.buildGetNymRequest(null,t));case 4:return n=s.sent,this.logger.trace("Submitting get did request for did '"+t+"' to ledger '"+r.id+"'"),s.next=8,e().awrap(r.submitReadRequest(n));case 8:return o=s.sent,s.next=11,e().awrap(this.indy.parseGetNymResponse(o));case 11:return i=s.sent,this.logger.trace("Retrieved did '"+t+"' from ledger '"+r.id+"'",i),s.abrupt("return",{did:i,pool:r,response:o});case 16:if(s.prev=16,s.t0=s.catch(0),this.logger.trace("Error retrieving did '"+t+"' from ledger '"+r.id+"'",{error:s.t0,did:t}),!(0,_r(_d[9]).isIndyError)(s.t0,'LedgerNotFound')){s.next=23;break}throw new(_r(_d[5]).LedgerNotFoundError)("Did '"+t+"' not found on ledger "+r.id);case 23:throw(0,_r(_d[9]).isIndyError)(s.t0)?new(_r(_d[10]).IndySdkError)(s.t0):s.t0;case 24:case"end":return s.stop()}},null,this,[[0,16]],Promise)}}]),r})();c=o([(0,_r(_d[13]).injectable)(),s(1,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.AgentDependencies)),s(2,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.Logger)),s(3,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.Stop$)),s(4,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.FileSystem)),i("design:paramtypes",[_r(_d[1]).CacheRepository,Object,Object,_r(_d[15]).Subject,Object])],c),_e.IndyPoolService=c},1375,[7,1376,8,1381,1384,1385,1383,1363,1386,1362,619,1365,4,1019,1103,1105]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1376,[1377,1379,1380]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),s=new N(o||[]);return i(u,"_invoke",{value:P(t,n,s)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v={};function y(){}function w(){}function x(){}var b={};l(b,u,function(){return this});var L=Object.getPrototypeOf,E=L&&L(L(G([])));E&&E!==n&&o.call(E,u)&&(b=E);var _=x.prototype=y.prototype=Object.create(b);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function O(t,e){function n(i,c,u,s){var h=p(t[i],t,c);if("throw"!==h.type){var l=h.arg,f=l.value;return f&&"object"==typeof f&&o.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):e.resolve(f).then(function(t){l.value=t,u(l)},function(t){return n("throw",t,u,s)})}s(h.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function P(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return I()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=j(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var h=p(t,e,n);if("normal"===h.type){if(o=n.done?"completed":"suspendedYield",h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o="completed",n.method="throw",n.arg=h.arg)}}}function j(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function G(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),h=o.call(c,"finallyLoc");if(s&&h){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:G(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}Object.defineProperty(_e,"__esModule",{value:!0}),_e.PersistedLruCache=void 0;var e=(function(){function e(t,n,o){r(d[0])(this,e),this.cacheId=t,this.limit=n,this.cacheRepository=o}return r(d[1])(e,[{key:"get",value:function(e,n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getCache(e));case 2:return o=i.sent,i.abrupt("return",o.get(n));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"set",value:function(e,n,o){return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getCache(e));case 2:return i.sent.set(n,o),i.next=6,t().awrap(this.persistCache(e));case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getCache",value:function(e){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(this._cache){o.next=5;break}return o.next=3,t().awrap(this.fetchCacheRecord(e));case 3:n=o.sent,this._cache=this.lruFromRecord(n);case 5:return o.abrupt("return",this._cache);case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"lruFromRecord",value:function(t){return new(r(d[2]).LRUMap)(this.limit,t.entries.map(function(t){return[t.key,t.value]}))}},{key:"fetchCacheRecord",value:function(e){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.cacheRepository.findById(e,this.cacheId));case 2:if(n=o.sent){o.next=7;break}return n=new(r(d[3]).CacheRecord)({id:this.cacheId,entries:[]}),o.next=7,t().awrap(this.cacheRepository.save(e,n));case 7:return o.abrupt("return",n);case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"persistCache",value:function(e){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getCache(e));case 2:return n=o.sent,o.next=5,t().awrap(this.cacheRepository.update(e,new(r(d[3]).CacheRecord)({entries:n.toJSON(),id:this.cacheId})));case 5:case"end":return o.stop()}},null,this,null,Promise)}}]),e})();_e.PersistedLruCache=e},1377,[7,8,1378,1379]); +__d(function(_g,r,_i,_a,_m,_e,_d){var t,e;t=this,e=function(t){var e=Symbol("newer"),i=Symbol("older"),s=(function(t){"use strict";function s(t,e){r(_d[0])(this,s),"number"!=typeof t&&(e=t,t=0),this.size=0,this.limit=t,this.oldest=this.newest=void 0,this._keymap=new Map,e&&(this.assign(e),t<1&&(this.limit=this.size))}return r(_d[1])(s,[{key:"_markEntryAsUsed",value:function(t){t!==this.newest&&(t[e]&&(t===this.oldest&&(this.oldest=t[e]),t[e][i]=t[i]),t[i]&&(t[i][e]=t[e]),t[e]=void 0,t[i]=this.newest,this.newest&&(this.newest[e]=t),this.newest=t)}},{key:"assign",value:function(t){var s,o=this.limit||Number.MAX_VALUE;this._keymap.clear();for(var h=t[Symbol.iterator](),u=h.next();!u.done;u=h.next()){var a=new n(u.value[0],u.value[1]);if(this._keymap.set(a.key,a),s?(s[e]=a,a[i]=s):this.oldest=a,s=a,0==o--)throw new Error("overflow")}this.newest=s,this.size=this._keymap.size}},{key:"get",value:function(t){var e=this._keymap.get(t);return e?(this._markEntryAsUsed(e),e.value):void 0}},{key:"set",value:function(t,s){var o=this._keymap.get(t);return o?(o.value=s,this._markEntryAsUsed(o),this):(this._keymap.set(t,o=new n(t,s)),this.newest?(this.newest[e]=o,o[i]=this.newest):this.oldest=o,this.newest=o,++this.size,this.size>this.limit&&this.shift(),this)}},{key:"shift",value:function(){var t=this.oldest;if(t)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[i]=void 0):(this.oldest=void 0,this.newest=void 0),t[e]=t[i]=void 0,this._keymap.delete(t.key),--this.size,[t.key,t.value]}},{key:"find",value:function(t){var e=this._keymap.get(t);return e?e.value:void 0}},{key:"has",value:function(t){return this._keymap.has(t)}},{key:"delete",value:function(t){var s=this._keymap.get(t);return s?(this._keymap.delete(s.key),s[e]&&s[i]?(s[i][e]=s[e],s[e][i]=s[i]):s[e]?(s[e][i]=void 0,this.oldest=s[e]):s[i]?(s[i][e]=void 0,this.newest=s[i]):this.oldest=this.newest=void 0,this.size--,s.value):void 0}},{key:"clear",value:function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}},{key:"keys",value:function(){return new h(this.oldest)}},{key:"values",value:function(){return new u(this.oldest)}},{key:"entries",value:function(){return this}},{key:t,value:function(){return new o(this.oldest)}},{key:"forEach",value:function(t,i){"object"!=typeof i&&(i=this);for(var s=this.oldest;s;)t.call(i,s.value,s.key,this),s=s[e]}},{key:"toJSON",value:function(){for(var t=new Array(this.size),i=0,s=this.oldest;s;)t[i++]={key:s.key,value:s.value},s=s[e];return t}},{key:"toString",value:function(){for(var t="",i=this.oldest;i;)t+=String(i.key)+":"+i.value,(i=i[e])&&(t+=" < ");return t}}]),s})(Symbol.iterator);function n(t,s){this.key=t,this.value=s,this[e]=void 0,this[i]=void 0}function o(t){this.entry=t}function h(t){this.entry=t}function u(t){this.entry=t}t.LRUMap=s,o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:[t.key,t.value]}):{done:!0,value:void 0}},h.prototype[Symbol.iterator]=function(){return this},h.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:t.key}):{done:!0,value:void 0}},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){var t=this.entry;return t?(this.entry=t[e],{done:!1,value:t.value}):{done:!0,value:void 0}}},"object"==typeof _e&&void 0!==_m?e(_e):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lru_map=t.lru_map||{})},1378,[7,8]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.CacheRecord=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e,n,c,l;return r(d[3])(this,u),(e=o.call(this)).type=u.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),e.createdAt=null!==(c=t.createdAt)&&void 0!==c?c:new Date,e.entries=t.entries,e._tags=null!==(l=t.tags)&&void 0!==l?l:{}),e}return r(d[5])(u,[{key:"getTags",value:function(){return r(d[6])({},this._tags)}}]),u})(r(d[7]).BaseRecord);_e.CacheRecord=e,e.type='CacheRecord'},1379,[14,11,9,7,952,8,4,1096]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CacheRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).CacheRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.CacheRepository=c},1380,[14,11,9,7,1379,8,1101,1019,1103,1104]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,s=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var c=n&&n.prototype instanceof w?n:w,u=Object.create(c.prototype),l=new I(i||[]);return s(u,"_invoke",{value:j(t,o,l)}),u}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v={};function w(){}function x(){}function b(){}var L={};f(L,u,function(){return this});var P=Object.getPrototypeOf,k=P&&P(P(N([])));k&&k!==o&&i.call(k,u)&&(L=k);var E=b.prototype=w.prototype=Object.create(L);function C(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function _(t,n){function o(s,c,u,l){var h=y(t[s],t,c);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){f.value=t,u(f)},function(t){return o("throw",t,u,l)})}l(h.arg)}var c;s(this,"_invoke",{value:function(t,i){function s(){return new n(function(n,s){o(t,i,n,s)})}return c=c?c.then(s,s):s()}})}function j(t,n,o){var i="suspendedStart";return function(s,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===s)throw c;return S()}for(o.method=s,o.arg=c;;){var u=o.delegate;if(u){var l=O(u,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=y(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===v)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function O(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,O(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var s=y(i,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,v;var c=s.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function R(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function H(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function N(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--s){var c=this.tryEntries[s],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),h=i.call(c,"finallyLoc");if(l&&h){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),H(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;H(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.IndyPool=void 0;var n=(function(){function n(o,i,s,c,u){var l=this;r(d[0])(this,n),this.indy=i.indy,this.fileSystem=u,this.poolConfig=o,this.logger=s,c.subscribe(function(){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l._poolHandle){n.next=3;break}return n.next=3,t().awrap(l.close());case 3:case"end":return n.stop()}},null,null,null,Promise)})}return r(d[1])(n,[{key:"didIndyNamespace",get:function(){return this.didIndyNamespace}},{key:"id",get:function(){return this.poolConfig.id}},{key:"config",get:function(){return this.poolConfig}},{key:"close",value:function(){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(n=this._poolHandle){o.next=3;break}return o.abrupt("return");case 3:return this._poolHandle=void 0,this.poolConnected=void 0,o.next=7,t().awrap(this.indy.closePoolLedger(n));case 7:case"end":return o.stop()}},null,this,null,Promise)}},{key:"delete",value:function(){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!this._poolHandle){n.next=3;break}return n.next=3,t().awrap(this.close());case 3:return n.next=5,t().awrap(this.indy.deletePoolLedgerConfig(this.poolConfig.id));case 5:case"end":return n.stop()}},null,this,null,Promise)}},{key:"connect",value:function(){var n=this;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.poolConnected){t.next=6;break}return this.poolConnected=this.connectToLedger(),this.poolConnected.catch(function(t){n.poolConnected=void 0,n.logger.error('Connection to pool: '+n.poolConfig.genesisPath+' failed.',{error:t})}),t.abrupt("return",this.poolConnected);case 6:throw new(r(d[2]).AriesFrameworkError)('Cannot attempt connection to ledger, already connecting.');case 7:case"end":return t.stop()}},null,this,null,Promise)}},{key:"connectToLedger",value:function(){var n,o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=this.poolConfig.id,i.next=3,t().awrap(this.getGenesisPath());case 3:if(o=i.sent){i.next=6;break}throw new(r(d[2]).AriesFrameworkError)('Cannot connect to ledger without genesis file');case 6:return this.logger.debug("Connecting to ledger pool '"+n+"'",{genesisPath:o}),i.next=9,t().awrap(this.indy.setProtocolVersion(2));case 9:return i.prev=9,i.next=12,t().awrap(this.indy.openPoolLedger(n));case 12:return this._poolHandle=i.sent,i.abrupt("return",this._poolHandle);case 16:if(i.prev=16,i.t0=i.catch(9),(0,r(d[3]).isIndyError)(i.t0,'PoolLedgerNotCreatedError')){i.next=20;break}throw(0,r(d[3]).isIndyError)(i.t0)?new(r(d[2]).IndySdkError)(i.t0):i.t0;case 20:return this.logger.debug("Pool '"+n+"' does not exist yet, creating.",{indyError:'PoolLedgerNotCreatedError'}),i.prev=21,i.next=24,t().awrap(this.indy.createPoolLedgerConfig(n,{genesis_txn:o}));case 24:return i.next=26,t().awrap(this.indy.openPoolLedger(n));case 26:return this._poolHandle=i.sent,i.abrupt("return",this._poolHandle);case 30:throw i.prev=30,i.t1=i.catch(21),(0,r(d[3]).isIndyError)(i.t1)?new(r(d[2]).IndySdkError)(i.t1):i.t1;case 33:case"end":return i.stop()}},null,this,[[9,16],[21,30]],Promise)}},{key:"submitRequest",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=this.indy,o.next=3,t().awrap(this.getPoolHandle());case 3:return o.t1=o.sent,o.t2=n,o.abrupt("return",o.t0.submitRequest.call(o.t0,o.t1,o.t2));case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"submitReadRequest",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.submitRequest(n));case 2:if(o=i.sent,!(0,r(d[4]).isLedgerRejectResponse)(o)&&!(0,r(d[4]).isLedgerReqnackResponse)(o)){i.next=5;break}throw new(r(d[5]).LedgerError)("Ledger '"+this.id+"' rejected read transaction request: "+o.reason);case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"submitWriteRequest",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.submitRequest(n));case 2:if(o=i.sent,!(0,r(d[4]).isLedgerRejectResponse)(o)&&!(0,r(d[4]).isLedgerReqnackResponse)(o)){i.next=5;break}throw new(r(d[5]).LedgerError)("Ledger '"+this.id+"' rejected write transaction request: "+o.reason);case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getPoolHandle",value:function(){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.poolConnected){n.next=9;break}return n.prev=1,n.next=4,t().awrap(this.poolConnected);case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),this.logger.error('Connection to pool: '+this.poolConfig.genesisPath+' failed.',{error:n.t0});case 9:if(this._poolHandle){n.next=11;break}return n.abrupt("return",this.connect());case 11:return n.abrupt("return",this._poolHandle);case 12:case"end":return n.stop()}},null,this,[[1,6]],Promise)}},{key:"getGenesisPath",value:function(){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.poolConfig.genesisPath){o.next=2;break}return o.abrupt("return",this.poolConfig.genesisPath);case 2:if(n=this.fileSystem.basePath+"/afj/genesis-"+this.poolConfig.id+".txn",!this.poolConfig.genesisTransactions){o.next=8;break}return o.next=6,t().awrap(this.fileSystem.write(n,this.poolConfig.genesisTransactions));case 6:return this.poolConfig.genesisPath=n,o.abrupt("return",n);case 8:return o.abrupt("return",null);case 9:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.IndyPool=n},1381,[7,8,611,1362,1382,1383]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLedgerReqnackResponse=e.isLedgerRejectResponse=void 0,e.isLedgerRejectResponse=function(n){return'REJECT'===n.op},e.isLedgerReqnackResponse=function(n){return'REQNACK'===n.op}},1382,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerError=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),o.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.LedgerError=e},1383,[14,11,9,7,8,612]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerNotConfiguredError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).LedgerError);_e.LedgerNotConfiguredError=e},1384,[14,11,9,7,8,1383]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.LedgerNotFoundError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).LedgerError);_e.LedgerNotFoundError=e},1385,[14,11,9,7,8,1383]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.onlyRejected=_e.onlyFulfilled=_e.allSettled=void 0,_e.allSettled=function(e){return Promise.all(e.map(function(e){return e.then(function(e){return{status:'fulfilled',value:e}}).catch(function(e){return{status:'rejected',reason:e}})}))},_e.onlyFulfilled=function(e){return e.filter(function(e){return'fulfilled'===e.status})},_e.onlyRejected=function(e){return e.filter(function(e){return'rejected'===e.status})}},1386,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function h(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,n){return t[r]=n}}function f(t,r,n,i){var c=r&&r.prototype instanceof v?r:v,s=Object.create(c.prototype),u=new R(i||[]);return o(s,"_invoke",{value:k(t,n,u)}),s}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var p={};function v(){}function y(){}function w(){}var x={};h(x,s,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(_([])));C&&C!==n&&i.call(C,s)&&(x=C);var L=w.prototype=v.prototype=Object.create(x);function S(t){["next","throw","return"].forEach(function(r){h(t,r,function(t){return this._invoke(r,t)})})}function D(t,r){function n(o,c,s,u){var l=d(t[o],t,c);if("throw"!==l.type){var h=l.arg,f=h.value;return f&&"object"==typeof f&&i.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(f).then(function(t){h.value=t,s(h)},function(t){return n("throw",t,s,u)})}u(l.arg)}var c;o(this,"_invoke",{value:function(t,i){function o(){return new r(function(r,o){n(t,i,r,o)})}return c=c?c.then(o,o):o()}})}function k(t,r,n){var i="suspendedStart";return function(o,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw c;return O()}for(n.method=o,n.arg=c;;){var s=n.delegate;if(s){var u=E(s,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=d(t,r,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function E(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var c=o.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function I(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function _(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var c=this.tryEntries[o],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=i.call(c,"catchLoc"),l=i.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,i){var o,c=arguments.length,s=c<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(s=(c<3?o(s):c>3?o(r,n,s):o(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerApi=void 0;var i=(function(){function r(t,n,i,o,c){_r(_d[0])(this,r),this.ledgerService=t,this.agentContext=n,this.anonCredsCredentialDefinitionRepository=i,this.anonCredsSchemaRepository=o,this.config=c}return _r(_d[1])(r,[{key:"setPools",value:function(t){return this.ledgerService.setPools(t)}},{key:"connectToPools",value:function(){return t().async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t().awrap(this.ledgerService.connectToPools());case 2:case"end":return r.stop()}},null,this,null,Promise)}},{key:"registerPublicDid",value:function(r,n,i,o){var c,s;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=null===(c=this.agentContext.wallet.publicDid)||void 0===c?void 0:c.did){t.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('Agent has no public DID.');case 3:return t.abrupt("return",this.ledgerService.registerPublicDid(this.agentContext,s,r,n,i,o));case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getPublicDid",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.ledgerService.getPublicDid(this.agentContext,r));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getSchema",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.ledgerService.getSchema(this.agentContext,r));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerSchema",value:function(r){var n,i,o,c,s,u,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(i=null===(n=this.agentContext.wallet.publicDid)||void 0===n?void 0:n.did){f.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('Agent has no public DID.');case 3:return o=(0,_r(_d[3]).getLegacySchemaId)(i,r.name,r.version),c=(0,_r(_d[3]).getQualifiedIndySchemaId)(this.ledgerService.getDidIndyWriteNamespace(),o),f.next=7,t().awrap(this.anonCredsSchemaRepository.findById(this.agentContext,c));case 7:if(!(s=f.sent)){f.next=10;break}return f.abrupt("return",_r(_d[4])(_r(_d[4])({},s.schema),{id:o}));case 10:return f.next=12,t().awrap(this.findBySchemaIdOnLedger(o));case 12:if(!(u=f.sent)){f.next=15;break}return f.abrupt("return",u);case 15:return f.next=17,t().awrap(this.ledgerService.registerSchema(this.agentContext,i,r));case 17:return l=f.sent,h=new(_r(_d[5]).AnonCredsSchemaRecord)({schema:_r(_d[4])(_r(_d[4])({},l),{id:c})}),f.next=21,t().awrap(this.anonCredsSchemaRepository.save(this.agentContext,h));case 21:return f.abrupt("return",l);case 22:case"end":return f.stop()}},null,this,null,Promise)}},{key:"findBySchemaIdOnLedger",value:function(r){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t().awrap(this.ledgerService.getSchema(this.agentContext,r));case 3:return n.abrupt("return",n.sent);case 6:if(n.prev=6,n.t0=n.catch(0),!(n.t0 instanceof _r(_d[6]).IndySdkError&&(0,_r(_d[7]).isIndyError)(n.t0.cause,'LedgerNotFound'))){n.next=10;break}return n.abrupt("return",null);case 10:throw n.t0;case 11:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"findByCredentialDefinitionIdOnLedger",value:function(r){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t().awrap(this.ledgerService.getCredentialDefinition(this.agentContext,r));case 3:return n.abrupt("return",n.sent);case 6:if(n.prev=6,n.t0=n.catch(0),!(n.t0 instanceof _r(_d[6]).IndySdkError&&(0,_r(_d[7]).isIndyError)(n.t0.cause,'LedgerNotFound'))){n.next=10;break}return n.abrupt("return",null);case 10:throw n.t0;case 11:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"registerCredentialDefinition",value:function(r){var n,i,o,c,s,u,l;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=null===(n=this.agentContext.wallet.publicDid)||void 0===n?void 0:n.did){h.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('Agent has no public DID.');case 3:return o=(0,_r(_d[3]).getLegacyCredentialDefinitionId)(i,r.schema.seqNo,r.tag),c=(0,_r(_d[3]).getQualifiedIndyCredentialDefinitionId)(this.ledgerService.getDidIndyWriteNamespace(),o),h.next=7,t().awrap(this.anonCredsCredentialDefinitionRepository.findById(this.agentContext,c));case 7:if(!(s=h.sent)){h.next=10;break}return h.abrupt("return",_r(_d[4])(_r(_d[4])({},s.credentialDefinition),{id:o}));case 10:return h.next=12,t().awrap(this.findByCredentialDefinitionIdOnLedger(o));case 12:if(!h.sent){h.next=15;break}throw new(_r(_d[2]).AriesFrameworkError)("No credential definition record found and credential definition "+o+" already exists on the ledger.");case 15:return h.next=17,t().awrap(this.ledgerService.registerCredentialDefinition(this.agentContext,i,_r(_d[4])(_r(_d[4])({},r),{signatureType:'CL'})));case 17:return u=h.sent,l=new(_r(_d[8]).AnonCredsCredentialDefinitionRecord)({credentialDefinition:_r(_d[4])(_r(_d[4])({},u),{id:c})}),h.next=21,t().awrap(this.anonCredsCredentialDefinitionRepository.save(this.agentContext,l));case 21:return h.abrupt("return",u);case 22:case"end":return h.stop()}},null,this,null,Promise)}},{key:"getCredentialDefinition",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.ledgerService.getCredentialDefinition(this.agentContext,r));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getRevocationRegistryDefinition",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.ledgerService.getRevocationRegistryDefinition(this.agentContext,r));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getRevocationRegistryDelta",value:function(r){var n,i,o=arguments;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:0,i=o.length>2&&void 0!==o[2]?o[2]:(new Date).getTime(),t.abrupt("return",this.ledgerService.getRevocationRegistryDelta(this.agentContext,r,n,i));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),r})();i=r([(0,_r(_d[9]).injectable)(),n("design:paramtypes",[_r(_d[10]).IndyLedgerService,_r(_d[11]).AgentContext,_r(_d[12]).AnonCredsCredentialDefinitionRepository,_r(_d[13]).AnonCredsSchemaRepository,_r(_d[14]).LedgerModuleConfig])],i),e.LedgerApi=i},1387,[7,8,611,1012,4,1388,619,1362,1389,1019,1360,1390,1404,1405,1406]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsSchemaRecord=void 0;var t=(function(t){r(d[2])(o,t);var c,n,s=(c=o,n=e(),function(){var e,t=r(d[0])(c);if(n){var s=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function o(e){var t,c;return r(d[3])(this,o),(t=s.call(this)).type=o.type,e&&(t.id=null!==(c=e.id)&&void 0!==c?c:(0,r(d[4]).uuid)(),t.schema=e.schema),t}return r(d[5])(o,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{schemaId:this.schema.id,schemaIssuerDid:(0,r(d[7]).didFromSchemaId)(this.schema.id),schemaName:this.schema.name,schemaVersion:this.schema.version})}}]),o})(r(d[8]).BaseRecord);_e.AnonCredsSchemaRecord=t,t.type='AnonCredsSchemaRecord'},1388,[14,11,9,7,952,8,4,1363,1096]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsCredentialDefinitionRecord=void 0;var t=(function(t){r(d[2])(u,t);var n,o,c=(n=u,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t;return r(d[3])(this,u),(t=c.call(this)).type=u.type,e&&(t.id=(0,r(d[4]).uuid)(),t.credentialDefinition=e.credentialDefinition),t}return r(d[5])(u,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{credentialDefinitionId:this.credentialDefinition.id})}}]),u})(r(d[7]).BaseRecord);_e.AnonCredsCredentialDefinitionRecord=t,t.type='AnonCredsCredentialDefinitionRecord'},1389,[14,11,9,7,952,8,4,1096]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1390,[1391]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1391,[1392,1402,1403]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new N(i||[]);return c(l,"_invoke",{value:S(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(G([])));_&&_!==o&&i.call(_,l)&&(L=_);var j=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function S(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return A()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=P(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function C(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function G(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.AgentContext=void 0;var n=(function(){function n(t){var o=t.dependencyManager,i=t.contextCorrelationId;r(d[0])(this,n),this.dependencyManager=o,this.contextCorrelationId=i}return r(d[1])(n,[{key:"config",get:function(){return this.dependencyManager.resolve(r(d[2]).AgentConfig)}},{key:"wallet",get:function(){return this.dependencyManager.resolve(r(d[3]).InjectionSymbols.Wallet)}},{key:"endSession",value:function(){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=this.dependencyManager.resolve(r(d[3]).InjectionSymbols.AgentContextProvider),o.next=3,t().awrap(n.endSessionForAgentContext(this));case 3:case"end":return o.stop()}},null,this,null,Promise)}},{key:"toJSON",value:function(){return{contextCorrelationId:this.contextCorrelationId}}}]),n})();e.AgentContext=n},1392,[7,8,1393,1103]); +__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.AgentConfig=void 0;var e=(function(){function e(t,n){var o;r(d[0])(this,e),this.initConfig=t,this.label=t.label,this.logger=null!==(o=t.logger)&&void 0!==o?o:new(r(d[1]).ConsoleLogger)(r(d[1]).LogLevel.off),this.agentDependencies=n;var u=this.initConfig;if([u.mediatorConnectionsInvite,u.clearDefaultMediator,u.defaultMediatorId].filter(function(e){return void 0!==e}).length>1)throw new(r(d[2]).AriesFrameworkError)("Only one of 'mediatorConnectionsInvite', 'clearDefaultMediator' and 'defaultMediatorId' can be set as they negate each other")}return r(d[3])(e,[{key:"connectToIndyLedgersOnStartup",get:function(){var e;return null===(e=this.initConfig.connectToIndyLedgersOnStartup)||void 0===e||e}},{key:"publicDidSeed",get:function(){return this.initConfig.publicDidSeed}},{key:"indyLedgers",get:function(){var e;return null!==(e=this.initConfig.indyLedgers)&&void 0!==e?e:[]}},{key:"walletConfig",get:function(){return this.initConfig.walletConfig}},{key:"autoAcceptConnections",get:function(){var e;return null!==(e=this.initConfig.autoAcceptConnections)&&void 0!==e&&e}},{key:"autoAcceptProofs",get:function(){var e;return null!==(e=this.initConfig.autoAcceptProofs)&&void 0!==e?e:r(d[4]).AutoAcceptProof.Never}},{key:"autoAcceptCredentials",get:function(){var e;return null!==(e=this.initConfig.autoAcceptCredentials)&&void 0!==e?e:r(d[5]).AutoAcceptCredential.Never}},{key:"didCommMimeType",get:function(){var e;return null!==(e=this.initConfig.didCommMimeType)&&void 0!==e?e:r(d[6]).DidCommMimeType.V0}},{key:"mediatorPollingInterval",get:function(){var e;return null!==(e=this.initConfig.mediatorPollingInterval)&&void 0!==e?e:5e3}},{key:"mediatorPickupStrategy",get:function(){return this.initConfig.mediatorPickupStrategy}},{key:"maximumMessagePickup",get:function(){var e;return null!==(e=this.initConfig.maximumMessagePickup)&&void 0!==e?e:10}},{key:"baseMediatorReconnectionIntervalMs",get:function(){var e;return null!==(e=this.initConfig.baseMediatorReconnectionIntervalMs)&&void 0!==e?e:100}},{key:"maximumMediatorReconnectionIntervalMs",get:function(){var e;return null!==(e=this.initConfig.maximumMediatorReconnectionIntervalMs)&&void 0!==e?e:Number.POSITIVE_INFINITY}},{key:"useDidKeyInProtocols",get:function(){var e;return null===(e=this.initConfig.useDidKeyInProtocols)||void 0===e||e}},{key:"endpoints",get:function(){return this.initConfig.endpoints&&0!==this.initConfig.endpoints.length?this.initConfig.endpoints:[r(d[7]).DID_COMM_TRANSPORT_QUEUE]}},{key:"mediatorConnectionsInvite",get:function(){return this.initConfig.mediatorConnectionsInvite}},{key:"autoAcceptMediationRequests",get:function(){var e;return null!==(e=this.initConfig.autoAcceptMediationRequests)&&void 0!==e&&e}},{key:"defaultMediatorId",get:function(){return this.initConfig.defaultMediatorId}},{key:"clearDefaultMediator",get:function(){var e;return null!==(e=this.initConfig.clearDefaultMediator)&&void 0!==e&&e}},{key:"useLegacyDidSovPrefix",get:function(){var e;return null!==(e=this.initConfig.useLegacyDidSovPrefix)&&void 0!==e&&e}},{key:"connectionImageUrl",get:function(){return this.initConfig.connectionImageUrl}},{key:"autoUpdateStorageOnStartup",get:function(){var e;return null!==(e=this.initConfig.autoUpdateStorageOnStartup)&&void 0!==e&&e}},{key:"extend",value:function(t){return new e(r(d[8])(r(d[8])(r(d[8])({},this.initConfig),{logger:this.logger,label:this.label}),t),this.agentDependencies)}},{key:"toJSON",value:function(){var e,t,n,o;return r(d[8])(r(d[8])({},this.initConfig),{walletConfig:r(d[8])(r(d[8])({},this.walletConfig),{key:(null===(e=this.walletConfig)||void 0===e?void 0:e.key)?'[*****]':void 0,storage:r(d[8])(r(d[8])({},null===(t=this.walletConfig)||void 0===t?void 0:t.storage),{credentials:(null===(o=null===(n=this.walletConfig)||void 0===n?void 0:n.storage)||void 0===o?void 0:o.credentials)?'[*****]':void 0})}),logger:this.logger.logLevel,agentDependencies:Boolean(this.agentDependencies),label:this.label})}}]),e})();_e.AgentConfig=e},1393,[7,1394,611,8,1399,1400,1401,1103,4]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1394,[1395,1398,1396]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConsoleLogger=void 0;var o=(function(o){r(d[2])(u,o);var t,n,l=(t=u,n=e(),function(){var e,o=r(d[0])(t);if(n){var l=r(d[0])(this).constructor;e=Reflect.construct(o,arguments,l)}else e=o.apply(this,arguments);return r(d[1])(this,e)});function u(){var e,o;return r(d[3])(this,u),(o=l.apply(this,arguments)).consoleLogMap=(e={},r(d[4])(e,r(d[5]).LogLevel.test,'log'),r(d[4])(e,r(d[5]).LogLevel.trace,'log'),r(d[4])(e,r(d[5]).LogLevel.debug,'debug'),r(d[4])(e,r(d[5]).LogLevel.info,'info'),r(d[4])(e,r(d[5]).LogLevel.warn,'warn'),r(d[4])(e,r(d[5]).LogLevel.error,'error'),r(d[4])(e,r(d[5]).LogLevel.fatal,'error'),e),o}return r(d[6])(u,[{key:"log",value:function(e,o,t){var n=this.consoleLogMap[e],l=r(d[5]).LogLevel[e].toUpperCase();this.isEnabled(e)&&(t?console[n](l+": "+o,JSON.stringify(t,r(d[7]).replaceError,2)):console[n](l+": "+o))}},{key:"test",value:function(e,o){this.log(r(d[5]).LogLevel.test,e,o)}},{key:"trace",value:function(e,o){this.log(r(d[5]).LogLevel.trace,e,o)}},{key:"debug",value:function(e,o){this.log(r(d[5]).LogLevel.debug,e,o)}},{key:"info",value:function(e,o){this.log(r(d[5]).LogLevel.info,e,o)}},{key:"warn",value:function(e,o){this.log(r(d[5]).LogLevel.warn,e,o)}},{key:"error",value:function(e,o){this.log(r(d[5]).LogLevel.error,e,o)}},{key:"fatal",value:function(e,o){this.log(r(d[5]).LogLevel.fatal,e,o)}}]),u})(r(d[8]).BaseLogger);_e.ConsoleLogger=o},1395,[14,11,9,7,248,1396,8,1397,1398]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,(function(o){o[o.test=0]="test",o[o.trace=1]="trace",o[o.debug=2]="debug",o[o.info=3]="info",o[o.warn=4]="warn",o[o.error=5]="error",o[o.fatal=6]="fatal",o[o.off=7]="off"})(e.LogLevel||(e.LogLevel={}))},1396,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.replaceError=void 0,e.replaceError=function(n,t){return t instanceof Error?Object.getOwnPropertyNames(t).reduce(function(n,o){return n[o]=t[o],n},{name:t.name}):t}},1397,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseLogger=void 0;var o=(function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(d[0]).LogLevel.off;r(d[1])(this,o),this.logLevel=t}return r(d[2])(o,[{key:"isEnabled",value:function(o){return o>=this.logLevel}}]),o})();e.BaseLogger=o},1398,[1396,7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoAcceptProof=void 0,(function(o){o.Always="always",o.ContentApproved="contentApproved",o.Never="never"})(e.AutoAcceptProof||(e.AutoAcceptProof={}))},1399,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoAcceptCredential=void 0,(function(t){t.Always="always",t.ContentApproved="contentApproved",t.Never="never"})(e.AutoAcceptCredential||(e.AutoAcceptCredential={}))},1400,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommMimeType=e.KeyDerivationMethod=void 0,(function(o){o.Argon2IMod="ARGON2I_MOD",o.Argon2IInt="ARGON2I_INT",o.Raw="RAW"})(e.KeyDerivationMethod||(e.KeyDerivationMethod={})),(function(o){o.V0="application/ssi-agent-wire",o.V1="application/didcomm-envelope-enc"})(e.DidCommMimeType||(e.DidCommMimeType={}))},1401,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1402,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof v?r:v,u=Object.create(c.prototype),l=new P(o||[]);return i(u,"_invoke",{value:O(t,n,l)}),u}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function v(){}function y(){}function x(){}var w={};f(w,u,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(F([])));C&&C!==n&&o.call(C,u)&&(w=C);var L=x.prototype=v.prototype=Object.create(w);function E(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function _(t,r){function n(i,c,u,l){var s=d(t[i],t,c);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,l)},function(t){n("throw",t,u,l)}):r.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,l)})}l(s.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return A()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var l=j(u,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=d(t,r,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function j(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function I(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function F(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAgentContextProvider=void 0;var o=(function(){function r(t){_r(_d[0])(this,r),this.agentContext=t}return _r(_d[1])(r,[{key:"getAgentContextForContextCorrelationId",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(r===this.agentContext.contextCorrelationId){t.next=2;break}throw new(_r(_d[2]).AriesFrameworkError)("Could not get agent context for contextCorrelationId '"+r+"'. Only contextCorrelationId '"+this.agentContext.contextCorrelationId+"' is supported.");case 2:return t.abrupt("return",this.agentContext);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getContextForInboundMessage",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===n||void 0===n?void 0:n.contextCorrelationId)){t.next=2;break}return t.abrupt("return",this.getAgentContextForContextCorrelationId(n.contextCorrelationId));case 2:return t.abrupt("return",this.agentContext);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"endSessionForAgentContext",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.contextCorrelationId===this.agentContext.contextCorrelationId){t.next=2;break}throw new(_r(_d[2]).AriesFrameworkError)("Could not end session for agent context with contextCorrelationId '"+r.contextCorrelationId+"'. Only contextCorrelationId '"+this.agentContext.contextCorrelationId+"' is provided by this provider.");case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),r})();o=r([(0,_r(_d[3]).injectable)(),n("design:paramtypes",[_r(_d[4]).AgentContext])],o),e.DefaultAgentContextProvider=o},1403,[7,8,611,1019,1392]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,c=Object.create(i.prototype),u=new S(n||[]);return o(c,"_invoke",{value:j(t,r,u)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p={};function y(){}function d(){}function v(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=v.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,c,u){var f=h(t[o],t,i);if("throw"!==f.type){var l=f.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):e.resolve(s).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,u)})}u(f.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=h(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function R(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),f=n.call(i,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),p}},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;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsCredentialDefinitionRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).AnonCredsCredentialDefinitionRecord,t,e)}return _r(_d[5])(c,[{key:"getByCredentialDefinitionId",value:function(e,r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getSingleByQuery(e,{credentialDefinitionId:r}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByCredentialDefinitionId",value:function(e,r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.findSingleByQuery(e,{credentialDefinitionId:r}));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),c})(_r(_d[6]).Repository);i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],i),_e.AnonCredsCredentialDefinitionRepository=i},1404,[14,11,9,7,1389,8,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,c=Object.create(i.prototype),u=new P(n||[]);return o(c,"_invoke",{value:j(t,r,u)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p={};function y(){}function d(){}function v(){}var w={};s(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=v.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,c,u){var f=h(t[o],t,i);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):e.resolve(l).then(function(t){s.value=t,c(s)},function(t){return r("throw",t,c,u)})}u(f.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return G()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=h(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),f=n.call(i,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),p}},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;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnonCredsSchemaRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).AnonCredsSchemaRecord,t,e)}return _r(_d[5])(c,[{key:"getBySchemaId",value:function(e,r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getSingleByQuery(e,{schemaId:r}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findBySchemaId",value:function(e,r){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t().awrap(this.findSingleByQuery(e,{schemaId:r}));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}}]),c})(_r(_d[6]).Repository);i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],i),_e.AnonCredsSchemaRepository=i},1405,[14,11,9,7,1388,8,1101,1019,1103,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerModuleConfig=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.options=null!==t&&void 0!==t?t:{}}return r(d[1])(n,[{key:"connectToIndyLedgersOnStartup",get:function(){var n;return null===(n=this.options.connectToIndyLedgersOnStartup)||void 0===n||n}},{key:"indyLedgers",get:function(){var n;return null!==(n=this.options.indyLedgers)&&void 0!==n?n:[]}}]),n})();e.LedgerModuleConfig=n},1406,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LedgerModule=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.api=r(d[1]).LedgerApi,this.config=new(r(d[2]).LedgerModuleConfig)(t)}return r(d[3])(n,[{key:"register",value:function(n){n.registerContextScoped(r(d[1]).LedgerApi),n.registerInstance(r(d[2]).LedgerModuleConfig,this.config),n.registerSingleton(r(d[4]).IndyLedgerService),n.registerSingleton(r(d[4]).IndyPoolService),n.registerSingleton(r(d[5]).AnonCredsCredentialDefinitionRepository),n.registerSingleton(r(d[6]).AnonCredsSchemaRepository)}}]),n})();e.LedgerModule=n},1407,[7,1387,1406,8,1360,1404,1405]); +__d(function(g,r,_i2,a,m,_e,d){"use strict";function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=t(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u};Object.defineProperty(e,"__esModule",{value:!0}),e.IndySdkSovDidResolver=void 0;var n=(function(){function r(){_r(_d[0])(this,r),this.supportedMethods=['sov']}return _r(_d[1])(r,[{key:"resolve",value:function(r,n,o){var i,c,u,s,l;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return i={},d.prev=1,d.next=4,t().awrap(this.getPublicDid(r,o.id));case 4:return c=d.sent,d.next=7,t().awrap(this.getEndpointsForDid(r,o.id));case 7:return u=d.sent,s=o.did+"#key-agreement-1",l=(0,_r(_d[2]).sovDidDocumentFromDid)(o.did,c.verkey),(0,_r(_d[2]).addServicesFromEndpointsAttrib)(l,o.did,u,s),d.abrupt("return",{didDocument:l.build(),didDocumentMetadata:i,didResolutionMetadata:{contentType:'application/did+ld+json'}});case 14:return d.prev=14,d.t0=d.catch(1),d.abrupt("return",{didDocument:null,didDocumentMetadata:i,didResolutionMetadata:{error:'notFound',message:"resolver_error: Unable to resolve did '"+n+"': "+d.t0}});case 17:case"end":return d.stop()}},null,this,[[1,14]],Promise)}},{key:"getPublicDid",value:function(r,n){var o,i,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return o=r.dependencyManager.resolve(_r(_d[3]).IndyPoolService),u.next=3,t().awrap(o.getPoolForDid(r,n));case 3:return i=u.sent,c=i.did,u.abrupt("return",c);case 6:case"end":return u.stop()}},null,null,null,Promise)}},{key:"getEndpointsForDid",value:function(r,n){var o,i,c,u,s,l,d,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return i=r.dependencyManager.resolve(_r(_d[3]).IndyPoolService),c=r.config.agentDependencies.indy,h.next=4,t().awrap(i.getPoolForDid(r,n));case 4:return u=h.sent,s=u.pool,h.prev=6,r.config.logger.debug("Get endpoints for did '"+n+"' from ledger '"+s.id+"'"),h.next=10,t().awrap(c.buildGetAttribRequest(null,n,'endpoint',null,null));case 10:return l=h.sent,r.config.logger.debug("Submitting get endpoint ATTRIB request for did '"+n+"' to ledger '"+s.id+"'"),h.next=14,t().awrap(i.submitReadRequest(s,l));case 14:if((d=h.sent).result.data){h.next=17;break}return h.abrupt("return",{});case 17:return f=null===(o=JSON.parse(d.result.data))||void 0===o?void 0:o.endpoint,r.config.logger.debug("Got endpoints '"+JSON.stringify(f)+"' for did '"+n+"' from ledger '"+s.id+"'",{response:d,endpoints:f}),h.abrupt("return",null!==f&&void 0!==f?f:{});case 22:throw h.prev=22,h.t0=h.catch(6),r.config.logger.error("Error retrieving endpoints for did '"+n+"' from ledger '"+s.id+"'",{error:h.t0}),(0,_r(_d[4]).isIndyError)(h.t0)?new(_r(_d[5]).IndySdkError)(h.t0):h.t0;case 26:case"end":return h.stop()}},null,null,[[6,22]],Promise)}}]),r})();n=r([(0,_r(_d[6]).injectable)()],n),e.IndySdkSovDidResolver=n},1409,[7,8,1408,1359,1362,611,1019]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1410,[1411]); +__d(function(g,r,_i,a,_m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function v(t,n,o,i){var u=n&&n.prototype instanceof m?n:m,s=Object.create(u.prototype),l=new S(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=v;var y={};function m(){}function w(){}function b(){}var _={};h(_,s,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(G([])));L&&L!==o&&i.call(L,s)&&(_=L);var O=b.prototype=m.prototype=Object.create(_);function E(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var f=p(t[c],t,u);if("throw"!==f.type){var h=f.arg,v=h.value;return v&&"object"==typeof v&&i.call(v,"__await")?n.resolve(v.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(v).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=k(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=p(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=p(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n=this&&this.__createBinding||(Object.create?function(t,n,o,i){void 0===i&&(i=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&("get"in c?n.__esModule:!c.writable&&!c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,i,c)}:function(t,n,o,i){void 0===i&&(i=o),t[i]=n[o]}),o=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var c in t)"default"!==c&&Object.prototype.hasOwnProperty.call(t,c)&&n(i,t,c);return o(i,t),i};Object.defineProperty(e,"__esModule",{value:!0}),e.WebDidResolver=void 0;var c=i(r(d[0])),u=(function(){function n(){r(d[1])(this,n),this._resolverInstance=new(r(d[2]).Resolver),this.resolver=c.getResolver(),this.supportedMethods=Object.keys(this.resolver)}return r(d[3])(n,[{key:"resolve",value:function(n,o,i,c){var u,s;return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t().awrap(this.resolver[i.method](o,i,this._resolverInstance,c));case 2:return u=n.sent,s=null,u.didDocument&&(s=r(d[4]).JsonTransformer.fromJSON(u.didDocument,r(d[5]).DidDocument)),n.abrupt("return",r(d[6])(r(d[6])({},u),{didDocument:s}));case 6:case"end":return n.stop()}},null,this,null,Promise)}}]),n})();e.WebDidResolver=u},1411,[1412,7,1090,8,625,1097,4]); +__d(function(g,r,i,a,m,_e,d){var n,t=(n=r(d[0]))&&'object'==typeof n&&'default'in n?n:{default:n};function e(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var o=function(n){try{return Promise.resolve(t.default(n,{mode:'cors'})).then(function(n){if(n.status>=400)throw new Error("Bad response "+n.statusText);return n.json()})}catch(n){return Promise.reject(n)}};function u(n,t,e){if(!n.s){if(e instanceof v){if(!e.s)return void(e.o=u.bind(null,n,t));1&t&&(t=e.s),e=e.v}if(e&&e.then)return void e.then(u.bind(null,n,t),u.bind(null,n,2));n.s=t,n.v=e;var o=n.o;o&&o(n)}}var c='/.well-known/did.json',v=(function(){function n(){}return n.prototype.then=function(t,e){var o=new n,c=this.s;if(c){var v=1&c?t:e;if(v){try{u(o,1,v(this.v))}catch(n){u(o,2,n)}return o}return this}return this.o=function(n){try{var c=n.v;1&n.s?u(o,1,t?t(c):c):e?u(o,1,e(c)):u(o,2,c)}catch(n){u(o,2,n)}},o},n})();function s(n){return n instanceof v&&1&n.s}function f(n,t){var e;do{var o=n();if(o&&o.then){if(!s(o)){e=!0;break}o=o.v}var c=t();if(s(c)&&(c=c.v),!c)return o}while(!c.then);var f=new v,h=u.bind(null,f,2);return(e?o.then(l):c.then(p)).then(void 0,h),f;function l(e){for(o=e;s(c=t())&&(c=c.v),c;){if(c.then)return void c.then(p).then(void 0,h);if((o=n())&&o.then){if(!s(o))return void o.then(l).then(void 0,h);o=o.v}}u(f,1,o)}function p(e){if(e){do{if((o=n())&&o.then){if(!s(o))return void o.then(l).then(void 0,h);o=o.v}if(s(e=t())&&(e=e.v),!e)return void u(f,1,o)}while(!e.then);e.then(p).then(void 0,h)}else u(f,1,o)}}_e.getResolver=function(){return{web:function(n,t){try{var u,v=function(){var n,t=void 0!==(null==(n=w)?void 0:n['@context'])?'application/did+ld+json':'application/did+json';return s?{didDocument:w,didDocumentMetadata:j,didResolutionMetadata:{error:'notFound',message:s}}:{didDocument:w,didDocumentMetadata:j,didResolutionMetadata:{contentType:t}}},s=null,h=decodeURIComponent(t.id)+c,l=t.id.split(':');l.length>1&&(h=l.map(decodeURIComponent).join('/')+'/did.json');var p="https://"+h,j={},w=null,y=f(function(){function t(){var t;u||(null==(t=w)?void 0:t.id)===n||(s='resolver_error: DID document id does not match requested did')}var c=e(function(){return Promise.resolve(o(p)).then(function(n){w=n})},function(n){s="resolver_error: DID must resolve to a valid https URL containing a JSON document: "+n,u=1});return c&&c.then?c.then(t):t()},function(){return!u&&!1});return Promise.resolve(y&&y.then?y.then(v):v())}catch(n){return Promise.reject(n)}}}}},1412,[1413]); +__d(function(g,r,i,a,m,e,d){m.exports=g.fetch,m.exports.default=g.fetch,m.exports.fetch=g.fetch,m.exports.Headers=g.Headers,m.exports.Request=g.Request,m.exports.Response=g.Response},1413,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1414,[1415,1416]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1415,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1416,[1417]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof d?r:d,u=Object.create(c.prototype),s=new D(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function v(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var p={};function d(){}function y(){}function b(){}var w={};l(w,u,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(R([])));E&&E!==n&&o.call(E,u)&&(w=E);var L=b.prototype=d.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,u,s){var f=v(t[i],t,c);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):r.resolve(h).then(function(t){l.value=t,u(l)},function(t){return n("throw",t,u,s)})}s(f.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return T()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=S(u,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=v(t,r,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=v(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function K(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function R(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(s&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),K(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;K(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,r){if(t){if("string"==typeof t)return o(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)?o(t,r):void 0}}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},c=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommDocumentService=void 0;var u=(function(){function n(t,r){_r(_d[0])(this,n),this.logger=t.logger,this.didResolverService=r}return _r(_d[1])(n,[{key:"resolveServicesFromDid",value:function(n,o){var i,c,u,s,f,l,h,v,p,d,y,b,w;return t().async(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,t().awrap(this.didResolverService.resolveDidDocument(n,o));case 2:u=x.sent,s=[],f=r(u.didCommServices);case 5:if((l=f()).done){x.next=26;break}if(!((h=l.value)instanceof _r(_d[2]).IndyAgentService)){x.next=11;break}s.push({id:h.id,recipientKeys:h.recipientKeys.map(_r(_d[3]).verkeyToInstanceOfKey),routingKeys:(null===(i=h.routingKeys)||void 0===i?void 0:i.map(_r(_d[3]).verkeyToInstanceOfKey))||[],serviceEndpoint:h.serviceEndpoint}),x.next=24;break;case 11:if(!(h instanceof _r(_d[2]).DidCommV1Service)){x.next=24;break}v=[],p=r(null!==(c=h.routingKeys)&&void 0!==c?c:[]);case 14:if((d=p()).done){x.next=22;break}return y=d.value,x.next=18,t().awrap(this.didResolverService.resolveDidDocument(n,y));case 18:b=x.sent,v.push((0,_r(_d[2]).keyReferenceToKey)(b,y));case 20:x.next=14;break;case 22:w=h.recipientKeys.map(function(t){var r=(0,_r(_d[2]).keyReferenceToKey)(u,t);if(r.keyType===_r(_d[4]).KeyType.X25519){var n=(0,_r(_d[5]).findMatchingEd25519Key)(r,u);if(n)return n}return r}),s.push({id:h.id,recipientKeys:w,routingKeys:v,serviceEndpoint:h.serviceEndpoint});case 24:x.next=5;break;case 26:return x.abrupt("return",s);case 27:case"end":return x.stop()}},null,this,null,Promise)}}]),n})();u=i([(0,_r(_d[6]).injectable)(),c("design:paramtypes",[_r(_d[7]).AgentConfig,_r(_d[8]).DidResolverService])],u),e.DidCommDocumentService=u},1417,[7,8,1097,985,989,1418,1019,1393,1419]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findMatchingEd25519Key=void 0,e.findMatchingEd25519Key=function(n,t){var u,o,y;if(n.keyType===r(d[0]).KeyType.X25519){var c=null!==(u=t.verificationMethod)&&void 0!==u?u:[],f=null!==(o=t.keyAgreement)&&void 0!==o?o:[],l=null!==(y=t.authentication)&&void 0!==y?y:[];return[].concat(r(d[1])(c),r(d[1])(l.filter(function(n){return'string'!=typeof n})),r(d[1])(f.filter(function(n){return'string'!=typeof n}))).map(function(n){return(0,r(d[2]).keyReferenceToKey)(t,n.id)}).filter(function(n){return(null===n||void 0===n?void 0:n.keyType)===r(d[0]).KeyType.Ed25519}).find(function(t){return r(d[0]).Key.fromPublicKey((0,r(d[3]).convertPublicKeyToX25519)(t.publicKey),r(d[0]).KeyType.X25519).publicKeyBase58===n.publicKeyBase58})}}},1418,[989,42,1419,1080]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1419,[1420,1097,1421,1092,1422,1424,1348,1347]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1420,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,d=arguments.length,s=d<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(d<3?o(s):d>3?o(i,r,s):o(i,r))||s);return d>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidsApi=void 0;var r=(function(){function t(i,r,n,o,d){_r(_d[0])(this,t),this.didResolverService=i,this.didRegistrarService=r,this.didRepository=n,this.agentContext=o,this.config=d}return _r(_d[1])(t,[{key:"resolve",value:function(t,i){return this.didResolverService.resolve(this.agentContext,t,i)}},{key:"create",value:function(t){return this.didRegistrarService.create(this.agentContext,t)}},{key:"update",value:function(t){return this.didRegistrarService.update(this.agentContext,t)}},{key:"deactivate",value:function(t){return this.didRegistrarService.deactivate(this.agentContext,t)}},{key:"resolveDidDocument",value:function(t){return this.didResolverService.resolveDidDocument(this.agentContext,t)}},{key:"getCreatedDids",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).method;return this.didRepository.getCreatedDids(this.agentContext,{method:t})}}]),t})();r=t([(0,_r(_d[2]).injectable)(),i("design:paramtypes",[_r(_d[3]).DidResolverService,_r(_d[3]).DidRegistrarService,_r(_d[4]).DidRepository,_r(_d[5]).AgentContext,_r(_d[6]).DidsModuleConfig])],r),e.DidsApi=r},1421,[7,8,1019,1422,1092,1390,1347]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1422,[1346,1423]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,r,n){t[r]=n.value},u="function"==typeof Symbol?Symbol:{},d=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function f(t,r,n,i){var u=r&&r.prototype instanceof v?r:v,d=Object.create(u.prototype),c=new R(i||[]);return o(d,"_invoke",{value:j(t,n,c)}),d}function h(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var p={};function v(){}function y(){}function b(){}var w={};l(w,d,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(M([])));L&&L!==n&&i.call(L,d)&&(w=L);var S=b.prototype=v.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function E(t,r){function n(o,u,d,c){var s=h(t[o],t,u);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&i.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,d,c)},function(t){n("throw",t,d,c)}):r.resolve(f).then(function(t){l.value=t,d(l)},function(t){return n("throw",t,d,c)})}c(s.arg)}var u;o(this,"_invoke",{value:function(t,i){function o(){return new r(function(r,o){n(t,i,r,o)})}return u=u?u.then(o,o):o()}})}function j(t,r,n){var i="suspendedStart";return function(o,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw u;return D()}for(n.method=o,n.arg=u;;){var d=n.delegate;if(d){var c=O(d,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var s=h(t,r,n);if("normal"===s.type){if(i=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i="completed",n.method="throw",n.arg=s.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=h(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var u=o.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(t){if(t){var r=t[d];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var u=this.tryEntries[o],d=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var c=i.call(u,"catchLoc"),s=i.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,i){var o,u=arguments.length,d=u<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,r,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(d=(u<3?o(d):u>3?o(r,n,d):o(r,n))||d);return u>3&&d&&Object.defineProperty(r,n,d),d},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidRegistrarService=void 0;var o=(function(){function r(t,n){_r(_d[0])(this,r),this.logger=t,this.didsModuleConfig=n}return _r(_d[1])(r,[{key:"create",value:function(r,n){var i,o,u,d,c,s;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.logger.debug("creating did "+(null!==(i=n.did)&&void 0!==i?i:n.method)),d={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:n.did}},!(!n.did&&!n.method||n.did&&n.method)){l.next=4;break}return l.abrupt("return",_r(_d[2])(_r(_d[2])({},d),{didState:_r(_d[2])(_r(_d[2])({},d.didState),{reason:'Either did OR method must be specified'})}));case 4:if(c=null!==(o=n.method)&&void 0!==o?o:null===(u=(0,_r(_d[3]).tryParseDid)(n.did))||void 0===u?void 0:u.method){l.next=7;break}return l.abrupt("return",_r(_d[2])(_r(_d[2])({},d),{didState:_r(_d[2])(_r(_d[2])({},d.didState),{reason:"Could not extract method from did "+n.did})}));case 7:if(s=this.findRegistrarForMethod(c)){l.next=10;break}return l.abrupt("return",_r(_d[2])(_r(_d[2])({},d),{didState:_r(_d[2])(_r(_d[2])({},d.didState),{reason:"Unsupported did method: '"+c+"'"})}));case 10:return l.next=12,t().awrap(s.create(r,n));case 12:return l.abrupt("return",l.sent);case 13:case"end":return l.stop()}},null,this,null,Promise)}},{key:"update",value:function(r,n){var i,o,u,d;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.logger.debug("updating did "+n.did),o=null===(i=(0,_r(_d[3]).tryParseDid)(n.did))||void 0===i?void 0:i.method,u={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:n.did}},o){c.next=5;break}return c.abrupt("return",_r(_d[2])(_r(_d[2])({},u),{didState:_r(_d[2])(_r(_d[2])({},u.didState),{reason:"Could not extract method from did "+n.did})}));case 5:if(d=this.findRegistrarForMethod(o)){c.next=8;break}return c.abrupt("return",_r(_d[2])(_r(_d[2])({},u),{didState:_r(_d[2])(_r(_d[2])({},u.didState),{reason:"Unsupported did method: '"+o+"'"})}));case 8:return c.next=10,t().awrap(d.update(r,n));case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}},null,this,null,Promise)}},{key:"deactivate",value:function(r,n){var i,o,u,d;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.logger.debug("deactivating did "+n.did),o={didDocumentMetadata:{},didRegistrationMetadata:{},didState:{state:'failed',did:n.did}},u=null===(i=(0,_r(_d[3]).tryParseDid)(n.did))||void 0===i?void 0:i.method){c.next=5;break}return c.abrupt("return",_r(_d[2])(_r(_d[2])({},o),{didState:_r(_d[2])(_r(_d[2])({},o.didState),{reason:"Could not extract method from did "+n.did})}));case 5:if(d=this.findRegistrarForMethod(u)){c.next=8;break}return c.abrupt("return",_r(_d[2])(_r(_d[2])({},o),{didState:_r(_d[2])(_r(_d[2])({},o.didState),{reason:"Unsupported did method: '"+u+"'"})}));case 8:return c.next=10,t().awrap(d.deactivate(r,n));case 10:return c.abrupt("return",c.sent);case 11:case"end":return c.stop()}},null,this,null,Promise)}},{key:"findRegistrarForMethod",value:function(t){var r;return null!==(r=this.didsModuleConfig.registrars.find(function(r){return r.supportedMethods.includes(t)}))&&void 0!==r?r:null}}]),r})();o=r([(0,_r(_d[4]).injectable)(),i(0,(0,_r(_d[4]).inject)(_r(_d[5]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,_r(_d[6]).DidsModuleConfig])],o),e.DidRegistrarService=o},1423,[7,8,4,1089,1019,1103,1347]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidsModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.api=r(d[1]).DidsApi,this.config=new(r(d[2]).DidsModuleConfig)(n)}return r(d[3])(t,[{key:"register",value:function(t){t.registerContextScoped(r(d[1]).DidsApi),t.registerInstance(r(d[2]).DidsModuleConfig,this.config),t.registerSingleton(r(d[4]).DidResolverService),t.registerSingleton(r(d[4]).DidRegistrarService),t.registerSingleton(r(d[5]).DidRepository)}}]),t})();e.DidsModule=t},1424,[7,1421,1347,8,1422,1092]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e)},1425,[1426,1434,1462,1465,1476,1480,1481,1494,1526,1527]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e)},1426,[1427,1433,1453,1455,1456,1457,1458,1459,1460,1461]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionInvitationMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var r,i,n=(r=o,i=e(),function(){var e,t=_r(_d[0])(r);if(i){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;if(_r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.imageUrl=e.imageUrl,t.appendedAttachments=e.appendedAttachments,void 0!==e.did?t.did=e.did:(t.recipientKeys=e.recipientKeys,t.serviceEndpoint=e.serviceEndpoint,t.routingKeys=e.routingKeys),e.did&&(e.recipientKeys||e.routingKeys||e.serviceEndpoint)))throw new(_r(_d[4]).AriesFrameworkError)('either the did or the recipientKeys/serviceEndpoint/routingKeys must be set, but not both');return t}return _r(_d[5])(o,[{key:"toUrl",value:function(e){var t=e.domain,r=e.useLegacyDidSovPrefix,i=void 0!==r&&r,n=this.toJSON({useLegacyDidSovPrefix:i});return t+"?c_i="+_r(_d[6]).JsonEncoder.toBase64URL(n)}}],[{key:"fromUrl",value:function(e){var t,r=(0,_r(_d[7]).parseUrl)(e).query,i=null!==(t=r.c_i)&&void 0!==t?t:r.d_m;if('string'==typeof i){var n=_r(_d[6]).JsonEncoder.fromBase64(i);return _r(_d[8]).JsonTransformer.fromJSON(n,o)}throw new(_r(_d[4]).AriesFrameworkError)('InvitationUrl is invalid. Needs to be encoded with either c_i, d_m, or oob')}}]),o})(_r(_d[9]).AgentMessage);i.type=(0,_r(_d[10]).parseMessageType)('https://didcomm.org/connections/1.0/invitation'),t([(0,_r(_d[10]).IsValidMessageType)(i.type),(0,_r(_d[11]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).replaceLegacyDidSovPrefix)(t)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[12]).IsString)(),r("design:type",String)],i.prototype,"label",void 0),t([(0,_r(_d[12]).IsString)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.recipientKeys}),r("design:type",String)],i.prototype,"did",void 0),t([(0,_r(_d[12]).IsString)({each:!0}),(0,_r(_d[12]).IsArray)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),(0,_r(_d[12]).ArrayNotEmpty)(),r("design:type",Array)],i.prototype,"recipientKeys",void 0),t([(0,_r(_d[12]).IsString)(),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),r("design:type",String)],i.prototype,"serviceEndpoint",void 0),t([(0,_r(_d[12]).IsString)({each:!0}),(0,_r(_d[12]).ValidateIf)(function(e){return void 0===e.did}),(0,_r(_d[12]).IsOptional)(),r("design:type",Array)],i.prototype,"routingKeys",void 0),t([(0,_r(_d[12]).IsOptional)(),(0,_r(_d[12]).IsUrl)(),r("design:type",String)],i.prototype,"imageUrl",void 0),_e.ConnectionInvitationMessage=i},1427,[14,11,9,7,611,8,978,1428,625,948,941,626,661]); +__d(function(g,r,_i4,_a,m,e,d){'use strict';function t(t,a){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||a&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return a(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,n):void 0}}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var a=0,o=new Array(n);a0}).join('&')},e.parseUrl=function(t,n){n=r(d[3])({decode:!0},n);var a=r(d[4])(t,'#'),o=r(d[5])(a,2),i=o[0],u=o[1];return r(d[3])({url:i.split('?')[0]||'',query:k(v(t),n)},n&&n.parseFragmentIdentifier&&u?{fragmentIdentifier:l(u,n)}:{})},e.stringifyUrl=function(t,n){n=r(d[3])(r(d[6])({encode:!0,strict:!0},o,!0),n);var a=p(t.url).split('?')[0]||'',i=e.extract(t.url),u=e.parse(i,{sort:!1}),c=r(d[3])(u,t.query),l=e.stringify(c,n);l&&(l="?"+l);var f=y(t.url);return t.fragmentIdentifier&&(f="#"+(n[o]?s(t.fragmentIdentifier,n):t.fragmentIdentifier)),""+a+l+f},e.pick=function(t,n,a){a=r(d[3])(r(d[6])({parseFragmentIdentifier:!0},o,!1),a);var i=e.parseUrl(t,a),u=i.url,c=i.query,s=i.fragmentIdentifier;return e.stringifyUrl({url:u,query:r(d[7])(c,n),fragmentIdentifier:s},a)},e.exclude=function(t,n,a){var o=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,a){return!n(t,a)};return e.pick(t,o,a)}},1428,[42,1429,1430,4,1431,31,248,1432]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},1429,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';var t=new RegExp('%[a-f0-9]{2}','gi'),n=new RegExp("(%[a-f0-9]{2})+",'gi');function o(t,n){try{return decodeURIComponent(t.join(''))}catch(t){}if(1===t.length)return t;n=n||1;var c=t.slice(0,n),p=t.slice(n);return Array.prototype.concat.call([],o(c),o(p))}function c(n){try{return decodeURIComponent(n)}catch(i){for(var c=n.match(t),p=1;p=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,n,c):r(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRequestMessage=void 0;var o=(function(t){_r(_d[2])(i,t);var n,o,r=(n=i,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.imageUrl=e.imageUrl,t.connection=new(_r(_d[4]).Connection)({did:e.did,didDoc:e.didDoc})),t}return _r(_d[5])(i)})(_r(_d[6]).AgentMessage);o.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/connections/1.0/request'),t([(0,_r(_d[7]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),n("design:type",String)],o.prototype,"label",void 0),t([(0,_r(_d[9]).Type)(function(){return _r(_d[4]).Connection}),(0,_r(_d[8]).ValidateNested)(),(0,_r(_d[8]).IsInstance)(_r(_d[4]).Connection),n("design:type",_r(_d[4]).Connection)],o.prototype,"connection",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsUrl)(),n("design:type",String)],o.prototype,"imageUrl",void 0),_e.ConnectionRequestMessage=o},1433,[14,11,9,7,1434,8,948,941,661,626]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1434,[1435,1446,1447,1448,1449,1450,1451,1452]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,i,n){var c,d=arguments.length,r=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,o,i,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(r=(d<3?c(r):d>3?c(o,i,r):c(o,i))||r);return d>3&&r&&Object.defineProperty(o,i,r),r},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Connection=void 0;var i=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.did=o.did,this.didDoc=o.didDoc)});t([(0,_r(_d[2]).IsString)(),(0,_r(_d[3]).Expose)({name:'DID'}),o("design:type",String)],i.prototype,"did",void 0),t([(0,_r(_d[3]).Expose)({name:'DIDDoc'}),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).DidDoc}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(_r(_d[4]).DidDoc),(0,_r(_d[2]).IsOptional)(),o("design:type",_r(_d[4]).DidDoc)],i.prototype,"didDoc",void 0),e.Connection=i},1435,[8,7,661,626,1436]); +__d(function(g,_r,_i,_a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,c=arguments.length,s=c<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(c<3?o(s):c>3?o(i,r,s):o(i,r))||s);return c>3&&s&&Object.defineProperty(i,r,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DidDoc=void 0;var r=(function(){function t(i){_r(_d[0])(this,t),this.context='https://w3id.org/did/v1',this.publicKey=[],this.service=[],this.authentication=[],i&&(this.id=i.id,this.publicKey=i.publicKey,this.service=i.service,this.authentication=i.authentication)}return _r(_d[1])(t,[{key:"getPublicKey",value:function(t){return this.publicKey.find(function(i){return i.id===t})}},{key:"getServicesByType",value:function(t){return this.service.filter(function(i){return i.type===t})}},{key:"getServicesByClassType",value:function(t){return this.service.filter(function(i){return i instanceof t})}},{key:"didCommServices",get:function(){var t=[_r(_d[2]).IndyAgentService.type,_r(_d[2]).DidCommV1Service.type];return this.service.filter(function(i){return t.includes(i.type)}).sort(function(t,i){return i.priority-t.priority})}}]),t})();t([(0,_r(_d[3]).Expose)({name:'@context'}),(0,_r(_d[4]).Equals)('https://w3id.org/did/v1'),i("design:type",Object)],r.prototype,"context",void 0),t([(0,_r(_d[4]).IsString)(),i("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[5]).PublicKeyTransformer)(),i("design:type",Array)],r.prototype,"publicKey",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[2]).ServiceTransformer)(),i("design:type",Array)],r.prototype,"service",void 0),t([(0,_r(_d[4]).IsArray)(),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[6]).AuthenticationTransformer)(),i("design:type",Array)],r.prototype,"authentication",void 0),e.DidDoc=r},1436,[7,8,1065,626,661,1437,1442]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RsaSig2018=e.EddsaSaSigSecp256k1=e.PublicKey=e.Ed25119Sig2018=e.PublicKeyTransformer=e.publicKeyTypes=void 0,Object.defineProperty(e,"Ed25119Sig2018",{enumerable:!0,get:function(){return r(d[0]).Ed25119Sig2018}}),Object.defineProperty(e,"EddsaSaSigSecp256k1",{enumerable:!0,get:function(){return r(d[1]).EddsaSaSigSecp256k1}}),Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return r(d[2]).PublicKey}}),Object.defineProperty(e,"RsaSig2018",{enumerable:!0,get:function(){return r(d[3]).RsaSig2018}}),e.publicKeyTypes={RsaVerificationKey2018:r(d[3]).RsaSig2018,Ed25519VerificationKey2018:r(d[0]).Ed25119Sig2018,Secp256k1VerificationKey2018:r(d[1]).EddsaSaSigSecp256k1},e.PublicKeyTransformer=function(){return(0,r(d[4]).Transform)(function(n){return n.value.map(function(n){var t,u=null!==(t=e.publicKeyTypes[n.type])&&void 0!==t?t:r(d[2]).PublicKey;return(0,r(d[4]).plainToInstance)(u,n)})},{toClassOnly:!0})}},1437,[1438,1440,1439,1441,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Ed25119Sig2018=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'Ed25519VerificationKey2018'}))).type='Ed25519VerificationKey2018',e&&(t.value=e.publicKeyBase58),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('Ed25519VerificationKey2018'),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyBase58'}),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"value",void 0),_e.Ed25119Sig2018=n},1438,[14,11,9,7,4,8,1439,661,626]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,r){var n,c=arguments.length,l=c<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,o,r);else for(var p=t.length-1;p>=0;p--)(n=t[p])&&(l=(c<3?n(l):c>3?n(i,o,l):n(i,o))||l);return c>3&&l&&Object.defineProperty(i,o,l),l},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.controller=i.controller,this.type=i.type,this.value=i.value)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"id",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"controller",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],o.prototype,"value",void 0),e.PublicKey=o},1439,[8,7,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,c,r);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(o=(i<3?n(o):i>3?n(t,c,o):n(t,c))||o);return i>3&&o&&Object.defineProperty(t,c,o),o},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.EddsaSaSigSecp256k1=void 0;var r=(function(t){_r(_d[2])(i,t);var c,r,n=(c=i,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=n.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'Secp256k1VerificationKey2018'}))).type='Secp256k1VerificationKey2018',e&&(t.value=e.publicKeyHex),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('Secp256k1VerificationKey2018'),c("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyHex'}),(0,_r(_d[7]).IsString)(),c("design:type",String)],r.prototype,"value",void 0),_e.EddsaSaSigSecp256k1=r},1440,[14,11,9,7,4,8,1439,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.RsaSig2018=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this,_r(_d[4])(_r(_d[4])({},e),{type:'RsaVerificationKey2018'}))).type='RsaVerificationKey2018',e&&(t.value=e.publicKeyPem),t}return _r(_d[5])(i)})(_r(_d[6]).PublicKey);t([(0,_r(_d[7]).Equals)('RsaVerificationKey2018'),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).Expose)({name:'publicKeyPem'}),(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"value",void 0),_e.RsaSig2018=n},1441,[14,11,9,7,4,8,1439,661,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencedAuthentication=e.EmbeddedAuthentication=e.Authentication=e.AuthenticationTransformer=e.authenticationTypes=void 0,Object.defineProperty(e,"Authentication",{enumerable:!0,get:function(){return r(d[0]).Authentication}}),Object.defineProperty(e,"EmbeddedAuthentication",{enumerable:!0,get:function(){return r(d[1]).EmbeddedAuthentication}}),Object.defineProperty(e,"ReferencedAuthentication",{enumerable:!0,get:function(){return r(d[2]).ReferencedAuthentication}}),e.authenticationTypes={RsaVerificationKey2018:'RsaSignatureAuthentication2018',Ed25519VerificationKey2018:'Ed25519SignatureAuthentication2018',Secp256k1VerificationKey2018:'Secp256k1SignatureAuthenticationKey2018'},e.AuthenticationTransformer=function(){return(0,r(d[3]).Transform)(function(n){var t=n.value,u=n.obj;return n.type===r(d[3]).TransformationType.PLAIN_TO_CLASS?t.map(function(n){var t,c;if(n.publicKey){var o=u.publicKey.find(function(t){return t.id===n.publicKey});if(!o)throw new(r(d[4]).AriesFrameworkError)("Invalid public key referenced "+n.publicKey);var f=null!==(t=r(d[5]).publicKeyTypes[o.type])&&void 0!==t?t:r(d[5]).PublicKey,p=(0,r(d[3]).plainToInstance)(f,o);return new(r(d[2]).ReferencedAuthentication)(p,n.type)}var y=null!==(c=r(d[5]).publicKeyTypes[n.type])&&void 0!==c?c:r(d[5]).PublicKey,l=(0,r(d[3]).plainToInstance)(y,n);return new(r(d[1]).EmbeddedAuthentication)(l)}):t.map(function(n){return n instanceof r(d[1]).EmbeddedAuthentication?(0,r(d[3]).instanceToPlain)(n.publicKey):n})})}},1442,[1443,1444,1445,626,611,1437]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Authentication=void 0;var t=r(d[0])(function t(){r(d[1])(this,t)});e.Authentication=t},1443,[8,7]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,c){var r,o=arguments.length,i=o<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,c);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(i=(o<3?r(i):o>3?r(e,n,i):r(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmbeddedAuthentication=void 0;var c=(function(e){_r(_d[2])(o,e);var n,c,r=(n=o,c=t(),function(){var t,e=_r(_d[0])(n);if(c){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=r.call(this)).publicKey=t,e}return _r(_d[4])(o)})(_r(_d[5]).Authentication);e([(0,_r(_d[6]).IsNotEmpty)(),(0,_r(_d[6]).ValidateNested)(),(0,_r(_d[6]).IsInstance)(_r(_d[7]).PublicKey),n("design:type",_r(_d[7]).PublicKey)],c.prototype,"publicKey",void 0),_e.EmbeddedAuthentication=c},1444,[14,11,9,7,8,1443,661,1439]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var c,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,n,i):c(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ReferencedAuthentication=void 0;var r=(function(e){_r(_d[2])(o,e);var n,r,c=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){var n;return _r(_d[3])(this,o),(n=c.call(this)).publicKey=t,n.type=e,n}return _r(_d[4])(o)})(_r(_d[5]).Authentication);e([(0,_r(_d[6]).IsString)(),n("design:type",String)],r.prototype,"type",void 0),e([(0,_r(_d[7]).Transform)(function(t){return t.value.id},{toPlainOnly:!0}),n("design:type",_r(_d[8]).PublicKey)],r.prototype,"publicKey",void 0),_e.ReferencedAuthentication=r},1445,[14,11,9,7,8,1443,661,626,1439]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionRole=void 0,(function(n){n.Inviter="inviter",n.Invitee="invitee"})(e.ConnectionRole||(e.ConnectionRole={}))},1446,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.rfc0160StateFromDidExchangeState=e.ConnectionState=void 0,(function(t){t.Null="null",t.Invited="invited",t.Requested="requested",t.Responded="responded",t.Complete="complete"})(t=e.ConnectionState||(e.ConnectionState={})),e.rfc0160StateFromDidExchangeState=function(n){var o;return(o={},r(d[0])(o,r(d[1]).DidExchangeState.Start,t.Null),r(d[0])(o,r(d[1]).DidExchangeState.Abandoned,t.Null),r(d[0])(o,r(d[1]).DidExchangeState.InvitationReceived,t.Invited),r(d[0])(o,r(d[1]).DidExchangeState.InvitationSent,t.Invited),r(d[0])(o,r(d[1]).DidExchangeState.RequestReceived,t.Requested),r(d[0])(o,r(d[1]).DidExchangeState.RequestSent,t.Requested),r(d[0])(o,r(d[1]).DidExchangeState.ResponseReceived,t.Responded),r(d[0])(o,r(d[1]).DidExchangeState.ResponseSent,t.Responded),r(d[0])(o,r(d[1]).DidExchangeState.Completed,t.Complete),o)[n]}},1447,[248,1448]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeState=void 0,(function(t){t.Start="start",t.InvitationSent="invitation-sent",t.InvitationReceived="invitation-received",t.RequestSent="request-sent",t.RequestReceived="request-received",t.ResponseSent="response-sent",t.ResponseReceived="response-received",t.Abandoned="abandoned",t.Completed="completed"})(e.DidExchangeState||(e.DidExchangeState={}))},1448,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeRole=void 0,(function(n){n.Requester="requester",n.Responder="responder"})(e.DidExchangeRole||(e.DidExchangeRole={}))},1449,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HandshakeProtocol=void 0,(function(o){o.Connections="https://didcomm.org/connections/1.0",o.DidExchange="https://didcomm.org/didexchange/1.0"})(e.HandshakeProtocol||(e.HandshakeProtocol={}))},1450,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1451,[1436,1437,1442]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionType=void 0,(function(n){n.Mediator="mediator"})(e.ConnectionType||(e.ConnectionType={}))},1452,[]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(i=(c<3?r(i):c>3?r(t,n,i):r(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionResponseMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var n,o,r=(n=c,o=e(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=r.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.connectionSig=e.connectionSig,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/connections/1.0/response'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),n("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).SignatureDecorator}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).SignatureDecorator),(0,_r(_d[7]).Expose)({name:'connection~sig'}),n("design:type",_r(_d[8]).SignatureDecorator)],o.prototype,"connectionSig",void 0),_e.ConnectionResponseMessage=o},1453,[14,11,9,7,8,948,941,626,1454,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,p=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,r,i,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(p=(s<3?o(p):s>3?o(r,i,p):o(r,i))||p);return s>3&&p&&Object.defineProperty(r,i,p),p},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureDecorator=void 0;var i=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.signatureType=r.signatureType,this.signatureData=r.signatureData,this.signer=r.signer,this.signature=r.signature)});t([(0,_r(_d[2]).Expose)({name:'@type'}),(0,_r(_d[2]).Transform)(function(t){var r=t.value;return(0,_r(_d[3]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),(0,_r(_d[4]).Matches)(_r(_d[5]).MessageTypeRegExp),r("design:type",String)],i.prototype,"signatureType",void 0),t([(0,_r(_d[2]).Expose)({name:'sig_data'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signatureData",void 0),t([(0,_r(_d[2]).Expose)({name:'signer'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signer",void 0),t([(0,_r(_d[2]).Expose)({name:'signature'}),(0,_r(_d[4]).IsString)(),r("design:type",String)],i.prototype,"signature",void 0),e.SignatureDecorator=i},1454,[8,7,626,941,661,951]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TrustPingMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var n,i,r=(n=o,i=e(),function(){var e,t=_r(_d[0])(n);if(i){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=r.call(this)).type=o.type.messageTypeUri,t.responseRequested=!0,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.responseRequested=void 0===e.responseRequested||e.responseRequested,e.timing&&t.setTiming({outTime:e.timing.outTime,expiresTime:e.timing.expiresTime,delayMilli:e.timing.delayMilli})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);i.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/trust_ping/1.0/ping'),t([(0,_r(_d[6]).IsValidMessageType)(i.type),n("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],i.prototype,"comment",void 0),t([(0,_r(_d[7]).IsBoolean)(),(0,_r(_d[8]).Expose)({name:'response_requested'}),n("design:type",Object)],i.prototype,"responseRequested",void 0),_e.TrustPingMessage=i},1455,[14,11,9,7,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.TrustPingResponseMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.setThread({threadId:e.threadId}),e.timing&&t.setTiming({inTime:e.timing.inTime,outTime:e.timing.outTime})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/trust_ping/1.0/ping_response'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),_e.TrustPingResponseMessage=r},1456,[14,11,9,7,8,948,941,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/connection/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.ConnectionProblemReportMessage=o},1457,[14,11,9,7,8,947,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,d=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(d=(i<3?r(d):i>3?r(t,o,d):r(t,o))||d);return i>3&&d&&Object.defineProperty(t,o,d),d},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeRequestMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.label=e.label,t.goalCode=e.goalCode,t.goal=e.goal,t.did=e.did,t.setThread({threadId:t.id,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"label",void 0),t([(0,_r(_d[8]).Expose)({name:'goal_code'}),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"goalCode",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"goal",void 0),t([(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"did",void 0),t([(0,_r(_d[8]).Expose)({name:'did_doc~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).ValidateNested)(),o("design:type",_r(_d[9]).Attachment)],n.prototype,"didDoc",void 0),_e.DidExchangeRequestMessage=n},1458,[14,11,9,7,8,948,941,661,626,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,c=arguments.length,i=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeResponseMessage=void 0;var r=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.did=e.did,t.setThread({threadId:e.threadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/response'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),n("design:type",String)],r.prototype,"did",void 0),t([(0,_r(_d[8]).Expose)({name:'did_doc~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).ValidateNested)(),n("design:type",_r(_d[9]).Attachment)],r.prototype,"didDoc",void 0),_e.DidExchangeResponseMessage=r},1459,[14,11,9,7,8,948,941,661,626,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(i=(o<3?c(i):o>3?c(t,r,i):c(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeCompleteMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:e.threadId,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/complete'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.DidExchangeCompleteMessage=n},1460,[14,11,9,7,8,948,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var c,n=arguments.length,i=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(i=(n<3?c(i):n>3?c(t,r,i):c(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(n,t);var r,o,c=(r=n,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t;return _r(_d[3])(this,n),(t=c.call(this,e)).type=n.type.messageTypeUri,t}return _r(_d[4])(n)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/didexchange/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.DidExchangeProblemReportMessage=o},1461,[14,11,9,7,8,947,941]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1462,[1463,1464]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRecord=void 0;var t=(function(t){r(d[2])(c,t);var n,o,s=(n=c,o=e(),function(){var e,t=r(d[0])(n);if(o){var s=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t,n,o,u,l;return r(d[3])(this,c),(t=s.call(this)).connectionTypes=[],t.type=c.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.did=e.did,t.invitationDid=e.invitationDid,t.theirDid=e.theirDid,t.theirLabel=e.theirLabel,t.state=e.state,t.role=e.role,t.alias=e.alias,t.autoAcceptConnection=e.autoAcceptConnection,t._tags=null!==(u=e.tags)&&void 0!==u?u:{},t.threadId=e.threadId,t.imageUrl=e.imageUrl,t.mediatorId=e.mediatorId,t.errorMessage=e.errorMessage,t.protocol=e.protocol,t.outOfBandId=e.outOfBandId,t.connectionTypes=null!==(l=e.connectionTypes)&&void 0!==l?l:[]),t}return r(d[5])(c,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{state:this.state,role:this.role,threadId:this.threadId,mediatorId:this.mediatorId,did:this.did,theirDid:this.theirDid,outOfBandId:this.outOfBandId,invitationDid:this.invitationDid,connectionTypes:this.connectionTypes})}},{key:"isRequester",get:function(){return this.role===r(d[7]).DidExchangeRole.Requester}},{key:"rfc0160State",get:function(){return(0,r(d[7]).rfc0160StateFromDidExchangeState)(this.state)}},{key:"isReady",get:function(){return this.state&&[r(d[7]).DidExchangeState.Completed,r(d[7]).DidExchangeState.ResponseSent].includes(this.state)}},{key:"assertReady",value:function(){if(!this.isReady)throw new(r(d[8]).AriesFrameworkError)("Connection record is not ready to be used. Expected "+r(d[7]).DidExchangeState.ResponseSent+", "+r(d[7]).DidExchangeState.ResponseReceived+" or "+r(d[7]).DidExchangeState.Completed+", found invalid state "+this.state)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(r(d[8]).AriesFrameworkError)("Connection record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertRole",value:function(e){if(this.role!==e)throw new(r(d[8]).AriesFrameworkError)("Connection record has invalid role "+this.role+". Expected role "+e+".")}}]),c})(r(d[9]).BaseRecord);_e.ConnectionRecord=t,t.type='ConnectionRecord'},1463,[14,11,9,7,952,8,4,1434,611,1096]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,c=Object.create(i.prototype),u=new P(n||[]);return o(c,"_invoke",{value:j(t,r,u)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p={};function y(){}function d(){}function v(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=v.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,c,u){var f=h(t[o],t,i);if("throw"!==f.type){var l=f.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):e.resolve(s).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,u)})}u(f.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return B()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=h(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),f=n.call(i,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).ConnectionRecord,t,e)}return _r(_d[5])(c,[{key:"findByDids",value:function(e,r){var n,o;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.ourDid,o=r.theirDid,t.abrupt("return",this.findSingleByQuery(e,{did:n,theirDid:o}));case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(t,e){return this.getSingleByQuery(t,{threadId:e})}},{key:"getByRoleAndThreadId",value:function(t,e,r){return this.getSingleByQuery(t,{threadId:r,role:e})}}]),c})(_r(_d[6]).Repository);i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],i),_e.ConnectionRepository=i},1464,[14,11,9,7,1463,8,1101,1019,1103,1104]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1465,[1466,1479]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){e=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,s=Object.create(o.prototype),c=new P(r||[]);return i(s,"_invoke",{value:C(e,n,c)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f={};function h(){}function y(){}function v(){}var w={};d(w,s,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(B([])));x&&x!==n&&r.call(x,s)&&(w=x);var R=v.prototype=h.prototype=Object.create(w);function D(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function n(i,o,s,c){var u=p(e[i],e,o);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,s,c)},function(e){n("throw",e,s,c)}):t.resolve(l).then(function(e){d.value=e,s(d)},function(e){return n("throw",e,s,c)})}c(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function C(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function K(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function B(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),K(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;K(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionService=void 0;var i=(function(){function t(e,n,r,i,o){_r(_d[0])(this,t),this.connectionRepository=n,this.didRepository=r,this.didRegistrarService=i,this.eventEmitter=o,this.logger=e}return _r(_d[1])(t,[{key:"createRequest",value:function(t,n,r){var i,o,s,c,u,d,l,p,f,h,y;return e().async(function(v){for(;;)switch(v.prev=v.next){case 0:return this.logger.debug("Create message "+_r(_d[2]).ConnectionRequestMessage.type.messageTypeUri+" start",n),n.assertRole(_r(_d[3]).OutOfBandRole.Receiver),n.assertState(_r(_d[4]).OutOfBandState.PrepareResponse),i=n.outOfBandInvitation,o=r.routing.mediatorId,s=this.createDidDoc(r.routing),c=_r(_d[5])(i.invitationDids,1),u=c[0],v.next=9,e().awrap(this.createDid(t,{role:_r(_d[6]).DidDocumentRole.Created,didDoc:s}));case 9:return d=v.sent,l=d.did,p=r.label,f=r.imageUrl,(h=new(_r(_d[2]).ConnectionRequestMessage)({label:null!==p&&void 0!==p?p:t.config.label,did:s.id,didDoc:s,imageUrl:null!==f&&void 0!==f?f:t.config.connectionImageUrl})).setThread({threadId:h.id,parentThreadId:i.id}),v.next=16,e().awrap(this.createConnection(t,{protocol:_r(_d[7]).HandshakeProtocol.Connections,role:_r(_d[7]).DidExchangeRole.Requester,state:_r(_d[7]).DidExchangeState.InvitationReceived,theirLabel:i.label,alias:null===r||void 0===r?void 0:r.alias,did:l,mediatorId:o,autoAcceptConnection:null===r||void 0===r?void 0:r.autoAcceptConnection,outOfBandId:n.id,invitationDid:u,imageUrl:i.imageUrl,threadId:h.id}));case 16:return y=v.sent,v.next=19,e().awrap(this.updateState(t,y,_r(_d[7]).DidExchangeState.RequestSent));case 19:return v.abrupt("return",{connectionRecord:y,message:h});case 20:case"end":return v.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(t,n){var r,i,o,s;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.logger.debug("Process message "+_r(_d[2]).ConnectionRequestMessage.type.messageTypeUri+" start",{message:t.message}),n.assertRole(_r(_d[3]).OutOfBandRole.Sender),n.assertState(_r(_d[4]).OutOfBandState.AwaitResponse),(r=t.message).connection.didDoc){c.next=6;break}throw new(_r(_d[8]).ConnectionProblemReportError)('Public DIDs are not supported yet',{problemCode:_r(_d[8]).ConnectionProblemReportReason.RequestNotAccepted});case 6:return c.next=8,e().awrap(this.createDid(t.agentContext,{role:_r(_d[6]).DidDocumentRole.Received,didDoc:r.connection.didDoc}));case 8:return i=c.sent,o=i.did,c.next=12,e().awrap(this.createConnection(t.agentContext,{protocol:_r(_d[7]).HandshakeProtocol.Connections,role:_r(_d[7]).DidExchangeRole.Responder,state:_r(_d[7]).DidExchangeState.RequestReceived,alias:n.alias,theirLabel:r.label,imageUrl:r.imageUrl,outOfBandId:n.id,theirDid:o,threadId:r.threadId,mediatorId:n.mediatorId,autoAcceptConnection:n.autoAcceptConnection}));case 12:return s=c.sent,c.next=15,e().awrap(this.connectionRepository.update(t.agentContext,s));case 15:return this.emitStateChangedEvent(t.agentContext,s,null),this.logger.debug("Process message "+_r(_d[2]).ConnectionRequestMessage.type.messageTypeUri+" end",s),c.abrupt("return",s);case 18:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createResponse",value:function(t,n,r,i){var o,s,c,u,d,l,p;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:return this.logger.debug("Create message "+_r(_d[2]).ConnectionResponseMessage.type.messageTypeUri+" start",n),n.assertState(_r(_d[7]).DidExchangeState.RequestReceived),n.assertRole(_r(_d[7]).DidExchangeRole.Responder),o=i?this.createDidDoc(i):this.createDidDocFromOutOfBandDidCommServices(r.outOfBandInvitation.getInlineServices()),f.next=6,e().awrap(this.createDid(t,{role:_r(_d[6]).DidDocumentRole.Created,didDoc:o}));case 6:if(s=f.sent,c=s.did,u=new(_r(_d[7]).Connection)({did:o.id,didDoc:o}),d=_r(_d[9]).JsonTransformer.toJSON(u),n.threadId){f.next=12;break}throw new(_r(_d[10]).AriesFrameworkError)("Connection record with id "+n.id+" does not have a thread id");case 12:return l=_r(_d[11]).Key.fromFingerprint(r.getTags().recipientKeyFingerprints[0]).publicKeyBase58,f.t0=_r(_d[2]).ConnectionResponseMessage,f.t1=n.threadId,f.next=17,e().awrap((0,_r(_d[12]).signData)(d,t.wallet,l));case 17:return f.t2=f.sent,f.t3={threadId:f.t1,connectionSig:f.t2},p=new f.t0(f.t3),n.did=c,f.next=23,e().awrap(this.updateState(t,n,_r(_d[7]).DidExchangeState.ResponseSent));case 23:return this.logger.debug("Create message "+_r(_d[2]).ConnectionResponseMessage.type.messageTypeUri+" end",{connectionRecord:n,message:p}),f.abrupt("return",{connectionRecord:n,message:p});case 25:case"end":return f.stop()}},null,this,null,Promise)}},{key:"processResponse",value:function(t,n){var r,i,o,s,c,u,d,l,p,f;return e().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(this.logger.debug("Process message "+_r(_d[2]).ConnectionResponseMessage.type.messageTypeUri+" start",{message:t.message}),r=t.connection,i=t.message,o=t.recipientKey,s=t.senderKey,o&&s){h.next=4;break}throw new(_r(_d[10]).AriesFrameworkError)('Unable to process connection request without senderKey or recipientKey');case 4:if(r){h.next=6;break}throw new(_r(_d[10]).AriesFrameworkError)('No connection record in message context.');case 6:return r.assertState(_r(_d[7]).DidExchangeState.RequestSent),r.assertRole(_r(_d[7]).DidExchangeRole.Requester),c=null,h.prev=9,h.next=12,e().awrap((0,_r(_d[12]).unpackAndVerifySignatureDecorator)(i.connectionSig,t.agentContext.wallet));case 12:c=h.sent,h.next=20;break;case 15:if(h.prev=15,h.t0=h.catch(9),!(h.t0 instanceof _r(_d[10]).AriesFrameworkError)){h.next=19;break}throw new(_r(_d[8]).ConnectionProblemReportError)(h.t0.message,{problemCode:_r(_d[8]).ConnectionProblemReportReason.ResponseProcessingError});case 19:throw h.t0;case 20:if(u=_r(_d[9]).JsonTransformer.fromJSON(c,_r(_d[7]).Connection),d=i.connectionSig.signer,l=_r(_d[11]).Key.fromFingerprint(n.getTags().recipientKeyFingerprints[0]).publicKeyBase58,d===l){h.next=25;break}throw new(_r(_d[8]).ConnectionProblemReportError)("Connection object in connection response message is not signed with same key as recipient key in invitation expected='"+l+"' received='"+d+"'",{problemCode:_r(_d[8]).ConnectionProblemReportReason.ResponseNotAccepted});case 25:if(u.didDoc){h.next=27;break}throw new(_r(_d[10]).AriesFrameworkError)('DID Document is missing.');case 27:return h.next=29,e().awrap(this.createDid(t.agentContext,{role:_r(_d[6]).DidDocumentRole.Received,didDoc:u.didDoc}));case 29:return p=h.sent,f=p.did,r.theirDid=f,r.threadId=i.threadId,h.next=35,e().awrap(this.updateState(t.agentContext,r,_r(_d[7]).DidExchangeState.ResponseReceived));case 35:return h.abrupt("return",r);case 36:case"end":return h.stop()}},null,this,[[9,15]],Promise)}},{key:"createTrustPing",value:function(t,n){var r,i,o=arguments;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:if(r=o.length>2&&void 0!==o[2]?o[2]:{},n.assertState([_r(_d[7]).DidExchangeState.ResponseReceived,_r(_d[7]).DidExchangeState.Completed]),i=new(_r(_d[2]).TrustPingMessage)(r),n.state===_r(_d[7]).DidExchangeState.Completed){s.next=6;break}return s.next=6,e().awrap(this.updateState(t,n,_r(_d[7]).DidExchangeState.Completed));case 6:return s.abrupt("return",{connectionRecord:n,message:i});case 7:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processAck",value:function(t){var n,r;return e().async(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=t.connection,r=t.recipientKey,n){i.next=3;break}throw new(_r(_d[10]).AriesFrameworkError)("Unable to process connection ack: connection for recipient key "+(null===r||void 0===r?void 0:r.fingerprint)+" not found");case 3:if(n.state!==_r(_d[7]).DidExchangeState.ResponseSent||n.role!==_r(_d[7]).DidExchangeRole.Responder){i.next=6;break}return i.next=6,e().awrap(this.updateState(t.agentContext,n,_r(_d[7]).DidExchangeState.Completed));case 6:return i.abrupt("return",n);case 7:case"end":return i.stop()}},null,this,null,Promise)}},{key:"processProblemReport",value:function(t){var n,r,i,o,s,c,u;return e().async(function(d){for(;;)switch(d.prev=d.next){case 0:if(r=t.message,i=t.recipientKey,o=t.senderKey,this.logger.debug("Processing connection problem report for verkey "+(null===i||void 0===i?void 0:i.fingerprint)),i){d.next=4;break}throw new(_r(_d[10]).AriesFrameworkError)('Unable to process connection problem report without recipientKey');case 4:return d.next=6,e().awrap(this.didRepository.findCreatedDidByRecipientKey(t.agentContext,i));case 6:if(s=d.sent){d.next=9;break}throw new(_r(_d[10]).AriesFrameworkError)("Unable to process connection problem report: created did record for recipient key "+i.fingerprint+" not found");case 9:return d.next=11,e().awrap(this.findByOurDid(t.agentContext,s.did));case 11:if(c=d.sent){d.next=14;break}throw new(_r(_d[10]).AriesFrameworkError)("Unable to process connection problem report: connection for recipient key "+i.fingerprint+" not found");case 14:if(d.t0=c.theirDid,!d.t0){d.next=19;break}return d.next=18,e().awrap(this.didRepository.findReceivedDid(t.agentContext,c.theirDid));case 18:d.t0=d.sent;case 19:if(u=d.t0){d.next=22;break}throw new(_r(_d[10]).AriesFrameworkError)("Received did record for did "+c.theirDid+" not found.");case 22:if(!o){d.next=25;break}if(null===(n=null===u||void 0===u?void 0:u.getTags().recipientKeyFingerprints)||void 0===n?void 0:n.includes(o.fingerprint)){d.next=25;break}throw new(_r(_d[10]).AriesFrameworkError)("Sender key doesn't match key of connection record");case 25:return c.errorMessage=r.description.code+" : "+r.description.en,d.next=28,e().awrap(this.update(t.agentContext,c));case 28:return d.abrupt("return",c);case 29:case"end":return d.stop()}},null,this,null,Promise)}},{key:"assertConnectionOrServiceDecorator",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.previousSentMessage,r=t.previousReceivedMessage,i=e.connection,o=e.message;if(i)i.assertReady(),this.logger.debug("Processing message with id "+o.id+" and connection id "+i.id,{type:o.type});else{this.logger.debug("Processing connection-less message with id "+o.id,{type:o.type});var s=e.recipientKey&&e.recipientKey.publicKeyBase58,c=e.senderKey&&e.senderKey.publicKeyBase58;if(n){if(!s)throw new(_r(_d[10]).AriesFrameworkError)('Cannot verify service without recipientKey on incoming message (received unpacked message)');if(!(null===n||void 0===n?void 0:n.service)||!n.service.recipientKeys.includes(s))throw new(_r(_d[10]).AriesFrameworkError)('Previously sent message ~service recipientKeys does not include current received message recipient key')}if(r){if(!c)throw new(_r(_d[10]).AriesFrameworkError)('Cannot verify service without senderKey on incoming message (received AnonCrypt or unpacked message)');if(!r.service||!r.service.recipientKeys.includes(c))throw new(_r(_d[10]).AriesFrameworkError)('Previously received message ~service recipientKeys does not include current received message sender key')}if(!o.service&&!s)throw new(_r(_d[10]).AriesFrameworkError)('Message recipientKey must have ~service decorator')}}},{key:"updateState",value:function(t,n,r){var i;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.state,n.state=r,o.next=4,e().awrap(this.connectionRepository.update(t,n));case 4:this.emitStateChangedEvent(t,n,i);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(e,t,n){var r=_r(_d[9]).JsonTransformer.clone(t);this.eventEmitter.emit(e,{type:_r(_d[13]).ConnectionEventTypes.ConnectionStateChanged,payload:{connectionRecord:r,previousState:n}})}},{key:"update",value:function(e,t){return this.connectionRepository.update(e,t)}},{key:"getAll",value:function(e){return this.connectionRepository.getAll(e)}},{key:"getById",value:function(e,t){return this.connectionRepository.getById(e,t)}},{key:"findById",value:function(e,t){return this.connectionRepository.findById(e,t)}},{key:"deleteById",value:function(t,n){var r;return e().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e().awrap(this.getById(t,n));case 2:return r=i.sent,i.abrupt("return",this.connectionRepository.delete(t,r));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findByDids",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findByDids(t,n));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.getByThreadId(t,n));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"getByRoleAndThreadId",value:function(t,n,r){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.getByRoleAndThreadId(t,n,r));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findByTheirDid",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findSingleByQuery(t,{theirDid:n}));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findByOurDid",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findSingleByQuery(t,{did:n}));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findAllByOutOfBandId",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findByQuery(t,{outOfBandId:n}));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findAllByConnectionTypes",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findByQuery(t,{connectionTypes:n}));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findByInvitationDid",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findByQuery(t,{invitationDid:n}));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findByKeys",value:function(t,n){var r,i,o,s,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:return r=n.senderKey,i=n.recipientKey,u.next=3,e().awrap(this.didRepository.findReceivedDidByRecipientKey(t,r));case 3:if(!(o=u.sent)){u.next=14;break}return u.next=7,e().awrap(this.didRepository.findCreatedDidByRecipientKey(t,i));case 7:if(!(s=u.sent)){u.next=14;break}return u.next=11,e().awrap(this.findByDids(t,{ourDid:s.did,theirDid:o.did}));case 11:if(!(c=u.sent)||!c.isReady){u.next=14;break}return u.abrupt("return",c);case 14:return this.logger.debug("No connection record found for encrypted message with recipient key "+i.fingerprint+" and sender key "+r.fingerprint),u.abrupt("return",null);case 16:case"end":return u.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t,n){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connectionRepository.findByQuery(t,n));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"createConnection",value:function(t,n){var r;return e().async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=new(_r(_d[14]).ConnectionRecord)(n),i.next=3,e().awrap(this.connectionRepository.save(t,r));case 3:return i.abrupt("return",r);case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"addConnectionType",value:function(t,n,r){var i;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.connectionTypes||[],n.connectionTypes=[r].concat(_r(_d[15])(i)),o.next=4,e().awrap(this.update(t,n));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"removeConnectionType",value:function(t,n,r){return e().async(function(i){for(;;)switch(i.prev=i.next){case 0:return n.connectionTypes=n.connectionTypes.filter(function(e){return e!==r}),i.next=3,e().awrap(this.update(t,n));case 3:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getConnectionTypes",value:function(t){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.connectionTypes||[]);case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"createDid",value:function(t,n){var r,i,o,s,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:return r=n.role,i=n.didDoc,o=(0,_r(_d[16]).convertToNewDidDocument)(i),s=(0,_r(_d[17]).didDocumentJsonToNumAlgo1Did)(o.toJSON()),o.id=s,(c=new(_r(_d[18]).DidRecord)({did:s,role:r,didDocument:o,tags:{recipientKeyFingerprints:o.recipientKeys.map(function(e){return e.fingerprint})}})).metadata.set(_r(_d[19]).DidRecordMetadataKeys.LegacyDid,{unqualifiedDid:i.id,didDocumentString:_r(_d[9]).JsonTransformer.serialize(i)}),this.logger.debug('Saving DID record',{id:c.id,did:c.did,role:c.role,tags:c.getTags(),didDocument:'omitted...'}),u.next=9,e().awrap(this.didRepository.save(t,c));case 9:return this.logger.debug('Did record created.',c),u.abrupt("return",{did:s,didDocument:o});case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"createDidDoc",value:function(e){var t=(0,_r(_d[20]).indyDidFromPublicKeyBase58)(e.recipientKey.publicKeyBase58),n=new(_r(_d[7]).Ed25119Sig2018)({id:t+"#1",controller:t,publicKeyBase58:e.recipientKey.publicKeyBase58}),r=new(_r(_d[7]).ReferencedAuthentication)(n,_r(_d[7]).authenticationTypes.Ed25519VerificationKey2018),i=e.endpoints.map(function(n,r){return new(_r(_d[21]).IndyAgentService)({id:t+"#IndyAgentService",serviceEndpoint:n,recipientKeys:[e.recipientKey.publicKeyBase58],routingKeys:e.routingKeys.map(function(e){return e.publicKeyBase58}),priority:r})});return new(_r(_d[7]).DidDoc)({id:t,authentication:[r],service:i,publicKey:[n]})}},{key:"createDidDocFromOutOfBandDidCommServices",value:function(e){var t=_r(_d[5])(e[0].recipientKeys,1)[0],n=_r(_d[21]).DidKey.fromDid(t).key,r=(0,_r(_d[20]).indyDidFromPublicKeyBase58)(n.publicKeyBase58),i=new(_r(_d[7]).Ed25119Sig2018)({id:r+"#1",controller:r,publicKeyBase58:n.publicKeyBase58}),o=new(_r(_d[7]).ReferencedAuthentication)(i,_r(_d[7]).authenticationTypes.Ed25519VerificationKey2018),s=e.map(function(e,t){var i;return new(_r(_d[21]).IndyAgentService)({id:r+"#IndyAgentService",serviceEndpoint:e.serviceEndpoint,recipientKeys:[n.publicKeyBase58],routingKeys:null===(i=e.routingKeys)||void 0===i?void 0:i.map(_r(_d[22]).didKeyToVerkey),priority:t})});return new(_r(_d[7]).DidDoc)({id:r,authentication:[o],service:s,publicKey:[i]})}},{key:"returnWhenIsConnected",value:function(t,n){var r,i,o,s,c,u=arguments;return e().async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:2e4,i=function(e){return e.id===n&&e.state===_r(_d[7]).DidExchangeState.Completed},o=this.eventEmitter.observable(_r(_d[13]).ConnectionEventTypes.ConnectionStateChanged),s=new(_r(_d[23]).ReplaySubject)(1),o.pipe((0,_r(_d[24]).filterContextCorrelationId)(t.contextCorrelationId),(0,_r(_d[25]).map)(function(e){return e.payload.connectionRecord}),(0,_r(_d[25]).first)(i),(0,_r(_d[25]).timeout)(r)).subscribe(s),d.next=7,e().awrap(this.getById(t,n));case 7:return c=d.sent,i(c)&&s.next(c),d.abrupt("return",(0,_r(_d[23]).firstValueFrom)(s));case 10:case"end":return d.stop()}},null,this,null,Promise)}}]),t})();i=t([(0,_r(_d[26]).injectable)(),r(0,(0,_r(_d[26]).inject)(_r(_d[27]).InjectionSymbols.Logger)),n("design:paramtypes",[Object,_r(_d[28]).ConnectionRepository,_r(_d[18]).DidRepository,_r(_d[21]).DidRegistrarService,_r(_d[29]).EventEmitter])],i),_e.ConnectionService=i},1466,[7,8,1426,1467,1468,31,1098,1434,1469,625,611,989,1474,1476,1463,42,1477,1353,1092,1095,1363,1419,985,1105,1345,1328,1019,1103,1464,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandRole=void 0,(function(n){n.Sender="sender",n.Receiver="receiver"})(e.OutOfBandRole||(e.OutOfBandRole={}))},1467,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandState=void 0,(function(t){t.Initial="initial",t.AwaitResponse="await-response",t.PrepareResponse="prepare-response",t.Done="done"})(e.OutOfBandState||(e.OutOfBandState={}))},1468,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1469,[1470,1471,1472,1473]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ConnectionProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).ConnectionProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.ConnectionProblemReportError=t},1470,[14,11,9,7,1426,8,944]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionProblemReportReason=void 0,(function(o){o.RequestNotAccepted="request_not_accepted",o.RequestProcessingError="request_processing_error",o.ResponseNotAccepted="response_not_accepted",o.ResponseProcessingError="response_processing_error"})(e.ConnectionProblemReportReason||(e.ConnectionProblemReportReason={}))},1471,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidExchangeProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).DidExchangeProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.DidExchangeProblemReportError=t},1472,[14,11,9,7,1426,8,944]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeProblemReportReason=void 0,(function(o){o.RequestNotAccepted="request_not_accepted",o.RequestProcessingError="request_processing_error",o.ResponseNotAccepted="response_not_accepted",o.ResponseProcessingError="response_processing_error",o.CompleteRejected="complete_rejected"})(e.DidExchangeProblemReportReason||(e.DidExchangeProblemReportReason={}))},1473,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),f=new B(i||[]);return c(s,"_invoke",{value:P(t,o,f)}),s}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v={};function w(){}function b(){}function x(){}var E={};h(E,s,function(){return this});var L=Object.getPrototypeOf,_=L&&L(L(D([])));_&&_!==o&&i.call(_,s)&&(E=_);var O=x.prototype=w.prototype=Object.create(E);function j(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,f){var l=y(t[c],t,u);if("throw"!==l.type){var h=l.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,f)},function(t){o("throw",t,s,f)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,f)})}f(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return G()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var f=S(s,o);if(f){if(f===v)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=y(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===v)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var c=y(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,v;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function D(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(f&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:D(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},n}var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.signData=e.unpackAndVerifySignatureDecorator=void 0;var o=n(r(d[0]));e.unpackAndVerifySignatureDecorator=function(n,o){var i,c,u,s;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return i=n.signer,c=r(d[1]).Key.fromPublicKeyBase58(i,r(d[1]).KeyType.Ed25519),u=r(d[2]).TypedArrayEncoder.fromBase64(n.signatureData),s=r(d[2]).TypedArrayEncoder.fromBase64(n.signature),f.next=6,t().awrap(o.verify({signature:s,data:u,key:c}));case 6:if(f.sent){f.next=9;break}throw new(r(d[3]).AriesFrameworkError)('Signature is not valid');case 9:return f.abrupt("return",r(d[4]).JsonEncoder.fromBuffer(u.slice(8)));case 10:case"end":return f.stop()}},null,null,null,Promise)},e.signData=function(n,i,c){var u,s,f,l;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return u=r(d[5]).Buffer.concat([(0,o.default)(),r(d[4]).JsonEncoder.toBuffer(n)]),s=r(d[1]).Key.fromPublicKeyBase58(c,r(d[1]).KeyType.Ed25519),h.next=4,t().awrap(i.sign({key:s,data:u}));case 4:return f=h.sent,l=new(r(d[6]).SignatureDecorator)({signatureType:'https://didcomm.org/signature/1.0/ed25519Sha512_single',signature:r(d[2]).TypedArrayEncoder.toBase64URL(f),signatureData:r(d[2]).TypedArrayEncoder.toBase64URL(u),signer:c}),h.abrupt("return",l);case 7:case"end":return h.stop()}},null,null,null,Promise)}},1474,[1475,989,993,611,978,980,1454]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=Date.now(),n=[],u=0;u<8;u++){var o=255&t;n.push(o),t=(t-o)/256}return Uint8Array.from(n).reverse()}},1475,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionEventTypes=void 0,(function(n){n.ConnectionStateChanged="ConnectionStateChanged"})(e.ConnectionEventTypes||(e.ConnectionEventTypes={}))},1476,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){if(!n.includes('#')&&n.includes(';')){var t=n.split(';');return"#"+r(d[3])(t).slice(1).join(';')}var o=n.split('#'),c=r(d[3])(o).slice(1);return"#"+(c.length?c.join('#'):n)}function t(n){if(!n.value)throw new(r(d[4]).AriesFrameworkError)("Public key "+n.id+" does not have value property");var t=n.value,o=r(d[5]).Key.fromPublicKeyBase58(t,r(d[5]).KeyType.Ed25519);return(0,r(d[6]).getEd25519VerificationMethod)({id:"#"+t.slice(0,8),key:o,controller:'#id'})}Object.defineProperty(e,"__esModule",{value:!0}),e.convertToNewDidDocument=void 0,e.convertToNewDidDocument=function(o){var c=new(r(d[0]).DidDocumentBuilder)(''),u={};o.authentication.forEach(function(o){var s=o.publicKey;if('Ed25519VerificationKey2018'===s.type&&s.value){var v=t(s),y=n(s.id);u[y]=v.id,c.addAuthentication(v.id),o instanceof r(d[1]).EmbeddedAuthentication&&c.addVerificationMethod(v)}}),o.publicKey.forEach(function(o){if('Ed25519VerificationKey2018'===o.type&&o.value){var s=t(o),v=n(o.id);u[v]=s.id,c.addVerificationMethod(s)}}),o.didCommServices.forEach(function(t){var o=n(t.id);if(t instanceof r(d[0]).DidCommV1Service){var s=t.recipientKeys.map(function(t){var o=n(t);return u[o]});t=new(r(d[0]).DidCommV1Service)({id:o,recipientKeys:s,serviceEndpoint:t.serviceEndpoint,routingKeys:t.routingKeys,accept:t.accept,priority:t.priority})}else t instanceof r(d[0]).IndyAgentService&&(t=new(r(d[0]).IndyAgentService)({id:o,recipientKeys:t.recipientKeys,serviceEndpoint:t.serviceEndpoint,routingKeys:t.routingKeys,priority:t.priority}));c.addService(t)});var s=c.build(),v=(0,r(d[2]).didDocumentJsonToNumAlgo1Did)(s.toJSON());return s.id=v,s}},1477,[1419,1434,1353,1478,611,989,1080]); +__d(function(g,r,i,a,m,e,d){m.exports=function(t){return r(d[0])(t)||r(d[1])(t)||r(d[2])(t)||r(d[3])()},m.exports.default=m.exports,m.exports.__esModule=!0},1478,[32,44,34,36]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,s){var r,o=arguments.length,c=o<3?n:null===s?s=Object.getOwnPropertyDescriptor(n,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,i,s);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(c=(o<3?r(c):o>3?r(n,i,c):r(n,i))||c);return o>3&&c&&Object.defineProperty(n,i,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingService=void 0;var i=(function(){function t(n){_r(_d[0])(this,t),this.eventEmitter=n}return _r(_d[1])(t,[{key:"processPing",value:function(t,n){var i=t.message,s=t.agentContext;if(this.eventEmitter.emit(s,{type:_r(_d[2]).TrustPingEventTypes.TrustPingReceivedEvent,payload:{connectionRecord:n,message:i}}),i.responseRequested){var r=new(_r(_d[3]).TrustPingResponseMessage)({threadId:i.id});return new(_r(_d[4]).OutboundMessageContext)(r,{agentContext:s,connection:n})}}},{key:"processPingResponse",value:function(t){var n=t.agentContext,i=t.message,s=t.assertReadyConnection();this.eventEmitter.emit(n,{type:_r(_d[2]).TrustPingEventTypes.TrustPingResponseReceivedEvent,payload:{connectionRecord:s,message:i}})}}]),t})();i=t([(0,_r(_d[5]).injectable)(),n("design:paramtypes",[_r(_d[6]).EventEmitter])],i),e.TrustPingService=i},1479,[7,8,1480,1426,622,1019,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingEventTypes=void 0,(function(n){n.TrustPingReceivedEvent="TrustPingReceivedEvent",n.TrustPingResponseReceivedEvent="TrustPingResponseReceivedEvent"})(e.TrustPingEventTypes||(e.TrustPingEventTypes={}))},1480,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,n,r){t[n]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function d(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{d({},"")}catch(t){d=function(t,n,r){return t[n]=r}}function l(t,n,r,o){var s=n&&n.prototype instanceof v?n:v,c=Object.create(s.prototype),u=new I(o||[]);return i(c,"_invoke",{value:R(t,r,u)}),c}function f(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=l;var p={};function v(){}function y(){}function x(){}var w={};d(w,c,function(){return this});var C=Object.getPrototypeOf,b=C&&C(C(L([])));b&&b!==r&&o.call(b,c)&&(w=b);var S=x.prototype=v.prototype=Object.create(w);function k(t){["next","throw","return"].forEach(function(n){d(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){function r(i,s,c,u){var h=f(t[i],t,s);if("throw"!==h.type){var d=h.arg,l=d.value;return l&&"object"==typeof l&&o.call(l,"__await")?n.resolve(l.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):n.resolve(l).then(function(t){d.value=t,c(d)},function(t){return r("throw",t,c,u)})}u(h.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new n(function(n,i){r(t,o,n,i)})}return s=s?s.then(i,i):i()}})}function R(t,n,r){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return M()}for(r.method=i,r.arg=s;;){var c=r.delegate;if(c){var u=B(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var h=f(t,n,r);if("normal"===h.type){if(o=r.done?"completed":"suspendedYield",h.arg===p)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(o="completed",r.method="throw",r.arg=h.arg)}}}function B(t,n){var r=n.method,o=t.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,B(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function E(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),h=o.call(s,"finallyLoc");if(u&&h){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var i=o.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},n}var n=this&&this.__decorate||function(t,n,r,o){var i,s=arguments.length,c=s<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(c=(s<3?i(c):s>3?i(n,r,c):i(n,r))||c);return s>3&&c&&Object.defineProperty(n,r,c),c},r=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsApi=void 0;var o=(function(){function n(t,r,o,i,s,c,u,h,d,l,f){_r(_d[0])(this,n),this.didExchangeProtocol=r,this.connectionService=o,this.outOfBandService=i,this.trustPingService=s,this.routingService=c,this.didRepository=u,this.messageSender=d,this.didResolverService=h,this.agentContext=l,this.config=f,this.registerMessageHandlers(t)}return _r(_d[1])(n,[{key:"acceptOutOfBandInvitation",value:function(n,r){var o,i,s,c,u,h,d,l,f,p,v;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(o=r.protocol,i=r.label,s=r.alias,c=r.imageUrl,u=r.autoAcceptConnection,y.t0=r.routing,y.t0){y.next=6;break}return y.next=5,t().awrap(this.routingService.getRouting(this.agentContext,{mediatorId:n.mediatorId}));case 5:y.t0=y.sent;case 6:if(h=y.t0,o!==_r(_d[2]).HandshakeProtocol.DidExchange){y.next=13;break}return y.next=10,t().awrap(this.didExchangeProtocol.createRequest(this.agentContext,n,{label:i,alias:s,routing:h,autoAcceptConnection:u}));case 10:d=y.sent,y.next=20;break;case 13:if(o!==_r(_d[2]).HandshakeProtocol.Connections){y.next=19;break}return y.next=16,t().awrap(this.connectionService.createRequest(this.agentContext,n,{label:i,alias:s,imageUrl:c,routing:h,autoAcceptConnection:u}));case 16:d=y.sent,y.next=20;break;case 19:throw new(_r(_d[3]).AriesFrameworkError)("Unsupported handshake protocol "+o+".");case 20:return f=(l=d).message,p=l.connectionRecord,v=new(_r(_d[4]).OutboundMessageContext)(f,{agentContext:this.agentContext,connection:p,outOfBand:n}),y.next=24,t().awrap(this.messageSender.sendMessage(v));case 24:return y.abrupt("return",p);case 25:case"end":return y.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(n){var r,o,i,s,c,u,h;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.connectionService.findById(this.agentContext,n));case 2:if(r=d.sent){d.next=5;break}throw new(_r(_d[3]).AriesFrameworkError)("Connection record "+n+" not found.");case 5:if(r.outOfBandId){d.next=7;break}throw new(_r(_d[3]).AriesFrameworkError)("Connection record "+n+" does not have out-of-band record.");case 7:return d.next=9,t().awrap(this.outOfBandService.findById(this.agentContext,r.outOfBandId));case 9:if(o=d.sent){d.next=12;break}throw new(_r(_d[3]).AriesFrameworkError)("Out-of-band record "+r.outOfBandId+" not found.");case 12:if(!o.reusable){d.next=18;break}return d.next=15,t().awrap(this.routingService.getRouting(this.agentContext));case 15:d.t0=d.sent,d.next=19;break;case 18:d.t0=void 0;case 19:if(i=d.t0,r.protocol!==_r(_d[2]).HandshakeProtocol.DidExchange){d.next=27;break}return d.next=23,t().awrap(this.didExchangeProtocol.createResponse(this.agentContext,r,o,i));case 23:c=d.sent,s=new(_r(_d[4]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:r}),d.next=32;break;case 27:return d.next=29,t().awrap(this.connectionService.createResponse(this.agentContext,r,o,i));case 29:u=d.sent,h=u.message,s=new(_r(_d[4]).OutboundMessageContext)(h,{agentContext:this.agentContext,connection:r});case 32:return d.next=34,t().awrap(this.messageSender.sendMessage(s));case 34:return d.abrupt("return",r);case 35:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptResponse",value:function(n){var r,o,i,s,c,u;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,t().awrap(this.connectionService.getById(this.agentContext,n));case 2:if((r=h.sent).protocol!==_r(_d[2]).HandshakeProtocol.DidExchange){h.next=18;break}if(r.outOfBandId){h.next=6;break}throw new(_r(_d[3]).AriesFrameworkError)("Connection "+r.id+" does not have outOfBandId!");case 6:return h.next=8,t().awrap(this.outOfBandService.findById(this.agentContext,r.outOfBandId));case 8:if(i=h.sent){h.next=11;break}throw new(_r(_d[3]).AriesFrameworkError)("OutOfBand record for connection "+r.id+" with outOfBandId "+r.outOfBandId+" not found!");case 11:return h.next=13,t().awrap(this.didExchangeProtocol.createComplete(this.agentContext,r,i));case 13:(s=h.sent).setReturnRouting(_r(_d[5]).ReturnRouteTypes.none),o=new(_r(_d[4]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:r}),h.next=24;break;case 18:return h.next=20,t().awrap(this.connectionService.createTrustPing(this.agentContext,r,{responseRequested:!1}));case 20:c=h.sent,(u=c.message).setReturnRouting(_r(_d[5]).ReturnRouteTypes.none),o=new(_r(_d[4]).OutboundMessageContext)(u,{agentContext:this.agentContext,connection:r});case 24:return h.next=26,t().awrap(this.messageSender.sendMessage(o));case 26:return h.abrupt("return",r);case 27:case"end":return h.stop()}},null,this,null,Promise)}},{key:"sendPing",value:function(n,r){var o,i,s,c,u,h,d;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return o=r.responseRequested,i=void 0===o||o,s=r.withReturnRouting,c=void 0===s?void 0:s,l.next=3,t().awrap(this.getById(n));case 3:return u=l.sent,l.next=6,t().awrap(this.connectionService.createTrustPing(this.agentContext,u,{responseRequested:i}));case 6:return h=l.sent,d=h.message,!0===c&&d.setReturnRouting(_r(_d[5]).ReturnRouteTypes.all),!1===c&&d.setReturnRouting(_r(_d[5]).ReturnRouteTypes.none),l.next=12,t().awrap(this.messageSender.sendMessage(new(_r(_d[4]).OutboundMessageContext)(d,{agentContext:this.agentContext,connection:u})));case 12:return l.abrupt("return",d);case 13:case"end":return l.stop()}},null,this,null,Promise)}},{key:"returnWhenIsConnected",value:function(n,r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionService.returnWhenIsConnected(this.agentContext,n,null===r||void 0===r?void 0:r.timeoutMs));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(){return this.connectionService.getAll(this.agentContext)}},{key:"findAllByQuery",value:function(t){return this.connectionService.findAllByQuery(this.agentContext,t)}},{key:"addConnectionType",value:function(n,r){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getById(n));case 2:return o=i.sent,i.next=5,t().awrap(this.connectionService.addConnectionType(this.agentContext,o,r));case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"removeConnectionType",value:function(n,r){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getById(n));case 2:return o=i.sent,i.next=5,t().awrap(this.connectionService.removeConnectionType(this.agentContext,o,r));case 5:return i.abrupt("return",o);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getConnectionTypes",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getById(n));case 2:return r=o.sent,o.abrupt("return",this.connectionService.getConnectionTypes(r));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findAllByConnectionTypes",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionService.findAllByConnectionTypes(this.agentContext,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t){return this.connectionService.getById(this.agentContext,t)}},{key:"findById",value:function(t){return this.connectionService.findById(this.agentContext,t)}},{key:"deleteById",value:function(n){var r,o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.connectionService.getById(this.agentContext,n));case 2:if(!(r=i.sent).mediatorId||!r.did){i.next=10;break}return i.next=6,t().awrap(this.didResolverService.resolve(this.agentContext,r.did));case 6:if(!(o=i.sent).didDocument){i.next=10;break}return i.next=10,t().awrap(this.routingService.removeRouting(this.agentContext,{recipientKeys:o.didDocument.recipientKeys,mediatorId:r.mediatorId}));case 10:return i.abrupt("return",this.connectionService.deleteById(this.agentContext,n));case 11:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findAllByOutOfBandId",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionService.findAllByOutOfBandId(this.agentContext,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByThreadId",value:function(t){return this.connectionService.getByThreadId(this.agentContext,t)}},{key:"findByDid",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionService.findByTheirDid(this.agentContext,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByInvitationDid",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.connectionService.findByInvitationDid(this.agentContext,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d[6]).ConnectionRequestHandler)(this.connectionService,this.outOfBandService,this.routingService,this.didRepository,this.config)),t.registerMessageHandler(new(_r(_d[6]).ConnectionResponseHandler)(this.connectionService,this.outOfBandService,this.didResolverService,this.config)),t.registerMessageHandler(new(_r(_d[6]).AckMessageHandler)(this.connectionService)),t.registerMessageHandler(new(_r(_d[6]).TrustPingMessageHandler)(this.trustPingService,this.connectionService)),t.registerMessageHandler(new(_r(_d[6]).TrustPingResponseMessageHandler)(this.trustPingService)),t.registerMessageHandler(new(_r(_d[6]).DidExchangeRequestHandler)(this.didExchangeProtocol,this.outOfBandService,this.routingService,this.didRepository,this.config)),t.registerMessageHandler(new(_r(_d[6]).DidExchangeResponseHandler)(this.didExchangeProtocol,this.outOfBandService,this.connectionService,this.didResolverService,this.config)),t.registerMessageHandler(new(_r(_d[6]).DidExchangeCompleteHandler)(this.didExchangeProtocol,this.outOfBandService))}}]),n})();o=n([(0,_r(_d[7]).injectable)(),r("design:paramtypes",[_r(_d[8]).Dispatcher,_r(_d[9]).DidExchangeProtocol,_r(_d[10]).ConnectionService,_r(_d[11]).OutOfBandService,_r(_d[12]).TrustPingService,_r(_d[13]).RoutingService,_r(_d[14]).DidRepository,_r(_d[15]).DidResolverService,_r(_d[16]).MessageSender,_r(_d[17]).AgentContext,_r(_d[18]).ConnectionsModuleConfig])],o),e.ConnectionsApi=o},1481,[7,8,1434,611,622,971,1482,1019,1493,1494,1466,1497,1479,1507,1092,1419,1344,1390,1526]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e)},1482,[1483,1486,1487,1488,1489,1490,1491,1492]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new A(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return M()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.AckMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).AckMessage],this.connectionService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.connectionService.processAck(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.AckMessageHandler=n},1483,[7,1484,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1484,[1485]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e,r=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var i=t.length-1;i>=0;i--)(c=t[i])&&(s=(o<3?c(s):o>3?c(e,r,s):c(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.AckMessage=_e.AckStatus=void 0,(function(t){t.OK="OK",t.PENDING="PENDING"})(e=_e.AckStatus||(_e.AckStatus={}));var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t){var e;return _r(_d[3])(this,o),(e=c.call(this)).type=o.type.messageTypeUri,t&&(e.id=t.id||e.generateId(),e.status=t.status,e.setThread({threadId:t.threadId})),e}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/notification/1.0/ack'),r([(0,_r(_d[6]).IsValidMessageType)(c.type),n("design:type",String)],c.prototype,"type",void 0),r([(0,_r(_d[7]).IsEnum)(e),n("design:type",String)],c.prototype,"status",void 0),_e.AckMessage=c},1485,[14,11,9,7,8,948,941,661]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),f=new F(i||[]);return c(s,"_invoke",{value:j(t,o,f)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};l(L,s,function(){return this});var E=Object.getPrototypeOf,k=E&&E(E(P([])));k&&k!==o&&i.call(k,s)&&(L=k);var O=b.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function C(t,n){function o(c,u,s,f){var h=v(t[c],t,u);if("throw"!==h.type){var l=h.arg,p=l.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,f)},function(t){o("throw",t,s,f)}):n.resolve(p).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function j(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return G()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var f=S(s,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function P(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionRequestHandler=void 0;var n=(function(){function n(t,o,i,c,u){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ConnectionRequestMessage],this.connectionService=t,this.outOfBandService=o,this.routingService=i,this.didRepository=c,this.connectionsModuleConfig=u}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u,s,f,h,l,p;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(i=n.connection,c=n.recipientKey,u=n.senderKey,c&&u){v.next=3;break}throw new(r(d[3]).AriesFrameworkError)('Unable to process connection request without senderVerkey or recipientKey');case 3:return v.next=5,t().awrap(this.outOfBandService.findCreatedByRecipientKey(n.agentContext,c));case 5:if(s=v.sent){v.next=8;break}throw new(r(d[3]).AriesFrameworkError)("Out-of-band record for recipient key "+c.fingerprint+" was not found.");case 8:if(!i||s.reusable){v.next=10;break}throw new(r(d[3]).AriesFrameworkError)("Connection record for non-reusable out-of-band "+s.id+" already exists.");case 10:return v.next=12,t().awrap(this.didRepository.findReceivedDidByRecipientKey(n.agentContext,u));case 12:if(!v.sent){v.next=15;break}throw new(r(d[3]).AriesFrameworkError)("A received did record for sender key "+u.fingerprint+" already exists.");case 15:return v.next=17,t().awrap(this.connectionService.processRequest(n,s));case 17:if(f=v.sent,!(null!==(o=null===f||void 0===f?void 0:f.autoAcceptConnection)&&void 0!==o?o:this.connectionsModuleConfig.autoAcceptConnections)){v.next=32;break}if(!s.reusable){v.next=25;break}return v.next=22,t().awrap(this.routingService.getRouting(n.agentContext));case 22:v.t0=v.sent,v.next=26;break;case 25:v.t0=void 0;case 26:return h=v.t0,v.next=29,t().awrap(this.connectionService.createResponse(n.agentContext,f,s,h));case 29:return l=v.sent,p=l.message,v.abrupt("return",new(r(d[4]).OutboundMessageContext)(p,{agentContext:n.agentContext,connection:f,outOfBand:s}));case 32:case"end":return v.stop()}},null,this,null,Promise)}}]),n})();e.ConnectionRequestHandler=n},1486,[7,1426,8,612,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),f=new F(i||[]);return c(s,"_invoke",{value:R(t,o,f)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var E={};l(E,s,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(I([])));k&&k!==o&&i.call(k,s)&&(E=k);var O=b.prototype=w.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function C(t,n){function o(c,u,s,f){var h=v(t[c],t,u);if("throw"!==h.type){var l=h.arg,p=l.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,f)},function(t){o("throw",t,s,f)}):n.resolve(p).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function R(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return P()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var f=S(s,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function I(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionResponseHandler=void 0;var n=(function(){function n(t,o,i,c){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ConnectionResponseMessage],this.connectionService=t,this.outOfBandService=o,this.didResolverService=i,this.connectionsModuleConfig=c}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u,s,f,h,l,p,v;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(i=n.recipientKey,c=n.senderKey,u=n.message,i&&c){y.next=3;break}throw new(r(d[3]).AriesFrameworkError)('Unable to process connection response without senderKey or recipientKey');case 3:return y.next=5,t().awrap(this.connectionService.getByRoleAndThreadId(n.agentContext,r(d[4]).DidExchangeRole.Requester,u.threadId));case 5:if(s=y.sent){y.next=8;break}throw new(r(d[3]).AriesFrameworkError)("Connection for thread ID "+u.threadId+" not found!");case 8:if(s.did){y.next=10;break}throw new(r(d[3]).AriesFrameworkError)("Connection record "+s.id+" has no 'did'");case 10:return y.next=12,t().awrap(this.didResolverService.resolveDidDocument(n.agentContext,s.did));case 12:if(f=y.sent){y.next=15;break}throw new(r(d[3]).AriesFrameworkError)("Did document for did "+s.did+" was not resolved!");case 15:if(f.recipientKeys.find(function(t){return t.fingerprint===i.fingerprint})){y.next=17;break}throw new(r(d[3]).AriesFrameworkError)("Recipient key "+i.fingerprint+" not found in did document recipient keys.");case 17:if(y.t0=s.outOfBandId,!y.t0){y.next=22;break}return y.next=21,t().awrap(this.outOfBandService.findById(n.agentContext,s.outOfBandId));case 21:y.t0=y.sent;case 22:if(h=y.t0){y.next=25;break}throw new(r(d[3]).AriesFrameworkError)("Out-of-band record "+s.outOfBandId+" was not found.");case 25:return n.connection=s,y.next=28,t().awrap(this.connectionService.processResponse(n,h));case 28:if(l=y.sent,!(null!==(o=l.autoAcceptConnection)&&void 0!==o?o:this.connectionsModuleConfig.autoAcceptConnections)){y.next=36;break}return y.next=32,t().awrap(this.connectionService.createTrustPing(n.agentContext,l,{responseRequested:!1}));case 32:return p=y.sent,(v=p.message).setReturnRouting(r(d[5]).ReturnRouteTypes.none),y.abrupt("return",new(r(d[6]).OutboundMessageContext)(v,{agentContext:n.agentContext,connection:l}));case 36:case"end":return y.stop()}},null,this,null,Promise)}}]),n})();e.ConnectionResponseHandler=n},1487,[7,1426,8,611,1434,971,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new T(i||[]);return c(s,"_invoke",{value:j(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function P(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function j(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return M()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=k(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingMessageHandler=void 0;var n=(function(){function n(t,o){r(d[0])(this,n),this.supportedMessages=[r(d[1]).TrustPingMessage],this.trustPingService=t,this.connectionService=o}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=n.connection,i=n.recipientKey,o){c.next=3;break}throw new(r(d[3]).AriesFrameworkError)("Connection for verkey "+(null===i||void 0===i?void 0:i.fingerprint)+" not found!");case 3:if(o.state!==r(d[4]).DidExchangeState.ResponseSent){c.next=6;break}return c.next=6,t().awrap(this.connectionService.updateState(n.agentContext,o,r(d[4]).DidExchangeState.Completed));case 6:return c.abrupt("return",this.trustPingService.processPing(n,o));case 7:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.TrustPingMessageHandler=n},1488,[7,1426,8,611,1434]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new T(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function L(){}function b(){}var x={};f(x,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(x=_);var O=b.prototype=w.prototype=Object.create(x);function P(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return M()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.TrustPingResponseMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).TrustPingResponseMessage],this.trustPingService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.trustPingService.processPingResponse(n));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.TrustPingResponseMessageHandler=n},1489,[7,1426,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:C(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var E={};l(E,s,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(R([])));k&&k!==o&&i.call(k,s)&&(E=k);var O=b.prototype=w.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,h){var f=v(t[c],t,u);if("throw"!==f.type){var l=f.arg,p=l.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,h)})}h(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function C(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(h&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:R(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeRequestHandler=void 0;var n=(function(){function n(t,o,i,c,u){r(d[0])(this,n),this.supportedMessages=[r(d[1]).DidExchangeRequestMessage],this.didExchangeProtocol=t,this.outOfBandService=o,this.routingService=i,this.didRepository=c,this.connectionsModuleConfig=u}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u,s,h,f,l,p,v,y;return t().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(u=n.recipientKey,s=n.senderKey,h=n.message,f=n.connection,u&&s){w.next=3;break}throw new(r(d[3]).AriesFrameworkError)('Unable to process connection request without senderKey or recipientKey');case 3:if(null===(o=h.thread)||void 0===o?void 0:o.parentThreadId){w.next=5;break}throw new(r(d[3]).AriesFrameworkError)("Message does not contain 'pthid' attribute");case 5:return w.next=7,t().awrap(this.outOfBandService.findByCreatedInvitationId(n.agentContext,h.thread.parentThreadId));case 7:if(l=w.sent){w.next=10;break}throw new(r(d[3]).AriesFrameworkError)("OutOfBand record for message ID "+(null===(i=h.thread)||void 0===i?void 0:i.parentThreadId)+" not found!");case 10:if(!f||l.reusable){w.next=12;break}throw new(r(d[3]).AriesFrameworkError)("Connection record for non-reusable out-of-band "+l.id+" already exists.");case 12:return w.next=14,t().awrap(this.didRepository.findReceivedDidByRecipientKey(n.agentContext,s));case 14:if(!w.sent){w.next=17;break}throw new(r(d[3]).AriesFrameworkError)("A received did record for sender key "+s.fingerprint+" already exists.");case 17:if(l.state!==r(d[4]).OutOfBandState.Done){w.next=19;break}throw new(r(d[3]).AriesFrameworkError)('Out-of-band record has been already processed and it does not accept any new requests');case 19:return w.next=21,t().awrap(this.didExchangeProtocol.processRequest(n,l));case 21:if(p=w.sent,!(null!==(c=p.autoAcceptConnection)&&void 0!==c?c:this.connectionsModuleConfig.autoAcceptConnections)){w.next=35;break}if(!l.reusable){w.next=29;break}return w.next=26,t().awrap(this.routingService.getRouting(n.agentContext));case 26:w.t0=w.sent,w.next=30;break;case 29:w.t0=void 0;case 30:return v=w.t0,w.next=33,t().awrap(this.didExchangeProtocol.createResponse(n.agentContext,p,l,v));case 33:return y=w.sent,w.abrupt("return",new(r(d[5]).OutboundMessageContext)(y,{agentContext:n.agentContext,connection:p,outOfBand:l}));case 35:case"end":return w.stop()}},null,this,null,Promise)}}]),n})();e.DidExchangeRequestHandler=n},1490,[7,1426,8,612,1468,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:j(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var E={};l(E,s,function(){return this});var k=Object.getPrototypeOf,L=k&&k(k(I([])));L&&L!==o&&i.call(L,s)&&(E=L);var O=b.prototype=w.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,s,h){var f=v(t[c],t,u);if("throw"!==f.type){var l=f.arg,p=l.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,h)})}h(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function j(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return B()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function I(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(h&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeResponseHandler=void 0;var n=(function(){function n(t,o,i,c,u){r(d[0])(this,n),this.supportedMessages=[r(d[1]).DidExchangeResponseMessage],this.didExchangeProtocol=t,this.outOfBandService=o,this.connectionService=i,this.didResolverService=c,this.connectionsModuleConfig=u}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u,s,h,f,l,p,v,y;return t().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(i=n.agentContext,c=n.recipientKey,u=n.senderKey,s=n.message,c&&u){w.next=3;break}throw new(r(d[3]).AriesFrameworkError)('Unable to process connection response without sender key or recipient key');case 3:return w.next=5,t().awrap(this.connectionService.getByRoleAndThreadId(i,r(d[4]).DidExchangeRole.Requester,s.threadId));case 5:if(h=w.sent){w.next=8;break}throw new(r(d[3]).AriesFrameworkError)("Connection for thread ID "+s.threadId+" not found!");case 8:if(h.did){w.next=10;break}throw new(r(d[3]).AriesFrameworkError)("Connection record "+h.id+" has no 'did'");case 10:return w.next=12,t().awrap(this.didResolverService.resolveDidDocument(i,h.did));case 12:if(f=w.sent){w.next=15;break}throw new(r(d[3]).AriesFrameworkError)("Did document for did "+h.did+" was not resolved");case 15:if(f.recipientKeys.find(function(t){return t.fingerprint===c.fingerprint})){w.next=17;break}throw new(r(d[3]).AriesFrameworkError)("Recipient key "+c.fingerprint+" not found in did document recipient keys.");case 17:if((l=h.protocol)===r(d[4]).HandshakeProtocol.DidExchange){w.next=20;break}throw new(r(d[3]).AriesFrameworkError)("Connection record protocol is "+l+" but handler supports only "+r(d[4]).HandshakeProtocol.DidExchange+".");case 20:if(h.outOfBandId){w.next=22;break}throw new(r(d[3]).AriesFrameworkError)("Connection "+h.id+" does not have outOfBandId!");case 22:return w.next=24,t().awrap(this.outOfBandService.findById(i,h.outOfBandId));case 24:if(p=w.sent){w.next=27;break}throw new(r(d[3]).AriesFrameworkError)("OutOfBand record for connection "+h.id+" with outOfBandId "+h.outOfBandId+" not found!");case 27:return n.connection=h,w.next=30,t().awrap(this.didExchangeProtocol.processResponse(n,p));case 30:if(v=w.sent,!(null!==(o=v.autoAcceptConnection)&&void 0!==o?o:this.connectionsModuleConfig.autoAcceptConnections)){w.next=40;break}return w.next=34,t().awrap(this.didExchangeProtocol.createComplete(i,v,p));case 34:if((y=w.sent).setReturnRouting(r(d[5]).ReturnRouteTypes.none),p.reusable){w.next=39;break}return w.next=39,t().awrap(this.outOfBandService.updateState(i,p,r(d[6]).OutOfBandState.Done));case 39:return w.abrupt("return",new(r(d[7]).OutboundMessageContext)(y,{agentContext:i,connection:v}));case 40:case"end":return w.stop()}},null,this,null,Promise)}}]),n})();e.DidExchangeResponseHandler=n},1491,[7,1426,8,611,1434,971,1468,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new I(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var E={};f(E,s,function(){return this});var L=Object.getPrototypeOf,O=L&&L(L(G([])));O&&O!==o&&i.call(O,s)&&(E=O);var k=b.prototype=w.prototype=Object.create(E);function _(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return N()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function C(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function F(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),F(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;F(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeCompleteHandler=void 0;var n=(function(){function n(t,o){r(d[0])(this,n),this.supportedMessages=[r(d[1]).DidExchangeCompleteMessage],this.didExchangeProtocol=t,this.outOfBandService=o}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u,s,h,l;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(u=n.connection){f.next=3;break}throw new(r(d[3]).AriesFrameworkError)("Connection is missing in message context");case 3:if((s=u.protocol)===r(d[4]).HandshakeProtocol.DidExchange){f.next=6;break}throw new(r(d[3]).AriesFrameworkError)("Connection record protocol is "+s+" but handler supports only "+r(d[4]).HandshakeProtocol.DidExchange+".");case 6:if(h=n.message,null===(o=h.thread)||void 0===o?void 0:o.parentThreadId){f.next=9;break}throw new(r(d[3]).AriesFrameworkError)("Message does not contain pthid attribute");case 9:return f.next=11,t().awrap(this.outOfBandService.findByCreatedInvitationId(n.agentContext,null===(i=h.thread)||void 0===i?void 0:i.parentThreadId));case 11:if(l=f.sent){f.next=14;break}throw new(r(d[3]).AriesFrameworkError)("OutOfBand record for message ID "+(null===(c=h.thread)||void 0===c?void 0:c.parentThreadId)+" not found!");case 14:if(l.reusable){f.next=17;break}return f.next=17,t().awrap(this.outOfBandService.updateState(n.agentContext,l,r(d[5]).OutOfBandState.Done));case 17:return f.next=19,t().awrap(this.didExchangeProtocol.processComplete(n,l));case 19:case"end":return f.stop()}},null,this,null,Promise)}}]),n})();e.DidExchangeCompleteHandler=n},1492,[7,1426,8,611,1434,1468]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof y?r:y,s=Object.create(c.prototype),u=new M(o||[]);return i(s,"_invoke",{value:O(t,n,u)}),s}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d={};function y(){}function v(){}function w(){}var b={};f(b,s,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(R([])));E&&E!==n&&o.call(E,s)&&(b=E);var L=w.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,s,u){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(h).then(function(t){f.value=t,s(f)},function(t){return n("throw",t,s,u)})}u(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return N()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Dispatcher=void 0;var i=(function(){function r(t,n,o,i){_r(_d[0])(this,r),this.messageSender=t,this.eventEmitter=n,this.messageHandlerRegistry=o,this.logger=i}return _r(_d[1])(r,[{key:"registerMessageHandler",value:function(t){this.messageHandlerRegistry.registerMessageHandler(t)}},{key:"dispatch",value:function(r){var n,o,i,c,s,u,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(n=r.agentContext,o=r.connection,i=r.senderKey,c=r.recipientKey,s=r.message,u=this.messageHandlerRegistry.getHandlerForMessageType(s.type)){h.next=4;break}throw new(_r(_d[2]).AriesFrameworkError)("No handler for message type \""+s.type+"\" found");case 4:return h.prev=4,h.next=7,t().awrap(u.handle(r));case 7:l=h.sent,h.next=20;break;case 10:if(h.prev=10,h.t0=h.catch(4),!((f=h.t0.problemReport)instanceof _r(_d[3]).ProblemReportMessage&&r.connection)){h.next=18;break}f.setThread({threadId:s.threadId}),l=new(_r(_d[4]).OutboundMessageContext)(f,{agentContext:n,connection:r.connection}),h.next=20;break;case 18:throw this.logger.error("Error handling message with type "+s.type,{message:s.toJSON(),error:h.t0,senderKey:null===i||void 0===i?void 0:i.fingerprint,recipientKey:null===c||void 0===c?void 0:c.fingerprint,connectionId:null===o||void 0===o?void 0:o.id}),h.t0;case 20:if(!l){h.next=29;break}if(!l.isOutboundServiceMessage()){h.next=26;break}return h.next=24,t().awrap(this.messageSender.sendMessageToService(l));case 24:h.next=29;break;case 26:return l.sessionId=r.sessionId,h.next=29,t().awrap(this.messageSender.sendMessage(l));case 29:this.eventEmitter.emit(n,{type:_r(_d[5]).AgentEventTypes.AgentMessageProcessed,payload:{message:s,connection:o}});case 30:case"end":return h.stop()}},null,this,[[4,10]],Promise)}}]),r})();i=r([(0,_r(_d[6]).injectable)(),o(3,(0,_r(_d[6]).inject)(_r(_d[7]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[8]).MessageSender,_r(_d[9]).EventEmitter,_r(_d[10]).MessageHandlerRegistry,Object])],i),e.Dispatcher=i},1493,[7,8,612,947,622,1345,1019,1103,1344,1104,1056]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",d=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function p(t,r,n,o){var s=r&&r.prototype instanceof v?r:v,c=Object.create(s.prototype),d=new M(o||[]);return i(c,"_invoke",{value:S(t,n,d)}),c}function h(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var f={};function v(){}function y(){}function x(){}var D={};l(D,c,function(){return this});var w=Object.getPrototypeOf,b=w&&w(w(A([])));b&&b!==n&&o.call(b,c)&&(D=b);var E=x.prototype=v.prototype=Object.create(D);function R(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function P(t,r){function n(i,s,c,d){var u=h(t[i],t,s);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&o.call(p,"__await")?r.resolve(p.__await).then(function(t){n("next",t,c,d)},function(t){n("throw",t,c,d)}):r.resolve(p).then(function(t){l.value=t,c(l)},function(t){return n("throw",t,c,d)})}d(u.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return s=s?s.then(i,i):i()}})}function S(t,r,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return T()}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var d=C(c,n);if(d){if(d===f)continue;return d}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var u=h(t,r,n);if("normal"===u.type){if(o=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o="completed",n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function I(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function A(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var d=o.call(s,"catchLoc"),u=o.call(s,"finallyLoc");if(d&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,c=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,o);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(c=(s<3?i(c):s>3?i(r,n,c):i(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeProtocol=void 0;var i=(function(){function r(t,n,o,i,s){_r(_d[0])(this,r),this.connectionService=t,this.didRegistrarService=n,this.didRepository=o,this.jwsService=i,this.logger=s}return _r(_d[1])(r,[{key:"createRequest",value:function(r,n,o){var i,s,c,d,u,l,p,h,f,v,y,x,D,w,b,E;return t().async(function(R){for(;;)switch(R.prev=R.next){case 0:return this.logger.debug("Create message "+_r(_d[2]).DidExchangeRequestMessage.type.messageTypeUri+" start",{outOfBandRecord:n,params:o}),c=n.outOfBandInvitation,d=o.alias,u=o.goal,l=o.goalCode,p=o.routing,h=o.autoAcceptConnection,f=_r(_d[3])(c.invitationDids,1),v=f[0],R.next=6,t().awrap(this.connectionService.createConnection(r,{protocol:_r(_d[4]).HandshakeProtocol.DidExchange,role:_r(_d[4]).DidExchangeRole.Requester,alias:d,state:_r(_d[4]).DidExchangeState.InvitationReceived,theirLabel:c.label,mediatorId:null!==(i=p.mediatorId)&&void 0!==i?i:n.mediatorId,autoAcceptConnection:n.autoAcceptConnection,outOfBandId:n.id,invitationDid:v}));case 6:return y=R.sent,_r(_d[5]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[2]).DidExchangeRequestMessage.type,y),x=null!==(s=o.label)&&void 0!==s?s:r.config.label,R.next=11,t().awrap(this.createPeerDidDoc(r,this.routingToServices(p)));case 11:if(D=R.sent,w=c.id,b=new(_r(_d[2]).DidExchangeRequestMessage)({label:x,parentThreadId:w,did:D.id,goal:u,goalCode:l}),(0,_r(_d[6]).getNumAlgoFromPeerDid)(D.id)!==_r(_d[6]).PeerDidNumAlgo.GenesisDoc){R.next=19;break}return R.next=17,t().awrap(this.createSignedAttachment(r,D,[p.recipientKey.publicKeyBase58]));case 17:E=R.sent,b.didDoc=E;case 19:return y.did=D.id,y.threadId=b.id,void 0===h&&null===h||(y.autoAcceptConnection=h),R.next=24,t().awrap(this.updateState(r,_r(_d[2]).DidExchangeRequestMessage.type,y));case 24:return this.logger.debug("Create message "+_r(_d[2]).DidExchangeRequestMessage.type.messageTypeUri+" end",{connectionRecord:y,message:b}),R.abrupt("return",{message:b,connectionRecord:y});case 26:case"end":return R.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(r,n){var o,i,s,c,d,u,l;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.logger.debug("Process message "+_r(_d[2]).DidExchangeRequestMessage.type.messageTypeUri+" start",{message:r.message}),n.assertRole(_r(_d[7]).OutOfBandRole.Sender),n.assertState(_r(_d[8]).OutOfBandState.AwaitResponse),s=r.message,(null===(o=s.thread)||void 0===o?void 0:o.parentThreadId)&&(null===(i=s.thread)||void 0===i?void 0:i.parentThreadId)===n.getTags().invitationId){p.next=6;break}throw new(_r(_d[9]).DidExchangeProblemReportError)('Missing reference to invitation.',{problemCode:_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted});case 6:if(s.did.startsWith('did:peer:')){p.next=8;break}throw new(_r(_d[9]).DidExchangeProblemReportError)("Message contains unsupported did "+s.did+". Supported dids are [did:peer]",{problemCode:_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted});case 8:if((c=(0,_r(_d[6]).getNumAlgoFromPeerDid)(s.did))===_r(_d[6]).PeerDidNumAlgo.GenesisDoc){p.next=11;break}throw new(_r(_d[9]).DidExchangeProblemReportError)("Unsupported numalgo "+c+". Supported numalgos are ["+_r(_d[6]).PeerDidNumAlgo.GenesisDoc+"]",{problemCode:_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted});case 11:return p.next=13,t().awrap(this.extractDidDocument(r.agentContext,s));case 13:return d=p.sent,u=new(_r(_d[10]).DidRecord)({did:s.did,role:_r(_d[6]).DidDocumentRole.Received,didDocument:d,tags:{recipientKeyFingerprints:d.recipientKeys.map(function(t){return t.fingerprint})}}),this.logger.debug('Saving DID record',{id:u.id,did:u.did,role:u.role,tags:u.getTags(),didDocument:'omitted...'}),p.next=18,t().awrap(this.didRepository.save(r.agentContext,u));case 18:return p.next=20,t().awrap(this.connectionService.createConnection(r.agentContext,{protocol:_r(_d[4]).HandshakeProtocol.DidExchange,role:_r(_d[4]).DidExchangeRole.Responder,state:_r(_d[4]).DidExchangeState.RequestReceived,alias:n.alias,theirDid:s.did,theirLabel:s.label,threadId:s.threadId,mediatorId:n.mediatorId,autoAcceptConnection:n.autoAcceptConnection,outOfBandId:n.id}));case 20:return l=p.sent,p.next=23,t().awrap(this.updateState(r.agentContext,_r(_d[2]).DidExchangeRequestMessage.type,l));case 23:return this.logger.debug("Process message "+_r(_d[2]).DidExchangeRequestMessage.type.messageTypeUri+" end",l),p.abrupt("return",l);case 25:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createResponse",value:function(r,n,o,i){var s,c,d,u,l,p;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(this.logger.debug("Create message "+_r(_d[11]).DidExchangeResponseMessage.type.messageTypeUri+" start",n),_r(_d[5]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[11]).DidExchangeResponseMessage.type,n),s=n.threadId){h.next=5;break}throw new(_r(_d[12]).AriesFrameworkError)('Missing threadId on connection record.');case 5:return c=[],i?c=this.routingToServices(i):o&&(d=o.outOfBandInvitation.getInlineServices(),c=d.map(function(t){var r,n;return{id:t.id,serviceEndpoint:t.serviceEndpoint,recipientKeys:t.recipientKeys.map(_r(_d[13]).didKeyToInstanceOfKey),routingKeys:null!==(n=null===(r=t.routingKeys)||void 0===r?void 0:r.map(_r(_d[13]).didKeyToInstanceOfKey))&&void 0!==n?n:[]}})),h.next=9,t().awrap(this.createPeerDidDoc(r,c));case 9:if(u=h.sent,l=new(_r(_d[11]).DidExchangeResponseMessage)({did:u.id,threadId:s}),(0,_r(_d[6]).getNumAlgoFromPeerDid)(u.id)!==_r(_d[6]).PeerDidNumAlgo.GenesisDoc){h.next=16;break}return h.next=14,t().awrap(this.createSignedAttachment(r,u,Array.from(new Set(c.map(function(t){return t.recipientKeys}).reduce(function(t,r){return t.concat(r)},[]).map(function(t){return t.publicKeyBase58})))));case 14:p=h.sent,l.didDoc=p;case 16:return n.did=u.id,h.next=19,t().awrap(this.updateState(r,_r(_d[11]).DidExchangeResponseMessage.type,n));case 19:return this.logger.debug("Create message "+_r(_d[11]).DidExchangeResponseMessage.type.messageTypeUri+" end",{connectionRecord:n,message:l}),h.abrupt("return",l);case 21:case"end":return h.stop()}},null,this,null,Promise)}},{key:"processResponse",value:function(r,n){var o,i,s,c,d,u,l;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.logger.debug("Process message "+_r(_d[11]).DidExchangeResponseMessage.type.messageTypeUri+" start",{message:r.message}),s=r.connection,c=r.message,s){p.next=4;break}throw new(_r(_d[12]).AriesFrameworkError)('No connection record in message context.');case 4:if(_r(_d[5]).DidExchangeStateMachine.assertProcessMessageState(_r(_d[11]).DidExchangeResponseMessage.type,s),(null===(o=c.thread)||void 0===o?void 0:o.threadId)&&(null===(i=c.thread)||void 0===i?void 0:i.threadId)===s.threadId){p.next=7;break}throw new(_r(_d[9]).DidExchangeProblemReportError)('Invalid or missing thread ID.',{problemCode:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted});case 7:if(c.did.startsWith('did:peer:')){p.next=9;break}throw new(_r(_d[9]).DidExchangeProblemReportError)("Message contains unsupported did "+c.did+". Supported dids are [did:peer]",{problemCode:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted});case 9:if((d=(0,_r(_d[6]).getNumAlgoFromPeerDid)(c.did))===_r(_d[6]).PeerDidNumAlgo.GenesisDoc){p.next=12;break}throw new(_r(_d[9]).DidExchangeProblemReportError)("Unsupported numalgo "+d+". Supported numalgos are ["+_r(_d[6]).PeerDidNumAlgo.GenesisDoc+"]",{problemCode:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted});case 12:return p.next=14,t().awrap(this.extractDidDocument(r.agentContext,c,n.getTags().recipientKeyFingerprints.map(function(t){return _r(_d[14]).Key.fromFingerprint(t).publicKeyBase58})));case 14:return u=p.sent,l=new(_r(_d[10]).DidRecord)({did:c.did,role:_r(_d[6]).DidDocumentRole.Received,didDocument:u,tags:{recipientKeyFingerprints:u.recipientKeys.map(function(t){return t.fingerprint})}}),this.logger.debug('Saving DID record',{id:l.id,did:l.did,role:l.role,tags:l.getTags(),didDocument:'omitted...'}),p.next=19,t().awrap(this.didRepository.save(r.agentContext,l));case 19:return s.theirDid=c.did,p.next=22,t().awrap(this.updateState(r.agentContext,_r(_d[11]).DidExchangeResponseMessage.type,s));case 22:return this.logger.debug("Process message "+_r(_d[11]).DidExchangeResponseMessage.type.messageTypeUri+" end",s),p.abrupt("return",s);case 24:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createComplete",value:function(r,n,o){var i,s,c;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.logger.debug("Create message "+_r(_d[15]).DidExchangeCompleteMessage.type.messageTypeUri+" start",n),_r(_d[5]).DidExchangeStateMachine.assertCreateMessageState(_r(_d[15]).DidExchangeCompleteMessage.type,n),i=n.threadId,s=o.outOfBandInvitation.id,i){d.next=6;break}throw new(_r(_d[12]).AriesFrameworkError)("Connection record "+n.id+" does not have 'threadId' attribute.");case 6:if(s){d.next=8;break}throw new(_r(_d[12]).AriesFrameworkError)("Connection record "+n.id+" does not have 'parentThreadId' attribute.");case 8:return c=new(_r(_d[15]).DidExchangeCompleteMessage)({threadId:i,parentThreadId:s}),d.next=11,t().awrap(this.updateState(r,_r(_d[15]).DidExchangeCompleteMessage.type,n));case 11:return this.logger.debug("Create message "+_r(_d[15]).DidExchangeCompleteMessage.type.messageTypeUri+" end",{connectionRecord:n,message:c}),d.abrupt("return",c);case 13:case"end":return d.stop()}},null,this,null,Promise)}},{key:"processComplete",value:function(r,n){var o,i,s,c;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.logger.debug("Process message "+_r(_d[15]).DidExchangeCompleteMessage.type.messageTypeUri+" start",{message:r.message}),s=r.connection,c=r.message,s){d.next=4;break}throw new(_r(_d[12]).AriesFrameworkError)('No connection record in message context.');case 4:if(_r(_d[5]).DidExchangeStateMachine.assertProcessMessageState(_r(_d[15]).DidExchangeCompleteMessage.type,s),c.threadId===s.threadId){d.next=7;break}throw new(_r(_d[9]).DidExchangeProblemReportError)('Invalid or missing thread ID.',{problemCode:_r(_d[9]).DidExchangeProblemReportReason.CompleteRejected});case 7:if((null===(o=c.thread)||void 0===o?void 0:o.parentThreadId)&&(null===(i=c.thread)||void 0===i?void 0:i.parentThreadId)===n.getTags().invitationId){d.next=9;break}throw new(_r(_d[9]).DidExchangeProblemReportError)('Invalid or missing parent thread ID referencing to the invitation.',{problemCode:_r(_d[9]).DidExchangeProblemReportReason.CompleteRejected});case 9:return d.next=11,t().awrap(this.updateState(r.agentContext,_r(_d[15]).DidExchangeCompleteMessage.type,s));case 11:return this.logger.debug("Process message "+_r(_d[15]).DidExchangeCompleteMessage.type.messageTypeUri+" end",{connectionRecord:s}),d.abrupt("return",s);case 13:case"end":return d.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(r,n,o){var i;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.debug("Updating state",{connectionRecord:o}),i=_r(_d[5]).DidExchangeStateMachine.nextState(n,o),t.abrupt("return",this.connectionService.updateState(r,o,i));case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"createPeerDidDoc",value:function(r,n){var o,i,s;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return i=(0,_r(_d[6]).createPeerDidDocumentFromServices)(n),c.next=3,t().awrap(this.didRegistrarService.create(r,{method:'peer',didDocument:i,options:{numAlgo:_r(_d[6]).PeerDidNumAlgo.GenesisDoc}}));case 3:if(s=c.sent,'finished'===(null===(o=s.didState)||void 0===o?void 0:o.state)){c.next=6;break}throw new(_r(_d[12]).AriesFrameworkError)("Did document creation failed: "+JSON.stringify(s.didState));case 6:return this.logger.debug("Did document with did "+s.didState.did+" created.",{did:s.didState.did,didDocument:s.didState.didDocument}),c.abrupt("return",s.didState.didDocument);case 8:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createSignedAttachment",value:function(r,n,o){var i,s=this;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return i=new(_r(_d[16]).Attachment)({mimeType:'application/json',data:new(_r(_d[16]).AttachmentData)({base64:_r(_d[17]).JsonEncoder.toBase64(n)})}),c.next=3,t().awrap(Promise.all(o.map(function(o){var c,d,u,l;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:return c=_r(_d[14]).Key.fromPublicKeyBase58(o,_r(_d[14]).KeyType.Ed25519),d=new(_r(_d[6]).DidKey)(c).did,u=_r(_d[17]).JsonEncoder.toBuffer(n),p.next=5,t().awrap(s.jwsService.createJws(r,{payload:u,verkey:o,header:{kid:d}}));case 5:l=p.sent,i.addJws(l);case 7:case"end":return p.stop()}},null,null,null,Promise)})));case 3:return c.abrupt("return",i);case 4:case"end":return c.stop()}},null,null,null,Promise)}},{key:"extractDidDocument",value:function(r,n){var o,i,s,c,d,u,l,p,h,f,v,y,x,D,w=arguments;return t().async(function(b){for(;;)switch(b.prev=b.next){case 0:if(o=w.length>2&&void 0!==w[2]?w[2]:[],n.didDoc){b.next=4;break}throw s=n instanceof _r(_d[2]).DidExchangeRequestMessage?_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[9]).DidExchangeProblemReportError)('DID Document attachment is missing.',{problemCode:s});case 4:if(c=n.didDoc,d=c.data.jws){b.next=9;break}throw u=n instanceof _r(_d[2]).DidExchangeRequestMessage?_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[9]).DidExchangeProblemReportError)('DID Document signature is missing.',{problemCode:u});case 9:return l=c.getDataAsJson(),this.logger.trace('DidDocument JSON',l),p=_r(_d[17]).JsonEncoder.toBuffer(l),b.next=14,t().awrap(this.jwsService.verifyJws(r,{jws:d,payload:p}));case 14:if(h=b.sent,f=h.isValid,v=h.signerVerkeys,y=_r(_d[18]).JsonTransformer.fromJSON(l,_r(_d[6]).DidDocument),x=null===(i=y.authentication)||void 0===i?void 0:i.map(function(t){var r='string'==typeof t?y.dereferenceVerificationMethod(t):t;return(0,(0,_r(_d[19]).getKeyDidMappingByVerificationMethod)(r).getKeyFromVerificationMethod)(r).publicKeyBase58}).concat(o),this.logger.trace('JWS verification result',{isValid:f,signerVerkeys:v,didDocumentKeysBase58:x}),f&&v.every(function(t){return null===x||void 0===x?void 0:x.includes(t)})){b.next=23;break}throw D=n instanceof _r(_d[2]).DidExchangeRequestMessage?_r(_d[9]).DidExchangeProblemReportReason.RequestNotAccepted:_r(_d[9]).DidExchangeProblemReportReason.ResponseNotAccepted,new(_r(_d[9]).DidExchangeProblemReportError)('DID Document signature is invalid.',{problemCode:D});case 23:return b.abrupt("return",y);case 24:case"end":return b.stop()}},null,this,null,Promise)}},{key:"routingToServices",value:function(t){return t.endpoints.map(function(r,n){return{id:"#inline-"+n,serviceEndpoint:r,recipientKeys:[t.recipientKey],routingKeys:t.routingKeys}})}}]),r})();i=r([(0,_r(_d[20]).injectable)(),o(4,(0,_r(_d[20]).inject)(_r(_d[21]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[22]).ConnectionService,_r(_d[6]).DidRegistrarService,_r(_d[10]).DidRepository,_r(_d[23]).JwsService,Object])],i),e.DidExchangeProtocol=i},1494,[7,8,1458,31,1434,1495,1419,1467,1468,1469,1092,1459,611,985,989,1460,977,978,625,1078,1019,1103,1465,1496]); +__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidExchangeStateMachine=void 0;var t=(function(){function t(){_r(d[0])(this,t)}return _r(d[1])(t,null,[{key:"assertCreateMessageState",value:function(t,s){var n=this.createMessageStateRules.find(function(s){return(0,_r(d[2]).canHandleMessageType)(s.message,t)});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for "+t);if(n.state!==s.state||n.role!==s.role)throw new(_r(d[3]).AriesFrameworkError)("Record with role "+s.role+" is in invalid state "+s.state+" to create "+t+". Expected state for role "+n.role+" is "+n.state+".")}},{key:"assertProcessMessageState",value:function(t,s){var n=this.processMessageStateRules.find(function(s){return(0,_r(d[2]).canHandleMessageType)(s.message,t)});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for "+t);if(n.state!==s.state||n.role!==s.role)throw new(_r(d[3]).AriesFrameworkError)("Record with role "+s.role+" is in invalid state "+s.state+" to process "+t+". Expected state for role "+n.role+" is "+n.state+".")}},{key:"nextState",value:function(t,s){var n=this.createMessageStateRules.concat(this.processMessageStateRules).find(function(n){return(0,_r(d[2]).canHandleMessageType)(n.message,t)&&n.role===s.role});if(!n)throw new(_r(d[3]).AriesFrameworkError)("Could not find create message rule for messageType "+t+", state "+s.state+" and role "+s.role);return n.nextState}}]),t})();e.DidExchangeStateMachine=t,t.createMessageStateRules=[{message:_r(d[4]).DidExchangeRequestMessage,state:_r(d[5]).DidExchangeState.InvitationReceived,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.RequestSent},{message:_r(d[4]).DidExchangeResponseMessage,state:_r(d[5]).DidExchangeState.RequestReceived,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.ResponseSent},{message:_r(d[4]).DidExchangeCompleteMessage,state:_r(d[5]).DidExchangeState.ResponseReceived,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.Completed}],t.processMessageStateRules=[{message:_r(d[4]).DidExchangeRequestMessage,state:_r(d[5]).DidExchangeState.InvitationSent,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.RequestReceived},{message:_r(d[4]).DidExchangeResponseMessage,state:_r(d[5]).DidExchangeState.RequestSent,role:_r(d[5]).DidExchangeRole.Requester,nextState:_r(d[5]).DidExchangeState.ResponseReceived},{message:_r(d[4]).DidExchangeCompleteMessage,state:_r(d[5]).DidExchangeState.ResponseSent,role:_r(d[5]).DidExchangeRole.Responder,nextState:_r(d[5]).DidExchangeState.Completed}]},1495,[7,8,941,611,1426,1434]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=r(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},t}var i=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u};Object.defineProperty(e,"__esModule",{value:!0}),e.JwsService=void 0;var c=(function(){function r(){_r(_d[0])(this,r)}return _r(_d[1])(r,[{key:"createJws",value:function(t,r){var n,i,c,u,l,s,f;return o().async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=r.payload,i=r.verkey,c=r.header,u=_r(_d[2]).TypedArrayEncoder.toBase64URL(n),l=_r(_d[2]).JsonEncoder.toBase64URL(this.buildProtected(i)),s=_r(_d[3]).Key.fromPublicKeyBase58(i,_r(_d[4]).KeyType.Ed25519),h.t0=_r(_d[2]).TypedArrayEncoder,h.next=7,o().awrap(t.wallet.sign({data:_r(_d[2]).TypedArrayEncoder.fromString(l+"."+u),key:s}));case 7:return h.t1=h.sent,f=h.t0.toBase64URL.call(h.t0,h.t1),h.abrupt("return",{protected:l,signature:f,header:c});case 10:case"end":return h.stop()}},null,this,null,Promise)}},{key:"verifyJws",value:function(r,n){var i,c,u,l,s,f,h,d,y,p,v,w,b,E,x,L,k,j,A;return o().async(function(O){for(;;)switch(O.prev=O.next){case 0:if(i=n.jws,c=n.payload,f=_r(_d[2]).TypedArrayEncoder.toBase64URL(c),0!==(h='signatures'in i?i.signatures:[i]).length){O.next=5;break}throw new(_r(_d[5]).AriesFrameworkError)('Unable to verify JWS: No entries in JWS signatures array.');case 5:d=[],y=t(h);case 7:if((p=y()).done){O.next=35;break}if(v=p.value,w=_r(_d[2]).JsonEncoder.fromBase64(v.protected),b="OKP"===(null===(u=null===w||void 0===w?void 0:w.jwk)||void 0===u?void 0:u.kty),E="Ed25519"===(null===(l=null===w||void 0===w?void 0:w.jwk)||void 0===l?void 0:l.crv),x="EdDSA"===(null===w||void 0===w?void 0:w.alg),b&&E&&x){O.next=15;break}throw new(_r(_d[5]).AriesFrameworkError)('Invalid protected header');case 15:return L=_r(_d[2]).TypedArrayEncoder.fromString(v.protected+"."+f),k=_r(_d[2]).TypedArrayEncoder.fromBase64(v.signature),j=_r(_d[2]).TypedArrayEncoder.toBase58(_r(_d[2]).TypedArrayEncoder.fromBase64(null===(s=null===w||void 0===w?void 0:w.jwk)||void 0===s?void 0:s.x)),A=_r(_d[3]).Key.fromPublicKeyBase58(j,_r(_d[4]).KeyType.Ed25519),d.push(j),O.prev=20,O.next=23,o().awrap(r.wallet.verify({key:A,data:L,signature:k}));case 23:if(O.sent){O.next=26;break}return O.abrupt("return",{isValid:!1,signerVerkeys:[]});case 26:O.next=33;break;case 28:if(O.prev=28,O.t0=O.catch(20),!(O.t0 instanceof _r(_d[6]).WalletError)){O.next=32;break}return O.abrupt("return",{isValid:!1,signerVerkeys:[]});case 32:throw O.t0;case 33:O.next=7;break;case 35:return O.abrupt("return",{isValid:!0,signerVerkeys:d});case 36:case"end":return O.stop()}},null,null,[[20,28]],Promise)}},{key:"buildProtected",value:function(t){return{alg:'EdDSA',jwk:{kty:'OKP',crv:'Ed25519',x:_r(_d[2]).TypedArrayEncoder.toBase64URL(_r(_d[2]).TypedArrayEncoder.fromBase58(t))}}}}]),r})();c=i([(0,_r(_d[7]).injectable)()],c),e.JwsService=c},1496,[7,8,992,991,990,611,1367,1019]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{d({},"")}catch(t){d=function(t,r,n){return t[r]=n}}function l(t,r,n,o){var u=r&&r.prototype instanceof y?r:y,s=Object.create(u.prototype),c=new P(o||[]);return i(s,"_invoke",{value:E(t,n,c)}),s}function h(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var p={};function y(){}function v(){}function w(){}var O={};d(O,s,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(_([])));b&&b!==n&&o.call(b,s)&&(O=b);var k=w.prototype=y.prototype=Object.create(O);function B(t){["next","throw","return"].forEach(function(r){d(t,r,function(t){return this._invoke(r,t)})})}function R(t,r){function n(i,u,s,c){var f=h(t[i],t,u);if("throw"!==f.type){var d=f.arg,l=d.value;return l&&"object"==typeof l&&o.call(l,"__await")?r.resolve(l.__await).then(function(t){n("next",t,s,c)},function(t){n("throw",t,s,c)}):r.resolve(l).then(function(t){d.value=t,s(d)},function(t){return n("throw",t,s,c)})}c(f.arg)}var u;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return u=u?u.then(i,i):i()}})}function E(t,r,n){var o="suspendedStart";return function(i,u){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw u;return j()}for(n.method=i,n.arg=u;;){var s=n.delegate;if(s){var c=I(s,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=h(t,r,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function I(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var u=i.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function L(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function _(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var u=this.tryEntries[i],s=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(c&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,u=arguments.length,s=u<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(u<3?i(s):u>3?i(r,n,s):i(r,n))||s);return u>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandService=void 0;var o=(function(){function r(t,n){_r(_d[0])(this,r),this.outOfBandRepository=t,this.eventEmitter=n}return _r(_d[1])(r,[{key:"processHandshakeReuse",value:function(r){var n,o,i,u,s,c,f,d;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(u=r.message,s=null===(n=u.thread)||void 0===n?void 0:n.parentThreadId){l.next=4;break}throw new(_r(_d[2]).AriesFrameworkError)('handshake-reuse message must have a parent thread id');case 4:return l.next=6,t().awrap(this.findByCreatedInvitationId(r.agentContext,s));case 6:if(c=l.sent){l.next=9;break}throw new(_r(_d[2]).AriesFrameworkError)('No out of band record found for handshake-reuse message');case 9:if(c.assertRole(_r(_d[3]).OutOfBandRole.Sender),c.assertState(_r(_d[4]).OutOfBandState.AwaitResponse),!((null!==(i=null===(o=c.outOfBandInvitation.getRequests())||void 0===o?void 0:o.length)&&void 0!==i?i:0)>0)){l.next=14;break}throw new(_r(_d[2]).AriesFrameworkError)('Handshake reuse should only be used when no requests are present');case 14:if(f=r.assertReadyConnection(),this.eventEmitter.emit(r.agentContext,{type:_r(_d[5]).OutOfBandEventTypes.HandshakeReused,payload:{reuseThreadId:u.threadId,connectionRecord:f,outOfBandRecord:c}}),c.reusable){l.next=19;break}return l.next=19,t().awrap(this.updateState(r.agentContext,c,_r(_d[4]).OutOfBandState.Done));case 19:return d=new(_r(_d[6]).HandshakeReuseAcceptedMessage)({threadId:u.threadId,parentThreadId:s}),l.abrupt("return",d);case 21:case"end":return l.stop()}},null,this,null,Promise)}},{key:"processHandshakeReuseAccepted",value:function(r){var n,o,i,u,s;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=r.message,i=null===(n=o.thread)||void 0===n?void 0:n.parentThreadId){c.next=4;break}throw new(_r(_d[2]).AriesFrameworkError)('handshake-reuse-accepted message must have a parent thread id');case 4:return c.next=6,t().awrap(this.findByReceivedInvitationId(r.agentContext,i));case 6:if(u=c.sent){c.next=9;break}throw new(_r(_d[2]).AriesFrameworkError)('No out of band record found for handshake-reuse-accepted message');case 9:if(u.assertRole(_r(_d[3]).OutOfBandRole.Receiver),u.assertState(_r(_d[4]).OutOfBandState.PrepareResponse),s=r.assertReadyConnection(),u.reuseConnectionId===s.id){c.next=14;break}throw new(_r(_d[2]).AriesFrameworkError)('handshake-reuse-accepted is not in response to a handshake-reuse message.');case 14:return this.eventEmitter.emit(r.agentContext,{type:_r(_d[5]).OutOfBandEventTypes.HandshakeReused,payload:{reuseThreadId:o.threadId,connectionRecord:s,outOfBandRecord:u}}),c.next=17,t().awrap(this.updateState(r.agentContext,u,_r(_d[4]).OutOfBandState.Done));case 17:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createHandShakeReuse",value:function(r,n,o){var i;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return i=new(_r(_d[7]).HandshakeReuseMessage)({parentThreadId:n.outOfBandInvitation.id}),n.reuseConnectionId=o.id,u.next=4,t().awrap(this.outOfBandRepository.update(r,n));case 4:return u.abrupt("return",i);case 5:case"end":return u.stop()}},null,this,null,Promise)}},{key:"save",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.save(r,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(r,n,o){var i;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return i=n.state,n.state=o,u.next=4,t().awrap(this.outOfBandRepository.update(r,n));case 4:this.emitStateChangedEvent(r,n,i);case 5:case"end":return u.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,r,n){var o=_r(_d[8]).JsonTransformer.clone(r);this.eventEmitter.emit(t,{type:_r(_d[5]).OutOfBandEventTypes.OutOfBandStateChanged,payload:{outOfBandRecord:o,previousState:n}})}},{key:"findById",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.findById(r,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getById",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.getById(r,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByReceivedInvitationId",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.findSingleByQuery(r,{invitationId:n,role:_r(_d[3]).OutOfBandRole.Receiver}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findByCreatedInvitationId",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.findSingleByQuery(r,{invitationId:n,role:_r(_d[3]).OutOfBandRole.Sender}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findCreatedByRecipientKey",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.findSingleByQuery(r,{recipientKeyFingerprints:[n.fingerprint],role:_r(_d[3]).OutOfBandRole.Sender}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.getAll(r));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.outOfBandRepository.findByQuery(r,n));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(r,n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getById(r,n));case 2:return o=i.sent,i.abrupt("return",this.outOfBandRepository.delete(r,o));case 4:case"end":return i.stop()}},null,this,null,Promise)}}]),r})();o=r([(0,_r(_d[9]).injectable)(),n("design:paramtypes",[_r(_d[10]).OutOfBandRepository,_r(_d[11]).EventEmitter])],o),e.OutOfBandService=o},1497,[7,8,611,1467,1468,1498,1499,1500,992,1019,1504,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandEventTypes=void 0,(function(t){t.OutOfBandStateChanged="OutOfBandStateChanged",t.HandshakeReused="HandshakeReused"})(e.OutOfBandEventTypes||(e.OutOfBandEventTypes={}))},1498,[]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(s=(o<3?c(s):o>3?c(t,r,s):c(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.HandshakeReuseAcceptedMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:e.threadId,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/out-of-band/1.1/handshake-reuse-accepted'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.HandshakeReuseAcceptedMessage=n},1499,[14,11,9,7,8,948,941]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1500,[1501,1503]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandInvitation=void 0;var r=(function(t){_r(_d[2])(i,t);var n,r,o=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.label=e.label,t.goalCode=e.goalCode,t.goal=e.goal,t.accept=e.accept,t.handshakeProtocols=e.handshakeProtocols,t.services=e.services,t.imageUrl=e.imageUrl,t.appendedAttachments=e.appendedAttachments),t}return _r(_d[4])(i,[{key:"addRequest",value:function(e){this.requests||(this.requests=[]);var t=new(_r(_d[5]).Attachment)({id:this.generateId(),mimeType:'application/json',data:new(_r(_d[5]).AttachmentData)({base64:_r(_d[6]).JsonEncoder.toBase64(e.toJSON())})});this.requests.push(t)}},{key:"getRequests",value:function(){var e;return null===(e=this.requests)||void 0===e?void 0:e.map(function(e){return e.getDataAsJson()})}},{key:"toUrl",value:function(e){var t=e.domain,n=this.toJSON();return t+"?oob="+_r(_d[6]).JsonEncoder.toBase64URL(n)}},{key:"invitationDids",get:function(){return this.getServices().map(function(e){return'string'==typeof e?e:(0,_r(_d[7]).outOfBandServiceToNumAlgo2Did)(e)})}},{key:"getServices",value:function(){return this.services.map(function(e){return e instanceof String?e.toString():e})}},{key:"getDidServices",value:function(){return this.getServices().filter(function(e){return'string'==typeof e})}},{key:"getInlineServices",value:function(){return this.getServices().filter(function(e){return'string'!=typeof e})}}],[{key:"fromUrl",value:function(e){var t=(0,_r(_d[8]).parseUrl)(e).query.oob;if('string'==typeof t){var n=_r(_d[6]).JsonEncoder.fromBase64(t);return this.fromJson(n)}throw new(_r(_d[9]).AriesFrameworkError)('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters; `oob`')}},{key:"fromJson",value:function(e){return _r(_d[10]).JsonTransformer.fromJSON(e,i)}}]),i})(_r(_d[11]).AgentMessage);r.type=(0,_r(_d[12]).parseMessageType)('https://didcomm.org/out-of-band/1.1/invitation'),t([(0,_r(_d[13]).Transform)(function(e){var t=e.value;return(0,_r(_d[12]).replaceLegacyDidSovPrefix)(t)},{toClassOnly:!0}),(0,_r(_d[12]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[13]).Expose)({name:'goal_code'}),n("design:type",String)],r.prototype,"goalCode",void 0),t([(0,_r(_d[13]).Transform)(function(e){var t=e.value;return null===t||void 0===t?void 0:t.map(_r(_d[12]).replaceLegacyDidSovPrefix)},{toClassOnly:!0}),(0,_r(_d[13]).Expose)({name:'handshake_protocols'}),n("design:type",Array)],r.prototype,"handshakeProtocols",void 0),t([(0,_r(_d[13]).Expose)({name:'requests~attach'}),(0,_r(_d[13]).Type)(function(){return _r(_d[5]).Attachment}),(0,_r(_d[14]).IsArray)(),(0,_r(_d[14]).ValidateNested)({each:!0}),(0,_r(_d[14]).IsInstance)(_r(_d[5]).Attachment,{each:!0}),(0,_r(_d[14]).IsOptional)(),n("design:type",Array)],r.prototype,"requests",void 0),t([(0,_r(_d[14]).IsArray)(),(0,_r(_d[14]).ArrayNotEmpty)(),(0,_r(_d[13]).Transform)(function(e){var t=e.value,n=e.type;return n===_r(_d[13]).TransformationType.PLAIN_TO_CLASS?t.map(function(e){return'string'==typeof e?new String(e):_r(_d[10]).JsonTransformer.fromJSON(e,_r(_d[16]).OutOfBandDidCommService)}):n===_r(_d[13]).TransformationType.CLASS_TO_PLAIN?t.map(function(e){return'string'==typeof e||e instanceof String?e.toString():_r(_d[10]).JsonTransformer.toJSON(e)}):t}),(0,_r(_d[15]).IsStringOrInstance)(_r(_d[16]).OutOfBandDidCommService,{each:!0}),(0,_r(_d[14]).ValidateNested)({each:!0}),n("design:type",Array)],r.prototype,"services",void 0),t([(0,_r(_d[14]).IsOptional)(),(0,_r(_d[14]).IsUrl)(),n("design:type",String)],r.prototype,"imageUrl",void 0),_e.OutOfBandInvitation=r},1501,[14,11,9,7,8,977,978,1354,1428,611,625,948,941,626,661,1010,1502]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var i,c=arguments.length,o=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(c<3?i(o):c>3?i(e,r,o):i(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandDidCommService=void 0;var n=(function(e){_r(_d[2])(c,e);var r,n,i=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t){var e;return _r(_d[3])(this,c),e=i.call(this,_r(_d[4])(_r(_d[4])({},t),{type:c.type})),t&&(e.recipientKeys=t.recipientKeys,e.routingKeys=t.routingKeys,e.accept=t.accept),e}return _r(_d[5])(c)})(_r(_d[6]).DidDocumentService);function i(t){return(0,_r(_d[7]).ValidateBy)({name:'isDidKeyString',validator:{validate:function(t){return(0,_r(_d[7]).isString)(t)&&t.startsWith('did:key:')},defaultMessage:(0,_r(_d[7]).buildMessage)(function(t){return t+'$property must be a did:key string'},t)}},t)}n.type='did-communication',e([(0,_r(_d[7]).ArrayNotEmpty)(),i({each:!0}),r("design:type",Array)],n.prototype,"recipientKeys",void 0),e([i({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"routingKeys",void 0),e([(0,_r(_d[7]).IsString)({each:!0}),(0,_r(_d[7]).IsOptional)(),r("design:type",Array)],n.prototype,"accept",void 0),_e.OutOfBandDidCommService=n},1502,[14,11,9,7,4,8,1419,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,s=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,r,s):o(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.HandshakeReuseMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.setThread({threadId:t.id,parentThreadId:e.parentThreadId})),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/out-of-band/1.1/handshake-reuse'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.HandshakeReuseMessage=n},1503,[14,11,9,7,8,948,941]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1504,[1505,1506]); +__d(function(g,_r,_i,a,m,_e,_d2){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandRecord=void 0;var r=(function(e){_r(_d2[2])(i,e);var n,r,o=(n=i,r=t(),function(){var t,e=_r(_d2[0])(n);if(r){var o=_r(_d2[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d2[1])(this,t)});function i(t){var e,n,r,c,u;return _r(_d2[3])(this,i),(e=o.call(this)).type=i.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,_r(_d2[4]).uuid)(),e.createdAt=null!==(r=t.createdAt)&&void 0!==r?r:new Date,e.outOfBandInvitation=t.outOfBandInvitation,e.role=t.role,e.state=t.state,e.alias=t.alias,e.autoAcceptConnection=t.autoAcceptConnection,e.reusable=null!==(c=t.reusable)&&void 0!==c&&c,e.mediatorId=t.mediatorId,e.reuseConnectionId=t.reuseConnectionId,e._tags=null!==(u=t.tags)&&void 0!==u?u:{recipientKeyFingerprints:[]}),e}return _r(_d2[5])(i,[{key:"getTags",value:function(){return _r(_d2[6])(_r(_d2[6])({},this._tags),{role:this.role,state:this.state,invitationId:this.outOfBandInvitation.id})}},{key:"assertRole",value:function(t){if(this.role!==t)throw new(_r(_d2[7]).AriesFrameworkError)("Invalid out-of-band record role "+this.role+", expected is "+t+".")}},{key:"assertState",value:function(t){if(Array.isArray(t)||(t=[t]),!t.includes(this.state))throw new(_r(_d2[7]).AriesFrameworkError)("Invalid out-of-band record state "+this.state+", valid states are: "+t.join(', ')+".")}}]),i})(_r(_d2[8]).BaseRecord);r.type='OutOfBandRecord',e([(0,_r(_d2[9]).Type)(function(){return _r(_d2[10]).OutOfBandInvitation}),n("design:type",_r(_d2[10]).OutOfBandInvitation)],r.prototype,"outOfBandInvitation",void 0),_e.OutOfBandRecord=r},1505,[14,11,9,7,952,8,4,611,1096,626,1500]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var c,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,n,i):c(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=this&&this.__param||function(t,e){return function(n,r){e(n,r,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.OutOfBandRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var n,r,c=(n=o,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).OutOfBandRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),r(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.OutOfBandRepository=c},1506,[14,11,9,7,1505,8,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof d?r:d,u=Object.create(c.prototype),s=new k(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v={};function d(){}function y(){}function w(){}var b={};l(b,u,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(G([])));E&&E!==n&&o.call(E,u)&&(b=E);var L=w.prototype=d.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,u,s){var f=p(t[i],t,c);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):r.resolve(h).then(function(t){l.value=t,u(l)},function(t){return n("throw",t,u,s)})}s(f.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return N()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=R(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=p(t,r,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function G(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(s&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:G(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,u=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(u=(c<3?i(u):c>3?i(r,n,u):i(r,n))||u);return c>3&&u&&Object.defineProperty(r,n,u),u},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingService=void 0;var o=(function(){function r(t,n){_r(_d[0])(this,r),this.mediationRecipientService=t,this.eventEmitter=n}return _r(_d[1])(r,[{key:"getRouting",value:function(r){var n,o,i,c,u,s,f=arguments;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},o=n.mediatorId,i=n.useDefaultMediator,c=void 0===i||i,l.next=3,t().awrap(r.wallet.createKey({keyType:_r(_d[2]).KeyType.Ed25519}));case 3:return u=l.sent,s={endpoints:r.config.endpoints,routingKeys:[],recipientKey:u},l.next=7,t().awrap(this.mediationRecipientService.addMediationRouting(r,s,{mediatorId:o,useDefaultMediator:c}));case 7:return s=l.sent,this.eventEmitter.emit(r,{type:_r(_d[3]).RoutingEventTypes.RoutingCreatedEvent,payload:{routing:s}}),l.abrupt("return",s);case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"removeRouting",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.mediationRecipientService.removeMediationRouting(r,n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),r})();o=r([(0,_r(_d[4]).injectable)(),n("design:paramtypes",[_r(_d[5]).MediationRecipientService,_r(_d[6]).EventEmitter])],o),e.RoutingService=o},1507,[7,8,989,1508,1019,1509,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingEventTypes=void 0,(function(t){t.MediationStateChanged="MediationStateChanged",t.RecipientKeylistUpdated="RecipientKeylistUpdated",t.RoutingCreatedEvent="RoutingCreatedEvent"})(e.RoutingEventTypes||(e.RoutingEventTypes={}))},1508,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(t,r){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||r&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function n(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r=0;--o){var s=this.tryEntries[o],c=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=r.call(s,"catchLoc"),d=r.call(s,"finallyLoc");if(u&&d){if(this.prev=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var o=i.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},t}var o=this&&this.__decorate||function(t,n,r,i){var o,s=arguments.length,c=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(n,r,c):o(n,r))||c);return s>3&&c&&Object.defineProperty(n,r,c),c},s=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.MediationRecipientService=void 0;var c=(function(){function n(t,r,i,o,s){_r(_d[0])(this,n),this.mediationRepository=i,this.eventEmitter=o,this.connectionService=t,this.messageSender=r,this.recipientModuleConfig=s}return _r(_d[1])(n,[{key:"createStatusRequest",value:function(t){var n,r,o,s=arguments;return i().async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.assertRole(_r(_d[2]).MediationRole.Recipient),t.assertReady(),r=n.recipientKey,o=new(_r(_d[3]).StatusRequestMessage)({recipientKey:r}),i.abrupt("return",o);case 6:case"end":return i.stop()}},null,null,null,Promise)}},{key:"createRequest",value:function(t,n){var r,o;return i().async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=new(_r(_d[4]).MediationRequestMessage)({}),o=new(_r(_d[5]).MediationRecord)({threadId:r.threadId,state:_r(_d[2]).MediationState.Requested,role:_r(_d[2]).MediationRole.Recipient,connectionId:n.id}),s.next=4,i().awrap(this.connectionService.addConnectionType(t,n,_r(_d[6]).ConnectionType.Mediator));case 4:return s.next=6,i().awrap(this.mediationRepository.save(t,o));case 6:return this.emitStateChangedEvent(t,o,null),s.abrupt("return",{mediationRecord:o,message:r});case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processMediationGrant",value:function(t){var n,r,o;return i().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.assertReadyConnection(),s.next=3,i().awrap(this.mediationRepository.getByConnectionId(t.agentContext,n.id));case 3:return(r=s.sent).assertState(_r(_d[2]).MediationState.Requested),r.assertRole(_r(_d[2]).MediationRole.Recipient),r.endpoint=t.message.endpoint,o=t.message.routingKeys.some(_r(_d[7]).isDidKey),s.next=10,i().awrap(this.updateUseDidKeysFlag(t.agentContext,n,_r(_d[4]).MediationGrantMessage.type.protocolUri,o));case 10:return r.routingKeys=t.message.routingKeys.map(_r(_d[7]).didKeyToVerkey),s.next=13,i().awrap(this.updateState(t.agentContext,r,_r(_d[2]).MediationState.Granted));case 13:return s.abrupt("return",s.sent);case 14:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processKeylistUpdateResults",value:function(n){var r,o,s,c,u,d,l;return i().async(function(p){for(;;)switch(p.prev=p.next){case 0:return r=n.assertReadyConnection(),p.next=3,i().awrap(this.mediationRepository.getByConnectionId(n.agentContext,r.id));case 3:return(o=p.sent).assertReady(),o.assertRole(_r(_d[2]).MediationRole.Recipient),s=n.message.updated,c=s.some(function(t){return(0,_r(_d[7]).isDidKey)(t.recipientKey)}),p.next=10,i().awrap(this.updateUseDidKeysFlag(n.agentContext,r,_r(_d[4]).KeylistUpdateResponseMessage.type.protocolUri,c));case 10:for(u=t(s);!(d=u()).done;)(l=d.value).action===_r(_d[4]).KeylistUpdateAction.add?o.addRecipientKey((0,_r(_d[7]).didKeyToVerkey)(l.recipientKey)):l.action===_r(_d[4]).KeylistUpdateAction.remove&&o.removeRecipientKey((0,_r(_d[7]).didKeyToVerkey)(l.recipientKey));return p.next=13,i().awrap(this.mediationRepository.update(n.agentContext,o));case 13:this.eventEmitter.emit(n.agentContext,{type:_r(_d[8]).RoutingEventTypes.RecipientKeylistUpdated,payload:{mediationRecord:o,keylist:s}});case 14:case"end":return p.stop()}},null,this,null,Promise)}},{key:"keylistUpdateAndAwait",value:function(t,n,r){var o,s,c,u,d,l,p,f,y,h,v=arguments;return i().async(function(w){for(;;)switch(w.prev=w.next){case 0:return o=v.length>3&&void 0!==v[3]?v[3]:15e3,w.next=3,i().awrap(this.connectionService.getById(t,n.connectionId));case 3:return c=w.sent,u=t.config.useDidKeyInProtocols,(d=c.metadata.get(_r(_d[9]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&(u=null!==(s=d[_r(_d[10]).KeylistUpdateMessage.type.protocolUri])&&void 0!==s?s:u),l=this.createKeylistUpdateMessage(r.map(function(t){return new(_r(_d[10]).KeylistUpdate)({action:t.action,recipientKey:u?new(_r(_d[11]).DidKey)(t.recipientKey).did:t.recipientKey.publicKeyBase58})})),n.assertReady(),n.assertRole(_r(_d[2]).MediationRole.Recipient),p=this.eventEmitter.observable(_r(_d[8]).RoutingEventTypes.RecipientKeylistUpdated),f=new(_r(_d[12]).ReplaySubject)(1),p.pipe((0,_r(_d[13]).filterContextCorrelationId)(t.contextCorrelationId),(0,_r(_d[14]).filter)(function(t){return n.id===t.payload.mediationRecord.id}),(0,_r(_d[14]).first)(),(0,_r(_d[14]).timeout)(o)).subscribe(f),y=new(_r(_d[15]).OutboundMessageContext)(l,{agentContext:t,connection:c}),w.next=16,i().awrap(this.messageSender.sendMessage(y));case 16:return w.next=18,i().awrap((0,_r(_d[12]).firstValueFrom)(f));case 18:return h=w.sent,w.abrupt("return",h.payload.mediationRecord);case 20:case"end":return w.stop()}},null,this,null,Promise)}},{key:"createKeylistUpdateMessage",value:function(t){return new(_r(_d[10]).KeylistUpdateMessage)({updates:t})}},{key:"addMediationRouting",value:function(t,n){var r,o,s,c,u,d=arguments;return i().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=d.length>2&&void 0!==d[2]?d[2]:{},o=r.mediatorId,s=r.useDefaultMediator,c=void 0===s||s,u=null,!o){l.next=8;break}return l.next=5,i().awrap(this.getById(t,o));case 5:u=l.sent,l.next=12;break;case 8:if(!c){l.next=12;break}return l.next=11,i().awrap(this.findDefaultMediator(t));case 11:u=l.sent;case 12:if(u){l.next=14;break}return l.abrupt("return",n);case 14:return l.next=16,i().awrap(this.keylistUpdateAndAwait(t,u,[{recipientKey:n.recipientKey,action:_r(_d[4]).KeylistUpdateAction.add}]));case 16:return u=l.sent,l.abrupt("return",_r(_d[16])(_r(_d[16])({},n),{mediatorId:u.id,endpoints:u.endpoint?[u.endpoint]:n.endpoints,routingKeys:u.routingKeys.map(function(t){return _r(_d[17]).Key.fromPublicKeyBase58(t,_r(_d[17]).KeyType.Ed25519)})}));case 18:case"end":return l.stop()}},null,this,null,Promise)}},{key:"removeMediationRouting",value:function(t,n){var r,o,s;return i().async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=n.recipientKeys,o=n.mediatorId,c.next=3,i().awrap(this.getById(t,o));case 3:if(s=c.sent){c.next=6;break}throw new(_r(_d[18]).AriesFrameworkError)('No mediation record to remove routing from has been found');case 6:return c.next=8,i().awrap(this.keylistUpdateAndAwait(t,s,r.map(function(t){return{recipientKey:t,action:_r(_d[4]).KeylistUpdateAction.remove}})));case 8:case"end":return c.stop()}},null,this,null,Promise)}},{key:"processMediationDeny",value:function(t){var n,r;return i().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.assertReadyConnection(),o.next=3,i().awrap(this.findByConnectionId(t.agentContext,n.id));case 3:if(r=o.sent){o.next=6;break}throw new Error("No mediation has been requested for this connection id: "+n.id);case 6:return r.assertRole(_r(_d[2]).MediationRole.Recipient),r.assertState(_r(_d[2]).MediationState.Requested),o.next=10,i().awrap(this.updateState(t.agentContext,r,_r(_d[2]).MediationState.Denied));case 10:return o.abrupt("return",r);case 11:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processStatus",value:function(t){var n,r,o,s,c,u,d,l,p,f,y;return i().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(n=t.assertReadyConnection(),r=t.message,o=r.messageCount,s=r.recipientKey,0!==o){h.next=13;break}return h.next=6,i().awrap(this.connectionService.createTrustPing(t.agentContext,n,{responseRequested:!1}));case 6:return c=h.sent,u=c.message,d=c.connectionRecord,l=['ws','wss'],h.next=12,i().awrap(this.messageSender.sendMessage(new(_r(_d[15]).OutboundMessageContext)(u,{agentContext:t.agentContext,connection:d}),{transportPriority:{schemes:l,restrictive:!0}}));case 12:return h.abrupt("return",null);case 13:return p=this.recipientModuleConfig.maximumMessagePickup,f=o=0;s--)(n=e[s])&&(c=(o<3?n(c):o>3?n(t,r,c):n(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DeliveryRequestMessage=void 0;var i=(function(t){_r(_d[2])(o,t);var r,i,n=(r=o,i=e(),function(){var e,t=_r(_d[0])(r);if(i){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.limit=e.limit),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(o)})(_r(_d[6]).AgentMessage);i.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/delivery-request'),t([(0,_r(_d[7]).IsValidMessageType)(i.type),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),r("design:type",String)],i.prototype,"recipientKey",void 0),t([(0,_r(_d[8]).IsInt)(),r("design:type",Number)],i.prototype,"limit",void 0),_e.DeliveryRequestMessage=i},1514,[14,11,9,7,971,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var i,c=arguments.length,o=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(c<3?i(o):c>3?i(t,r,o):i(t,r))||o);return c>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MessageDeliveryMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,i=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=i.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.appendedAttachments=e.attachments,t.setThread({threadId:e.threadId})),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(c)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/delivery'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),r("design:type",String)],n.prototype,"recipientKey",void 0),_e.MessageDeliveryMessage=n},1515,[14,11,9,7,971,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,s,r){var n,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(o<3?n(c):o>3?n(t,s,c):n(t,s))||c);return o>3&&c&&Object.defineProperty(t,s,c),c},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MessagesReceivedMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var s,r,n=(s=o,r=e(),function(){var e,t=_r(_d[0])(s);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.messageIdList=e.messageIdList),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(o)})(_r(_d[6]).AgentMessage);r.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/messages-received'),t([(0,_r(_d[7]).IsValidMessageType)(r.type),s("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[8]).IsArray)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'message_id_list'}),s("design:type",Array)],r.prototype,"messageIdList",void 0),_e.MessagesReceivedMessage=r},1516,[14,11,9,7,971,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var s,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(r=(i<3?s(r):i>3?s(t,o,r):s(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StatusMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,s=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=s.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey,t.messageCount=e.messageCount,t.longestWaitedSeconds=e.longestWaitedSeconds,t.newestReceivedTime=e.newestReceivedTime,t.oldestReceivedTime=e.oldestReceivedTime,t.totalBytes=e.totalBytes,t.liveDelivery=e.liveDelivery,t.setThread({threadId:e.threadId})),t.setReturnRouting(_r(_d[4]).ReturnRouteTypes.all),t}return _r(_d[5])(i)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/messagepickup/2.0/status'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsString)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'recipient_key'}),o("design:type",String)],n.prototype,"recipientKey",void 0),t([(0,_r(_d[8]).IsInt)(),(0,_r(_d[9]).Expose)({name:'message_count'}),o("design:type",Number)],n.prototype,"messageCount",void 0),t([(0,_r(_d[8]).IsInt)(),(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Expose)({name:'longest_waited_seconds'}),o("design:type",Number)],n.prototype,"longestWaitedSeconds",void 0),t([(0,_r(_d[9]).Expose)({name:'newest_received_time'}),(0,_r(_d[9]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).DateParser)(t)}),(0,_r(_d[8]).IsDate)(),(0,_r(_d[8]).IsOptional)(),o("design:type",Date)],n.prototype,"newestReceivedTime",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[9]).Transform)(function(e){var t=e.value;return(0,_r(_d[10]).DateParser)(t)}),(0,_r(_d[8]).IsDate)(),(0,_r(_d[9]).Expose)({name:'oldest_received_time'}),o("design:type",Date)],n.prototype,"oldestReceivedTime",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsInt)(),(0,_r(_d[9]).Expose)({name:'total_bytes'}),o("design:type",Number)],n.prototype,"totalBytes",void 0),t([(0,_r(_d[8]).IsOptional)(),(0,_r(_d[8]).IsBoolean)(),(0,_r(_d[9]).Expose)({name:'live_delivery'}),o("design:type",Boolean)],n.prototype,"liveDelivery",void 0),_e.StatusMessage=n},1517,[14,11,9,7,971,8,948,941,661,626,1072]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,r,o):c(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StatusRequestMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,c=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.recipientKey=e.recipientKey),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/messagepickup/2.0/status-request'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[8]).Expose)({name:'recipient_key'}),r("design:type",String)],n.prototype,"recipientKey",void 0),_e.StatusRequestMessage=n},1518,[14,11,9,7,8,948,941,661,626]); +__d(function(g,_r,_i,a,m,_e,_d2){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,r){var n,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(c=(o<3?n(c):o>3?n(t,i,c):n(t,i))||c);return o>3&&c&&Object.defineProperty(t,i,c),c},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRecord=void 0;var r=(function(t){_r(_d2[2])(o,t);var i,r,n=(i=o,r=e(),function(){var e,t=_r(_d2[0])(i);if(r){var n=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function o(e){var t,i,r,c,s;return _r(_d2[3])(this,o),(t=n.call(this)).type=o.type,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:(0,_r(_d2[4]).uuid)(),t.createdAt=null!==(r=e.createdAt)&&void 0!==r?r:new Date,t.connectionId=e.connectionId,t.threadId=e.threadId,t.recipientKeys=e.recipientKeys||[],t.routingKeys=e.routingKeys||[],t.state=e.state,t.role=e.role,t.endpoint=null!==(c=e.endpoint)&&void 0!==c?c:void 0,t.pickupStrategy=e.pickupStrategy,t._tags=null!==(s=e.tags)&&void 0!==s?s:{}),t}return _r(_d2[5])(o,[{key:"getTags",value:function(){return _r(_d2[6])(_r(_d2[6])({},this._tags),{state:this.state,role:this.role,connectionId:this.connectionId,threadId:this.threadId,recipientKeys:this.recipientKeys})}},{key:"addRecipientKey",value:function(e){this.recipientKeys.push(e)}},{key:"removeRecipientKey",value:function(e){var t=this.recipientKeys.indexOf(e,0);return t>-1&&(this.recipientKeys.splice(t,1),!0)}},{key:"isReady",get:function(){return this.state===_r(_d2[7]).MediationState.Granted}},{key:"assertReady",value:function(){if(!this.isReady)throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record is not ready to be used. Expected "+_r(_d2[7]).MediationState.Granted+", found invalid state "+this.state)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertRole",value:function(e){if(this.role!==e)throw new(_r(_d2[8]).AriesFrameworkError)("Mediation record has invalid role "+this.role+". Expected role "+e+".")}}]),o})(_r(_d2[9]).BaseRecord);r.type='MediationRecord',t([(0,_r(_d2[10]).Transform)(function(e){var t=e.value;return'Explicit'===t?_r(_d2[11]).MediatorPickupStrategy.PickUpV1:t}),i("design:type",String)],r.prototype,"pickupStrategy",void 0),_e.MediationRecord=r},1519,[14,11,9,7,952,8,4,1512,611,1096,626,1520]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorPickupStrategy=void 0,(function(t){t.PickUpV1="PickUpV1",t.PickUpV2="PickUpV2",t.Implicit="Implicit",t.None="None"})(e.MediatorPickupStrategy||(e.MediatorPickupStrategy={}))},1520,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionMetadataKeys=void 0,(function(o){o.UseDidKeysForProtocol="_internal/useDidKeysForProtocol"})(e.ConnectionMetadataKeys||(e.ConnectionMetadataKeys={}))},1521,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1522,[1523]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RoutingProblemReportReason=void 0,(function(o){o.ErrorProcessingAttachments="error-processing-attachments"})(e.RoutingProblemReportReason||(e.RoutingProblemReportReason={}))},1523,[]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,c=Object.create(i.prototype),u=new P(n||[]);return o(c,"_invoke",{value:j(t,r,u)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p={};function y(){}function v(){}function d(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(k([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=d.prototype=y.prototype=Object.create(w);function _(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){function r(o,i,c,u){var f=h(t[o],t,i);if("throw"!==f.type){var l=f.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):e.resolve(s).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,u)})}u(f.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return G()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var f=h(t,e,r);if("normal"===f.type){if(n=r.done?"completed":"suspendedYield",f.arg===p)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(n="completed",r.method="throw",r.arg=f.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),f=n.call(i,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},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;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediationRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).MediationRecord,t,e)}return _r(_d[5])(c,[{key:"getSingleByRecipientKey",value:function(t,e){return this.getSingleByQuery(t,{recipientKeys:[e]})}},{key:"getByConnectionId",value:function(e,r){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getSingleByQuery(e,{connectionId:r}));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),c})(_r(_d[6]).Repository);i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],i),_e.MediationRepository=i},1524,[14,11,9,7,1519,8,1101,1019,1103,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecipientModuleConfig=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(t,[{key:"mediatorPollingInterval",get:function(){var t;return null!==(t=this.options.mediatorPollingInterval)&&void 0!==t?t:5e3}},{key:"mediatorPickupStrategy",get:function(){return this.options.mediatorPickupStrategy}},{key:"maximumMessagePickup",get:function(){var t;return null!==(t=this.options.maximumMessagePickup)&&void 0!==t?t:10}},{key:"baseMediatorReconnectionIntervalMs",get:function(){var t;return null!==(t=this.options.baseMediatorReconnectionIntervalMs)&&void 0!==t?t:100}},{key:"maximumMediatorReconnectionIntervalMs",get:function(){var t;return null!==(t=this.options.maximumMediatorReconnectionIntervalMs)&&void 0!==t?t:Number.POSITIVE_INFINITY}},{key:"mediatorInvitationUrl",get:function(){return this.options.mediatorInvitationUrl}}]),t})();e.RecipientModuleConfig=t},1525,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsModuleConfig=void 0;var n=(function(){function n(o){r(d[0])(this,n),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(n,[{key:"autoAcceptConnections",get:function(){var n;return null!==(n=this.options.autoAcceptConnections)&&void 0!==n&&n}}]),n})();e.ConnectionsModuleConfig=n},1526,[7,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionsModule=void 0;var n=(function(){function n(o){r(d[0])(this,n),this.api=r(d[1]).ConnectionsApi,this.config=new(r(d[2]).ConnectionsModuleConfig)(o)}return r(d[3])(n,[{key:"register",value:function(n,o){n.registerContextScoped(r(d[1]).ConnectionsApi),n.registerInstance(r(d[2]).ConnectionsModuleConfig,this.config),n.registerSingleton(r(d[4]).ConnectionService),n.registerSingleton(r(d[5]).DidExchangeProtocol),n.registerSingleton(r(d[4]).TrustPingService),n.registerSingleton(r(d[6]).ConnectionRepository),o.register(new(r(d[7]).Protocol)({id:'https://didcomm.org/connections/1.0',roles:[r(d[8]).ConnectionRole.Invitee,r(d[8]).ConnectionRole.Inviter]}),new(r(d[7]).Protocol)({id:'https://didcomm.org/didexchange/1.0',roles:[r(d[8]).DidExchangeRole.Requester,r(d[8]).DidExchangeRole.Responder]}))}}]),n})();e.ConnectionsModule=n},1527,[7,1481,1526,8,1465,1494,1462,622,1434]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function e(){e=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function h(e,t,n,o){var s=t&&t.prototype instanceof v?t:v,c=Object.create(s.prototype),u=new A(o||[]);return i(c,"_invoke",{value:k(e,n,u)}),c}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var y={};function v(){}function b(){}function w(){}var x={};f(x,c,function(){return this});var S=Object.getPrototypeOf,I=S&&S(S(T([])));I&&I!==n&&o.call(I,c)&&(x=I);var R=w.prototype=v.prototype=Object.create(x);function j(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function L(e,t){function n(i,s,c,u){var l=p(e[i],e,s);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?t.resolve(h.__await).then(function(e){n("next",e,c,u)},function(e){n("throw",e,c,u)}):t.resolve(h).then(function(e){f.value=e,c(f)},function(e){return n("throw",e,c,u)})}u(l.arg)}var s;i(this,"_invoke",{value:function(e,o){function i(){return new t(function(t,i){n(e,o,t,i)})}return s=s?s.then(i,i):i()}})}function k(e,t,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return _()}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var u=E(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,y;var s=i.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,y):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function T(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),l=o.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},t}function t(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=n(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:new(r(d[3]).DependencyManager);r(d[4])(this,u);var o=new(r(d[5]).AgentConfig)(e.config,e.dependencies),i=(0,r(d[6]).extendModulesWithDefaultModules)(o,e.modules);n.registerSingleton(r(d[7]).MessageHandlerRegistry),n.registerSingleton(r(d[8]).EventEmitter),n.registerSingleton(r(d[9]).MessageSender),n.registerSingleton(r(d[10]).MessageReceiver),n.registerSingleton(r(d[11]).TransportService),n.registerSingleton(r(d[12]).Dispatcher),n.registerSingleton(r(d[13]).EnvelopeService),n.registerSingleton(r(d[14]).FeatureRegistry),n.registerSingleton(r(d[15]).JwsService),n.registerSingleton(r(d[16]).CacheRepository),n.registerSingleton(r(d[17]).DidCommMessageRepository),n.registerSingleton(r(d[17]).StorageVersionRepository),n.registerSingleton(r(d[17]).StorageUpdateService),n.registerInstance(r(d[18]).SigningProviderToken,'default'),n.registerInstance(r(d[5]).AgentConfig,o),n.registerInstance(r(d[19]).InjectionSymbols.AgentDependencies,o.agentDependencies),n.registerInstance(r(d[19]).InjectionSymbols.Stop$,new(r(d[20]).Subject)),n.registerInstance(r(d[19]).InjectionSymbols.FileSystem,new o.agentDependencies.FileSystem),n.isRegistered(r(d[19]).InjectionSymbols.Wallet)||n.registerContextScoped(r(d[19]).InjectionSymbols.Wallet,r(d[21]).IndyWallet),n.isRegistered(r(d[19]).InjectionSymbols.Logger)||n.registerInstance(r(d[19]).InjectionSymbols.Logger,o.logger),n.isRegistered(r(d[19]).InjectionSymbols.StorageService)||n.registerSingleton(r(d[19]).InjectionSymbols.StorageService,r(d[22]).IndyStorageService),n.isRegistered(r(d[19]).InjectionSymbols.MessageRepository)||n.registerSingleton(r(d[19]).InjectionSymbols.MessageRepository,r(d[23]).InMemoryMessageRepository),n.registerModules(i),n.registerInstance(r(d[24]).AgentContext,new(r(d[24]).AgentContext)({dependencyManager:n,contextCorrelationId:'default'})),n.isRegistered(r(d[19]).InjectionSymbols.AgentContextProvider)||n.registerSingleton(r(d[19]).InjectionSymbols.AgentContextProvider,r(d[24]).DefaultAgentContextProvider);var s=(t=c.call(this,o,n)).dependencyManager.resolve(r(d[19]).InjectionSymbols.Stop$);return t.messageSubscription=t.eventEmitter.observable(r(d[25]).AgentEventTypes.AgentMessageReceived).pipe((0,r(d[26]).takeUntil)(s),(0,r(d[26]).concatMap)(function(e){return t.messageReceiver.receiveMessage(e.payload.message,{connection:e.payload.connection,contextCorrelationId:e.payload.contextCorrelationId}).catch(function(e){t.logger.error('Failed to process message',{error:e})})})).subscribe(),t}return r(d[27])(u,[{key:"registerInboundTransport",value:function(e){this.messageReceiver.registerInboundTransport(e)}},{key:"inboundTransports",get:function(){return this.messageReceiver.inboundTransports}},{key:"registerOutboundTransport",value:function(e){this.messageSender.registerOutboundTransport(e)}},{key:"outboundTransports",get:function(){return this.messageSender.outboundTransports}},{key:"events",get:function(){return this.eventEmitter}},{key:"features",get:function(){return this.featureRegistry}},{key:"initialize",value:function(){var n,o,i,s,c,l,f,h=this;return e().async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,e().awrap(r(d[28])(r(d[0])(u.prototype),"initialize",this).call(this));case 2:this.ledger.setPools(this.ledger.config.indyLedgers),this.ledger.config.connectToIndyLedgersOnStartup&&this.ledger.connectToPools().catch(function(e){h.logger.warn('Error connecting to ledger, will try to reconnect when needed.',{error:e})}),n=t(this.inboundTransports);case 5:if((o=n()).done){p.next=11;break}return i=o.value,p.next=9,e().awrap(i.start(this));case 9:p.next=5;break;case 11:s=t(this.outboundTransports);case 12:if((c=s()).done){p.next=18;break}return l=c.value,p.next=16,e().awrap(l.start(this));case 16:p.next=12;break;case 18:if(!this.mediationRecipient.config.mediatorInvitationUrl){p.next=25;break}return this.logger.debug('Provision mediation with invitation',{mediatorInvitationUrl:this.mediationRecipient.config.mediatorInvitationUrl}),p.next=22,e().awrap(this.getMediationConnection(this.mediationRecipient.config.mediatorInvitationUrl));case 22:return f=p.sent,p.next=25,e().awrap(this.mediationRecipient.provision(f));case 25:return p.next=27,e().awrap(this.mediator.initialize());case 27:return p.next=29,e().awrap(this.mediationRecipient.initialize());case 29:this._isInitialized=!0;case 30:case"end":return p.stop()}},null,this,null,Promise)}},{key:"shutdown",value:function(){var t,n;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return this.dependencyManager.resolve(r(d[19]).InjectionSymbols.Stop$).next(!0),t=[].concat(r(d[29])(this.inboundTransports),r(d[29])(this.outboundTransports)),n=t.map(function(e){return e.stop()}),o.next=6,e().awrap(Promise.all(n));case 6:if(!this.wallet.isInitialized){o.next=9;break}return o.next=9,e().awrap(this.wallet.close());case 9:this._isInitialized=!1;case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getMediationConnection",value:function(t){var n,o,i,s,c,u,l,f;return e().async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,e().awrap(this.oob.parseInvitation(t));case 2:return n=h.sent,h.next=5,e().awrap(this.oob.findByReceivedInvitationId(n.id));case 5:if(!(o=h.sent)){h.next=12;break}return h.next=9,e().awrap(this.connections.findAllByOutOfBandId(o.id));case 9:h.t0=h.sent,h.next=13;break;case 12:h.t0=[];case 13:if(i=h.t0,s=r(d[30])(i,1),c=s[0]){h.next=30;break}return this.logger.debug('Mediation connection does not exist, creating connection'),h.next=20,e().awrap(this.mediationRecipient.getRouting({useDefaultMediator:!1}));case 20:return u=h.sent,this.logger.debug('Routing created',u),h.next=24,e().awrap(this.oob.receiveInvitation(n,{routing:u}));case 24:if(l=h.sent,f=l.connectionRecord,this.logger.debug("Mediation invitation processed",{outOfBandInvitation:n}),f){h.next=29;break}throw new(r(d[31]).AriesFrameworkError)('No connection record to provision mediation.');case 29:return h.abrupt("return",this.connections.returnWhenIsConnected(f.id));case 30:if(c.isReady){h.next=32;break}return h.abrupt("return",this.connections.returnWhenIsConnected(c.id));case 32:return h.abrupt("return",c);case 33:case"end":return h.stop()}},null,this,null,Promise)}}]),u})(r(d[32]).BaseAgent);_e.Agent=s},1528,[14,11,9,1019,7,1393,1529,1056,1104,1344,610,1343,1493,1335,1055,1496,1376,1532,989,1103,1105,1366,1951,1952,1391,1345,1328,8,90,42,31,611,1953]); +__d(function(g,r,i,a,m,e,d){"use strict";function n(n){return{connections:function(){return new(r(d[0]).ConnectionsModule)({autoAcceptConnections:n.autoAcceptConnections})},credentials:function(){return new(r(d[1]).CredentialsModule)({autoAcceptCredentials:n.autoAcceptCredentials})},proofs:function(){return new(r(d[2]).ProofsModule)({autoAcceptProofs:n.autoAcceptProofs})},mediator:function(){return new(r(d[3]).MediatorModule)({autoAcceptMediationRequests:n.autoAcceptMediationRequests})},mediationRecipient:function(){return new(r(d[3]).RecipientModule)({maximumMessagePickup:n.maximumMessagePickup,mediatorInvitationUrl:n.mediatorConnectionsInvite,mediatorPickupStrategy:n.mediatorPickupStrategy,baseMediatorReconnectionIntervalMs:n.baseMediatorReconnectionIntervalMs,maximumMediatorReconnectionIntervalMs:n.maximumMediatorReconnectionIntervalMs,mediatorPollingInterval:n.mediatorPollingInterval})},basicMessages:function(){return new(r(d[4]).BasicMessagesModule)},genericRecords:function(){return new(r(d[5]).GenericRecordsModule)},ledger:function(){return new(r(d[6]).LedgerModule)({connectToIndyLedgersOnStartup:n.connectToIndyLedgersOnStartup,indyLedgers:n.indyLedgers})},discovery:function(){return new(r(d[7]).DiscoverFeaturesModule)},dids:function(){return new(r(d[8]).DidsModule)},wallet:function(){return new(r(d[9]).WalletModule)},oob:function(){return new(r(d[10]).OutOfBandModule)},indy:function(){return new(r(d[11]).IndyModule)},w3cVc:function(){return new(r(d[12]).W3cVcModule)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAgentApi=e.extendModulesWithDefaultModules=void 0,e.extendModulesWithDefaultModules=function(t,o){for(var u=r(d[13])({},o),c=n(t),s=0,l=Object.entries(c);s1&&void 0!==arguments[1]?arguments[1]:[];return Object.entries(n.registeredModules).reduce(function(o,u){var c=r(d[14])(u,2),s=c[0],l=c[1];if(!l.api)return o;var M=n.resolve(l.api);return t.includes(M)?o:r(d[13])(r(d[13])({},o),r(d[15])({},s,M))},{})}},1529,[1425,1530,1838,1551,1919,1933,1359,1592,1419,1939,1943,1894,1698,4,31,248]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e)},1530,[1531,1646,1642,1635,1644,1647,1804,1837,1643]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,s=Object.defineProperty||function(t,n,r){t[n]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function l(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,r){return t[n]=r}}function h(t,n,r,o){var i=n&&n.prototype instanceof v?n:v,c=Object.create(i.prototype),u=new F(o||[]);return s(c,"_invoke",{value:S(t,r,u)}),c}function p(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var f={};function v(){}function x(){}function y(){}var w={};l(w,c,function(){return this});var C=Object.getPrototypeOf,b=C&&C(C(A([])));b&&b!==r&&o.call(b,c)&&(w=b);var I=y.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function R(t,n){function r(s,i,c,u){var d=p(t[s],t,i);if("throw"!==d.type){var l=d.arg,h=l.value;return h&&"object"==typeof h&&o.call(h,"__await")?n.resolve(h.__await).then(function(t){r("next",t,c,u)},function(t){r("throw",t,c,u)}):n.resolve(h).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,u)})}u(d.arg)}var i;s(this,"_invoke",{value:function(t,o){function s(){return new n(function(n,s){r(t,o,n,s)})}return i=i?i.then(s,s):s()}})}function S(t,n,r){var o="suspendedStart";return function(s,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===s)throw i;return E()}for(r.method=s,r.arg=i;;){var c=r.delegate;if(c){var u=M(c,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var d=p(t,n,r);if("normal"===d.type){if(o=r.done?"completed":"suspendedYield",d.arg===f)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(o="completed",r.method="throw",r.arg=d.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var s=p(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,f;var i=s.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function O(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r=0;--s){var i=this.tryEntries[s],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),d=o.call(i,"finallyLoc");if(u&&d){if(this.prev=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&o.call(s,"finallyLoc")&&this.prev=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var s=o.arg;O(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},n}var n=this&&this.__decorate||function(t,n,r,o){var s,i=arguments.length,c=i<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,r,o);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(c=(i<3?s(c):i>3?s(n,r,c):s(n,r))||c);return i>3&&c&&Object.defineProperty(n,r,c),c},r=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},o=this&&this.__param||function(t,n){return function(r,o){n(r,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialsApi=void 0;var s=(function(){function n(t,r,o,s,i,c,u,d,l){_r(_d[0])(this,n),this.messageSender=t,this.connectionService=r,this.credentialRepository=i,this.routingService=c,this.agentContext=o,this.didCommMessageRepository=u,this.logger=s,this.config=l,this.credentialProtocolMap=l.credentialProtocols.reduce(function(t,n){return _r(_d[1])(_r(_d[1])({},t),_r(_d[2])({},n.version,n))},{})}return _r(_d[3])(n,[{key:"getProtocol",value:function(t){if(!this.credentialProtocolMap[t])throw new(_r(_d[4]).AriesFrameworkError)("No credential protocol registered for protocol version "+t);return this.credentialProtocolMap[t]}},{key:"proposeCredential",value:function(n){var r,o,s,i,c,u;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+n.protocolVersion),d.next=4,t().awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 4:return o=d.sent,d.next=7,t().awrap(r.createProposal(this.agentContext,{connection:o,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 7:return s=d.sent,i=s.credentialRecord,c=s.message,this.logger.debug('We have a message (sending outbound): ',c),u=new(_r(_d[5]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:o,associatedRecord:i}),this.logger.debug('In proposeCredential: Send Proposal to Issuer'),d.next=15,t().awrap(this.messageSender.sendMessage(u));case 15:return d.abrupt("return",i);case 16:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(n){var r,o,s,i,c,u;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:if((r=d.sent).connectionId){d.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for credential record '"+r.id+"'. Connection-less issuance does not support credential proposal or negotiation.");case 5:return o=this.getProtocol(r.protocolVersion),d.next=8,t().awrap(o.acceptProposal(this.agentContext,{credentialRecord:r,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 8:return s=d.sent,i=s.message,d.next=12,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 12:return c=d.sent,u=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:c,associatedRecord:r}),d.next=16,t().awrap(this.messageSender.sendMessage(u));case 16:return d.abrupt("return",r);case 17:case"end":return d.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(n){var r,o,s,i,c,u;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:if((r=d.sent).connectionId){d.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connection id for credential record "+r.id+" not found. Connection-less issuance does not support negotiation");case 5:return o=this.getProtocol(r.protocolVersion),d.next=8,t().awrap(o.negotiateProposal(this.agentContext,{credentialRecord:r,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 8:return s=d.sent,i=s.message,d.next=12,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 12:return c=d.sent,u=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:c,associatedRecord:r}),d.next=16,t().awrap(this.messageSender.sendMessage(u));case 16:return d.abrupt("return",r);case 17:case"end":return d.stop()}},null,this,null,Promise)}},{key:"offerCredential",value:function(n){var r,o,s,i,c,u;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 2:return r=d.sent,o=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+n.protocolVersion),d.next=7,t().awrap(o.createOffer(this.agentContext,{credentialFormats:n.credentialFormats,autoAcceptCredential:n.autoAcceptCredential,comment:n.comment,connection:r}));case 7:return s=d.sent,i=s.message,c=s.credentialRecord,this.logger.debug('Offer Message successfully created; message= ',i),u=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:r,associatedRecord:c}),d.next=14,t().awrap(this.messageSender.sendMessage(u));case 14:return d.abrupt("return",c);case 15:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(n){var r,o,s,i,c,u,d,l,h,p,f,v;return t().async(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:return r=x.sent,o=this.getProtocol(r.protocolVersion),this.logger.debug("Got a credentialProtocol object for this version; version = "+o.version),x.next=7,t().awrap(o.findOfferMessage(this.agentContext,r.id));case 7:if(s=x.sent,!r.connectionId){x.next=22;break}return x.next=11,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 11:return i=x.sent,x.next=14,t().awrap(o.acceptOffer(this.agentContext,{credentialRecord:r,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 14:return c=x.sent,u=c.message,d=new(_r(_d[5]).OutboundMessageContext)(u,{agentContext:this.agentContext,connection:i,associatedRecord:r}),x.next=19,t().awrap(this.messageSender.sendMessage(d));case 19:return x.abrupt("return",r);case 22:if(!(null===s||void 0===s?void 0:s.service)){x.next=40;break}return x.next=25,t().awrap(this.routingService.getRouting(this.agentContext));case 25:return l=x.sent,h=new(_r(_d[6]).ServiceDecorator)({serviceEndpoint:l.endpoints[0],recipientKeys:[l.recipientKey.publicKeyBase58],routingKeys:l.routingKeys.map(function(t){return t.publicKeyBase58})}),p=s.service,x.next=30,t().awrap(o.acceptOffer(this.agentContext,{credentialRecord:r,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 30:return f=x.sent,(v=f.message).service=h,x.next=35,t().awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(this.agentContext,{agentMessage:v,role:_r(_d[7]).DidCommMessageRole.Sender,associatedRecordId:r.id}));case 35:return x.next=37,t().awrap(this.messageSender.sendMessageToService(new(_r(_d[5]).OutboundMessageContext)(v,{agentContext:this.agentContext,serviceParams:{service:p.resolvedDidCommService,senderKey:h.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 37:return x.abrupt("return",r);case 40:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept offer for credential record without connectionId or ~service decorator on credential offer.");case 41:case"end":return x.stop()}},null,this,null,Promise)}},{key:"declineOffer",value:function(n){var r,o;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t().awrap(this.getById(n));case 2:return(r=s.sent).assertState(_r(_d[8]).CredentialState.OfferReceived),o=this.getProtocol(r.protocolVersion),s.next=7,t().awrap(o.updateState(this.agentContext,r,_r(_d[8]).CredentialState.Declined));case 7:return s.abrupt("return",r);case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"negotiateOffer",value:function(n){var r,o,s,i,c,u;return t().async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:return r=d.sent,o=this.getProtocol(r.protocolVersion),d.next=6,t().awrap(o.negotiateOffer(this.agentContext,{credentialFormats:n.credentialFormats,credentialRecord:r,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 6:if(s=d.sent,i=s.message,r.connectionId){d.next=10;break}throw new(_r(_d[4]).AriesFrameworkError)("No connection id for credential record "+r.id+" not found. Connection-less issuance does not support negotiation");case 10:return d.next=12,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 12:return c=d.sent,u=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:c,associatedRecord:r}),d.next=16,t().awrap(this.messageSender.sendMessage(u));case 16:return d.abrupt("return",r);case 17:case"end":return d.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(n){var r,o,s,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=this.getProtocol(n.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+n.protocolVersion),c.next=4,t().awrap(r.createOffer(this.agentContext,{credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 4:return o=c.sent,s=o.message,i=o.credentialRecord,this.logger.debug('Offer Message successfully created; message= ',s),c.abrupt("return",{message:s,credentialRecord:i});case 9:case"end":return c.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(n){var r,o,s,i,c,u,d,l,h,p;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:return r=f.sent,o=this.getProtocol(r.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+r.protocolVersion),f.next=7,t().awrap(o.acceptRequest(this.agentContext,{credentialRecord:r,credentialFormats:n.credentialFormats,comment:n.comment,autoAcceptCredential:n.autoAcceptCredential}));case 7:return s=f.sent,i=s.message,this.logger.debug('We have a credential message (sending outbound): ',i),f.next=12,t().awrap(o.findRequestMessage(this.agentContext,r.id));case 12:return c=f.sent,f.next=15,t().awrap(o.findOfferMessage(this.agentContext,r.id));case 15:if(u=f.sent,!r.connectionId){f.next=26;break}return f.next=19,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 19:return d=f.sent,l=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:d,associatedRecord:r}),f.next=23,t().awrap(this.messageSender.sendMessage(l));case 23:return f.abrupt("return",r);case 26:if(!((null===c||void 0===c?void 0:c.service)&&(null===u||void 0===u?void 0:u.service))){f.next=37;break}return h=c.service,p=u.service,i.service=p,f.next=32,t().awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(this.agentContext,{agentMessage:i,role:_r(_d[7]).DidCommMessageRole.Sender,associatedRecordId:r.id}));case 32:return f.next=34,t().awrap(this.messageSender.sendMessageToService(new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,serviceParams:{service:h.resolvedDidCommService,senderKey:p.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 34:return f.abrupt("return",r);case 37:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept request for credential record without connectionId or ~service decorator on credential offer / request.");case 38:case"end":return f.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(n){var r,o,s,i,c,u,d,l,h,p;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:return r=f.sent,o=this.getProtocol(r.protocolVersion),this.logger.debug("Got a credentialProtocol object for version "+r.protocolVersion),f.next=7,t().awrap(o.acceptCredential(this.agentContext,{credentialRecord:r}));case 7:return s=f.sent,i=s.message,f.next=11,t().awrap(o.findRequestMessage(this.agentContext,r.id));case 11:return c=f.sent,f.next=14,t().awrap(o.findCredentialMessage(this.agentContext,r.id));case 14:if(u=f.sent,!r.connectionId){f.next=25;break}return f.next=18,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 18:return d=f.sent,l=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:d,associatedRecord:r}),f.next=22,t().awrap(this.messageSender.sendMessage(l));case 22:return f.abrupt("return",r);case 25:if(!((null===u||void 0===u?void 0:u.service)&&(null===c||void 0===c?void 0:c.service))){f.next=33;break}return h=u.service,p=c.service,f.next=30,t().awrap(this.messageSender.sendMessageToService(new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,serviceParams:{service:h.resolvedDidCommService,senderKey:p.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 30:return f.abrupt("return",r);case 33:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept credential without connectionId or ~service decorator on credential message.");case 34:case"end":return f.stop()}},null,this,null,Promise)}},{key:"sendProblemReport",value:function(n){var r,o,s,i,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t().awrap(this.getById(n.credentialRecordId));case 2:if((r=u.sent).connectionId){u.next=5;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for credential record '"+r.id+"'.");case 5:return u.next=7,t().awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 7:return o=u.sent,s=this.getProtocol(r.protocolVersion),(i=s.createProblemReport(this.agentContext,{message:n.message})).setThread({threadId:r.threadId}),c=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:o,associatedRecord:r}),u.next=14,t().awrap(this.messageSender.sendMessage(c));case 14:return u.abrupt("return",r);case 15:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getFormatData",value:function(n){var r,o;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t().awrap(this.getById(n));case 2:return r=s.sent,o=this.getProtocol(r.protocolVersion),s.abrupt("return",o.getFormatData(this.agentContext,n));case 5:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t){return this.credentialRepository.getById(this.agentContext,t)}},{key:"getAll",value:function(){return this.credentialRepository.getAll(this.agentContext)}},{key:"findAllByQuery",value:function(t){return this.credentialRepository.findByQuery(this.agentContext,t)}},{key:"findById",value:function(t){return this.credentialRepository.findById(this.agentContext,t)}},{key:"deleteById",value:function(n,r){var o,s;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.getById(n));case 2:return o=i.sent,s=this.getProtocol(o.protocolVersion),i.abrupt("return",s.delete(this.agentContext,o,r));case 5:case"end":return i.stop()}},null,this,null,Promise)}},{key:"update",value:function(n){return t().async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t().awrap(this.credentialRepository.update(this.agentContext,n));case 2:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getServiceForCredentialExchangeId(n));case 2:return r=o.sent,o.abrupt("return",r.findProposalMessage(this.agentContext,n));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findOfferMessage",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getServiceForCredentialExchangeId(n));case 2:return r=o.sent,o.abrupt("return",r.findOfferMessage(this.agentContext,n));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findRequestMessage",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getServiceForCredentialExchangeId(n));case 2:return r=o.sent,o.abrupt("return",r.findRequestMessage(this.agentContext,n));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findCredentialMessage",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getServiceForCredentialExchangeId(n));case 2:return r=o.sent,o.abrupt("return",r.findCredentialMessage(this.agentContext,n));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getServiceForCredentialExchangeId",value:function(n){var r;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getById(n));case 2:return r=o.sent,o.abrupt("return",this.getProtocol(r.protocolVersion));case 4:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();s=n([(0,_r(_d[9]).injectable)(),o(3,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.Logger)),r("design:paramtypes",[_r(_d[11]).MessageSender,_r(_d[12]).ConnectionService,_r(_d[13]).AgentContext,Object,_r(_d[14]).CredentialRepository,_r(_d[15]).RoutingService,_r(_d[16]).DidCommMessageRepository,_r(_d[17]).RevocationNotificationService,_r(_d[18]).CredentialsModuleConfig])],s),e.CredentialsApi=s},1531,[7,4,248,8,611,622,984,1532,1549,1019,1103,1344,1465,1390,1544,1507,1535,1632,1643]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1532,[1533,1537]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1533,[1534,1535,1536]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommMessageRecord=void 0;var t=(function(t){r(d[2])(c,t);var s,o,n=(s=c,o=e(),function(){var e,t=r(d[0])(s);if(o){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t,s,o;return r(d[3])(this,c),(t=n.call(this)).type=c.type,e&&(t.id=null!==(s=e.id)&&void 0!==s?s:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.associatedRecordId=e.associatedRecordId,t.role=e.role,t.message=e.message),t}return r(d[5])(c,[{key:"getTags",value:function(){var e=this.message['@id'],t=this.message['@type'],s=(0,r(d[6]).parseMessageType)(t),o=s.protocolName,n=s.protocolMajorVersion,c=s.protocolMinorVersion,u=s.messageName,l=this.message['~thread'],f=e;return(0,r(d[7]).isJsonObject)(l)&&'string'==typeof l.thid&&(f=l.thid),r(d[8])(r(d[8])({},this._tags),{role:this.role,associatedRecordId:this.associatedRecordId,threadId:f,protocolName:o,messageName:u,protocolMajorVersion:n.toString(),protocolMinorVersion:c.toString(),messageType:t,messageId:e})}},{key:"getMessageInstance",value:function(e){var t=(0,r(d[6]).parseMessageType)(this.message['@type']);if(!(0,r(d[6]).canHandleMessageType)(e,t))throw new(r(d[9]).AriesFrameworkError)('Provided message class type does not match type of stored message');return r(d[10]).JsonTransformer.fromJSON(this.message,e)}}]),c})(r(d[11]).BaseRecord);_e.DidCommMessageRecord=t,t.type='DidCommMessageRecord'},1534,[14,11,9,7,952,8,941,1011,4,611,625,1096]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,c=Object.create(i.prototype),s=new N(n||[]);return o(c,"_invoke",{value:E(t,r,s)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function d(){}function y(){}function v(){}var w={};l(w,c,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(S([])));b&&b!==r&&n.call(b,c)&&(w=b);var j=v.prototype=d.prototype=Object.create(w);function L(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(o,i,c,s){var u=h(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,c,s)},function(t){r("throw",t,c,s)}):e.resolve(f).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,s)})}s(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=R(c,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function R(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,R(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function O(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 M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),M(r),p}},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;M(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=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DidCommMessageRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).DidCommMessageRecord,t,e)}return _r(_d[5])(c,[{key:"saveAgentMessage",value:function(e,r){var n,o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=r.role,o=r.agentMessage,i=r.associatedRecordId,c=new(_r(_d[4]).DidCommMessageRecord)({message:o.toJSON(),role:n,associatedRecordId:i}),s.next=4,t().awrap(this.save(e,c));case 4:case"end":return s.stop()}},null,this,null,Promise)}},{key:"saveOrUpdateAgentMessage",value:function(e,r){var n,o,i,c,s;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=(0,_r(_d[6]).parseMessageType)(r.agentMessage.type),o=n.messageName,i=n.protocolName,c=n.protocolMajorVersion,u.next=3,t().awrap(this.findSingleByQuery(e,{associatedRecordId:r.associatedRecordId,messageName:o,protocolName:i,protocolMajorVersion:String(c)}));case 3:if(!(s=u.sent)){u.next=10;break}return s.message=r.agentMessage.toJSON(),s.role=r.role,u.next=9,t().awrap(this.update(e,s));case 9:return u.abrupt("return");case 10:return u.next=12,t().awrap(this.saveAgentMessage(e,r));case 12:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getAgentMessage",value:function(e,r){var n,o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=r.associatedRecordId,o=r.messageClass,c.next=3,t().awrap(this.getSingleByQuery(e,{associatedRecordId:n,messageName:o.type.messageName,protocolName:o.type.protocolName,protocolMajorVersion:String(o.type.protocolMajorVersion)}));case 3:return i=c.sent,c.abrupt("return",i.getMessageInstance(o));case 5:case"end":return c.stop()}},null,this,null,Promise)}},{key:"findAgentMessage",value:function(e,r){var n,o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=r.associatedRecordId,o=r.messageClass,s.next=3,t().awrap(this.findSingleByQuery(e,{associatedRecordId:n,messageName:o.type.messageName,protocolName:o.type.protocolName,protocolMajorVersion:String(o.type.protocolMajorVersion)}));case 3:return c=s.sent,s.abrupt("return",null!==(i=null===c||void 0===c?void 0:c.getMessageInstance(o))&&void 0!==i?i:null);case 5:case"end":return s.stop()}},null,this,null,Promise)}}]),c})(_r(_d[7]).Repository);i=r([(0,_r(_d[8]).injectable)(),o(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],i),_e.DidCommMessageRepository=i},1535,[14,11,9,7,1534,8,941,1101,1019,1103,1104]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DidCommMessageRole=void 0,(function(o){o.Sender="sender",o.Receiver="receiver"})(e.DidCommMessageRole||(e.DidCommMessageRole={}))},1536,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1537,[1538,1539,1540,1630]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageVersionRecord=void 0;var t=(function(t){r(d[2])(u,t);var n,o,c=(n=u,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t,n,o;return r(d[3])(this,u),(t=c.call(this)).type=u.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),t.createdAt=null!==(o=e.createdAt)&&void 0!==o?o:new Date,t.storageVersion=e.storageVersion),t}return r(d[5])(u,[{key:"getTags",value:function(){return this._tags}}]),u})(r(d[6]).BaseRecord);_e.StorageVersionRecord=t,t.type='StorageVersionRecord'},1538,[14,11,9,7,952,8,1096]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,c=arguments.length,i=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(i=(c<3?o(i):c>3?o(e,r,i):o(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageVersionRepository=void 0;var o=(function(e){_r(_d[2])(c,e);var r,n,o=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),o.call(this,_r(_d[4]).StorageVersionRecord,t,e)}return _r(_d[5])(c)})(_r(_d[6]).Repository);o=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],o),_e.StorageVersionRepository=o},1539,[14,11,9,7,1538,8,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof y?r:y,s=Object.create(c.prototype),u=new j(o||[]);return i(s,"_invoke",{value:b(t,n,u)}),s}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d={};function y(){}function v(){}function w(){}var R={};f(R,s,function(){return this});var _=Object.getPrototypeOf,E=_&&_(_(N([])));E&&E!==n&&o.call(E,s)&&(R=E);var S=w.prototype=y.prototype=Object.create(R);function x(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function O(t,r){function n(i,c,s,u){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(h).then(function(t){f.value=t,s(f)},function(t){return n("throw",t,s,u)})}u(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function b(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return T()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=L(s,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function L(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function V(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function I(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function N(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r,n=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageUpdateService=void 0;var c=r=(function(){function n(t,r){_r(_d[0])(this,n),this.logger=t,this.storageVersionRepository=r}return _r(_d[1])(n,[{key:"isUpToDate",value:function(r,n){var o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.t0=_r(_d[2]).parseVersionString,s.next=3,t().awrap(this.getCurrentStorageVersion(r));case 3:return s.t1=s.sent,o=(0,s.t0)(s.t1),i=(0,_r(_d[2]).parseVersionString)(null!==n&&void 0!==n?n:_r(_d[3]).CURRENT_FRAMEWORK_STORAGE_VERSION),c=(0,_r(_d[2]).isFirstVersionEqualToSecond)(o,i)||(0,_r(_d[2]).isFirstVersionHigherThanSecond)(o,i),s.abrupt("return",c);case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getCurrentStorageVersion",value:function(r){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.getStorageVersionRecord(r));case 2:return n=o.sent,o.abrupt("return",n.storageVersion);case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"setCurrentStorageVersion",value:function(n,o){var i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return this.logger.debug("Setting current agent storage version to "+o),c.next=3,t().awrap(this.storageVersionRepository.findById(n,r.STORAGE_VERSION_RECORD_ID));case 3:if(i=c.sent){c.next=10;break}return this.logger.trace('Storage upgrade record does not exist yet. Creating.'),c.next=8,t().awrap(this.storageVersionRepository.save(n,new(_r(_d[4]).StorageVersionRecord)({id:r.STORAGE_VERSION_RECORD_ID,storageVersion:o})));case 8:c.next=14;break;case 10:return this.logger.trace('Storage upgrade record already exists. Updating.'),i.storageVersion=o,c.next=14,t().awrap(this.storageVersionRepository.update(n,i));case 14:case"end":return c.stop()}},null,this,null,Promise)}},{key:"getStorageVersionRecord",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.storageVersionRepository.findById(n,r.STORAGE_VERSION_RECORD_ID));case 2:if(o=i.sent){i.next=7;break}return o=new(_r(_d[4]).StorageVersionRecord)({id:r.STORAGE_VERSION_RECORD_ID,storageVersion:_r(_d[3]).INITIAL_STORAGE_VERSION}),i.next=7,t().awrap(this.storageVersionRepository.save(n,o));case 7:return i.abrupt("return",o);case 8:case"end":return i.stop()}},null,this,null,Promise)}}]),n})();c.STORAGE_VERSION_RECORD_ID='STORAGE_VERSION_RECORD_ID',c=r=n([(0,_r(_d[5]).injectable)(),i(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.Logger)),o("design:paramtypes",[Object,_r(_d[7]).StorageVersionRepository])],c),e.StorageUpdateService=c},1540,[7,8,943,1541,1538,1019,1103,1539]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CURRENT_FRAMEWORK_STORAGE_VERSION=e.supportedUpdates=e.DEFAULT_UPDATE_CONFIG=e.INITIAL_STORAGE_VERSION=void 0,e.INITIAL_STORAGE_VERSION='0.1',e.DEFAULT_UPDATE_CONFIG={v0_1ToV0_2:{mediationRoleUpdateStrategy:'recipientIfEndpoint'}},e.supportedUpdates=[{fromVersion:'0.1',toVersion:'0.2',doUpdate:r(d[0]).updateV0_1ToV0_2},{fromVersion:'0.2',toVersion:'0.3',doUpdate:r(d[1]).updateV0_2ToV0_3},{fromVersion:'0.3',toVersion:'0.3.1',doUpdate:r(d[2]).updateV0_3ToV0_3_1}],e.CURRENT_FRAMEWORK_STORAGE_VERSION=e.supportedUpdates[e.supportedUpdates.length-1].toVersion},1541,[1542,1620,1628]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new V(i||[]);return c(l,"_invoke",{value:P(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var _={};s(_,l,function(){return this});var b=Object.getPrototypeOf,E=b&&b(b(S([])));E&&E!==o&&i.call(E,l)&&(_=E);var O=L.prototype=w.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function T(t,n){function o(c,u,l,f){var h=v(t[c],t,u);if("throw"!==h.type){var s=h.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){s.value=t,l(s)},function(t){return o("throw",t,l,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=k(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function S(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:S(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_1ToV0_2=void 0,e.updateV0_1ToV0_2=function(n,o){return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap((0,r(d[0]).migrateCredentialRecordToV0_2)(n));case 2:return i.next=4,t().awrap((0,r(d[1]).migrateMediationRecordToV0_2)(n,o.v0_1ToV0_2));case 4:return i.next=6,t().awrap((0,r(d[2]).migrateConnectionRecordToV0_2)(n));case 6:case"end":return i.stop()}},null,null,null,Promise)}},1542,[1543,1550,1618]); +__d(function(g,r,_i,a,m,_e,d){"use strict";var e;function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function h(e,t,n,o){var c=t&&t.prototype instanceof v?t:v,s=Object.create(c.prototype),l=new _(o||[]);return i(s,"_invoke",{value:D(e,n,l)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=h;var y={};function v(){}function w(){}function b(){}var M={};f(M,s,function(){return this});var x=Object.getPrototypeOf,C=x&&x(x(j([])));C&&C!==n&&o.call(C,s)&&(M=C);var I=b.prototype=v.prototype=Object.create(M);function R(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(i,c,s,l){var u=p(e[i],e,c);if("throw"!==u.type){var f=u.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?t.resolve(h.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(h).then(function(e){f.value=e,s(f)},function(e){return n("throw",e,s,l)})}l(u.arg)}var c;i(this,"_invoke",{value:function(e,o){function i(){return new t(function(t,i){n(e,o,t,i)})}return c=c?c.then(i,i):i()}})}function D(e,t,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return P()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var l=L(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var u=p(e,t,n);if("normal"===u.type){if(o=n.done?"completed":"suspendedYield",u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o="completed",n.method="throw",n.arg=u.arg)}}}function L(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,y;var c=i.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,y):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function j(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),u=o.call(c,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},e}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0?c.Holder:e.state===r(d[1]).CredentialState.Done?c.Issuer:l.includes(e.state)?c.Holder:c.Issuer}function p(e,n){var o,i,c,l,u,f;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:e.config.logger.debug("Updating indy metadata to use the generic metadata api available to records."),o=n.metadata.data,i=o.requestMetadata,c=o.schemaId,l=o.credentialDefinitionId,u=s(o,["requestMetadata","schemaId","credentialDefinitionId"]),f=new(r(d[4]).Metadata)(u),i&&(e.config.logger.trace("Found top-level 'requestMetadata' key, moving to '"+r(d[5]).CredentialMetadataKeys.IndyRequest+"'"),f.add(r(d[5]).CredentialMetadataKeys.IndyRequest,r(d[6])({},i))),c&&'string'==typeof c&&(e.config.logger.trace("Found top-level 'schemaId' key, moving to '"+r(d[5]).CredentialMetadataKeys.IndyCredential+".schemaId'"),f.add(r(d[5]).CredentialMetadataKeys.IndyCredential,{schemaId:c})),l&&'string'==typeof l&&(e.config.logger.trace("Found top-level 'credentialDefinitionId' key, moving to '"+r(d[5]).CredentialMetadataKeys.IndyCredential+".credentialDefinitionId'"),f.add(r(d[5]).CredentialMetadataKeys.IndyCredential,{credentialDefinitionId:l})),n.metadata=f;case 7:case"end":return t.stop()}},null,null,null,Promise)}function y(e,n){var o;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:e.config.logger.debug("Migrating internal credential record "+n.id+" properties to storage version 0.2"),n.protocolVersion||(e.config.logger.debug("Setting protocolVersion to v1"),n.protocolVersion='v1'),(o=n).credentialId&&(e.config.logger.debug("Migrating indy credentialId "+o.id+" to credentials array"),n.credentials=[{credentialRecordId:o.credentialId,credentialRecordType:'indy'}],delete o.credentialId),e.config.logger.debug("Successfully migrated internal credential record "+n.id+" properties to storage version 0.2");case 5:case"end":return t.stop()}},null,null,null,Promise)}function v(e,o){var i,c,s,l,p,y,v,w,b;return t().async(function(M){for(;;)switch(M.prev=M.next){case 0:e.config.logger.debug("Moving didcomm messages from credential record with id "+o.id+" to DidCommMessageRecord"),i=e.dependencyManager.resolve(r(d[3]).DidCommMessageRepository),c=n(f);case 3:if((s=c()).done){M.next=21;break}if(l=s.value,e.config.logger.debug("Starting move of "+l+" from credential record with id "+o.id+" to DIDCommMessageRecord"),!(y=(p=o)[l])){M.next=18;break}return v=h(o),w=u[v][l],b=new(r(d[3]).DidCommMessageRecord)({role:w,associatedRecordId:o.id,message:y}),M.next=14,t().awrap(i.save(e.context,b));case 14:e.config.logger.debug("Successfully moved "+l+" from credential record with id "+o.id+" to DIDCommMessageRecord"),delete p[l],M.next=19;break;case 18:e.config.logger.debug("Credential record with id "+o.id+" does not have a "+l+". Not creating a DIDCommMessageRecord");case 19:M.next=3;break;case 21:e.config.logger.debug("Successfully moved didcomm messages from credential record with id "+o.id+" to DIDCommMessageRecord");case 22:case"end":return M.stop()}},null,null,null,Promise)}_e.getCredentialRole=h,_e.updateIndyMetadata=p,_e.migrateInternalCredentialRecordProperties=y,_e.moveDidCommMessages=v},1543,[1544,1549,248,1533,1073,1546,4]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).CredentialExchangeRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.CredentialRepository=c},1544,[14,11,9,7,1545,8,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialExchangeRecord=void 0;var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,n,r,c;return _r(_d[3])(this,o),(t=i.call(this)).credentials=[],t.type=o.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,_r(_d[4]).uuid)(),t.createdAt=null!==(r=e.createdAt)&&void 0!==r?r:new Date,t.state=e.state,t.connectionId=e.connectionId,t.threadId=e.threadId,t.protocolVersion=e.protocolVersion,t._tags=null!==(c=e.tags)&&void 0!==c?c:{},t.credentialAttributes=e.credentialAttributes,t.autoAcceptCredential=e.autoAcceptCredential,t.linkedAttachments=e.linkedAttachments,t.revocationNotification=e.revocationNotification,t.errorMessage=e.errorMessage,t.credentials=e.credentials||[]),t}return _r(_d[5])(o,[{key:"getTags",value:function(){var e=this.metadata.get(_r(_d[6]).CredentialMetadataKeys.IndyCredential),t=this.credentials.map(function(e){return e.credentialRecordId});return _r(_d[7])(_r(_d[7])({},this._tags),{threadId:this.threadId,connectionId:this.connectionId,state:this.state,credentialIds:t,indyRevocationRegistryId:null===e||void 0===e?void 0:e.indyRevocationRegistryId,indyCredentialRevocationId:null===e||void 0===e?void 0:e.indyCredentialRevocationId})}},{key:"getCredentialInfo",value:function(){if(!this.credentialAttributes)return null;var e=this.credentialAttributes.reduce(function(e,t){return _r(_d[7])(_r(_d[7])({},e),_r(_d[8])({},t.name,t.value))},{});return new(_r(_d[9]).IndyCredentialView)({claims:e,attachments:this.linkedAttachments,metadata:this.metadata.data})}},{key:"assertProtocolVersion",value:function(e){if(this.protocolVersion!=e)throw new(_r(_d[10]).AriesFrameworkError)("Credential record has invalid protocol version "+this.protocolVersion+". Expected version "+e)}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(_r(_d[10]).AriesFrameworkError)("Credential record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertConnection",value:function(e){if(!this.connectionId)throw new(_r(_d[10]).AriesFrameworkError)("Credential record is not associated with any connection. This is often the case with connection-less credential exchange");if(this.connectionId!==e)throw new(_r(_d[10]).AriesFrameworkError)("Credential record is associated with connection '"+this.connectionId+"'. Current connection is '"+e+"'")}}]),o})(_r(_d[11]).BaseRecord);r.type='CredentialRecord',t([(0,_r(_d[12]).Type)(function(){return _r(_d[13]).CredentialPreviewAttribute}),n("design:type",Array)],r.prototype,"credentialAttributes",void 0),t([(0,_r(_d[12]).Type)(function(){return _r(_d[14]).Attachment}),n("design:type",Array)],r.prototype,"linkedAttachments",void 0),_e.CredentialExchangeRecord=r},1545,[14,11,9,7,952,8,1546,4,248,1547,611,1096,626,1548,977]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialMetadataKeys=void 0,(function(t){t.IndyCredential="_internal/indyCredential",t.IndyRequest="_internal/indyRequest"})(e.CredentialMetadataKeys||(e.CredentialMetadataKeys={}))},1546,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredentialView=void 0;var t=r(d[0])(function t(n){var s;r(d[1])(this,t),this.metadata=null!==(s=n.metadata)&&void 0!==s?s:{},this.claims=n.claims,this.attachments=n.attachments});e.IndyCredentialView=t},1547,[8,7]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,p=arguments.length,s=p<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(p<3?o(s):p>3?o(i,n,s):o(i,n))||s);return p>3&&s&&Object.defineProperty(i,n,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialPreviewAttribute=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),this.mimeType='text/plain',i&&(this.name=i.name,this.mimeType=i.mimeType,this.value=i.value)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"name",void 0),t([(0,_r(_d[4]).Expose)({name:'mime-type'}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsMimeType)(),i("design:type",String)],n.prototype,"mimeType",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"value",void 0),e.CredentialPreviewAttribute=n},1548,[7,8,625,661,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialState=void 0,(function(t){t.ProposalSent="proposal-sent",t.ProposalReceived="proposal-received",t.OfferSent="offer-sent",t.OfferReceived="offer-received",t.Declined="declined",t.RequestSent="request-sent",t.RequestReceived="request-received",t.CredentialIssued="credential-issued",t.CredentialReceived="credential-received",t.Done="done"})(e.CredentialState||(e.CredentialState={}))},1549,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof b?n:b,l=Object.create(u.prototype),s=new A(i||[]);return c(l,"_invoke",{value:k(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function b(){}function w(){}function x(){}var L={};h(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==o&&i.call(_,l)&&(L=_);var M=x.prototype=b.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){function o(c,u,l,s){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){h.value=t,l(h)},function(t){return o("throw",t,l,s)})}s(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return G()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=S(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function N(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;P(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;--i){var s=this.tryEntries[i],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=n.call(s,"catchLoc"),l=n.call(s,"finallyLoc");if(c&&l){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var i=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,u=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(u=(s<3?i(u):s>3?i(r,n,u):i(r,n))||u);return s>3&&u&&Object.defineProperty(r,n,u),u},s=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},u=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorService=void 0;var c=(function(){function r(t,n,o,i,s){_r(_d[0])(this,r),this.mediationRepository=t,this.mediatorRoutingRepository=n,this.eventEmitter=o,this.logger=i,this.connectionService=s}return _r(_d[1])(r,[{key:"getRoutingKeys",value:function(t){var r;return o().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o().awrap(this.findMediatorRoutingRecord(t));case 2:if(!(r=n.sent)){n.next=6;break}return this.logger.debug("Returning mediator routing keys "+r.routingKeys),n.abrupt("return",r.routingKeys);case 6:throw new(_r(_d[2]).AriesFrameworkError)("Mediator has not been initialized yet.");case 7:case"end":return n.stop()}},null,this,null,Promise)}},{key:"processForwardMessage",value:function(t){var r,n;return o().async(function(i){for(;;)switch(i.prev=i.next){case 0:if((r=t.message).to){i.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('Invalid Message: Missing required attribute "to"');case 3:return i.next=5,o().awrap(this.mediationRepository.getSingleByRecipientKey(t.agentContext,r.to));case 5:return(n=i.sent).assertReady(),n.assertRole(_r(_d[3]).MediationRole.Mediator),i.abrupt("return",{encryptedMessage:r.message,mediationRecord:n});case 9:case"end":return i.stop()}},null,this,null,Promise)}},{key:"processKeylistUpdateRequest",value:function(r){var n,i,s,u,c,l,d,p,f,h,y;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:return n=r.assertReadyConnection(),i=r.message,s=[],v.next=5,o().awrap(this.mediationRepository.getByConnectionId(r.agentContext,n.id));case 5:return(u=v.sent).assertReady(),u.assertRole(_r(_d[3]).MediationRole.Mediator),c=i.updates.some(function(t){return(0,_r(_d[4]).isDidKey)(t.recipientKey)}),v.next=11,o().awrap(this.updateUseDidKeysFlag(r.agentContext,n,_r(_d[5]).KeylistUpdateMessage.type.protocolUri,c));case 11:for(l=t(i.updates);!(d=l()).done;)p=d.value,f=new(_r(_d[5]).KeylistUpdated)({action:p.action,recipientKey:p.recipientKey,result:_r(_d[5]).KeylistUpdateResult.NoChange}),h=(0,_r(_d[4]).didKeyToVerkey)(p.recipientKey),p.action===_r(_d[5]).KeylistUpdateAction.add?(u.addRecipientKey(h),f.result=_r(_d[5]).KeylistUpdateResult.Success,s.push(f)):p.action===_r(_d[5]).KeylistUpdateAction.remove&&(y=u.removeRecipientKey(h),f.result=y?_r(_d[5]).KeylistUpdateResult.Success:_r(_d[5]).KeylistUpdateResult.NoChange,s.push(f));return v.next=14,o().awrap(this.mediationRepository.update(r.agentContext,u));case 14:return v.abrupt("return",new(_r(_d[5]).KeylistUpdateResponseMessage)({keylist:s,threadId:i.threadId}));case 15:case"end":return v.stop()}},null,this,null,Promise)}},{key:"createGrantMediationMessage",value:function(t,r){var n,i;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:return r.assertState(_r(_d[6]).MediationState.Requested),r.assertRole(_r(_d[3]).MediationRole.Mediator),s.next=4,o().awrap(this.updateState(t,r,_r(_d[6]).MediationState.Granted));case 4:if(n=t.config.useDidKeyInProtocols,s.t0=_r(_d[5]).MediationGrantMessage,s.t1=t.config.endpoints[0],!n){s.next=13;break}return s.next=10,o().awrap(this.getRoutingKeys(t));case 10:s.t2=s.sent.map(_r(_d[4]).verkeyToDidKey),s.next=16;break;case 13:return s.next=15,o().awrap(this.getRoutingKeys(t));case 15:s.t2=s.sent;case 16:return s.t3=s.t2,s.t4=r.threadId,s.t5={endpoint:s.t1,routingKeys:s.t3,threadId:s.t4},i=new s.t0(s.t5),s.abrupt("return",{mediationRecord:r,message:i});case 21:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processMediationRequest",value:function(t){var r,n;return o().async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=t.assertReadyConnection(),n=new(_r(_d[7]).MediationRecord)({connectionId:r.id,role:_r(_d[3]).MediationRole.Mediator,state:_r(_d[6]).MediationState.Requested,threadId:t.message.threadId}),i.next=4,o().awrap(this.mediationRepository.save(t.agentContext,n));case 4:return this.emitStateChangedEvent(t.agentContext,n,null),i.abrupt("return",n);case 6:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findById",value:function(t,r){return o().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.mediationRepository.findById(t,r));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t,r){return o().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.mediationRepository.getById(t,r));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(t){return o().async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o().awrap(this.mediationRepository.getAll(t));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findMediatorRoutingRecord",value:function(t){var r;return o().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o().awrap(this.mediatorRoutingRepository.findById(t,this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID));case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createMediatorRoutingRecord",value:function(t){var r,n;return o().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,o().awrap(t.wallet.createKey({keyType:_r(_d[8]).KeyType.Ed25519}));case 2:return r=i.sent,n=new(_r(_d[9]).MediatorRoutingRecord)({id:this.mediatorRoutingRepository.MEDIATOR_ROUTING_RECORD_ID,routingKeys:[r.publicKeyBase58]}),i.next=6,o().awrap(this.mediatorRoutingRepository.save(t,n));case 6:return i.abrupt("return",n);case 7:case"end":return i.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t,r){return o().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o().awrap(this.mediationRepository.findByQuery(t,r));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(t,r,n){var i;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=r.state,r.state=n,s.next=4,o().awrap(this.mediationRepository.update(t,r));case 4:this.emitStateChangedEvent(t,r,i);case 5:case"end":return s.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,r,n){var o=_r(_d[10]).JsonTransformer.clone(r);this.eventEmitter.emit(t,{type:_r(_d[11]).RoutingEventTypes.MediationStateChanged,payload:{mediationRecord:o,previousState:n}})}},{key:"updateUseDidKeysFlag",value:function(t,r,n,i){var s,u;return o().async(function(c){for(;;)switch(c.prev=c.next){case 0:return(u=null!==(s=r.metadata.get(_r(_d[12]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&void 0!==s?s:{})[n]=i,r.metadata.set(_r(_d[12]).ConnectionMetadataKeys.UseDidKeysForProtocol,u),c.next=5,o().awrap(this.connectionService.update(t,r));case 5:case"end":return c.stop()}},null,this,null,Promise)}}]),r})();c=i([(0,_r(_d[13]).injectable)(),u(3,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.Logger)),s("design:paramtypes",[_r(_d[15]).MediationRepository,_r(_d[16]).MediatorRoutingRepository,_r(_d[17]).EventEmitter,Object,_r(_d[18]).ConnectionService])],c),e.MediatorService=c},1553,[7,8,611,1511,985,1336,1512,1519,989,1554,625,1508,1521,1019,1103,1524,1555,1104,1425]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1554,[1524,1555,1519,1556]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var o,c=arguments.length,i=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(o=t[f])&&(i=(c<3?o(i):c>3?o(e,r,i):o(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediatorRoutingRepository=void 0;var o=(function(e){_r(_d[2])(c,e);var r,n,o=(r=c,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){var r;return _r(_d[3])(this,c),(r=o.call(this,_r(_d[4]).MediatorRoutingRecord,t,e)).MEDIATOR_ROUTING_RECORD_ID='MEDIATOR_ROUTING_RECORD',r}return _r(_d[5])(c)})(_r(_d[6]).Repository);o=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],o),_e.MediatorRoutingRepository=o},1555,[14,11,9,7,1556,8,1101,1019,1103,1104]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.MediatorRoutingRecord=void 0;var e=(function(e){r(d[2])(c,e);var n,o,u=(n=c,o=t(),function(){var t,e=r(d[0])(n);if(o){var u=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,u)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function c(t){var e,n,o;return r(d[3])(this,c),(e=u.call(this)).type=c.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),e.createdAt=null!==(o=t.createdAt)&&void 0!==o?o:new Date,e.routingKeys=t.routingKeys||[]),e}return r(d[5])(c,[{key:"getTags",value:function(){return this._tags}}]),c})(r(d[6]).BaseRecord);_e.MediatorRoutingRecord=e,e.type='MediatorRoutingRecord'},1556,[14,11,9,7,952,8,1096]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1557,[1558]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1558,[1559,1567]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1559,[1560,1561]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function l(t,r,n,o){var c=r&&r.prototype instanceof v?r:v,s=Object.create(c.prototype),u=new R(o||[]);return i(s,"_invoke",{value:O(t,n,u)}),s}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var d={};function v(){}function y(){}function w(){}var b={};f(b,s,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(S([])));L&&L!==n&&o.call(L,s)&&(b=L);var E=w.prototype=v.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function j(t,r){function n(i,c,s,u){var h=p(t[i],t,c);if("throw"!==h.type){var f=h.arg,l=f.value;return l&&"object"==typeof l&&o.call(l,"__await")?r.resolve(l.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(l).then(function(t){f.value=t,s(f)},function(t){return n("throw",t,s,u)})}u(h.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function O(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return G()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var h=p(t,r,n);if("normal"===h.type){if(o=n.done?"completed":"suspendedYield",h.arg===d)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o="completed",n.method="throw",n.arg=h.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function M(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function S(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),h=o.call(c,"finallyLoc");if(u&&h){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePickupService=void 0;var i=(function(){function r(t,n,o){_r(_d[0])(this,r),this.messageRepository=t,this.dispatcher=n,this.eventEmitter=o,this.registerMessageHandlers()}return _r(_d[1])(r,[{key:"batch",value:function(r){var n,o,i,c,s;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=r.assertReadyConnection(),o=r.message,u.next=4,t().awrap(this.messageRepository.takeFromQueue(n.id,o.batchSize));case 4:return i=u.sent,c=i.map(function(t){return new(_r(_d[2]).BatchMessageMessage)({message:t})}),s=new(_r(_d[2]).BatchMessage)({messages:c}),u.abrupt("return",new(_r(_d[3]).OutboundMessageContext)(s,{agentContext:r.agentContext,connection:n}));case 8:case"end":return u.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.messageRepository.add(r,n));case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[4]).BatchPickupHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[4]).BatchHandler)(this.eventEmitter))}}]),r})();i=r([(0,_r(_d[5]).injectable)(),o(0,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.MessageRepository)),n("design:paramtypes",[Object,_r(_d[7]).Dispatcher,_r(_d[8]).EventEmitter])],i),e.MessagePickupService=i},1560,[7,8,1561,622,1564,1019,1103,1493,1104]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1561,[1562,1563]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,s,r){var c,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,r);else for(var i=e.length-1;i>=0;i--)(c=e[i])&&(o=(n<3?c(o):n>3?c(t,s,o):c(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BatchMessage=_e.BatchMessageMessage=void 0;var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.id=t.id||(0,_r(_d[4]).uuid)(),this.message=t.message)});t([(0,_r(_d[5]).Matches)(_r(_d[6]).MessageIdRegExp),s("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[5]).IsObject)(),s("design:type",Object)],r.prototype,"message",void 0),_e.BatchMessageMessage=r;var c=(function(t){_r(_d[7])(n,t);var s,r,c=(s=n,r=e(),function(){var e,t=_r(_d[0])(s);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t;return _r(_d[3])(this,n),(t=c.call(this)).type=n.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.messages=e.messages),t}return _r(_d[2])(n)})(_r(_d[8]).AgentMessage);c.type=(0,_r(_d[9]).parseMessageType)('https://didcomm.org/messagepickup/1.0/batch'),t([(0,_r(_d[9]).IsValidMessageType)(c.type),s("design:type",Object)],c.prototype,"type",void 0),t([(0,_r(_d[10]).Type)(function(){return r}),(0,_r(_d[5]).IsArray)(),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(r,{each:!0}),(0,_r(_d[10]).Expose)({name:'messages~attach'}),s("design:type",Array)],c.prototype,"messages",void 0),_e.BatchMessage=c},1562,[14,11,8,7,952,661,951,9,948,941,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,c,r){var n,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,c):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,c,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(i=(o<3?n(i):o>3?n(t,c,i):n(t,c))||i);return o>3&&i&&Object.defineProperty(t,c,i),i},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BatchPickupMessage=void 0;var r=(function(t){_r(_d[2])(o,t);var c,r,n=(c=o,r=e(),function(){var e,t=_r(_d[0])(c);if(r){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.batchSize=e.batchSize),t}return _r(_d[4])(o)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/messagepickup/1.0/batch-pickup'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),c("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsInt)(),(0,_r(_d[8]).Expose)({name:'batch_size'}),c("design:type",Number)],r.prototype,"batchSize",void 0),_e.BatchPickupMessage=r},1563,[14,11,9,7,8,948,941,661,626]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1564,[1565,1566]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new T(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(C([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=G(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:C(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.BatchHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).BatchMessage],this.eventEmitter=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i=this;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:o=n.message,n.assertReadyConnection(),o.messages.forEach(function(t){i.eventEmitter.emit(n.agentContext,{type:r(d[3]).AgentEventTypes.AgentMessageReceived,payload:{message:t.message,contextCorrelationId:n.agentContext.contextCorrelationId}})});case 4:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();e.BatchHandler=n},1565,[7,1561,8,1345]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function L(){}var x={};f(x,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,s)&&(x=_);var O=L.prototype=w.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return B()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.BatchPickupHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).BatchPickupMessage],this.messagePickupService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.abrupt("return",this.messagePickupService.batch(n));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.BatchPickupHandler=n},1566,[7,1561,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1567,[1568,1513]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function f(t,r,n,o){var s=r&&r.prototype instanceof v?r:v,c=Object.create(s.prototype),u=new S(o||[]);return i(c,"_invoke",{value:E(t,n,u)}),c}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var d={};function v(){}function y(){}function w(){}var x={};l(x,c,function(){return this});var b=Object.getPrototypeOf,L=b&&b(b(C([])));L&&L!==n&&o.call(L,c)&&(x=L);var _=w.prototype=v.prototype=Object.create(x);function M(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function R(t,r){function n(i,s,c,u){var h=p(t[i],t,s);if("throw"!==h.type){var l=h.arg,f=l.value;return f&&"object"==typeof f&&o.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,c,u)},function(t){n("throw",t,c,u)}):r.resolve(f).then(function(t){l.value=t,c(l)},function(t){return n("throw",t,c,u)})}u(h.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return s=s?s.then(i,i):i()}})}function E(t,r,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return P()}for(n.method=i,n.arg=s;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var h=p(t,r,n);if("normal"===h.type){if(o=n.done?"completed":"suspendedYield",h.arg===d)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o="completed",n.method="throw",n.arg=h.arg)}}}function j(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var s=this.tryEntries[i],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var u=o.call(s,"catchLoc"),h=o.call(s,"finallyLoc");if(u&&h){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,c=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(c=(s<3?i(c):s>3?i(r,n,c):i(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.V2MessagePickupService=void 0;var i=(function(){function r(t,n,o){_r(_d[0])(this,r),this.messageRepository=t,this.dispatcher=n,this.mediationRecipientService=o,this.registerMessageHandlers()}return _r(_d[1])(r,[{key:"processStatusRequest",value:function(r){var n,o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:if(n=r.assertReadyConnection(),!r.message.recipientKey){i.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('recipient_key parameter not supported');case 3:return i.t0=_r(_d[3]).StatusMessage,i.t1=r.message.threadId,i.next=7,t().awrap(this.messageRepository.getAvailableMessageCount(n.id));case 7:return i.t2=i.sent,i.t3={threadId:i.t1,messageCount:i.t2},o=new i.t0(i.t3),i.abrupt("return",new(_r(_d[4]).OutboundMessageContext)(o,{agentContext:r.agentContext,connection:n}));case 11:case"end":return i.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.messageRepository.add(r,n));case 2:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processDeliveryRequest",value:function(r){var n,o,i,s,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=r.assertReadyConnection(),!r.message.recipientKey){u.next=3;break}throw new(_r(_d[2]).AriesFrameworkError)('recipient_key parameter not supported');case 3:return o=r.message,u.next=6,t().awrap(this.messageRepository.takeFromQueue(n.id,o.limit,!0));case 6:return i=u.sent,s=i.map(function(t){return new(_r(_d[5]).Attachment)({data:{json:t}})}),c=i.length>0?new(_r(_d[3]).MessageDeliveryMessage)({threadId:r.message.threadId,attachments:s}):new(_r(_d[3]).StatusMessage)({threadId:r.message.threadId,messageCount:0}),u.abrupt("return",new(_r(_d[4]).OutboundMessageContext)(c,{agentContext:r.agentContext,connection:n}));case 10:case"end":return u.stop()}},null,this,null,Promise)}},{key:"processMessagesReceived",value:function(r){var n,o,i;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=r.assertReadyConnection(),o=r.message,s.next=4,t().awrap(this.messageRepository.takeFromQueue(n.id,o.messageIdList?o.messageIdList.length:void 0));case 4:return s.t0=_r(_d[3]).StatusMessage,s.t1=r.message.threadId,s.next=8,t().awrap(this.messageRepository.getAvailableMessageCount(n.id));case 8:return s.t2=s.sent,s.t3={threadId:s.t1,messageCount:s.t2},i=new s.t0(s.t3),s.abrupt("return",new(_r(_d[4]).OutboundMessageContext)(i,{agentContext:r.agentContext,connection:n}));case 12:case"end":return s.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[6]).StatusRequestHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[6]).DeliveryRequestHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[6]).MessagesReceivedHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[6]).StatusHandler)(this.mediationRecipientService)),this.dispatcher.registerMessageHandler(new(_r(_d[6]).MessageDeliveryHandler)(this.mediationRecipientService))}}]),r})();i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.MessageRepository)),n("design:paramtypes",[Object,_r(_d[9]).Dispatcher,_r(_d[10]).MediationRecipientService])],i),e.V2MessagePickupService=i},1568,[7,8,611,1513,622,977,1569,1019,1103,1493,1552]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1569,[1570,1571,1572,1573,1574]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new F(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function L(){}function b(){}var x={};f(x,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(R([])));_&&_!==o&&i.call(_,s)&&(x=_);var O=b.prototype=w.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function R(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:R(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.DeliveryRequestHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).DeliveryRequestMessage],this.messagePickupService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.abrupt("return",this.messagePickupService.processDeliveryRequest(n));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.DeliveryRequestHandler=n},1570,[7,1513,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new M(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.MessageDeliveryHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MessageDeliveryMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=n.assertReadyConnection(),c.next=3,t().awrap(this.mediationRecipientService.processDelivery(n));case 3:if(!(i=c.sent)){c.next=6;break}return c.abrupt("return",new(r(d[3]).OutboundMessageContext)(i,{agentContext:n.agentContext,connection:o}));case 6:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.MessageDeliveryHandler=n},1571,[7,1515,8,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new M(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function L(){}function b(){}var x={};f(x,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(x=_);var O=b.prototype=w.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.MessagesReceivedHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MessagesReceivedMessage],this.messagePickupService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.abrupt("return",this.messagePickupService.processMessagesReceived(n));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.MessagesReceivedHandler=n},1572,[7,1513,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return C()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.StatusHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).StatusMessage],this.mediatorRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=n.assertReadyConnection(),c.next=3,t().awrap(this.mediatorRecipientService.processStatus(n));case 3:if(!(i=c.sent)){c.next=6;break}return c.abrupt("return",new(r(d[3]).OutboundMessageContext)(i,{agentContext:n.agentContext,connection:o}));case 6:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.StatusHandler=n},1573,[7,1513,8,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function L(){}function b(){}var x={};f(x,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(R([])));_&&_!==o&&i.call(_,s)&&(x=_);var O=b.prototype=w.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function R(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:R(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.StatusRequestHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).StatusRequestMessage],this.messagePickupService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return n.assertReadyConnection(),t.abrupt("return",this.messagePickupService.processStatusRequest(n));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.StatusRequestHandler=n},1574,[7,1513,8]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function f(t,r,n,o){var c=r&&r.prototype instanceof v?r:v,s=Object.create(c.prototype),u=new P(o||[]);return i(s,"_invoke",{value:_(t,n,u)}),s}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var p={};function v(){}function y(){}function w(){}var x={};l(x,s,function(){return this});var b=Object.getPrototypeOf,S=b&&b(b(C([])));S&&S!==n&&o.call(S,s)&&(x=S);var L=w.prototype=v.prototype=Object.create(x);function M(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function E(t,r){function n(i,c,s,u){var h=d(t[i],t,c);if("throw"!==h.type){var l=h.arg,f=l.value;return f&&"object"==typeof f&&o.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(f).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,u)})}u(h.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function _(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return R()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var h=d(t,r,n);if("normal"===h.type){if(o=n.done?"completed":"suspendedYield",h.arg===p)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o="completed",n.method="throw",n.arg=h.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function j(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function C(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),h=o.call(c,"finallyLoc");if(u&&h){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorApi=void 0;var o=(function(){function r(t,n,o,i,c,s,u,h,l){_r(_d[0])(this,r),this.mediatorService=n,this.messagePickupService=o,this.messageSender=c,this.eventEmitter=s,this.connectionService=h,this.agentContext=u,this.config=l,this.registerMessageHandlers(t)}return _r(_d[1])(r,[{key:"initialize",value:function(){return t().async(function(r){for(;;)switch(r.prev=r.next){case 0:return this.agentContext.config.logger.debug('Mediator routing record not loaded yet, retrieving from storage'),r.next=3,t().awrap(this.mediatorService.findMediatorRoutingRecord(this.agentContext));case 3:if(r.sent){r.next=8;break}return this.agentContext.config.logger.debug('Mediator routing record does not exist yet, creating routing keys and record'),r.next=8,t().awrap(this.mediatorService.createMediatorRoutingRecord(this.agentContext));case 8:case"end":return r.stop()}},null,this,null,Promise)}},{key:"grantRequestedMediation",value:function(r){var n,o,i,c,s,u;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,t().awrap(this.mediatorService.getById(this.agentContext,r));case 2:return n=h.sent,h.next=5,t().awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 5:return o=h.sent,h.next=8,t().awrap(this.mediatorService.createGrantMediationMessage(this.agentContext,n));case 8:return i=h.sent,c=i.message,s=i.mediationRecord,u=new(_r(_d[2]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:o,associatedRecord:s}),h.next=14,t().awrap(this.messageSender.sendMessage(u));case 14:return h.abrupt("return",s);case 15:case"end":return h.stop()}},null,this,null,Promise)}},{key:"queueMessage",value:function(t,r){return this.messagePickupService.queueMessage(t,r)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d[3]).KeylistUpdateHandler)(this.mediatorService)),t.registerMessageHandler(new(_r(_d[3]).ForwardHandler)(this.mediatorService,this.connectionService,this.messageSender)),t.registerMessageHandler(new(_r(_d[4]).BatchPickupHandler)(this.messagePickupService)),t.registerMessageHandler(new(_r(_d[4]).BatchHandler)(this.eventEmitter)),t.registerMessageHandler(new(_r(_d[5]).MediationRequestHandler)(this.mediatorService,this.config))}}]),r})();o=r([(0,_r(_d[6]).injectable)(),n("design:paramtypes",[_r(_d[7]).Dispatcher,_r(_d[8]).MediatorService,_r(_d[9]).MessagePickupService,_r(_d[9]).V2MessagePickupService,_r(_d[10]).MessageSender,_r(_d[11]).EventEmitter,_r(_d[12]).AgentContext,_r(_d[13]).ConnectionService,_r(_d[14]).MediatorModuleConfig])],o),e.MediatorApi=o},1575,[7,8,622,1576,1564,1582,1019,1493,1553,1557,1344,1104,1390,1465,1583]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1576,[1577,1578,1579,1580,1581,1582]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new N(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(M([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function F(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function M(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.ForwardHandler=void 0;var n=(function(){function n(t,o,i){r(d[0])(this,n),this.supportedMessages=[r(d[1]).ForwardMessage],this.mediatorService=t,this.connectionService=o,this.messageSender=i}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t().awrap(this.mediatorService.processForwardMessage(n));case 2:return o=s.sent,i=o.encryptedMessage,c=o.mediationRecord,s.next=7,t().awrap(this.connectionService.getById(n.agentContext,c.connectionId));case 7:return u=s.sent,s.next=10,t().awrap(this.messageSender.sendPackage(n.agentContext,{connection:u,encryptedMessage:i}));case 10:case"end":return s.stop()}},null,this,null,Promise)}}]),n})();e.ForwardHandler=n},1577,[7,1336,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new F(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return C()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.KeylistUpdateHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).KeylistUpdateMessage],this.mediatorService=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=n.assertReadyConnection(),c.next=3,t().awrap(this.mediatorService.processKeylistUpdateRequest(n));case 3:return i=c.sent,c.abrupt("return",new(r(d[3]).OutboundMessageContext)(i,{agentContext:n.agentContext,connection:o}));case 5:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.KeylistUpdateHandler=n},1578,[7,1336,8,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new R(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.KeylistUpdateResponseHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).KeylistUpdateResponseMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.assertReadyConnection(),o.next=3,t().awrap(this.mediationRecipientService.processKeylistUpdateResults(n));case 3:return o.abrupt("return",o.sent);case 4:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.KeylistUpdateResponseHandler=n},1579,[7,1336,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new M(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.MediationDenyHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MediationDenyMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.assertReadyConnection(),o.next=3,t().awrap(this.mediationRecipientService.processMediationDeny(n));case 3:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.MediationDenyHandler=n},1580,[7,1336,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new M(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function G(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.MediationGrantHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MediationGrantMessage],this.mediationRecipientService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.assertReadyConnection(),o.next=3,t().awrap(this.mediationRecipientService.processMediationGrant(n));case 3:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.MediationGrantHandler=n},1581,[7,1336,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new N(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(C([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function M(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function C(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;P(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:C(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.MediationRequestHandler=void 0;var n=(function(){function n(t,o){r(d[0])(this,n),this.supportedMessages=[r(d[1]).MediationRequestMessage],this.mediatorService=t,this.mediatorModuleConfig=o}return r(d[2])(n,[{key:"handle",value:function(n){var o,i,c,u;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return o=n.assertReadyConnection(),s.next=3,t().awrap(this.mediatorService.processMediationRequest(n));case 3:if(i=s.sent,!this.mediatorModuleConfig.autoAcceptMediationRequests){s.next=10;break}return s.next=7,t().awrap(this.mediatorService.createGrantMediationMessage(n.agentContext,i));case 7:return c=s.sent,u=c.message,s.abrupt("return",new(r(d[3]).OutboundMessageContext)(u,{agentContext:n.agentContext,connection:o,associatedRecord:i}));case 10:case"end":return s.stop()}},null,this,null,Promise)}}]),n})();e.MediationRequestHandler=n},1582,[7,1342,8,622]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(t,[{key:"autoAcceptMediationRequests",get:function(){var t;return null!==(t=this.options.autoAcceptMediationRequests)&&void 0!==t&&t}}]),t})();e.MediatorModuleConfig=t},1583,[7,8]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){e=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,s=Object.create(o.prototype),c=new E(r||[]);return i(s,"_invoke",{value:P(e,n,c)}),s}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function f(){}function v(){}function y(){}var x={};l(x,s,function(){return this});var w=Object.getPrototypeOf,b=w&&w(w(L([])));b&&b!==n&&r.call(b,s)&&(x=b);var k=y.prototype=f.prototype=Object.create(x);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function M(e,t){function n(i,o,s,c){var u=d(e[i],e,o);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then(function(e){n("next",e,s,c)},function(e){n("throw",e,s,c)}):t.resolve(p).then(function(e){l.value=e,s(l)},function(e){return n("throw",e,s,c)})}c(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,i){n(e,r,t,i)})}return o=o?o.then(i,i):i()}})}function P(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var c=R(s,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function R(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,R(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.RecipientApi=void 0;var i=(function(){function t(e,n,r,i,o,s,c,u,l,p,d,h,f){_r(_d[0])(this,t),this.stopMessagePickup$=new(_r(_d[1]).Subject),this.connectionService=r,this.dids=i,this.mediationRecipientService=n,this.messageSender=o,this.eventEmitter=s,this.logger=p,this.discoverFeaturesApi=c,this.mediationRepository=u,this.routingService=l,this.agentContext=d,this.stop$=h,this.config=f,this.registerMessageHandlers(e)}return _r(_d[2])(t,[{key:"initialize",value:function(){var t,n,r,i,o,s=this;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(t=this.agentContext.config,n=t.defaultMediatorId,r=t.clearDefaultMediator,!n){c.next=9;break}return c.next=4,e().awrap(this.mediationRecipientService.getById(this.agentContext,n));case 4:return i=c.sent,c.next=7,e().awrap(this.mediationRecipientService.setDefaultMediator(this.agentContext,i));case 7:c.next=12;break;case 9:if(!r){c.next=12;break}return c.next=12,e().awrap(this.mediationRecipientService.clearDefaultMediator(this.agentContext));case 12:return c.next=14,e().awrap(this.findDefaultMediator());case 14:(o=c.sent)&&this.initiateMessagePickup(o).catch(function(e){s.logger.warn("Error initiating message pickup with mediator "+o.id,{error:e})});case 16:case"end":return c.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(t,n){var r,i;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=null!==n&&void 0!==n?n:this.config.mediatorPickupStrategy,i=r===_r(_d[3]).MediatorPickupStrategy.Implicit?{schemes:['wss','ws'],restrictive:!0}:void 0,o.next=4,e().awrap(this.messageSender.sendMessage(t,{transportPriority:i}));case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"openMediationWebSocket",value:function(t){var n,r,i,o,s,c,u;return e().async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,e().awrap(this.connectionService.getById(this.agentContext,t.connectionId));case 2:return n=l.sent,l.next=5,e().awrap(this.connectionService.createTrustPing(this.agentContext,n,{responseRequested:!1}));case 5:if(r=l.sent,i=r.message,o=r.connectionRecord,s=['ws','wss'],l.t0=o.theirDid,!l.t0){l.next=14;break}return l.next=13,e().awrap(this.dids.resolveDidDocument(o.theirDid));case 13:l.t0=l.sent;case 14:if(c=l.t0,u=c&&(null===c||void 0===c?void 0:c.didCommServices),u&&u.some(function(e){return s.includes(e.protocolScheme)})){l.next=19;break}throw new(_r(_d[4]).AriesFrameworkError)('Cannot open websocket to connection without websocket service endpoint');case 19:return l.next=21,e().awrap(this.messageSender.sendMessage(new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:o}),{transportPriority:{schemes:s,restrictive:!0}}));case 21:case"end":return l.stop()}},null,this,null,Promise)}},{key:"openWebSocketAndPickUp",value:function(t,n){var r,i,o,s,c,u=this;return e().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=this.config,i=r.baseMediatorReconnectionIntervalMs,o=r.maximumMediatorReconnectionIntervalMs,s=i,c=(0,_r(_d[1]).merge)(this.stop$,this.stopMessagePickup$).pipe(),this.eventEmitter.observable(_r(_d[6]).TransportEventTypes.OutboundWebSocketOpenedEvent).pipe((0,_r(_d[7]).takeUntil)(c),(0,_r(_d[7]).filter)(function(e){return e.payload.connectionId===t.connectionId})).subscribe(function(){s=i}),this.eventEmitter.observable(_r(_d[6]).TransportEventTypes.OutboundWebSocketClosedEvent).pipe((0,_r(_d[7]).takeUntil)(c),(0,_r(_d[7]).filter)(function(e){return e.payload.connectionId===t.connectionId}),(0,_r(_d[7]).throttleTime)(s),(0,_r(_d[7]).delayWhen)(function(){return(0,_r(_d[1]).timer)(s)}),(0,_r(_d[7]).tap)(function(){s=Math.min(2*s,o)})).subscribe({next:function(){return e().async(function(r){for(;;)switch(r.prev=r.next){case 0:if(u.logger.debug("Websocket connection to mediator with connectionId '"+t.connectionId+"' is closed, attempting to reconnect..."),r.prev=1,n!==_r(_d[3]).MediatorPickupStrategy.PickUpV2){r.next=7;break}return r.next=5,e().awrap(u.sendStatusRequest({mediatorId:t.id}));case 5:r.next=9;break;case 7:return r.next=9,e().awrap(u.openMediationWebSocket(t));case 9:r.next=14;break;case 11:r.prev=11,r.t0=r.catch(1),u.logger.warn('Unable to re-open websocket connection to mediator',{error:r.t0});case 14:case"end":return r.stop()}},null,null,[[1,11]],Promise)},complete:function(){return u.logger.info("Stopping pickup of messages from mediator '"+t.id+"'")}}),l.prev=5,n!==_r(_d[3]).MediatorPickupStrategy.Implicit){l.next=9;break}return l.next=9,e().awrap(this.openMediationWebSocket(t));case 9:l.next=14;break;case 11:l.prev=11,l.t0=l.catch(5),this.logger.warn('Unable to open websocket connection to mediator',{error:l.t0});case 14:case"end":return l.stop()}},null,this,[[5,11]],Promise)}},{key:"initiateMessagePickup",value:function(t,n){var r,i,o,s,c,u,l=this;return e().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(r=this.config.mediatorPollingInterval,null===t||void 0===t){p.next=5;break}p.t0=t,p.next=8;break;case 5:return p.next=7,e().awrap(this.findDefaultMediator());case 7:p.t0=p.sent;case 8:if(i=p.t0){p.next=11;break}throw new(_r(_d[4]).AriesFrameworkError)('There is no mediator to pickup messages from');case 11:if(null===n||void 0===n){p.next=15;break}p.t1=n,p.next=18;break;case 15:return p.next=17,e().awrap(this.getPickupStrategyForMediator(i));case 17:p.t1=p.sent;case 18:return o=p.t1,p.next=21,e().awrap(this.connectionService.getById(this.agentContext,i.connectionId));case 21:s=p.sent,p.t2=o,p.next=p.t2===_r(_d[3]).MediatorPickupStrategy.PickUpV2?25:p.t2===_r(_d[3]).MediatorPickupStrategy.PickUpV1?31:p.t2===_r(_d[3]).MediatorPickupStrategy.Implicit?35:39;break;case 25:return this.logger.info("Starting pickup of messages from mediator '"+i.id+"'"),p.next=28,e().awrap(this.openWebSocketAndPickUp(i,o));case 28:return p.next=30,e().awrap(this.sendStatusRequest({mediatorId:i.id}));case 30:return p.abrupt("break",40);case 31:return c=(0,_r(_d[1]).merge)(this.stop$,this.stopMessagePickup$).pipe(),this.logger.info("Starting explicit (batch) pickup of messages from mediator '"+i.id+"'"),u=(0,_r(_d[1]).interval)(r).pipe((0,_r(_d[7]).takeUntil)(c)).subscribe({next:function(){return e().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e().awrap(l.pickupMessages(s));case 2:case"end":return t.stop()}},null,null,null,Promise)},complete:function(){return l.logger.info("Stopping pickup of messages from mediator '"+i.id+"'")}}),p.abrupt("return",u);case 35:return this.logger.info("Starting implicit pickup of messages from mediator '"+i.id+"'"),p.next=38,e().awrap(this.openWebSocketAndPickUp(i,o));case 38:return p.abrupt("break",40);case 39:this.logger.info("Skipping pickup of messages from mediator '"+i.id+"' due to pickup strategy none");case 40:case"end":return p.stop()}},null,this,null,Promise)}},{key:"stopMessagePickup",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:this.stopMessagePickup$.next(!0);case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"sendStatusRequest",value:function(t){var n,r,i;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e().awrap(this.mediationRecipientService.getById(this.agentContext,t.mediatorId));case 2:return n=o.sent,o.next=5,e().awrap(this.mediationRecipientService.createStatusRequest(n,{recipientKey:t.recipientKey}));case 5:return r=o.sent,o.next=8,e().awrap(this.connectionService.getById(this.agentContext,n.connectionId));case 8:return i=o.sent,o.abrupt("return",this.messageSender.sendMessage(new(_r(_d[5]).OutboundMessageContext)(r,{agentContext:this.agentContext,connection:i})));case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getPickupStrategyForMediator",value:function(t){var n,r,i,o,s,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=null!==(n=t.pickupStrategy)&&void 0!==n?n:this.config.mediatorPickupStrategy){u.next=16;break}return u.next=4,e().awrap(this.discoverFeaturesApi.queryFeatures({connectionId:t.connectionId,protocolVersion:'v1',queries:[{featureType:'protocol',match:_r(_d[8]).StatusMessage.type.protocolUri}],awaitDisclosures:!0}));case 4:if(s=u.sent,!(null===(r=s.features)||void 0===r?void 0:r.find(function(e){return e.id===_r(_d[8]).StatusMessage.type.protocolUri}))){u.next=9;break}o=_r(_d[3]).MediatorPickupStrategy.PickUpV2,u.next=13;break;case 9:return u.next=11,e().awrap(this.discoverFeaturesApi.queryFeatures({connectionId:t.connectionId,protocolVersion:'v1',queries:[{featureType:'protocol',match:_r(_d[8]).BatchPickupMessage.type.protocolUri}],awaitDisclosures:!0}));case 11:c=u.sent,o=(null===(i=c.features)||void 0===i?void 0:i.find(function(e){return e.id===_r(_d[8]).BatchPickupMessage.type.protocolUri}))?_r(_d[3]).MediatorPickupStrategy.PickUpV1:_r(_d[3]).MediatorPickupStrategy.Implicit;case 13:return t.pickupStrategy=o,u.next=16,e().awrap(this.mediationRepository.update(this.agentContext,t));case 16:return u.abrupt("return",o);case 17:case"end":return u.stop()}},null,this,null,Promise)}},{key:"discoverMediation",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mediationRecipientService.discoverMediation(this.agentContext));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"pickupMessages",value:function(t,n){var r,i;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return t.assertReady(),r=n===_r(_d[3]).MediatorPickupStrategy.PickUpV2?new(_r(_d[8]).StatusRequestMessage)({}):new(_r(_d[8]).BatchPickupMessage)({batchSize:10}),i=new(_r(_d[5]).OutboundMessageContext)(r,{agentContext:this.agentContext,connection:t}),o.next=5,e().awrap(this.sendMessage(i,n));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"setDefaultMediator",value:function(t){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mediationRecipientService.setDefaultMediator(this.agentContext,t));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"requestMediation",value:function(t){var n,r,i,o;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,e().awrap(this.mediationRecipientService.createRequest(this.agentContext,t));case 2:return n=s.sent,r=n.mediationRecord,i=n.message,o=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:t}),s.next=8,e().awrap(this.sendMessage(o));case 8:return s.abrupt("return",r);case 9:case"end":return s.stop()}},null,this,null,Promise)}},{key:"notifyKeylistUpdate",value:function(t,n,r){var i,o,s,c,u;return e().async(function(l){for(;;)switch(l.prev=l.next){case 0:return o=this.agentContext.config.useDidKeyInProtocols,(s=t.metadata.get(_r(_d[9]).ConnectionMetadataKeys.UseDidKeysForProtocol))&&(o=null!==(i=s[_r(_d[10]).KeylistUpdateMessage.type.protocolUri])&&void 0!==i?i:o),c=this.mediationRecipientService.createKeylistUpdateMessage([new(_r(_d[10]).KeylistUpdate)({action:null!==r&&void 0!==r?r:_r(_d[10]).KeylistUpdateAction.add,recipientKey:o?(0,_r(_d[11]).verkeyToDidKey)(n):n})]),u=new(_r(_d[5]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:t}),l.next=7,e().awrap(this.sendMessage(u));case 7:case"end":return l.stop()}},null,this,null,Promise)}},{key:"findByConnectionId",value:function(t){return e().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e().awrap(this.mediationRecipientService.findByConnectionId(this.agentContext,t));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getMediators",value:function(){return e().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e().awrap(this.mediationRecipientService.getMediators(this.agentContext));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findDefaultMediator",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mediationRecipientService.findDefaultMediator(this.agentContext));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"findDefaultMediatorConnection",value:function(){var t;return e().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e().awrap(this.findDefaultMediator());case 2:if(!(t=n.sent)){n.next=5;break}return n.abrupt("return",this.connectionService.getById(this.agentContext,t.connectionId));case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}},null,this,null,Promise)}},{key:"requestAndAwaitGrant",value:function(t){var n,r,i,o,s,c,u,l,p=arguments;return e().async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:1e4,d.next=3,e().awrap(this.mediationRecipientService.createRequest(this.agentContext,t));case 3:return r=d.sent,i=r.mediationRecord,o=r.message,s=this.eventEmitter.observable(_r(_d[12]).RoutingEventTypes.MediationStateChanged),c=new(_r(_d[1]).ReplaySubject)(1),s.pipe((0,_r(_d[13]).filterContextCorrelationId)(this.agentContext.contextCorrelationId),(0,_r(_d[7]).filter)(function(e){return e.payload.mediationRecord.id===i.id}),(0,_r(_d[7]).filter)(function(e){return e.payload.previousState===_r(_d[14]).MediationState.Requested}),(0,_r(_d[7]).filter)(function(e){return e.payload.mediationRecord.state===_r(_d[14]).MediationState.Granted}),(0,_r(_d[7]).first)(),(0,_r(_d[7]).timeout)(n)).subscribe(c),u=new(_r(_d[5]).OutboundMessageContext)(o,{agentContext:this.agentContext,connection:t,associatedRecord:i}),d.next=12,e().awrap(this.sendMessage(u));case 12:return d.next=14,e().awrap((0,_r(_d[1]).firstValueFrom)(c));case 14:return l=d.sent,d.abrupt("return",l.payload.mediationRecord);case 16:case"end":return d.stop()}},null,this,null,Promise)}},{key:"provision",value:function(t){var n;return e().async(function(r){for(;;)switch(r.prev=r.next){case 0:return this.logger.debug('Connection completed, requesting mediation'),r.next=3,e().awrap(this.findByConnectionId(t.id));case 3:if(n=r.sent){r.next=15;break}return this.logger.info("Requesting mediation for connection "+t.id),r.next=8,e().awrap(this.requestAndAwaitGrant(t,6e4));case 8:return n=r.sent,this.logger.debug('Mediation granted, setting as default mediator'),r.next=12,e().awrap(this.setDefaultMediator(n));case 12:this.logger.debug('Default mediator set'),r.next=16;break;case 15:this.logger.debug("Mediator invitation has already been "+(n.isReady?'granted':'requested'));case 16:return r.abrupt("return",n);case 17:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getRouting",value:function(t){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.routingService.getRouting(this.agentContext,t));case 1:case"end":return e.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[15]).KeylistUpdateResponseHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[16]).MediationGrantHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[17]).MediationDenyHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[18]).StatusHandler)(this.mediationRecipientService)),e.registerMessageHandler(new(_r(_d[18]).MessageDeliveryHandler)(this.mediationRecipientService))}}]),t})();i=t([(0,_r(_d[19]).injectable)(),r(9,(0,_r(_d[19]).inject)(_r(_d[20]).InjectionSymbols.Logger)),r(11,(0,_r(_d[19]).inject)(_r(_d[20]).InjectionSymbols.Stop$)),n("design:paramtypes",[_r(_d[21]).Dispatcher,_r(_d[22]).MediationRecipientService,_r(_d[23]).ConnectionService,_r(_d[24]).DidsApi,_r(_d[25]).MessageSender,_r(_d[26]).EventEmitter,_r(_d[27]).DiscoverFeaturesApi,_r(_d[28]).MediationRepository,_r(_d[29]).RoutingService,Object,_r(_d[30]).AgentContext,_r(_d[1]).Subject,_r(_d[31]).RecipientModuleConfig])],i),_e.RecipientApi=i},1584,[7,1105,8,1520,611,622,1585,1328,1557,1521,1336,985,1508,1345,1512,1579,1581,1580,1569,1019,1103,1493,1509,1465,1419,1344,1104,1592,1554,1507,1390,1525]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1585,[1586,1587,1588,1590,1591]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1586,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1587,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1588,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpOutboundTransport=void 0;var t=(function(){function t(){r(d[0])(this,t),this.supportedSchemes=['http','https']}return r(d[1])(t,[{key:"start",value:function(t){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:this.agent=t,this.logger=this.agent.config.logger,this.fetch=this.agent.config.agentDependencies.fetch,this.logger.debug('Starting HTTP outbound transport');case 4:case"end":return s.stop()}},null,this,null,Promise)}},{key:"stop",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:this.logger.debug('Stopping HTTP outbound transport');case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(t){var s,n,o,u,c,p,h;return r(d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(s=t.payload,n=t.endpoint){l.next=3;break}throw new(r(d[3]).AriesFrameworkError)("Missing endpoint. I don't know how and where to send the message.");case 3:return this.logger.debug("Sending outbound message to endpoint '"+t.endpoint+"'",{payload:t.payload}),l.prev=4,o=new(r(d[4]).AbortController),u=setTimeout(function(){return o.abort()},15e3),l.prev=7,l.next=10,r(d[2]).awrap(this.fetch(n,{method:'POST',body:JSON.stringify(s),headers:{'Content-Type':this.agent.config.didCommMimeType},signal:o.signal}));case 10:return c=l.sent,clearTimeout(u),l.next=14,r(d[2]).awrap(c.text());case 14:p=l.sent,l.next=24;break;case 17:if(l.prev=17,l.t0=l.catch(7),'AbortError'!=l.t0.name||!t.responseRequested){l.next=23;break}this.logger.debug('Request was aborted due to timeout. Not throwing error due to return routing on sent message'),l.next=24;break;case 23:throw l.t0;case 24:if(!c||!p){l.next=39;break}if(this.logger.debug("Response received",{responseMessage:p,status:c.status}),l.prev=26,h=r(d[5]).JsonEncoder.fromString(p),(0,r(d[5]).isValidJweStructure)(h)){l.next=31;break}return this.logger.error("Received a response from the other agent but the structure of the incoming message is not a DIDComm message: "+p),l.abrupt("return");case 31:this.agent.events.emit(this.agent.context,{type:r(d[6]).AgentEventTypes.AgentMessageReceived,payload:{message:h}}),l.next=37;break;case 34:l.prev=34,l.t1=l.catch(26),this.logger.debug('Unable to parse response message');case 37:l.next=40;break;case 39:this.logger.debug("No response received.");case 40:l.next=46;break;case 42:throw l.prev=42,l.t2=l.catch(4),this.logger.error("Error sending message to "+n+": "+l.t2.message,{error:l.t2,message:l.t2.message,body:s,didCommMimeType:this.agent.config.didCommMimeType}),new(r(d[3]).AriesFrameworkError)("Error sending message to "+n+": "+l.t2.message,{cause:l.t2});case 46:case"end":return l.stop()}},null,this,[[4,42],[7,17],[26,34]],Promise)}}]),t})();e.HttpOutboundTransport=t},1589,[7,8,82,613,1590,993,1346]); -__d(function(g,r,i,a,m,e,d){"use strict";var o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0,t=o.AbortController,n=o.AbortSignal;m.exports=t,m.exports.AbortSignal=n,m.exports.default=t},1590,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WsOutboundTransport=void 0;var t=(function(){function t(){var n=this;r(d[0])(this,t),this.transportTable=new Map,this.supportedSchemes=['ws','wss'],this.handleMessageEvent=function(t){n.logger.trace('WebSocket message event received.',{url:t.target.url});var o=r(d[1]).JsonEncoder.fromBuffer(t.data);if(!(0,r(d[1]).isValidJweStructure)(o))throw new Error("Received a response from the other agent but the structure of the incoming message is not a DIDComm message: "+o);n.logger.debug('Payload received from mediator:',o),n.agent.events.emit(n.agent.context,{type:r(d[2]).AgentEventTypes.AgentMessageReceived,payload:{message:o}})}}return r(d[3])(t,[{key:"start",value:function(t){return r(d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:this.agent=t,this.logger=t.config.logger,this.logger.debug('Starting WS outbound transport'),this.WebSocketClass=t.config.agentDependencies.WebSocketClass;case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"stop",value:function(){var t=this;return r(d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:this.logger.debug('Stopping WS outbound transport'),this.transportTable.forEach(function(n){n.removeEventListener('message',t.handleMessageEvent),n.close()});case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(t){var n,o,s,c,u;return r(d[4]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(n=t.payload,o=t.endpoint,s=t.connectionId,this.logger.debug("Sending outbound message to endpoint '"+o+"' over WebSocket transport.",{payload:n}),o){l.next=4;break}throw new(r(d[5]).AriesFrameworkError)("Missing connection or endpoint. I don't know how and where to send the message.");case 4:return c=this.hasOpenSocket(o),l.next=7,r(d[4]).awrap(this.resolveSocket({socketId:o,endpoint:o,connectionId:s}));case 7:(u=l.sent).send(r(d[6]).Buffer.from(JSON.stringify(n))),c&&!t.responseRequested&&u.close();case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"hasOpenSocket",value:function(t){return void 0!==this.transportTable.get(t)}},{key:"resolveSocket",value:function(t){var n,o,s,c;return r(d[4]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.socketId,o=t.endpoint,s=t.connectionId,c=this.transportTable.get(n)){u.next=10;break}if(o){u.next=5;break}throw new(r(d[5]).AriesFrameworkError)("Missing endpoint. I don't know how and where to send the message.");case 5:return u.next=7,r(d[4]).awrap(this.createSocketConnection({endpoint:o,socketId:n,connectionId:s}));case 7:c=u.sent,this.transportTable.set(n,c),this.listenOnWebSocketMessages(c);case 10:if(c.readyState===this.WebSocketClass.OPEN){u.next=12;break}throw new(r(d[5]).AriesFrameworkError)('Socket is not open.');case 12:return u.abrupt("return",c);case 13:case"end":return u.stop()}},null,this,null,Promise)}},{key:"listenOnWebSocketMessages",value:function(t){t.addEventListener('message',this.handleMessageEvent)}},{key:"createSocketConnection",value:function(t){var n=this,o=t.socketId,s=t.endpoint,c=t.connectionId;return new Promise(function(t,u){n.logger.debug("Connecting to WebSocket "+s);var l=new n.WebSocketClass(s);l.onopen=function(){n.logger.debug("Successfully connected to WebSocket "+s),t(l),n.agent.events.emit(n.agent.context,{type:r(d[7]).TransportEventTypes.OutboundWebSocketOpenedEvent,payload:{socketId:o,connectionId:c}})},l.onerror=function(t){n.logger.debug("Error while connecting to WebSocket "+s,{error:t}),u(t)},l.onclose=function(){return r(d[4]).async(function(t){for(;;)switch(t.prev=t.next){case 0:n.logger.debug("WebSocket closing to "+s),l.removeEventListener('message',n.handleMessageEvent),n.transportTable.delete(o),n.agent.events.emit(n.agent.context,{type:r(d[7]).TransportEventTypes.OutboundWebSocketClosedEvent,payload:{socketId:o,connectionId:c}});case 4:case"end":return t.stop()}},null,null,null,Promise)}})}}]),t})();e.WsOutboundTransport=t},1591,[7,993,1346,8,82,613,981,1592]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransportEventTypes=void 0,(function(t){t.OutboundWebSocketClosedEvent="OutboundWebSocketClosedEvent",t.OutboundWebSocketOpenedEvent="OutboundWebSocketOpenedEvent"})(e.TransportEventTypes||(e.TransportEventTypes={}))},1592,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1593,[1594,1595,1616,1596]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";var e=this&&this.__decorate||function(e,t,n,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},t=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DiscoverFeaturesApi=void 0;var r=(function(){function e(t,n,r,s,i,o,c,u){_r(_d[0])(this,e),this.connectionService=t,this.messageSender=n,this.eventEmitter=i,this.stop$=o,this.agentContext=c,this.config=u,this.serviceMap=[r,s].reduce(function(e,t){return _r(_d[1])(_r(_d[1])({},e),_r(_d[2])({},t.version,t))},{})}return _r(_d[3])(e,[{key:"getService",value:function(e){if(!this.serviceMap[e])throw new(_r(_d[4]).AriesFrameworkError)("No discover features service registered for protocol version "+e);return this.serviceMap[e]}},{key:"queryFeatures",value:function(e){var t,n,r,s,i,o,c;return _r(_d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=this.getService(e.protocolVersion),u.next=3,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,e.connectionId));case 3:return r=u.sent,u.next=6,_r(_d[5]).awrap(n.createQuery({queries:e.queries,comment:e.comment}));case 6:return s=u.sent,i=s.message,o=new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:r}),c=new(_r(_d[7]).ReplaySubject)(1),e.awaitDisclosures&&this.eventEmitter.observable(_r(_d[8]).DiscoverFeaturesEventTypes.DisclosureReceived).pipe((0,_r(_d[9]).takeUntil)(this.stop$),(0,_r(_d[9]).filter)(function(e){var t;return(null===(t=e.payload.connection)||void 0===t?void 0:t.id)===r.id}),(0,_r(_d[9]).map)(function(e){return e.payload.disclosures}),(0,_r(_d[9]).timeout)(null!==(t=e.awaitDisclosuresTimeoutMs)&&void 0!==t?t:7e3),(0,_r(_d[9]).catchError)(function(){return(0,_r(_d[7]).of)([])})).subscribe(c),u.next=13,_r(_d[5]).awrap(this.messageSender.sendMessage(o));case 13:if(!e.awaitDisclosures){u.next=19;break}return u.next=16,_r(_d[5]).awrap((0,_r(_d[7]).firstValueFrom)(c));case 16:u.t0=u.sent,u.next=20;break;case 19:u.t0=void 0;case 20:return u.t1=u.t0,u.abrupt("return",{features:u.t1});case 22:case"end":return u.stop()}},null,this,null,Promise)}},{key:"discloseFeatures",value:function(e){var t,n,r,s,i;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=this.getService(e.protocolVersion),o.next=3,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,e.connectionId));case 3:return n=o.sent,o.next=6,_r(_d[5]).awrap(t.createDisclosure({disclosureQueries:e.disclosureQueries,threadId:e.threadId}));case 6:return r=o.sent,s=r.message,i=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:n}),o.next=11,_r(_d[5]).awrap(this.messageSender.sendMessage(i));case 11:case"end":return o.stop()}},null,this,null,Promise)}}]),e})();r=e([(0,_r(_d[10]).injectable)(),n(5,(0,_r(_d[10]).inject)(_r(_d[11]).InjectionSymbols.Stop$)),t("design:paramtypes",[_r(_d[12]).ConnectionService,_r(_d[13]).MessageSender,_r(_d[14]).V1DiscoverFeaturesService,_r(_d[14]).V2DiscoverFeaturesService,_r(_d[15]).EventEmitter,_r(_d[7]).Subject,_r(_d[16]).AgentContext,_r(_d[17]).DiscoverFeaturesModuleConfig])],r),_e.DiscoverFeaturesApi=r},1594,[7,4,249,8,612,82,623,1106,1595,1329,1020,1104,1466,1345,1596,1105,1391,1607]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesEventTypes=void 0,(function(s){s.QueryReceived="QueryReceived",s.DisclosureReceived="DisclosureReceived"})(e.DiscoverFeaturesEventTypes||(e.DiscoverFeaturesEventTypes={}))},1595,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1596,[1597,1608]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1597,[1598,1601]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var r=this&&this.__decorate||function(e,r,t,s){var o,n=arguments.length,c=n<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,r,t,s);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(c=(n<3?o(c):n>3?o(r,t,c):o(r,t))||c);return n>3&&c&&Object.defineProperty(r,t,c),c},t=this&&this.__metadata||function(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)},s=this&&this.__param||function(e,r){return function(t,s){r(t,s,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1DiscoverFeaturesService=void 0;var o=(function(r){_r(_d[2])(n,r);var t,s,o=(t=n,s=e(),function(){var e,r=_r(_d[0])(t);if(s){var o=_r(_d[0])(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _r(_d[1])(this,e)});function n(e,r,t,s,c){var i;return _r(_d[3])(this,n),(i=o.call(this,e,r,t,s,c)).version='v1',i.registerMessageHandlers(t),i}return _r(_d[4])(n,[{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[5]).V1DiscloseMessageHandler)(this)),e.registerMessageHandler(new(_r(_d[5]).V1QueryMessageHandler)(this))}},{key:"createQuery",value:function(e){var r;return _r(_d[6]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.queries.length>1)){t.next=2;break}throw new(_r(_d[7]).AriesFrameworkError)('Discover Features V1 only supports a single query');case 2:if('protocol'===e.queries[0].featureType){t.next=4;break}throw new(_r(_d[7]).AriesFrameworkError)('Discover Features V1 only supports querying for protocol support');case 4:return r=new(_r(_d[8]).V1QueryMessage)({query:e.queries[0].match,comment:e.comment}),t.abrupt("return",{message:r});case 6:case"end":return t.stop()}},null,null,null,Promise)}},{key:"processQuery",value:function(e){var r,t,s,o;return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.message,t=r.query,s=r.threadId,o=e.assertReadyConnection(),this.eventEmitter.emit(e.agentContext,{type:_r(_d[9]).DiscoverFeaturesEventTypes.QueryReceived,payload:{message:e.message,connection:o,queries:[{featureType:'protocol',match:t}],protocolVersion:this.version,threadId:s}}),!this.discoverFeaturesModuleConfig.autoAcceptQueries){n.next=7;break}return n.next=6,_r(_d[6]).awrap(this.createDisclosure({threadId:s,disclosureQueries:[{featureType:'protocol',match:t}]}));case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createDisclosure",value:function(e){var r,t,s;return _r(_d[6]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(!e.disclosureQueries.some(function(e){return'protocol'!==e.featureType})){o.next=2;break}throw new(_r(_d[7]).AriesFrameworkError)('Discover Features V1 only supports protocols');case 2:if(e.threadId){o.next=4;break}throw new(_r(_d[7]).AriesFrameworkError)('Thread Id is required for Discover Features V1 disclosure');case 4:return t=(r=this.featureRegistry).query.apply(r,_r(_d[10])(e.disclosureQueries)),s=new(_r(_d[8]).V1DiscloseMessage)({threadId:e.threadId,protocols:t.map(function(e){return new(_r(_d[8]).DiscloseProtocol)({protocolId:e.id,roles:e.roles})})}),o.abrupt("return",{message:s});case 7:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processDisclosure",value:function(e){var r,t,s,o;return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:r=e.message,t=r.protocols,s=r.threadId,o=e.assertReadyConnection(),this.eventEmitter.emit(e.agentContext,{type:_r(_d[9]).DiscoverFeaturesEventTypes.DisclosureReceived,payload:{message:e.message,connection:o,disclosures:t.map(function(e){return new(_r(_d[11]).Protocol)({id:e.protocolId,roles:e.roles})}),protocolVersion:this.version,threadId:s}});case 3:case"end":return n.stop()}},null,this,null,Promise)}}]),n})(_r(_d[12]).DiscoverFeaturesService);o=r([(0,_r(_d[13]).injectable)(),s(3,(0,_r(_d[13]).inject)(_r(_d[14]).InjectionSymbols.Logger)),t("design:paramtypes",[_r(_d[15]).FeatureRegistry,_r(_d[16]).EventEmitter,_r(_d[17]).Dispatcher,Object,_r(_d[18]).DiscoverFeaturesModuleConfig])],o),_e.V1DiscoverFeaturesService=o},1598,[14,11,9,7,8,1599,82,612,1601,1595,42,623,1605,1020,1104,1056,1105,1494,1607]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1599,[1600,1604]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1DiscloseMessageHandler=void 0;var s=(function(){function s(t){r(d[0])(this,s),this.supportedMessages=[r(d[1]).V1DiscloseMessage],this.discoverFeaturesService=t}return r(d[2])(s,[{key:"handle",value:function(s){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[3]).awrap(this.discoverFeaturesService.processDisclosure(s));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),s})();e.V1DiscloseMessageHandler=s},1600,[7,1601,8,82]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1601,[1602,1603]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,r){var n,c=arguments.length,s=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(c<3?n(s):c>3?n(t,o,s):n(t,o))||s);return c>3&&s&&Object.defineProperty(t,o,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1DiscloseMessage=_e.DiscloseProtocol=void 0;var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.protocolId=t.protocolId,this.roles=t.roles)});t([(0,_r(_d[4]).Expose)({name:'pid'}),(0,_r(_d[5]).IsString)(),o("design:type",String)],r.prototype,"protocolId",void 0),t([(0,_r(_d[5]).IsString)({each:!0}),(0,_r(_d[5]).IsOptional)(),o("design:type",Array)],r.prototype,"roles",void 0),_e.DiscloseProtocol=r;var n=(function(t){_r(_d[6])(s,t);var o,n,c=(o=s,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t,o;return _r(_d[3])(this,s),(t=c.call(this)).type=s.type.messageTypeUri,e&&(t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.protocols=e.protocols.map(function(e){return new r(e)}),t.setThread({threadId:e.threadId})),t}return _r(_d[2])(s)})(_r(_d[7]).AgentMessage);n.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/discover-features/1.0/disclose'),t([(0,_r(_d[8]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[5]).IsInstance)(r,{each:!0}),(0,_r(_d[4]).Type)(function(){return r}),o("design:type",Array)],n.prototype,"protocols",void 0),_e.V1DiscloseMessage=n},1602,[14,11,8,7,627,662,9,949,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1QueryMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.query=e.query,t.comment=e.comment),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/discover-features/1.0/query'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"query",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V1QueryMessage=n},1603,[14,11,9,7,8,949,942,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1QueryMessageHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1QueryMessage],this.discoverFeaturesService=n}return r(d[2])(t,[{key:"handle",value:function(t){var n,s;return r(d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=t.assertReadyConnection(),u.next=3,r(d[3]).awrap(this.discoverFeaturesService.processQuery(t));case 3:if(!(s=u.sent)){u.next=6;break}return u.abrupt("return",new(r(d[4]).OutboundMessageContext)(s.message,{agentContext:t.agentContext,connection:n}));case 6:case"end":return u.stop()}},null,this,null,Promise)}}]),t})();e.V1QueryMessageHandler=t},1604,[7,1601,8,82,623]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1605,[1606]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesService=void 0;var t=r(d[0])(function t(s,o,c,u,v){r(d[1])(this,t),this.featureRegistry=s,this.eventEmitter=o,this.dispatcher=c,this.logger=u,this.discoverFeaturesModuleConfig=v});e.DiscoverFeaturesService=t},1606,[8,7]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(t,[{key:"autoAcceptQueries",get:function(){var t;return null===(t=this.options.autoAcceptQueries)||void 0===t||t}}]),t})();e.DiscoverFeaturesModuleConfig=t},1607,[7,8]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1608,[1609,1612]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,s){var n,i=arguments.length,c=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(c=(i<3?n(c):i>3?n(t,r,c):n(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,s){t(r,s,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2DiscoverFeaturesService=void 0;var n=(function(t){_r(_d[2])(i,t);var r,s,n=(r=i,s=e(),function(){var e,t=_r(_d[0])(r);if(s){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e,t,r,s,c){var o;return _r(_d[3])(this,i),(o=n.call(this,e,t,r,s,c)).version='v2',o.registerMessageHandlers(r),o}return _r(_d[4])(i,[{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[5]).V2DisclosuresMessageHandler)(this)),e.registerMessageHandler(new(_r(_d[5]).V2QueriesMessageHandler)(this))}},{key:"createQuery",value:function(e){var t;return _r(_d[6]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return t=new(_r(_d[7]).V2QueriesMessage)({queries:e.queries}),r.abrupt("return",{message:t});case 2:case"end":return r.stop()}},null,null,null,Promise)}},{key:"processQuery",value:function(e){var t,r,s,n;return _r(_d[6]).async(function(i){for(;;)switch(i.prev=i.next){case 0:if(t=e.message,r=t.queries,s=t.threadId,n=e.assertReadyConnection(),this.eventEmitter.emit(e.agentContext,{type:_r(_d[8]).DiscoverFeaturesEventTypes.QueryReceived,payload:{message:e.message,connection:n,queries:r,protocolVersion:this.version,threadId:s}}),!this.discoverFeaturesModuleConfig.autoAcceptQueries){i.next=7;break}return i.next=6,_r(_d[6]).awrap(this.createDisclosure({threadId:s,disclosureQueries:r}));case 6:return i.abrupt("return",i.sent);case 7:case"end":return i.stop()}},null,this,null,Promise)}},{key:"createDisclosure",value:function(e){var t,r,s;return _r(_d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(t=this.featureRegistry).query.apply(t,_r(_d[9])(e.disclosureQueries)),s=new(_r(_d[7]).V2DisclosuresMessage)({threadId:e.threadId,features:r}),n.abrupt("return",{message:s});case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"processDisclosure",value:function(e){var t,r,s,n;return _r(_d[6]).async(function(i){for(;;)switch(i.prev=i.next){case 0:t=e.message,r=t.disclosures,s=t.threadId,n=e.assertReadyConnection(),this.eventEmitter.emit(e.agentContext,{type:_r(_d[8]).DiscoverFeaturesEventTypes.DisclosureReceived,payload:{message:e.message,connection:n,disclosures:r,protocolVersion:this.version,threadId:s}});case 3:case"end":return i.stop()}},null,this,null,Promise)}}]),i})(_r(_d[10]).DiscoverFeaturesService);n=t([(0,_r(_d[11]).injectable)(),s(3,(0,_r(_d[11]).inject)(_r(_d[12]).InjectionSymbols.Logger)),r("design:paramtypes",[_r(_d[13]).FeatureRegistry,_r(_d[14]).EventEmitter,_r(_d[15]).Dispatcher,Object,_r(_d[16]).DiscoverFeaturesModuleConfig])],n),_e.V2DiscoverFeaturesService=n},1609,[14,11,9,7,8,1610,82,1612,1595,42,1605,1020,1104,1056,1105,1494,1607]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1610,[1611,1615]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2DisclosuresMessageHandler=void 0;var s=(function(){function s(t){r(d[0])(this,s),this.supportedMessages=[r(d[1]).V2DisclosuresMessage],this.discoverFeaturesService=t}return r(d[2])(s,[{key:"handle",value:function(s){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[3]).awrap(this.discoverFeaturesService.processDisclosure(s));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),s})();e.V2DisclosuresMessageHandler=s},1611,[7,1612,8,82]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1612,[1613,1614]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var s,n=arguments.length,c=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(s=e[i])&&(c=(n<3?s(c):n>3?s(t,r,c):s(t,r))||c);return n>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2DisclosuresMessage=void 0;var o=(function(t){_r(_d[2])(n,t);var r,o,s=(r=n,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t,r,o;return _r(_d[3])(this,n),(t=s.call(this)).type=n.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.disclosures=null!==(o=e.features)&&void 0!==o?o:[],e.threadId&&t.setThread({threadId:e.threadId})),t}return _r(_d[4])(n)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/discover-features/2.0/disclosures'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).IsInstance)(_r(_d[8]).Feature,{each:!0}),(0,_r(_d[9]).Type)(function(){return _r(_d[8]).Feature}),r("design:type",Array)],o.prototype,"disclosures",void 0),_e.V2DisclosuresMessage=o},1613,[14,11,9,7,8,949,942,662,623,627]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2QueriesMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.queries=e.queries.map(function(e){return new(_r(_d[4]).FeatureQuery)(e)})),t}return _r(_d[5])(c)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/discover-features/2.0/queries'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsInstance)(_r(_d[4]).FeatureQuery,{each:!0}),(0,_r(_d[9]).Type)(function(){return _r(_d[4]).FeatureQuery}),(0,_r(_d[8]).ArrayNotEmpty)(),r("design:type",Array)],n.prototype,"queries",void 0),_e.V2QueriesMessage=n},1614,[14,11,9,7,623,8,949,942,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2QueriesMessageHandler=void 0;var s=(function(){function s(t){r(d[0])(this,s),this.supportedMessages=[r(d[1]).V2QueriesMessage],this.discoverFeaturesService=t}return r(d[2])(s,[{key:"handle",value:function(s){var t,n;return r(d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=s.assertReadyConnection(),u.next=3,r(d[3]).awrap(this.discoverFeaturesService.processQuery(s));case 3:if(!(n=u.sent)){u.next=6;break}return u.abrupt("return",new(r(d[4]).OutboundMessageContext)(n.message,{agentContext:s.agentContext,connection:t}));case 6:case"end":return u.stop()}},null,this,null,Promise)}}]),s})();e.V2QueriesMessageHandler=s},1615,[7,1612,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesModule=void 0;var o=(function(){function o(s){r(d[0])(this,o),this.api=r(d[1]).DiscoverFeaturesApi,this.config=new(r(d[2]).DiscoverFeaturesModuleConfig)(s)}return r(d[3])(o,[{key:"register",value:function(o,s){o.registerContextScoped(r(d[1]).DiscoverFeaturesApi),o.registerInstance(r(d[2]).DiscoverFeaturesModuleConfig,this.config),o.registerSingleton(r(d[4]).V1DiscoverFeaturesService),o.registerSingleton(r(d[5]).V2DiscoverFeaturesService),s.register(new(r(d[6]).Protocol)({id:'https://didcomm.org/discover-features/1.0',roles:['requester','responder']}),new(r(d[6]).Protocol)({id:'https://didcomm.org/discover-features/2.0',roles:['requester','responder']}))}}]),o})();e.DiscoverFeaturesModule=o},1616,[7,1594,1607,8,1597,1608,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorModule=void 0;var o=(function(){function o(t){r(d[0])(this,o),this.api=r(d[1]).MediatorApi,this.config=new(r(d[2]).MediatorModuleConfig)(t)}return r(d[3])(o,[{key:"register",value:function(o,t){o.registerContextScoped(r(d[1]).MediatorApi),o.registerInstance(r(d[2]).MediatorModuleConfig,this.config),o.registerSingleton(r(d[4]).MediatorService),o.registerSingleton(r(d[5]).MessagePickupService),o.registerSingleton(r(d[5]).V2MessagePickupService),o.registerSingleton(r(d[6]).MediationRepository),o.registerSingleton(r(d[6]).MediatorRoutingRepository),t.register(new(r(d[7]).Protocol)({id:'https://didcomm.org/coordinate-mediation/1.0',roles:[r(d[8]).MediationRole.Mediator]}),new(r(d[7]).Protocol)({id:'https://didcomm.org/messagepickup/1.0',roles:['message_holder','recipient','batch_sender','batch_recipient']}),new(r(d[7]).Protocol)({id:'https://didcomm.org/messagepickup/2.0',roles:['mediator','recipient']}))}}]),o})();e.MediatorModule=o},1617,[7,1576,1584,8,1553,1558,1555,623,1511]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecipientModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.api=r(d[1]).RecipientApi,this.config=new(r(d[2]).RecipientModuleConfig)(n)}return r(d[3])(t,[{key:"register",value:function(t,n){t.registerContextScoped(r(d[1]).RecipientApi),t.registerInstance(r(d[2]).RecipientModuleConfig,this.config),t.registerSingleton(r(d[4]).MediationRecipientService),t.registerSingleton(r(d[4]).RoutingService),t.registerSingleton(r(d[5]).MediationRepository),n.register(new(r(d[6]).Protocol)({id:'https://didcomm.org/coordinate-mediation/1.0',roles:[r(d[7]).MediationRole.Recipient]}))}}]),t})();e.RecipientModule=t},1618,[7,1585,1526,8,1553,1555,623,1511]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,o){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||o&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o0))throw new Error('Missing required serviceEndpoint, routingKeys and/or did fields in connection invitation');c=new(r(d[0]).OutOfBandDidCommService)({id:'#inline',recipientKeys:null===(t=n.recipientKeys)||void 0===t?void 0:t.map(r(d[1]).verkeyToDidKey),routingKeys:null===(o=n.routingKeys)||void 0===o?void 0:o.map(r(d[1]).verkeyToDidKey),serviceEndpoint:n.serviceEndpoint})}var s={id:n.id,label:n.label,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments,accept:['didcomm/aip1','didcomm/aip2;env=rfc19'],services:[c],handshakeProtocols:[r(d[2]).HandshakeProtocol.Connections]};return new(r(d[3]).OutOfBandInvitation)(s)},e.convertToOldInvitation=function(n){var t,o,c=n.getServices(),s=r(d[4])(c,1)[0];return o='string'==typeof s?{id:n.id,label:n.label,did:s,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments}:{id:n.id,label:n.label,recipientKeys:s.recipientKeys.map(r(d[1]).didKeyToVerkey),routingKeys:null===(t=s.routingKeys)||void 0===t?void 0:t.map(r(d[1]).didKeyToVerkey),serviceEndpoint:s.serviceEndpoint,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments},new(r(d[2]).ConnectionInvitationMessage)(o)}},1620,[1503,986,1426,1501,31]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_2ToV0_3=void 0,e.updateV0_2ToV0_3=function(n){return r(d[0]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[0]).awrap((0,r(d[1]).migrateProofExchangeRecordToV0_3)(n));case 2:return t.next=4,r(d[0]).awrap((0,r(d[2]).migrateConnectionRecordToV0_3)(n));case 4:case"end":return t.stop()}},null,null,null,Promise)}},1621,[82,1622,1628]); -__d(function(g,r,_i,a,m,e,d){"use strict";var o,t;function n(o,t){var n="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(n)return(n=n.call(o)).next.bind(n);if(Array.isArray(o)||(n=s(o))||t&&o&&"number"==typeof o.length){n&&(o=n);var i=0;return function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(o,t){if(o){if("string"==typeof o)return i(o,t);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(o,t):void 0}}function i(o,t){(null==t||t>o.length)&&(t=o.length);for(var n=0,s=new Array(t);n=0;u--)(o=e[u])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProofRepository=void 0;var o=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e,t){return _r(_d[3])(this,c),o.call(this,_r(_d[4]).ProofExchangeRecord,e,t)}return _r(_d[5])(c,[{key:"getByThreadAndConnectionId",value:function(e,t,n){return _r(_d[6]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.getSingleByQuery(e,{threadId:t,connectionId:n}));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getByParentThreadAndConnectionId",value:function(e,t,n){return _r(_d[6]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.findByQuery(e,{parentThreadId:t,connectionId:n}));case 1:case"end":return r.stop()}},null,this,null,Promise)}}]),c})(_r(_d[7]).Repository);o=t([(0,_r(_d[8]).injectable)(),r(0,(0,_r(_d[8]).inject)(_r(_d[9]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[10]).EventEmitter])],o),_e.ProofRepository=o},1623,[14,11,9,7,1624,8,82,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProofExchangeRecord=void 0;var t=(function(t){r(d[2])(s,t);var o,n,c=(o=s,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(e){var t,o,n,u;return r(d[3])(this,s),(t=c.call(this)).type=s.type,e&&(t.id=null!==(o=e.id)&&void 0!==o?o:(0,r(d[4]).uuid)(),t.createdAt=null!==(n=e.createdAt)&&void 0!==n?n:new Date,t.protocolVersion=e.protocolVersion,t.isVerified=e.isVerified,t.state=e.state,t.connectionId=e.connectionId,t.threadId=e.threadId,t.parentThreadId=e.parentThreadId,t.autoAcceptProof=e.autoAcceptProof,t._tags=null!==(u=e.tags)&&void 0!==u?u:{},t.errorMessage=e.errorMessage),t}return r(d[5])(s,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{threadId:this.threadId,parentThreadId:this.parentThreadId,connectionId:this.connectionId,state:this.state})}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(r(d[7]).AriesFrameworkError)("Proof record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertConnection",value:function(e){if(!this.connectionId)throw new(r(d[7]).AriesFrameworkError)("Proof record is not associated with any connection. This is often the case with connection-less presentation exchange");if(this.connectionId!==e)throw new(r(d[7]).AriesFrameworkError)("Proof record is associated with connection '"+this.connectionId+"'. Current connection is '"+e+"'")}}]),s})(r(d[8]).BaseRecord);_e.ProofExchangeRecord=t,t.type='ProofRecord'},1624,[14,11,9,7,953,8,4,612,1097]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1625,[1626,1400,1627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1626,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProofState=void 0,(function(t){t.ProposalSent="proposal-sent",t.ProposalReceived="proposal-received",t.RequestSent="request-sent",t.RequestReceived="request-received",t.PresentationSent="presentation-sent",t.PresentationReceived="presentation-received",t.Declined="declined",t.Abandoned="abandoned",t.Done="done"})(e.ProofState||(e.ProofState={}))},1627,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";function n(n,o){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=t(n))||o&&n&&"number"==typeof n.length){i&&(n=i);var c=0;return function(){return c>=n.length?{done:!0}:{done:!1,value:n[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(n,t){if(n){if("string"==typeof n)return o(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(n,t):void 0}}function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var o=0,i=new Array(t);o2&&void 0!==s[2]?s[2]:new Set,n.config.logger.debug("Migrating internal connection record type tags "+t.id+" to storage version 0.3"),i=t.getTags().connectionType||[],c=r(d[3])(i),o.has(t.id)&&!c.includes(r(d[1]).ConnectionType.Mediator)&&c.push(r(d[1]).ConnectionType.Mediator),t.connectionTypes=c,t.setTag('connectionType',void 0),n.config.logger.debug("Successfully migrated internal connection record type tags "+t.id+" to storage version 0.3");case 8:case"end":return l.stop()}},null,null,null,Promise)}Object.defineProperty(e,"__esModule",{value:!0}),e.migrateConnectionRecordTags=e.migrateConnectionRecordToV0_3=void 0,e.migrateConnectionRecordToV0_3=function(t){var o,c,s,l,u,f,p,y;return r(d[0]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return t.config.logger.info('Migrating connection records to storage version 0.3'),o=t.dependencyManager.resolve(r(d[1]).ConnectionRepository),c=t.dependencyManager.resolve(r(d[2]).MediationRepository),t.config.logger.debug('Fetching all connection records from storage'),v.next=6,r(d[0]).awrap(o.getAll(t.context));case 6:return s=v.sent,t.config.logger.debug("Found a total of "+s.length+" connection records to update"),t.config.logger.debug('Fetching all mediation records from storage'),v.next=11,r(d[0]).awrap(c.getAll(t.context));case 11:l=v.sent,t.config.logger.debug("Found a total of "+l.length+" mediation records"),u=new Set(l.map(function(n){return n.connectionId})),f=n(s);case 15:if((p=f()).done){v.next=25;break}return y=p.value,t.config.logger.debug("Migrating connection record with id "+y.id+" to storage version 0.3"),v.next=20,r(d[0]).awrap(i(t,y,u));case 20:return v.next=22,r(d[0]).awrap(o.update(t.context,y));case 22:t.config.logger.debug("Successfully migrated connection record with id "+y.id+" to storage version 0.3");case 23:v.next=15;break;case 25:case"end":return v.stop()}},null,null,null,Promise)},e.migrateConnectionRecordTags=i},1628,[82,1426,1552,42]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_3ToV0_3_1=void 0,e.updateV0_3ToV0_3_1=function(n){return r(d[0]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[0]).awrap((0,r(d[1]).migrateDidRecordToV0_3_1)(n));case 2:case"end":return t.stop()}},null,null,null,Promise)}},1629,[82,1630]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,o){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||o&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i0&&(0,r(d[7]).isFirstVersionHigherThanSecond)((0,r(d[7]).parseVersionString)(o[0].fromVersion),n))){u.next=11;break}throw new(r(d[5]).AriesFrameworkError)("First fromVersion is higher than current storage version. You need to use an older version of the framework to update to at least version "+o[0].fromVersion);case 11:if(s=o.length>0?o[o.length-1].toVersion:void 0,!t||!s||s===t){u.next=14;break}throw new(r(d[5]).AriesFrameworkError)("No update found for toVersion "+t+". Make sure the toVersion is a valid version you can update to");case 14:return u.abrupt("return",o);case 15:case"end":return u.stop()}},null,this,null,Promise)}},{key:"update",value:function(n){var i,o,s,u,c,l,p,h,f,w,v;return r(d[4]).async(function(k){for(;;)switch(k.prev=k.next){case 0:return i=Date.now().toString(),k.prev=1,this.agent.config.logger.info("Starting update of agent storage with updateIdentifier "+i),k.next=5,r(d[4]).awrap(this.getNeededUpdates(n));case 5:return o=k.sent,k.t0=r(d[7]).parseVersionString,k.next=9,r(d[4]).awrap(this.storageUpdateService.getCurrentStorageVersion(this.agent.context));case 9:if(k.t1=k.sent,s=(0,k.t0)(k.t1),!(u=n?(0,r(d[7]).parseVersionString)(n):void 0)||!(0,r(d[7]).isFirstVersionHigherThanSecond)(s,u)&&!(0,r(d[7]).isFirstVersionEqualToSecond)(s,u)){k.next=14;break}throw new(r(d[9]).StorageUpdateError)("Can't update to version "+n+" because it is lower or equal to the current agent storage version "+s[0]+"."+s[1]+"}");case 14:if(0!=o.length){k.next=17;break}return this.agent.config.logger.info('No update needed. Agent storage is up to date.'),k.abrupt("return");case 17:return c=o[0].fromVersion,l=o[o.length-1].toVersion,this.agent.config.logger.info("Starting update process. Total of "+o.length+" update(s) will be applied to update the agent storage from version "+c+" to version "+l),k.next=22,r(d[4]).awrap(this.createBackup(i));case 22:k.prev=22,p=t(o);case 24:if((h=p()).done){k.next=34;break}return f=h.value,this.agent.config.logger.info("Starting update of agent storage from version "+f.fromVersion+" to version "+f.toVersion),k.next=29,r(d[4]).awrap(f.doUpdate(this.agent,this.updateConfig));case 29:return k.next=31,r(d[4]).awrap(this.storageUpdateService.setCurrentStorageVersion(this.agent.context,f.toVersion));case 31:this.agent.config.logger.info("Successfully updated agent storage from version "+f.fromVersion+" to version "+f.toVersion);case 32:k.next=24;break;case 34:k.next=42;break;case 36:return k.prev=36,k.t2=k.catch(22),this.agent.config.logger.fatal('An error occurred while updating the wallet. Restoring backup',{error:k.t2}),k.next=41,r(d[4]).awrap(this.restoreBackup(i));case 41:throw k.t2;case 42:k.next=53;break;case 44:if(k.prev=44,k.t3=k.catch(1),!(k.t3 instanceof r(d[5]).AriesFrameworkError&&(0,r(d[10]).isIndyError)(k.t3.cause,'CommonIOError'))){k.next=51;break}throw w=this.getBackupPath(i),v="Error updating storage with updateIdentifier "+i+" because of an IO error. This is probably because the backup at path "+w+" already exists",this.agent.config.logger.fatal(v,{error:k.t3,updateIdentifier:i,backupPath:w}),new(r(d[9]).StorageUpdateError)(v,{cause:k.t3});case 51:throw this.agent.config.logger.error("Error updating storage (updateIdentifier: "+i+")",{cause:k.t3}),new(r(d[9]).StorageUpdateError)("Error updating storage (updateIdentifier: "+i+"): "+k.t3.message,{cause:k.t3});case 53:return k.abrupt("return",i);case 54:case"end":return k.stop()}},null,this,[[1,44],[22,36]],Promise)}},{key:"getBackupPath",value:function(t){return this.fileSystem.basePath+"/afj/migration/backup/"+t}},{key:"createBackup",value:function(t){var n,i,o;return r(d[4]).async(function(s){for(;;)switch(s.prev=s.next){case 0:if(i=this.getBackupPath(t),o=null===(n=this.agent.wallet.walletConfig)||void 0===n?void 0:n.key){s.next=4;break}throw new(r(d[5]).AriesFrameworkError)("Could not extract wallet key from wallet module. Can't create backup");case 4:return s.next=6,r(d[4]).awrap(this.agent.wallet.export({key:o,path:i}));case 6:this.agent.config.logger.info('Created backup of the wallet',{backupPath:i});case 7:case"end":return s.stop()}},null,this,null,Promise)}},{key:"restoreBackup",value:function(t){var n,i;return r(d[4]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(n=this.getBackupPath(t),i=this.agent.wallet.walletConfig){o.next=4;break}throw new(r(d[5]).AriesFrameworkError)('Could not extract wallet config from wallet module. Cannot restore backup');case 4:return o.next=6,r(d[4]).awrap(this.agent.wallet.export({key:i.key,path:n+"-error"}));case 6:return o.next=8,r(d[4]).awrap(this.agent.wallet.delete());case 8:return o.next=10,r(d[4]).awrap(this.agent.wallet.import(i,{key:i.key,path:n}));case 10:return o.next=12,r(d[4]).awrap(this.agent.wallet.initialize(i));case 12:this.agent.config.logger.info("Successfully restored wallet from backup "+t,{backupPath:n});case 13:case"end":return o.stop()}},null,this,null,Promise)}}],[{key:"frameworkStorageVersion",get:function(){return r(d[8]).CURRENT_FRAMEWORK_STORAGE_VERSION}}]),n})();e.UpdateAssistant=o},1631,[7,1541,1104,8,82,612,1372,944,1542,1632,1363]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageUpdateError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.StorageUpdateError=e},1632,[14,11,9,7,8,613]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1633,[1634]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var r,c=arguments.length,s=c<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(s=(c<3?r(s):c>3?r(i,o,s):r(i,o))||s);return c>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},o=this&&this.__param||function(t,i){return function(o,n){i(o,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RevocationNotificationService=void 0;var n=(function(){function t(i,o,n,r){_r(_d[0])(this,t),this.credentialRepository=i,this.eventEmitter=o,this.dispatcher=n,this.logger=r,this.registerMessageHandlers()}return _r(_d[1])(t,[{key:"processRevocationNotification",value:function(t,i,o,n,r){var c,s,d;return _r(_d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return c={indyRevocationRegistryId:i,indyCredentialRevocationId:o,connectionId:n.id},this.logger.trace("Getting record by query for revocation notification:",c),v.next=4,_r(_d[2]).awrap(this.credentialRepository.getSingleByQuery(t,c));case 4:return(s=v.sent).revocationNotification=new(_r(_d[3]).RevocationNotification)(r),v.next=8,_r(_d[2]).awrap(this.credentialRepository.update(t,s));case 8:d=_r(_d[4]).JsonTransformer.clone(s),this.logger.trace('Emitting RevocationNotificationReceivedEvent'),this.eventEmitter.emit(t,{type:_r(_d[5]).CredentialEventTypes.RevocationNotificationReceived,payload:{credentialRecord:d}});case 11:case"end":return v.stop()}},null,this,null,Promise)}},{key:"v1ProcessRevocationNotification",value:function(t){var i,o,n,r,c,s,d;return _r(_d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.logger.info('Processing revocation notification v1',{message:t.message}),i=t.message.issueThread,v.prev=2,o=i.match(_r(_d[6]).v1ThreadRegex)){v.next=6;break}throw new(_r(_d[7]).AriesFrameworkError)("Incorrect revocation notification threadId format: \n"+i+"\ndoes not match\n\"indy::::\"");case 6:return n=_r(_d[8])(o,4),r=n[2],c=n[3],s=t.message.comment,d=t.assertReadyConnection(),v.next=11,_r(_d[2]).awrap(this.processRevocationNotification(t.agentContext,r,c,d,s));case 11:v.next=16;break;case 13:v.prev=13,v.t0=v.catch(2),this.logger.warn('Failed to process revocation notification message',{error:v.t0,threadId:i});case 16:case"end":return v.stop()}},null,this,[[2,13]],Promise)}},{key:"v2ProcessRevocationNotification",value:function(t){var i,o,n,r,c,s,d;return _r(_d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.logger.info('Processing revocation notification v2',{message:t.message}),i=t.message.credentialId,t.message.revocationFormat===_r(_d[6]).v2IndyRevocationFormat){v.next=4;break}throw new(_r(_d[7]).AriesFrameworkError)("Unknown revocation format: "+t.message.revocationFormat+". Supported formats are indy-anoncreds");case 4:if(v.prev=4,o=i.match(_r(_d[6]).v2IndyRevocationIdentifierRegex)){v.next=8;break}throw new(_r(_d[7]).AriesFrameworkError)("Incorrect revocation notification credentialId format: \n"+i+"\ndoes not match\n\"::\"");case 8:return n=_r(_d[8])(o,3),r=n[1],c=n[2],s=t.message.comment,d=t.assertReadyConnection(),v.next=13,_r(_d[2]).awrap(this.processRevocationNotification(t.agentContext,r,c,d,s));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(4),this.logger.warn('Failed to process revocation notification message',{error:v.t0,credentialId:i});case 18:case"end":return v.stop()}},null,this,[[4,15]],Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[9]).V1RevocationNotificationHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[9]).V2RevocationNotificationHandler)(this))}}]),t})();n=t([(0,_r(_d[10]).injectable)(),o(3,(0,_r(_d[10]).inject)(_r(_d[11]).InjectionSymbols.Logger)),i("design:paramtypes",[_r(_d[12]).CredentialRepository,_r(_d[13]).EventEmitter,_r(_d[14]).Dispatcher,Object])],n),e.RevocationNotificationService=n},1634,[7,8,82,1635,993,1636,1637,613,31,1638,1020,1104,1643,1105,1494]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RevocationNotification=void 0;var t=r(d[0])(function t(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;r(d[1])(this,t),this.revocationDate=n,this.comment=o});e.RevocationNotification=t},1635,[8,7]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialEventTypes=void 0,(function(t){t.CredentialStateChanged="CredentialStateChanged",t.RevocationNotificationReceived="RevocationNotificationReceived"})(e.CredentialEventTypes||(e.CredentialEventTypes={}))},1636,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.v2IndyRevocationFormat=e.v2IndyRevocationIdentifierRegex=e.v1ThreadRegex=void 0,e.v1ThreadRegex=/(indy)::((?:[\dA-z]{21,22}):4:(?:[\dA-z]{21,22}):3:[Cc][Ll]:(?:(?:[1-9][0-9]*)|(?:[\dA-z]{21,22}:2:.+:[0-9.]+)):.+?:CL_ACCUM:(?:[\dA-z-]+))::(\d+)$/,e.v2IndyRevocationIdentifierRegex=/((?:[\dA-z]{21,22}):4:(?:[\dA-z]{21,22}):3:[Cc][Ll]:(?:(?:[1-9][0-9]*)|(?:[\dA-z]{21,22}:2:.+:[0-9.]+)):.+?:CL_ACCUM:(?:[\dA-z-]+))::(\d+)$/,e.v2IndyRevocationFormat='indy-anoncreds'},1637,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1638,[1639,1641]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1RevocationNotificationHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1RevocationNotificationMessage],this.revocationService=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.revocationService.v1ProcessRevocationNotification(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V1RevocationNotificationHandler=t},1639,[7,1640,8,82]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1RevocationNotificationMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,o;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.issueThread=e.issueThread,t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.comment=e.comment,t.pleaseAck=e.pleaseAck),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/revocation_notification/1.0/revoke'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'thread_id'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"issueThread",void 0),_e.V1RevocationNotificationMessage=n},1640,[14,11,9,7,8,949,942,662,627]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2RevocationNotificationHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2RevocationNotificationMessage],this.revocationService=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.revocationService.v2ProcessRevocationNotification(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V2RevocationNotificationHandler=t},1641,[7,1642,8,82]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2RevocationNotificationMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,o;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.revocationFormat=e.revocationFormat,t.credentialId=e.credentialId,t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.comment=e.comment,t.pleaseAck=e.pleaseAck),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/revocation_notification/2.0/revoke'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'revocation_format'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"revocationFormat",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_id'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"credentialId",void 0),_e.V2RevocationNotificationMessage=n},1642,[14,11,9,7,8,949,942,662,627]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1643,[1546,1545,1547]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialsModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=o}return r(d[1])(t,[{key:"autoAcceptCredentials",get:function(){var t;return null!==(t=this.options.autoAcceptCredentials)&&void 0!==t?t:r(d[2]).AutoAcceptCredential.Never}},{key:"credentialProtocols",get:function(){return this.options.credentialProtocols}}]),t})();e.CredentialsModuleConfig=t},1644,[7,8,1645]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1645,[1635,1549,1401,1646,1550]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,i){var n,c=arguments.length,f=c<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,r,i);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(f=(c<3?n(f):c>3?n(o,r,f):n(o,r))||f);return c>3&&f&&Object.defineProperty(o,r,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialFormatSpec=void 0;var r=_r(_d[0])(function t(o){var r;_r(_d[1])(this,t),o&&(this.attachId=null!==(r=o.attachId)&&void 0!==r?r:(0,_r(_d[2]).uuid)(),this.format=o.format)});t([(0,_r(_d[3]).Expose)({name:'attach_id'}),(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"attachId",void 0),t([(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"format",void 0),e.CredentialFormatSpec=r},1646,[8,7,953,627,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1647,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1648,[1649,1650,1651,1652,1690]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,s=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var c=n&&n.prototype instanceof w?n:w,u=Object.create(c.prototype),h=new A(i||[]);return s(u,"_invoke",{value:S(t,o,h)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var E={};f(E,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(G([])));k&&k!==o&&i.call(k,u)&&(E=k);var O=x.prototype=w.prototype=Object.create(E);function T(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function _(t,n){function o(s,c,u,h){var l=v(t[s],t,c);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,h)},function(t){o("throw",t,u,h)}):n.resolve(p).then(function(t){f.value=t,u(f)},function(t){return o("throw",t,u,h)})}h(l.arg)}var c;s(this,"_invoke",{value:function(t,i){function s(){return new n(function(n,s){o(t,i,n,s)})}return c=c?c.then(s,s):s()}})}function S(t,n,o){var i="suspendedStart";return function(s,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===s)throw c;return M()}for(o.method=s,o.arg=c;;){var u=o.delegate;if(u){var h=j(u,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var s=v(i,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,y;var c=s.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function G(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--s){var c=this.tryEntries[s],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var h=i.call(c,"catchLoc"),l=i.call(c,"finallyLoc");if(h&&l){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;N(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.HttpOutboundTransport=void 0;var n=(function(){function n(){r(d[0])(this,n),this.supportedSchemes=['http','https']}return r(d[1])(n,[{key:"start",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:this.agent=n,this.logger=this.agent.config.logger,this.fetch=this.agent.config.agentDependencies.fetch,this.logger.debug('Starting HTTP outbound transport');case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"stop",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:this.logger.debug('Stopping HTTP outbound transport');case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(n){var o,i,s,c,u,h,l;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(o=n.payload,i=n.endpoint){f.next=3;break}throw new(r(d[2]).AriesFrameworkError)("Missing endpoint. I don't know how and where to send the message.");case 3:return this.logger.debug("Sending outbound message to endpoint '"+n.endpoint+"'",{payload:n.payload}),f.prev=4,s=new(r(d[3]).AbortController),c=setTimeout(function(){return s.abort()},15e3),f.prev=7,f.next=10,t().awrap(this.fetch(i,{method:'POST',body:JSON.stringify(o),headers:{'Content-Type':this.agent.config.didCommMimeType},signal:s.signal}));case 10:return u=f.sent,clearTimeout(c),f.next=14,t().awrap(u.text());case 14:h=f.sent,f.next=24;break;case 17:if(f.prev=17,f.t0=f.catch(7),'AbortError'!=f.t0.name||!n.responseRequested){f.next=23;break}this.logger.debug('Request was aborted due to timeout. Not throwing error due to return routing on sent message'),f.next=24;break;case 23:throw f.t0;case 24:if(!u||!h){f.next=39;break}if(this.logger.debug("Response received",{responseMessage:h,status:u.status}),f.prev=26,l=r(d[4]).JsonEncoder.fromString(h),(0,r(d[4]).isValidJweStructure)(l)){f.next=31;break}return this.logger.error("Received a response from the other agent but the structure of the incoming message is not a DIDComm message: "+h),f.abrupt("return");case 31:this.agent.events.emit(this.agent.context,{type:r(d[5]).AgentEventTypes.AgentMessageReceived,payload:{message:l}}),f.next=37;break;case 34:f.prev=34,f.t1=f.catch(26),this.logger.debug('Unable to parse response message');case 37:f.next=40;break;case 39:this.logger.debug("No response received.");case 40:f.next=46;break;case 42:throw f.prev=42,f.t2=f.catch(4),this.logger.error("Error sending message to "+i+": "+f.t2.message,{error:f.t2,message:f.t2.message,body:o,didCommMimeType:this.agent.config.didCommMimeType}),new(r(d[2]).AriesFrameworkError)("Error sending message to "+i+": "+f.t2.message,{cause:f.t2});case 46:case"end":return f.stop()}},null,this,[[4,42],[7,17],[26,34]],Promise)}}]),n})();e.HttpOutboundTransport=n},1588,[7,8,612,1589,992,1345]); +__d(function(g,r,i,a,m,e,d){"use strict";var o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0,t=o.AbortController,n=o.AbortSignal;m.exports=t,m.exports.AbortSignal=n,m.exports.default=t},1589,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,s=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",h=c.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var c=n&&n.prototype instanceof w?n:w,u=Object.create(c.prototype),l=new j(i||[]);return s(u,"_invoke",{value:_(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function k(){}var E={};f(E,u,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(M([])));S&&S!==o&&i.call(S,u)&&(E=S);var L=k.prototype=w.prototype=Object.create(E);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function I(t,n){function o(s,c,u,l){var h=v(t[s],t,c);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){f.value=t,u(f)},function(t){return o("throw",t,u,l)})}l(h.arg)}var c;s(this,"_invoke",{value:function(t,i){function s(){return new n(function(n,s){o(t,i,n,s)})}return c=c?c.then(s,s):s()}})}function _(t,n,o){var i="suspendedStart";return function(s,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===s)throw c;return N()}for(o.method=s,o.arg=c;;){var u=o.delegate;if(u){var l=T(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function T(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var s=v(i,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,y;var c=s.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function W(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(W,this),this.reset(!0)}function M(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--s){var c=this.tryEntries[s],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),h=i.call(c,"finallyLoc");if(l&&h){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;P(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.WsOutboundTransport=void 0;var n=(function(){function n(){var t=this;r(d[0])(this,n),this.transportTable=new Map,this.supportedSchemes=['ws','wss'],this.handleMessageEvent=function(n){t.logger.trace('WebSocket message event received.',{url:n.target.url});var o=r(d[1]).JsonEncoder.fromBuffer(n.data);if(!(0,r(d[1]).isValidJweStructure)(o))throw new Error("Received a response from the other agent but the structure of the incoming message is not a DIDComm message: "+o);t.logger.debug('Payload received from mediator:',o),t.agent.events.emit(t.agent.context,{type:r(d[2]).AgentEventTypes.AgentMessageReceived,payload:{message:o}})}}return r(d[3])(n,[{key:"start",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:this.agent=n,this.logger=n.config.logger,this.logger.debug('Starting WS outbound transport'),this.WebSocketClass=n.config.agentDependencies.WebSocketClass;case 4:case"end":return t.stop()}},null,this,null,Promise)}},{key:"stop",value:function(){var n=this;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:this.logger.debug('Stopping WS outbound transport'),this.transportTable.forEach(function(t){t.removeEventListener('message',n.handleMessageEvent),t.close()});case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"sendMessage",value:function(n){var o,i,s,c,u;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=n.payload,i=n.endpoint,s=n.connectionId,this.logger.debug("Sending outbound message to endpoint '"+i+"' over WebSocket transport.",{payload:o}),i){l.next=4;break}throw new(r(d[4]).AriesFrameworkError)("Missing connection or endpoint. I don't know how and where to send the message.");case 4:return c=this.hasOpenSocket(i),l.next=7,t().awrap(this.resolveSocket({socketId:i,endpoint:i,connectionId:s}));case 7:(u=l.sent).send(r(d[5]).Buffer.from(JSON.stringify(o))),c&&!n.responseRequested&&u.close();case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"hasOpenSocket",value:function(t){return void 0!==this.transportTable.get(t)}},{key:"resolveSocket",value:function(n){var o,i,s,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=n.socketId,i=n.endpoint,s=n.connectionId,c=this.transportTable.get(o)){u.next=10;break}if(i){u.next=5;break}throw new(r(d[4]).AriesFrameworkError)("Missing endpoint. I don't know how and where to send the message.");case 5:return u.next=7,t().awrap(this.createSocketConnection({endpoint:i,socketId:o,connectionId:s}));case 7:c=u.sent,this.transportTable.set(o,c),this.listenOnWebSocketMessages(c);case 10:if(c.readyState===this.WebSocketClass.OPEN){u.next=12;break}throw new(r(d[4]).AriesFrameworkError)('Socket is not open.');case 12:return u.abrupt("return",c);case 13:case"end":return u.stop()}},null,this,null,Promise)}},{key:"listenOnWebSocketMessages",value:function(t){t.addEventListener('message',this.handleMessageEvent)}},{key:"createSocketConnection",value:function(n){var o=this,i=n.socketId,s=n.endpoint,c=n.connectionId;return new Promise(function(n,u){o.logger.debug("Connecting to WebSocket "+s);var l=new o.WebSocketClass(s);l.onopen=function(){o.logger.debug("Successfully connected to WebSocket "+s),n(l),o.agent.events.emit(o.agent.context,{type:r(d[6]).TransportEventTypes.OutboundWebSocketOpenedEvent,payload:{socketId:i,connectionId:c}})},l.onerror=function(t){o.logger.debug("Error while connecting to WebSocket "+s,{error:t}),u(t)},l.onclose=function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:o.logger.debug("WebSocket closing to "+s),l.removeEventListener('message',o.handleMessageEvent),o.transportTable.delete(i),o.agent.events.emit(o.agent.context,{type:r(d[6]).TransportEventTypes.OutboundWebSocketClosedEvent,payload:{socketId:i,connectionId:c}});case 4:case"end":return t.stop()}},null,null,null,Promise)}})}}]),n})();e.WsOutboundTransport=n},1590,[7,992,1345,8,612,980,1591]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransportEventTypes=void 0,(function(t){t.OutboundWebSocketClosedEvent="OutboundWebSocketClosedEvent",t.OutboundWebSocketOpenedEvent="OutboundWebSocketOpenedEvent"})(e.TransportEventTypes||(e.TransportEventTypes={}))},1591,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1592,[1593,1594,1615,1595]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,c=Object.create(i.prototype),s=new F(n||[]);return o(c,"_invoke",{value:S(t,r,s)}),c}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function v(){}function d(){}function y(){}var w={};l(w,c,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(C([])));b&&b!==r&&n.call(b,c)&&(w=b);var E=y.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function r(o,i,c,s){var u=h(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,c,s)},function(t){r("throw",t,c,s)}):e.resolve(f).then(function(t){l.value=t,c(l)},function(t){return r("throw",t,c,s)})}s(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return D()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=j(c,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function O(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}var e=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.DiscoverFeaturesApi=void 0;var o=(function(){function e(t,r,n,o,i,c,s,u){_r(_d[0])(this,e),this.connectionService=t,this.messageSender=r,this.eventEmitter=i,this.stop$=c,this.agentContext=s,this.config=u,this.serviceMap=[n,o].reduce(function(t,e){return _r(_d[1])(_r(_d[1])({},t),_r(_d[2])({},e.version,e))},{})}return _r(_d[3])(e,[{key:"getService",value:function(t){if(!this.serviceMap[t])throw new(_r(_d[4]).AriesFrameworkError)("No discover features service registered for protocol version "+t);return this.serviceMap[t]}},{key:"queryFeatures",value:function(e){var r,n,o,i,c,s,u;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=this.getService(e.protocolVersion),l.next=3,t().awrap(this.connectionService.getById(this.agentContext,e.connectionId));case 3:return o=l.sent,l.next=6,t().awrap(n.createQuery({queries:e.queries,comment:e.comment}));case 6:return i=l.sent,c=i.message,s=new(_r(_d[5]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:o}),u=new(_r(_d[6]).ReplaySubject)(1),e.awaitDisclosures&&this.eventEmitter.observable(_r(_d[7]).DiscoverFeaturesEventTypes.DisclosureReceived).pipe((0,_r(_d[8]).takeUntil)(this.stop$),(0,_r(_d[8]).filter)(function(t){var e;return(null===(e=t.payload.connection)||void 0===e?void 0:e.id)===o.id}),(0,_r(_d[8]).map)(function(t){return t.payload.disclosures}),(0,_r(_d[8]).timeout)(null!==(r=e.awaitDisclosuresTimeoutMs)&&void 0!==r?r:7e3),(0,_r(_d[8]).catchError)(function(){return(0,_r(_d[6]).of)([])})).subscribe(u),l.next=13,t().awrap(this.messageSender.sendMessage(s));case 13:if(!e.awaitDisclosures){l.next=19;break}return l.next=16,t().awrap((0,_r(_d[6]).firstValueFrom)(u));case 16:l.t0=l.sent,l.next=20;break;case 19:l.t0=void 0;case 20:return l.t1=l.t0,l.abrupt("return",{features:l.t1});case 22:case"end":return l.stop()}},null,this,null,Promise)}},{key:"discloseFeatures",value:function(e){var r,n,o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=this.getService(e.protocolVersion),s.next=3,t().awrap(this.connectionService.getById(this.agentContext,e.connectionId));case 3:return n=s.sent,s.next=6,t().awrap(r.createDisclosure({disclosureQueries:e.disclosureQueries,threadId:e.threadId}));case 6:return o=s.sent,i=o.message,c=new(_r(_d[5]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:n}),s.next=11,t().awrap(this.messageSender.sendMessage(c));case 11:case"end":return s.stop()}},null,this,null,Promise)}}]),e})();o=e([(0,_r(_d[9]).injectable)(),n(5,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.Stop$)),r("design:paramtypes",[_r(_d[11]).ConnectionService,_r(_d[12]).MessageSender,_r(_d[13]).V1DiscoverFeaturesService,_r(_d[13]).V2DiscoverFeaturesService,_r(_d[14]).EventEmitter,_r(_d[6]).Subject,_r(_d[15]).AgentContext,_r(_d[16]).DiscoverFeaturesModuleConfig])],o),_e.DiscoverFeaturesApi=o},1593,[7,4,248,8,611,622,1105,1594,1328,1019,1103,1465,1344,1595,1104,1390,1606]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesEventTypes=void 0,(function(s){s.QueryReceived="QueryReceived",s.DisclosureReceived="DisclosureReceived"})(e.DiscoverFeaturesEventTypes||(e.DiscoverFeaturesEventTypes={}))},1594,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1595,[1596,1607]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1596,[1597,1600]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,c=Object.create(i.prototype),s=new D(n||[]);return o(c,"_invoke",{value:j(e,r,s)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function d(){}function v(){}function y(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==r&&n.call(x,c)&&(w=x);var E=y.prototype=d.prototype=Object.create(w);function L(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(o,i,c,s){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,c,s)},function(e){r("throw",e,c,s)}):t.resolve(f).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,s)})}s(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function j(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return R()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=k(c,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function F(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(F,this),this.reset(!0)}function P(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function t(){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(e){return!1}}var r=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1DiscoverFeaturesService=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=t(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e,t,r,n,o){var s;return _r(_d[3])(this,c),(s=i.call(this,e,t,r,n,o)).version='v1',s.registerMessageHandlers(r),s}return _r(_d[4])(c,[{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[5]).V1DiscloseMessageHandler)(this)),e.registerMessageHandler(new(_r(_d[5]).V1QueryMessageHandler)(this))}},{key:"createQuery",value:function(t){var r;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.queries.length>1)){e.next=2;break}throw new(_r(_d[6]).AriesFrameworkError)('Discover Features V1 only supports a single query');case 2:if('protocol'===t.queries[0].featureType){e.next=4;break}throw new(_r(_d[6]).AriesFrameworkError)('Discover Features V1 only supports querying for protocol support');case 4:return r=new(_r(_d[7]).V1QueryMessage)({query:t.queries[0].match,comment:t.comment}),e.abrupt("return",{message:r});case 6:case"end":return e.stop()}},null,null,null,Promise)}},{key:"processQuery",value:function(t){var r,n,o,i;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=t.message,n=r.query,o=r.threadId,i=t.assertReadyConnection(),this.eventEmitter.emit(t.agentContext,{type:_r(_d[8]).DiscoverFeaturesEventTypes.QueryReceived,payload:{message:t.message,connection:i,queries:[{featureType:'protocol',match:n}],protocolVersion:this.version,threadId:o}}),!this.discoverFeaturesModuleConfig.autoAcceptQueries){c.next=7;break}return c.next=6,e().awrap(this.createDisclosure({threadId:o,disclosureQueries:[{featureType:'protocol',match:n}]}));case 6:return c.abrupt("return",c.sent);case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createDisclosure",value:function(t){var r,n,o;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.disclosureQueries.some(function(e){return'protocol'!==e.featureType})){e.next=2;break}throw new(_r(_d[6]).AriesFrameworkError)('Discover Features V1 only supports protocols');case 2:if(t.threadId){e.next=4;break}throw new(_r(_d[6]).AriesFrameworkError)('Thread Id is required for Discover Features V1 disclosure');case 4:return n=(r=this.featureRegistry).query.apply(r,_r(_d[9])(t.disclosureQueries)),o=new(_r(_d[7]).V1DiscloseMessage)({threadId:t.threadId,protocols:n.map(function(e){return new(_r(_d[7]).DiscloseProtocol)({protocolId:e.id,roles:e.roles})})}),e.abrupt("return",{message:o});case 7:case"end":return e.stop()}},null,this,null,Promise)}},{key:"processDisclosure",value:function(t){var r,n,o,i;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.message,n=r.protocols,o=r.threadId,i=t.assertReadyConnection(),this.eventEmitter.emit(t.agentContext,{type:_r(_d[8]).DiscoverFeaturesEventTypes.DisclosureReceived,payload:{message:t.message,connection:i,disclosures:n.map(function(e){return new(_r(_d[10]).Protocol)({id:e.protocolId,roles:e.roles})}),protocolVersion:this.version,threadId:o}});case 3:case"end":return e.stop()}},null,this,null,Promise)}}]),c})(_r(_d[11]).DiscoverFeaturesService);i=r([(0,_r(_d[12]).injectable)(),o(3,(0,_r(_d[12]).inject)(_r(_d[13]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[14]).FeatureRegistry,_r(_d[15]).EventEmitter,_r(_d[16]).Dispatcher,Object,_r(_d[17]).DiscoverFeaturesModuleConfig])],i),_e.V1DiscoverFeaturesService=i},1597,[14,11,9,7,8,1598,611,1600,1594,42,622,1604,1019,1103,1055,1104,1493,1606]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1598,[1599,1603]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new F(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(M([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function M(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1DiscloseMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1DiscloseMessage],this.discoverFeaturesService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.discoverFeaturesService.processDisclosure(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V1DiscloseMessageHandler=n},1599,[7,1600,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1600,[1601,1602]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,r){var n,c=arguments.length,s=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(c<3?n(s):c>3?n(t,o,s):n(t,o))||s);return c>3&&s&&Object.defineProperty(t,o,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1DiscloseMessage=_e.DiscloseProtocol=void 0;var r=_r(_d[2])(function e(t){_r(_d[3])(this,e),t&&(this.protocolId=t.protocolId,this.roles=t.roles)});t([(0,_r(_d[4]).Expose)({name:'pid'}),(0,_r(_d[5]).IsString)(),o("design:type",String)],r.prototype,"protocolId",void 0),t([(0,_r(_d[5]).IsString)({each:!0}),(0,_r(_d[5]).IsOptional)(),o("design:type",Array)],r.prototype,"roles",void 0),_e.DiscloseProtocol=r;var n=(function(t){_r(_d[6])(s,t);var o,n,c=(o=s,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t,o;return _r(_d[3])(this,s),(t=c.call(this)).type=s.type.messageTypeUri,e&&(t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.protocols=e.protocols.map(function(e){return new r(e)}),t.setThread({threadId:e.threadId})),t}return _r(_d[2])(s)})(_r(_d[7]).AgentMessage);n.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/discover-features/1.0/disclose'),t([(0,_r(_d[8]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[5]).IsInstance)(r,{each:!0}),(0,_r(_d[4]).Type)(function(){return r}),o("design:type",Array)],n.prototype,"protocols",void 0),_e.V1DiscloseMessage=n},1601,[14,11,8,7,626,661,9,948,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1QueryMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.query=e.query,t.comment=e.comment),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/discover-features/1.0/query'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),r("design:type",String)],n.prototype,"query",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V1QueryMessage=n},1602,[14,11,9,7,8,948,941,661]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(M([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function M(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1QueryMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1QueryMessage],this.discoverFeaturesService=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=n.assertReadyConnection(),c.next=3,t().awrap(this.discoverFeaturesService.processQuery(n));case 3:if(!(i=c.sent)){c.next=6;break}return c.abrupt("return",new(r(d[3]).OutboundMessageContext)(i.message,{agentContext:n.agentContext,connection:o}));case 6:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.V1QueryMessageHandler=n},1603,[7,1600,8,622]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1604,[1605]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesService=void 0;var t=r(d[0])(function t(s,o,c,u,v){r(d[1])(this,t),this.featureRegistry=s,this.eventEmitter=o,this.dispatcher=c,this.logger=u,this.discoverFeaturesModuleConfig=v});e.DiscoverFeaturesService=t},1605,[8,7]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=null!==o&&void 0!==o?o:{}}return r(d[1])(t,[{key:"autoAcceptQueries",get:function(){var t;return null===(t=this.options.autoAcceptQueries)||void 0===t||t}}]),t})();e.DiscoverFeaturesModuleConfig=t},1606,[7,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1607,[1608,1611]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,c=Object.create(i.prototype),s=new k(n||[]);return o(c,"_invoke",{value:j(e,r,s)}),c}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var p={};function v(){}function d(){}function y(){}var w={};l(w,c,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(D([])));x&&x!==r&&n.call(x,c)&&(w=x);var L=y.prototype=v.prototype=Object.create(w);function E(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){function r(o,i,c,s){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,c,s)},function(e){r("throw",e,c,s)}):t.resolve(f).then(function(e){l.value=e,c(l)},function(e){return r("throw",e,c,s)})}s(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,o){r(e,n,t,o)})}return i=i?i.then(o,o):o()}})}function j(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return F()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=O(c,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function D(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function t(){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(e){return!1}}var r=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2DiscoverFeaturesService=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=t(),function(){var e,t=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e,t,r,n,o){var s;return _r(_d[3])(this,c),(s=i.call(this,e,t,r,n,o)).version='v2',s.registerMessageHandlers(r),s}return _r(_d[4])(c,[{key:"registerMessageHandlers",value:function(e){e.registerMessageHandler(new(_r(_d[5]).V2DisclosuresMessageHandler)(this)),e.registerMessageHandler(new(_r(_d[5]).V2QueriesMessageHandler)(this))}},{key:"createQuery",value:function(t){var r;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new(_r(_d[6]).V2QueriesMessage)({queries:t.queries}),e.abrupt("return",{message:r});case 2:case"end":return e.stop()}},null,null,null,Promise)}},{key:"processQuery",value:function(t){var r,n,o,i;return e().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=t.message,n=r.queries,o=r.threadId,i=t.assertReadyConnection(),this.eventEmitter.emit(t.agentContext,{type:_r(_d[7]).DiscoverFeaturesEventTypes.QueryReceived,payload:{message:t.message,connection:i,queries:n,protocolVersion:this.version,threadId:o}}),!this.discoverFeaturesModuleConfig.autoAcceptQueries){c.next=7;break}return c.next=6,e().awrap(this.createDisclosure({threadId:o,disclosureQueries:n}));case 6:return c.abrupt("return",c.sent);case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createDisclosure",value:function(t){var r,n,o;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=this.featureRegistry).query.apply(r,_r(_d[8])(t.disclosureQueries)),o=new(_r(_d[6]).V2DisclosuresMessage)({threadId:t.threadId,features:n}),e.abrupt("return",{message:o});case 3:case"end":return e.stop()}},null,this,null,Promise)}},{key:"processDisclosure",value:function(t){var r,n,o,i;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.message,n=r.disclosures,o=r.threadId,i=t.assertReadyConnection(),this.eventEmitter.emit(t.agentContext,{type:_r(_d[7]).DiscoverFeaturesEventTypes.DisclosureReceived,payload:{message:t.message,connection:i,disclosures:n,protocolVersion:this.version,threadId:o}});case 3:case"end":return e.stop()}},null,this,null,Promise)}}]),c})(_r(_d[9]).DiscoverFeaturesService);i=r([(0,_r(_d[10]).injectable)(),o(3,(0,_r(_d[10]).inject)(_r(_d[11]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[12]).FeatureRegistry,_r(_d[13]).EventEmitter,_r(_d[14]).Dispatcher,Object,_r(_d[15]).DiscoverFeaturesModuleConfig])],i),_e.V2DiscoverFeaturesService=i},1608,[14,11,9,7,8,1609,1611,1594,42,1604,1019,1103,1055,1104,1493,1606]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1609,[1610,1614]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new F(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(M([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=S(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function M(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2DisclosuresMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2DisclosuresMessage],this.discoverFeaturesService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.discoverFeaturesService.processDisclosure(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V2DisclosuresMessageHandler=n},1610,[7,1611,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1611,[1612,1613]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var s,n=arguments.length,c=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,o);else for(var i=e.length-1;i>=0;i--)(s=e[i])&&(c=(n<3?s(c):n>3?s(t,r,c):s(t,r))||c);return n>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2DisclosuresMessage=void 0;var o=(function(t){_r(_d[2])(n,t);var r,o,s=(r=n,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function n(e){var t,r,o;return _r(_d[3])(this,n),(t=s.call(this)).type=n.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.disclosures=null!==(o=e.features)&&void 0!==o?o:[],e.threadId&&t.setThread({threadId:e.threadId})),t}return _r(_d[4])(n)})(_r(_d[5]).AgentMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/discover-features/2.0/disclosures'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[7]).IsInstance)(_r(_d[8]).Feature,{each:!0}),(0,_r(_d[9]).Type)(function(){return _r(_d[8]).Feature}),r("design:type",Array)],o.prototype,"disclosures",void 0),_e.V2DisclosuresMessage=o},1612,[14,11,9,7,8,948,941,661,622,626]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,i=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(c<3?o(i):c>3?o(t,r,i):o(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2QueriesMessage=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t,r;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.queries=e.queries.map(function(e){return new(_r(_d[4]).FeatureQuery)(e)})),t}return _r(_d[5])(c)})(_r(_d[6]).AgentMessage);n.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/discover-features/2.0/queries'),t([(0,_r(_d[7]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[8]).IsInstance)(_r(_d[4]).FeatureQuery,{each:!0}),(0,_r(_d[9]).Type)(function(){return _r(_d[4]).FeatureQuery}),(0,_r(_d[8]).ArrayNotEmpty)(),r("design:type",Array)],n.prototype,"queries",void 0),_e.V2QueriesMessage=n},1613,[14,11,9,7,622,8,948,941,661,626]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new F(i||[]);return c(s,"_invoke",{value:P(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(M([])));_&&_!==o&&i.call(_,s)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=S(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function S(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,S(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function M(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2QueriesMessageHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2QueriesMessage],this.discoverFeaturesService=t}return r(d[2])(n,[{key:"handle",value:function(n){var o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=n.assertReadyConnection(),c.next=3,t().awrap(this.discoverFeaturesService.processQuery(n));case 3:if(!(i=c.sent)){c.next=6;break}return c.abrupt("return",new(r(d[3]).OutboundMessageContext)(i.message,{agentContext:n.agentContext,connection:o}));case 6:case"end":return c.stop()}},null,this,null,Promise)}}]),n})();e.V2QueriesMessageHandler=n},1614,[7,1611,8,622]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiscoverFeaturesModule=void 0;var o=(function(){function o(s){r(d[0])(this,o),this.api=r(d[1]).DiscoverFeaturesApi,this.config=new(r(d[2]).DiscoverFeaturesModuleConfig)(s)}return r(d[3])(o,[{key:"register",value:function(o,s){o.registerContextScoped(r(d[1]).DiscoverFeaturesApi),o.registerInstance(r(d[2]).DiscoverFeaturesModuleConfig,this.config),o.registerSingleton(r(d[4]).V1DiscoverFeaturesService),o.registerSingleton(r(d[5]).V2DiscoverFeaturesService),s.register(new(r(d[6]).Protocol)({id:'https://didcomm.org/discover-features/1.0',roles:['requester','responder']}),new(r(d[6]).Protocol)({id:'https://didcomm.org/discover-features/2.0',roles:['requester','responder']}))}}]),o})();e.DiscoverFeaturesModule=o},1615,[7,1593,1606,8,1596,1607,622]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MediatorModule=void 0;var o=(function(){function o(t){r(d[0])(this,o),this.api=r(d[1]).MediatorApi,this.config=new(r(d[2]).MediatorModuleConfig)(t)}return r(d[3])(o,[{key:"register",value:function(o,t){o.registerContextScoped(r(d[1]).MediatorApi),o.registerInstance(r(d[2]).MediatorModuleConfig,this.config),o.registerSingleton(r(d[4]).MediatorService),o.registerSingleton(r(d[5]).MessagePickupService),o.registerSingleton(r(d[5]).V2MessagePickupService),o.registerSingleton(r(d[6]).MediationRepository),o.registerSingleton(r(d[6]).MediatorRoutingRepository),t.register(new(r(d[7]).Protocol)({id:'https://didcomm.org/coordinate-mediation/1.0',roles:[r(d[8]).MediationRole.Mediator]}),new(r(d[7]).Protocol)({id:'https://didcomm.org/messagepickup/1.0',roles:['message_holder','recipient','batch_sender','batch_recipient']}),new(r(d[7]).Protocol)({id:'https://didcomm.org/messagepickup/2.0',roles:['mediator','recipient']}))}}]),o})();e.MediatorModule=o},1616,[7,1575,1583,8,1552,1557,1554,622,1510]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecipientModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.api=r(d[1]).RecipientApi,this.config=new(r(d[2]).RecipientModuleConfig)(n)}return r(d[3])(t,[{key:"register",value:function(t,n){t.registerContextScoped(r(d[1]).RecipientApi),t.registerInstance(r(d[2]).RecipientModuleConfig,this.config),t.registerSingleton(r(d[4]).MediationRecipientService),t.registerSingleton(r(d[4]).RoutingService),t.registerSingleton(r(d[5]).MediationRepository),n.register(new(r(d[6]).Protocol)({id:'https://didcomm.org/coordinate-mediation/1.0',roles:[r(d[7]).MediationRole.Recipient]}))}}]),t})();e.RecipientModule=t},1617,[7,1584,1525,8,1552,1554,622,1510]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{p({},"")}catch(t){p=function(t,n,o){return t[n]=o}}function h(t,n,o,i){var u=n&&n.prototype instanceof x?n:x,s=Object.create(u.prototype),l=new B(i||[]);return c(s,"_invoke",{value:I(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var y={};function x(){}function D(){}function b(){}var S={};p(S,s,function(){return this});var w=Object.getPrototypeOf,R=w&&w(w(F([])));R&&R!==o&&i.call(R,s)&&(S=R);var E=b.prototype=x.prototype=Object.create(S);function O(t){["next","throw","return"].forEach(function(n){p(t,n,function(t){return this._invoke(n,t)})})}function C(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var p=f.arg,h=p.value;return h&&"object"==typeof h&&i.call(h,"__await")?n.resolve(h.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(h).then(function(t){p.value=t,s(p)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function I(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return _()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=A(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function A(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,A(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function k(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),k(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;k(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o0))throw new Error('Missing required serviceEndpoint, routingKeys and/or did fields in connection invitation');c=new(r(d[0]).OutOfBandDidCommService)({id:'#inline',recipientKeys:null===(t=n.recipientKeys)||void 0===t?void 0:t.map(r(d[1]).verkeyToDidKey),routingKeys:null===(o=n.routingKeys)||void 0===o?void 0:o.map(r(d[1]).verkeyToDidKey),serviceEndpoint:n.serviceEndpoint})}var s={id:n.id,label:n.label,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments,accept:['didcomm/aip1','didcomm/aip2;env=rfc19'],services:[c],handshakeProtocols:[r(d[2]).HandshakeProtocol.Connections]};return new(r(d[3]).OutOfBandInvitation)(s)},e.convertToOldInvitation=function(n){var t,o,c=n.getServices(),s=r(d[4])(c,1)[0];return o='string'==typeof s?{id:n.id,label:n.label,did:s,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments}:{id:n.id,label:n.label,recipientKeys:s.recipientKeys.map(r(d[1]).didKeyToVerkey),routingKeys:null===(t=s.routingKeys)||void 0===t?void 0:t.map(r(d[1]).didKeyToVerkey),serviceEndpoint:s.serviceEndpoint,imageUrl:n.imageUrl,appendedAttachments:n.appendedAttachments},new(r(d[2]).ConnectionInvitationMessage)(o)}},1619,[1502,985,1425,1500,31]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new S(i||[]);return c(l,"_invoke",{value:T(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};s(b,l,function(){return this});var _=Object.getPrototypeOf,E=_&&_(_(V([])));E&&E!==o&&i.call(E,l)&&(b=E);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,u,l,f){var h=v(t[c],t,u);if("throw"!==h.type){var s=h.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){s.value=t,l(s)},function(t){return o("throw",t,l,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function T(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=k(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function V(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:V(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_2ToV0_3=void 0,e.updateV0_2ToV0_3=function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap((0,r(d[0]).migrateProofExchangeRecordToV0_3)(n));case 2:return o.next=4,t().awrap((0,r(d[1]).migrateConnectionRecordToV0_3)(n));case 4:case"end":return o.stop()}},null,null,null,Promise)}},1620,[1621,1627]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,o;function n(){n=function(){return t};var t={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,o,n){t[o]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,o,n){return Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[o]}try{h({},"")}catch(t){h=function(t,o,n){return t[o]=n}}function p(t,o,n,i){var s=o&&o.prototype instanceof w?o:w,u=Object.create(s.prototype),l=new C(i||[]);return c(u,"_invoke",{value:D(t,n,l)}),u}function v(t,o,n){try{return{type:"normal",arg:t.call(o,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var y={};function w(){}function b(){}function x(){}var P={};h(P,u,function(){return this});var M=Object.getPrototypeOf,R=M&&M(M(k([])));R&&R!==o&&i.call(R,u)&&(P=R);var S=x.prototype=w.prototype=Object.create(P);function L(t){["next","throw","return"].forEach(function(o){h(t,o,function(t){return this._invoke(o,t)})})}function E(t,o){function n(c,s,u,l){var f=v(t[c],t,s);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?o.resolve(p.__await).then(function(t){n("next",t,u,l)},function(t){n("throw",t,u,l)}):o.resolve(p).then(function(t){h.value=t,u(h)},function(t){return n("throw",t,u,l)})}l(f.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new o(function(o,c){n(t,i,o,c)})}return s=s?s.then(c,c):c()}})}function D(t,o,n){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return I()}for(n.method=c,n.arg=s;;){var u=n.delegate;if(u){var l=_(u,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var f=v(t,o,n);if("normal"===f.type){if(i=n.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(i="completed",n.method="throw",n.arg=f.arg)}}}function _(t,o){var n=o.method,i=t.iterator[n];if(void 0===i)return o.delegate=null,"throw"===n&&t.iterator.return&&(o.method="return",o.arg=void 0,_(t,o),"throw"===o.method)||"return"!==n&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var c=v(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,y;var s=c.arg;return s?s.done?(o[t.resultName]=s.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=void 0),o.delegate=null,y):s:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,y)}function j(t){var o={tryLoc:t[0]};1 in t&&(o.catchLoc=t[1]),2 in t&&(o.finallyLoc=t[2],o.afterLoc=t[3]),this.tryEntries.push(o)}function O(t){var o=t.completion||{};o.type="normal",delete o.arg,t.completion=o}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,c=function o(){for(;++n=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),f=i.call(s,"finallyLoc");if(l&&f){if(this.prev=0;--n){var c=this.tryEntries[n];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--o){var n=this.tryEntries[o];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var c=i.arg;O(n)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,n){return this.delegate={iterator:k(t),resultName:o,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},t}function i(t,o){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=c(t))||o&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,o){if(t){if("string"==typeof t)return s(t,o);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)?s(t,o):void 0}}function s(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),f=n.call(i,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),p}},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;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}var r=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProofRepository=void 0;var i=(function(r){_r(_d[2])(c,r);var n,o,i=(n=c,o=e(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function c(t,e){return _r(_d[3])(this,c),i.call(this,_r(_d[4]).ProofExchangeRecord,t,e)}return _r(_d[5])(c,[{key:"getByThreadAndConnectionId",value:function(e,r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getSingleByQuery(e,{threadId:r,connectionId:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByParentThreadAndConnectionId",value:function(e,r,n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.findByQuery(e,{parentThreadId:r,connectionId:n}));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),c})(_r(_d[6]).Repository);i=r([(0,_r(_d[7]).injectable)(),o(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),n("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],i),_e.ProofRepository=i},1622,[14,11,9,7,1623,8,1101,1019,1103,1104]); +__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProofExchangeRecord=void 0;var t=(function(t){r(d[2])(s,t);var o,n,c=(o=s,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(e){var t,o,n,u;return r(d[3])(this,s),(t=c.call(this)).type=s.type,e&&(t.id=null!==(o=e.id)&&void 0!==o?o:(0,r(d[4]).uuid)(),t.createdAt=null!==(n=e.createdAt)&&void 0!==n?n:new Date,t.protocolVersion=e.protocolVersion,t.isVerified=e.isVerified,t.state=e.state,t.connectionId=e.connectionId,t.threadId=e.threadId,t.parentThreadId=e.parentThreadId,t.autoAcceptProof=e.autoAcceptProof,t._tags=null!==(u=e.tags)&&void 0!==u?u:{},t.errorMessage=e.errorMessage),t}return r(d[5])(s,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{threadId:this.threadId,parentThreadId:this.parentThreadId,connectionId:this.connectionId,state:this.state})}},{key:"assertState",value:function(e){if(Array.isArray(e)||(e=[e]),!e.includes(this.state))throw new(r(d[7]).AriesFrameworkError)("Proof record is in invalid state "+this.state+". Valid states are: "+e.join(', ')+".")}},{key:"assertConnection",value:function(e){if(!this.connectionId)throw new(r(d[7]).AriesFrameworkError)("Proof record is not associated with any connection. This is often the case with connection-less presentation exchange");if(this.connectionId!==e)throw new(r(d[7]).AriesFrameworkError)("Proof record is associated with connection '"+this.connectionId+"'. Current connection is '"+e+"'")}}]),s})(r(d[8]).BaseRecord);_e.ProofExchangeRecord=t,t.type='ProofRecord'},1623,[14,11,9,7,952,8,4,611,1096]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1624,[1625,1399,1626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1625,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProofState=void 0,(function(t){t.ProposalSent="proposal-sent",t.ProposalReceived="proposal-received",t.RequestSent="request-sent",t.RequestReceived="request-received",t.PresentationSent="presentation-sent",t.PresentationReceived="presentation-received",t.Declined="declined",t.Abandoned="abandoned",t.Done="done"})(e.ProofState||(e.ProofState={}))},1626,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new P(i||[]);return c(l,"_invoke",{value:S(t,o,s)}),l}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v={};function w(){}function b(){}function x(){}var L={};h(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,l)&&(L=_);var j=x.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function T(t,n){function o(c,u,l,s){var f=y(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){h.value=t,l(h)},function(t){return o("throw",t,l,s)})}s(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function S(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return C()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=k(l,o);if(s){if(s===v)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=y(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var c=y(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,v;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function M(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),M(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;M(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o2&&void 0!==l[2]?l[2]:new Set,n.config.logger.debug("Migrating internal connection record type tags "+o.id+" to storage version 0.3"),c=o.getTags().connectionType||[],u=r(d[2])(c),i.has(o.id)&&!u.includes(r(d[0]).ConnectionType.Mediator)&&u.push(r(d[0]).ConnectionType.Mediator),o.connectionTypes=u,o.setTag('connectionType',void 0),n.config.logger.debug("Successfully migrated internal connection record type tags "+o.id+" to storage version 0.3");case 8:case"end":return t.stop()}},null,null,null,Promise)}Object.defineProperty(e,"__esModule",{value:!0}),e.migrateConnectionRecordTags=e.migrateConnectionRecordToV0_3=void 0,e.migrateConnectionRecordToV0_3=function(o){var i,u,l,s,f,h,p,y;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:return o.config.logger.info('Migrating connection records to storage version 0.3'),i=o.dependencyManager.resolve(r(d[0]).ConnectionRepository),u=o.dependencyManager.resolve(r(d[1]).MediationRepository),o.config.logger.debug('Fetching all connection records from storage'),v.next=6,t().awrap(i.getAll(o.context));case 6:return l=v.sent,o.config.logger.debug("Found a total of "+l.length+" connection records to update"),o.config.logger.debug('Fetching all mediation records from storage'),v.next=11,t().awrap(u.getAll(o.context));case 11:s=v.sent,o.config.logger.debug("Found a total of "+s.length+" mediation records"),f=new Set(s.map(function(t){return t.connectionId})),h=n(l);case 15:if((p=h()).done){v.next=25;break}return y=p.value,o.config.logger.debug("Migrating connection record with id "+y.id+" to storage version 0.3"),v.next=20,t().awrap(c(o,y,f));case 20:return v.next=22,t().awrap(i.update(o.context,y));case 22:o.config.logger.debug("Successfully migrated connection record with id "+y.id+" to storage version 0.3");case 23:v.next=15;break;case 25:case"end":return v.stop()}},null,null,null,Promise)},e.migrateConnectionRecordTags=c},1627,[1425,1551,42]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new S(i||[]);return c(l,"_invoke",{value:k(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var _={};s(_,l,function(){return this});var b=Object.getPrototypeOf,E=b&&b(b(F([])));E&&E!==o&&i.call(E,l)&&(_=E);var O=L.prototype=w.prototype=Object.create(_);function j(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,u,l,f){var h=v(t[c],t,u);if("throw"!==h.type){var s=h.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){s.value=t,l(s)},function(t){return o("throw",t,l,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return V()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=G(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function T(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),T(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;T(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.updateV0_3ToV0_3_1=void 0,e.updateV0_3ToV0_3_1=function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap((0,r(d[0]).migrateDidRecordToV0_3_1)(n));case 2:case"end":return o.stop()}},null,null,null,Promise)}},1628,[1629]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new N(i||[]);return c(l,"_invoke",{value:k(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};h(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(L=_);var j=x.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,l,f){var s=v(t[c],t,u);if("throw"!==s.type){var h=s.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){h.value=t,l(h)},function(t){return o("throw",t,l,f)})}f(s.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=A(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var s=v(t,n,o);if("normal"===s.type){if(i=o.done?"completed":"suspendedYield",s.arg===y)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(i="completed",o.method="throw",o.arg=s.arg)}}}function A(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,A(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),s=i.call(u,"finallyLoc");if(f&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=0;--s){var c=this.tryEntries[s],u=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),h=o.call(c,"finallyLoc");if(l&&h){if(this.prev=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&o.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),C(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;C(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:U(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},t}Object.defineProperty(e,"__esModule",{value:!0}),e.UpdateAssistant=void 0;var s=(function(){function n(t,o){r(d[0])(this,n),this.agent=t,this.updateConfig=o,this.storageUpdateService=this.agent.dependencyManager.resolve(r(d[1]).StorageUpdateService),this.fileSystem=this.agent.dependencyManager.resolve(r(d[2]).InjectionSymbols.FileSystem)}return r(d[3])(n,[{key:"initialize",value:function(){return i().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.agent.isInitialized){t.next=2;break}throw new(r(d[4]).AriesFrameworkError)("Can't initialize UpdateAssistant after agent is initialized");case 2:if(this.agent.wallet.isInitialized||!this.agent.config.walletConfig){t.next=7;break}return t.next=5,i().awrap(this.agent.wallet.initialize(this.agent.config.walletConfig));case 5:t.next=9;break;case 7:if(this.agent.wallet.isInitialized){t.next=9;break}throw new(r(d[5]).WalletError)("Wallet config has not been set on the agent config. Make sure to initialize the wallet yourself before initializing the update assistant, or provide the required wallet configuration in the agent constructor");case 9:case"end":return t.stop()}},null,this,null,Promise)}},{key:"isUpToDate",value:function(t){return i().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.storageUpdateService.isUpToDate(this.agent.context,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getCurrentAgentStorageVersion",value:function(){return i().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.storageUpdateService.getCurrentStorageVersion(this.agent.context));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getNeededUpdates",value:function(t){var n,o,s,c;return i().async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=r(d[6]).parseVersionString,u.next=3,i().awrap(this.storageUpdateService.getCurrentStorageVersion(this.agent.context));case 3:if(u.t1=u.sent,n=(0,u.t0)(u.t1),!(o=t?(0,r(d[6]).parseVersionString)(t):void 0)||!(0,r(d[6]).isFirstVersionHigherThanSecond)(n,o)&&!(0,r(d[6]).isFirstVersionEqualToSecond)(n,o)){u.next=8;break}return u.abrupt("return",[]);case 8:if(!((s=r(d[7]).supportedUpdates.filter(function(t){var i=(0,r(d[6]).parseVersionString)(t.toVersion);return(!o||!(0,r(d[6]).isFirstVersionHigherThanSecond)(i,o))&&(0,r(d[6]).isFirstVersionHigherThanSecond)(i,n)})).length>0&&(0,r(d[6]).isFirstVersionHigherThanSecond)((0,r(d[6]).parseVersionString)(s[0].fromVersion),n))){u.next=11;break}throw new(r(d[4]).AriesFrameworkError)("First fromVersion is higher than current storage version. You need to use an older version of the framework to update to at least version "+s[0].fromVersion);case 11:if(c=s.length>0?s[s.length-1].toVersion:void 0,!t||!c||c===t){u.next=14;break}throw new(r(d[4]).AriesFrameworkError)("No update found for toVersion "+t+". Make sure the toVersion is a valid version you can update to");case 14:return u.abrupt("return",s);case 15:case"end":return u.stop()}},null,this,null,Promise)}},{key:"update",value:function(n){var o,s,c,u,l,h,f,p,v,y,w;return i().async(function(b){for(;;)switch(b.prev=b.next){case 0:return o=Date.now().toString(),b.prev=1,this.agent.config.logger.info("Starting update of agent storage with updateIdentifier "+o),b.next=5,i().awrap(this.getNeededUpdates(n));case 5:return s=b.sent,b.t0=r(d[6]).parseVersionString,b.next=9,i().awrap(this.storageUpdateService.getCurrentStorageVersion(this.agent.context));case 9:if(b.t1=b.sent,c=(0,b.t0)(b.t1),!(u=n?(0,r(d[6]).parseVersionString)(n):void 0)||!(0,r(d[6]).isFirstVersionHigherThanSecond)(c,u)&&!(0,r(d[6]).isFirstVersionEqualToSecond)(c,u)){b.next=14;break}throw new(r(d[8]).StorageUpdateError)("Can't update to version "+n+" because it is lower or equal to the current agent storage version "+c[0]+"."+c[1]+"}");case 14:if(0!=s.length){b.next=17;break}return this.agent.config.logger.info('No update needed. Agent storage is up to date.'),b.abrupt("return");case 17:return l=s[0].fromVersion,h=s[s.length-1].toVersion,this.agent.config.logger.info("Starting update process. Total of "+s.length+" update(s) will be applied to update the agent storage from version "+l+" to version "+h),b.next=22,i().awrap(this.createBackup(o));case 22:b.prev=22,f=t(s);case 24:if((p=f()).done){b.next=34;break}return v=p.value,this.agent.config.logger.info("Starting update of agent storage from version "+v.fromVersion+" to version "+v.toVersion),b.next=29,i().awrap(v.doUpdate(this.agent,this.updateConfig));case 29:return b.next=31,i().awrap(this.storageUpdateService.setCurrentStorageVersion(this.agent.context,v.toVersion));case 31:this.agent.config.logger.info("Successfully updated agent storage from version "+v.fromVersion+" to version "+v.toVersion);case 32:b.next=24;break;case 34:b.next=42;break;case 36:return b.prev=36,b.t2=b.catch(22),this.agent.config.logger.fatal('An error occurred while updating the wallet. Restoring backup',{error:b.t2}),b.next=41,i().awrap(this.restoreBackup(o));case 41:throw b.t2;case 42:b.next=53;break;case 44:if(b.prev=44,b.t3=b.catch(1),!(b.t3 instanceof r(d[4]).AriesFrameworkError&&(0,r(d[9]).isIndyError)(b.t3.cause,'CommonIOError'))){b.next=51;break}throw y=this.getBackupPath(o),w="Error updating storage with updateIdentifier "+o+" because of an IO error. This is probably because the backup at path "+y+" already exists",this.agent.config.logger.fatal(w,{error:b.t3,updateIdentifier:o,backupPath:y}),new(r(d[8]).StorageUpdateError)(w,{cause:b.t3});case 51:throw this.agent.config.logger.error("Error updating storage (updateIdentifier: "+o+")",{cause:b.t3}),new(r(d[8]).StorageUpdateError)("Error updating storage (updateIdentifier: "+o+"): "+b.t3.message,{cause:b.t3});case 53:return b.abrupt("return",o);case 54:case"end":return b.stop()}},null,this,[[1,44],[22,36]],Promise)}},{key:"getBackupPath",value:function(t){return this.fileSystem.basePath+"/afj/migration/backup/"+t}},{key:"createBackup",value:function(t){var n,o,s;return i().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=this.getBackupPath(t),s=null===(n=this.agent.wallet.walletConfig)||void 0===n?void 0:n.key){c.next=4;break}throw new(r(d[4]).AriesFrameworkError)("Could not extract wallet key from wallet module. Can't create backup");case 4:return c.next=6,i().awrap(this.agent.wallet.export({key:s,path:o}));case 6:this.agent.config.logger.info('Created backup of the wallet',{backupPath:o});case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"restoreBackup",value:function(t){var n,o;return i().async(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=this.getBackupPath(t),o=this.agent.wallet.walletConfig){s.next=4;break}throw new(r(d[4]).AriesFrameworkError)('Could not extract wallet config from wallet module. Cannot restore backup');case 4:return s.next=6,i().awrap(this.agent.wallet.export({key:o.key,path:n+"-error"}));case 6:return s.next=8,i().awrap(this.agent.wallet.delete());case 8:return s.next=10,i().awrap(this.agent.wallet.import(o,{key:o.key,path:n}));case 10:return s.next=12,i().awrap(this.agent.wallet.initialize(o));case 12:this.agent.config.logger.info("Successfully restored wallet from backup "+t,{backupPath:n});case 13:case"end":return s.stop()}},null,this,null,Promise)}}],[{key:"frameworkStorageVersion",get:function(){return r(d[7]).CURRENT_FRAMEWORK_STORAGE_VERSION}}]),n})();e.UpdateAssistant=s},1630,[7,1540,1103,8,611,1371,943,1541,1631,1362]); +__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.StorageUpdateError=void 0;var e=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).cause;return r(d[3])(this,u),c.call(this,t,{cause:e})}return r(d[4])(u)})(r(d[5]).AriesFrameworkError);_e.StorageUpdateError=e},1631,[14,11,9,7,8,612]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1632,[1633]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,n){return t[r]=n}}function h(t,r,n,o){var c=r&&r.prototype instanceof p?r:p,s=Object.create(c.prototype),u=new I(o||[]);return i(s,"_invoke",{value:j(t,n,u)}),s}function v(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var d={};function p(){}function y(){}function w(){}var x={};l(x,s,function(){return this});var b=Object.getPrototypeOf,R=b&&b(b(P([])));R&&R!==n&&o.call(R,s)&&(x=R);var _=w.prototype=p.prototype=Object.create(x);function E(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function L(t,r){function n(i,c,s,u){var f=v(t[i],t,c);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(h).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,u)})}u(f.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function j(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return F()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===d)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=v(t,r,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===d)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=v(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,d):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(u&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RevocationNotificationService=void 0;var i=(function(){function r(t,n,o,i){_r(_d[0])(this,r),this.credentialRepository=t,this.eventEmitter=n,this.dispatcher=o,this.logger=i,this.registerMessageHandlers()}return _r(_d[1])(r,[{key:"processRevocationNotification",value:function(r,n,o,i,c){var s,u,f;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return s={indyRevocationRegistryId:n,indyCredentialRevocationId:o,connectionId:i.id},this.logger.trace("Getting record by query for revocation notification:",s),l.next=4,t().awrap(this.credentialRepository.getSingleByQuery(r,s));case 4:return(u=l.sent).revocationNotification=new(_r(_d[2]).RevocationNotification)(c),l.next=8,t().awrap(this.credentialRepository.update(r,u));case 8:f=_r(_d[3]).JsonTransformer.clone(u),this.logger.trace('Emitting RevocationNotificationReceivedEvent'),this.eventEmitter.emit(r,{type:_r(_d[4]).CredentialEventTypes.RevocationNotificationReceived,payload:{credentialRecord:f}});case 11:case"end":return l.stop()}},null,this,null,Promise)}},{key:"v1ProcessRevocationNotification",value:function(r){var n,o,i,c,s,u,f;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.logger.info('Processing revocation notification v1',{message:r.message}),n=r.message.issueThread,l.prev=2,o=n.match(_r(_d[5]).v1ThreadRegex)){l.next=6;break}throw new(_r(_d[6]).AriesFrameworkError)("Incorrect revocation notification threadId format: \n"+n+"\ndoes not match\n\"indy::::\"");case 6:return i=_r(_d[7])(o,4),c=i[2],s=i[3],u=r.message.comment,f=r.assertReadyConnection(),l.next=11,t().awrap(this.processRevocationNotification(r.agentContext,c,s,f,u));case 11:l.next=16;break;case 13:l.prev=13,l.t0=l.catch(2),this.logger.warn('Failed to process revocation notification message',{error:l.t0,threadId:n});case 16:case"end":return l.stop()}},null,this,[[2,13]],Promise)}},{key:"v2ProcessRevocationNotification",value:function(r){var n,o,i,c,s,u,f;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.logger.info('Processing revocation notification v2',{message:r.message}),n=r.message.credentialId,r.message.revocationFormat===_r(_d[5]).v2IndyRevocationFormat){l.next=4;break}throw new(_r(_d[6]).AriesFrameworkError)("Unknown revocation format: "+r.message.revocationFormat+". Supported formats are indy-anoncreds");case 4:if(l.prev=4,o=n.match(_r(_d[5]).v2IndyRevocationIdentifierRegex)){l.next=8;break}throw new(_r(_d[6]).AriesFrameworkError)("Incorrect revocation notification credentialId format: \n"+n+"\ndoes not match\n\"::\"");case 8:return i=_r(_d[7])(o,3),c=i[1],s=i[2],u=r.message.comment,f=r.assertReadyConnection(),l.next=13,t().awrap(this.processRevocationNotification(r.agentContext,c,s,f,u));case 13:l.next=18;break;case 15:l.prev=15,l.t0=l.catch(4),this.logger.warn('Failed to process revocation notification message',{error:l.t0,credentialId:n});case 18:case"end":return l.stop()}},null,this,[[4,15]],Promise)}},{key:"registerMessageHandlers",value:function(){this.dispatcher.registerMessageHandler(new(_r(_d[8]).V1RevocationNotificationHandler)(this)),this.dispatcher.registerMessageHandler(new(_r(_d[8]).V2RevocationNotificationHandler)(this))}}]),r})();i=r([(0,_r(_d[9]).injectable)(),o(3,(0,_r(_d[9]).inject)(_r(_d[10]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[11]).CredentialRepository,_r(_d[12]).EventEmitter,_r(_d[13]).Dispatcher,Object])],i),e.RevocationNotificationService=i},1633,[7,8,1634,992,1635,1636,612,31,1637,1019,1103,1642,1104,1493]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RevocationNotification=void 0;var t=r(d[0])(function t(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;r(d[1])(this,t),this.revocationDate=n,this.comment=o});e.RevocationNotification=t},1634,[8,7]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialEventTypes=void 0,(function(t){t.CredentialStateChanged="CredentialStateChanged",t.RevocationNotificationReceived="RevocationNotificationReceived"})(e.CredentialEventTypes||(e.CredentialEventTypes={}))},1635,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.v2IndyRevocationFormat=e.v2IndyRevocationIdentifierRegex=e.v1ThreadRegex=void 0,e.v1ThreadRegex=/(indy)::((?:[\dA-z]{21,22}):4:(?:[\dA-z]{21,22}):3:[Cc][Ll]:(?:(?:[1-9][0-9]*)|(?:[\dA-z]{21,22}:2:.+:[0-9.]+)):.+?:CL_ACCUM:(?:[\dA-z-]+))::(\d+)$/,e.v2IndyRevocationIdentifierRegex=/((?:[\dA-z]{21,22}):4:(?:[\dA-z]{21,22}):3:[Cc][Ll]:(?:(?:[1-9][0-9]*)|(?:[\dA-z]{21,22}:2:.+:[0-9.]+)):.+?:CL_ACCUM:(?:[\dA-z-]+))::(\d+)$/,e.v2IndyRevocationFormat='indy-anoncreds'},1636,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1637,[1638,1640]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function v(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),f=new F(i||[]);return c(s,"_invoke",{value:P(t,o,f)}),s}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=v;var y={};function w(){}function x(){}function L(){}var b={};l(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function N(t,n){function o(c,u,s,f){var h=p(t[c],t,u);if("throw"!==h.type){var l=h.arg,v=l.value;return v&&"object"==typeof v&&i.call(v,"__await")?n.resolve(v.__await).then(function(t){o("next",t,s,f)},function(t){o("throw",t,s,f)}):n.resolve(v).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var f=k(s,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=p(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=p(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1RevocationNotificationHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1RevocationNotificationMessage],this.revocationService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.revocationService.v1ProcessRevocationNotification(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V1RevocationNotificationHandler=n},1638,[7,1639,8]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1RevocationNotificationMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,o;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.issueThread=e.issueThread,t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.comment=e.comment,t.pleaseAck=e.pleaseAck),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/revocation_notification/1.0/revoke'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'thread_id'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"issueThread",void 0),_e.V1RevocationNotificationMessage=n},1639,[14,11,9,7,8,948,941,661,626]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function v(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),f=new F(i||[]);return c(s,"_invoke",{value:P(t,o,f)}),s}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=v;var y={};function w(){}function x(){}function L(){}var b={};l(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,s)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function N(t,n){function o(c,u,s,f){var h=p(t[c],t,u);if("throw"!==h.type){var l=h.arg,v=l.value;return v&&"object"==typeof v&&i.call(v,"__await")?n.resolve(v.__await).then(function(t){o("next",t,s,f)},function(t){o("throw",t,s,f)}):n.resolve(v).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var f=k(s,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=p(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=p(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2RevocationNotificationHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2RevocationNotificationMessage],this.revocationService=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.revocationService.v2ProcessRevocationNotification(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V2RevocationNotificationHandler=n},1640,[7,1641,8]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2RevocationNotificationMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var o,n,r=(o=i,n=e(),function(){var e,t=_r(_d[0])(o);if(n){var r=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,o;return _r(_d[3])(this,i),(t=r.call(this)).type=i.type.messageTypeUri,e&&(t.revocationFormat=e.revocationFormat,t.credentialId=e.credentialId,t.id=null!==(o=e.id)&&void 0!==o?o:t.generateId(),t.comment=e.comment,t.pleaseAck=e.pleaseAck),t}return _r(_d[4])(i)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/revocation_notification/2.0/revoke'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),o("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),o("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'revocation_format'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"revocationFormat",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_id'}),(0,_r(_d[7]).IsString)(),o("design:type",String)],n.prototype,"credentialId",void 0),_e.V2RevocationNotificationMessage=n},1641,[14,11,9,7,8,948,941,661,626]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1642,[1545,1544,1546]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialsModuleConfig=void 0;var t=(function(){function t(o){r(d[0])(this,t),this.options=o}return r(d[1])(t,[{key:"autoAcceptCredentials",get:function(){var t;return null!==(t=this.options.autoAcceptCredentials)&&void 0!==t?t:r(d[2]).AutoAcceptCredential.Never}},{key:"credentialProtocols",get:function(){return this.options.credentialProtocols}}]),t})();e.CredentialsModuleConfig=t},1643,[7,8,1644]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1644,[1634,1548,1400,1645,1549]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,i){var n,c=arguments.length,f=c<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,r,i);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(f=(c<3?n(f):c>3?n(o,r,f):n(o,r))||f);return c>3&&f&&Object.defineProperty(o,r,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialFormatSpec=void 0;var r=_r(_d[0])(function t(o){var r;_r(_d[1])(this,t),o&&(this.attachId=null!==(r=o.attachId)&&void 0!==r?r:(0,_r(_d[2]).uuid)(),this.format=o.format)});t([(0,_r(_d[3]).Expose)({name:'attach_id'}),(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"attachId",void 0),t([(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"format",void 0),e.CredentialFormatSpec=r},1645,[8,7,952,626,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1646,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1647,[1648,1649,1650,1651,1689]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1648,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1649,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1650,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1651,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1652,[1653,1658,1689]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1653,[1654,1655,1656,1548,1657]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,o,r){var i,d=arguments.length,c=d<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,o,r);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(d<3?i(c):d>3?i(n,o,c):i(n,o))||c);return d>3&&c&&Object.defineProperty(n,o,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredential=void 0;var o=(function(){function t(n){_r(_d[0])(this,t),n&&(this.credentialInfo=n.credentialInfo,this.interval=n.interval)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).Expose)({name:'cred_info'}),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).IndyCredentialInfo}),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(_r(_d[4]).IndyCredentialInfo),n("design:type",_r(_d[4]).IndyCredentialInfo)],o.prototype,"credentialInfo",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[3]).Type)(function(){return _r(_d[6]).IndyRevocationInterval}),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(_r(_d[6]).IndyRevocationInterval),n("design:type",_r(_d[6]).IndyRevocationInterval)],o.prototype,"interval",void 0),e.IndyCredential=o},1654,[7,8,626,627,1655,662,1656]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,d=arguments.length,s=d<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(d<3?o(s):d>3?o(i,n,s):o(i,n))||s);return d>3&&s&&Object.defineProperty(i,n,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredentialInfo=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),i&&(this.referent=i.referent,this.attributes=i.attributes,this.schemaId=i.schemaId,this.credentialDefinitionId=i.credentialDefinitionId,this.revocationRegistryId=i.revocationRegistryId,this.credentialRevocationId=i.credentialRevocationId)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"referent",void 0),t([(0,_r(_d[4]).Expose)({name:'attrs'}),(0,_r(_d[3]).IsString)({each:!0}),i("design:type",Object)],n.prototype,"attributes",void 0),t([(0,_r(_d[4]).Expose)({name:'schema_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"schemaId",void 0),t([(0,_r(_d[4]).Expose)({name:'cred_def_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[4]).Expose)({name:'rev_reg_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],n.prototype,"revocationRegistryId",void 0),t([(0,_r(_d[4]).Expose)({name:'cred_rev_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],n.prototype,"credentialRevocationId",void 0),e.IndyCredentialInfo=n},1655,[7,8,993,662,627]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,n,r){var i,c=arguments.length,f=c<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(f=(c<3?i(f):c>3?i(o,n,f):i(o,n))||f);return c>3&&f&&Object.defineProperty(o,n,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyRevocationInterval=void 0;var n=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.from=o.from,this.to=o.to)});t([(0,_r(_d[2]).IsInt)(),(0,_r(_d[2]).IsOptional)(),o("design:type",Number)],n.prototype,"from",void 0),t([(0,_r(_d[2]).IsInt)(),(0,_r(_d[2]).IsOptional)(),o("design:type",Number)],n.prototype,"to",void 0),e.IndyRevocationInterval=n},1656,[8,7,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,s,n){var o,r=arguments.length,d=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,s,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(d=(r<3?o(d):r>3?o(i,s,d):o(i,s))||d);return r>3&&d&&Object.defineProperty(i,s,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredPropose=void 0;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.schemaIssuerDid=i.schemaIssuerDid,this.schemaId=i.schemaId,this.schemaName=i.schemaName,this.schemaVersion=i.schemaVersion,this.credentialDefinitionId=i.credentialDefinitionId,this.issuerDid=i.issuerDid)});t([(0,_r(_d[2]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaId",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_name'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaName",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_version'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaVersion",void 0),t([(0,_r(_d[2]).Expose)({name:'cred_def_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[2]).Expose)({name:'issuer_did'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"issuerDid",void 0),e.IndyCredPropose=s},1657,[8,7,627,662]); -__d(function(g,r,_i,a,m,_e,d){"use strict";var e=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1CredentialAckMessage=void 0;var c=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(c.type),r("design:type",Object)],c.prototype,"type",void 0),_e.V1CredentialAckMessage=c},1662,[14,11,9,7,8,1485,942]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,c=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(r,i,c):o(r,i))||c);return s>3&&c&&Object.defineProperty(r,i,c),c},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialPreview=void 0;var i=(function(){function t(r){_r(_d[0])(this,t),this.type=t.type.messageTypeUri,r&&(this.attributes=r.attributes)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}],[{key:"fromRecord",value:function(r){return new t({attributes:Object.entries(r).map(function(t){var r=_r(_d[3])(t,2),i=r[0],n=r[1];return new(_r(_d[4]).CredentialPreviewAttribute)({name:i,mimeType:'text/plain',value:n})})})}}]),t})();i.type=(0,_r(_d[5]).parseMessageType)('https://didcomm.org/issue-credential/1.0/credential-preview'),t([(0,_r(_d[6]).Expose)({name:'@type'}),(0,_r(_d[5]).IsValidMessageType)(i.type),(0,_r(_d[6]).Transform)(function(t){var r=t.value;return(0,_r(_d[5]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[6]).Type)(function(){return _r(_d[4]).CredentialPreviewAttribute}),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[4]).CredentialPreviewAttribute,{each:!0}),r("design:type",Array)],i.prototype,"attributes",void 0),e.V1CredentialPreview=i},1663,[7,8,626,31,1549,942,627,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(c=e[o])&&(i=(s<3?c(i):s>3?c(t,n,i):c(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1RequestCredentialMessage=_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID='libindy-cred-request-0';var r=(function(t){_r(_d[2])(s,t);var n,r,c=(n=s,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t;return _r(_d[3])(this,s),(t=c.call(this)).type=s.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.requestAttachments=e.requestAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(s,[{key:"indyCredentialRequest",get:function(){var e,t=this.requestAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getRequestAttachmentById",value:function(e){return this.requestAttachments.find(function(t){return t.id===e})}}]),s})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/request-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'requests~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[9]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"requestAttachments",void 0),_e.V1RequestCredentialMessage=r},1664,[14,11,9,7,8,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,n,o):c(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1IssueCredentialMessage=_e.INDY_CREDENTIAL_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_ATTACHMENT_ID='libindy-cred-0';var r=(function(t){_r(_d[2])(i,t);var n,r,c=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.comment=e.comment,t.credentialAttachments=e.credentialAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(i,[{key:"indyCredential",get:function(){var e,t=this.credentialAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getCredentialAttachmentById",value:function(e){return this.credentialAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/issue-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credentials~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[9]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"credentialAttachments",void 0),_e.V1IssueCredentialMessage=r},1665,[14,11,9,7,8,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var f=e.length-1;f>=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1OfferCredentialMessage=_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID='libindy-cred-offer-0';var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.offerAttachments=e.offerAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(o,[{key:"indyCredentialOffer",get:function(){var e,t=this.offerAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getOfferAttachmentById",value:function(e){return this.offerAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/offer-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_preview'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).V1CredentialPreview}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[9]).V1CredentialPreview),n("design:type",_r(_d[9]).V1CredentialPreview)],r.prototype,"credentialPreview",void 0),t([(0,_r(_d[8]).Expose)({name:'offers~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"offerAttachments",void 0),_e.V1OfferCredentialMessage=r},1666,[14,11,9,7,8,949,942,662,627,1663,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1ProposeCredentialMessage=void 0;var n=(function(t){_r(_d[2])(r,t);var i,n,s=(i=r,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function r(e){var t,i;return _r(_d[3])(this,r),(t=s.call(this)).type=r.type.messageTypeUri,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.schemaIssuerDid=e.schemaIssuerDid,t.schemaId=e.schemaId,t.schemaName=e.schemaName,t.schemaVersion=e.schemaVersion,t.credentialDefinitionId=e.credentialDefinitionId,t.issuerDid=e.issuerDid,t.appendedAttachments=e.attachments),t}return _r(_d[4])(r,[{key:"getAttachment",value:function(){return this.appendedAttachments?this.appendedAttachments[0]:void 0}}]),r})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/propose-credential'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),i("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),i("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_proposal'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).V1CredentialPreview}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[9]).V1CredentialPreview),i("design:type",_r(_d[9]).V1CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).indyDidRegex),i("design:type",String)],n.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_id'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).schemaIdRegex),i("design:type",String)],n.prototype,"schemaId",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_name'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),i("design:type",String)],n.prototype,"schemaName",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_version'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).schemaVersionRegex,{message:'Version must be X.X or X.X.X'}),i("design:type",String)],n.prototype,"schemaVersion",void 0),t([(0,_r(_d[8]).Expose)({name:'cred_def_id'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).credDefIdRegex),i("design:type",String)],n.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[8]).Expose)({name:'issuer_did'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).indyDidRegex),i("design:type",String)],n.prototype,"issuerDid",void 0),_e.V1ProposeCredentialMessage=n},1667,[14,11,9,7,8,949,942,662,627,1663,993]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1CredentialProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V1CredentialProblemReportMessage=o},1668,[14,11,9,7,8,948,942]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialProblemReportReason=void 0,(function(n){n.IssuanceAbandoned="issuance-abandoned"})(e.CredentialProblemReportReason||(e.CredentialProblemReportReason={}))},1669,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,n,o){var i,s=arguments.length,c=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,n,o);else for(var l=r.length-1;l>=0;l--)(i=r[l])&&(c=(s<3?i(c):s>3?i(t,n,c):i(t,n))||c);return s>3&&c&&Object.defineProperty(t,n,c),c},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)},n=this&&this.__param||function(r,t){return function(n,o){t(n,o,r)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyHolderService=void 0;var o=(function(){function r(t,n,o){_r(_d[0])(this,r),this.indy=o.indy,this.indyRevocationService=t,this.logger=n}return _r(_d[1])(r,[{key:"createProof",value:function(r,t){var n,o,i,s,c,l;return _r(_d[2]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=t.proofRequest,o=t.requestedCredentials,i=t.schemas,s=t.credentialDefinitions,(0,_r(_d[3]).assertIndyWallet)(r.wallet),d.prev=2,this.logger.debug('Creating Indy Proof'),d.next=6,_r(_d[2]).awrap(this.indyRevocationService.createRevocationState(r,n,o));case 6:return c=d.sent,d.next=9,_r(_d[2]).awrap(this.indy.proverCreateProof(r.wallet.handle,n,o.toJSON(),r.wallet.masterSecretId,i,s,c));case 9:return l=d.sent,this.logger.trace('Created Indy Proof',{indyProof:l}),d.abrupt("return",l);case 14:throw d.prev=14,d.t0=d.catch(2),this.logger.error("Error creating Indy Proof",{error:d.t0,proofRequest:n,requestedCredentials:o}),(0,_r(_d[4]).isIndyError)(d.t0)?new(_r(_d[5]).IndySdkError)(d.t0):d.t0;case 18:case"end":return d.stop()}},null,this,[[2,14]],Promise)}},{key:"storeCredential",value:function(r,t){var n,o,i,s,c;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=t.credentialRequestMetadata,o=t.credential,i=t.credentialDefinition,s=t.credentialId,c=t.revocationRegistryDefinition,(0,_r(_d[3]).assertIndyWallet)(r.wallet),l.prev=2,l.next=5,_r(_d[2]).awrap(this.indy.proverStoreCredential(r.wallet.handle,null!==s&&void 0!==s?s:null,n,o,i,null!==c&&void 0!==c?c:null));case 5:return l.abrupt("return",l.sent);case 8:throw l.prev=8,l.t0=l.catch(2),this.logger.error("Error storing Indy Credential '"+s+"'",{error:l.t0}),(0,_r(_d[4]).isIndyError)(l.t0)?new(_r(_d[5]).IndySdkError)(l.t0):l.t0;case 12:case"end":return l.stop()}},null,this,[[2,8]],Promise)}},{key:"getCredential",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return(0,_r(_d[3]).assertIndyWallet)(r.wallet),n.prev=1,n.next=4,_r(_d[2]).awrap(this.indy.proverGetCredential(r.wallet.handle,t));case 4:return n.abrupt("return",n.sent);case 7:throw n.prev=7,n.t0=n.catch(1),this.logger.error("Error getting Indy Credential '"+t+"'",{error:n.t0}),(0,_r(_d[4]).isIndyError)(n.t0)?new(_r(_d[5]).IndySdkError)(n.t0):n.t0;case 11:case"end":return n.stop()}},null,this,[[1,7]],Promise)}},{key:"createCredentialRequest",value:function(r,t){var n,o,i;return _r(_d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.holderDid,o=t.credentialOffer,i=t.credentialDefinition,(0,_r(_d[3]).assertIndyWallet)(r.wallet),s.prev=2,s.next=5,_r(_d[2]).awrap(this.indy.proverCreateCredentialReq(r.wallet.handle,n,o,i,r.wallet.masterSecretId));case 5:return s.abrupt("return",s.sent);case 8:throw s.prev=8,s.t0=s.catch(2),this.logger.error("Error creating Indy Credential Request",{error:s.t0,credentialOffer:o}),(0,_r(_d[4]).isIndyError)(s.t0)?new(_r(_d[5]).IndySdkError)(s.t0):s.t0;case 12:case"end":return s.stop()}},null,this,[[2,8]],Promise)}},{key:"getCredentialsForProofRequest",value:function(r,t){var n,o,i,s,c,l,d,u,f;return _r(_d[2]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=t.proofRequest,o=t.attributeReferent,i=t.start,s=void 0===i?0:i,c=t.limit,l=void 0===c?256:c,d=t.extraQuery,(0,_r(_d[3]).assertIndyWallet)(r.wallet),h.prev=2,h.next=5,_r(_d[2]).awrap(this.indy.proverSearchCredentialsForProofReq(r.wallet.handle,n,null!==d&&void 0!==d?d:null));case 5:if(u=h.sent,h.prev=6,!(s>0)){h.next=10;break}return h.next=10,_r(_d[2]).awrap(this.fetchCredentialsForReferent(u,o,s));case 10:return h.next=12,_r(_d[2]).awrap(this.fetchCredentialsForReferent(u,o,l));case 12:return f=h.sent,h.abrupt("return",f);case 14:return h.prev=14,h.next=17,_r(_d[2]).awrap(this.indy.proverCloseCredentialsSearchForProofReq(u));case 17:return h.finish(14);case 18:h.next=25;break;case 20:if(h.prev=20,h.t0=h.catch(2),!(0,_r(_d[4]).isIndyError)(h.t0)){h.next=24;break}throw new(_r(_d[5]).IndySdkError)(h.t0);case 24:throw h.t0;case 25:case"end":return h.stop()}},null,this,[[2,20],[6,,14,18]],Promise)}},{key:"deleteCredential",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return(0,_r(_d[3]).assertIndyWallet)(r.wallet),n.prev=1,n.next=4,_r(_d[2]).awrap(this.indy.proverDeleteCredential(r.wallet.handle,t));case 4:return n.abrupt("return",n.sent);case 7:throw n.prev=7,n.t0=n.catch(1),this.logger.error("Error deleting Indy Credential from Wallet",{error:n.t0}),(0,_r(_d[4]).isIndyError)(n.t0)?new(_r(_d[5]).IndySdkError)(n.t0):n.t0;case 11:case"end":return n.stop()}},null,this,[[1,7]],Promise)}},{key:"fetchCredentialsForReferent",value:function(r,t,n){var o,i,s;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:c.prev=0,o=[],i=n?Math.min(256,n):256;case 3:if(n&&!(o.length=0;d--)(o=t[d])&&(c=(s<3?o(c):s>3?o(r,n,c):o(r,n))||c);return s>3&&c&&Object.defineProperty(r,n,c),c},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyRevocationService=void 0,(function(t){t.Attribute="attribute",t.Predicate="predicate",t.SelfAttestedAttribute="self-attested-attribute"})(t||(t={}));var o=(function(){function r(t,n,i,o){_r(_d[0])(this,r),this.indy=i.indy,this.indyUtilitiesService=t,this.logger=o,this.ledgerService=n}return _r(_d[1])(r,[{key:"createRevocationState",value:function(r,n,i){var o,s,c,d,l,u,v,f,h,p,y,R,b,I,w,S,k,_,j,q,P,x,C,A,D,O,E,T,F,L,U,H,M,z,B;return _r(_d[2]).async(function(G){for(;;)switch(G.prev=G.next){case 0:for(G.prev=0,this.logger.debug("Creating Revocation State(s) for proof request",{proofRequest:n,requestedCredentials:i}),o={},s=[],c=0,d=Object.entries(i.requestedAttributes);c0)throw new(r(d[4]).AriesFrameworkError)("The credential preview attributes do not match the schema attributes (difference is: "+o+", needs: "+a+")")}},{key:"isInt32",value:function(t){return Number.isInteger(t)&&t>=-2147483648&&t<=2147483647}},{key:"isNumeric",value:function(t){return/^-?\d+$/.test(t)}}]),t})();e.IndyCredentialUtils=a},1672,[1673,7,8,42,613,1549,1674,4,249,1012,993,981]); -__d(function(_g,_r,_i,_a,_m,_e,d){!(function(t,i){'use strict';function r(t,i){if(!t)throw new Error(i||'Assertion failed')}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&('le'!==i&&'be'!==i||(r=i,i=10),this._init(t||0,i||10,r||'be'))}var e;'object'==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e='undefined'!=typeof window&&void 0!==window.Buffer?window.Buffer:_r(d[0]).Buffer}catch(t){}function o(t,i){var n=t.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,'Invalid character in '+t)}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,n,h){for(var e=0,o=0,s=Math.min(t.length,n),u=i;u=49?a-49+10:a>=17?a-17+10:a,r(a>=0&&o0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if('number'==typeof t)return this._initNumber(t,i,n);if('object'==typeof t)return this._initArray(t,i,n);'hex'===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;'-'===(t=t.toString().replace(/\s+/g,''))[0]&&(h++,this.negative=1),h=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if('le'===n)for(h=0,e=0;h>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this._strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n=i;n-=2)h=s(t,i,n)<=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this._strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},'undefined'!=typeof Symbol&&'function'==typeof Symbol.for)try{h.prototype[Symbol.for('nodejs.util.inspect.custom')]=l}catch(t){h.prototype.inspect=l}else h.prototype.inspect=l;function l(){return(this.red?''}var m=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(t,i){var n;if(t=t||10,i=0|i||1,16===t||'hex'===t){n='';for(var h=0,e=0,o=0;o>>24-h&16777215)||o!==this.length-1?m[6-u.length]+u+n:u+n,(h+=2)>=26&&(h-=26,o--)}for(0!==e&&(n=e.toString(16)+n);n.length%i!=0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],l=p[t];n='';var M=this.clone();for(M.negative=0;!M.isZero();){var v=M.modrn(l).toString(t);n=(M=M.idivn(l)).isZero()?v+n:m[a-v.length]+v+n}for(this.isZero()&&(n='0'+n);n.length%i!=0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}r(!1,'Base should be between 2 and 36')},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,'Number can only safely store up to 53 bits'),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},e&&(h.prototype.toBuffer=function(t,i){return this.toArrayLike(e,t,i)}),h.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)};var M=function(t,i){return t.allocUnsafe?t.allocUnsafe(i):new t(i)};function v(t){for(var i=new Array(t.bitLength()),r=0;r>>h&1}return i}function g(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a>>26,m=67108863&u,f=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=f;p++){var M=a-p|0;l+=(o=(h=0|t.words[M])*(e=0|i.words[p])+m)/67108864|0,m=67108863&o}r.words[a]=0|m,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r._strip()}h.prototype.toArrayLike=function(t,i,n){this._strip();var h=this.byteLength(),e=n||Math.max(1,h);r(h<=e,'byte array longer than desired length'),r(e>0,'Requested array length <= 0');var o=M(t,e);return this['_toArrayLike'+('le'===i?'LE':'BE')](o,h),o},h.prototype._toArrayLikeLE=function(t,i){for(var r=0,n=0,h=0,e=0;h>8&255),r>16&255),6===e?(r>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===e?(r>=0&&(t[r--]=o>>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},h.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 0==(8191&i)&&(r+=13,i>>>=13),0==(127&i)&&(r+=7,i>>>=7),0==(15&i)&&(r+=4,i>>>=4),0==(3&i)&&(r+=2,i>>>=2),0==(1&i)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;it.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r('number'==typeof t&&t>=0);var i=0|Math.ceil(t/26),n=t%26;this._expand(i),n>0&&i--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-n),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,i){r('number'==typeof t&&t>=0);var n=t/26|0,h=t%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var h=0,e=0;e>>26;for(;0!==h&&e>>26;if(this.length=r.length,0!==h)this.words[this.length]=h,this.length++;else if(r!==this)for(;et.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(r=this,n=t):(r=t,n=this);for(var e=0,o=0;o>26,this.words[o]=67108863&i;for(;0!==e&&o>26,this.words[o]=67108863&i;if(0===e&&o>>13,p=0|o[1],M=8191&p,v=p>>>13,g=0|o[2],c=8191&g,w=g>>>13,y=0|o[3],b=8191&y,_=y>>>13,k=0|o[4],A=8191&k,S=k>>>13,x=0|o[5],B=8191&x,R=x>>>13,q=0|o[6],Z=8191&q,L=q>>>13,N=0|o[7],I=8191&N,E=N>>>13,z=0|o[8],T=8191&z,O=z>>>13,j=0|o[9],K=8191&j,P=j>>>13,F=0|s[0],U=8191&F,C=F>>>13,D=0|s[1],H=8191&D,J=D>>>13,G=0|s[2],Q=8191&G,V=G>>>13,W=0|s[3],X=8191&W,Y=W>>>13,$=0|s[4],tt=8191&$,it=$>>>13,rt=0|s[5],nt=8191&rt,ht=rt>>>13,et=0|s[6],ot=8191&et,st=et>>>13,ut=0|s[7],at=8191&ut,lt=ut>>>13,mt=0|s[8],ft=8191&mt,dt=mt>>>13,pt=0|s[9],Mt=8191&pt,vt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(a+(n=Math.imul(m,U))|0)+((8191&(h=(h=Math.imul(m,C))+Math.imul(f,U)|0))<<13)|0;a=((e=Math.imul(f,C))+(h>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,U),h=(h=Math.imul(M,C))+Math.imul(v,U)|0,e=Math.imul(v,C);var ct=(a+(n=n+Math.imul(m,H)|0)|0)+((8191&(h=(h=h+Math.imul(m,J)|0)+Math.imul(f,H)|0))<<13)|0;a=((e=e+Math.imul(f,J)|0)+(h>>>13)|0)+(ct>>>26)|0,ct&=67108863,n=Math.imul(c,U),h=(h=Math.imul(c,C))+Math.imul(w,U)|0,e=Math.imul(w,C),n=n+Math.imul(M,H)|0,h=(h=h+Math.imul(M,J)|0)+Math.imul(v,H)|0,e=e+Math.imul(v,J)|0;var wt=(a+(n=n+Math.imul(m,Q)|0)|0)+((8191&(h=(h=h+Math.imul(m,V)|0)+Math.imul(f,Q)|0))<<13)|0;a=((e=e+Math.imul(f,V)|0)+(h>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(b,U),h=(h=Math.imul(b,C))+Math.imul(_,U)|0,e=Math.imul(_,C),n=n+Math.imul(c,H)|0,h=(h=h+Math.imul(c,J)|0)+Math.imul(w,H)|0,e=e+Math.imul(w,J)|0,n=n+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,V)|0)+Math.imul(v,Q)|0,e=e+Math.imul(v,V)|0;var yt=(a+(n=n+Math.imul(m,X)|0)|0)+((8191&(h=(h=h+Math.imul(m,Y)|0)+Math.imul(f,X)|0))<<13)|0;a=((e=e+Math.imul(f,Y)|0)+(h>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,U),h=(h=Math.imul(A,C))+Math.imul(S,U)|0,e=Math.imul(S,C),n=n+Math.imul(b,H)|0,h=(h=h+Math.imul(b,J)|0)+Math.imul(_,H)|0,e=e+Math.imul(_,J)|0,n=n+Math.imul(c,Q)|0,h=(h=h+Math.imul(c,V)|0)+Math.imul(w,Q)|0,e=e+Math.imul(w,V)|0,n=n+Math.imul(M,X)|0,h=(h=h+Math.imul(M,Y)|0)+Math.imul(v,X)|0,e=e+Math.imul(v,Y)|0;var bt=(a+(n=n+Math.imul(m,tt)|0)|0)+((8191&(h=(h=h+Math.imul(m,it)|0)+Math.imul(f,tt)|0))<<13)|0;a=((e=e+Math.imul(f,it)|0)+(h>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(B,U),h=(h=Math.imul(B,C))+Math.imul(R,U)|0,e=Math.imul(R,C),n=n+Math.imul(A,H)|0,h=(h=h+Math.imul(A,J)|0)+Math.imul(S,H)|0,e=e+Math.imul(S,J)|0,n=n+Math.imul(b,Q)|0,h=(h=h+Math.imul(b,V)|0)+Math.imul(_,Q)|0,e=e+Math.imul(_,V)|0,n=n+Math.imul(c,X)|0,h=(h=h+Math.imul(c,Y)|0)+Math.imul(w,X)|0,e=e+Math.imul(w,Y)|0,n=n+Math.imul(M,tt)|0,h=(h=h+Math.imul(M,it)|0)+Math.imul(v,tt)|0,e=e+Math.imul(v,it)|0;var _t=(a+(n=n+Math.imul(m,nt)|0)|0)+((8191&(h=(h=h+Math.imul(m,ht)|0)+Math.imul(f,nt)|0))<<13)|0;a=((e=e+Math.imul(f,ht)|0)+(h>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,U),h=(h=Math.imul(Z,C))+Math.imul(L,U)|0,e=Math.imul(L,C),n=n+Math.imul(B,H)|0,h=(h=h+Math.imul(B,J)|0)+Math.imul(R,H)|0,e=e+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,h=(h=h+Math.imul(A,V)|0)+Math.imul(S,Q)|0,e=e+Math.imul(S,V)|0,n=n+Math.imul(b,X)|0,h=(h=h+Math.imul(b,Y)|0)+Math.imul(_,X)|0,e=e+Math.imul(_,Y)|0,n=n+Math.imul(c,tt)|0,h=(h=h+Math.imul(c,it)|0)+Math.imul(w,tt)|0,e=e+Math.imul(w,it)|0,n=n+Math.imul(M,nt)|0,h=(h=h+Math.imul(M,ht)|0)+Math.imul(v,nt)|0,e=e+Math.imul(v,ht)|0;var kt=(a+(n=n+Math.imul(m,ot)|0)|0)+((8191&(h=(h=h+Math.imul(m,st)|0)+Math.imul(f,ot)|0))<<13)|0;a=((e=e+Math.imul(f,st)|0)+(h>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(I,U),h=(h=Math.imul(I,C))+Math.imul(E,U)|0,e=Math.imul(E,C),n=n+Math.imul(Z,H)|0,h=(h=h+Math.imul(Z,J)|0)+Math.imul(L,H)|0,e=e+Math.imul(L,J)|0,n=n+Math.imul(B,Q)|0,h=(h=h+Math.imul(B,V)|0)+Math.imul(R,Q)|0,e=e+Math.imul(R,V)|0,n=n+Math.imul(A,X)|0,h=(h=h+Math.imul(A,Y)|0)+Math.imul(S,X)|0,e=e+Math.imul(S,Y)|0,n=n+Math.imul(b,tt)|0,h=(h=h+Math.imul(b,it)|0)+Math.imul(_,tt)|0,e=e+Math.imul(_,it)|0,n=n+Math.imul(c,nt)|0,h=(h=h+Math.imul(c,ht)|0)+Math.imul(w,nt)|0,e=e+Math.imul(w,ht)|0,n=n+Math.imul(M,ot)|0,h=(h=h+Math.imul(M,st)|0)+Math.imul(v,ot)|0,e=e+Math.imul(v,st)|0;var At=(a+(n=n+Math.imul(m,at)|0)|0)+((8191&(h=(h=h+Math.imul(m,lt)|0)+Math.imul(f,at)|0))<<13)|0;a=((e=e+Math.imul(f,lt)|0)+(h>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(T,U),h=(h=Math.imul(T,C))+Math.imul(O,U)|0,e=Math.imul(O,C),n=n+Math.imul(I,H)|0,h=(h=h+Math.imul(I,J)|0)+Math.imul(E,H)|0,e=e+Math.imul(E,J)|0,n=n+Math.imul(Z,Q)|0,h=(h=h+Math.imul(Z,V)|0)+Math.imul(L,Q)|0,e=e+Math.imul(L,V)|0,n=n+Math.imul(B,X)|0,h=(h=h+Math.imul(B,Y)|0)+Math.imul(R,X)|0,e=e+Math.imul(R,Y)|0,n=n+Math.imul(A,tt)|0,h=(h=h+Math.imul(A,it)|0)+Math.imul(S,tt)|0,e=e+Math.imul(S,it)|0,n=n+Math.imul(b,nt)|0,h=(h=h+Math.imul(b,ht)|0)+Math.imul(_,nt)|0,e=e+Math.imul(_,ht)|0,n=n+Math.imul(c,ot)|0,h=(h=h+Math.imul(c,st)|0)+Math.imul(w,ot)|0,e=e+Math.imul(w,st)|0,n=n+Math.imul(M,at)|0,h=(h=h+Math.imul(M,lt)|0)+Math.imul(v,at)|0,e=e+Math.imul(v,lt)|0;var St=(a+(n=n+Math.imul(m,ft)|0)|0)+((8191&(h=(h=h+Math.imul(m,dt)|0)+Math.imul(f,ft)|0))<<13)|0;a=((e=e+Math.imul(f,dt)|0)+(h>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(K,U),h=(h=Math.imul(K,C))+Math.imul(P,U)|0,e=Math.imul(P,C),n=n+Math.imul(T,H)|0,h=(h=h+Math.imul(T,J)|0)+Math.imul(O,H)|0,e=e+Math.imul(O,J)|0,n=n+Math.imul(I,Q)|0,h=(h=h+Math.imul(I,V)|0)+Math.imul(E,Q)|0,e=e+Math.imul(E,V)|0,n=n+Math.imul(Z,X)|0,h=(h=h+Math.imul(Z,Y)|0)+Math.imul(L,X)|0,e=e+Math.imul(L,Y)|0,n=n+Math.imul(B,tt)|0,h=(h=h+Math.imul(B,it)|0)+Math.imul(R,tt)|0,e=e+Math.imul(R,it)|0,n=n+Math.imul(A,nt)|0,h=(h=h+Math.imul(A,ht)|0)+Math.imul(S,nt)|0,e=e+Math.imul(S,ht)|0,n=n+Math.imul(b,ot)|0,h=(h=h+Math.imul(b,st)|0)+Math.imul(_,ot)|0,e=e+Math.imul(_,st)|0,n=n+Math.imul(c,at)|0,h=(h=h+Math.imul(c,lt)|0)+Math.imul(w,at)|0,e=e+Math.imul(w,lt)|0,n=n+Math.imul(M,ft)|0,h=(h=h+Math.imul(M,dt)|0)+Math.imul(v,ft)|0,e=e+Math.imul(v,dt)|0;var xt=(a+(n=n+Math.imul(m,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(m,vt)|0)+Math.imul(f,Mt)|0))<<13)|0;a=((e=e+Math.imul(f,vt)|0)+(h>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(K,H),h=(h=Math.imul(K,J))+Math.imul(P,H)|0,e=Math.imul(P,J),n=n+Math.imul(T,Q)|0,h=(h=h+Math.imul(T,V)|0)+Math.imul(O,Q)|0,e=e+Math.imul(O,V)|0,n=n+Math.imul(I,X)|0,h=(h=h+Math.imul(I,Y)|0)+Math.imul(E,X)|0,e=e+Math.imul(E,Y)|0,n=n+Math.imul(Z,tt)|0,h=(h=h+Math.imul(Z,it)|0)+Math.imul(L,tt)|0,e=e+Math.imul(L,it)|0,n=n+Math.imul(B,nt)|0,h=(h=h+Math.imul(B,ht)|0)+Math.imul(R,nt)|0,e=e+Math.imul(R,ht)|0,n=n+Math.imul(A,ot)|0,h=(h=h+Math.imul(A,st)|0)+Math.imul(S,ot)|0,e=e+Math.imul(S,st)|0,n=n+Math.imul(b,at)|0,h=(h=h+Math.imul(b,lt)|0)+Math.imul(_,at)|0,e=e+Math.imul(_,lt)|0,n=n+Math.imul(c,ft)|0,h=(h=h+Math.imul(c,dt)|0)+Math.imul(w,ft)|0,e=e+Math.imul(w,dt)|0;var Bt=(a+(n=n+Math.imul(M,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(M,vt)|0)+Math.imul(v,Mt)|0))<<13)|0;a=((e=e+Math.imul(v,vt)|0)+(h>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(K,Q),h=(h=Math.imul(K,V))+Math.imul(P,Q)|0,e=Math.imul(P,V),n=n+Math.imul(T,X)|0,h=(h=h+Math.imul(T,Y)|0)+Math.imul(O,X)|0,e=e+Math.imul(O,Y)|0,n=n+Math.imul(I,tt)|0,h=(h=h+Math.imul(I,it)|0)+Math.imul(E,tt)|0,e=e+Math.imul(E,it)|0,n=n+Math.imul(Z,nt)|0,h=(h=h+Math.imul(Z,ht)|0)+Math.imul(L,nt)|0,e=e+Math.imul(L,ht)|0,n=n+Math.imul(B,ot)|0,h=(h=h+Math.imul(B,st)|0)+Math.imul(R,ot)|0,e=e+Math.imul(R,st)|0,n=n+Math.imul(A,at)|0,h=(h=h+Math.imul(A,lt)|0)+Math.imul(S,at)|0,e=e+Math.imul(S,lt)|0,n=n+Math.imul(b,ft)|0,h=(h=h+Math.imul(b,dt)|0)+Math.imul(_,ft)|0,e=e+Math.imul(_,dt)|0;var Rt=(a+(n=n+Math.imul(c,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(c,vt)|0)+Math.imul(w,Mt)|0))<<13)|0;a=((e=e+Math.imul(w,vt)|0)+(h>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(K,X),h=(h=Math.imul(K,Y))+Math.imul(P,X)|0,e=Math.imul(P,Y),n=n+Math.imul(T,tt)|0,h=(h=h+Math.imul(T,it)|0)+Math.imul(O,tt)|0,e=e+Math.imul(O,it)|0,n=n+Math.imul(I,nt)|0,h=(h=h+Math.imul(I,ht)|0)+Math.imul(E,nt)|0,e=e+Math.imul(E,ht)|0,n=n+Math.imul(Z,ot)|0,h=(h=h+Math.imul(Z,st)|0)+Math.imul(L,ot)|0,e=e+Math.imul(L,st)|0,n=n+Math.imul(B,at)|0,h=(h=h+Math.imul(B,lt)|0)+Math.imul(R,at)|0,e=e+Math.imul(R,lt)|0,n=n+Math.imul(A,ft)|0,h=(h=h+Math.imul(A,dt)|0)+Math.imul(S,ft)|0,e=e+Math.imul(S,dt)|0;var qt=(a+(n=n+Math.imul(b,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(b,vt)|0)+Math.imul(_,Mt)|0))<<13)|0;a=((e=e+Math.imul(_,vt)|0)+(h>>>13)|0)+(qt>>>26)|0,qt&=67108863,n=Math.imul(K,tt),h=(h=Math.imul(K,it))+Math.imul(P,tt)|0,e=Math.imul(P,it),n=n+Math.imul(T,nt)|0,h=(h=h+Math.imul(T,ht)|0)+Math.imul(O,nt)|0,e=e+Math.imul(O,ht)|0,n=n+Math.imul(I,ot)|0,h=(h=h+Math.imul(I,st)|0)+Math.imul(E,ot)|0,e=e+Math.imul(E,st)|0,n=n+Math.imul(Z,at)|0,h=(h=h+Math.imul(Z,lt)|0)+Math.imul(L,at)|0,e=e+Math.imul(L,lt)|0,n=n+Math.imul(B,ft)|0,h=(h=h+Math.imul(B,dt)|0)+Math.imul(R,ft)|0,e=e+Math.imul(R,dt)|0;var Zt=(a+(n=n+Math.imul(A,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(A,vt)|0)+Math.imul(S,Mt)|0))<<13)|0;a=((e=e+Math.imul(S,vt)|0)+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(K,nt),h=(h=Math.imul(K,ht))+Math.imul(P,nt)|0,e=Math.imul(P,ht),n=n+Math.imul(T,ot)|0,h=(h=h+Math.imul(T,st)|0)+Math.imul(O,ot)|0,e=e+Math.imul(O,st)|0,n=n+Math.imul(I,at)|0,h=(h=h+Math.imul(I,lt)|0)+Math.imul(E,at)|0,e=e+Math.imul(E,lt)|0,n=n+Math.imul(Z,ft)|0,h=(h=h+Math.imul(Z,dt)|0)+Math.imul(L,ft)|0,e=e+Math.imul(L,dt)|0;var Lt=(a+(n=n+Math.imul(B,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(B,vt)|0)+Math.imul(R,Mt)|0))<<13)|0;a=((e=e+Math.imul(R,vt)|0)+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(K,ot),h=(h=Math.imul(K,st))+Math.imul(P,ot)|0,e=Math.imul(P,st),n=n+Math.imul(T,at)|0,h=(h=h+Math.imul(T,lt)|0)+Math.imul(O,at)|0,e=e+Math.imul(O,lt)|0,n=n+Math.imul(I,ft)|0,h=(h=h+Math.imul(I,dt)|0)+Math.imul(E,ft)|0,e=e+Math.imul(E,dt)|0;var Nt=(a+(n=n+Math.imul(Z,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(Z,vt)|0)+Math.imul(L,Mt)|0))<<13)|0;a=((e=e+Math.imul(L,vt)|0)+(h>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(K,at),h=(h=Math.imul(K,lt))+Math.imul(P,at)|0,e=Math.imul(P,lt),n=n+Math.imul(T,ft)|0,h=(h=h+Math.imul(T,dt)|0)+Math.imul(O,ft)|0,e=e+Math.imul(O,dt)|0;var It=(a+(n=n+Math.imul(I,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(I,vt)|0)+Math.imul(E,Mt)|0))<<13)|0;a=((e=e+Math.imul(E,vt)|0)+(h>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(K,ft),h=(h=Math.imul(K,dt))+Math.imul(P,ft)|0,e=Math.imul(P,dt);var Et=(a+(n=n+Math.imul(T,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(T,vt)|0)+Math.imul(O,Mt)|0))<<13)|0;a=((e=e+Math.imul(O,vt)|0)+(h>>>13)|0)+(Et>>>26)|0,Et&=67108863;var zt=(a+(n=Math.imul(K,Mt))|0)+((8191&(h=(h=Math.imul(K,vt))+Math.imul(P,Mt)|0))<<13)|0;return a=((e=Math.imul(P,vt))+(h>>>13)|0)+(zt>>>26)|0,zt&=67108863,u[0]=gt,u[1]=ct,u[2]=wt,u[3]=yt,u[4]=bt,u[5]=_t,u[6]=kt,u[7]=At,u[8]=St,u[9]=xt,u[10]=Bt,u[11]=Rt,u[12]=qt,u[13]=Zt,u[14]=Lt,u[15]=Nt,u[16]=It,u[17]=Et,u[18]=zt,0!==a&&(u[19]=a,r.length++),r};function w(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var n=0,h=0,e=0;e>>26)|0)>>>26,o&=67108863}r.words[e]=s,n=o,o=h}return 0!==n?r.words[e]=n:r.length--,r._strip()}function y(t,i,r){return w(t,i,r)}function b(t,i){this.x=t,this.y=i}Math.imul||(c=g),h.prototype.mulTo=function(t,i){var r=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,i):r<63?g(this,t,i):r<1024?w(this,t,i):y(this,t,i)},b.prototype.makeRBT=function(t){for(var i=new Array(t),r=h.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,i,r,n,h,e){for(var o=0;o>>=1)h++;return 1<>>=13,n[2*o+1]=8191&e,e>>>=13;for(o=2*i;o>=26,n+=e/67108864|0,n+=o>>>26,this.words[h]=67108863&o}return 0!==n&&(this.words[h]=n,this.length++),i?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var i=v(t);if(0===i.length)return new h(1);for(var r=this,n=0;n=0);var i,n=t%26,h=(t-n)/26,e=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(i=0;i>>26-n}o&&(this.words[i]=o,this.length++)}if(0!==h){for(i=this.length-1;i>=0;i--)this.words[i+h]=this.words[i];for(i=0;i=0),h=i?(i-i%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<o)for(this.length-=o,a=0;a=0&&(0!==l||a>=h);a--){var m=0|this.words[a];this.words[a]=l<<26-e|m>>>e,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,i,n){return r(0===this.negative),this.iushrn(t,i,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r('number'==typeof t&&t>=0);var i=t%26,n=(t-i)/26,h=1<=0);var i=t%26,n=(t-i)/26;if(r(0===this.negative,'imaskn works only with positive numbers'),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var h=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r('number'==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[h+n]=67108863&e}for(;h>26,this.words[h+n]=67108863&e;if(0===s)return this._strip();for(r(-1===s),s=0,h=0;h>26,this.words[h]=67108863&e;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,i){var r=(this.length,t.length),n=this.clone(),e=t,o=0|e.words[e.length-1];0!==(r=26-this._countBits(o))&&(e=e.ushln(r),n.iushln(r),o=0|e.words[e.length-1]);var s,u=n.length-e.length;if('mod'!==i){(s=new h(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a=0;m--){var f=67108864*(0|n.words[e.length+m])+(0|n.words[e.length+m-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(e,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(e,1,m),n.isZero()||(n.negative^=1);s&&(s.words[m]=f)}return s&&s._strip(),n._strip(),'div'!==i&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},h.prototype.divmod=function(t,i,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,i),'mod'!==i&&(e=s.div.neg()),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:e,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),i),'mod'!==i&&(e=s.div.neg()),{div:e,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),i),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?'div'===i?{div:this.divn(t.words[0]),mod:null}:'mod'===i?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,i);var e,o,s},h.prototype.div=function(t){return this.divmod(t,'div',!1).div},h.prototype.mod=function(t){return this.divmod(t,'mod',!1).mod},h.prototype.umod=function(t){return this.divmod(t,'mod',!0).mod},h.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,n=t.ushrn(1),h=t.andln(1),e=r.cmp(n);return e<0||1===h&&0===e?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},h.prototype.modrn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=67108864%t,h=0,e=this.length-1;e>=0;e--)h=(n*h+(0|this.words[e]))%t;return i?-h:h},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=0,h=this.length-1;h>=0;h--){var e=(0|this.words[h])+67108864*n;this.words[h]=e/t|0,n=e%t}return this._strip(),i?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e=new h(1),o=new h(0),s=new h(0),u=new h(1),a=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++a;for(var l=n.clone(),m=i.clone();!i.isZero();){for(var f=0,p=1;0==(i.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(l),o.isub(m)),e.iushrn(1),o.iushrn(1);for(var M=0,v=1;0==(n.words[0]&v)&&M<26;++M,v<<=1);if(M>0)for(n.iushrn(M);M-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);i.cmp(n)>=0?(i.isub(n),e.isub(s),o.isub(u)):(n.isub(i),s.isub(e),u.isub(o))}return{a:s,b:u,gcd:n.iushln(a)}},h.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e,o=new h(1),s=new h(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;0==(i.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var m=0,f=1;0==(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return(e=0===i.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var n=0;i.isEven()&&r.isEven();n++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var h=i.cmp(r);if(h<0){var e=i;i=r,r=e}else if(0===h||0===r.cmpn(1))break;i.isub(r)}return r.iushln(n)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r('number'==typeof t);var i=t%26,n=(t-i)/26,h=1<>>26,s&=67108863,this.words[o]=s}return 0!==e&&(this.words[o]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var i,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)i=1;else{n&&(t=-t),r(t<=67108863,'Number is too big');var h=0|this.words[0];i=h===t?0:ht.length)return 1;if(this.length=0;r--){var n=0|this.words[r],h=0|t.words[r];if(n!==h){nh&&(i=1);break}}return i},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return r(!this.red,'Already a number in reduction context'),r(0===this.negative,'red works only with positives'),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,'fromRed works only with numbers in reduction context'),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,'Already a number in reduction context'),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,'redAdd works only with red numbers'),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,'redIAdd works only with red numbers'),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,'redSub works only with red numbers'),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,'redISub works only with red numbers'),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,'redShl works only with red numbers'),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,'redSqr works only with red numbers'),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,'redISqr works only with red numbers'),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,'redSqrt works only with red numbers'),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,'redInvm works only with red numbers'),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,'redNeg works only with red numbers'),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,'redPow(normalNum)'),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,i){this.name=t,this.p=new h(i,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){k.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}function S(){k.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}function x(){k.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}function B(){k.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}function R(t){if('string'==typeof t){var i=h._prime(t);this.m=i.p,this.prime=i}else r(t.gtn(1),'modulus must be greater than 1'),this.m=t,this.prime=null}function q(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var n=i0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,i){t.iushrn(this.n,0,i)},k.prototype.imulK=function(t){return t.imul(this.k)},n(A,k),A.prototype.split=function(t,i){for(var r=Math.min(t.length,9),n=0;n>>22,h=e}h>>>=22,t.words[n-10]=h,0===h&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r>>=26,t.words[r]=h,i=n}return 0!==i&&(t.words[t.length++]=i),t},h._prime=function(t){if(_[t])return _[t];var i;if('k256'===t)i=new A;else if('p224'===t)i=new S;else if('p192'===t)i=new x;else{if('p25519'!==t)throw new Error('Unknown prime '+t);i=new B}return _[t]=i,i},R.prototype._verify1=function(t){r(0===t.negative,'red works only with positives'),r(t.red,'red works only with red numbers')},R.prototype._verify2=function(t,i){r(0==(t.negative|i.negative),'red works only with positives'),r(t.red&&t.red===i.red,'red works only with red numbers')},R.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},R.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},R.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},R.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},R.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},R.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},R.prototype.isqr=function(t){return this.imul(t,t.clone())},R.prototype.sqr=function(t){return this.mul(t,t)},R.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(r(i%2==1),3===i){var n=this.m.add(new h(1)).iushrn(2);return this.pow(t,n)}for(var e=this.m.subn(1),o=0;!e.isZero()&&0===e.andln(1);)o++,e.iushrn(1);r(!e.isZero());var s=new h(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,e),f=this.pow(t,e.addn(1).iushrn(1)),p=this.pow(t,e),M=o;0!==p.cmp(s);){for(var v=p,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;n--){for(var a=i.words[n],l=u-1;l>=0;l--){var m=a>>l&1;e!==r[0]&&(e=this.sqr(e)),0!==m||0!==o?(o<<=1,o|=m,(4===++s||0===n&&0===l)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}u=26}return e},R.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},R.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},h.mont=function(t){return new q(t)},n(q,R),q.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},q.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},q.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=r.isub(n).iushrn(this.shift),e=h;return h.cmp(this.m)>=0?e=h.isub(this.m):h.cmpn(0)<0&&(e=h.iadd(this.m)),e._forceRed(this)},q.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new h(0)._forceRed(this);var r=t.mul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(n).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},q.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(void 0===_m||_m,this)},1673,[617]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLinkedAttachment=e.encodeAttachment=void 0,e.encodeAttachment=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'sha2-256',o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc';if(t.data.sha256)return"hl:"+t.data.sha256;if(t.data.base64)return r(d[0]).HashlinkEncoder.encode(r(d[1]).TypedArrayEncoder.fromBase64(t.data.base64),n,o);throw t.data.json?new(r(d[2]).AriesFrameworkError)("Attachment: ("+t.id+") has json encoded data. This is currently not supported"):new(r(d[2]).AriesFrameworkError)("Attachment: ("+t.id+") has no data to create a link with")},e.isLinkedAttachment=function(t){return r(d[0]).HashlinkEncoder.isValid("hl:"+t.id)}},1674,[1675,994,613]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HashlinkEncoder=void 0;var n=t(r(d[0])),o={urls:15,contentType:14},c=(function(){function t(){r(d[1])(this,t)}return r(d[2])(t,null,[{key:"encode",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc',c=arguments.length>3?arguments[3]:void 0,l=this.encodeMultiHash(t,n,o),u=c&&Object.keys(c).length>0?this.encodeMetadata(c,o):null;return u?"hl:"+l+":"+u:"hl:"+l}},{key:"decode",value:function(t){if(this.isValid(t)){var n=t.split(':'),o=r(d[3])(n,3),c=o[1],l=o[2];return l?{checksum:c,metadata:this.decodeMetadata(l)}:{checksum:c}}throw new Error("Invalid hashlink: "+t)}},{key:"isValid",value:function(t){var n=t.split(':');if(!r(d[4]).MultiBaseEncoder.isValid(n[1]))return!1;var o=r(d[4]).MultiBaseEncoder.decode(n[1]).data;return!!r(d[5]).MultiHashEncoder.isValid(o)}},{key:"encodeMultiHash",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc',c=r(d[5]).MultiHashEncoder.encode(t,n);return r(d[4]).MultiBaseEncoder.encode(c,o)}},{key:"encodeMetadata",value:function(t,c){for(var l=new Map,u=0,s=Object.keys(t);u>2,i=(3&t[0])<<8|t[1];return u?31===u?n*(i?NaN:Infinity):n*Math.pow(2,u-25)*(1024+i):5.960464477539063e-8*n*i},e.arrayBufferToBignumber=function(t){for(var n,u=t.byteLength,i='',f=0;f2097151?new(r(d[0]).BigNumber)(f).times(r(d[1]).SHIFT32).plus(a):f*r(d[1]).SHIFT32+a},e.writeHalf=function(t,n){var u=r(d[2]).Buffer.allocUnsafe(4);u.writeFloatBE(n,0);var i=u.readUInt32BE(0);if(0!=(8191&i))return!1;var f=i>>16&32768,a=i>>23&255,o=8388607&i;if(a>=113&&a<=142)f+=(a-112<<10)+(o>>13);else{if(!(a>=103&&a<113))return!1;if(o&(1<<126-a)-1)return!1;f+=o+8388608>>126-a}return t.writeUInt16BE(f,0),!0},e.keySorter=function(t,n){var u=t[0].byteLength,i=n[0].byteLength;return u>i?1:i>u?-1:t[0].compare(n[0])},e.isNegativeZero=function(t){return 0===t&&1/t<0},e.nextPowerOf2=function(t){var n=0;if(t&&!(t&t-1))return t;for(;0!==t;)t>>=1,n+=1;return 1<0||e===r?r:r-1}function w(e){for(var r,n,t=1,i=e.length,o=e[0]+'';tl^n?1:-1;for(u=(f=i.length)<(l=o.length)?f:l,s=0;so[s]^n?1:-1;return f==l?0:f>l^n?1:-1}function d(e,r,n,t){if(en||e!==i(e))throw Error(o+(t||'Argument')+('number'==typeof e?en?' out of range: ':' not an integer: ':' not a primitive number: ')+String(e))}function N(e){var r=e.c.length-1;return p(e.e/f)==r&&e.c[r]%2!=0}function v(e,r){return(e.length>1?e.charAt(0)+'.'+e.slice(1):e)+(r<0?'e':'e+')+r}function b(e,r,n){var t,i;if(r<0){for(i=n+'.';++r;i+=n);e=i+e}else if(++r>(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rM?m.c=m.e=null:e.e=10;a/=10,c++);return void(c>M?m.c=m.e=null:(m.e=c,m.c=[e]))}w=String(e)}else{if(!n.test(w=String(e)))return y(m,w,h);m.s=45==w.charCodeAt(0)?(w=w.slice(1),-1):1}(c=w.indexOf('.'))>-1&&(w=w.replace('.','')),(a=w.search(/e/i))>0?(c<0&&(c=a),c+=+w.slice(a+1),w=w.substring(0,a)):c<0&&(c=w.length)}else{if(d(r,2,j.length,'Base'),10==r&&$)return X(m=new z(e),L+m.e+1,U);if(w=String(e),h='number'==typeof e){if(0*e!=0)return y(m,w,h,r);if(m.s=1/e<0?(w=w.slice(1),-1):1,z.DEBUG&&w.replace(/^0\.0*|\./,'').length>15)throw Error(s+e)}else m.s=45===w.charCodeAt(0)?(w=w.slice(1),-1):1;for(t=j.slice(0,r),c=a=0,p=w.length;ac){c=p;continue}}else if(!u&&(w==w.toUpperCase()&&(w=w.toLowerCase())||w==w.toLowerCase()&&(w=w.toUpperCase()))){u=!0,a=-1,c=0;continue}return y(m,String(e),h,r)}h=!1,(c=(w=O(w,r,10,m.s)).indexOf('.'))>-1?w=w.replace('.',''):c=w.length}for(a=0;48===w.charCodeAt(a);a++);for(p=w.length;48===w.charCodeAt(--p););if(w=w.slice(a,++p)){if(p-=a,h&&z.DEBUG&&p>15&&(e>l||e!==i(e)))throw Error(s+m.s*e);if((c=c-a-1)>M)m.c=m.e=null;else if(c=T)?v(f,s):b(f,s,'0');else if(o=(e=X(new z(e),r,n)).e,u=(f=w(e.c)).length,1==t||2==t&&(r<=o||o<=I)){for(;uu){if(--r>0)for(f+='.';r--;f+='0');}else if((r+=o-u)>0)for(o+1==u&&(f+='.');r--;f+='0');return e.s<0&&i?'-'+f:f}function V(e,r){for(var n,t=1,i=new z(e[0]);t=10;i/=10,t++);return(n=t+n*f-1)>M?e.c=e.e=null:n=10;h/=10,s++);if((l=r-s)<0)l+=f,a=r,m=(p=d[w=0])/N[s-a-1]%10|0;else if((w=t((l+1)/f))>=d.length){if(!o)break e;for(;d.length<=w;d.push(0));p=m=0,s=1,a=(l%=f)-f+1}else{for(p=h=d[w],s=1;h>=10;h/=10,s++);m=(a=(l%=f)-f+s)<0?0:p/N[s-a-1]%10|0}if(o=o||r<0||null!=d[w+1]||(a<0?p:p%N[s-a-1]),o=n<4?(m||o)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||o||6==n&&(l>0?a>0?p/N[s-a]:0:d[w-1])%10&1||n==(e.s<0?8:7)),r<1||!d[0])return d.length=0,o?(r-=e.e+1,d[0]=N[(f-r%f)%f],e.e=-r||0):d[0]=e.e=0,e;if(0==l?(d.length=w,h=1,w--):(d.length=w+1,h=N[f-l],d[w]=a>0?i(p/N[s-a]%N[a])*h:0),o)for(;;){if(0==w){for(l=1,a=d[0];a>=10;a/=10,l++);for(a=d[0]+=h,h=1;a>=10;a/=10,h++);l!=h&&(e.e++,d[0]==u&&(d[0]=1));break}if(d[w]+=h,d[w]!=u)break;d[w--]=0,h=1}for(l=d.length;0===d[--l];d.pop());}e.e>M?e.c=e.e=null:e.e=T?v(r,n):b(r,n,'0'),e.s<0?'-'+r:r)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var r,n;if(null!=e){if('object'!=typeof e)throw Error("[BigNumber Error] Object expected: "+e);if(e.hasOwnProperty(r='DECIMAL_PLACES')&&(d(n=e[r],0,h,r),L=n),e.hasOwnProperty(r='ROUNDING_MODE')&&(d(n=e[r],0,8,r),U=n),e.hasOwnProperty(r='EXPONENTIAL_AT')&&((n=e[r])&&n.pop?(d(n[0],-1e9,0,r),d(n[1],0,h,r),I=n[0],T=n[1]):(d(n,-1e9,h,r),I=-(T=n<0?-n:n))),e.hasOwnProperty(r='RANGE'))if((n=e[r])&&n.pop)d(n[0],-1e9,-1,r),d(n[1],1,h,r),C=n[0],M=n[1];else{if(d(n,-1e9,h,r),!n)throw Error(o+r+' cannot be zero: '+n);C=-(M=n<0?-n:n)}if(e.hasOwnProperty(r='CRYPTO')){if((n=e[r])!==!!n)throw Error(o+r+' not true or false: '+n);if(n){if('undefined'==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw G=!n,Error("[BigNumber Error] crypto unavailable");G=n}else G=n}if(e.hasOwnProperty(r='MODULO_MODE')&&(d(n=e[r],0,9,r),k=n),e.hasOwnProperty(r='POW_PRECISION')&&(d(n=e[r],0,h,r),F=n),e.hasOwnProperty(r='FORMAT')){if('object'!=typeof(n=e[r]))throw Error(o+r+' not an object: '+n);q=n}if(e.hasOwnProperty(r='ALPHABET')){if('string'!=typeof(n=e[r])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(o+r+' invalid: '+n);$='0123456789'==n.slice(0,10),j=n}}return{DECIMAL_PLACES:L,ROUNDING_MODE:U,EXPONENTIAL_AT:[I,T],RANGE:[C,M],CRYPTO:G,MODULO_MODE:k,POW_PRECISION:F,FORMAT:q,ALPHABET:j}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var r,n,t=e.c,o=e.e,s=e.s;e:if('[object Array]'=={}.toString.call(t)){if((1===s||-1===s)&&o>=-1e9&&o<=h&&o===i(o)){if(0===t[0]){if(0===o&&1===t.length)return!0;break e}if((r=(o+1)%f)<1&&(r+=f),String(t[0]).length==r){for(r=0;r=u||n!==i(n))break e;if(0!==n)return!0}}}else if(null===t&&null===o&&(null===s||1===s||-1===s))return!0;throw Error("[BigNumber Error] Invalid BigNumber: "+e)},z.maximum=z.max=function(){return V(arguments,P.lt)},z.minimum=z.min=function(){return V(arguments,P.gt)},z.random=(A=9007199254740992*Math.random()&2097151?function(){return i(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var r,n,o,s,u,l=0,a=[],p=new z(x);if(null==e?e=L:d(e,0,h),s=t(e/f),G)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(s*=2));l>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(a.push(u%1e14),l+=2);l=s/2}else{if(!crypto.randomBytes)throw G=!1,Error("[BigNumber Error] crypto unavailable");for(r=crypto.randomBytes(s*=7);l=9e15?crypto.randomBytes(7).copy(r,l):(a.push(u%1e14),l+=7);l=s/7}if(!G)for(;l=10;u/=10,l++);ln-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,n,t,i,o){var s,u,f,l,c,a,h,p,m=r.indexOf('.'),d=L,N=U;for(m>=0&&(l=F,F=0,r=r.replace('.',''),a=(p=new z(n)).pow(r.length-m),F=l,p.c=e(b(w(a.c),a.e,'0'),10,t,"0123456789"),p.e=p.c.length),f=l=(h=e(r,n,t,o?(s=j,"0123456789"):(s="0123456789",j))).length;0==h[--l];h.pop());if(!h[0])return s.charAt(0);if(m<0?--f:(a.c=h,a.e=f,a.s=i,h=(a=E(a,p,d,N,t)).c,c=a.r,f=a.e),m=h[u=f+d+1],l=t/2,c=c||u<0||null!=h[u+1],c=N<4?(null!=m||c)&&(0==N||N==(a.s<0?3:2)):m>l||m==l&&(4==N||c||6==N&&1&h[u-1]||N==(a.s<0?8:7)),u<1||!h[0])r=c?b(s.charAt(1),-d,s.charAt(0)):s.charAt(0);else{if(h.length=u,c)for(--t;++h[--u]>t;)h[u]=0,u||(++f,h=[1].concat(h));for(l=h.length;!h[--l];);for(m=0,r='';m<=l;r+=s.charAt(h[m++]));r=b(r,f,s.charAt(0))}return r}})(),E=(function(){function e(e,r,n){var t,i,o,s,u=0,f=e.length,l=r%a,c=r/a|0;for(e=e.slice();f--;)u=((i=l*(o=e[f]%a)+(t=c*o+(s=e[f]/a|0)*l)%a*a+u)/n|0)+(t/a|0)+c*s,e[f]=i%n;return u&&(e=[u].concat(e)),e}function r(e,r,n,t){var i,o;if(n!=t)o=n>t?1:-1;else for(i=o=0;ir[i]?1:-1;break}return o}function n(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(t,o,s,l,c){var a,h,w,m,d,N,v,b,E,O,y,A,B,_,S,R,D,P=t.s==o.s?1:-1,x=t.c,L=o.c;if(!(x&&x[0]&&L&&L[0]))return new z(t.s&&o.s&&(x?!L||x[0]!=L[0]:L)?x&&0==x[0]||!L?0*P:P/0:NaN);for(E=(b=new z(P)).c=[],P=s+(h=t.e-o.e)+1,c||(c=u,h=p(t.e/f)-p(o.e/f),P=P/f|0),w=0;L[w]==(x[w]||0);w++);if(L[w]>(x[w]||0)&&h--,P<0)E.push(1),m=!0;else{for(_=x.length,R=L.length,w=0,P+=2,(d=i(c/(L[0]+1)))>1&&(L=e(L,d,c),x=e(x,d,c),R=L.length,_=x.length),B=R,y=(O=x.slice(0,R)).length;y=c/2&&S++;do{if(d=0,(a=r(L,O,R,y))<0){if(A=O[0],R!=y&&(A=A*c+(O[1]||0)),(d=i(A/S))>1)for(d>=c&&(d=c-1),v=(N=e(L,d,c)).length,y=O.length;1==r(N,O,v,y);)d--,n(N,R=10;P/=10,w++);X(b,s+(b.e=w+h*f-1)+1,l,m)}else b.e=h,b.r=+m;return b}})(),B=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,S=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,y=function(e,r,n,t){var i,o=n?r:r.replace(D,'');if(R.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(B,function(e,r,n){return i='x'==(n=n.toLowerCase())?16:'b'==n?2:8,t&&t!=i?e:r}),t&&(i=t,o=o.replace(_,'$1').replace(S,'0.$1')),r!=o))return new z(o,i);if(z.DEBUG)throw Error("[BigNumber Error] Not a"+(t?' base '+t:'')+' number: '+r);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,r){return m(this,new z(e,r))},P.decimalPlaces=P.dp=function(e,r){var n,t,i,o=this;if(null!=e)return d(e,0,h),null==r?r=U:d(r,0,8),X(new z(o),e+o.e+1,r);if(!(n=o.c))return null;if(t=((i=n.length-1)-p(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,t--);return t<0&&(t=0),t},P.dividedBy=P.div=function(e,r){return E(this,new z(e,r),L,U)},P.dividedToIntegerBy=P.idiv=function(e,r){return E(this,new z(e,r),0,1)},P.exponentiatedBy=P.pow=function(e,r){var n,o,s,u,l,c,a,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error("[BigNumber Error] Exponent not an integer: "+Y(e));if(null!=r&&(r=new z(r)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new z(Math.pow(+Y(p),l?2-N(e):+Y(e))),r?h.mod(r):h;if(c=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new z(NaN);(o=!c&&p.isInteger()&&r.isInteger())&&(p=p.mod(r))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&N(e)?-0:0,p.e>-1&&(u=1/u),new z(c?1/u:u);F&&(u=t(F/f+2))}for(l?(n=new z(.5),c&&(e.s=1),a=N(e)):a=(s=Math.abs(+Y(e)))%2,h=new z(x);;){if(a){if(!(h=h.times(p)).c)break;u?h.c.length>u&&(h.c.length=u):o&&(h=h.mod(r))}if(s){if(0===(s=i(s/2)))break;a=s%2}else if(X(e=e.times(n),e.e+1,1),e.e>14)a=N(e);else{if(0==(s=+Y(e)))break;a=s%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):o&&(p=p.mod(r))}return o?h:(c&&(h=x.div(h)),r?h.mod(r):u?X(h,F,U,void 0):h)},P.integerValue=function(e){var r=new z(this);return null==e?e=U:d(e,0,8),X(r,r.e+1,e)},P.isEqualTo=P.eq=function(e,r){return 0===m(this,new z(e,r))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,r){return m(this,new z(e,r))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,r){return 1===(r=m(this,new z(e,r)))||0===r},P.isInteger=function(){return!!this.c&&p(this.e/f)>this.c.length-2},P.isLessThan=P.lt=function(e,r){return m(this,new z(e,r))<0},P.isLessThanOrEqualTo=P.lte=function(e,r){return-1===(r=m(this,new z(e,r)))||0===r},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,r){var n,t,i,o,s=this,l=s.s;if(r=(e=new z(e,r)).s,!l||!r)return new z(NaN);if(l!=r)return e.s=-r,s.plus(e);var c=s.e/f,a=e.e/f,h=s.c,w=e.c;if(!c||!a){if(!h||!w)return h?(e.s=-r,e):new z(w?s:NaN);if(!h[0]||!w[0])return w[0]?(e.s=-r,e):new z(h[0]?s:3==U?-0:0)}if(c=p(c),a=p(a),h=h.slice(),l=c-a){for((o=l<0)?(l=-l,i=h):(a=c,i=w),i.reverse(),r=l;r--;i.push(0));i.reverse()}else for(t=(o=(l=h.length)<(r=w.length))?l:r,l=r=0;r0)for(;r--;h[n++]=0);for(r=99999999999999;t>l;){if(h[--t]=0;){for(n=0,d=A[i]%E,N=A[i]/E|0,o=i+(s=c);o>i;)n=((h=d*(h=y[--s]%E)+(l=N*h+(w=y[s]/E|0)*d)%E*E+v[o]+n)/b|0)+(l/E|0)+N*w,v[o--]=h%b;v[o]=n}return n?++t:v.splice(0,1),W(e,v,t)},P.negated=function(){var e=new z(this);return e.s=-e.s||null,e},P.plus=function(e,r){var n,t=this,i=t.s;if(r=(e=new z(e,r)).s,!i||!r)return new z(NaN);if(i!=r)return e.s=-r,t.minus(e);var o=t.e/f,s=e.e/f,l=t.c,c=e.c;if(!o||!s){if(!l||!c)return new z(i/0);if(!l[0]||!c[0])return c[0]?e:new z(l[0]?t:0*i)}if(o=p(o),s=p(s),l=l.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=l),n.reverse();i--;n.push(0));n.reverse()}for((i=l.length)-(r=c.length)<0&&(n=c,c=l,l=n,r=i),i=0;r;)i=(l[--r]=l[r]+c[r]+i)/u|0,l[r]=u===l[r]?0:l[r]%u;return i&&(l=[i].concat(l),++s),W(e,l,s)},P.precision=P.sd=function(e,r){var n,t,i,o=this;if(null!=e&&e!==!!e)return d(e,1,h),null==r?r=U:d(r,0,8),X(new z(o),e,r);if(!(n=o.c))return null;if(t=(i=n.length-1)*f+1,i=n[i]){for(;i%10==0;i/=10,t--);for(i=n[0];i>=10;i/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},P.shiftedBy=function(e){return d(e,-9007199254740991,l),this.times('1e'+e)},P.squareRoot=P.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,u=o.s,f=o.e,l=L+4,c=new z('0.5');if(1!==u||!s||!s[0])return new z(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+Y(o)))||u==1/0?(((r=w(s)).length+f)%2==0&&(r+='0'),u=Math.sqrt(+r),f=p((f+1)/2)-(f<0||f%2),n=new z(r=u==1/0?'5e'+f:(r=u.toExponential()).slice(0,r.indexOf('e')+1)+f)):n=new z(u+''),n.c[0])for((u=(f=n.e)+l)<3&&(u=0);;)if(i=n,n=c.times(i.plus(E(o,i,l,1))),w(i.c).slice(0,u)===(r=w(n.c)).slice(0,u)){if(n.e0&&w>0){for(o=w%u||u,c=p.substr(0,o);o0&&(c+=l+p.slice(o)),h&&(c='-'+c)}t=a?c+(n.decimalSeparator||'')+((f=+n.fractionGroupSize)?a.replace(new RegExp('\\d{'+f+'}\\B','g'),'$&'+(n.fractionGroupSeparator||'')):a):c}return(n.prefix||'')+t+(n.suffix||'')},P.toFraction=function(e){var r,n,t,i,o,s,u,l,a,h,p,m,d=this,N=d.c;if(null!=e&&(!(u=new z(e)).isInteger()&&(u.c||1!==u.s)||u.lt(x)))throw Error("[BigNumber Error] Argument "+(u.isInteger()?'out of range: ':'not an integer: ')+Y(u));if(!N)return new z(d);for(r=new z(x),a=n=new z(x),t=l=new z(x),m=w(N),o=r.e=m.length-d.e-1,r.c[0]=c[(s=o%f)<0?f+s:s],e=!e||u.comparedTo(r)>0?o>0?r:a:u,s=M,M=1/0,u=new z(m),l.c[0]=0;h=E(u,r,0,1),1!=(i=n.plus(h.times(t))).comparedTo(e);)n=t,t=i,a=l.plus(h.times(i=a)),l=i,r=u.minus(h.times(i=r)),u=i;return i=E(e.minus(n),t,0,1),l=l.plus(i.times(a)),n=n.plus(i.times(t)),l.s=a.s=d.s,p=E(a,t,o*=2,U).minus(d).abs().comparedTo(E(l,n,o,U).minus(d).abs())<1?[a,t]:[l,n],M=s,p},P.toNumber=function(){return+Y(this)},P.toPrecision=function(e,r){return null!=e&&d(e,1,h),H(this,e,r,2)},P.toString=function(e){var r,n=this,t=n.s,i=n.e;return null===i?t?(r='Infinity',t<0&&(r='-'+r)):r='NaN':(null==e?r=i<=I||i>=T?v(w(n.c),i):b(w(n.c),i,'0'):10===e&&$?r=b(w((n=X(new z(n),L+i+1,U)).c),n.e,'0'):(d(e,2,j.length,'Base'),r=O(b(w(n.c),i,'0'),10,e,t,!0)),t<0&&n.c[0]&&(r='-'+r)),r},P.valueOf=P.toJSON=function(){return Y(this)},P._isBigNumber=!0,null!=r&&z.set(r),z})()).default=r.BigNumber=r,'function'==typeof define&&define.amd?define(function(){return r}):void 0!==_m&&_m.exports?_m.exports=r:(e||(e='undefined'!=typeof self&&self?self:window),e.BigNumber=r)})(this)},1679,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},e.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},e.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},e.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},e.SYMS={NULL:Symbol('null'),UNDEFINED:Symbol('undef'),PARENT:Symbol('parent'),BREAK:Symbol('break'),STREAM:Symbol('stream')},e.SHIFT32=Math.pow(2,32),e.SHIFT16=Math.pow(2,16),e.MAX_SAFE_HIGH=2097151,e.NEG_ONE=new(r(d[0]).BigNumber)(-1),e.TEN=new(r(d[0]).BigNumber)(10),e.TWO=new(r(d[0]).BigNumber)(2),e.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},1680,[1679]); -__d(function(_g,r,i,_a,m,_e,_d){'use strict';var t=(function(){function t(e){r(_d[0])(this,t),!(e=e||{}).size||e.size<65536?e.size=65536:e.size=r(_d[1]).nextPowerOf2(e.size),this._heap=new ArrayBuffer(e.size),this._heap8=new Uint8Array(this._heap),this._buffer=r(_d[2]).Buffer.from(this._heap),this._reset(),this._knownTags=r(_d[3])({0:function(t){return new Date(t)},1:function(t){return new Date(1e3*t)},2:function(t){return r(_d[1]).arrayBufferToBignumber(t)},3:function(t){return r(_d[4]).NEG_ONE.minus(r(_d[1]).arrayBufferToBignumber(t))},4:function(t){return r(_d[4]).TEN.pow(t[0]).times(t[1])},5:function(t){return r(_d[4]).TWO.pow(t[0]).times(t[1])},32:function(t){return new(r(_d[5]).URL)(t)},35:function(t){return new RegExp(t)}},e.tags),this.parser=r(_d[6])(_g,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}return r(_d[7])(t,[{key:"_depth",get:function(){return this._parents.length}},{key:"_currentParent",get:function(){return this._parents[this._depth-1]}},{key:"_ref",get:function(){return this._currentParent.ref}},{key:"_closeParent",value:function(){var t=this._parents.pop();if(t.length>0)throw new Error("Missing "+t.length+" elements");switch(t.type){case r(_d[4]).PARENT.TAG:this._push(this.createTag(t.ref[0],t.ref[1]));break;case r(_d[4]).PARENT.BYTE_STRING:this._push(this.createByteString(t.ref,t.length));break;case r(_d[4]).PARENT.UTF8_STRING:this._push(this.createUtf8String(t.ref,t.length));break;case r(_d[4]).PARENT.MAP:if(t.values%2>0)throw new Error('Odd number of elements in the map');this._push(this.createMap(t.ref,t.length));break;case r(_d[4]).PARENT.OBJECT:if(t.values%2>0)throw new Error('Odd number of elements in the map');this._push(this.createObject(t.ref,t.length));break;case r(_d[4]).PARENT.ARRAY:this._push(this.createArray(t.ref,t.length))}this._currentParent&&this._currentParent.type===r(_d[4]).PARENT.TAG&&this._dec()}},{key:"_dec",value:function(){var t=this._currentParent;t.length<0||(t.length--,0===t.length&&this._closeParent())}},{key:"_push",value:function(t,e){var n=this._currentParent;switch(n.values++,n.type){case r(_d[4]).PARENT.ARRAY:case r(_d[4]).PARENT.BYTE_STRING:case r(_d[4]).PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=t:this._ref.push(t),this._dec();break;case r(_d[4]).PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=t,n.tmpKey=null,this._dec()):(n.tmpKey=t,'string'!=typeof n.tmpKey&&(n.type=r(_d[4]).PARENT.MAP,n.ref=r(_d[1]).buildMap(n.ref)));break;case r(_d[4]).PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,t),n.tmpKey=null,this._dec()):n.tmpKey=t;break;case r(_d[4]).PARENT.TAG:this._ref.push(t),e||this._dec();break;default:throw new Error('Unknown parent type')}}},{key:"_createParent",value:function(t,e,n){this._parents[this._depth]={type:e,length:n,ref:t,values:0,tmpKey:null}}},{key:"_reset",value:function(){this._res=[],this._parents=[{type:r(_d[4]).PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}},{key:"createTag",value:function(t,e){var n=this._knownTags[t];return n?n(e):new(r(_d[8]))(t,e)}},{key:"createMap",value:function(t,e){return t}},{key:"createObject",value:function(t,e){return t}},{key:"createArray",value:function(t,e){return t}},{key:"createByteString",value:function(t,e){return r(_d[2]).Buffer.concat(t)}},{key:"createByteStringFromHeap",value:function(t,e){return t===e?r(_d[2]).Buffer.alloc(0):r(_d[2]).Buffer.from(this._heap.slice(t,e))}},{key:"createInt",value:function(t){return t}},{key:"createInt32",value:function(t,e){return r(_d[1]).buildInt32(t,e)}},{key:"createInt64",value:function(t,e,n,s){return r(_d[1]).buildInt64(t,e,n,s)}},{key:"createFloat",value:function(t){return t}},{key:"createFloatSingle",value:function(t,e,n,s){return r(_d[9]).read([t,e,n,s],0,!1,23,4)}},{key:"createFloatDouble",value:function(t,e,n,s,u,h,a,c){return r(_d[9]).read([t,e,n,s,u,h,a,c],0,!1,52,8)}},{key:"createInt32Neg",value:function(t,e){return-1-r(_d[1]).buildInt32(t,e)}},{key:"createInt64Neg",value:function(t,e,n,s){var u=r(_d[1]).buildInt32(t,e),h=r(_d[1]).buildInt32(n,s);return u>r(_d[4]).MAX_SAFE_HIGH?r(_d[4]).NEG_ONE.minus(new(r(_d[10]).BigNumber)(u).times(r(_d[4]).SHIFT32).plus(h)):-1-(u*r(_d[4]).SHIFT32+h)}},{key:"createTrue",value:function(){return!0}},{key:"createFalse",value:function(){return!1}},{key:"createNull",value:function(){return null}},{key:"createUndefined",value:function(){}},{key:"createInfinity",value:function(){return 1/0}},{key:"createInfinityNeg",value:function(){return-1/0}},{key:"createNaN",value:function(){return NaN}},{key:"createNaNNeg",value:function(){return NaN}},{key:"createUtf8String",value:function(t,e){return t.join('')}},{key:"createUtf8StringFromHeap",value:function(t,e){return t===e?'':this._buffer.toString('utf8',t,e)}},{key:"createSimpleUnassigned",value:function(t){return new(r(_d[11]))(t)}},{key:"pushInt",value:function(t){this._push(this.createInt(t))}},{key:"pushInt32",value:function(t,e){this._push(this.createInt32(t,e))}},{key:"pushInt64",value:function(t,e,n,s){this._push(this.createInt64(t,e,n,s))}},{key:"pushFloat",value:function(t){this._push(this.createFloat(t))}},{key:"pushFloatSingle",value:function(t,e,n,s){this._push(this.createFloatSingle(t,e,n,s))}},{key:"pushFloatDouble",value:function(t,e,n,s,u,h,a,c){this._push(this.createFloatDouble(t,e,n,s,u,h,a,c))}},{key:"pushInt32Neg",value:function(t,e){this._push(this.createInt32Neg(t,e))}},{key:"pushInt64Neg",value:function(t,e,n,s){this._push(this.createInt64Neg(t,e,n,s))}},{key:"pushTrue",value:function(){this._push(this.createTrue())}},{key:"pushFalse",value:function(){this._push(this.createFalse())}},{key:"pushNull",value:function(){this._push(this.createNull())}},{key:"pushUndefined",value:function(){this._push(this.createUndefined())}},{key:"pushInfinity",value:function(){this._push(this.createInfinity())}},{key:"pushInfinityNeg",value:function(){this._push(this.createInfinityNeg())}},{key:"pushNaN",value:function(){this._push(this.createNaN())}},{key:"pushNaNNeg",value:function(){this._push(this.createNaNNeg())}},{key:"pushArrayStart",value:function(){this._createParent([],r(_d[4]).PARENT.ARRAY,-1)}},{key:"pushArrayStartFixed",value:function(t){this._createArrayStartFixed(t)}},{key:"pushArrayStartFixed32",value:function(t,e){var n=r(_d[1]).buildInt32(t,e);this._createArrayStartFixed(n)}},{key:"pushArrayStartFixed64",value:function(t,e,n,s){var u=r(_d[1]).buildInt64(t,e,n,s);this._createArrayStartFixed(u)}},{key:"pushObjectStart",value:function(){this._createObjectStartFixed(-1)}},{key:"pushObjectStartFixed",value:function(t){this._createObjectStartFixed(t)}},{key:"pushObjectStartFixed32",value:function(t,e){var n=r(_d[1]).buildInt32(t,e);this._createObjectStartFixed(n)}},{key:"pushObjectStartFixed64",value:function(t,e,n,s){var u=r(_d[1]).buildInt64(t,e,n,s);this._createObjectStartFixed(u)}},{key:"pushByteStringStart",value:function(){this._parents[this._depth]={type:r(_d[4]).PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushByteString",value:function(t,e){this._push(this.createByteStringFromHeap(t,e))}},{key:"pushUtf8StringStart",value:function(){this._parents[this._depth]={type:r(_d[4]).PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushUtf8String",value:function(t,e){this._push(this.createUtf8StringFromHeap(t,e))}},{key:"pushSimpleUnassigned",value:function(t){this._push(this.createSimpleUnassigned(t))}},{key:"pushTagStart",value:function(t){this._parents[this._depth]={type:r(_d[4]).PARENT.TAG,length:1,ref:[t]}}},{key:"pushTagStart4",value:function(t,e){this.pushTagStart(r(_d[1]).buildInt32(t,e))}},{key:"pushTagStart8",value:function(t,e,n,s){this.pushTagStart(r(_d[1]).buildInt64(t,e,n,s))}},{key:"pushTagUnassigned",value:function(t){this._push(this.createTag(t))}},{key:"pushBreak",value:function(){if(this._currentParent.length>-1)throw new Error('Unexpected break');this._closeParent()}},{key:"_createObjectStartFixed",value:function(t){0!==t?this._createParent({},r(_d[4]).PARENT.OBJECT,t):this._push(this.createObject({}))}},{key:"_createArrayStartFixed",value:function(t){0!==t?this._createParent(new Array(t),r(_d[4]).PARENT.ARRAY,t):this._push(this.createArray([]))}},{key:"_decode",value:function(t){if(0===t.byteLength)throw new Error('Input too short');this._reset(),this._heap8.set(t);var e=this.parser.parse(t.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error('Undeterminated nesting')}if(e>0)throw new Error('Failed to parse');if(0===this._res.length)throw new Error('No valid result')}},{key:"decodeFirst",value:function(t){return this._decode(t),this._res[0]}},{key:"decodeAll",value:function(t){return this._decode(t),this._res}}],[{key:"decode",value:function(e,n){return'string'==typeof e&&(e=r(_d[2]).Buffer.from(e,n||'hex')),new t({size:e.length}).decodeFirst(e)}},{key:"decodeAll",value:function(e,n){return'string'==typeof e&&(e=r(_d[2]).Buffer.from(e,n||'hex')),new t({size:e.length}).decodeAll(e)}}]),t})();t.decodeFirst=t.decode,m.exports=t},1681,[7,1678,982,4,1680,1682,1685,8,1686,983,1679,1687]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={URL:r(d[0]).URLWithLegacySupport,URLSearchParams:r(d[0]).URLSearchParams,format:r(d[0]).format,relative:r(d[1]),defaultBase:r(d[0]).defaultBase}},1682,[1683,1684]); -__d(function(g,r,i,a,m,e,d){'use strict';var t='undefined'!=typeof navigator&&'ReactNative'===navigator.product;var s=self.URL,n=t?'http://localhost':self.location?self.location.protocol+'//'+self.location.host:'',o=(function(){function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;r(d[0])(this,t),this.super=new s(o,u),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+':'+this.password:null,this.query=this.search&&this.search.startsWith('?')?this.search.slice(1):null}return r(d[1])(t,[{key:"hash",get:function(){return this.super.hash},set:function(t){this.super.hash=t}},{key:"host",get:function(){return this.super.host},set:function(t){this.super.host=t}},{key:"hostname",get:function(){return this.super.hostname},set:function(t){this.super.hostname=t}},{key:"href",get:function(){return this.super.href},set:function(t){this.super.href=t}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(t){this.super.password=t}},{key:"pathname",get:function(){return this.super.pathname},set:function(t){this.super.pathname=t}},{key:"port",get:function(){return this.super.port},set:function(t){this.super.port=t}},{key:"protocol",get:function(){return this.super.protocol},set:function(t){this.super.protocol=t}},{key:"search",get:function(){return this.super.search},set:function(t){this.super.search=t}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(t){this.super.username=t}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}}],[{key:"createObjectURL",value:function(t){return s.createObjectURL(t)}},{key:"revokeObjectURL",value:function(t){s.revokeObjectURL(t)}}]),t})();m.exports={URLWithLegacySupport:o,URLSearchParams:self.URLSearchParams,defaultBase:n,format:function(t){if('string'==typeof t)return new s(t).toString();if(!(t instanceof s)){var n=t.username&&t.password?t.username+":"+t.password+"@":'',o=t.auth?t.auth+'@':'',u=t.port?':'+t.port:'',h=t.protocol?t.protocol+'//':'',c=t.host||'',p=t.hostname||'',f=t.search||(t.query?'?'+t.query:''),l=t.hash||'',y=t.pathname||'',k=t.path||y+f;return""+h+(n||o)+(c||p+u)+k+l}}}},1683,[7,8]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=arguments.length>3?arguments[3]:void 0,h=c.protocol?c.protocol.replace(':',''):'http';h=(n[h]||p||h)+':';try{o=new(r(d[0]).URLWithLegacySupport)(t)}catch(t){o={}}var l=r(d[1])({},c,{protocol:h||o.protocol,host:c.host||o.host});return new(r(d[0]).URLWithLegacySupport)(t,r(d[0]).format(l)).toString()}},1684,[1683,4]); -__d(function(_g,_r,i,a,m,e,d){m.exports=function(r,n,t){'use asm';var u=new r.Uint8Array(t);var f=n.pushInt;var v=n.pushInt32;var o=n.pushInt32Neg;var c=n.pushInt64;var s=n.pushInt64Neg;var p=n.pushFloat;var h=n.pushFloatSingle;var S=n.pushFloatDouble;var g=n.pushTrue;var l=n.pushFalse;var x=n.pushUndefined;var F=n.pushNull;var y=n.pushInfinity;var N=n.pushInfinityNeg;var I=n.pushNaN;var b=n.pushNaNNeg;var U=n.pushArrayStart;var A=n.pushArrayStartFixed;var T=n.pushArrayStartFixed32;var j=n.pushArrayStartFixed64;var O=n.pushObjectStart;var w=n.pushObjectStartFixed;var B=n.pushObjectStartFixed32;var k=n.pushObjectStartFixed64;var _=n.pushByteString;var C=n.pushByteStringStart;var D=n.pushUtf8String;var M=n.pushUtf8StringStart;var q=n.pushSimpleUnassigned;var z=n.pushTagStart;var E=n.pushTagStart4;var G=n.pushTagStart8;var H=n.pushTagUnassigned;var J=n.pushBreak;var K=r.Math.pow;var L=0;var P=0;var Q=0;function R(r){r=r|0;L=0;P=r;while((L|0)<(P|0)){Q=Wr[u[L]&255](u[L]|0)|0;if((Q|0)>0){break}}return Q|0}function V(r){r=r|0;if(((L|0)+(r|0)|0)<(P|0)){return 0}return 1}function W(r){r=r|0;return u[r|0]<<8|u[r+1|0]|0}function X(r){r=r|0;return u[r|0]<<24|u[r+1|0]<<16|u[r+2|0]<<8|u[r+3|0]|0}function Y(r){r=r|0;f(r|0);L=L+1|0;return 0}function Z(r){r=r|0;if(V(1)|0){return 1}f(u[L+1|0]|0);L=L+2|0;return 0}function $(r){r=r|0;if(V(2)|0){return 1}f(W(L+1|0)|0);L=L+3|0;return 0}function rr(r){r=r|0;if(V(4)|0){return 1}v(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function nr(r){r=r|0;if(V(8)|0){return 1}c(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function tr(r){r=r|0;f(-1-(r-32|0)|0);L=L+1|0;return 0}function ur(r){r=r|0;if(V(1)|0){return 1}f(-1-(u[L+1|0]|0)|0);L=L+2|0;return 0}function er(r){r=r|0;var n=0;if(V(2)|0){return 1}n=W(L+1|0)|0;f(-1-(n|0)|0);L=L+3|0;return 0}function ir(r){r=r|0;if(V(4)|0){return 1}o(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function fr(r){r=r|0;if(V(8)|0){return 1}s(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function ar(r){r=r|0;var n=0;var t=0;var u=0;u=r-64|0;if(V(u|0)|0){return 1}n=L+1|0;t=(L+1|0)+(u|0)|0;_(n|0,t|0);L=t|0;return 0}function vr(r){r=r|0;var n=0;var t=0;var f=0;if(V(1)|0){return 1}f=u[L+1|0]|0;n=L+2|0;t=(L+2|0)+(f|0)|0;if(V(f+1|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function or(r){r=r|0;var n=0;var t=0;var u=0;if(V(2)|0){return 1}u=W(L+1|0)|0;n=L+3|0;t=(L+3|0)+(u|0)|0;if(V(u+2|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function cr(r){r=r|0;var n=0;var t=0;var u=0;if(V(4)|0){return 1}u=X(L+1|0)|0;n=L+5|0;t=(L+5|0)+(u|0)|0;if(V(u+4|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function sr(r){r=r|0;return 1}function pr(r){r=r|0;C();L=L+1|0;return 0}function hr(r){r=r|0;var n=0;var t=0;var u=0;u=r-96|0;if(V(u|0)|0){return 1}n=L+1|0;t=(L+1|0)+(u|0)|0;D(n|0,t|0);L=t|0;return 0}function Sr(r){r=r|0;var n=0;var t=0;var f=0;if(V(1)|0){return 1}f=u[L+1|0]|0;n=L+2|0;t=(L+2|0)+(f|0)|0;if(V(f+1|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function gr(r){r=r|0;var n=0;var t=0;var u=0;if(V(2)|0){return 1}u=W(L+1|0)|0;n=L+3|0;t=(L+3|0)+(u|0)|0;if(V(u+2|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function lr(r){r=r|0;var n=0;var t=0;var u=0;if(V(4)|0){return 1}u=X(L+1|0)|0;n=L+5|0;t=(L+5|0)+(u|0)|0;if(V(u+4|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function dr(r){r=r|0;return 1}function xr(r){r=r|0;M();L=L+1|0;return 0}function Fr(r){r=r|0;A(r-128|0);L=L+1|0;return 0}function yr(r){r=r|0;if(V(1)|0){return 1}A(u[L+1|0]|0);L=L+2|0;return 0}function Nr(r){r=r|0;if(V(2)|0){return 1}A(W(L+1|0)|0);L=L+3|0;return 0}function Ir(r){r=r|0;if(V(4)|0){return 1}T(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function br(r){r=r|0;if(V(8)|0){return 1}j(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function Ur(r){r=r|0;U();L=L+1|0;return 0}function Ar(r){r=r|0;var n=0;n=r-160|0;if(V(n|0)|0){return 1}w(n|0);L=L+1|0;return 0}function Tr(r){r=r|0;if(V(1)|0){return 1}w(u[L+1|0]|0);L=L+2|0;return 0}function jr(r){r=r|0;if(V(2)|0){return 1}w(W(L+1|0)|0);L=L+3|0;return 0}function Or(r){r=r|0;if(V(4)|0){return 1}B(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function wr(r){r=r|0;if(V(8)|0){return 1}k(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function Br(r){r=r|0;O();L=L+1|0;return 0}function kr(r){r=r|0;z(r-192|0|0);L=L+1|0;return 0}function mr(r){r=r|0;z(r-192|0|0);L=L+1|0;return 0}function Cr(r){r=r|0;if(V(1)|0){return 1}z(u[L+1|0]|0);L=L+2|0;return 0}function Dr(r){r=r|0;if(V(2)|0){return 1}z(W(L+1|0)|0);L=L+3|0;return 0}function Mr(r){r=r|0;if(V(4)|0){return 1}E(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function qr(r){r=r|0;if(V(8)|0){return 1}G(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function zr(r){r=r|0;q((r|0)-224|0);L=L+1|0;return 0}function Er(r){r=r|0;l();L=L+1|0;return 0}function Gr(r){r=r|0;g();L=L+1|0;return 0}function Hr(r){r=r|0;F();L=L+1|0;return 0}function Jr(r){r=r|0;x();L=L+1|0;return 0}function Kr(r){r=r|0;if(V(1)|0){return 1}q(u[L+1|0]|0);L=L+2|0;return 0}function Lr(r){r=r|0;var n=0;var t=0;var f=1.0;var v=0.0;var o=0.0;var c=0.0;if(V(2)|0){return 1}n=u[L+1|0]|0;t=u[L+2|0]|0;if((n|0)&0x80){f=-1}v=+(((n|0)&0x7C)>>2);o=+(((n|0)&0x03)<<8|t);if(+v==0.0){p(+(+f*5.960464477539063e-8*+o))}else if(+v==31.0){if(+f==1.0){if(+o>0.0){I()}else{y()}}else{if(+o>0.0){b()}else{N()}}}else{p(+(+f*K(2,+(+v-25.0))*+(1024.0+o)))}L=L+3|0;return 0}function Pr(r){r=r|0;if(V(4)|0){return 1}h(u[L+1|0]|0,u[L+2|0]|0,u[L+3|0]|0,u[L+4|0]|0);L=L+5|0;return 0}function Qr(r){r=r|0;if(V(8)|0){return 1}S(u[L+1|0]|0,u[L+2|0]|0,u[L+3|0]|0,u[L+4|0]|0,u[L+5|0]|0,u[L+6|0]|0,u[L+7|0]|0,u[L+8|0]|0);L=L+9|0;return 0}function Rr(r){r=r|0;return 1}function Vr(r){r=r|0;J();L=L+1|0;return 0}var Wr=[Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Z,$,rr,nr,Rr,Rr,Rr,Rr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,ur,er,ir,fr,Rr,Rr,Rr,Rr,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,vr,or,cr,sr,Rr,Rr,Rr,pr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,Sr,gr,lr,dr,Rr,Rr,Rr,xr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,yr,Nr,Ir,br,Rr,Rr,Rr,Ur,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Tr,jr,Or,wr,Rr,Rr,Rr,Br,kr,kr,kr,kr,kr,kr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,Cr,Dr,Mr,qr,Rr,Rr,Rr,Rr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,Er,Gr,Hr,Jr,Kr,Lr,Pr,Qr,Rr,Rr,Rr,Vr];return{parse:R}}},1685,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,s,u){if(r(d[0])(this,t),this.tag=n,this.value=s,this.err=u,'number'!=typeof this.tag)throw new Error('Invalid tag type ('+typeof this.tag+')');if(this.tag<0||(0|this.tag)!==this.tag)throw new Error('Tag must be a positive integer: '+this.tag)}return r(d[1])(t,[{key:"toString",value:function(){return this.tag+"("+JSON.stringify(this.value)+")"}},{key:"encodeCBOR",value:function(t){return t._pushTag(this.tag),t.pushAny(this.value)}},{key:"convert",value:function(n){var s,u;if('function'!=typeof(u=null!=n?n[this.tag]:void 0)&&'function'!=typeof(u=t['_tag'+this.tag]))return this;try{return u.call(t,this.value)}catch(t){return s=t,this.err=s,this}}}]),t})();m.exports=t},1686,[7,8]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=(function(){function n(t){if(r(d[0])(this,n),'number'!=typeof t)throw new Error('Invalid Simple type: '+typeof t);if(t<0||t>255||(0|t)!==t)throw new Error('value must be a small positive integer: '+t);this.value=t}return r(d[1])(n,[{key:"toString",value:function(){return'simple('+this.value+')'}},{key:"inspect",value:function(){return'simple('+this.value+')'}},{key:"encodeCBOR",value:function(n){return n._pushInt(this.value,r(d[2]).MT.SIMPLE_FLOAT)}}],[{key:"isSimple",value:function(t){return t instanceof n}},{key:"decode",value:function(t,u){switch(null==u&&(u=!0),t){case r(d[2]).SIMPLE.FALSE:return!1;case r(d[2]).SIMPLE.TRUE:return!0;case r(d[2]).SIMPLE.NULL:return u?null:r(d[2]).SYMS.NULL;case r(d[2]).SIMPLE.UNDEFINED:return u?void 0:r(d[2]).SYMS.UNDEFINED;case-1:if(!u)throw new Error('Invalid BREAK');return r(d[2]).SYMS.BREAK;default:return new n(t)}}}]),n})();m.exports=n},1687,[7,8,1680]); -__d(function(g,r,_i,_a,_m,e,d){'use strict';function t(t,n){var u="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(u)return(u=u.call(t)).next.bind(u);if(Array.isArray(t)||(u=s(t))||n&&t&&"number"==typeof t.length){u&&(t=u);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,s){if(t){if("string"==typeof t)return n(t,s);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?n(t,s):void 0}}function n(t,s){(null==s||s>t.length)&&(s=t.length);for(var n=0,u=new Array(s);n0)){F.next=19;break}throw new(r(d[5]).AriesFrameworkError)("Some fields are not currently supported in credential options: "+y.join(', '));case 19:return k=r(d[6]).JsonTransformer.fromJSON(p.credential,r(d[9]).W3cCredential),F.next=22,r(d[3]).awrap(f.signCredential(t,{credential:k,proofType:p.options.proofType,verificationMethod:h}));case 22:return A=F.sent,J=this.getFormatData(A,v.attachId),F.abrupt("return",{format:v,attachment:J});case 25:case"end":return F.stop()}},null,this,null,Promise)}},{key:"deriveVerificationMethod",value:function(t,n,o){var s,c,l,u,f,p,h,v;return r(d[3]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return s=t.dependencyManager.resolve(r(d[10]).DidResolverService),c=t.dependencyManager.resolve(r(d[8]).W3cCredentialService),l=r(d[6]).JsonTransformer.fromJSON(n,r(d[9]).W3cCredential),'string'!=typeof(u=l.issuer)&&(u=u.id),w.next=7,r(d[3]).awrap(s.resolveDidDocument(t,u));case 7:if(f=w.sent,p=o.options.proofType,(h=c.getVerificationMethodTypesByProofType(p))&&0!==h.length){w.next=12;break}throw new(r(d[5]).AriesFrameworkError)("No Key Type found for proofType "+p);case 12:return w.next=14,r(d[3]).awrap((0,r(d[11]).findVerificationMethodByKeyType)(h[0],f));case 14:if(v=w.sent){w.next=17;break}throw new(r(d[5]).AriesFrameworkError)("Missing verification method for key type "+h);case 17:return w.abrupt("return",v.id);case 18:case"end":return w.stop()}},null,null,null,Promise)}},{key:"processCredential",value:function(t,n){var o,s,c,l,u,f,p,h,v;return r(d[3]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return o=n.credentialRecord,s=n.attachment,c=n.requestAttachment,l=t.dependencyManager.resolve(r(d[8]).W3cCredentialService),u=s.getDataAsJson(),f=r(d[6]).JsonTransformer.fromJSON(u,r(d[9]).W3cVerifiableCredential),p=c.getDataAsJson(),this.verifyReceivedCredentialMatchesRequest(f,p),w.next=8,r(d[3]).awrap(l.verifyCredential(t,{credential:f}));case 8:if(!(h=w.sent)||h.verified){w.next=11;break}throw new(r(d[5]).AriesFrameworkError)("Failed to validate credential, error = "+h.error);case 11:return w.next=13,r(d[3]).awrap(l.storeCredential(t,{credential:f}));case 13:v=w.sent,o.credentials.push({credentialRecordType:this.credentialRecordType,credentialRecordId:v.id});case 15:case"end":return w.stop()}},null,this,null,Promise)}},{key:"verifyReceivedCredentialMatchesRequest",value:function(t,n){var o=r(d[6]).JsonTransformer.toJSON(t);if(delete o.proof,Array.isArray(t.proof))throw new(r(d[5]).AriesFrameworkError)('Credential proof arrays are not supported');if(n.options.created&&t.proof.created!==n.options.created)throw new(r(d[5]).AriesFrameworkError)('Received credential proof created does not match created from credential request');if(t.proof.domain!==n.options.domain)throw new(r(d[5]).AriesFrameworkError)('Received credential proof domain does not match domain from credential request');if(t.proof.challenge!==n.options.challenge)throw new(r(d[5]).AriesFrameworkError)('Received credential proof challenge does not match challenge from credential request');if(t.proof.type!==n.options.proofType)throw new(r(d[5]).AriesFrameworkError)('Received credential proof type does not match proof type from credential request');if(t.proof.proofPurpose!==n.options.proofPurpose)throw new(r(d[5]).AriesFrameworkError)('Received credential proof purpose does not match proof purpose from credential request');if(!(0,r(d[1]).areObjectsEqual)(o,n.credential))throw new(r(d[5]).AriesFrameworkError)('Received credential does not match credential request')}},{key:"supportsFormat",value:function(n){return[t,"aries/ld-proof-vc@1.0"].includes(n)}},{key:"deleteCredentialById",value:function(){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Not implemented.');case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"shouldAutoRespondToProposal",value:function(t,n){var o=n.offerAttachment,s=n.proposalAttachment;return this.areCredentialsEqual(s,o)}},{key:"shouldAutoRespondToOffer",value:function(t,n){var o=n.offerAttachment,s=n.proposalAttachment;return this.areCredentialsEqual(s,o)}},{key:"shouldAutoRespondToRequest",value:function(t,n){var o=n.offerAttachment,s=n.requestAttachment;return this.areCredentialsEqual(o,s)}},{key:"shouldAutoRespondToCredential",value:function(t,n){var o=n.requestAttachment,s=n.credentialAttachment.getDataAsJson(),c=r(d[6]).JsonTransformer.fromJSON(s,r(d[9]).W3cVerifiableCredential),l=o.getDataAsJson();try{return this.verifyReceivedCredentialMatchesRequest(c,l),!0}catch(t){return!1}}},{key:"getFormatData",value:function(t,n){return new(r(d[12]).Attachment)({id:n,mimeType:'application/json',data:new(r(d[12]).AttachmentData)({base64:r(d[1]).JsonEncoder.toBase64(t)})})}}]),n})();e.JsonLdCredentialFormatService=n},1691,[7,993,8,82,1646,612,626,1692,1699,1776,1347,1065,978]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,o){var r,c=arguments.length,d=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,n,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(d=(c<3?r(d):c>3?r(n,i,d):r(n,i))||d);return c>3&&d&&Object.defineProperty(n,i,d),d},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonLdCredentialDetail=void 0;var i=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.credential=n.credential,this.options=n.options)});t([(0,_r(_d[2]).Type)(function(){return _r(_d[3]).W3cCredential}),n("design:type",_r(_d[3]).W3cCredential)],i.prototype,"credential",void 0),t([(0,_r(_d[2]).Expose)({name:'options'}),(0,_r(_d[2]).Type)(function(){return _r(_d[4]).JsonLdCredentialDetailOptions}),n("design:type",_r(_d[4]).JsonLdCredentialDetailOptions)],i.prototype,"options",void 0),e.JsonLdCredentialDetail=i},1692,[8,7,627,1693,1698]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var s,c=arguments.length,o=c<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,n,r);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(o=(c<3?s(o):c>3?s(i,n,o):s(i,n))||o);return c>3&&o&&Object.defineProperty(i,n,o),o},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCredentialType=e.W3cCredential=void 0;var n=(function(){function t(i){var n;_r(_d[0])(this,t),i&&(this.context=null!==(n=i.context)&&void 0!==n?n:[_r(_d[1]).CREDENTIALS_CONTEXT_V1_URL],this.id=i.id,this.type=i.type||[],this.issuer=i.issuer,this.issuanceDate=i.issuanceDate,this.expirationDate=i.expirationDate,this.credentialSubject=i.credentialSubject)}return _r(_d[2])(t,[{key:"issuerId",get:function(){return this.issuer instanceof _r(_d[3]).Issuer?this.issuer.id:this.issuer}},{key:"credentialSchemaIds",get:function(){return this.credentialSchema?Array.isArray(this.credentialSchema)?this.credentialSchema.map(function(t){return t.id}):[this.credentialSchema.id]:[]}},{key:"credentialSubjectIds",get:function(){return Array.isArray(this.credentialSubject)?this.credentialSubject.map(function(t){return t.id}):[this.credentialSubject.id]}},{key:"contexts",get:function(){return Array.isArray(this.context)?this.context.filter(function(t){return'string'==typeof t}):'string'==typeof this.context?[this.context]:[this.context.id]}}]),t})();function r(t){return(0,_r(_d[6]).ValidateBy)({name:'IsVerifiableCredentialType',validator:{validate:function(t){return!!Array.isArray(t)&&t.includes(_r(_d[1]).VERIFIABLE_CREDENTIAL_TYPE)},defaultMessage:(0,_r(_d[6]).buildMessage)(function(t){return t+'$property must be an array of strings which includes "VerifiableCredential"'},t)}},t)}t([(0,_r(_d[4]).Expose)({name:'@context'}),(0,_r(_d[5]).IsJsonLdContext)(),i("design:type",Object)],n.prototype,"context",void 0),t([(0,_r(_d[6]).IsOptional)(),(0,_r(_d[7]).IsUri)(),i("design:type",String)],n.prototype,"id",void 0),t([r(),i("design:type",Array)],n.prototype,"type",void 0),t([(0,_r(_d[3]).IssuerTransformer)(),(0,_r(_d[3]).IsIssuer)(),i("design:type",Object)],n.prototype,"issuer",void 0),t([(0,_r(_d[6]).IsString)(),i("design:type",String)],n.prototype,"issuanceDate",void 0),t([(0,_r(_d[6]).IsString)(),(0,_r(_d[6]).IsOptional)(),i("design:type",String)],n.prototype,"expirationDate",void 0),t([(0,_r(_d[4]).Type)(function(){return _r(_d[8]).CredentialSubject}),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[8]).CredentialSubject}),i("design:type",Object)],n.prototype,"credentialSubject",void 0),t([(0,_r(_d[6]).IsOptional)(),(0,_r(_d[4]).Type)(function(){return _r(_d[9]).CredentialSchema}),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[9]).CredentialSchema}),i("design:type",Object)],n.prototype,"credentialSchema",void 0),e.W3cCredential=n,e.IsCredentialType=r},1693,[7,1061,8,1694,627,1695,662,1011,1696,1697]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var s,o=arguments.length,f=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,r,n,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(f=(o<3?s(f):o>3?s(r,n,f):s(r,n))||f);return o>3&&f&&Object.defineProperty(r,n,f),f},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsIssuer=e.IssuerTransformer=e.Issuer=void 0;var n=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.id=r.id)});t([(0,_r(_d[2]).IsUri)(),r("design:type",String)],n.prototype,"id",void 0),e.Issuer=n,e.IssuerTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var r=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?(0,_r(_d[4]).isString)(r)?r:(0,_r(_d[3]).plainToInstance)(n,r):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?(0,_r(_d[4]).isString)(r)?r:(0,_r(_d[3]).instanceToPlain)(r):r})},e.IsIssuer=function(t){return(0,_r(_d[4]).ValidateBy)({name:'IsIssuer',validator:{validate:function(t){return'string'==typeof t?_r(_d[2]).UriValidator.test(t):!!(0,_r(_d[4]).isInstance)(t,n)&&_r(_d[2]).UriValidator.test(t.id)},defaultMessage:(0,_r(_d[4]).buildMessage)(function(t){return t+'$property must be a string or an object with an id property'},t)}},t)}},1694,[8,7,1011,627,662]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsJsonLdContext=void 0,e.IsJsonLdContext=function(t){return(0,r(d[0]).ValidateBy)({name:'IsJsonLdContext',validator:{validate:function(t){return Array.isArray(t)?t.every(function(t){return(0,r(d[0]).isString)(t)&&(0,r(d[0]).isURL)(t)})&&t[0]===r(d[1]).CREDENTIALS_CONTEXT_V1_URL:'object'==typeof t},defaultMessage:(0,r(d[0]).buildMessage)(function(t){return t+'$property must be an array of strings or a JSON-LD context definition'},t)}},t)}},1695,[662,1061]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var o,c=arguments.length,f=c<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,n,r,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(f=(c<3?o(f):c>3?o(n,r,f):o(n,r))||f);return c>3&&f&&Object.defineProperty(n,r,f),f},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialSubjectTransformer=e.CredentialSubject=void 0;var r=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.id=n.id)});t([(0,_r(_d[2]).IsUri)(),n("design:type",String)],r.prototype,"id",void 0),e.CredentialSubject=r,e.CredentialSubjectTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var n=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?(0,_r(_d[4]).isString)(n)?n:(0,_r(_d[3]).plainToInstance)(r,n):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?(0,_r(_d[4]).isString)(n)?n:(0,_r(_d[3]).instanceToPlain)(n):n})}},1696,[8,7,1011,627,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,o){var n,c=arguments.length,f=c<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,i,r,o);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(f=(c<3?n(f):c>3?n(i,r,f):n(i,r))||f);return c>3&&f&&Object.defineProperty(i,r,f),f},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialSchema=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.type=i.type)});t([(0,_r(_d[2]).IsUri)(),i("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],r.prototype,"type",void 0),e.CredentialSchema=r},1697,[8,7,1011,662]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var r,p=arguments.length,s=p<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(s=(p<3?r(s):p>3?r(i,o,s):r(i,o))||s);return p>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonLdCredentialDetailOptions=e.JsonLdCredentialDetailCredentialStatus=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.type=i.type)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),e.JsonLdCredentialDetailCredentialStatus=o;var n=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.proofPurpose=i.proofPurpose,this.created=i.created,this.domain=i.domain,this.challenge=i.challenge,this.credentialStatus=i.credentialStatus,this.proofType=i.proofType)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"proofPurpose",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"created",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"domain",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"challenge",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"proofType",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsObject)(),i("design:type",o)],n.prototype,"credentialStatus",void 0),e.JsonLdCredentialDetailOptions=n},1698,[8,7,662]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&("get"in c?n.__esModule:!c.writable&&!c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureSuiteToken=e.orArrayToArray=e.w3cDate=void 0,n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),Object.defineProperty(e,"w3cDate",{enumerable:!0,get:function(){return r(d[4]).w3cDate}}),Object.defineProperty(e,"orArrayToArray",{enumerable:!0,get:function(){return r(d[4]).orArrayToArray}}),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),Object.defineProperty(e,"SignatureSuiteToken",{enumerable:!0,get:function(){return r(d[8]).SignatureSuiteToken}}),n(r(d[9]),e)},1699,[1700,1788,1795,1776,1775,1800,1061,1803,1790,1796]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var o,s=arguments.length,u=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(u=(s<3?o(u):s>3?o(r,n,u):o(r,n))||u);return s>3&&u&&Object.defineProperty(r,n,u),u},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.W3cCredentialService=void 0;var i=n(_r(_d[0])),o=n(_r(_d[1])),s=(function(){function t(r,n,i){_r(_d[2])(this,t),this.w3cCredentialRepository=r,this.signatureSuiteRegistry=n,this.w3cVcModuleConfig=i}return _r(_d[3])(t,[{key:"signCredential",value:function(t,r){var n,i,s,u,c,l,d,f;return _r(_d[4]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return i=(0,_r(_d[5]).createWalletKeyPairClass)(t.wallet),p.next=3,_r(_d[4]).awrap(this.getPublicKeyFromVerificationMethod(t,r.verificationMethod));case 3:if(s=p.sent,(u=this.signatureSuiteRegistry.getByProofType(r.proofType)).keyTypes.includes(s.keyType)){p.next=7;break}throw new(_r(_d[6]).AriesFrameworkError)('The key type of the verification method does not match the suite');case 7:return c=new i({controller:r.credential.issuerId,id:r.verificationMethod,key:s,wallet:t.wallet}),l=u.suiteClass,d=new l({key:c,LDKeyClass:i,proof:{verificationMethod:r.verificationMethod},useNativeCanonize:!1,date:null!==(n=r.created)&&void 0!==n?n:(0,_r(_d[7]).w3cDate)()}),p.next=12,_r(_d[4]).awrap(o.default.issue({credential:_r(_d[8]).JsonTransformer.toJSON(r.credential),suite:d,purpose:r.proofPurpose,documentLoader:this.w3cVcModuleConfig.documentLoader(t)}));case 12:return f=p.sent,p.abrupt("return",_r(_d[8]).JsonTransformer.fromJSON(f,_r(_d[9]).W3cVerifiableCredential));case 14:case"end":return p.stop()}},null,this,null,Promise)}},{key:"verifyCredential",value:function(t,r){var n,i,s;return _r(_d[4]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=this.getSignatureSuitesForCredential(t,r.credential),i={credential:_r(_d[8]).JsonTransformer.toJSON(r.credential),suite:n,documentLoader:this.w3cVcModuleConfig.documentLoader(t)},r.proofPurpose&&(i.purpose=r.proofPurpose),u.next=5,_r(_d[4]).awrap(o.default.verifyCredential(i));case 5:return s=u.sent,u.abrupt("return",s);case 7:case"end":return u.stop()}},null,this,null,Promise)}},{key:"createPresentation",value:function(t){var r;return _r(_d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return Array.isArray(t.credentials)||(t.credentials=[t.credentials]),r=o.default.createPresentation({verifiableCredential:t.credentials.map(function(t){return _r(_d[8]).JsonTransformer.toJSON(t)}),id:t.id,holder:t.holderUrl}),n.abrupt("return",_r(_d[8]).JsonTransformer.fromJSON(r,_r(_d[10]).W3cPresentation));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"signPresentation",value:function(t,r){var n,i,s,u,c,l,d,f;return _r(_d[4]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(n=(0,_r(_d[5]).createWalletKeyPairClass)(t.wallet),i=this.signatureSuiteRegistry.getByProofType(r.signatureType)){p.next=4;break}throw new(_r(_d[6]).AriesFrameworkError)("The requested proofType "+r.signatureType+" is not supported");case 4:return p.next=6,_r(_d[4]).awrap(this.getPublicKeyFromVerificationMethod(t,r.verificationMethod));case 6:if(s=p.sent,i.keyTypes.includes(s.keyType)){p.next=9;break}throw new(_r(_d[6]).AriesFrameworkError)('The key type of the verification method does not match the suite');case 9:return u=this.w3cVcModuleConfig.documentLoader(t),p.next=12,_r(_d[4]).awrap(u(r.verificationMethod));case 12:return c=p.sent.document,l=new n({controller:c.controller,id:r.verificationMethod,key:s,wallet:t.wallet}),d=new i.suiteClass({LDKeyClass:n,proof:{verificationMethod:r.verificationMethod},date:(new Date).toISOString(),key:l,useNativeCanonize:!1}),p.next=17,_r(_d[4]).awrap(o.default.signPresentation({presentation:_r(_d[8]).JsonTransformer.toJSON(r.presentation),suite:d,challenge:r.challenge,documentLoader:this.w3cVcModuleConfig.documentLoader(t)}));case 17:return f=p.sent,p.abrupt("return",_r(_d[8]).JsonTransformer.fromJSON(f,_r(_d[11]).W3cVerifiablePresentation));case 19:case"end":return p.stop()}},null,this,null,Promise)}},{key:"verifyPresentation",value:function(t,r){var n,i,s,u,c,l,d,f,p=this;return _r(_d[4]).async(function(y){for(;;)switch(y.prev=y.next){case 0:return n=(0,_r(_d[5]).createWalletKeyPairClass)(t.wallet),i=r.presentation.proof,Array.isArray(i)||(i=[i]),r.purpose&&(i=i.filter(function(t){return t.proofPurpose===r.purpose.term})),s=i.map(function(t){return new(0,p.signatureSuiteRegistry.getByProofType(t.type).suiteClass)({LDKeyClass:n,proof:{verificationMethod:t.verificationMethod},date:t.created,useNativeCanonize:!1})}),u=Array.isArray(r.presentation.verifiableCredential)?r.presentation.verifiableCredential:[r.presentation.verifiableCredential],c=u.map(function(r){return p.getSignatureSuitesForCredential(t,r)}),l=s.concat.apply(s,_r(_d[12])(c)),d={presentation:_r(_d[8]).JsonTransformer.toJSON(r.presentation),suite:l,challenge:r.challenge,documentLoader:this.w3cVcModuleConfig.documentLoader(t)},r.purpose&&(d.presentationPurpose=r.purpose),y.next=12,_r(_d[4]).awrap(o.default.verify(d));case 12:return f=y.sent,y.abrupt("return",f);case 14:case"end":return y.stop()}},null,this,null,Promise)}},{key:"deriveProof",value:function(t,r){var n,i,o,s;return _r(_d[4]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=this.signatureSuiteRegistry.getByProofType('BbsBlsSignatureProof2020'),i=n.suiteClass,o=new i,u.next=5,_r(_d[4]).awrap((0,_r(_d[13]).deriveProof)(_r(_d[8]).JsonTransformer.toJSON(r.credential),r.revealDocument,{suite:o,documentLoader:this.w3cVcModuleConfig.documentLoader(t)}));case 5:return s=u.sent,u.abrupt("return",s);case 7:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getPublicKeyFromVerificationMethod",value:function(t,r){var n,i,o,s;return _r(_d[4]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=this.w3cVcModuleConfig.documentLoader(t),u.next=3,_r(_d[4]).awrap(n(r));case 3:return i=u.sent,o=_r(_d[8]).JsonTransformer.fromJSON(i.document,_r(_d[14]).VerificationMethod),s=(0,_r(_d[15]).getKeyDidMappingByVerificationMethod)(o),u.abrupt("return",s.getKeyFromVerificationMethod(o));case 7:case"end":return u.stop()}},null,this,null,Promise)}},{key:"storeCredential",value:function(t,r){var n,o;return _r(_d[4]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[4]).awrap(i.default.expand(_r(_d[8]).JsonTransformer.toJSON(r.credential),{documentLoader:this.w3cVcModuleConfig.documentLoader(t)}));case 2:return n=s.sent[0]['@type'],o=new(_r(_d[16]).W3cCredentialRecord)({tags:{expandedTypes:(0,_r(_d[7]).orArrayToArray)(n)},credential:r.credential}),s.next=6,_r(_d[4]).awrap(this.w3cCredentialRepository.save(t,o));case 6:return s.abrupt("return",o);case 7:case"end":return s.stop()}},null,this,null,Promise)}},{key:"removeCredentialRecord",value:function(t,r){var n;return _r(_d[4]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[4]).awrap(this.w3cCredentialRepository.getById(t,r));case 2:return n=i.sent,i.next=5,_r(_d[4]).awrap(this.w3cCredentialRepository.delete(t,n));case 5:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getAllCredentialRecords",value:function(t){return _r(_d[4]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[4]).awrap(this.w3cCredentialRepository.getAll(t));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getCredentialRecordById",value:function(t,r){return _r(_d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[4]).awrap(this.w3cCredentialRepository.getById(t,r));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findCredentialRecordsByQuery",value:function(t,r){var n;return _r(_d[4]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[4]).awrap(this.w3cCredentialRepository.findByQuery(t,r));case 2:return n=i.sent,i.abrupt("return",n.map(function(t){return t.credential}));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getVerificationMethodTypesByProofType",value:function(t){return this.signatureSuiteRegistry.getByProofType(t).verificationMethodTypes}},{key:"getKeyTypesByProofType",value:function(t){return this.signatureSuiteRegistry.getByProofType(t).keyTypes}},{key:"findCredentialRecordByQuery",value:function(t,r){var n;return _r(_d[4]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d[4]).awrap(this.w3cCredentialRepository.findSingleByQuery(t,r));case 2:return n=i.sent,i.abrupt("return",null===n||void 0===n?void 0:n.credential);case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getSignatureSuitesForCredential",value:function(t,r){var n=this,i=(0,_r(_d[5]).createWalletKeyPairClass)(t.wallet),o=r.proof;return Array.isArray(o)||(o=[o]),o.map(function(t){var r,o=null===(r=n.signatureSuiteRegistry.getByProofType(t.type))||void 0===r?void 0:r.suiteClass;if(o)return new o({LDKeyClass:i,proof:{verificationMethod:t.verificationMethod},date:t.created,useNativeCanonize:!1})})}}]),t})();s=t([(0,_r(_d[17]).injectable)(),r("design:paramtypes",[_r(_d[16]).W3cCredentialRepository,_r(_d[18]).SignatureSuiteRegistry,_r(_d[19]).W3cVcModuleConfig])],s),e.W3cCredentialService=s},1700,[1701,1738,7,8,82,1773,612,1775,993,1776,1781,1782,42,1786,1420,1079,1787,1020,1790,1792]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=t(r(d[0]));e.default=u.default},1701,[1702]); -__d(function(g,r,_i2,a,m,e,d){var n=["documentLoader"],t=function(t){var o={},s=new(r(d[0]))({max:100});function c(o,s){var c=s.documentLoader,u=void 0===c?t.documentLoader:c,i=r(d[22])(s,n);return r(d[10])({},{documentLoader:u},i,o)}return t.compact=function(n,o,u){var i,l,p,x,f,w,b,h,k,v,y=arguments;return r(d[1]).async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(y.length<2)){C.next=2;break}throw new TypeError('Could not compact, too few arguments.');case 2:if(null!==o){C.next=4;break}throw new(r(d[2]))('The compaction context must not be null.','jsonld.CompactError',{code:'invalid local context'});case 4:if(null!==n){C.next=6;break}return C.abrupt("return",null);case 6:if((u=c(u,{base:r(d[3]).isString(n)?n:'',compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new(r(d[4]).IdentifierIssuer)('_:b'),contextResolver:new(r(d[5]))({sharedCache:s})})).link&&(u.skipExpansion=!0),u.compactToRelative||delete u.base,!u.skipExpansion){C.next=13;break}i=n,C.next=16;break;case 13:return C.next=15,r(d[1]).awrap(t.expand(n,u));case 15:i=C.sent;case 16:return C.next=18,r(d[1]).awrap(t.processContext(r(d[6]).getInitialContext(u),o,u));case 18:return l=C.sent,C.next=21,r(d[1]).awrap(r(d[7]).compact({activeCtx:l,element:i,options:u,compactionMap:u.compactionMap}));case 21:p=C.sent,u.compactArrays&&!u.graph&&r(d[3]).isArray(p)?1===p.length?p=p[0]:0===p.length&&(p={}):u.graph&&r(d[3]).isObject(p)&&(p=[p]),r(d[3]).isObject(o)&&'@context'in o&&(o=o['@context']),o=r(d[4]).clone(o),r(d[3]).isArray(o)||(o=[o]),x=o,o=[];for(f=0;f0)&&o.push(x[f]);if(w=o.length>0,1===o.length&&(o=o[0]),r(d[3]).isArray(p))b=r(d[7]).compactIri({activeCtx:l,iri:'@graph',relativeTo:{vocab:!0}}),h=p,p={},w&&(p['@context']=o),p[b]=h;else if(r(d[3]).isObject(p)&&w)for(v in k=p,p={'@context':o},k)p[v]=k[v];return C.abrupt("return",p);case 33:case"end":return C.stop()}},null,null,null,Promise)},t.expand=function(n,o){var u,i,l,p,x,f,w,b,h,k,v=arguments;return r(d[1]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(v.length<1)){y.next=2;break}throw new TypeError('Could not expand, too few arguments.');case 2:if(!1===(o=c(o,{keepFreeFloatingNodes:!1,contextResolver:new(r(d[5]))({sharedCache:s})})).expansionMap&&(o.expansionMap=void 0),u={},i=[],'expandContext'in o&&(l=r(d[4]).clone(o.expandContext),r(d[3]).isObject(l)&&'@context'in l?u.expandContext=l:u.expandContext={'@context':l},i.push(u.expandContext)),r(d[3]).isString(n)){y.next=11;break}u.input=r(d[4]).clone(n),y.next=17;break;case 11:return y.next=13,r(d[1]).awrap(t.get(n,o));case 13:x=y.sent,p=x.documentUrl,u.input=x.document,x.contextUrl&&(u.remoteContext={'@context':x.contextUrl},i.push(u.remoteContext));case 17:'base'in o||(o.base=p||''),f=r(d[6]).getInitialContext(o),w=0,b=i;case 20:if(!(wthis[t])return w(this,this[v].get(s)),!1;var b=this[v].get(s).value;return this[o]&&(this[l]||this[o](s,b.value)),b.now=k,b.maxAge=c,b.value=y,this[n]+=p-b.length,b.length=p,this.get(s),x(this),!0}var S=new A(s,y,p,k,c);return S.length>this[t]?(this[o]&&this[o](s,y),!1):(this[n]+=S.length,this[f].unshift(S),this[v].set(s,this[f].head),x(this),!0)}},{key:"has",value:function(t){if(!this[v].has(t))return!1;var n=this[v].get(t).value;return!b(this,n)}},{key:"get",value:function(t){return p(this,t,!0)}},{key:"peek",value:function(t){return p(this,t,!1)}},{key:"pop",value:function(){var t=this[f].tail;return t?(w(this,t),t.value):null}},{key:"del",value:function(t){w(this,this[v].get(t))}},{key:"load",value:function(t){this.reset();for(var n=Date.now(),u=t.length-1;u>=0;u--){var s=t[u],h=s.e||0;if(0===h)this.set(s.k,s.v);else{var o=h-n;o>0&&this.set(s.k,s.v,o)}}}},{key:"prune",value:function(){var t=this;this[v].forEach(function(n,u){return p(t,u,!1)})}}]),k})(),p=function(t,n,u){var h=t[v].get(n);if(h){var o=h.value;if(b(t,o)){if(w(t,h),!t[s])return}else u&&(t[y]&&(h.value.now=Date.now()),t[f].unshiftNode(h));return o.value}},b=function(t,n){if(!n||!n.maxAge&&!t[h])return!1;var u=Date.now()-n.now;return n.maxAge?u>n.maxAge:t[h]&&u>t[h]},x=function(u){if(u[n]>u[t])for(var s=u[f].tail;u[n]>u[t]&&null!==s;){var h=s.prev;w(u,s),s=h}},w=function(t,u){if(u){var s=u.value;t[o]&&t[o](s.key,s.value),t[n]-=s.length,t[v].delete(s.key),t[f].removeNode(u)}},A=r(d[1])(function t(n,u,s,h,o){r(d[0])(this,t),this.key=n,this.value=u,this.length=s,this.now=h,this.maxAge=o||0}),S=function(t,n,u,h){var o=u.value;b(t,o)&&(w(t,u),t[s]||(o=void 0)),o&&n.call(h,o.value,o.key,t)};m.exports=k},1703,[7,8,1704]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(i){var n=this;if(n instanceof t||(n=new t),n.tail=null,n.head=null,n.length=0,i&&'function'==typeof i.forEach)i.forEach(function(t){n.push(t)});else if(arguments.length>0)for(var h=0,l=arguments.length;h1)n=i;else{if(!this.head)throw new TypeError('Reduce of empty list with no initial value');h=this.head.next,n=this.head.value}for(var l=0;null!==h;l++)n=t(n,h.value,l),h=h.next;return n},t.prototype.reduceReverse=function(t,i){var n,h=this.tail;if(arguments.length>1)n=i;else{if(!this.tail)throw new TypeError('Reduce of empty list with no initial value');h=this.tail.prev,n=this.tail.value}for(var l=this.length-1;null!==h;l--)n=t(n,h.value,l),h=h.prev;return n},t.prototype.toArray=function(){for(var t=new Array(this.length),i=0,n=this.head;null!==n;i++)t[i]=n.value,n=n.next;return t},t.prototype.toArrayReverse=function(){for(var t=new Array(this.length),i=0,n=this.tail;null!==n;i++)t[i]=n.value,n=n.prev;return t},t.prototype.slice=function(i,n){(n=n||this.length)<0&&(n+=this.length),(i=i||0)<0&&(i+=this.length);var h=new t;if(nthis.length&&(n=this.length);for(var l=0,s=this.head;null!==s&&lthis.length&&(n=this.length);for(var l=this.length,s=this.tail;null!==s&&l>n;l--)s=s.prev;for(;null!==s&&l>i;l--,s=s.prev)h.push(s.value);return h},t.prototype.splice=function(t,n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var h=0,l=this.head;null!==l&&h0&&void 0!==arguments[0]?arguments[0]:'An unspecified JSON-LD error occurred.',n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'jsonld.Error',o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r(d[3])(this,u),(t=c.call(this,e)).name=n,t.message=e,t.details=o,t}return r(d[4])(u)})(r(d[5])(Error))},1706,[14,11,9,7,8,65]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.isArray=Array.isArray,t.isBoolean=function(t){return'boolean'==typeof t||'[object Boolean]'===Object.prototype.toString.call(t)},t.isDouble=function(n){return t.isNumber(n)&&(-1!==String(n).indexOf('.')||Math.abs(n)>=1e21)},t.isEmptyObject=function(n){return t.isObject(n)&&0===Object.keys(n).length},t.isNumber=function(t){return'number'==typeof t||'[object Number]'===Object.prototype.toString.call(t)},t.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},t.isObject=function(t){return'[object Object]'===Object.prototype.toString.call(t)},t.isString=function(t){return'string'==typeof t||'[object String]'===Object.prototype.toString.call(t)},t.isUndefined=function(t){return void 0===t}},1707,[]); -__d(function(g,r,_i,_a,m,_e,d){'use strict';function e(e,n){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=t(e))||n&&e&&"number"==typeof e.length){a&&(e=a);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n]*?>|"[^"]*?"|[^,])+/g,i=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,o=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,s={accept:'application/ld+json, application/json'},l={};function u(e,t){if(r(d[1]).isArray(t))for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).some(function(e){return'accept'===e.toLowerCase()}))throw new RangeError('Accept header may not be specified; only "'+s.accept+'" is supported.');return r(d[3])({Accept:s.accept},e)},l.parseLinkHeader=function(e){for(var t={},n=e.match(a),s=0;s0}return!1},l.hasValue=function(e,t,n){if(l.hasProperty(e,t)){var a=e[t],i=r(d[5]).isList(a);if(r(d[1]).isArray(a)||i){i&&(a=a['@list']);for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return u(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var u=0,o=new Array(n);u]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?)|(?:\"([^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?))[ \\t]*\\.))[ \\t]*$"),m.exports=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"parse",value:function(n){for(var u,v=[],y={},f=0,b=t(n.split(c.eoln));!(u=b()).done;){var g=u.value;if(f++,!c.empty.test(g)){var h=g.match(c.quad);if(null===h)throw new Error('N-Quads parse error on line '+f+'.');var j={subject:null,predicate:null,object:null,graph:null};if(void 0!==h[1]?j.subject={termType:"NamedNode",value:h[1]}:j.subject={termType:"BlankNode",value:h[2]},j.predicate={termType:"NamedNode",value:h[3]},void 0!==h[4]?j.object={termType:"NamedNode",value:h[4]}:void 0!==h[5]?j.object={termType:"BlankNode",value:h[5]}:(j.object={termType:p,value:void 0,datatype:{termType:"NamedNode"}},void 0!==h[7]?j.object.datatype.value=h[7]:void 0!==h[8]?(j.object.datatype.value=o,j.object.language=h[8]):j.object.datatype.value=l,j.object.value=h[6].replace(s,function(t,n,u,o){if(n)switch(n){case't':return'\t';case'b':return'\b';case'n':return'\n';case'r':return'\r';case'f':return'\f';case'"':return'"';case'\'':return'\'';case'\\':return'\\'}if(u)return String.fromCharCode(parseInt(u,16));if(o)throw new Error('Unsupported U escape')})),void 0!==h[9]?j.graph={termType:"NamedNode",value:h[9]}:void 0!==h[10]?j.graph={termType:"BlankNode",value:h[10]}:j.graph={termType:"DefaultGraph",value:''},j.graph.value in y){for(var N,T=!0,A=y[j.graph.value],w=t(A);!(N=w()).done;){if(i(N.value,j)){T=!1;break}}T&&(A.push(j),v.push(j))}else y[j.graph.value]=[j],v.push(j)}}return v}},{key:"serialize",value:function(u){Array.isArray(u)||(u=n.legacyDatasetToQuads(u));for(var o,l=[],p=t(u);!(o=p()).done;){var c=o.value;l.push(n.serializeQuad(c))}return l.sort().join('')}},{key:"serializeQuad",value:function(t){var n=t.subject,u=t.predicate,p=t.object,c=t.graph,i='';return"NamedNode"===n.termType?i+="<"+n.value+">":i+=""+n.value,i+=" <"+u.value+"> ","NamedNode"===p.termType?i+="<"+p.value+">":"BlankNode"===p.termType?i+=p.value:(i+="\""+y(p.value)+"\"",p.datatype.value===o?p.language&&(i+="@"+p.language):p.datatype.value!==l&&(i+="^^<"+p.datatype.value+">")),"NamedNode"===c.termType?i+=" <"+c.value+">":"BlankNode"===c.termType&&(i+=" "+c.value),i+=' .\n'}},{key:"legacyDatasetToQuads",value:function(t){var n=[],u={'blank node':"BlankNode",IRI:"NamedNode",literal:p},c=function(c){t[c].forEach(function(t){var i={};for(var v in t){var y=t[v],s={termType:u[y.type],value:y.value};s.termType===p&&(s.datatype={termType:"NamedNode"},'datatype'in y&&(s.datatype.value=y.datatype),'language'in y?('datatype'in y||(s.datatype.value=o),s.language=y.language):'datatype'in y||(s.datatype.value=l)),i[v]=s}i.graph='@default'===c?{termType:"DefaultGraph",value:''}:{termType:c.startsWith('_:')?"BlankNode":"NamedNode",value:c},n.push(i)})};for(var i in t)c(i);return n}}]),n})();var v=/["\\\n\r]/g;function y(t){return t.replace(v,function(t){switch(t){case'"':return'\\"';case'\\':return'\\\\';case'\n':return'\\n';case'\r':return'\\r'}})}var s=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},1711,[7,8]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=(function(){function t(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r(d[0])(this,t),this.prefix=n,this._existing=s,this.counter=u}return r(d[1])(t,[{key:"clone",value:function(){var n=this.prefix,s=this._existing,u=this.counter;return new t(n,new Map(s),u)}},{key:"getId",value:function(t){var n=t&&this._existing.get(t);if(n)return n;var s=this.prefix+this.counter;return this.counter++,t&&this._existing.set(t,s),s}},{key:"hasId",value:function(t){return this._existing.has(t)}},{key:"getOldIds",value:function(){return r(d[2])(this._existing.keys())}}]),t})()},1712,[7,8,42]); -__d(function(g,r,_i5,_a,m,e,d){'use strict';function t(t,n){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=a(t))||n&&t&&"number"==typeof t.length){s&&(t=s);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,a){if(t){if("string"==typeof t)return n(t,a);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(t,a):void 0}}function n(t,a){(null==a||a>t.length)&&(a=t.length);for(var n=0,s=new Array(a);na.hash?1:0}m.exports=(function(){function a(){r(d[0])(this,a),this.name='URDNA2015',this.blankNodeInfo=new Map,this.canonicalIssuer=new(r(d[1]))('_:c14n'),this.hashAlgorithm='sha256',this.quads=null}return r(d[2])(a,[{key:"main",value:function(a){var n,u,o,i,c,l,h,p,f,b,k,v,x,y,I,w,N,_,j,B,T,q,R,A,P,Q,D,C,F,H,S,M,z,O,U,E,W;return r(d[3]).async(function($){for(;;)switch($.prev=$.next){case 0:for(this.quads=a,n=t(a);!(u=n()).done;)o=u.value,this._addBlankNodeQuadInfo({quad:o,component:o.subject}),this._addBlankNodeQuadInfo({quad:o,component:o.object}),this._addBlankNodeQuadInfo({quad:o,component:o.graph});i=new Map,c=r(d[4])(this.blankNodeInfo.keys()),l=0,h=t(c);case 6:if((p=h()).done){$.next=15;break}if(f=p.value,++l%100!=0){$.next=11;break}return $.next=11,r(d[3]).awrap(this._yield());case 11:return $.next=13,r(d[3]).awrap(this._hashAndTrackBlankNode({id:f,hashToBlankNodes:i}));case 13:$.next=6;break;case 15:b=r(d[4])(i.keys()).sort(),k=[],v=t(b);case 18:if((x=v()).done){$.next=28;break}if(y=x.value,!((I=i.get(y)).length>1)){$.next=24;break}return k.push(I),$.abrupt("continue",26);case 24:w=I[0],this.canonicalIssuer.getId(w);case 26:$.next=18;break;case 28:N=0,_=k;case 29:if(!(N<_.length)){$.next=50;break}j=_[N],B=[],T=t(j);case 33:if((q=T()).done){$.next=45;break}if(R=q.value,!this.canonicalIssuer.hasId(R)){$.next=37;break}return $.abrupt("continue",43);case 37:return(A=new(r(d[1]))('_:b')).getId(R),$.next=41,r(d[3]).awrap(this.hashNDegreeQuads(R,A));case 41:P=$.sent,B.push(P);case 43:$.next=33;break;case 45:for(B.sort(s),Q=0,D=B;Qh)){R.next=29;break}return I=!0,R.abrupt("break",31);case 29:R.next=23;break;case 31:if(!I){R.next=33;break}return R.abrupt("continue",13);case 33:j=0,B=y;case 34:if(!(j",v=q.issuer,!(0!==h.length&&x>h)){R.next=45;break}return I=!0,R.abrupt("break",48);case 45:j++,R.next=34;break;case 48:if(!I){R.next=50;break}return R.abrupt("continue",13);case 50:(0===h.length||x"}},{key:"createHashToRelated",value:function(a,n){var s,u,o,i,c,l;return r(d[3]).async(function(h){for(;;)switch(h.prev=h.next){case 0:s=new Map,u=this.blankNodeInfo.get(a).quads,o=0,i=t(u);case 4:if((c=i()).done){h.next=13;break}if(l=c.value,++o%100!=0){h.next=9;break}return h.next=9,r(d[3]).awrap(this._yield());case 9:return h.next=11,r(d[3]).awrap(Promise.all([this._addRelatedBlankNodeHash({quad:l,component:l.subject,position:'s',id:a,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:l,component:l.object,position:'o',id:a,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:l,component:l.graph,position:'g',id:a,issuer:n,hashToRelated:s})]));case 11:h.next=4;break;case 13:return h.abrupt("return",s);case 14:case"end":return h.stop()}},null,this,null,Promise)}},{key:"_hashAndTrackBlankNode",value:function(t){var a,n,s,u;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return a=t.id,n=t.hashToBlankNodes,o.next=3,r(d[3]).awrap(this.hashFirstDegreeQuads(a));case 3:s=o.sent,(u=n.get(s))?u.push(a):n.set(s,[a]);case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"_addBlankNodeQuadInfo",value:function(t){var a=t.quad,n=t.component;if('BlankNode'===n.termType){var s=n.value,u=this.blankNodeInfo.get(s);u?u.quads.add(a):this.blankNodeInfo.set(s,{quads:new Set([a]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:function(t){var a,n,s,u,o,i,c,l,h;return r(d[3]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(a=t.quad,n=t.component,s=t.position,u=t.id,o=t.issuer,i=t.hashToRelated,'BlankNode'===n.termType&&n.value!==u){p.next=3;break}return p.abrupt("return");case 3:return c=n.value,p.next=6,r(d[3]).awrap(this.hashRelatedBlankNode(c,a,o,s));case 6:l=p.sent,(h=i.get(l))?h.push(c):i.set(l,[c]);case 9:case"end":return p.stop()}},null,this,null,Promise)}},{key:"_useCanonicalId",value:function(t){var a=t.component;return'BlankNode'!==a.termType||a.value.startsWith(this.canonicalIssuer.prefix)?a:{termType:'BlankNode',value:this.canonicalIssuer.getId(a.value)}}},{key:"_yield",value:function(){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return setImmediate(t)}));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),a})()},1713,[7,1712,8,82,42,4,1711,1714,1715]); -__d(function(g,r,_i,a,m,e,d){'use strict';r(d[0]),m.exports=(function(){function t(n){if(r(d[1])(this,t),!r(d[2])||!r(d[2]).subtle)throw new Error('crypto.subtle not found.');if('sha256'===n)this.algorithm={name:'SHA-256'};else{if('sha1'!==n)throw new Error("Unsupported algorithm \""+n+"\".");this.algorithm={name:'SHA-1'}}this._content=''}return r(d[3])(t,[{key:"update",value:function(t){this._content+=t}},{key:"digest",value:function(){var t,n,o,s;return r(d[4]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=(new TextEncoder).encode(this._content),i.t0=Uint8Array,i.next=4,r(d[4]).awrap(r(d[2]).subtle.digest(this.algorithm,t));case 4:for(i.t1=i.sent,n=new i.t0(i.t1),o='',s=0;s=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);ou)&&(h&&c>0&&f>n[c-1]||!h&&cn[c+1])&&(u=f,l=c)}if(null===u)this.done=!0;else{var v=o.get(u)?l-1:l+1;n[l]=n[v],n[v]=u;for(var y,b=t(n);!(y=b()).done;){var p=y.value;p>u&&o.set(p,!o.get(p))}}return i}}]),n})()},1715,[7,8]); -__d(function(g,r,_i,a,m,_e,d){'use strict';function e(e,n){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=t(e))||n&&e&&"number"==typeof e.length){o&&(e=o);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=a.length?{done:!0}:{done:!1,value:a[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(a,t){if(a){if("string"==typeof a)return n(a,t);var o=Object.prototype.toString.call(a).slice(8,-1);return"Object"===o&&a.constructor&&(o=a.constructor.name),"Map"===o||"Set"===o?Array.from(a):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(a,t):void 0}}function n(a,t){(null==t||t>a.length)&&(t=a.length);for(var n=0,o=new Array(t);nt.hash?1:0}m.exports=(function(){function t(){r(d[0])(this,t),this.name='URDNA2015',this.blankNodeInfo=new Map,this.canonicalIssuer=new(r(d[1]))('_:c14n'),this.hashAlgorithm='sha256',this.quads=null}return r(d[2])(t,[{key:"main",value:function(t){this.quads=t;for(var n,s=a(t);!(n=s()).done;){var i=n.value;this._addBlankNodeQuadInfo({quad:i,component:i.subject}),this._addBlankNodeQuadInfo({quad:i,component:i.object}),this._addBlankNodeQuadInfo({quad:i,component:i.graph})}for(var h,u=new Map,l=a(r(d[3])(this.blankNodeInfo.keys()));!(h=l()).done;){var c=h.value;this._hashAndTrackBlankNode({id:c,hashToBlankNodes:u})}for(var v,f=[],p=a(r(d[3])(u.keys()).sort());!(v=p()).done;){var k=v.value,I=u.get(k);if(I.length>1)f.push(I);else{var y=I[0];this.canonicalIssuer.getId(y)}}for(var b=0,N=f;bl){b=!0;break}}if(!b){for(var B=0,_=y;B<_.length;B++){var T=_[B],q=this.hashNDegreeQuads(T,k);if(I+=k.getId(T),I+="<"+q.hash+">",k=q.issuer,0!==l.length&&I>l){b=!0;break}}b||(0===l.length||I"}},{key:"createHashToRelated",value:function(t,n){for(var o,s=new Map,i=a(this.blankNodeInfo.get(t).quads);!(o=i()).done;){var h=o.value;this._addRelatedBlankNodeHash({quad:h,component:h.subject,position:'s',id:t,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:h,component:h.object,position:'o',id:t,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:h,component:h.graph,position:'g',id:t,issuer:n,hashToRelated:s})}return s}},{key:"_hashAndTrackBlankNode",value:function(a){var t=a.id,n=a.hashToBlankNodes,o=this.hashFirstDegreeQuads(t),s=n.get(o);s?s.push(t):n.set(o,[t])}},{key:"_addBlankNodeQuadInfo",value:function(a){var t=a.quad,n=a.component;if('BlankNode'===n.termType){var o=n.value,s=this.blankNodeInfo.get(o);s?s.quads.add(t):this.blankNodeInfo.set(o,{quads:new Set([t]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:function(a){var t=a.quad,n=a.component,o=a.position,s=a.id,i=a.issuer,h=a.hashToRelated;if('BlankNode'===n.termType&&n.value!==s){var u=n.value,l=this.hashRelatedBlankNode(u,t,i,o),c=h.get(l);c?c.push(u):h.set(l,[u])}}},{key:"_useCanonicalId",value:function(a){var t=a.component;return'BlankNode'!==t.termType||t.value.startsWith(this.canonicalIssuer.prefix)?t:{termType:'BlankNode',value:this.canonicalIssuer.getId(t.value)}}}]),t})()},1717,[7,1712,8,42,4,1711,1714,1715]); -__d(function(g,r,_i,a,m,_e,d){'use strict';function e(e,n){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=t(e))||n&&e&&"number"==typeof e.length){o&&(e=o);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1||!('@id'in n))},n.isSubjectReference=function(n){return r(d[0]).isObject(n)&&1===Object.keys(n).length&&'@id'in n},n.isValue=function(n){return r(d[0]).isObject(n)&&'@value'in n},n.isList=function(n){return r(d[0]).isObject(n)&&'@list'in n},n.isGraph=function(n){return r(d[0]).isObject(n)&&'@graph'in n&&1===Object.keys(n).filter(function(n){return'@id'!==n&&'@index'!==n}).length},n.isSimpleGraph=function(t){return n.isGraph(t)&&!('@id'in t)},n.isBlankNode=function(n){return!!r(d[0]).isObject(n)&&('@id'in n?0===n['@id'].indexOf('_:'):0===Object.keys(n).length||!('@value'in n||'@set'in n||'@list'in n))}},1719,[1707]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(t,o){var c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(c)return(c=c.call(t)).next.bind(c);if(Array.isArray(t)||(c=n(t))||o&&t&&"number"==typeof t.length){c&&(t=c);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var c=Object.prototype.toString.call(t).slice(8,-1);return"Object"===c&&t.constructor&&(c=t.constructor.name),"Map"===c||"Set"===c?Array.from(t):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,c=new Array(n);o10)){l.next=3;break}throw new(r(d[8]))('Maximum number of @context URLs exceeded.','jsonld.ContextUrlError',{code:'json-ld-1.0'===n.processingMode?'loading remote context failed':'context overflow',max:10});case 3:if(!s.has(o)){l.next=5;break}throw new(r(d[8]))('Cyclical @context URLs detected.','jsonld.ContextUrlError',{code:'json-ld-1.0'===n.processingMode?'recursive context inclusion':'context overflow',url:o});case 5:return s.add(o),l.prev=6,l.next=9,r(d[2]).awrap(c(o));case 9:u=l.sent,i=u.document||null,r(d[3]).isString(i)&&(i=JSON.parse(i)),l.next=17;break;case 14:throw l.prev=14,l.t0=l.catch(6),new(r(d[8]))("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.",'jsonld.InvalidUrl',{code:'loading remote context failed',url:o,cause:l.t0});case 17:if(r(d[3]).isObject(i)){l.next=19;break}throw new(r(d[8]))("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.",'jsonld.InvalidUrl',{code:'invalid remote context',url:o});case 19:return i='@context'in i?{'@context':i['@context']}:{'@context':{}},u.contextUrl&&(r(d[3]).isArray(i['@context'])||(i['@context']=[i['@context']]),i['@context'].push(u.contextUrl)),l.abrupt("return",{context:i,remoteDoc:u});case 22:case"end":return l.stop()}},null,null,[[6,14]],Promise)}}]),n})()},1720,[7,8,82,1707,1708,42,1721,1722,1706]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=10;m.exports=(function(){function c(n){var s=n.document;r(d[0])(this,c),this.document=s,this.cache=new(r(d[1]))({max:t})}return r(d[2])(c,[{key:"getProcessed",value:function(t){return this.cache.get(t)}},{key:"setProcessed",value:function(t,c){this.cache.set(t,c)}}]),c})()},1721,[7,1703,8]); -__d(function(g,r,_i,a,_m,e,d){'use strict';var t={};_m.exports=t,t.parsers={simple:{keys:['href','scheme','authority','path','query','fragment'],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:['href','protocol','scheme','authority','auth','user','password','hostname','port','path','directory','file','query','fragment'],regex:/^(([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},t.parse=function(n,u){for(var h={},o=t.parsers[u||'full'],s=o.regex.exec(n),i=o.keys.length;i--;)h[o.keys[i]]=void 0===s[i]?null:s[i];return('https'===h.scheme&&'443'===h.port||'http'===h.scheme&&'80'===h.port)&&(h.href=h.href.replace(':'+h.port,''),h.authority=h.authority.replace(':'+h.port,''),h.port=null),h.normalizedPath=t.removeDotSegments(h.path),h},t.prependBase=function(n,u){if(null===n)return u;if(t.isAbsolute(u))return u;n&&!r(d[0]).isString(n)||(n=t.parse(n||''));var h=t.parse(u),o={protocol:n.protocol||''};if(null!==h.authority)o.authority=h.authority,o.path=h.path,o.query=h.query;else if(o.authority=n.authority,''===h.path)o.path=n.path,null!==h.query?o.query=h.query:o.query=n.query;else{if(0===h.path.indexOf('/'))o.path=h.path;else{var s=n.path;((s=s.substr(0,s.lastIndexOf('/')+1)).length>0||n.authority)&&'/'!==s.substr(-1)&&(s+='/'),s+=h.path,o.path=s}o.query=h.query}''!==h.path&&(o.path=t.removeDotSegments(o.path));var i=o.protocol;return null!==o.authority&&(i+='//'+o.authority),i+=o.path,null!==o.query&&(i+='?'+o.query),null!==h.fragment&&(i+='#'+h.fragment),''===i&&(i='./'),i},t.removeBase=function(n,u){if(null===n)return u;n&&!r(d[0]).isString(n)||(n=t.parse(n||''));var h='';if(''!==n.href?h+=(n.protocol||'')+'//'+(n.authority||''):u.indexOf('//')&&(h+='//'),0!==u.indexOf(h))return u;for(var o=t.parse(u.substr(h.length)),s=n.normalizedPath.split('/'),i=o.normalizedPath.split('/'),l=o.fragment||o.query?0:1;s.length>0&&i.length>l&&s[0]===i[0];)s.shift(),i.shift();var p='';if(s.length>0){s.pop();for(var f=0;f0;){var h=n.shift(),o=0===n.length;'.'!==h?'..'!==h?u.push(h):(u.pop(),o&&u.push('')):o&&u.push('')}return'/'===t[0]&&u.length>0&&''!==u[0]&&u.unshift(''),1===u.length&&''===u[0]?'/':u.join('/')};var n=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;t.isAbsolute=function(t){return r(d[0]).isString(t)&&n.test(t)},t.isRelative=function(t){return r(d[0]).isString(t)}},1722,[1707]); -__d(function(g,r,_i2,a,m,e,d){'use strict';function n(n,o){var i="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(i)return(i=i.call(n)).next.bind(i);if(Array.isArray(n)||(i=t(n))||o&&n&&"number"==typeof n.length){i&&(n=i);var s=0;return function(){return s>=n.length?{done:!0}:{done:!1,value:n[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(n,t){if(n){if("string"==typeof n)return o(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(n,t):void 0}}function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var o=0,i=new Array(t);o0){var u=t.substr(0,v),f=t.substr(v+1);if('_'===u||0===f.indexOf('//'))return t;i&&i.hasOwnProperty(u)&&c.createTermDefinition({activeCtx:n,localCtx:i,term:u,defined:l,options:x});var y=n.mappings.get(u);if(y&&y._prefix)return y['@id']+f;if(r(d[5]).isAbsolute(t))return t}var b=!1;if(void 0!==x&&void 0!==x.typeExpansion&&(b=x.typeExpansion),o.vocab&&'@vocab'in n){var w=n['@vocab']+t,h=void 0;x&&x.expansionMap&&(h=x.expansionMap({prependedIri:{type:'@vocab',vocab:n['@vocab'],value:t,result:w,typeExpansion:b},activeCtx:n,options:x})),t=void 0!==h?h:w}else if(o.base){var S,I,j;'@base'in n?n['@base']?(j=r(d[5]).prependBase(x.base,n['@base']),S=r(d[5]).prependBase(j,t)):(j=n['@base'],S=t):(j=x.base,S=r(d[5]).prependBase(x.base,t)),x&&x.expansionMap&&(I=x.expansionMap({prependedIri:{type:'@base',base:j,value:t,result:S,typeExpansion:b},activeCtx:n,options:x})),t=void 0!==I?I:S}if(!r(d[5]).isAbsolute(t)&&x&&x.expansionMap){var O=x.expansionMap({relativeIri:t,activeCtx:n,typeExpansion:b,options:x});void 0!==O&&(t=O)}return t}function x(n,t){if(!n||'object'!=typeof n||!t||'object'!=typeof t)return n===t;var o=Array.isArray(n);if(o!==Array.isArray(t))return!1;if(o){if(n.length!==t.length)return!1;for(var i=0;i0,'@reverse'in t){if('@id'in t)throw new(r(d[3]))("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});if('@nest'in t)throw new(r(d[3]))("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});var L=t['@reverse'];if(!r(d[1]).isString(L))throw new(r(d[3]))('Invalid JSON-LD syntax; a @context @reverse value must be a string.','jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(!c.isKeyword(L)&&L.match(s))return console.warn("WARNING: values beginning with \"@\" are reserved for future use and ignored",{reverse:L}),void(h?o.mappings.set(p,h):o.mappings.delete(p));var N=l(o,L,{vocab:!0,base:!1},i,v,u);if(!r(d[5]).isAbsolute(N))throw new(r(d[3]))("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});I['@id']=N,I.reverse=!0}else if('@id'in t){var E=t['@id'];if(E&&!r(d[1]).isString(E))throw new(r(d[3]))("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(null===E)I['@id']=null;else{if(!c.isKeyword(E)&&E.match(s))return console.warn("WARNING: values beginning with \"@\" are reserved for future use and ignored",{id:E}),void(h?o.mappings.set(p,h):o.mappings.delete(p));if(E!==p){if(E=l(o,E,{vocab:!0,base:!1},i,v,u),!r(d[5]).isAbsolute(E)&&!c.isKeyword(E))throw new(r(d[3]))("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(p.match(/(?::[^:])|\//))if(l(o,p,{vocab:!0,base:!1},i,new Map(v).set(p,!0),u)!==E)throw new(r(d[3]))("Invalid JSON-LD syntax; term in form of IRI must expand to definition.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});I['@id']=E,I._prefix=S&&!I._termHasColon&&E.match(/[:\/\?#\[\]@]$/)}}}if(!('@id'in I))if(I._termHasColon){var D=p.substr(0,k);if(i.hasOwnProperty(D)&&c.createTermDefinition({activeCtx:o,localCtx:i,term:D,defined:v,options:u}),o.mappings.has(D)){var C=p.substr(k+1);I['@id']=o.mappings.get(D)['@id']+C}else I['@id']=p}else if('@type'===p)I['@id']=p;else{if(!('@vocab'in o))throw new(r(d[3]))('Invalid JSON-LD syntax; @context terms must define an @id.','jsonld.SyntaxError',{code:'invalid IRI mapping',context:i,term:p});I['@id']=o['@vocab']+p}if((!0===t['@protected']||!0===v.get('@protected')&&!1!==t['@protected'])&&(o.protected[p]=!0,I.protected=!0),v.set(p,!0),'@type'in t){var J=t['@type'];if(!r(d[1]).isString(J))throw new(r(d[3]))('Invalid JSON-LD syntax; an @context @type value must be a string.','jsonld.SyntaxError',{code:'invalid type mapping',context:i});if('@json'===J||'@none'===J){if(c.processingMode(o,1))throw new(r(d[3]))("Invalid JSON-LD syntax; an @context @type value must not be \""+J+"\" in JSON-LD 1.0 mode.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}else if('@id'!==J&&'@vocab'!==J){if(J=l(o,J,{vocab:!0,base:!1},i,v,u),!r(d[5]).isAbsolute(J))throw new(r(d[3]))("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i});if(0===J.indexOf('_:'))throw new(r(d[3]))("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}I['@type']=J}if('@container'in t){var M=r(d[1]).isString(t['@container'])?[t['@container']]:t['@container']||[],A=['@list','@set','@index','@language'],R=!0,P=M.includes('@set');if(c.processingMode(o,1.1)){if(A.push('@graph','@id','@type'),M.includes('@list')){if(1!==M.length)throw new(r(d[3]))("Invalid JSON-LD syntax; @context @container with @list must have no other values",'jsonld.SyntaxError',{code:'invalid container mapping',context:i})}else if(M.includes('@graph')){if(M.some(function(n){return'@graph'!==n&&'@id'!==n&&'@index'!==n&&'@set'!==n}))throw new(r(d[3]))("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set",'jsonld.SyntaxError',{code:'invalid container mapping',context:i})}else R&=M.length<=(P?2:1);if(M.includes('@type')&&(I['@type']=I['@type']||'@id',!['@id','@vocab'].includes(I['@type'])))throw new(r(d[3]))("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}else R&=!r(d[1]).isArray(t['@container']),R&=M.length<=1;if(R&=M.every(function(n){return A.includes(n)}),!(R&=!(P&&M.includes('@list'))))throw new(r(d[3]))("Invalid JSON-LD syntax; @context @container value must be one of the following: "+A.join(', '),'jsonld.SyntaxError',{code:'invalid container mapping',context:i});if(I.reverse&&!M.every(function(n){return['@index','@set'].includes(n)}))throw new(r(d[3]))("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});I['@container']=M}if('@index'in t){if(!('@container'in t&&I['@container'].includes('@index')))throw new(r(d[3]))("Invalid JSON-LD syntax; @index without @index in @container: \""+t['@index']+"\" on term \""+p+"\".",'jsonld.SyntaxError',{code:'invalid term definition',context:i});if(!r(d[1]).isString(t['@index'])||0===t['@index'].indexOf('@'))throw new(r(d[3]))("Invalid JSON-LD syntax; @index must expand to an IRI: \""+t['@index']+"\" on term \""+p+"\".",'jsonld.SyntaxError',{code:'invalid term definition',context:i});I['@index']=t['@index']}if('@context'in t&&(I['@context']=t['@context']),'@language'in t&&!('@type'in t)){var _=t['@language'];if(null!==_&&!r(d[1]).isString(_))throw new(r(d[3]))("Invalid JSON-LD syntax; @context @language value must be a string or null.",'jsonld.SyntaxError',{code:'invalid language mapping',context:i});null!==_&&(_=_.toLowerCase()),I['@language']=_}if('@prefix'in t){if(p.match(/:|\//))throw new(r(d[3]))('Invalid JSON-LD syntax; @context @prefix used on a compact IRI term','jsonld.SyntaxError',{code:'invalid term definition',context:i});if(c.isKeyword(I['@id']))throw new(r(d[3]))('Invalid JSON-LD syntax; keywords may not be used as prefixes','jsonld.SyntaxError',{code:'invalid term definition',context:i});if('boolean'!=typeof t['@prefix'])throw new(r(d[3]))('Invalid JSON-LD syntax; @context value for @prefix must be boolean','jsonld.SyntaxError',{code:'invalid @prefix value',context:i});I._prefix=!0===t['@prefix']}if('@direction'in t){var T=t['@direction'];if(null!==T&&'ltr'!==T&&'rtl'!==T)throw new(r(d[3]))("Invalid JSON-LD syntax; @direction value must be null, \"ltr\", or \"rtl\".",'jsonld.SyntaxError',{code:'invalid base direction',context:i});I['@direction']=T}if('@nest'in t){var K=t['@nest'];if(!r(d[1]).isString(K)||'@nest'!==K&&0===K.indexOf('@'))throw new(r(d[3]))("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.",'jsonld.SyntaxError',{code:'invalid @nest value',context:i});I['@nest']=K}var B=I['@id'];if('@context'===B||'@preserve'===B)throw new(r(d[3]))('Invalid JSON-LD syntax; @context and @preserve cannot be aliased.','jsonld.SyntaxError',{code:'invalid keyword alias',context:i});if(h&&h.protected&&!y&&(o.protected[p]=!0,I.protected=!0,!x(h,I))){var G=u&&u.protectedMode||'error';if('error'===G)throw new(r(d[3]))("Invalid JSON-LD syntax; tried to redefine \""+p+"\" which is a protected term.",'jsonld.SyntaxError',{code:'protected term redefinition',context:i,term:p});if('warn'===G)return void console.warn('WARNING: protected term redefinition',{term:p});throw new(r(d[3]))('Invalid protectedMode.','jsonld.SyntaxError',{code:'invalid protected mode',context:i,term:p,protectedMode:G})}},c.expandIri=function(n,t,o,i){return l(n,t,o,void 0,void 0,i)},c.getInitialContext=function(t){var o=JSON.stringify({processingMode:t.processingMode}),s=i.get(o);if(s)return s;var l={processingMode:t.processingMode,mappings:new Map,inverse:null,getInverse:function(){if(this.inverse)return this.inverse;for(var t,o=this.inverse={},i=this.fastCurieMap={},s={},l=(this['@language']||'@none').toLowerCase(),v=this['@direction'],u=this.mappings,f=n(r(d[6])(u.keys()).sort(r(d[2]).compareShortestLeast));!(t=f()).done;){var y=t.value,b=u.get(y);if(null!==b){var w=b['@container']||'@none';if(w=[].concat(w).sort().join(''),null!==b['@id'])for(var h,S=r(d[2]).asArray(b['@id']),I=n(S);!(h=I()).done;){var j=h.value,O=o[j],k=c.isKeyword(j);if(O)k||b._termHasColon||s[j].push(y);else if(o[j]=O={},!k&&!b._termHasColon){s[j]=[y];var L={iri:j,terms:s[j]};j[0]in i?i[j[0]].push(L):i[j[0]]=[L]}if(O[w]||(O[w]={'@language':{},'@type':{},'@any':{}}),O=O[w],p(y,O['@any'],'@none'),b.reverse)p(y,O['@type'],'@reverse');else if('@none'===b['@type'])p(y,O['@any'],'@none'),p(y,O['@language'],'@none'),p(y,O['@type'],'@none');else if('@type'in b)p(y,O['@type'],b['@type']);else if('@language'in b&&'@direction'in b){var N=b['@language'],E=b['@direction'];p(y,O['@language'],N&&E?(N+"_"+E).toLowerCase():N?N.toLowerCase():E?"_"+E:'@null')}else'@language'in b?p(y,O['@language'],(b['@language']||'@null').toLowerCase()):'@direction'in b?b['@direction']?p(y,O['@language'],"_"+b['@direction']):p(y,O['@language'],'@none'):v?(p(y,O['@language'],"_"+v),p(y,O['@language'],'@none'),p(y,O['@type'],'@none')):(p(y,O['@language'],l),p(y,O['@language'],'@none'),p(y,O['@type'],'@none'))}}}for(var D in i)x(i,D,1);return o},clone:function(){var n={};n.mappings=r(d[2]).clone(this.mappings),n.clone=this.clone,n.inverse=null,n.getInverse=this.getInverse,n.protected=r(d[2]).clone(this.protected),this.previousContext&&(n.previousContext=this.previousContext.clone());n.revertToPreviousContext=this.revertToPreviousContext,'@base'in this&&(n['@base']=this['@base']);'@language'in this&&(n['@language']=this['@language']);'@vocab'in this&&(n['@vocab']=this['@vocab']);return n},revertToPreviousContext:function(){if(!this.previousContext)return this;return this.previousContext.clone()},protected:{}};return 1e4===i.size&&i.clear(),i.set(o,l),l;function x(t,o,i){for(var s,c,l,p=t[o],v=t[o]={},u=n(p);!(l=u()).done;){var f=l.value;(c=i>=(s=f.iri).length?'':s[i])in v?v[c].push(f):v[c]=[f]}for(var y in v)''!==y&&x(v,y,i+1)}function p(n,t,o){t.hasOwnProperty(o)||(t[o]=n)}},c.getContextValue=function(n,t,o){if(null===t){if('@context'===o)return;return null}if(n.mappings.has(t)){var i=n.mappings.get(t);if(r(d[1]).isUndefined(o))return i;if(i.hasOwnProperty(o))return i[o]}return'@language'===o&&o in n?n[o]:'@direction'===o&&o in n?n[o]:'@context'!==o?null:void 0},c.processingMode=function(n,t){return t.toString()>='1.1'?!n.processingMode||n.processingMode>='json-ld-'+t.toString():'json-ld-1.0'===n.processingMode},c.isKeyword=function(n){if(!r(d[1]).isString(n)||'@'!==n[0])return!1;switch(n){case'@base':case'@container':case'@context':case'@default':case'@direction':case'@embed':case'@explicit':case'@graph':case'@id':case'@included':case'@index':case'@json':case'@language':case'@list':case'@nest':case'@none':case'@omitDefault':case'@prefix':case'@preserve':case'@protected':case'@requireAll':case'@reverse':case'@set':case'@type':case'@value':case'@version':case'@vocab':return!0}return!1}},1723,[82,1707,1708,1706,31,1722,42]); -__d(function(g,r,_i4,a,m,e,d){'use strict';function t(t,n){var c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(c)return(c=c.call(t)).next.bind(c);if(Array.isArray(t)||(c=i(t))||n&&t&&"number"==typeof t.length){c&&(t=c);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function i(t,i){if(t){if("string"==typeof t)return n(t,i);var c=Object.prototype.toString.call(t).slice(8,-1);return"Object"===c&&t.constructor&&(c=t.constructor.name),"Map"===c||"Set"===c?Array.from(t):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?n(t,i):void 0}}function n(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,c=new Array(i);n1&&(k=Array.from(k).sort()),C=n,I=t(k);case 31:if((V=I()).done){Ve.next=41;break}if(A=V.value,w=c.compactIri({activeCtx:C,iri:A,relativeTo:{vocab:!0}}),T=r(d[2]).getContextValue(y,w,'@context'),r(d[1]).isUndefined(T)){Ve.next=39;break}return Ve.next=38,r(d[0]).awrap(r(d[2]).process({activeCtx:n,localCtx:T,options:v,propagate:!1}));case 38:n=Ve.sent;case 39:Ve.next=31;break;case 41:j=Object.keys(u).sort(),O=t(j);case 43:if((P=O()).done){Ve.next=189;break}if(S=P.value,_=u[S],'@id'!==S){Ve.next=52;break}return 1===(M=r(d[4]).asArray(_).map(function(t){return c.compactIri({activeCtx:n,iri:t,relativeTo:{vocab:!1},base:v.base})})).length&&(M=M[0]),L=c.compactIri({activeCtx:n,iri:'@id',relativeTo:{vocab:!0}}),f[L]=M,Ve.abrupt("continue",187);case 52:if('@type'!==S){Ve.next=61;break}return 1===(R=r(d[4]).asArray(_).map(function(t){return c.compactIri({activeCtx:y,iri:t,relativeTo:{vocab:!0}})})).length&&(R=R[0]),E=c.compactIri({activeCtx:n,iri:'@type',relativeTo:{vocab:!0}}),G=r(d[2]).getContextValue(n,E,'@container')||[],U=G.includes('@set')&&r(d[2]).processingMode(n,1.1),B=U||r(d[1]).isArray(R)&&0===_.length,r(d[4]).addValue(f,E,R,{propertyIsArray:B}),Ve.abrupt("continue",187);case 61:if('@reverse'!==S){Ve.next=68;break}return Ve.next=64,r(d[0]).awrap(c.compact({activeCtx:n,activeProperty:'@reverse',element:_,options:v,compactionMap:b}));case 64:for(J in D=Ve.sent)n.mappings.has(J)&&n.mappings.get(J).reverse&&(K=D[J],N=r(d[2]).getContextValue(n,J,'@container')||[],W=N.includes('@set')||!v.compactArrays,r(d[4]).addValue(f,J,K,{propertyIsArray:W}),delete D[J]);return Object.keys(D).length>0&&($=c.compactIri({activeCtx:n,iri:S,relativeTo:{vocab:!0}}),r(d[4]).addValue(f,$,D)),Ve.abrupt("continue",187);case 68:if('@preserve'!==S){Ve.next=74;break}return Ve.next=71,r(d[0]).awrap(c.compact({activeCtx:n,activeProperty:l,element:_,options:v,compactionMap:b}));case 71:return q=Ve.sent,r(d[1]).isArray(q)&&0===q.length||r(d[4]).addValue(f,S,q),Ve.abrupt("continue",187);case 74:if('@index'!==S){Ve.next=81;break}if(!(r(d[2]).getContextValue(n,l,'@container')||[]).includes('@index')){Ve.next=78;break}return Ve.abrupt("continue",187);case 78:return z=c.compactIri({activeCtx:n,iri:S,relativeTo:{vocab:!0}}),r(d[4]).addValue(f,z,_),Ve.abrupt("continue",187);case 81:if('@graph'===S||'@list'===S||'@included'===S||!r(d[2]).isKeyword(S)){Ve.next=85;break}return F=c.compactIri({activeCtx:n,iri:S,relativeTo:{vocab:!0}}),r(d[4]).addValue(f,F,_),Ve.abrupt("continue",187);case 85:if(r(d[1]).isArray(_)){Ve.next=87;break}throw new(r(d[5]))('JSON-LD expansion error; expanded value must be an array.','jsonld.SyntaxError');case 87:0===_.length&&(H=c.compactIri({activeCtx:n,iri:S,value:_,relativeTo:{vocab:!0},reverse:x}),Q=n.mappings.has(H)?n.mappings.get(H)['@nest']:null,X=f,Q&&(s(n,Q,v),r(d[1]).isObject(f[Q])||(f[Q]={}),X=f[Q]),r(d[4]).addValue(X,H,_,{propertyIsArray:!0})),Y=t(_);case 89:if((Z=Y()).done){Ve.next=187;break}return ee=Z.value,te=c.compactIri({activeCtx:n,iri:S,value:ee,relativeTo:{vocab:!0},reverse:x}),ae=n.mappings.has(te)?n.mappings.get(te)['@nest']:null,re=f,ae&&(s(n,ae,v),r(d[1]).isObject(f[ae])||(f[ae]={}),re=f[ae]),ie=r(d[2]).getContextValue(n,te,'@container')||[],ne=r(d[3]).isGraph(ee),ce=r(d[3]).isList(ee),oe=void 0,ce?oe=ee['@list']:ne&&(oe=ee['@graph']),Ve.next=102,r(d[0]).awrap(c.compact({activeCtx:n,activeProperty:te,element:ce||ne?oe:ee,options:v,compactionMap:b}));case 102:if(se=Ve.sent,!ce){Ve.next=112;break}if(r(d[1]).isArray(se)||(se=[se]),ie.includes('@list')){Ve.next=110;break}se=r(d[6])({},c.compactIri({activeCtx:n,iri:'@list',relativeTo:{vocab:!0}}),se),'@index'in ee&&(se[c.compactIri({activeCtx:n,iri:'@index',relativeTo:{vocab:!0}})]=ee['@index']),Ve.next=112;break;case 110:return r(d[4]).addValue(re,te,se,{valueIsArray:!0,allowDuplicate:!0}),Ve.abrupt("continue",185);case 112:if(!ne){Ve.next=116;break}ie.includes('@graph')&&(ie.includes('@id')||ie.includes('@index')&&r(d[3]).isSimpleGraph(ee))?(le=void 0,re.hasOwnProperty(te)?le=re[te]:re[te]=le={},ue=(ie.includes('@id')?ee['@id']:ee['@index'])||c.compactIri({activeCtx:n,iri:'@none',relativeTo:{vocab:!0}}),r(d[4]).addValue(le,ue,se,{propertyIsArray:!v.compactArrays||ie.includes('@set')})):ie.includes('@graph')&&r(d[3]).isSimpleGraph(ee)?(r(d[1]).isArray(se)&&se.length>1&&(se={'@included':se}),r(d[4]).addValue(re,te,se,{propertyIsArray:!v.compactArrays||ie.includes('@set')})):(r(d[1]).isArray(se)&&1===se.length&&v.compactArrays&&(se=se[0]),se=r(d[6])({},c.compactIri({activeCtx:n,iri:'@graph',relativeTo:{vocab:!0}}),se),'@id'in ee&&(se[c.compactIri({activeCtx:n,iri:'@id',relativeTo:{vocab:!0}})]=ee['@id']),'@index'in ee&&(se[c.compactIri({activeCtx:n,iri:'@index',relativeTo:{vocab:!0}})]=ee['@index']),r(d[4]).addValue(re,te,se,{propertyIsArray:!v.compactArrays||ie.includes('@set')})),Ve.next=185;break;case 116:if(!(ie.includes('@language')||ie.includes('@index')||ie.includes('@id')||ie.includes('@type'))){Ve.next=183;break}if(pe=void 0,re.hasOwnProperty(te)?pe=re[te]:re[te]=pe={},ve=void 0,!ie.includes('@language')){Ve.next=125;break}r(d[3]).isValue(se)&&(se=se['@value']),ve=ee['@language'],Ve.next=179;break;case 125:if(!ie.includes('@index')){Ve.next=153;break}if(de=r(d[2]).getContextValue(n,te,'@index')||'@index',xe=c.compactIri({activeCtx:n,iri:de,relativeTo:{vocab:!0}}),'@index'!==de){Ve.next=133;break}ve=ee['@index'],delete se[xe],Ve.next=151;break;case 133:if(be=void 0,ge=r(d[4]).asArray(se[de]||[]),fe=r(d[7])(ge),ve=fe[0],be=fe.slice(1),r(d[1]).isString(ve)){Ve.next=142;break}ve=null,Ve.next=151;break;case 142:Ve.t0=be.length,Ve.next=0===Ve.t0?145:1===Ve.t0?147:149;break;case 145:return delete se[de],Ve.abrupt("break",151);case 147:return se[de]=be[0],Ve.abrupt("break",151);case 149:return se[de]=be,Ve.abrupt("break",151);case 151:Ve.next=179;break;case 153:if(!ie.includes('@id')){Ve.next=159;break}ye=c.compactIri({activeCtx:n,iri:'@id',relativeTo:{vocab:!0}}),ve=se[ye],delete se[ye],Ve.next=179;break;case 159:if(!ie.includes('@type')){Ve.next=179;break}me=c.compactIri({activeCtx:n,iri:'@type',relativeTo:{vocab:!0}}),he=void 0,ke=r(d[4]).asArray(se[me]||[]),Ce=r(d[7])(ke),ve=Ce[0],he=Ce.slice(1),Ve.t1=he.length,Ve.next=0===Ve.t1?169:1===Ve.t1?171:173;break;case 169:return delete se[me],Ve.abrupt("break",175);case 171:return se[me]=he[0],Ve.abrupt("break",175);case 173:return se[me]=he,Ve.abrupt("break",175);case 175:if(!(1===Object.keys(se).length&&'@id'in ee)){Ve.next=179;break}return Ve.next=178,r(d[0]).awrap(c.compact({activeCtx:n,activeProperty:te,element:{'@id':ee['@id']},options:v,compactionMap:b}));case 178:se=Ve.sent;case 179:ve||(ve=c.compactIri({activeCtx:n,iri:'@none',relativeTo:{vocab:!0}})),r(d[4]).addValue(pe,ve,se,{propertyIsArray:ie.includes('@set')}),Ve.next=185;break;case 183:Ie=!v.compactArrays||ie.includes('@set')||ie.includes('@list')||r(d[1]).isArray(se)&&0===se.length||'@list'===S||'@graph'===S,r(d[4]).addValue(re,te,se,{propertyIsArray:Ie});case 185:Ve.next=89;break;case 187:Ve.next=43;break;case 189:return Ve.abrupt("return",{v:f});case 190:case"end":return Ve.stop()}},null,null,null,Promise)})());case 28:if("object"!=typeof(C=I.sent)){I.next=31;break}return I.abrupt("return",C.v);case 31:return I.abrupt("return",u);case 32:case"end":return I.stop()}},null,null,null,Promise)},c.compactIri=function(i){var n=i.activeCtx,c=i.iri,s=i.value,l=void 0===s?null:s,u=i.relativeTo,p=void 0===u?{vocab:!1}:u,v=i.reverse,x=void 0!==v&&v,b=i.base,f=void 0===b?null:b;if(null===c)return c;n.isPropertyTermScoped&&n.previousContext&&(n=n.previousContext);var y=n.getInverse();if(r(d[2]).isKeyword(c)&&c in y&&'@none'in y[c]&&'@type'in y[c]['@none']&&'@none'in y[c]['@none']['@type'])return y[c]['@none']['@type']['@none'];if(p.vocab&&c in y){var h=n['@language']||'@none',k=[];r(d[1]).isObject(l)&&'@index'in l&&!('@graph'in l)&&k.push('@index','@index@set'),r(d[1]).isObject(l)&&'@preserve'in l&&(l=l['@preserve'][0]),r(d[3]).isGraph(l)?('@index'in l&&k.push('@graph@index','@graph@index@set','@index','@index@set'),'@id'in l&&k.push('@graph@id','@graph@id@set'),k.push('@graph','@graph@set','@set'),'@index'in l||k.push('@graph@index','@graph@index@set','@index','@index@set'),'@id'in l||k.push('@graph@id','@graph@id@set')):r(d[1]).isObject(l)&&!r(d[3]).isValue(l)&&k.push('@id','@id@set','@type','@set@type');var C='@language',I='@null';if(x)C='@type',I='@reverse',k.push('@set');else if(r(d[3]).isList(l)){'@index'in l||k.push('@list');var V=l['@list'];if(0===V.length)C='@any',I='@none';else{for(var A=0===V.length?h:null,w=null,T=0;T=0;--D)for(var J,K=E[D],N=t(K.terms);!(J=N()).done;){var W=J.value,$=W+':'+c.substr(K.iri.length);n.mappings.get(W)._prefix&&(!n.mappings.has($)||null===l&&n.mappings.get($)['@id']===c)&&(null===R||r(d[4]).compareShortestLeast($,R)<0)&&(R=$)}if(null!==R)return R;for(var q,z=t(n.mappings);!(q=z()).done;){var F=q.value,H=r(d[8])(F,2),Q=H[0],X=H[1];if(X&&X._prefix&&c.startsWith(Q+':'))throw new(r(d[5]))("Absolute IRI \""+c+"\" confused with prefix \""+Q+"\".",'jsonld.SyntaxError',{code:'IRI confused with prefix',context:n})}return p.vocab?c:'@base'in n?n['@base']?r(d[9]).removeBase(r(d[9]).prependBase(f,n['@base']),c):c:r(d[9]).removeBase(f,c)},c.compactValue=function(t){var i=t.activeCtx,n=t.activeProperty,o=t.value,s=t.options;if(r(d[3]).isValue(o)){var l=r(d[2]).getContextValue(i,n,'@type'),u=r(d[2]).getContextValue(i,n,'@language'),p=r(d[2]).getContextValue(i,n,'@direction'),v=r(d[2]).getContextValue(i,n,'@container')||[],x='@index'in o&&!v.includes('@index');if(!x&&'@none'!==l){if(o['@type']===l)return o['@value'];if('@language'in o&&o['@language']===u&&'@direction'in o&&o['@direction']===p)return o['@value'];if('@language'in o&&o['@language']===u)return o['@value'];if('@direction'in o&&o['@direction']===p)return o['@value']}var b=Object.keys(o).length,f=1===b||2===b&&'@index'in o&&!x,y='@language'in i,h=r(d[1]).isString(o['@value']),k=i.mappings.has(n)&&null===i.mappings.get(n)['@language'];if(f&&'@none'!==l&&(!y||!h||k))return o['@value'];var C={};return x&&(C[c.compactIri({activeCtx:i,iri:'@index',relativeTo:{vocab:!0}})]=o['@index']),'@type'in o?C[c.compactIri({activeCtx:i,iri:'@type',relativeTo:{vocab:!0}})]=c.compactIri({activeCtx:i,iri:o['@type'],relativeTo:{vocab:!0}}):'@language'in o&&(C[c.compactIri({activeCtx:i,iri:'@language',relativeTo:{vocab:!0}})]=o['@language']),'@direction'in o&&(C[c.compactIri({activeCtx:i,iri:'@direction',relativeTo:{vocab:!0}})]=o['@direction']),C[c.compactIri({activeCtx:i,iri:'@value',relativeTo:{vocab:!0}})]=o['@value'],C}var I=r(d[2]).expandIri(i,n,{vocab:!0},s),V=r(d[2]).getContextValue(i,n,'@type'),A=c.compactIri({activeCtx:i,iri:o['@id'],relativeTo:{vocab:'@vocab'===V},base:s.base});return'@id'===V||'@vocab'===V||'@graph'===I?A:r(d[6])({},c.compactIri({activeCtx:i,iri:'@id',relativeTo:{vocab:!0}}),A)}},1724,[82,1707,1723,1719,1708,1706,249,1479,31,1722]); -__d(function(g,r,_i2,a,m,_e,d){'use strict';function e(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t1?T.slice().sort():T:[T],z=e(_);case 74:if((Z=z()).done){ae.next=83;break}if($=Z.value,B=r(d[3]).getContextValue(w,$,'@context'),r(d[2]).isUndefined(B)){ae.next=81;break}return ae.next=80,r(d[0]).awrap(r(d[3]).process({activeCtx:t,localCtx:B,options:x,propagate:!1}));case 80:t=ae.sent;case 81:ae.next=74;break;case 83:ae.next=66;break;case 85:return R={},ae.next=88,r(d[0]).awrap(o({activeCtx:t,activeProperty:l,expandedActiveProperty:L,element:u,expandedParent:R,options:x,insideList:b,typeKey:F,typeScopedContext:w,expansionMap:S}));case 88:if(V=Object.keys(R),q=V.length,!('@value'in R)){ae.next=120;break}if(!('@type'in R&&('@language'in R||'@direction'in R))){ae.next=93;break}throw new(r(d[4]))("Invalid JSON-LD syntax; an element containing \"@value\" may not contain both \"@type\" and either \"@language\" or \"@direction\".",'jsonld.SyntaxError',{code:'invalid value object',element:R});case 93:if(H=q-1,'@type'in R&&(H-=1),'@index'in R&&(H-=1),'@language'in R&&(H-=1),'@direction'in R&&(H-=1),0===H){ae.next=100;break}throw new(r(d[4]))("Invalid JSON-LD syntax; an element containing \"@value\" may only have an \"@index\" property and either \"@type\" or either or both \"@language\" or \"@direction\".",'jsonld.SyntaxError',{code:'invalid value object',element:R});case 100:if(Q=null===R['@value']?[]:r(d[5]).asArray(R['@value']),W=r(d[5]).getValues(R,'@type'),!r(d[3]).processingMode(t,1.1)||!W.includes('@json')||1!==W.length){ae.next=105;break}ae.next=118;break;case 105:if(0!==Q.length){ae.next=112;break}return ae.next=108,r(d[0]).awrap(S({unmappedValue:R,activeCtx:t,activeProperty:l,element:u,options:x,insideList:b}));case 108:X=ae.sent,R=void 0!==X?X:null,ae.next=118;break;case 112:if(Q.every(function(e){return r(d[2]).isString(e)||r(d[2]).isEmptyObject(e)})||!('@language'in R)){ae.next=116;break}throw new(r(d[4]))('Invalid JSON-LD syntax; only strings may be language-tagged.','jsonld.SyntaxError',{code:'invalid language-tagged value',element:R});case 116:if(W.every(function(e){return r(d[6]).isAbsolute(e)&&!(r(d[2]).isString(e)&&0===e.indexOf('_:'))||r(d[2]).isEmptyObject(e)})){ae.next=118;break}throw new(r(d[4]))("Invalid JSON-LD syntax; an element containing \"@value\" and \"@type\" must have an absolute IRI for the value of \"@type\".",'jsonld.SyntaxError',{code:'invalid typed value',element:R});case 118:ae.next=135;break;case 120:if(!('@type'in R)||r(d[2]).isArray(R['@type'])){ae.next=124;break}R['@type']=[R['@type']],ae.next=135;break;case 124:if(!('@set'in R||'@list'in R)){ae.next=130;break}if(!(q>1)||2===q&&'@index'in R){ae.next=127;break}throw new(r(d[4]))("Invalid JSON-LD syntax; if an element has the property \"@set\" or \"@list\", then it can have at most one other property that is \"@index\".",'jsonld.SyntaxError',{code:'invalid set or list object',element:R});case 127:'@set'in R&&(R=R['@set'],V=Object.keys(R),q=V.length),ae.next=135;break;case 130:if(!(1===q&&'@language'in R)){ae.next=135;break}return ae.next=133,r(d[0]).awrap(S(R,{unmappedValue:R,activeCtx:t,activeProperty:l,element:u,options:x,insideList:b}));case 133:Y=ae.sent,R=void 0!==Y?Y:null;case 135:if(!r(d[2]).isObject(R)||x.keepFreeFloatingNodes||b||null!==l&&'@graph'!==L){ae.next=141;break}if(!(0===q||'@value'in R||'@list'in R||1===q&&'@id'in R)){ae.next=141;break}return ae.next=139,r(d[0]).awrap(S({unmappedValue:R,activeCtx:t,activeProperty:l,element:u,options:x,insideList:b}));case 139:ee=ae.sent,R=void 0!==ee?ee:null;case 141:return ae.abrupt("return",R);case 142:case"end":return ae.stop()}},null,null,null,Promise)}},1725,[82,4,1707,1723,1706,1708,1722,31,1719]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.flatten=function(t){for(var n=r(d[0]).createMergedNodeMap(t),c=[],s=Object.keys(n).sort(),o=0;o=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){if(t){if("string"==typeof t)return o(t,i);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)?o(t,i):void 0}}function o(t,i){(null==i||i>t.length)&&(i=t.length);for(var o=0,n=new Array(i);o=n.length?{done:!0}:{done:!1,value:n[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(n,i){if(n){if("string"==typeof n)return t(n,i);var u=Object.prototype.toString.call(n).slice(8,-1);return"Object"===u&&n.constructor&&(u=n.constructor.name),"Map"===u||"Set"===u?Array.from(n):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?t(n,i):void 0}}function t(n,i){(null==i||i>n.length)&&(i=n.length);for(var t=0,u=new Array(i);t=0;--u){var l=t[u];if(l.graph===i&&l.subject['@id']===n['@id'])return!0}return!1}function o(n,i,t){var u='@'+t,l=u in n?n[u][0]:i[t];if('embed'===t)if(!0===l)l='@once';else if(!1===l)l='@never';else if('@always'!==l&&'@never'!==l&&'@link'!==l&&'@first'!==l&&'@last'!==l&&'@once'!==l)throw new(r(d[3]))('Invalid JSON-LD syntax; invalid value of @embed.','jsonld.SyntaxError',{code:'invalid @embed value',frame:n});return l}function f(i){if(!r(d[4]).isArray(i)||1!==i.length||!r(d[4]).isObject(i[0]))throw new(r(d[3]))('Invalid JSON-LD syntax; a JSON-LD frame must be a single object.','jsonld.SyntaxError',{frame:i});if('@id'in i[0])for(var t,u=n(r(d[0]).asArray(i[0]['@id']));!(t=u()).done;){var l=t.value;if(!r(d[4]).isObject(l)&&!r(d[8]).isAbsolute(l)||r(d[4]).isString(l)&&0===l.indexOf('_:'))throw new(r(d[3]))('Invalid JSON-LD syntax; invalid @id in frame.','jsonld.SyntaxError',{code:'invalid frame',frame:i})}if('@type'in i[0])for(var s,o=n(r(d[0]).asArray(i[0]['@type']));!(s=o()).done;){var f=s.value;if(!r(d[4]).isObject(f)&&!r(d[8]).isAbsolute(f)||r(d[4]).isString(f)&&0===f.indexOf('_:'))throw new(r(d[3]))('Invalid JSON-LD syntax; invalid @type in frame.','jsonld.SyntaxError',{code:'invalid frame',frame:i})}}function c(i,t,u,l){for(var s,o={},f=n(t);!(s=f()).done;){var c=s.value,v=i.graphMap[i.graph][c];p(i,v,u,l)&&(o[c]=v)}return o}function p(i,t,u,l){var s=!0,o=!1;for(var c in u){var p=!1,v=r(d[0]).getValues(t,c),b=0===r(d[0]).getValues(u,c).length;if('@id'===c){if(r(d[4]).isEmptyObject(u['@id'][0]||{})?p=!0:u['@id'].length>=0&&(p=u['@id'].includes(v[0])),!l.requireAll)return p}else if('@type'===c){if(s=!1,b){if(v.length>0)return!1;p=!0}else if(1===u['@type'].length&&r(d[4]).isEmptyObject(u['@type'][0]))p=v.length>0;else for(var y,O=function(n){p=!!(r(d[4]).isObject(n)&&'@default'in n)||(p||v.some(function(i){return i===n}))},k=n(u['@type']);!(y=k()).done;){O(y.value)}if(!l.requireAll)return p}else{if(r(d[6]).isKeyword(c))continue;var A=(function(){var n=r(d[0]).getValues(u,c)[0],t=!1;if(n&&(f([n]),t='@default'in n),s=!1,0===v.length&&t)return"continue";if(v.length>0&&b)return{v:!1};if(void 0===n){if(v.length>0)return{v:!1};p=!0}else if(r(d[7]).isList(n)){var o=n['@list'][0];if(r(d[7]).isList(v[0])){var y=v[0]['@list'];r(d[7]).isValue(o)?p=y.some(function(n){return j(o,n)}):(r(d[7]).isSubject(o)||r(d[7]).isSubjectReference(o))&&(p=y.some(function(n){return h(i,o,n,l)}))}}else p=r(d[7]).isValue(n)?v.some(function(i){return j(n,i)}):r(d[7]).isSubjectReference(n)?v.some(function(t){return h(i,n,t,l)}):!!r(d[4]).isObject(n)&&v.length>0})();if("continue"===A)continue;if("object"==typeof A)return A.v}if(!p&&l.requireAll)return!1;o=o||p}return s||o}function v(n,i){var t=n.uniqueEmbeds[n.graph],u=t[i],l=u.parent,s=u.property,o={'@id':i};if(r(d[4]).isArray(l)){for(var f=0;f4&&void 0!==arguments[4]?arguments[4]:null;f(p),p=p[0];var O=i.options,k={embed:o(p,O,'embed'),explicit:o(p,O,'explicit'),requireAll:o(p,O,'requireAll')};i.link.hasOwnProperty(i.graph)||(i.link[i.graph]={});for(var A,S=i.link[i.graph],w=c(i,t,p,k),x=function(f){var c=w[f];if(null===h?i.uniqueEmbeds=r(d[2])({},i.graph,{}):i.uniqueEmbeds[i.graph]=i.uniqueEmbeds[i.graph]||{},'@link'===k.embed&&f in S)return y(b,h,S[f]),"continue";var A={'@id':f};if(0===f.indexOf('_:')&&r(d[0]).addValue(i.bnodeMap,f,A,{propertyIsArray:!0}),S[f]=A,('@first'===k.embed||'@last'===k.embed)&&i.is11)throw new(r(d[3]))('Invalid JSON-LD syntax; invalid value of @embed.','jsonld.SyntaxError',{code:'invalid @embed value',frame:p});if(!i.embedded&&i.uniqueEmbeds[i.graph].hasOwnProperty(f))return"continue";if(i.embedded&&('@never'===k.embed||s(c,i.graph,i.subjectStack)))return y(b,h,A),"continue";if(i.embedded&&('@first'==k.embed||'@once'==k.embed)&&i.uniqueEmbeds[i.graph].hasOwnProperty(f))return y(b,h,A),"continue";if('@last'===k.embed&&f in i.uniqueEmbeds[i.graph]&&v(i,f),i.uniqueEmbeds[i.graph][f]={parent:b,property:h},i.subjectStack.push({subject:c,graph:i.graph}),f in i.graphMap){var x=!1,E=null;'@graph'in p?(E=p['@graph'][0],x=!('@merged'===f||'@default'===f),r(d[4]).isObject(E)||(E={})):(x='@merged'!==i.graph,E={}),x&&u.frame(r(d[5])({},i,{graph:f,embedded:!1}),Object.keys(i.graphMap[f]).sort(),[E],A,'@graph')}'@included'in p&&u.frame(r(d[5])({},i,{embedded:!1}),t,p['@included'],A,'@included');for(var I,M=n(Object.keys(c).sort());!(I=M()).done;){var V=I.value;if(r(d[6]).isKeyword(V)){if(A[V]=r(d[0]).clone(c[V]),'@type'===V)for(var q,N=n(c['@type']);!(q=N()).done;){var L=q.value;0===L.indexOf('_:')&&r(d[0]).addValue(i.bnodeMap,L,A,{propertyIsArray:!0})}}else if(!k.explicit||V in p)for(var D,_=n(c[V]);!(D=_()).done;){var J=D.value,P=V in p?p[V]:l(k);if(r(d[7]).isList(J)){var R=p[V]&&p[V][0]&&p[V][0]['@list']?p[V][0]['@list']:l(k),C={'@list':[]};y(A,V,C);for(var K,T=n(J['@list']);!(K=T()).done;){var B=K.value;r(d[7]).isSubjectReference(B)?u.frame(r(d[5])({},i,{embedded:!0}),[B['@id']],R,C,'@list'):y(C,'@list',r(d[0]).clone(B))}}else r(d[7]).isSubjectReference(J)?u.frame(r(d[5])({},i,{embedded:!0}),[J['@id']],P,A,V):j(P[0],J)&&y(A,V,r(d[0]).clone(J))}}for(var G,U=n(Object.keys(p).sort());!(G=U()).done;){var $=G.value;if('@type'===$){if(!(r(d[4]).isObject(p[$][0])&&'@default'in p[$][0]))continue}else if(r(d[6]).isKeyword($))continue;var z=p[$][0]||{};if(!(o(z,O,'omitDefault')||$ in A)){var F='@null';'@default'in z&&(F=r(d[0]).clone(z['@default'])),r(d[4]).isArray(F)||(F=[F]),A[$]=[{'@preserve':F}]}}for(var H,Q=n(Object.keys(p['@reverse']||{}).sort());!(H=Q()).done;)for(var W=H.value,X=p['@reverse'][W],Y=0,Z=Object.keys(i.subjects);Y=e.length?{done:!0}:{done:!1,value:e[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var u=Object.prototype.toString.call(e).slice(8,-1);return"Object"===u&&e.constructor&&(u=e.constructor.name),"Map"===u||"Set"===u?Array.from(e):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,u=new Array(t);n0&&(l['@language']=v,v.match(u)||console.warn("@language must be valid BCP47: "+v)),l['@direction']=p}else i!==r(d[1]).XSD_STRING&&(l['@type']=i)}return l}m.exports=l,l.fromRDF=function(t,n){var u,l,s,o,c,v,p,f,y,b,h,S,R,D,_,I,T,k,N,F,O,x,A,j,E,w,L,X,B,G,J,P,U,W,z,C,V,Z,$,M,Y,q,H,K,Q,ee,ae,te,re;return r(d[0]).async(function(ne){for(;;)switch(ne.prev=ne.next){case 0:u=n.useRdfType,l=void 0!==u&&u,s=n.useNativeTypes,o=void 0!==s&&s,c=n.rdfDirection,v=void 0===c?null:c,f={'@default':p={}},y={},b=e(t);case 5:if((h=b()).done){ne.next=26;break}if(S=h.value,(R='DefaultGraph'===S.graph.termType?'@default':S.graph.value)in f||(f[R]={}),'@default'===R||R in p||(p[R]={'@id':R}),D=f[R],_=S.subject.value,I=S.predicate.value,T=S.object,_ in D||(D[_]={'@id':_}),k=D[_],!(N=T.termType.endsWith('Node'))||T.value in D||(D[T.value]={'@id':T.value}),I!==r(d[1]).RDF_TYPE||l||!N){ne.next=21;break}return r(d[2]).addValue(k,'@type',T.value,{propertyIsArray:!0}),ne.abrupt("continue",24);case 21:F=i(T,o,v),r(d[2]).addValue(k,I,F,{propertyIsArray:!0}),N&&(T.value===r(d[1]).RDF_NIL?('usages'in(O=D[T.value])||(O.usages=[]),O.usages.push({node:k,property:I,value:F})):T.value in y?y[T.value]=!1:y[T.value]={node:k,property:I,value:F});case 24:ne.next=5;break;case 26:ne.t0=r(d[0]).keys(f);case 27:if((ne.t1=ne.t0()).done){ne.next=64;break}if(x=ne.t1.value,A=f[x],r(d[1]).RDF_NIL in A){ne.next=32;break}return ne.abrupt("continue",27);case 32:if((j=A[r(d[1]).RDF_NIL]).usages){ne.next=35;break}return ne.abrupt("continue",27);case 35:E=e(j.usages);case 36:if((w=E()).done){ne.next=61;break}L=w.value,X=L.node,B=L.property,G=L.value,J=[],P=[],U=Object.keys(X).length;case 44:if(!(B===r(d[1]).RDF_REST&&r(d[3]).isObject(y[X['@id']])&&r(d[3]).isArray(X[r(d[1]).RDF_FIRST])&&1===X[r(d[1]).RDF_FIRST].length&&r(d[3]).isArray(X[r(d[1]).RDF_REST])&&1===X[r(d[1]).RDF_REST].length&&(3===U||4===U&&r(d[3]).isArray(X['@type'])&&1===X['@type'].length&&X['@type'][0]===r(d[1]).RDF_LIST))){ne.next=56;break}if(J.push(X[r(d[1]).RDF_FIRST][0]),P.push(X['@id']),L=y[X['@id']],X=L.node,B=L.property,G=L.value,U=Object.keys(X).length,r(d[4]).isBlankNode(X)){ne.next=54;break}return ne.abrupt("break",56);case 54:ne.next=44;break;case 56:for(delete G['@id'],G['@list']=J.reverse(),W=0,z=P;W=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return l(t,o);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)?l(t,o):void 0}}function l(t,o){(null==o||o>t.length)&&(o=t.length);for(var l=0,n=new Array(o);l0&&void 0!==arguments[0]?arguments[0]:{headers:{}},s=o.secure,c=o.headers,l=void 0===c?{}:c,u=o.xhr;return l=r(d[0]).buildHeaders(l),(new(r(d[1]))).wrapLoader(function o(c){var p,f,h,x,w,b,L;return r(d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(0===c.indexOf('http:')||0===c.indexOf('https:')){v.next=2;break}throw new(r(d[3]))("URL could not be dereferenced; only \"http\" and \"https\" URLs are supported.",'jsonld.InvalidUrl',{code:'loading document failed',url:c});case 2:if(!s||0===c.indexOf('https')){v.next=4;break}throw new(r(d[3]))("URL could not be dereferenced; secure mode is enabled and the URL's scheme is not \"https\".",'jsonld.InvalidUrl',{code:'loading document failed',url:c});case 4:return v.prev=4,v.next=7,r(d[2]).awrap(t(u,c,l));case 7:p=v.sent,v.next=13;break;case 10:throw v.prev=10,v.t0=v.catch(4),new(r(d[3]))('URL could not be dereferenced, an error occurred.','jsonld.LoadDocumentError',{code:'loading document failed',url:c,cause:v.t0});case 13:if(!(p.status>=400)){v.next=15;break}throw new(r(d[3]))('URL could not be dereferenced: '+p.statusText,'jsonld.LoadDocumentError',{code:'loading document failed',url:c,httpStatusCode:p.status});case 15:if(f={contextUrl:null,documentUrl:c,document:p.response},h=null,x=p.getResponseHeader('Content-Type'),n.test(p.getAllResponseHeaders())&&(w=p.getResponseHeader('Link')),!w||'application/ld+json'===x){v.next=30;break}if(b=r(d[0]).parseLinkHeader(w),L=b[r(d[4]).LINK_HEADER_CONTEXT],!Array.isArray(L)){v.next=24;break}throw new(r(d[3]))("URL could not be dereferenced, it has more than one associated HTTP Link Header.",'jsonld.InvalidUrl',{code:'multiple context link headers',url:c});case 24:if(L&&(f.contextUrl=L.target),!(h=b.alternate)||'application/ld+json'!=h.type||(x||'').match(/^application\/(\w*\+)?json$/)){v.next=30;break}return v.next=29,r(d[2]).awrap(o(r(d[5]).prependBase(c,h.target)));case 29:f=v.sent;case 30:return v.abrupt("return",f);case 31:case"end":return v.stop()}},null,null,[[4,10]],Promise)})}},1737,[1708,1734,82,1706,1731,1722]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=t(r(d[0]));e.default=u.default},1738,[1739]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},1739,[1740]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';function e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&void 0!==t[0]?t[0]:{},r=e.credential,n.prev=2,r){n.next=5;break}throw new TypeError('A "credential" property is required for verifying.');case 5:return n.abrupt("return",c(e));case 8:return n.prev=8,n.t0=n.catch(2),n.abrupt("return",{verified:!1,results:[{credential:r,verified:!1,error:n.t0}],error:n.t0});case 11:case"end":return n.stop()}},null,null,[[2,8]],Promise)}function c(){var e,r,t,n,o,s,u,c=arguments;return _r(d[4]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},r=e.credential,t=e.checkStatus,v(r),!r.credentialStatus||'function'==typeof e.checkStatus){l.next=5;break}throw new TypeError("A \"checkStatus\" function must be given to verify credentials with \"credentialStatus\".");case 5:return n=e.documentLoader||i,o=e.controller,s=e.purpose||new(_r(d[3]))({controller:o}),l.next=10,_r(d[4]).awrap(_r(d[0]).verify(r,_r(d[5])({purpose:s,documentLoader:n},e)));case 10:if((u=l.sent).verified){l.next=13;break}return l.abrupt("return",u);case 13:if(!r.credentialStatus){l.next=18;break}return l.next=16,_r(d[4]).awrap(t(e));case 16:u.statusResult=l.sent,u.statusResult.verified||(u.verified=!1);case 18:return l.abrupt("return",u);case 19:case"end":return l.stop()}},null,null,null,Promise)}function l(){var r,t,o,s,c,l,p,v,h,w,y,b,x,E,S,P,D,k=arguments;return _r(d[4]).async(function(A){for(;;)switch(A.prev=A.next){case 0:if(r=k.length>0&&void 0!==k[0]?k[0]:{},t=r.presentation,o=r.unsignedPresentation,f(t),s=r.documentLoader||i,l=!0,!((p=_r(d[6]).getValues(t,'verifiableCredential')).length>0)){A.next=13;break}return A.next=9,_r(d[4]).awrap(Promise.all(p.map(function(e){return u(_r(d[5])({credential:e,documentLoader:s},r))})));case 9:for(c=A.sent,v=e(c.entries());!(h=v()).done;)w=h.value,y=_r(d[7])(w,2),b=y[0],y[1].credentialId=p[b].id;c.every(function(e){return e.verified})||(l=!1);case 13:if(!o){A.next=15;break}return A.abrupt("return",{verified:l,results:[t],credentialResults:c});case 15:if(x=r.controller,E=r.domain,S=r.challenge,r.presentationPurpose||S){A.next=18;break}throw new Error('A "challenge" param is required for AuthenticationProofPurpose.');case 18:return P=r.presentationPurpose||new n({controller:x,domain:E,challenge:S}),A.next=21,_r(d[4]).awrap(_r(d[0]).verify(t,_r(d[5])({purpose:P,documentLoader:s},r)));case 21:return D=A.sent,A.abrupt("return",{presentationResult:D,verified:l&&D.verified,credentialResults:c,error:D.error});case 23:case"end":return A.stop()}},null,null,null,Promise)}function p(e){return'string'==typeof e?e:'id'in e?e.id:void 0}function f(e){if((Array.isArray(e['@context'])?e['@context']:[e['@context']])[0]!==o)throw new Error("\""+o+"\" needs to be first in the list of contexts.");if(!_r(d[6]).getValues(e,'type').includes('VerifiablePresentation'))throw new Error('"type" must include "VerifiablePresentation".')}function v(e){if(e['@context'][0]!==o)throw new Error("\""+o+"\" needs to be first in the list of contexts.");if(!e.type)throw new Error('"type" property is required.');if(!_r(d[6]).getValues(e,'type').includes('VerifiableCredential'))throw new Error('"type" must include `VerifiableCredential`.');if(!e.credentialSubject)throw new Error('"credentialSubject" property is required.');if(e.credentialSubject.id&&h({id:e.credentialSubject.id,propertyName:'credentialSubject.id'}),!e.issuer)throw new Error('"issuer" property is required.');if(_r(d[6]).getValues(e,'issuanceDate').length>1)throw new Error('"issuanceDate" property can only have one value.');if(!e.issuanceDate)throw new Error('"issuanceDate" property is required.');if('issuanceDate'in e&&!s.test(e.issuanceDate))throw new Error("\"issuanceDate\" must be a valid date: "+e.issuanceDate);if(_r(d[6]).getValues(e,'issuer').length>1)throw new Error('"issuer" property can only have one value.');if('issuer'in e){var r=p(e.issuer);if(!r)throw new Error("\"issuer\" id is required.");h({id:r,propertyName:'issuer'})}if('credentialStatus'in e){if(!e.credentialStatus.id)throw new Error('"credentialStatus" must include an id.');if(!e.credentialStatus.type)throw new Error('"credentialStatus" must include a type.')}if(_r(d[6]).getValues(e,'evidence').forEach(function(e){var r=p(e);r&&h({id:r,propertyName:'evidence'})}),'expirationDate'in e&&!s.test(e.expirationDate))throw new Error("\"expirationDate\" must be a valid date: "+e.expirationDate)}function h(e){var r=e.id,t=e.propertyName;try{new URL(r)}catch(e){var n=new TypeError("\""+t+"\" must be a URI: \""+r+"\".");throw n.cause=e,n}}m.exports={issue:function(){var e,r,t,n,o,s,u,c,l,p=arguments;return _r(d[4]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(e=p.length>0&&void 0!==p[0]?p[0]:{},r=e.credential,t=e.suite,n=e.expansionMap,o=e.purpose,s=void 0===o?new(_r(d[3])):o,u=e.documentLoader,c=void 0===u?i:u,t){f.next=3;break}throw new TypeError('"suite" parameter is required for issuing.');case 3:if(t.verificationMethod){f.next=5;break}throw new TypeError('"suite.verificationMethod" property is required.');case 5:if(r){f.next=7;break}throw new TypeError('"credential" parameter is required for issuing.');case 7:return r.issuanceDate||(l=(new Date).toJSON(),r.issuanceDate=l.substr(0,l.length-5)+"Z"),v(r),f.abrupt("return",_r(d[0]).sign(r,{purpose:s,documentLoader:c,suite:t,expansionMap:n}));case 10:case"end":return f.stop()}},null,null,null,Promise)},createPresentation:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.verifiableCredential,n=r.id,i=r.holder,s={'@context':[o],type:['VerifiablePresentation']};if(t){for(var u,c=[].concat(t),l=e(c);!(u=l()).done;){var p=u.value;v(p)}s.verifiableCredential=c}n&&(s.id=n);i&&(s.holder=i);return f(s),s},signPresentation:function(){var e,r,t,o,s,u,c=arguments;return _r(d[4]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},r=e.presentation,t=e.domain,o=e.challenge,s=e.purpose||new n({domain:t,challenge:o}),u=e.documentLoader||i,l.abrupt("return",_r(d[0]).sign(r,_r(d[5])({purpose:s,documentLoader:u},e)));case 5:case"end":return l.stop()}},null,null,null,Promise)},verify:function(){var e,r,t=arguments;return _r(d[4]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=t.length>0&&void 0!==t[0]?t[0]:{},r=e.presentation,n.prev=2,r){n.next=5;break}throw new TypeError('A "presentation" property is required for verifying.');case 5:return n.abrupt("return",l(e));case 8:return n.prev=8,n.t0=n.catch(2),n.abrupt("return",{verified:!1,results:[{presentation:r,verified:!1,error:n.t0}],error:n.t0});case 11:case"end":return n.stop()}},null,null,[[2,8]],Promise)},verifyCredential:u,CredentialIssuancePurpose:_r(d[3]),defaultDocumentLoader:i,_checkCredential:v,_checkPresentation:f,dateRegex:s}},1740,[1741,1764,1768,1772,82,4,1702,31]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,r(d[0])(t,r(d[1])),t.sign=function(t){var n,o,s,u,c,p,l,f,v,w=arguments;return r(d[2]).async(function(b){for(;;)switch(b.prev=b.next){case 0:if(n=w.length>1&&void 0!==w[1]?w[1]:{},o=n.suite,s=n.purpose,u=n.documentLoader,c=n.expansionMap,p=n.addSuiteContext,l=void 0===p||p,'object'==typeof t){b.next=3;break}throw new TypeError('The "document" parameter must be an object.');case 3:return o.ensureSuiteContext({document:t,addSuiteContext:l}),b.prev=4,b.next=7,r(d[2]).awrap((new(r(d[3]))).add(t,{suite:o,purpose:s,documentLoader:u,expansionMap:c}));case 7:return b.abrupt("return",b.sent);case 10:if(b.prev=10,b.t0=b.catch(4),u||'jsonld.InvalidUrl'!==b.t0.name){b.next=17;break}throw f=b.t0.details.url,(v=new Error("A URL \""+f+"\" could not be fetched; you need to pass \"documentLoader\" or resolve the URL before calling \"sign\".")).cause=b.t0,v;case 17:throw b.t0;case 18:case"end":return b.stop()}},null,null,[[4,10]],Promise)},t.verify=function(t){var n,o,s,u,c,p,l,f,v,w=arguments;return r(d[2]).async(function(b){for(;;)switch(b.prev=b.next){case 0:if(n=w.length>1&&void 0!==w[1]?w[1]:{},o=n.suite,s=n.purpose,u=n.documentLoader,c=n.expansionMap,'object'==typeof t){b.next=3;break}throw new TypeError('The "document" parameter must be an object.');case 3:return b.next=5,r(d[2]).awrap((new(r(d[3]))).verify(t,{suite:o,purpose:s,documentLoader:u,expansionMap:c}));case 5:return p=b.sent,(l=p.error)&&(u||'jsonld.InvalidUrl'!==l.name?p.error=new(r(d[4]))(l):(f=l.details.url,v=new Error("A URL \""+f+"\" could not be fetched; you need to pass \"documentLoader\" or resolve the URL before calling \"verify\"."),p.error=new(r(d[4]))(v))),b.abrupt("return",p);case 9:case"end":return b.stop()}},null,null,null,Promise)},t.suites=r(d[5]).suites,t.purposes=r(d[6]).purposes,r(d[0])(t,r(d[7]))},1741,[4,1742,82,1747,1752,1753,1759,1748]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={SECURITY_CONTEXT_URL:r(d[0]).constants.SECURITY_CONTEXT_V2_URL,SECURITY_CONTEXT_V1_URL:r(d[0]).constants.SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:r(d[0]).constants.SECURITY_CONTEXT_V2_URL,SECURITY_PROOF_URL:'https://w3id.org/security#proof',SECURITY_SIGNATURE_URL:'https://w3id.org/security#signature'}},1742,[1743]); -__d(function(g,r,i,a,m,e,d){'use strict';var T=new Map;T.set(r(d[0]).SECURITY_CONTEXT_V1_URL,r(d[1])),T.set(r(d[0]).SECURITY_CONTEXT_V2_URL,r(d[2])),m.exports={constants:r(d[0]),contexts:T,SECURITY_CONTEXT_V1_URL:r(d[0]).SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:r(d[0]).SECURITY_CONTEXT_V2_URL,CONTEXT_URL:r(d[0]).CONTEXT_URL,CONTEXT:r(d[2])}},1743,[1744,1745,1746]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={SECURITY_CONTEXT_V1_URL:'https://w3id.org/security/v1',SECURITY_CONTEXT_V2_URL:'https://w3id.org/security/v2',CONTEXT_URL:'https://w3id.org/security/v2'}},1744,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{id:'@id',type:'@type',dc:'http://purl.org/dc/terms/',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',EcdsaKoblitzSignature2016:'sec:EcdsaKoblitzSignature2016',Ed25519Signature2018:'sec:Ed25519Signature2018',EncryptedMessage:'sec:EncryptedMessage',GraphSignature2012:'sec:GraphSignature2012',LinkedDataSignature2015:'sec:LinkedDataSignature2015',LinkedDataSignature2016:'sec:LinkedDataSignature2016',CryptographicKey:'sec:Key',authenticationTag:'sec:authenticationTag',canonicalizationAlgorithm:'sec:canonicalizationAlgorithm',cipherAlgorithm:'sec:cipherAlgorithm',cipherData:'sec:cipherData',cipherKey:'sec:cipherKey',created:{'@id':'dc:created','@type':'xsd:dateTime'},creator:{'@id':'dc:creator','@type':'@id'},digestAlgorithm:'sec:digestAlgorithm',digestValue:'sec:digestValue',domain:'sec:domain',encryptionKey:'sec:encryptionKey',expiration:{'@id':'sec:expiration','@type':'xsd:dateTime'},expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},initializationVector:'sec:initializationVector',iterationCount:'sec:iterationCount',nonce:'sec:nonce',normalizationAlgorithm:'sec:normalizationAlgorithm',owner:{'@id':'sec:owner','@type':'@id'},password:'sec:password',privateKey:{'@id':'sec:privateKey','@type':'@id'},privateKeyPem:'sec:privateKeyPem',publicKey:{'@id':'sec:publicKey','@type':'@id'},publicKeyBase58:'sec:publicKeyBase58',publicKeyPem:'sec:publicKeyPem',publicKeyWif:'sec:publicKeyWif',publicKeyService:{'@id':'sec:publicKeyService','@type':'@id'},revoked:{'@id':'sec:revoked','@type':'xsd:dateTime'},salt:'sec:salt',signature:'sec:signature',signatureAlgorithm:'sec:signingAlgorithm',signatureValue:'sec:signatureValue'}}},1745,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':[{'@version':1.1},'https://w3id.org/security/v1',{AesKeyWrappingKey2019:'sec:AesKeyWrappingKey2019',DeleteKeyOperation:'sec:DeleteKeyOperation',DeriveSecretOperation:'sec:DeriveSecretOperation',EcdsaSecp256k1Signature2019:'sec:EcdsaSecp256k1Signature2019',EcdsaSecp256r1Signature2019:'sec:EcdsaSecp256r1Signature2019',EcdsaSecp256k1VerificationKey2019:'sec:EcdsaSecp256k1VerificationKey2019',EcdsaSecp256r1VerificationKey2019:'sec:EcdsaSecp256r1VerificationKey2019',Ed25519Signature2018:'sec:Ed25519Signature2018',Ed25519VerificationKey2018:'sec:Ed25519VerificationKey2018',EquihashProof2018:'sec:EquihashProof2018',ExportKeyOperation:'sec:ExportKeyOperation',GenerateKeyOperation:'sec:GenerateKeyOperation',KmsOperation:'sec:KmsOperation',RevokeKeyOperation:'sec:RevokeKeyOperation',RsaSignature2018:'sec:RsaSignature2018',RsaVerificationKey2018:'sec:RsaVerificationKey2018',Sha256HmacKey2019:'sec:Sha256HmacKey2019',SignOperation:'sec:SignOperation',UnwrapKeyOperation:'sec:UnwrapKeyOperation',VerifyOperation:'sec:VerifyOperation',WrapKeyOperation:'sec:WrapKeyOperation',X25519KeyAgreementKey2019:'sec:X25519KeyAgreementKey2019',allowedAction:'sec:allowedAction',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'},capability:{'@id':'sec:capability','@type':'@id'},capabilityAction:'sec:capabilityAction',capabilityChain:{'@id':'sec:capabilityChain','@type':'@id','@container':'@list'},capabilityDelegation:{'@id':'sec:capabilityDelegationMethod','@type':'@id','@container':'@set'},capabilityInvocation:{'@id':'sec:capabilityInvocationMethod','@type':'@id','@container':'@set'},caveat:{'@id':'sec:caveat','@type':'@id','@container':'@set'},challenge:'sec:challenge',ciphertext:'sec:ciphertext',controller:{'@id':'sec:controller','@type':'@id'},delegator:{'@id':'sec:delegator','@type':'@id'},equihashParameterK:{'@id':'sec:equihashParameterK','@type':'xsd:integer'},equihashParameterN:{'@id':'sec:equihashParameterN','@type':'xsd:integer'},invocationTarget:{'@id':'sec:invocationTarget','@type':'@id'},invoker:{'@id':'sec:invoker','@type':'@id'},jws:'sec:jws',keyAgreement:{'@id':'sec:keyAgreementMethod','@type':'@id','@container':'@set'},kmsModule:{'@id':'sec:kmsModule'},parentCapability:{'@id':'sec:parentCapability','@type':'@id'},plaintext:'sec:plaintext',proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab'},proofValue:'sec:proofValue',referenceId:'sec:referenceId',unwrappedKey:'sec:unwrappedKey',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'},verifyData:'sec:verifyData',wrappedKey:'sec:wrappedKey'}]}},1746,[]); -__d(function(g,_r,_i,a,m,e,d){'use strict';function r(r,n){var o="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=t(r))||n&&r&&"number"==typeof r.length){o&&(r=o);var u=0;return function(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(r,t){if(r){if("string"==typeof r)return n(r,t);var o=Object.prototype.toString.call(r).slice(8,-1);return"Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o?Array.from(r):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(r,t):void 0}}function n(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,o=new Array(t);n1&&void 0!==p[1]?p[1]:{},n=t.suite,o=t.purpose,u=t.documentLoader,s=t.expansionMap,n){f.next=3;break}throw new TypeError('"options.suite" is required.');case 3:if(o){f.next=5;break}throw new TypeError('"options.purpose" is required.');case 5:return u=u?_r(d[3]).extendContextLoader(u):_r(d[3]).strictDocumentLoader,!1!==s&&(s=_r(d[4])),delete(i=_r(d[5])({},r)).proof,f.next=11,_r(d[2]).awrap(n.createProof({document:i,purpose:o,documentLoader:u,expansionMap:s}));case 11:return c=f.sent,_r(d[6]).addValue(r,'proof',c),f.abrupt("return",r);case 14:case"end":return f.stop()}},null,null,null,Promise)}},{key:"verify",value:function(r){var t,n,i,c,p,f,l,v,x,h,b,w,y,M,k,L=arguments;return _r(d[2]).async(function(P){for(;;)switch(P.prev=P.next){case 0:if(t=L.length>1&&void 0!==L[1]?L[1]:{},n=t.suite,i=t.purpose,c=t.documentLoader,p=t.expansionMap,n){P.next=3;break}throw new TypeError('"options.suite" is required.');case 3:if(i){P.next=5;break}throw new TypeError('"options.purpose" is required.');case 5:if(0!==(f=Array.isArray(n)?n:[n]).length){P.next=8;break}throw new TypeError('At least one suite is required.');case 8:return c=c?_r(d[3]).extendContextLoader(c):_r(d[3]).strictDocumentLoader,!1!==p&&(p=_r(d[4])),P.prev=10,r=_r(d[5])({},r),P.next=14,_r(d[2]).awrap(o({document:r,documentLoader:c,expansionMap:p}));case 14:return l=P.sent,v=l.proofSet,x=l.document,r=x,P.next=20,_r(d[2]).awrap(u({document:r,suites:f,proofSet:v,purpose:i,documentLoader:c,expansionMap:p}));case 20:if(0!==(h=P.sent).length){P.next=25;break}throw(b=new Error("Did not verify any proofs; insufficient proofs matched the acceptable suite(s) and required purpose(s).")).name='NotFoundError',b;case 25:if(w=h.some(function(r){return r.verified})){P.next=31;break}return M=(y=[]).concat.apply(y,_r(d[7])(h.filter(function(r){return r.error}).map(function(r){return r.error}))),k={verified:w,results:h},M.length>0&&(k.error=M),P.abrupt("return",k);case 31:return P.abrupt("return",{verified:w,results:h});case 34:return P.prev=34,P.t0=P.catch(10),s(P.t0),P.abrupt("return",{verified:!1,error:P.t0});case 38:case"end":return P.stop()}},null,null,[[10,34]],Promise)}}]),r})()},1747,[7,8,82,1748,1750,4,1702,42,1742,31,1751]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.extendContextLoader=function(t){return function(n){var o;return r(d[0]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0===(o=r(d[1]).get(n))){u.next=3;break}return u.abrupt("return",{contextUrl:null,documentUrl:n,document:o,tag:'static'});case 3:return u.abrupt("return",t(n));case 4:case"end":return u.stop()}},null,null,null,Promise)}},t.strictDocumentLoader=t.extendContextLoader(function(t){throw new Error(t+" not found.")})},1748,[82,1749]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=new Map([[r(d[0]).SECURITY_CONTEXT_V1_URL,r(d[1]).contexts.get(r(d[0]).SECURITY_CONTEXT_V1_URL)],[r(d[0]).SECURITY_CONTEXT_V2_URL,r(d[1]).contexts.get(r(d[0]).SECURITY_CONTEXT_V2_URL)]])},1749,[1742,1743]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){if(t.unmappedProperty)throw new Error('The property "'+t.unmappedProperty+"\" in the input was not defined in the context.")}},1750,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}var t=(function(t){r(d[2])(c,t);var n,o,u=(n=c,o=e(),function(){var e,t=r(d[0])(n);if(o){var u=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,u)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t;return r(d[3])(this,c),t=u.call(this,c._prepareSuperMessage(e)),Object.defineProperty(r(d[4])(t),'name',{value:'NonError',configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(r(d[4])(t),c),t}return r(d[5])(c,null,[{key:"_prepareSuperMessage",value:function(e){try{return JSON.stringify(e)}catch(t){return String(e)}}}]),c})(r(d[6])(Error)),n=[{property:'name',enumerable:!1},{property:'message',enumerable:!1},{property:'stack',enumerable:!1},{property:'code',enumerable:!0}],o=Symbol('.toJSON called'),u=function(e){e[o]=!0;var t=e.toJSON();return delete e[o],t},c=function e(t){var c=t.from,f=t.seen,l=t.to_,p=t.forceEnumerable,s=t.maxDepth,y=t.depth,b=l||(Array.isArray(c)?[]:{});if(f.push(c),y>=s)return b;if('function'==typeof c.toJSON&&!0!==c[o])return u(c);for(var h=0,v=Object.entries(c);h1&&void 0!==arguments[1]?arguments[1]:{}).maxDepth,n=void 0===t?Number.POSITIVE_INFINITY:t;return'object'==typeof e&&null!==e?c({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):'function'==typeof e?"[Function: "+(e.name||'anonymous')+"]":e},deserializeError:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).maxDepth,o=void 0===n?Number.POSITIVE_INFINITY:n;if(e instanceof Error)return e;if('object'==typeof e&&null!==e&&!Array.isArray(e)){var u=new Error;return c({from:e,seen:[],to_:u,maxDepth:o,depth:0}),u}return new t(e)}}},1751,[14,11,9,7,13,8,65,31]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e;return r(d[3])(this,u),(e=o.call(this,'Verification error(s).')).name='VerificationError',e.errors=[].concat(t),e}return r(d[4])(u)})(r(d[5])(Error));m.exports=e},1752,[14,11,9,7,8,65]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.suites={LinkedDataProof:r(d[0]),LinkedDataSignature:r(d[1])}},1753,[1754,1756]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=(function(){function t(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type;if(r(d[0])(this,t),'string'!=typeof n)throw new TypeError('A LinkedDataProof must have a "type".');this.type=n}return r(d[1])(t,[{key:"createProof",value:function(t){return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:throw r(d[3])(t),new Error('"createProof" must be implemented in a derived class.');case 2:case"end":return n.stop()}},null,null,null,Promise)}},{key:"verifyProof",value:function(t){return r(d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:throw r(d[3])(t),new Error('"verifyProof" must be implemented in a derived class.');case 2:case"end":return n.stop()}},null,null,null,Promise)}},{key:"matchProof",value:function(t){var n;return r(d[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=t.proof,o.abrupt("return",n.type===this.type);case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),t})()},1754,[7,8,82,1755]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},m.exports.default=m.exports,m.exports.__esModule=!0},1755,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}function t(e){var t=e.document,n=e.contextUrl,o=t['@context'];return o===n||Array.isArray(o)&&o.includes(n)}function n(e){var t=e.key,n=e.signer,o=e.verifier,s={};if(t){if(s.key=t,s.verificationMethod=t.id,'function'==typeof t.signer&&(s.signer=t.signer()),'function'==typeof t.verifier&&(s.verifier=t.verifier()),!s.signer&&!s.verifier)throw new TypeError('The "key" parameter must contain a "signer" or "verifier" method.')}else s.verificationMethod=n&&n.id||o&&o.id,s.signer=n,s.verifier=o;if(s.signer&&'function'!=typeof s.signer.sign)throw new TypeError('A signer API has not been specified.');if(s.verifier&&'function'!=typeof s.verifier.verify)throw new TypeError('A verifier API has not been specified.');return s}m.exports=(function(o){r(d[2])(f,o);var s,c,u=(s=f,c=e(),function(){var e,t=r(d[0])(s);if(c){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function f(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.type,s=t.proof,c=t.LDKeyClass,p=t.date,l=t.key,h=t.signer,v=t.verifier,y=t.useNativeCanonize,x=t.contextUrl;r(d[3])(this,f),(e=u.call(this,{type:o})).LDKeyClass=c,e.contextUrl=x,e.proof=s;var w=n({key:l,signer:h,verifier:v});if(e.verificationMethod=w.verificationMethod,e.key=w.key,e.signer=w.signer,e.verifier=w.verifier,p&&(e.date=new Date(p),isNaN(e.date)))throw TypeError("\"date\" \""+p+"\" is not a valid date.");return e.useNativeCanonize=y,e._hashCache=null,e}return r(d[4])(f,[{key:"createProof",value:function(e){var t,n,o,s,c,u,f;return r(d[5]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.document,n=e.purpose,o=e.documentLoader,s=e.expansionMap,(c=this.proof?r(d[6])({},this.proof):{}).type=this.type,u=this.date,void 0===c.created&&void 0===u&&(u=new Date),u&&'string'!=typeof u&&(u=r(d[7]).w3cDate(u)),u&&(c.created=u),c.verificationMethod=this.verificationMethod,p.next=10,r(d[5]).awrap(this.updateProof({document:t,proof:c,purpose:n,documentLoader:o,expansionMap:s}));case 10:return c=p.sent,p.next=13,r(d[5]).awrap(n.update(c,{document:t,suite:this,documentLoader:o,expansionMap:s}));case 13:return c=p.sent,p.next=16,r(d[5]).awrap(this.createVerifyData({document:t,proof:c,documentLoader:o,expansionMap:s}));case 16:return f=p.sent,p.next=19,r(d[5]).awrap(this.sign({verifyData:f,document:t,proof:c,documentLoader:o,expansionMap:s}));case 19:return c=p.sent,p.abrupt("return",c);case 21:case"end":return p.stop()}},null,this,null,Promise)}},{key:"updateProof",value:function(e){var t;return r(d[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.proof,n.abrupt("return",t);case 2:case"end":return n.stop()}},null,null,null,Promise)}},{key:"verifyProof",value:function(e){var t,n,o,s,c,u;return r(d[5]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.proof,n=e.document,o=e.documentLoader,s=e.expansionMap,f.prev=1,f.next=4,r(d[5]).awrap(this.createVerifyData({document:n,proof:t,documentLoader:o,expansionMap:s}));case 4:return c=f.sent,f.next=7,r(d[5]).awrap(this.getVerificationMethod({proof:t,document:n,documentLoader:o,expansionMap:s}));case 7:return u=f.sent,f.next=10,r(d[5]).awrap(this.verifySignature({verifyData:c,verificationMethod:u,document:n,proof:t,documentLoader:o,expansionMap:s}));case 10:if(f.sent){f.next=13;break}throw new Error('Invalid signature.');case 13:return f.abrupt("return",{verified:!0,verificationMethod:u});case 16:return f.prev=16,f.t0=f.catch(1),f.abrupt("return",{verified:!1,error:f.t0});case 19:case"end":return f.stop()}},null,this,[[1,16]],Promise)}},{key:"canonize",value:function(e,t){var n,o,s;return r(d[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=t.documentLoader,o=t.expansionMap,s=t.skipExpansion,c.abrupt("return",r(d[8]).canonize(e,{algorithm:'URDNA2015',format:'application/n-quads',documentLoader:n,expansionMap:o,skipExpansion:s,useNative:this.useNativeCanonize}));case 2:case"end":return c.stop()}},null,this,null,Promise)}},{key:"canonizeProof",value:function(e,t){var n,o,s;return r(d[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=t.document,o=t.documentLoader,s=t.expansionMap,delete(e=r(d[6])({'@context':n['@context']||r(d[9]).SECURITY_CONTEXT_URL},e)).jws,delete e.signatureValue,delete e.proofValue,c.abrupt("return",this.canonize(e,{documentLoader:o,expansionMap:s,skipExpansion:!1}));case 6:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createVerifyData",value:function(e){var t,n,o,s,c,u,f,p,l,h;return r(d[5]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return t=e.document,n=e.proof,o=e.documentLoader,s=e.expansionMap,(u=this._hashCache)&&u.document===t?c=u.hash:this._hashCache={document:t,hash:c=this.canonize(t,{documentLoader:o,expansionMap:s}).then(function(e){return r(d[10]).sha256digest({string:e})})},v.next=5,r(d[5]).awrap(Promise.all([this.canonizeProof(n,{document:t,documentLoader:o,expansionMap:s}).then(function(e){return r(d[10]).sha256digest({string:e})}),c]));case 5:return f=v.sent,p=r(d[11])(f,2),l=p[0],h=p[1],v.abrupt("return",r(d[7]).concat(l,h));case 10:case"end":return v.stop()}},null,this,null,Promise)}},{key:"getVerificationMethod",value:function(e){var t,n,o,s;return r(d[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(t=e.proof,n=e.documentLoader,'object'==typeof(o=t.verificationMethod)&&(o=o.id),o){c.next=5;break}throw new Error('No "verificationMethod" found in proof.');case 5:return c.next=7,r(d[5]).awrap(r(d[8]).frame(o,{'@context':r(d[9]).SECURITY_CONTEXT_URL,'@embed':'@always',id:o},{documentLoader:n,compactToRelative:!1}));case 7:if(s=c.sent){c.next=10;break}throw new Error("Verification method "+o+" not found.");case 10:if(void 0===s.revoked){c.next=12;break}throw new Error('The verification method has been revoked.');case 12:return c.abrupt("return",s);case 13:case"end":return c.stop()}},null,null,null,Promise)}},{key:"sign",value:function(){return r(d[5]).async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('Must be implemented by a derived class.');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"verifySignature",value:function(){return r(d[5]).async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('Must be implemented by a derived class.');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"ensureSuiteContext",value:function(e){var n=e.document,o=e.addSuiteContext,s=this.contextUrl;if(!t({document:n,contextUrl:s})){if(!o)throw new TypeError("The document to be signed must contain this suite's @context, \""+s+"\".");var c=n['@context']||[];n['@context']=Array.isArray(c)?[].concat(r(d[12])(c),[s]):[c,s]}}}]),f})(r(d[13]))},1756,[14,11,9,7,8,82,4,1757,1702,1742,1758,31,42,1754]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.w3cDate=function(t){void 0===t||null===t?t=new Date:'number'!=typeof t&&'string'!=typeof t||(t=new Date(t));var n=t.toISOString();return n.substr(0,n.length-5)+'Z'},t.concat=function(t,n){var o=new Uint8Array(t.length+n.length);return o.set(t,0),o.set(n,t.length),o}},1757,[]); -__d(function(g,r,i,a,m,e,d){'use strict';r(d[0]),m.exports={sha256digest:function(t){var n,s=t.string;return r(d[1]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=(new TextEncoder).encode(s),t.t0=Uint8Array,t.next=4,r(d[1]).awrap(r(d[2]).subtle.digest({name:'SHA-256'},n));case 4:return t.t1=t.sent,t.abrupt("return",new t.t0(t.t1));case 6:case"end":return t.stop()}},null,null,null,Promise)}}},1758,[617,82,617]); -__d(function(g,r,i,a,m,e,d){'use strict';var o={};m.exports=o,o.purposes={AssertionProofPurpose:r(d[0]),AuthenticationProofPurpose:r(d[1]),ControllerProofPurpose:r(d[2]),ProofPurpose:r(d[3])}},1759,[1760,1763,1761,1762]); -__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}m.exports=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.term,n=void 0===e?'assertionMethod':e,o=t.controller,l=t.date,f=t.maxTimestampDelta,s=void 0===f?1/0:f;return r(d[3])(this,u),c.call(this,{term:n,controller:o,date:l,maxTimestampDelta:s})}return r(d[4])(u)})(r(d[5]))},1760,[14,11,9,7,8,1761]); -__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}var t=['assertionMethod','authentication','capabilityInvocation','capabilityDelegation','keyAgreement','verificationMethod'];m.exports=(function(n){r(d[2])(l,n);var o,c,s=(o=l,c=e(),function(){var e,t=r(d[0])(o);if(c){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function l(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.term,c=n.controller,u=n.date,f=n.maxTimestampDelta,p=void 0===f?1/0:f;if(r(d[3])(this,l),e=s.call(this,{term:o,date:u,maxTimestampDelta:p}),void 0!==c){if('object'!=typeof c)throw new TypeError('"controller" must be an object.');e.controller=c}return e._termDefinedByDIDContext=t.includes(o),e}return r(d[4])(l,[{key:"validate",value:function(e,t){var n,o,c,s,u,f,p,h,v,x,y,b;return r(d[5]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return n=t.verificationMethod,o=t.documentLoader,c=t.expansionMap,w.prev=1,w.next=4,r(d[5]).awrap(r(d[6])(r(d[0])(l.prototype),"validate",this).call(this,e,{verificationMethod:n,documentLoader:o,expansionMap:c}));case 4:if((s=w.sent).valid){w.next=7;break}throw s.error;case 7:if(u=n.id,f=this.term,p=this._termDefinedByDIDContext,!this.controller){w.next=13;break}s.controller=this.controller,w.next=34;break;case 13:if(!(h=n.controller)){w.next=24;break}if('object'!=typeof h){w.next=19;break}v=h.id,w.next=24;break;case 19:if('string'==typeof h){w.next=23;break}throw new TypeError('"controller" must be a string representing a URL.');case 23:v=h;case 24:return w.next=26,r(d[5]).awrap(o(v));case 26:if(x=w.sent,y=x.document,!!(p&&"https://www.w3.org/ns/did/v1"===y['@context']||Array.isArray(y['@context'])&&"https://www.w3.org/ns/did/v1"===y['@context'][0])){w.next=33;break}return w.next=32,r(d[5]).awrap(r(d[7]).frame(y,r(d[8])({'@context':r(d[9]).SECURITY_CONTEXT_URL,id:v},f,{'@embed':'@never',id:u}),{documentLoader:o,compactToRelative:!1}));case 32:y=w.sent;case 33:s.controller=y;case 34:if(b=r(d[7]).getValues(s.controller,f),s.valid=b.some(function(e){return e===u||'object'==typeof e&&e.id===u}),s.valid){w.next=38;break}throw new Error("Verification method \""+n.id+"\" not authorized by controller for proof purpose \""+this.term+"\".");case 38:return w.abrupt("return",s);case 41:return w.prev=41,w.t0=w.catch(1),w.abrupt("return",{valid:!1,error:w.t0});case 44:case"end":return w.stop()}},null,this,[[1,41]],Promise)}}]),l})(r(d[10]))},1761,[14,11,9,7,8,82,91,1702,249,1742,1762]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=(function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=n.term,o=n.date,u=n.maxTimestampDelta,c=void 0===u?1/0:u;if(r(d[0])(this,t),void 0===s)throw new Error('"term" is required.');if(void 0!==c&&'number'!=typeof c)throw new TypeError('"maxTimestampDelta" must be a number.');if(this.term=s,void 0!==o&&(this.date=new Date(o),isNaN(this.date)))throw TypeError("\"date\" \""+o+"\" is not a valid date.");this.maxTimestampDelta=c}return r(d[1])(t,[{key:"validate",value:function(t,n){var s,o,u;return r(d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r(d[3])(n),c.prev=1,this.maxTimestampDelta===1/0){c.next=8;break}if(s=(this.date||new Date).getTime(),o=1e3*this.maxTimestampDelta,(u=new Date(t.created).getTime())>=s-o&&u<=s+o){c.next=8;break}throw new Error('The proof\'s created timestamp is out of range.');case 8:return c.abrupt("return",{valid:!0});case 11:return c.prev=11,c.t0=c.catch(1),c.abrupt("return",{valid:!1,error:c.t0});case 14:case"end":return c.stop()}},null,this,[[1,11]],Promise)}},{key:"update",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return r(d[3])(n),t.proofPurpose=this.term,s.abrupt("return",t);case 3:case"end":return s.stop()}},null,this,null,Promise)}},{key:"match",value:function(t,n){return r(d[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return r(d[3])(n),s.abrupt("return",t.proofPurpose===this.term);case 2:case"end":return s.stop()}},null,this,null,Promise)}}]),t})()},1762,[7,8,82,1755]); -__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}m.exports=(function(t){r(d[2])(s,t);var n,o,c=(n=s,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.term,o=void 0===n?'authentication':n,u=t.controller,l=t.challenge,h=t.date,p=t.domain,f=t.maxTimestampDelta,v=void 0===f?1/0:f;if(r(d[3])(this,s),e=c.call(this,{term:o,controller:u,date:h,maxTimestampDelta:v}),'string'!=typeof l)throw new TypeError('"challenge" must be a string.');if(void 0!==p&&'string'!=typeof p)throw new TypeError('"domain" must be a string.');return e.challenge=l,e.domain=p,e}return r(d[4])(s,[{key:"validate",value:function(e,t){var n,o,c;return r(d[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.verificationMethod,o=t.documentLoader,c=t.expansionMap,u.prev=1,e.challenge===this.challenge){u.next=4;break}throw new Error("The challenge is not as expected; challenge=\""+e.challenge+"\", expected=\""+this.challenge+"\"");case 4:if(void 0===this.domain||e.domain===this.domain){u.next=6;break}throw new Error("The domain is not as expected; domain=\""+e.domain+"\", expected=\""+this.domain+"\"");case 6:return u.abrupt("return",r(d[6])(r(d[0])(s.prototype),"validate",this).call(this,e,{verificationMethod:n,documentLoader:o,expansionMap:c}));case 9:return u.prev=9,u.t0=u.catch(1),u.abrupt("return",{valid:!1,error:u.t0});case 12:case"end":return u.stop()}},null,this,[[1,9]],Promise)}},{key:"update",value:function(e,t){var n,o,c,u;return r(d[5]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=t.document,o=t.suite,c=t.documentLoader,u=t.expansionMap,l.next=3,r(d[5]).awrap(r(d[6])(r(d[0])(s.prototype),"update",this).call(this,e,{document:n,suite:o,documentLoader:c,expansionMap:u}));case 3:return(e=l.sent).challenge=this.challenge,void 0!==this.domain&&(e.domain=this.domain),l.abrupt("return",e);case 7:case"end":return l.stop()}},null,this,null,Promise)}}]),s})(r(d[7]))},1763,[14,11,9,7,8,82,91,1761]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t;return r(d[0]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===(t=r(d[1])[n])){o.next=3;break}return o.abrupt("return",{contextUrl:null,documentUrl:n,document:t});case 3:throw new Error("Document loader unable to load URL \""+n+"\".");case 4:case"end":return o.stop()}},null,null,null,Promise)}},1764,[82,1765]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=m.exports={'https://www.w3.org/2018/credentials/examples/v1':r(d[0]),'https://www.w3.org/ns/odrl.jsonld':r(d[1])};for(var s in r(d[2]).constants){var n=r(d[2]).constants[s];s.includes('URL')&&(t[n]=r(d[2]).contexts.get(n))}},1765,[1766,1767,1768]); -__d(function(g,r,i,a,m,e,d){m.exports={'@context':[{'@version':1.1},'https://www.w3.org/ns/odrl.jsonld',{ex:'https://example.org/examples#',schema:'http://schema.org/',rdf:'http://www.w3.org/1999/02/22-rdf-syntax-ns#','3rdPartyCorrelation':'ex:3rdPartyCorrelation',AllVerifiers:'ex:AllVerifiers',Archival:'ex:Archival',BachelorDegree:'ex:BachelorDegree',Child:'ex:Child',CLCredentialDefinition2019:'ex:CLCredentialDefinition2019',CLSignature2019:'ex:CLSignature2019',IssuerPolicy:'ex:IssuerPolicy',HolderPolicy:'ex:HolderPolicy',Mother:'ex:Mother',RelationshipCredential:'ex:RelationshipCredential',UniversityDegreeCredential:'ex:UniversityDegreeCredential',ZkpExampleSchema2018:'ex:ZkpExampleSchema2018',alumniOf:{'@id':'schema:alumniOf','@type':'rdf:HTML'},child:{'@id':'ex:child','@type':'@id'},degree:'ex:degree',name:{'@id':'schema:name','@type':'rdf:HTML'},parent:{'@id':'ex:parent','@type':'@id'},referenceId:'ex:referenceId',documentPresence:'ex:documentPresence',evidenceDocument:'ex:evidenceDocument',subjectPresence:'ex:subjectPresence',verifier:{'@id':'ex:verifier','@type':'@id'}}]}},1766,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{odrl:'http://www.w3.org/ns/odrl/2/',rdf:'http://www.w3.org/1999/02/22-rdf-syntax-ns#',rdfs:'http://www.w3.org/2000/01/rdf-schema#',owl:'http://www.w3.org/2002/07/owl#',skos:'http://www.w3.org/2004/02/skos/core#',dct:'http://purl.org/dc/terms/',xsd:'http://www.w3.org/2001/XMLSchema#',vcard:'http://www.w3.org/2006/vcard/ns#',foaf:'http://xmlns.com/foaf/0.1/',schema:'http://schema.org/',cc:'http://creativecommons.org/ns#',uid:'@id',type:'@type',Policy:'odrl:Policy',Rule:'odrl:Rule',profile:{'@type':'@id','@id':'odrl:profile'},inheritFrom:{'@type':'@id','@id':'odrl:inheritFrom'},ConflictTerm:'odrl:ConflictTerm',conflict:{'@type':'@vocab','@id':'odrl:conflict'},perm:'odrl:perm',prohibit:'odrl:prohibit',invalid:'odrl:invalid',Agreement:'odrl:Agreement',Assertion:'odrl:Assertion',Offer:'odrl:Offer',Privacy:'odrl:Privacy',Request:'odrl:Request',Set:'odrl:Set',Ticket:'odrl:Ticket',Asset:'odrl:Asset',AssetCollection:'odrl:AssetCollection',relation:{'@type':'@id','@id':'odrl:relation'},hasPolicy:{'@type':'@id','@id':'odrl:hasPolicy'},target:{'@type':'@id','@id':'odrl:target'},output:{'@type':'@id','@id':'odrl:output'},partOf:{'@type':'@id','@id':'odrl:partOf'},source:{'@type':'@id','@id':'odrl:source'},Party:'odrl:Party',PartyCollection:'odrl:PartyCollection',function:{'@type':'@vocab','@id':'odrl:function'},PartyScope:'odrl:PartyScope',assignee:{'@type':'@id','@id':'odrl:assignee'},assigner:{'@type':'@id','@id':'odrl:assigner'},assigneeOf:{'@type':'@id','@id':'odrl:assigneeOf'},assignerOf:{'@type':'@id','@id':'odrl:assignerOf'},attributedParty:{'@type':'@id','@id':'odrl:attributedParty'},attributingParty:{'@type':'@id','@id':'odrl:attributingParty'},compensatedParty:{'@type':'@id','@id':'odrl:compensatedParty'},compensatingParty:{'@type':'@id','@id':'odrl:compensatingParty'},consentingParty:{'@type':'@id','@id':'odrl:consentingParty'},consentedParty:{'@type':'@id','@id':'odrl:consentedParty'},informedParty:{'@type':'@id','@id':'odrl:informedParty'},informingParty:{'@type':'@id','@id':'odrl:informingParty'},trackingParty:{'@type':'@id','@id':'odrl:trackingParty'},trackedParty:{'@type':'@id','@id':'odrl:trackedParty'},contractingParty:{'@type':'@id','@id':'odrl:contractingParty'},contractedParty:{'@type':'@id','@id':'odrl:contractedParty'},Action:'odrl:Action',action:{'@type':'@vocab','@id':'odrl:action'},includedIn:{'@type':'@id','@id':'odrl:includedIn'},implies:{'@type':'@id','@id':'odrl:implies'},Permission:'odrl:Permission',permission:{'@type':'@id','@id':'odrl:permission'},Prohibition:'odrl:Prohibition',prohibition:{'@type':'@id','@id':'odrl:prohibition'},obligation:{'@type':'@id','@id':'odrl:obligation'},use:'odrl:use',grantUse:'odrl:grantUse',aggregate:'odrl:aggregate',annotate:'odrl:annotate',anonymize:'odrl:anonymize',archive:'odrl:archive',concurrentUse:'odrl:concurrentUse',derive:'odrl:derive',digitize:'odrl:digitize',display:'odrl:display',distribute:'odrl:distribute',execute:'odrl:execute',extract:'odrl:extract',give:'odrl:give',index:'odrl:index',install:'odrl:install',modify:'odrl:modify',move:'odrl:move',play:'odrl:play',present:'odrl:present',print:'odrl:print',read:'odrl:read',reproduce:'odrl:reproduce',sell:'odrl:sell',stream:'odrl:stream',textToSpeech:'odrl:textToSpeech',transfer:'odrl:transfer',transform:'odrl:transform',translate:'odrl:translate',Duty:'odrl:Duty',duty:{'@type':'@id','@id':'odrl:duty'},consequence:{'@type':'@id','@id':'odrl:consequence'},remedy:{'@type':'@id','@id':'odrl:remedy'},acceptTracking:'odrl:acceptTracking',attribute:'odrl:attribute',compensate:'odrl:compensate',delete:'odrl:delete',ensureExclusivity:'odrl:ensureExclusivity',include:'odrl:include',inform:'odrl:inform',nextPolicy:'odrl:nextPolicy',obtainConsent:'odrl:obtainConsent',reviewPolicy:'odrl:reviewPolicy',uninstall:'odrl:uninstall',watermark:'odrl:watermark',Constraint:'odrl:Constraint',LogicalConstraint:'odrl:LogicalConstraint',constraint:{'@type':'@id','@id':'odrl:constraint'},refinement:{'@type':'@id','@id':'odrl:refinement'},Operator:'odrl:Operator',operator:{'@type':'@vocab','@id':'odrl:operator'},RightOperand:'odrl:RightOperand',rightOperand:'odrl:rightOperand',rightOperandReference:{'@type':'xsd:anyURI','@id':'odrl:rightOperandReference'},LeftOperand:'odrl:LeftOperand',leftOperand:{'@type':'@vocab','@id':'odrl:leftOperand'},unit:'odrl:unit',dataType:{'@type':'xsd:anyType','@id':'odrl:datatype'},status:'odrl:status',absolutePosition:'odrl:absolutePosition',absoluteSpatialPosition:'odrl:absoluteSpatialPosition',absoluteTemporalPosition:'odrl:absoluteTemporalPosition',absoluteSize:'odrl:absoluteSize',count:'odrl:count',dateTime:'odrl:dateTime',delayPeriod:'odrl:delayPeriod',deliveryChannel:'odrl:deliveryChannel',elapsedTime:'odrl:elapsedTime',event:'odrl:event',fileFormat:'odrl:fileFormat',industry:'odrl:industry:',language:'odrl:language',media:'odrl:media',meteredTime:'odrl:meteredTime',payAmount:'odrl:payAmount',percentage:'odrl:percentage',product:'odrl:product',purpose:'odrl:purpose',recipient:'odrl:recipient',relativePosition:'odrl:relativePosition',relativeSpatialPosition:'odrl:relativeSpatialPosition',relativeTemporalPosition:'odrl:relativeTemporalPosition',relativeSize:'odrl:relativeSize',resolution:'odrl:resolution',spatial:'odrl:spatial',spatialCoordinates:'odrl:spatialCoordinates',systemDevice:'odrl:systemDevice',timeInterval:'odrl:timeInterval',unitOfCount:'odrl:unitOfCount',version:'odrl:version',virtualLocation:'odrl:virtualLocation',eq:'odrl:eq',gt:'odrl:gt',gteq:'odrl:gteq',lt:'odrl:lt',lteq:'odrl:lteq',neq:'odrl:neg',isA:'odrl:isA',hasPart:'odrl:hasPart',isPartOf:'odrl:isPartOf',isAllOf:'odrl:isAllOf',isAnyOf:'odrl:isAnyOf',isNoneOf:'odrl:isNoneOf',or:'odrl:or',xone:'odrl:xone',and:'odrl:and',andSequence:'odrl:andSequence',policyUsage:'odrl:policyUsage'}}},1767,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var T=new Map;T.set(r(d[0]).CONTEXT_URL,r(d[1])),m.exports={constants:r(d[0]),contexts:T,documentLoader:r(d[2]).documentLoader,CONTEXT_URL:r(d[0]).CONTEXT_URL,CREDENTIALS_CONTEXT_V1_URL:r(d[0]).CONTEXT_URL,CONTEXT_URL_V1:r(d[0]).CONTEXT_URL,CONTEXT:r(d[1])}},1768,[1769,1770,1771]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={CONTEXT_FILENAME:'credentials-v1.jsonld',CONTEXT_URL:'https://www.w3.org/2018/credentials/v1',CREDENTIALS_CONTEXT_V1_URL:'https://www.w3.org/2018/credentials/v1'}},1769,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',VerifiableCredential:{'@id':'https://www.w3.org/2018/credentials#VerifiableCredential','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',credentialSchema:{'@id':'cred:credentialSchema','@type':'@id','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',JsonSchemaValidator2018:'cred:JsonSchemaValidator2018'}},credentialStatus:{'@id':'cred:credentialStatus','@type':'@id'},credentialSubject:{'@id':'cred:credentialSubject','@type':'@id'},evidence:{'@id':'cred:evidence','@type':'@id'},expirationDate:{'@id':'cred:expirationDate','@type':'xsd:dateTime'},holder:{'@id':'cred:holder','@type':'@id'},issued:{'@id':'cred:issued','@type':'xsd:dateTime'},issuer:{'@id':'cred:issuer','@type':'@id'},issuanceDate:{'@id':'cred:issuanceDate','@type':'xsd:dateTime'},proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},refreshService:{'@id':'cred:refreshService','@type':'@id','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',ManualRefreshService2018:'cred:ManualRefreshService2018'}},termsOfUse:{'@id':'cred:termsOfUse','@type':'@id'},validFrom:{'@id':'cred:validFrom','@type':'xsd:dateTime'},validUntil:{'@id':'cred:validUntil','@type':'xsd:dateTime'}}},VerifiablePresentation:{'@id':'https://www.w3.org/2018/credentials#VerifiablePresentation','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',sec:'https://w3id.org/security#',holder:{'@id':'cred:holder','@type':'@id'},proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},verifiableCredential:{'@id':'cred:verifiableCredential','@type':'@id','@container':'@graph'}}},EcdsaSecp256k1Signature2019:{'@id':'https://w3id.org/security#EcdsaSecp256k1Signature2019','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},EcdsaSecp256r1Signature2019:{'@id':'https://w3id.org/security#EcdsaSecp256r1Signature2019','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},Ed25519Signature2018:{'@id':'https://w3id.org/security#Ed25519Signature2018','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},RsaSignature2018:{'@id':'https://w3id.org/security#RsaSignature2018','@context':{'@version':1.1,'@protected':!0,challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},proof:{'@id':'https://w3id.org/security#proof','@type':'@id','@container':'@graph'}}}},1770,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={documentLoader:function(n){if(n!==r(d[0]).CONTEXT_URL)throw new Error("Loading document \""+n+"\" is not allowed.");return{contextUrl:null,document:r(d[1]),documentUrl:n}}}},1771,[1769,1770]); -__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}var t=(function(t){r(d[3])(s,t);var n,o,c=(n=s,o=e(),function(){var e,t=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.controller,n=e.date,o=e.maxTimestampDelta;return r(d[4])(this,s),c.call(this,{controller:t,date:n,maxTimestampDelta:o})}return r(d[5])(s,[{key:"validate",value:function(e,t){var n,o,c,u,l,f,p,h;return r(d[6]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return n=t.document,o=t.suite,c=t.verificationMethod,u=t.documentLoader,l=t.expansionMap,v.prev=1,v.next=4,r(d[6]).awrap(r(d[7])(r(d[0])(s.prototype),"validate",this).call(this,e,{document:n,suite:o,verificationMethod:c,documentLoader:u,expansionMap:l}));case 4:if((f=v.sent).valid){v.next=7;break}throw f.error;case 7:if((p=r(d[8]).getValues(n,'issuer'))&&0!==p.length){v.next=10;break}throw new Error('Credential issuer is required.');case 10:if(h='string'==typeof p[0]?p[0]:p[0].id,f.controller.id===h){v.next=13;break}throw new Error('Credential issuer must match the verification method controller.');case 13:return v.abrupt("return",{valid:!0});case 16:return v.prev=16,v.t0=v.catch(1),v.abrupt("return",{valid:!1,error:v.t0});case 19:case"end":return v.stop()}},null,this,[[1,16]],Promise)}}]),s})(r(d[2]).purposes.AssertionProofPurpose);m.exports=t},1772,[14,11,1741,9,7,8,82,91,1702]); -__d(function(g,r,i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.createWalletKeyPairClass=void 0,_e.createWalletKeyPairClass=function(t){return(function(n){r(_d[2])(f,n);var u,o,c=(u=f,o=e(),function(){var e,t=r(_d[0])(u);if(o){var n=r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(_d[1])(this,e)});function f(e){var t;return r(_d[3])(this,f),(t=c.call(this,e)).wallet=e.wallet,t.key=e.key,t.type=e.key.keyType,t}return r(_d[4])(f,[{key:"fingerprint",value:function(){throw new Error('Method not implemented.')}},{key:"verifyFingerprint",value:function(e){throw new Error('Method not implemented.')}},{key:"signer",value:function(){var e=this;return{sign:function(n){var u,o;return r(_d[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return u=[],u=Array.isArray(n.data)?n.data.map(function(e){return r(_d[6]).Buffer.from(e)}):r(_d[6]).Buffer.from(n.data),c.next=4,r(_d[5]).awrap(t.sign({data:u,key:e.key}));case 4:return o=c.sent,c.abrupt("return",Uint8Array.from(o));case 6:case"end":return c.stop()}},null,null,null,Promise)}.bind(this)}}},{key:"verifier",value:function(){var e=this;return{verify:function(n){var u;return r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return u=[],u=Array.isArray(n.data)?n.data.map(function(e){return r(_d[6]).Buffer.from(e)}):r(_d[6]).Buffer.from(n.data),o.abrupt("return",t.verify({data:u,signature:r(_d[6]).Buffer.from(n.signature),key:e.key}));case 3:case"end":return o.stop()}},null,null,null,Promise)}.bind(this)}}},{key:"publicKeyBuffer",get:function(){return new Uint8Array(this.key.publicKey)}}],[{key:"generate",value:function(){return r(_d[5]).async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('Not implemented');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"from",value:function(e){var n,u,o,c;return r(_d[5]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=r(_d[7]).JsonTransformer.fromJSON(e,r(_d[8]).VerificationMethod),r(_d[9]).MessageValidator.validateSync(n),u=(0,r(_d[10]).getKeyDidMappingByVerificationMethod)(n),o=u.getKeyFromVerificationMethod,c=o(n),l.abrupt("return",new f({id:n.id,controller:n.controller,wallet:t,key:c}));case 5:case"end":return l.stop()}},null,null,null,Promise)}}]),f})(r(_d[11]).LdKeyPair)}},1773,[14,11,9,7,8,82,981,993,1420,661,1080,1774]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LdKeyPair=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.id=n.id,this.controller=n.controller}return r(d[1])(t,[{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t&&!n)throw new Error('Export requires specifying either "publicKey" or "privateKey".');return{id:this.id,type:this.type,controller:this.controller}}}],[{key:"generate",value:function(){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Not implemented');case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"from",value:function(t){return r(d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Abstract method from() must be implemented in subclass.');case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),t})();e.LdKeyPair=t},1774,[7,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeInfo=e.w3cDate=e.getProofs=e._includesContext=e.orArrayToArray=void 0;var n=t(r(d[0]));e.orArrayToArray=function(t){return t?Array.isArray(t)?t:[t]:[]};e._includesContext=function(t){var n=t.document['@context'];return n===t.contextUrl||Array.isArray(n)&&n.includes(t.contextUrl)};e.getProofs=function(t){var o,u,c,s,p,l;return r(d[1]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(o=t.proofType,u=t.skipProofCompaction,c=t.documentLoader,s=t.expansionMap,p=t.document,u){f.next=6;break}return f.next=5,r(d[1]).awrap(n.default.compact(p,r(d[2]).SECURITY_CONTEXT_URL,{documentLoader:c,expansionMap:s,compactToRelative:!1}));case 5:p=f.sent;case 6:return l=n.default.getValues(p,"proof"),delete p.proof,'string'==typeof o&&(l=l.filter(function(t){return t.type==o})),Array.isArray(o)&&(l=l.filter(function(t){return o.includes(t.type)})),l=l.map(function(t){return r(d[3])({'@context':r(d[2]).SECURITY_CONTEXT_URL},t)}),f.abrupt("return",{proofs:l,document:p});case 12:case"end":return f.stop()}},null,null,null,Promise)};e.w3cDate=function(t){var n=new Date;'number'!=typeof t&&'string'!=typeof t||(n=new Date(t));var o=n.toISOString();return o.substr(0,o.length-5)+'Z'};e.getTypeInfo=function(t,o){var u,c,s,p,l,f,y;return r(d[1]).async(function(x){for(;;)switch(x.prev=x.next){case 0:return u=o.documentLoader,c=o.expansionMap,s=n.default.getValues(t,'@context'),x.next=4,r(d[1]).awrap(n.default.compact({'@type':'_:b0'},s,{documentLoader:u,expansionMap:c}));case 4:return delete(p=x.sent)['@context'],l=Object.keys(p)[0],(f={'@context':s})['@type']=n.default.getValues(t,'@type').concat(n.default.getValues(t,l)),x.next=11,r(d[1]).awrap(n.default.expand(f,{documentLoader:u,expansionMap:c}));case 11:if(x.t0=x.sent[0],x.t0){x.next=14;break}x.t0={};case 14:return y=x.t0,x.abrupt("return",{types:n.default.getValues(y,'@type'),alias:l});case 16:case"end":return x.stop()}},null,null,null,Promise)}},1775,[1701,82,1061,4]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e)},1776,[1693,1777,1779,1780,1781,1782,1783,1784,1785,1774,1778]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,f=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(f=(i<3?o(f):i>3?o(t,r,f):o(t,r))||f);return i>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.VerifiableCredentialTransformer=_e.W3cVerifiableCredential=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),t=o.call(this,e),e&&(t.proof=Array.isArray(e.proof)?e.proof.map(function(e){return new(_r(_d[4]).LinkedDataProof)(e)}):new(_r(_d[4]).LinkedDataProof)(e.proof)),t}return _r(_d[5])(i,[{key:"proofTypes",get:function(){var e,t=(0,_r(_d[6]).orArrayToArray)(this.proof);return null!==(e=null===t||void 0===t?void 0:t.map(function(e){return e.type}))&&void 0!==e?e:[]}}]),i})(_r(_d[7]).W3cCredential);t([(0,_r(_d[4]).LinkedDataProofTransformer)(),(0,_r(_d[8]).IsInstanceOrArrayOfInstances)({classType:_r(_d[4]).LinkedDataProof}),r("design:type",Object)],n.prototype,"proof",void 0),_e.W3cVerifiableCredential=n,_e.VerifiableCredentialTransformer=function(){return(0,_r(_d[9]).Transform)(function(e){var t=e.value,r=e.type;return r===_r(_d[9]).TransformationType.PLAIN_TO_CLASS?Array.isArray(t)?t.map(function(e){return(0,_r(_d[9]).plainToInstance)(n,e)}):(0,_r(_d[9]).plainToInstance)(n,t):r===_r(_d[9]).TransformationType.CLASS_TO_PLAIN?Array.isArray(t)?t.map(function(e){return(0,_r(_d[9]).instanceToPlain)(e)}):(0,_r(_d[9]).instanceToPlain)(t):t})}},1777,[14,11,9,7,1778,8,1775,1693,993,627]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,n,i){var r,p=arguments.length,s=p<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,n,i);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(s=(p<3?r(s):p>3?r(o,n,s):r(o,n))||s);return p>3&&s&&Object.defineProperty(o,n,s),s},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedDataProofTransformer=e.LinkedDataProof=void 0;var n=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.type=o.type,this.proofPurpose=o.proofPurpose,this.verificationMethod=o.verificationMethod,this.created=o.created,this.domain=o.domain,this.challenge=o.challenge,this.jws=o.jws,this.proofValue=o.proofValue,this.nonce=o.nonce)});t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"proofPurpose",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"verificationMethod",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"created",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"domain",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"challenge",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"jws",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"proofValue",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"nonce",void 0),e.LinkedDataProof=n,e.LinkedDataProofTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var o=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?Array.isArray(o)?o.map(function(t){return(0,_r(_d[3]).plainToInstance)(n,t)}):(0,_r(_d[3]).plainToInstance)(n,o):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?Array.isArray(o)?o.map(function(t){return(0,_r(_d[3]).instanceToPlain)(t)}):(0,_r(_d[3]).instanceToPlain)(o):o})}},1778,[8,7,662,627]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1651,[1652,1657,1688]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1652,[1653,1654,1655,1547,1656]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,o,r){var i,d=arguments.length,c=d<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,n,o,r);else for(var f=t.length-1;f>=0;f--)(i=t[f])&&(c=(d<3?i(c):d>3?i(n,o,c):i(n,o))||c);return d>3&&c&&Object.defineProperty(n,o,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredential=void 0;var o=(function(){function t(n){_r(_d[0])(this,t),n&&(this.credentialInfo=n.credentialInfo,this.interval=n.interval)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).Expose)({name:'cred_info'}),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).IndyCredentialInfo}),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(_r(_d[4]).IndyCredentialInfo),n("design:type",_r(_d[4]).IndyCredentialInfo)],o.prototype,"credentialInfo",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[3]).Type)(function(){return _r(_d[6]).IndyRevocationInterval}),(0,_r(_d[5]).ValidateNested)(),(0,_r(_d[5]).IsInstance)(_r(_d[6]).IndyRevocationInterval),n("design:type",_r(_d[6]).IndyRevocationInterval)],o.prototype,"interval",void 0),e.IndyCredential=o},1653,[7,8,625,626,1654,661,1655]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,d=arguments.length,s=d<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(d<3?o(s):d>3?o(i,n,s):o(i,n))||s);return d>3&&s&&Object.defineProperty(i,n,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredentialInfo=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),i&&(this.referent=i.referent,this.attributes=i.attributes,this.schemaId=i.schemaId,this.credentialDefinitionId=i.credentialDefinitionId,this.revocationRegistryId=i.revocationRegistryId,this.credentialRevocationId=i.credentialRevocationId)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"referent",void 0),t([(0,_r(_d[4]).Expose)({name:'attrs'}),(0,_r(_d[3]).IsString)({each:!0}),i("design:type",Object)],n.prototype,"attributes",void 0),t([(0,_r(_d[4]).Expose)({name:'schema_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"schemaId",void 0),t([(0,_r(_d[4]).Expose)({name:'cred_def_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],n.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[4]).Expose)({name:'rev_reg_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],n.prototype,"revocationRegistryId",void 0),t([(0,_r(_d[4]).Expose)({name:'cred_rev_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],n.prototype,"credentialRevocationId",void 0),e.IndyCredentialInfo=n},1654,[7,8,992,661,626]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,n,r){var i,c=arguments.length,f=c<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(f=(c<3?i(f):c>3?i(o,n,f):i(o,n))||f);return c>3&&f&&Object.defineProperty(o,n,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyRevocationInterval=void 0;var n=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.from=o.from,this.to=o.to)});t([(0,_r(_d[2]).IsInt)(),(0,_r(_d[2]).IsOptional)(),o("design:type",Number)],n.prototype,"from",void 0),t([(0,_r(_d[2]).IsInt)(),(0,_r(_d[2]).IsOptional)(),o("design:type",Number)],n.prototype,"to",void 0),e.IndyRevocationInterval=n},1655,[8,7,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,s,n){var o,r=arguments.length,d=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,s,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(d=(r<3?o(d):r>3?o(i,s,d):o(i,s))||d);return r>3&&d&&Object.defineProperty(i,s,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyCredPropose=void 0;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.schemaIssuerDid=i.schemaIssuerDid,this.schemaId=i.schemaId,this.schemaName=i.schemaName,this.schemaVersion=i.schemaVersion,this.credentialDefinitionId=i.credentialDefinitionId,this.issuerDid=i.issuerDid)});t([(0,_r(_d[2]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaId",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_name'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaName",void 0),t([(0,_r(_d[2]).Expose)({name:'schema_version'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"schemaVersion",void 0),t([(0,_r(_d[2]).Expose)({name:'cred_def_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[2]).Expose)({name:'issuer_did'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).IsOptional)(),i("design:type",String)],s.prototype,"issuerDid",void 0),e.IndyCredPropose=s},1656,[8,7,626,661]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function e(){e=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var c=t&&t.prototype instanceof y?t:y,s=Object.create(c.prototype),l=new O(i||[]);return o(s,"_invoke",{value:D(e,n,l)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var v={};function y(){}function w(){}function b(){}var I={};f(I,s,function(){return this});var A=Object.getPrototypeOf,x=A&&A(A(S([])));x&&x!==n&&i.call(x,s)&&(I=x);var k=b.prototype=y.prototype=Object.create(I);function _(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,c,s,l){var u=p(e[o],e,c);if("throw"!==u.type){var f=u.arg,h=f.value;return h&&"object"==typeof h&&i.call(h,"__await")?t.resolve(h.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(h).then(function(e){f.value=e,s(f)},function(e){return n("throw",e,s,l)})}l(u.arg)}var c;o(this,"_invoke",{value:function(e,i){function o(){return new t(function(t,o){n(e,i,t,o)})}return c=c?c.then(o,o):o()}})}function D(e,t,n){var i="suspendedStart";return function(o,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw c;return F()}for(n.method=o,n.arg=c;;){var s=n.delegate;if(s){var l=R(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=p(e,t,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function R(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,R(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=p(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var c=o.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function S(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var c=this.tryEntries[o],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),u=i.call(c,"finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}var t=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1CredentialAckMessage=void 0;var c=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(c.type),r("design:type",Object)],c.prototype,"type",void 0),_e.V1CredentialAckMessage=c},1661,[14,11,9,7,8,1484,941]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,c=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(r,i,c):o(r,i))||c);return s>3&&c&&Object.defineProperty(r,i,c),c},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialPreview=void 0;var i=(function(){function t(r){_r(_d[0])(this,t),this.type=t.type.messageTypeUri,r&&(this.attributes=r.attributes)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}],[{key:"fromRecord",value:function(r){return new t({attributes:Object.entries(r).map(function(t){var r=_r(_d[3])(t,2),i=r[0],n=r[1];return new(_r(_d[4]).CredentialPreviewAttribute)({name:i,mimeType:'text/plain',value:n})})})}}]),t})();i.type=(0,_r(_d[5]).parseMessageType)('https://didcomm.org/issue-credential/1.0/credential-preview'),t([(0,_r(_d[6]).Expose)({name:'@type'}),(0,_r(_d[5]).IsValidMessageType)(i.type),(0,_r(_d[6]).Transform)(function(t){var r=t.value;return(0,_r(_d[5]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[6]).Type)(function(){return _r(_d[4]).CredentialPreviewAttribute}),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[4]).CredentialPreviewAttribute,{each:!0}),r("design:type",Array)],i.prototype,"attributes",void 0),e.V1CredentialPreview=i},1662,[7,8,625,31,1548,941,626,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,s=arguments.length,i=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(c=e[o])&&(i=(s<3?c(i):s>3?c(t,n,i):c(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1RequestCredentialMessage=_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID='libindy-cred-request-0';var r=(function(t){_r(_d[2])(s,t);var n,r,c=(n=s,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t;return _r(_d[3])(this,s),(t=c.call(this)).type=s.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.requestAttachments=e.requestAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(s,[{key:"indyCredentialRequest",get:function(){var e,t=this.requestAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getRequestAttachmentById",value:function(e){return this.requestAttachments.find(function(t){return t.id===e})}}]),s})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/request-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'requests~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[9]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"requestAttachments",void 0),_e.V1RequestCredentialMessage=r},1663,[14,11,9,7,8,948,941,661,626,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,n,o):c(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1IssueCredentialMessage=_e.INDY_CREDENTIAL_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_ATTACHMENT_ID='libindy-cred-0';var r=(function(t){_r(_d[2])(i,t);var n,r,c=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.comment=e.comment,t.credentialAttachments=e.credentialAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(i,[{key:"indyCredential",get:function(){var e,t=this.credentialAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getCredentialAttachmentById",value:function(e){return this.credentialAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/issue-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credentials~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[9]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"credentialAttachments",void 0),_e.V1IssueCredentialMessage=r},1664,[14,11,9,7,8,948,941,661,626,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var f=e.length-1;f>=0;f--)(i=e[f])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1OfferCredentialMessage=_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID=void 0,_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID='libindy-cred-offer-0';var r=(function(t){_r(_d[2])(o,t);var n,r,i=(n=o,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.offerAttachments=e.offerAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(o,[{key:"indyCredentialOffer",get:function(){var e,t=this.offerAttachments.find(function(e){return e.id===_e.INDY_CREDENTIAL_OFFER_ATTACHMENT_ID});return null!==(e=null===t||void 0===t?void 0:t.getDataAsJson())&&void 0!==e?e:null}},{key:"getOfferAttachmentById",value:function(e){return this.offerAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/offer-credential'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_preview'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).V1CredentialPreview}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[9]).V1CredentialPreview),n("design:type",_r(_d[9]).V1CredentialPreview)],r.prototype,"credentialPreview",void 0),t([(0,_r(_d[8]).Expose)({name:'offers~attach'}),(0,_r(_d[8]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[7]).IsArray)(),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"offerAttachments",void 0),_e.V1OfferCredentialMessage=r},1665,[14,11,9,7,8,948,941,661,626,1662,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,i,n){var s,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1ProposeCredentialMessage=void 0;var n=(function(t){_r(_d[2])(r,t);var i,n,s=(i=r,n=e(),function(){var e,t=_r(_d[0])(i);if(n){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function r(e){var t,i;return _r(_d[3])(this,r),(t=s.call(this)).type=r.type.messageTypeUri,e&&(t.id=null!==(i=e.id)&&void 0!==i?i:t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.schemaIssuerDid=e.schemaIssuerDid,t.schemaId=e.schemaId,t.schemaName=e.schemaName,t.schemaVersion=e.schemaVersion,t.credentialDefinitionId=e.credentialDefinitionId,t.issuerDid=e.issuerDid,t.appendedAttachments=e.attachments),t}return _r(_d[4])(r,[{key:"getAttachment",value:function(){return this.appendedAttachments?this.appendedAttachments[0]:void 0}}]),r})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/propose-credential'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),i("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsString)(),i("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'credential_proposal'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).V1CredentialPreview}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).IsInstance)(_r(_d[9]).V1CredentialPreview),i("design:type",_r(_d[9]).V1CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).indyDidRegex),i("design:type",String)],n.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_id'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).schemaIdRegex),i("design:type",String)],n.prototype,"schemaId",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_name'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),i("design:type",String)],n.prototype,"schemaName",void 0),t([(0,_r(_d[8]).Expose)({name:'schema_version'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).schemaVersionRegex,{message:'Version must be X.X or X.X.X'}),i("design:type",String)],n.prototype,"schemaVersion",void 0),t([(0,_r(_d[8]).Expose)({name:'cred_def_id'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).credDefIdRegex),i("design:type",String)],n.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[8]).Expose)({name:'issuer_did'}),(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),(0,_r(_d[7]).Matches)(_r(_d[10]).indyDidRegex),i("design:type",String)],n.prototype,"issuerDid",void 0),_e.V1ProposeCredentialMessage=n},1666,[14,11,9,7,8,948,941,661,626,1662,992]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1CredentialProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V1CredentialProblemReportMessage=o},1667,[14,11,9,7,8,947,941]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialProblemReportReason=void 0,(function(n){n.IssuanceAbandoned="issuance-abandoned"})(e.CredentialProblemReportReason||(e.CredentialProblemReportReason={}))},1668,[]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function h(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,n){return t[r]=n}}function f(t,r,n,o){var c=r&&r.prototype instanceof y?r:y,s=Object.create(c.prototype),u=new j(o||[]);return i(s,"_invoke",{value:S(t,n,u)}),s}function d(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var p={};function y(){}function v(){}function w(){}var b={};h(b,s,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(_([])));E&&E!==n&&o.call(E,s)&&(b=E);var I=w.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach(function(r){h(t,r,function(t){return this._invoke(r,t)})})}function k(t,r){function n(i,c,s,u){var l=d(t[i],t,c);if("throw"!==l.type){var h=l.arg,f=h.value;return f&&"object"==typeof f&&o.call(f,"__await")?r.resolve(f.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):r.resolve(f).then(function(t){h.value=t,s(h)},function(t){return n("throw",t,s,u)})}u(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return c=c?c.then(i,i):i()}})}function S(t,r,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return O()}for(n.method=i,n.arg=c;;){var s=n.delegate;if(s){var u=C(s,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=d(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var c=i.arg;return c?c.done?(r[t.resultName]=c.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function R(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function _(t){if(t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),R(n),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyHolderService=void 0;var i=(function(){function r(t,n,o){_r(_d[0])(this,r),this.indy=o.indy,this.indyRevocationService=t,this.logger=n}return _r(_d[1])(r,[{key:"createProof",value:function(r,n){var o,i,c,s,u,l;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return o=n.proofRequest,i=n.requestedCredentials,c=n.schemas,s=n.credentialDefinitions,(0,_r(_d[2]).assertIndyWallet)(r.wallet),h.prev=2,this.logger.debug('Creating Indy Proof'),h.next=6,t().awrap(this.indyRevocationService.createRevocationState(r,o,i));case 6:return u=h.sent,h.next=9,t().awrap(this.indy.proverCreateProof(r.wallet.handle,o,i.toJSON(),r.wallet.masterSecretId,c,s,u));case 9:return l=h.sent,this.logger.trace('Created Indy Proof',{indyProof:l}),h.abrupt("return",l);case 14:throw h.prev=14,h.t0=h.catch(2),this.logger.error("Error creating Indy Proof",{error:h.t0,proofRequest:o,requestedCredentials:i}),(0,_r(_d[3]).isIndyError)(h.t0)?new(_r(_d[4]).IndySdkError)(h.t0):h.t0;case 18:case"end":return h.stop()}},null,this,[[2,14]],Promise)}},{key:"storeCredential",value:function(r,n){var o,i,c,s,u;return t().async(function(l){for(;;)switch(l.prev=l.next){case 0:return o=n.credentialRequestMetadata,i=n.credential,c=n.credentialDefinition,s=n.credentialId,u=n.revocationRegistryDefinition,(0,_r(_d[2]).assertIndyWallet)(r.wallet),l.prev=2,l.next=5,t().awrap(this.indy.proverStoreCredential(r.wallet.handle,null!==s&&void 0!==s?s:null,o,i,c,null!==u&&void 0!==u?u:null));case 5:return l.abrupt("return",l.sent);case 8:throw l.prev=8,l.t0=l.catch(2),this.logger.error("Error storing Indy Credential '"+s+"'",{error:l.t0}),(0,_r(_d[3]).isIndyError)(l.t0)?new(_r(_d[4]).IndySdkError)(l.t0):l.t0;case 12:case"end":return l.stop()}},null,this,[[2,8]],Promise)}},{key:"getCredential",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return(0,_r(_d[2]).assertIndyWallet)(r.wallet),o.prev=1,o.next=4,t().awrap(this.indy.proverGetCredential(r.wallet.handle,n));case 4:return o.abrupt("return",o.sent);case 7:throw o.prev=7,o.t0=o.catch(1),this.logger.error("Error getting Indy Credential '"+n+"'",{error:o.t0}),(0,_r(_d[3]).isIndyError)(o.t0)?new(_r(_d[4]).IndySdkError)(o.t0):o.t0;case 11:case"end":return o.stop()}},null,this,[[1,7]],Promise)}},{key:"createCredentialRequest",value:function(r,n){var o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return o=n.holderDid,i=n.credentialOffer,c=n.credentialDefinition,(0,_r(_d[2]).assertIndyWallet)(r.wallet),s.prev=2,s.next=5,t().awrap(this.indy.proverCreateCredentialReq(r.wallet.handle,o,i,c,r.wallet.masterSecretId));case 5:return s.abrupt("return",s.sent);case 8:throw s.prev=8,s.t0=s.catch(2),this.logger.error("Error creating Indy Credential Request",{error:s.t0,credentialOffer:i}),(0,_r(_d[3]).isIndyError)(s.t0)?new(_r(_d[4]).IndySdkError)(s.t0):s.t0;case 12:case"end":return s.stop()}},null,this,[[2,8]],Promise)}},{key:"getCredentialsForProofRequest",value:function(r,n){var o,i,c,s,u,l,h,f,d;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:return o=n.proofRequest,i=n.attributeReferent,c=n.start,s=void 0===c?0:c,u=n.limit,l=void 0===u?256:u,h=n.extraQuery,(0,_r(_d[2]).assertIndyWallet)(r.wallet),p.prev=2,p.next=5,t().awrap(this.indy.proverSearchCredentialsForProofReq(r.wallet.handle,o,null!==h&&void 0!==h?h:null));case 5:if(f=p.sent,p.prev=6,!(s>0)){p.next=10;break}return p.next=10,t().awrap(this.fetchCredentialsForReferent(f,i,s));case 10:return p.next=12,t().awrap(this.fetchCredentialsForReferent(f,i,l));case 12:return d=p.sent,p.abrupt("return",d);case 14:return p.prev=14,p.next=17,t().awrap(this.indy.proverCloseCredentialsSearchForProofReq(f));case 17:return p.finish(14);case 18:p.next=25;break;case 20:if(p.prev=20,p.t0=p.catch(2),!(0,_r(_d[3]).isIndyError)(p.t0)){p.next=24;break}throw new(_r(_d[4]).IndySdkError)(p.t0);case 24:throw p.t0;case 25:case"end":return p.stop()}},null,this,[[2,20],[6,,14,18]],Promise)}},{key:"deleteCredential",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return(0,_r(_d[2]).assertIndyWallet)(r.wallet),o.prev=1,o.next=4,t().awrap(this.indy.proverDeleteCredential(r.wallet.handle,n));case 4:return o.abrupt("return",o.sent);case 7:throw o.prev=7,o.t0=o.catch(1),this.logger.error("Error deleting Indy Credential from Wallet",{error:o.t0}),(0,_r(_d[3]).isIndyError)(o.t0)?new(_r(_d[4]).IndySdkError)(o.t0):o.t0;case 11:case"end":return o.stop()}},null,this,[[1,7]],Promise)}},{key:"fetchCredentialsForReferent",value:function(r,n,o){var i,c,s;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:u.prev=0,i=[],c=o?Math.min(256,o):256;case 3:if(o&&!(i.length=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},r}var r,n=this&&this.__decorate||function(t,r,n,o){var i,c=arguments.length,s=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,n,o);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(c<3?i(s):c>3?i(r,n,s):i(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},i=this&&this.__param||function(t,r){return function(n,o){r(n,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyRevocationService=void 0,(function(t){t.Attribute="attribute",t.Predicate="predicate",t.SelfAttestedAttribute="self-attested-attribute"})(r||(r={}));var c=(function(){function n(t,r,o,i){_r(_d[0])(this,n),this.indy=o.indy,this.indyUtilitiesService=t,this.logger=i,this.ledgerService=r}return _r(_d[1])(n,[{key:"createRevocationState",value:function(n,o,i){var c,s,u,l,f,h,d,v,p,y,w,b,R,x,L,_,S,I,j,E,k,O,P,q,A,C,T,D,F,G,N,U,Y,H,M;return t().async(function(z){for(;;)switch(z.prev=z.next){case 0:for(z.prev=0,this.logger.debug("Creating Revocation State(s) for proof request",{proofRequest:o,requestedCredentials:i}),c={},s=[],u=0,l=Object.entries(i.requestedAttributes);u0)throw new(r(d[4]).AriesFrameworkError)("The credential preview attributes do not match the schema attributes (difference is: "+o+", needs: "+a+")")}},{key:"isInt32",value:function(t){return Number.isInteger(t)&&t>=-2147483648&&t<=2147483647}},{key:"isNumeric",value:function(t){return/^-?\d+$/.test(t)}}]),t})();e.IndyCredentialUtils=a},1671,[1672,7,8,42,612,1548,1673,4,248,1011,992,980]); +__d(function(_g,_r,_i,_a,_m,_e,d){!(function(t,i){'use strict';function r(t,i){if(!t)throw new Error(i||'Assertion failed')}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&('le'!==i&&'be'!==i||(r=i,i=10),this._init(t||0,i||10,r||'be'))}var e;'object'==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e='undefined'!=typeof window&&void 0!==window.Buffer?window.Buffer:_r(d[0]).Buffer}catch(t){}function o(t,i){var n=t.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,'Invalid character in '+t)}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,n,h){for(var e=0,o=0,s=Math.min(t.length,n),u=i;u=49?a-49+10:a>=17?a-17+10:a,r(a>=0&&o0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if('number'==typeof t)return this._initNumber(t,i,n);if('object'==typeof t)return this._initArray(t,i,n);'hex'===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;'-'===(t=t.toString().replace(/\s+/g,''))[0]&&(h++,this.negative=1),h=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if('le'===n)for(h=0,e=0;h>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this._strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n=i;n-=2)h=s(t,i,n)<=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this._strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},'undefined'!=typeof Symbol&&'function'==typeof Symbol.for)try{h.prototype[Symbol.for('nodejs.util.inspect.custom')]=l}catch(t){h.prototype.inspect=l}else h.prototype.inspect=l;function l(){return(this.red?''}var m=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(t,i){var n;if(t=t||10,i=0|i||1,16===t||'hex'===t){n='';for(var h=0,e=0,o=0;o>>24-h&16777215)||o!==this.length-1?m[6-u.length]+u+n:u+n,(h+=2)>=26&&(h-=26,o--)}for(0!==e&&(n=e.toString(16)+n);n.length%i!=0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],l=p[t];n='';var M=this.clone();for(M.negative=0;!M.isZero();){var v=M.modrn(l).toString(t);n=(M=M.idivn(l)).isZero()?v+n:m[a-v.length]+v+n}for(this.isZero()&&(n='0'+n);n.length%i!=0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}r(!1,'Base should be between 2 and 36')},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,'Number can only safely store up to 53 bits'),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},e&&(h.prototype.toBuffer=function(t,i){return this.toArrayLike(e,t,i)}),h.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)};var M=function(t,i){return t.allocUnsafe?t.allocUnsafe(i):new t(i)};function v(t){for(var i=new Array(t.bitLength()),r=0;r>>h&1}return i}function g(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a>>26,m=67108863&u,f=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=f;p++){var M=a-p|0;l+=(o=(h=0|t.words[M])*(e=0|i.words[p])+m)/67108864|0,m=67108863&o}r.words[a]=0|m,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r._strip()}h.prototype.toArrayLike=function(t,i,n){this._strip();var h=this.byteLength(),e=n||Math.max(1,h);r(h<=e,'byte array longer than desired length'),r(e>0,'Requested array length <= 0');var o=M(t,e);return this['_toArrayLike'+('le'===i?'LE':'BE')](o,h),o},h.prototype._toArrayLikeLE=function(t,i){for(var r=0,n=0,h=0,e=0;h>8&255),r>16&255),6===e?(r>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===e?(r>=0&&(t[r--]=o>>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},h.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 0==(8191&i)&&(r+=13,i>>>=13),0==(127&i)&&(r+=7,i>>>=7),0==(15&i)&&(r+=4,i>>>=4),0==(3&i)&&(r+=2,i>>>=2),0==(1&i)&&r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;it.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r('number'==typeof t&&t>=0);var i=0|Math.ceil(t/26),n=t%26;this._expand(i),n>0&&i--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-n),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,i){r('number'==typeof t&&t>=0);var n=t/26|0,h=t%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var h=0,e=0;e>>26;for(;0!==h&&e>>26;if(this.length=r.length,0!==h)this.words[this.length]=h,this.length++;else if(r!==this)for(;et.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(r=this,n=t):(r=t,n=this);for(var e=0,o=0;o>26,this.words[o]=67108863&i;for(;0!==e&&o>26,this.words[o]=67108863&i;if(0===e&&o>>13,p=0|o[1],M=8191&p,v=p>>>13,g=0|o[2],c=8191&g,w=g>>>13,y=0|o[3],b=8191&y,_=y>>>13,k=0|o[4],A=8191&k,S=k>>>13,x=0|o[5],B=8191&x,R=x>>>13,q=0|o[6],Z=8191&q,L=q>>>13,N=0|o[7],I=8191&N,E=N>>>13,z=0|o[8],T=8191&z,O=z>>>13,j=0|o[9],K=8191&j,P=j>>>13,F=0|s[0],U=8191&F,C=F>>>13,D=0|s[1],H=8191&D,J=D>>>13,G=0|s[2],Q=8191&G,V=G>>>13,W=0|s[3],X=8191&W,Y=W>>>13,$=0|s[4],tt=8191&$,it=$>>>13,rt=0|s[5],nt=8191&rt,ht=rt>>>13,et=0|s[6],ot=8191&et,st=et>>>13,ut=0|s[7],at=8191&ut,lt=ut>>>13,mt=0|s[8],ft=8191&mt,dt=mt>>>13,pt=0|s[9],Mt=8191&pt,vt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(a+(n=Math.imul(m,U))|0)+((8191&(h=(h=Math.imul(m,C))+Math.imul(f,U)|0))<<13)|0;a=((e=Math.imul(f,C))+(h>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,U),h=(h=Math.imul(M,C))+Math.imul(v,U)|0,e=Math.imul(v,C);var ct=(a+(n=n+Math.imul(m,H)|0)|0)+((8191&(h=(h=h+Math.imul(m,J)|0)+Math.imul(f,H)|0))<<13)|0;a=((e=e+Math.imul(f,J)|0)+(h>>>13)|0)+(ct>>>26)|0,ct&=67108863,n=Math.imul(c,U),h=(h=Math.imul(c,C))+Math.imul(w,U)|0,e=Math.imul(w,C),n=n+Math.imul(M,H)|0,h=(h=h+Math.imul(M,J)|0)+Math.imul(v,H)|0,e=e+Math.imul(v,J)|0;var wt=(a+(n=n+Math.imul(m,Q)|0)|0)+((8191&(h=(h=h+Math.imul(m,V)|0)+Math.imul(f,Q)|0))<<13)|0;a=((e=e+Math.imul(f,V)|0)+(h>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(b,U),h=(h=Math.imul(b,C))+Math.imul(_,U)|0,e=Math.imul(_,C),n=n+Math.imul(c,H)|0,h=(h=h+Math.imul(c,J)|0)+Math.imul(w,H)|0,e=e+Math.imul(w,J)|0,n=n+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,V)|0)+Math.imul(v,Q)|0,e=e+Math.imul(v,V)|0;var yt=(a+(n=n+Math.imul(m,X)|0)|0)+((8191&(h=(h=h+Math.imul(m,Y)|0)+Math.imul(f,X)|0))<<13)|0;a=((e=e+Math.imul(f,Y)|0)+(h>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,U),h=(h=Math.imul(A,C))+Math.imul(S,U)|0,e=Math.imul(S,C),n=n+Math.imul(b,H)|0,h=(h=h+Math.imul(b,J)|0)+Math.imul(_,H)|0,e=e+Math.imul(_,J)|0,n=n+Math.imul(c,Q)|0,h=(h=h+Math.imul(c,V)|0)+Math.imul(w,Q)|0,e=e+Math.imul(w,V)|0,n=n+Math.imul(M,X)|0,h=(h=h+Math.imul(M,Y)|0)+Math.imul(v,X)|0,e=e+Math.imul(v,Y)|0;var bt=(a+(n=n+Math.imul(m,tt)|0)|0)+((8191&(h=(h=h+Math.imul(m,it)|0)+Math.imul(f,tt)|0))<<13)|0;a=((e=e+Math.imul(f,it)|0)+(h>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(B,U),h=(h=Math.imul(B,C))+Math.imul(R,U)|0,e=Math.imul(R,C),n=n+Math.imul(A,H)|0,h=(h=h+Math.imul(A,J)|0)+Math.imul(S,H)|0,e=e+Math.imul(S,J)|0,n=n+Math.imul(b,Q)|0,h=(h=h+Math.imul(b,V)|0)+Math.imul(_,Q)|0,e=e+Math.imul(_,V)|0,n=n+Math.imul(c,X)|0,h=(h=h+Math.imul(c,Y)|0)+Math.imul(w,X)|0,e=e+Math.imul(w,Y)|0,n=n+Math.imul(M,tt)|0,h=(h=h+Math.imul(M,it)|0)+Math.imul(v,tt)|0,e=e+Math.imul(v,it)|0;var _t=(a+(n=n+Math.imul(m,nt)|0)|0)+((8191&(h=(h=h+Math.imul(m,ht)|0)+Math.imul(f,nt)|0))<<13)|0;a=((e=e+Math.imul(f,ht)|0)+(h>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,U),h=(h=Math.imul(Z,C))+Math.imul(L,U)|0,e=Math.imul(L,C),n=n+Math.imul(B,H)|0,h=(h=h+Math.imul(B,J)|0)+Math.imul(R,H)|0,e=e+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,h=(h=h+Math.imul(A,V)|0)+Math.imul(S,Q)|0,e=e+Math.imul(S,V)|0,n=n+Math.imul(b,X)|0,h=(h=h+Math.imul(b,Y)|0)+Math.imul(_,X)|0,e=e+Math.imul(_,Y)|0,n=n+Math.imul(c,tt)|0,h=(h=h+Math.imul(c,it)|0)+Math.imul(w,tt)|0,e=e+Math.imul(w,it)|0,n=n+Math.imul(M,nt)|0,h=(h=h+Math.imul(M,ht)|0)+Math.imul(v,nt)|0,e=e+Math.imul(v,ht)|0;var kt=(a+(n=n+Math.imul(m,ot)|0)|0)+((8191&(h=(h=h+Math.imul(m,st)|0)+Math.imul(f,ot)|0))<<13)|0;a=((e=e+Math.imul(f,st)|0)+(h>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(I,U),h=(h=Math.imul(I,C))+Math.imul(E,U)|0,e=Math.imul(E,C),n=n+Math.imul(Z,H)|0,h=(h=h+Math.imul(Z,J)|0)+Math.imul(L,H)|0,e=e+Math.imul(L,J)|0,n=n+Math.imul(B,Q)|0,h=(h=h+Math.imul(B,V)|0)+Math.imul(R,Q)|0,e=e+Math.imul(R,V)|0,n=n+Math.imul(A,X)|0,h=(h=h+Math.imul(A,Y)|0)+Math.imul(S,X)|0,e=e+Math.imul(S,Y)|0,n=n+Math.imul(b,tt)|0,h=(h=h+Math.imul(b,it)|0)+Math.imul(_,tt)|0,e=e+Math.imul(_,it)|0,n=n+Math.imul(c,nt)|0,h=(h=h+Math.imul(c,ht)|0)+Math.imul(w,nt)|0,e=e+Math.imul(w,ht)|0,n=n+Math.imul(M,ot)|0,h=(h=h+Math.imul(M,st)|0)+Math.imul(v,ot)|0,e=e+Math.imul(v,st)|0;var At=(a+(n=n+Math.imul(m,at)|0)|0)+((8191&(h=(h=h+Math.imul(m,lt)|0)+Math.imul(f,at)|0))<<13)|0;a=((e=e+Math.imul(f,lt)|0)+(h>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(T,U),h=(h=Math.imul(T,C))+Math.imul(O,U)|0,e=Math.imul(O,C),n=n+Math.imul(I,H)|0,h=(h=h+Math.imul(I,J)|0)+Math.imul(E,H)|0,e=e+Math.imul(E,J)|0,n=n+Math.imul(Z,Q)|0,h=(h=h+Math.imul(Z,V)|0)+Math.imul(L,Q)|0,e=e+Math.imul(L,V)|0,n=n+Math.imul(B,X)|0,h=(h=h+Math.imul(B,Y)|0)+Math.imul(R,X)|0,e=e+Math.imul(R,Y)|0,n=n+Math.imul(A,tt)|0,h=(h=h+Math.imul(A,it)|0)+Math.imul(S,tt)|0,e=e+Math.imul(S,it)|0,n=n+Math.imul(b,nt)|0,h=(h=h+Math.imul(b,ht)|0)+Math.imul(_,nt)|0,e=e+Math.imul(_,ht)|0,n=n+Math.imul(c,ot)|0,h=(h=h+Math.imul(c,st)|0)+Math.imul(w,ot)|0,e=e+Math.imul(w,st)|0,n=n+Math.imul(M,at)|0,h=(h=h+Math.imul(M,lt)|0)+Math.imul(v,at)|0,e=e+Math.imul(v,lt)|0;var St=(a+(n=n+Math.imul(m,ft)|0)|0)+((8191&(h=(h=h+Math.imul(m,dt)|0)+Math.imul(f,ft)|0))<<13)|0;a=((e=e+Math.imul(f,dt)|0)+(h>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(K,U),h=(h=Math.imul(K,C))+Math.imul(P,U)|0,e=Math.imul(P,C),n=n+Math.imul(T,H)|0,h=(h=h+Math.imul(T,J)|0)+Math.imul(O,H)|0,e=e+Math.imul(O,J)|0,n=n+Math.imul(I,Q)|0,h=(h=h+Math.imul(I,V)|0)+Math.imul(E,Q)|0,e=e+Math.imul(E,V)|0,n=n+Math.imul(Z,X)|0,h=(h=h+Math.imul(Z,Y)|0)+Math.imul(L,X)|0,e=e+Math.imul(L,Y)|0,n=n+Math.imul(B,tt)|0,h=(h=h+Math.imul(B,it)|0)+Math.imul(R,tt)|0,e=e+Math.imul(R,it)|0,n=n+Math.imul(A,nt)|0,h=(h=h+Math.imul(A,ht)|0)+Math.imul(S,nt)|0,e=e+Math.imul(S,ht)|0,n=n+Math.imul(b,ot)|0,h=(h=h+Math.imul(b,st)|0)+Math.imul(_,ot)|0,e=e+Math.imul(_,st)|0,n=n+Math.imul(c,at)|0,h=(h=h+Math.imul(c,lt)|0)+Math.imul(w,at)|0,e=e+Math.imul(w,lt)|0,n=n+Math.imul(M,ft)|0,h=(h=h+Math.imul(M,dt)|0)+Math.imul(v,ft)|0,e=e+Math.imul(v,dt)|0;var xt=(a+(n=n+Math.imul(m,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(m,vt)|0)+Math.imul(f,Mt)|0))<<13)|0;a=((e=e+Math.imul(f,vt)|0)+(h>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(K,H),h=(h=Math.imul(K,J))+Math.imul(P,H)|0,e=Math.imul(P,J),n=n+Math.imul(T,Q)|0,h=(h=h+Math.imul(T,V)|0)+Math.imul(O,Q)|0,e=e+Math.imul(O,V)|0,n=n+Math.imul(I,X)|0,h=(h=h+Math.imul(I,Y)|0)+Math.imul(E,X)|0,e=e+Math.imul(E,Y)|0,n=n+Math.imul(Z,tt)|0,h=(h=h+Math.imul(Z,it)|0)+Math.imul(L,tt)|0,e=e+Math.imul(L,it)|0,n=n+Math.imul(B,nt)|0,h=(h=h+Math.imul(B,ht)|0)+Math.imul(R,nt)|0,e=e+Math.imul(R,ht)|0,n=n+Math.imul(A,ot)|0,h=(h=h+Math.imul(A,st)|0)+Math.imul(S,ot)|0,e=e+Math.imul(S,st)|0,n=n+Math.imul(b,at)|0,h=(h=h+Math.imul(b,lt)|0)+Math.imul(_,at)|0,e=e+Math.imul(_,lt)|0,n=n+Math.imul(c,ft)|0,h=(h=h+Math.imul(c,dt)|0)+Math.imul(w,ft)|0,e=e+Math.imul(w,dt)|0;var Bt=(a+(n=n+Math.imul(M,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(M,vt)|0)+Math.imul(v,Mt)|0))<<13)|0;a=((e=e+Math.imul(v,vt)|0)+(h>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(K,Q),h=(h=Math.imul(K,V))+Math.imul(P,Q)|0,e=Math.imul(P,V),n=n+Math.imul(T,X)|0,h=(h=h+Math.imul(T,Y)|0)+Math.imul(O,X)|0,e=e+Math.imul(O,Y)|0,n=n+Math.imul(I,tt)|0,h=(h=h+Math.imul(I,it)|0)+Math.imul(E,tt)|0,e=e+Math.imul(E,it)|0,n=n+Math.imul(Z,nt)|0,h=(h=h+Math.imul(Z,ht)|0)+Math.imul(L,nt)|0,e=e+Math.imul(L,ht)|0,n=n+Math.imul(B,ot)|0,h=(h=h+Math.imul(B,st)|0)+Math.imul(R,ot)|0,e=e+Math.imul(R,st)|0,n=n+Math.imul(A,at)|0,h=(h=h+Math.imul(A,lt)|0)+Math.imul(S,at)|0,e=e+Math.imul(S,lt)|0,n=n+Math.imul(b,ft)|0,h=(h=h+Math.imul(b,dt)|0)+Math.imul(_,ft)|0,e=e+Math.imul(_,dt)|0;var Rt=(a+(n=n+Math.imul(c,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(c,vt)|0)+Math.imul(w,Mt)|0))<<13)|0;a=((e=e+Math.imul(w,vt)|0)+(h>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(K,X),h=(h=Math.imul(K,Y))+Math.imul(P,X)|0,e=Math.imul(P,Y),n=n+Math.imul(T,tt)|0,h=(h=h+Math.imul(T,it)|0)+Math.imul(O,tt)|0,e=e+Math.imul(O,it)|0,n=n+Math.imul(I,nt)|0,h=(h=h+Math.imul(I,ht)|0)+Math.imul(E,nt)|0,e=e+Math.imul(E,ht)|0,n=n+Math.imul(Z,ot)|0,h=(h=h+Math.imul(Z,st)|0)+Math.imul(L,ot)|0,e=e+Math.imul(L,st)|0,n=n+Math.imul(B,at)|0,h=(h=h+Math.imul(B,lt)|0)+Math.imul(R,at)|0,e=e+Math.imul(R,lt)|0,n=n+Math.imul(A,ft)|0,h=(h=h+Math.imul(A,dt)|0)+Math.imul(S,ft)|0,e=e+Math.imul(S,dt)|0;var qt=(a+(n=n+Math.imul(b,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(b,vt)|0)+Math.imul(_,Mt)|0))<<13)|0;a=((e=e+Math.imul(_,vt)|0)+(h>>>13)|0)+(qt>>>26)|0,qt&=67108863,n=Math.imul(K,tt),h=(h=Math.imul(K,it))+Math.imul(P,tt)|0,e=Math.imul(P,it),n=n+Math.imul(T,nt)|0,h=(h=h+Math.imul(T,ht)|0)+Math.imul(O,nt)|0,e=e+Math.imul(O,ht)|0,n=n+Math.imul(I,ot)|0,h=(h=h+Math.imul(I,st)|0)+Math.imul(E,ot)|0,e=e+Math.imul(E,st)|0,n=n+Math.imul(Z,at)|0,h=(h=h+Math.imul(Z,lt)|0)+Math.imul(L,at)|0,e=e+Math.imul(L,lt)|0,n=n+Math.imul(B,ft)|0,h=(h=h+Math.imul(B,dt)|0)+Math.imul(R,ft)|0,e=e+Math.imul(R,dt)|0;var Zt=(a+(n=n+Math.imul(A,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(A,vt)|0)+Math.imul(S,Mt)|0))<<13)|0;a=((e=e+Math.imul(S,vt)|0)+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(K,nt),h=(h=Math.imul(K,ht))+Math.imul(P,nt)|0,e=Math.imul(P,ht),n=n+Math.imul(T,ot)|0,h=(h=h+Math.imul(T,st)|0)+Math.imul(O,ot)|0,e=e+Math.imul(O,st)|0,n=n+Math.imul(I,at)|0,h=(h=h+Math.imul(I,lt)|0)+Math.imul(E,at)|0,e=e+Math.imul(E,lt)|0,n=n+Math.imul(Z,ft)|0,h=(h=h+Math.imul(Z,dt)|0)+Math.imul(L,ft)|0,e=e+Math.imul(L,dt)|0;var Lt=(a+(n=n+Math.imul(B,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(B,vt)|0)+Math.imul(R,Mt)|0))<<13)|0;a=((e=e+Math.imul(R,vt)|0)+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(K,ot),h=(h=Math.imul(K,st))+Math.imul(P,ot)|0,e=Math.imul(P,st),n=n+Math.imul(T,at)|0,h=(h=h+Math.imul(T,lt)|0)+Math.imul(O,at)|0,e=e+Math.imul(O,lt)|0,n=n+Math.imul(I,ft)|0,h=(h=h+Math.imul(I,dt)|0)+Math.imul(E,ft)|0,e=e+Math.imul(E,dt)|0;var Nt=(a+(n=n+Math.imul(Z,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(Z,vt)|0)+Math.imul(L,Mt)|0))<<13)|0;a=((e=e+Math.imul(L,vt)|0)+(h>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(K,at),h=(h=Math.imul(K,lt))+Math.imul(P,at)|0,e=Math.imul(P,lt),n=n+Math.imul(T,ft)|0,h=(h=h+Math.imul(T,dt)|0)+Math.imul(O,ft)|0,e=e+Math.imul(O,dt)|0;var It=(a+(n=n+Math.imul(I,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(I,vt)|0)+Math.imul(E,Mt)|0))<<13)|0;a=((e=e+Math.imul(E,vt)|0)+(h>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(K,ft),h=(h=Math.imul(K,dt))+Math.imul(P,ft)|0,e=Math.imul(P,dt);var Et=(a+(n=n+Math.imul(T,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(T,vt)|0)+Math.imul(O,Mt)|0))<<13)|0;a=((e=e+Math.imul(O,vt)|0)+(h>>>13)|0)+(Et>>>26)|0,Et&=67108863;var zt=(a+(n=Math.imul(K,Mt))|0)+((8191&(h=(h=Math.imul(K,vt))+Math.imul(P,Mt)|0))<<13)|0;return a=((e=Math.imul(P,vt))+(h>>>13)|0)+(zt>>>26)|0,zt&=67108863,u[0]=gt,u[1]=ct,u[2]=wt,u[3]=yt,u[4]=bt,u[5]=_t,u[6]=kt,u[7]=At,u[8]=St,u[9]=xt,u[10]=Bt,u[11]=Rt,u[12]=qt,u[13]=Zt,u[14]=Lt,u[15]=Nt,u[16]=It,u[17]=Et,u[18]=zt,0!==a&&(u[19]=a,r.length++),r};function w(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var n=0,h=0,e=0;e>>26)|0)>>>26,o&=67108863}r.words[e]=s,n=o,o=h}return 0!==n?r.words[e]=n:r.length--,r._strip()}function y(t,i,r){return w(t,i,r)}function b(t,i){this.x=t,this.y=i}Math.imul||(c=g),h.prototype.mulTo=function(t,i){var r=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,i):r<63?g(this,t,i):r<1024?w(this,t,i):y(this,t,i)},b.prototype.makeRBT=function(t){for(var i=new Array(t),r=h.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,i,r,n,h,e){for(var o=0;o>>=1)h++;return 1<>>=13,n[2*o+1]=8191&e,e>>>=13;for(o=2*i;o>=26,n+=e/67108864|0,n+=o>>>26,this.words[h]=67108863&o}return 0!==n&&(this.words[h]=n,this.length++),i?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var i=v(t);if(0===i.length)return new h(1);for(var r=this,n=0;n=0);var i,n=t%26,h=(t-n)/26,e=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(i=0;i>>26-n}o&&(this.words[i]=o,this.length++)}if(0!==h){for(i=this.length-1;i>=0;i--)this.words[i+h]=this.words[i];for(i=0;i=0),h=i?(i-i%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<o)for(this.length-=o,a=0;a=0&&(0!==l||a>=h);a--){var m=0|this.words[a];this.words[a]=l<<26-e|m>>>e,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,i,n){return r(0===this.negative),this.iushrn(t,i,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r('number'==typeof t&&t>=0);var i=t%26,n=(t-i)/26,h=1<=0);var i=t%26,n=(t-i)/26;if(r(0===this.negative,'imaskn works only with positive numbers'),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var h=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r('number'==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[h+n]=67108863&e}for(;h>26,this.words[h+n]=67108863&e;if(0===s)return this._strip();for(r(-1===s),s=0,h=0;h>26,this.words[h]=67108863&e;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,i){var r=(this.length,t.length),n=this.clone(),e=t,o=0|e.words[e.length-1];0!==(r=26-this._countBits(o))&&(e=e.ushln(r),n.iushln(r),o=0|e.words[e.length-1]);var s,u=n.length-e.length;if('mod'!==i){(s=new h(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a=0;m--){var f=67108864*(0|n.words[e.length+m])+(0|n.words[e.length+m-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(e,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(e,1,m),n.isZero()||(n.negative^=1);s&&(s.words[m]=f)}return s&&s._strip(),n._strip(),'div'!==i&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},h.prototype.divmod=function(t,i,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,i),'mod'!==i&&(e=s.div.neg()),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:e,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),i),'mod'!==i&&(e=s.div.neg()),{div:e,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),i),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?'div'===i?{div:this.divn(t.words[0]),mod:null}:'mod'===i?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,i);var e,o,s},h.prototype.div=function(t){return this.divmod(t,'div',!1).div},h.prototype.mod=function(t){return this.divmod(t,'mod',!1).mod},h.prototype.umod=function(t){return this.divmod(t,'mod',!0).mod},h.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,n=t.ushrn(1),h=t.andln(1),e=r.cmp(n);return e<0||1===h&&0===e?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},h.prototype.modrn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=67108864%t,h=0,e=this.length-1;e>=0;e--)h=(n*h+(0|this.words[e]))%t;return i?-h:h},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=0,h=this.length-1;h>=0;h--){var e=(0|this.words[h])+67108864*n;this.words[h]=e/t|0,n=e%t}return this._strip(),i?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e=new h(1),o=new h(0),s=new h(0),u=new h(1),a=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++a;for(var l=n.clone(),m=i.clone();!i.isZero();){for(var f=0,p=1;0==(i.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(l),o.isub(m)),e.iushrn(1),o.iushrn(1);for(var M=0,v=1;0==(n.words[0]&v)&&M<26;++M,v<<=1);if(M>0)for(n.iushrn(M);M-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);i.cmp(n)>=0?(i.isub(n),e.isub(s),o.isub(u)):(n.isub(i),s.isub(e),u.isub(o))}return{a:s,b:u,gcd:n.iushln(a)}},h.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e,o=new h(1),s=new h(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;0==(i.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var m=0,f=1;0==(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return(e=0===i.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var n=0;i.isEven()&&r.isEven();n++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var h=i.cmp(r);if(h<0){var e=i;i=r,r=e}else if(0===h||0===r.cmpn(1))break;i.isub(r)}return r.iushln(n)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r('number'==typeof t);var i=t%26,n=(t-i)/26,h=1<>>26,s&=67108863,this.words[o]=s}return 0!==e&&(this.words[o]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var i,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)i=1;else{n&&(t=-t),r(t<=67108863,'Number is too big');var h=0|this.words[0];i=h===t?0:ht.length)return 1;if(this.length=0;r--){var n=0|this.words[r],h=0|t.words[r];if(n!==h){nh&&(i=1);break}}return i},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return r(!this.red,'Already a number in reduction context'),r(0===this.negative,'red works only with positives'),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,'fromRed works only with numbers in reduction context'),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,'Already a number in reduction context'),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,'redAdd works only with red numbers'),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,'redIAdd works only with red numbers'),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,'redSub works only with red numbers'),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,'redISub works only with red numbers'),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,'redShl works only with red numbers'),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,'redSqr works only with red numbers'),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,'redISqr works only with red numbers'),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,'redSqrt works only with red numbers'),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,'redInvm works only with red numbers'),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,'redNeg works only with red numbers'),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,'redPow(normalNum)'),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,i){this.name=t,this.p=new h(i,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){k.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}function S(){k.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}function x(){k.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}function B(){k.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}function R(t){if('string'==typeof t){var i=h._prime(t);this.m=i.p,this.prime=i}else r(t.gtn(1),'modulus must be greater than 1'),this.m=t,this.prime=null}function q(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var n=i0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,i){t.iushrn(this.n,0,i)},k.prototype.imulK=function(t){return t.imul(this.k)},n(A,k),A.prototype.split=function(t,i){for(var r=Math.min(t.length,9),n=0;n>>22,h=e}h>>>=22,t.words[n-10]=h,0===h&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r>>=26,t.words[r]=h,i=n}return 0!==i&&(t.words[t.length++]=i),t},h._prime=function(t){if(_[t])return _[t];var i;if('k256'===t)i=new A;else if('p224'===t)i=new S;else if('p192'===t)i=new x;else{if('p25519'!==t)throw new Error('Unknown prime '+t);i=new B}return _[t]=i,i},R.prototype._verify1=function(t){r(0===t.negative,'red works only with positives'),r(t.red,'red works only with red numbers')},R.prototype._verify2=function(t,i){r(0==(t.negative|i.negative),'red works only with positives'),r(t.red&&t.red===i.red,'red works only with red numbers')},R.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},R.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},R.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},R.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},R.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},R.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},R.prototype.isqr=function(t){return this.imul(t,t.clone())},R.prototype.sqr=function(t){return this.mul(t,t)},R.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(r(i%2==1),3===i){var n=this.m.add(new h(1)).iushrn(2);return this.pow(t,n)}for(var e=this.m.subn(1),o=0;!e.isZero()&&0===e.andln(1);)o++,e.iushrn(1);r(!e.isZero());var s=new h(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,e),f=this.pow(t,e.addn(1).iushrn(1)),p=this.pow(t,e),M=o;0!==p.cmp(s);){for(var v=p,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;n--){for(var a=i.words[n],l=u-1;l>=0;l--){var m=a>>l&1;e!==r[0]&&(e=this.sqr(e)),0!==m||0!==o?(o<<=1,o|=m,(4===++s||0===n&&0===l)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}u=26}return e},R.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},R.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},h.mont=function(t){return new q(t)},n(q,R),q.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},q.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},q.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=r.isub(n).iushrn(this.shift),e=h;return h.cmp(this.m)>=0?e=h.isub(this.m):h.cmpn(0)<0&&(e=h.iadd(this.m)),e._forceRed(this)},q.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new h(0)._forceRed(this);var r=t.mul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(n).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},q.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(void 0===_m||_m,this)},1672,[616]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLinkedAttachment=e.encodeAttachment=void 0,e.encodeAttachment=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'sha2-256',o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc';if(t.data.sha256)return"hl:"+t.data.sha256;if(t.data.base64)return r(d[0]).HashlinkEncoder.encode(r(d[1]).TypedArrayEncoder.fromBase64(t.data.base64),n,o);throw t.data.json?new(r(d[2]).AriesFrameworkError)("Attachment: ("+t.id+") has json encoded data. This is currently not supported"):new(r(d[2]).AriesFrameworkError)("Attachment: ("+t.id+") has no data to create a link with")},e.isLinkedAttachment=function(t){return r(d[0]).HashlinkEncoder.isValid("hl:"+t.id)}},1673,[1674,993,612]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HashlinkEncoder=void 0;var n=t(r(d[0])),o={urls:15,contentType:14},c=(function(){function t(){r(d[1])(this,t)}return r(d[2])(t,null,[{key:"encode",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc',c=arguments.length>3?arguments[3]:void 0,l=this.encodeMultiHash(t,n,o),u=c&&Object.keys(c).length>0?this.encodeMetadata(c,o):null;return u?"hl:"+l+":"+u:"hl:"+l}},{key:"decode",value:function(t){if(this.isValid(t)){var n=t.split(':'),o=r(d[3])(n,3),c=o[1],l=o[2];return l?{checksum:c,metadata:this.decodeMetadata(l)}:{checksum:c}}throw new Error("Invalid hashlink: "+t)}},{key:"isValid",value:function(t){var n=t.split(':');if(!r(d[4]).MultiBaseEncoder.isValid(n[1]))return!1;var o=r(d[4]).MultiBaseEncoder.decode(n[1]).data;return!!r(d[5]).MultiHashEncoder.isValid(o)}},{key:"encodeMultiHash",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'base58btc',c=r(d[5]).MultiHashEncoder.encode(t,n);return r(d[4]).MultiBaseEncoder.encode(c,o)}},{key:"encodeMetadata",value:function(t,c){for(var l=new Map,u=0,s=Object.keys(t);u>2,i=(3&t[0])<<8|t[1];return u?31===u?n*(i?NaN:Infinity):n*Math.pow(2,u-25)*(1024+i):5.960464477539063e-8*n*i},e.arrayBufferToBignumber=function(t){for(var n,u=t.byteLength,i='',f=0;f2097151?new(r(d[0]).BigNumber)(f).times(r(d[1]).SHIFT32).plus(a):f*r(d[1]).SHIFT32+a},e.writeHalf=function(t,n){var u=r(d[2]).Buffer.allocUnsafe(4);u.writeFloatBE(n,0);var i=u.readUInt32BE(0);if(0!=(8191&i))return!1;var f=i>>16&32768,a=i>>23&255,o=8388607&i;if(a>=113&&a<=142)f+=(a-112<<10)+(o>>13);else{if(!(a>=103&&a<113))return!1;if(o&(1<<126-a)-1)return!1;f+=o+8388608>>126-a}return t.writeUInt16BE(f,0),!0},e.keySorter=function(t,n){var u=t[0].byteLength,i=n[0].byteLength;return u>i?1:i>u?-1:t[0].compare(n[0])},e.isNegativeZero=function(t){return 0===t&&1/t<0},e.nextPowerOf2=function(t){var n=0;if(t&&!(t&t-1))return t;for(;0!==t;)t>>=1,n+=1;return 1<0||e===r?r:r-1}function w(e){for(var r,n,t=1,i=e.length,o=e[0]+'';tl^n?1:-1;for(u=(f=i.length)<(l=o.length)?f:l,s=0;so[s]^n?1:-1;return f==l?0:f>l^n?1:-1}function d(e,r,n,t){if(en||e!==i(e))throw Error(o+(t||'Argument')+('number'==typeof e?en?' out of range: ':' not an integer: ':' not a primitive number: ')+String(e))}function N(e){var r=e.c.length-1;return p(e.e/f)==r&&e.c[r]%2!=0}function v(e,r){return(e.length>1?e.charAt(0)+'.'+e.slice(1):e)+(r<0?'e':'e+')+r}function b(e,r,n){var t,i;if(r<0){for(i=n+'.';++r;i+=n);e=i+e}else if(++r>(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rM?m.c=m.e=null:e.e=10;a/=10,c++);return void(c>M?m.c=m.e=null:(m.e=c,m.c=[e]))}w=String(e)}else{if(!n.test(w=String(e)))return y(m,w,h);m.s=45==w.charCodeAt(0)?(w=w.slice(1),-1):1}(c=w.indexOf('.'))>-1&&(w=w.replace('.','')),(a=w.search(/e/i))>0?(c<0&&(c=a),c+=+w.slice(a+1),w=w.substring(0,a)):c<0&&(c=w.length)}else{if(d(r,2,j.length,'Base'),10==r&&$)return X(m=new z(e),L+m.e+1,U);if(w=String(e),h='number'==typeof e){if(0*e!=0)return y(m,w,h,r);if(m.s=1/e<0?(w=w.slice(1),-1):1,z.DEBUG&&w.replace(/^0\.0*|\./,'').length>15)throw Error(s+e)}else m.s=45===w.charCodeAt(0)?(w=w.slice(1),-1):1;for(t=j.slice(0,r),c=a=0,p=w.length;ac){c=p;continue}}else if(!u&&(w==w.toUpperCase()&&(w=w.toLowerCase())||w==w.toLowerCase()&&(w=w.toUpperCase()))){u=!0,a=-1,c=0;continue}return y(m,String(e),h,r)}h=!1,(c=(w=O(w,r,10,m.s)).indexOf('.'))>-1?w=w.replace('.',''):c=w.length}for(a=0;48===w.charCodeAt(a);a++);for(p=w.length;48===w.charCodeAt(--p););if(w=w.slice(a,++p)){if(p-=a,h&&z.DEBUG&&p>15&&(e>l||e!==i(e)))throw Error(s+m.s*e);if((c=c-a-1)>M)m.c=m.e=null;else if(c=T)?v(f,s):b(f,s,'0');else if(o=(e=X(new z(e),r,n)).e,u=(f=w(e.c)).length,1==t||2==t&&(r<=o||o<=I)){for(;uu){if(--r>0)for(f+='.';r--;f+='0');}else if((r+=o-u)>0)for(o+1==u&&(f+='.');r--;f+='0');return e.s<0&&i?'-'+f:f}function V(e,r){for(var n,t=1,i=new z(e[0]);t=10;i/=10,t++);return(n=t+n*f-1)>M?e.c=e.e=null:n=10;h/=10,s++);if((l=r-s)<0)l+=f,a=r,m=(p=d[w=0])/N[s-a-1]%10|0;else if((w=t((l+1)/f))>=d.length){if(!o)break e;for(;d.length<=w;d.push(0));p=m=0,s=1,a=(l%=f)-f+1}else{for(p=h=d[w],s=1;h>=10;h/=10,s++);m=(a=(l%=f)-f+s)<0?0:p/N[s-a-1]%10|0}if(o=o||r<0||null!=d[w+1]||(a<0?p:p%N[s-a-1]),o=n<4?(m||o)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||o||6==n&&(l>0?a>0?p/N[s-a]:0:d[w-1])%10&1||n==(e.s<0?8:7)),r<1||!d[0])return d.length=0,o?(r-=e.e+1,d[0]=N[(f-r%f)%f],e.e=-r||0):d[0]=e.e=0,e;if(0==l?(d.length=w,h=1,w--):(d.length=w+1,h=N[f-l],d[w]=a>0?i(p/N[s-a]%N[a])*h:0),o)for(;;){if(0==w){for(l=1,a=d[0];a>=10;a/=10,l++);for(a=d[0]+=h,h=1;a>=10;a/=10,h++);l!=h&&(e.e++,d[0]==u&&(d[0]=1));break}if(d[w]+=h,d[w]!=u)break;d[w--]=0,h=1}for(l=d.length;0===d[--l];d.pop());}e.e>M?e.c=e.e=null:e.e=T?v(r,n):b(r,n,'0'),e.s<0?'-'+r:r)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var r,n;if(null!=e){if('object'!=typeof e)throw Error("[BigNumber Error] Object expected: "+e);if(e.hasOwnProperty(r='DECIMAL_PLACES')&&(d(n=e[r],0,h,r),L=n),e.hasOwnProperty(r='ROUNDING_MODE')&&(d(n=e[r],0,8,r),U=n),e.hasOwnProperty(r='EXPONENTIAL_AT')&&((n=e[r])&&n.pop?(d(n[0],-1e9,0,r),d(n[1],0,h,r),I=n[0],T=n[1]):(d(n,-1e9,h,r),I=-(T=n<0?-n:n))),e.hasOwnProperty(r='RANGE'))if((n=e[r])&&n.pop)d(n[0],-1e9,-1,r),d(n[1],1,h,r),C=n[0],M=n[1];else{if(d(n,-1e9,h,r),!n)throw Error(o+r+' cannot be zero: '+n);C=-(M=n<0?-n:n)}if(e.hasOwnProperty(r='CRYPTO')){if((n=e[r])!==!!n)throw Error(o+r+' not true or false: '+n);if(n){if('undefined'==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw G=!n,Error("[BigNumber Error] crypto unavailable");G=n}else G=n}if(e.hasOwnProperty(r='MODULO_MODE')&&(d(n=e[r],0,9,r),k=n),e.hasOwnProperty(r='POW_PRECISION')&&(d(n=e[r],0,h,r),F=n),e.hasOwnProperty(r='FORMAT')){if('object'!=typeof(n=e[r]))throw Error(o+r+' not an object: '+n);q=n}if(e.hasOwnProperty(r='ALPHABET')){if('string'!=typeof(n=e[r])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(o+r+' invalid: '+n);$='0123456789'==n.slice(0,10),j=n}}return{DECIMAL_PLACES:L,ROUNDING_MODE:U,EXPONENTIAL_AT:[I,T],RANGE:[C,M],CRYPTO:G,MODULO_MODE:k,POW_PRECISION:F,FORMAT:q,ALPHABET:j}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var r,n,t=e.c,o=e.e,s=e.s;e:if('[object Array]'=={}.toString.call(t)){if((1===s||-1===s)&&o>=-1e9&&o<=h&&o===i(o)){if(0===t[0]){if(0===o&&1===t.length)return!0;break e}if((r=(o+1)%f)<1&&(r+=f),String(t[0]).length==r){for(r=0;r=u||n!==i(n))break e;if(0!==n)return!0}}}else if(null===t&&null===o&&(null===s||1===s||-1===s))return!0;throw Error("[BigNumber Error] Invalid BigNumber: "+e)},z.maximum=z.max=function(){return V(arguments,P.lt)},z.minimum=z.min=function(){return V(arguments,P.gt)},z.random=(A=9007199254740992*Math.random()&2097151?function(){return i(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var r,n,o,s,u,l=0,a=[],p=new z(x);if(null==e?e=L:d(e,0,h),s=t(e/f),G)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(s*=2));l>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),r[l]=n[0],r[l+1]=n[1]):(a.push(u%1e14),l+=2);l=s/2}else{if(!crypto.randomBytes)throw G=!1,Error("[BigNumber Error] crypto unavailable");for(r=crypto.randomBytes(s*=7);l=9e15?crypto.randomBytes(7).copy(r,l):(a.push(u%1e14),l+=7);l=s/7}if(!G)for(;l=10;u/=10,l++);ln-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,n,t,i,o){var s,u,f,l,c,a,h,p,m=r.indexOf('.'),d=L,N=U;for(m>=0&&(l=F,F=0,r=r.replace('.',''),a=(p=new z(n)).pow(r.length-m),F=l,p.c=e(b(w(a.c),a.e,'0'),10,t,"0123456789"),p.e=p.c.length),f=l=(h=e(r,n,t,o?(s=j,"0123456789"):(s="0123456789",j))).length;0==h[--l];h.pop());if(!h[0])return s.charAt(0);if(m<0?--f:(a.c=h,a.e=f,a.s=i,h=(a=E(a,p,d,N,t)).c,c=a.r,f=a.e),m=h[u=f+d+1],l=t/2,c=c||u<0||null!=h[u+1],c=N<4?(null!=m||c)&&(0==N||N==(a.s<0?3:2)):m>l||m==l&&(4==N||c||6==N&&1&h[u-1]||N==(a.s<0?8:7)),u<1||!h[0])r=c?b(s.charAt(1),-d,s.charAt(0)):s.charAt(0);else{if(h.length=u,c)for(--t;++h[--u]>t;)h[u]=0,u||(++f,h=[1].concat(h));for(l=h.length;!h[--l];);for(m=0,r='';m<=l;r+=s.charAt(h[m++]));r=b(r,f,s.charAt(0))}return r}})(),E=(function(){function e(e,r,n){var t,i,o,s,u=0,f=e.length,l=r%a,c=r/a|0;for(e=e.slice();f--;)u=((i=l*(o=e[f]%a)+(t=c*o+(s=e[f]/a|0)*l)%a*a+u)/n|0)+(t/a|0)+c*s,e[f]=i%n;return u&&(e=[u].concat(e)),e}function r(e,r,n,t){var i,o;if(n!=t)o=n>t?1:-1;else for(i=o=0;ir[i]?1:-1;break}return o}function n(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(t,o,s,l,c){var a,h,w,m,d,N,v,b,E,O,y,A,B,_,S,R,D,P=t.s==o.s?1:-1,x=t.c,L=o.c;if(!(x&&x[0]&&L&&L[0]))return new z(t.s&&o.s&&(x?!L||x[0]!=L[0]:L)?x&&0==x[0]||!L?0*P:P/0:NaN);for(E=(b=new z(P)).c=[],P=s+(h=t.e-o.e)+1,c||(c=u,h=p(t.e/f)-p(o.e/f),P=P/f|0),w=0;L[w]==(x[w]||0);w++);if(L[w]>(x[w]||0)&&h--,P<0)E.push(1),m=!0;else{for(_=x.length,R=L.length,w=0,P+=2,(d=i(c/(L[0]+1)))>1&&(L=e(L,d,c),x=e(x,d,c),R=L.length,_=x.length),B=R,y=(O=x.slice(0,R)).length;y=c/2&&S++;do{if(d=0,(a=r(L,O,R,y))<0){if(A=O[0],R!=y&&(A=A*c+(O[1]||0)),(d=i(A/S))>1)for(d>=c&&(d=c-1),v=(N=e(L,d,c)).length,y=O.length;1==r(N,O,v,y);)d--,n(N,R=10;P/=10,w++);X(b,s+(b.e=w+h*f-1)+1,l,m)}else b.e=h,b.r=+m;return b}})(),B=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,S=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,y=function(e,r,n,t){var i,o=n?r:r.replace(D,'');if(R.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(B,function(e,r,n){return i='x'==(n=n.toLowerCase())?16:'b'==n?2:8,t&&t!=i?e:r}),t&&(i=t,o=o.replace(_,'$1').replace(S,'0.$1')),r!=o))return new z(o,i);if(z.DEBUG)throw Error("[BigNumber Error] Not a"+(t?' base '+t:'')+' number: '+r);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,r){return m(this,new z(e,r))},P.decimalPlaces=P.dp=function(e,r){var n,t,i,o=this;if(null!=e)return d(e,0,h),null==r?r=U:d(r,0,8),X(new z(o),e+o.e+1,r);if(!(n=o.c))return null;if(t=((i=n.length-1)-p(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,t--);return t<0&&(t=0),t},P.dividedBy=P.div=function(e,r){return E(this,new z(e,r),L,U)},P.dividedToIntegerBy=P.idiv=function(e,r){return E(this,new z(e,r),0,1)},P.exponentiatedBy=P.pow=function(e,r){var n,o,s,u,l,c,a,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error("[BigNumber Error] Exponent not an integer: "+Y(e));if(null!=r&&(r=new z(r)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new z(Math.pow(+Y(p),l?2-N(e):+Y(e))),r?h.mod(r):h;if(c=e.s<0,r){if(r.c?!r.c[0]:!r.s)return new z(NaN);(o=!c&&p.isInteger()&&r.isInteger())&&(p=p.mod(r))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&N(e)?-0:0,p.e>-1&&(u=1/u),new z(c?1/u:u);F&&(u=t(F/f+2))}for(l?(n=new z(.5),c&&(e.s=1),a=N(e)):a=(s=Math.abs(+Y(e)))%2,h=new z(x);;){if(a){if(!(h=h.times(p)).c)break;u?h.c.length>u&&(h.c.length=u):o&&(h=h.mod(r))}if(s){if(0===(s=i(s/2)))break;a=s%2}else if(X(e=e.times(n),e.e+1,1),e.e>14)a=N(e);else{if(0==(s=+Y(e)))break;a=s%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):o&&(p=p.mod(r))}return o?h:(c&&(h=x.div(h)),r?h.mod(r):u?X(h,F,U,void 0):h)},P.integerValue=function(e){var r=new z(this);return null==e?e=U:d(e,0,8),X(r,r.e+1,e)},P.isEqualTo=P.eq=function(e,r){return 0===m(this,new z(e,r))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,r){return m(this,new z(e,r))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,r){return 1===(r=m(this,new z(e,r)))||0===r},P.isInteger=function(){return!!this.c&&p(this.e/f)>this.c.length-2},P.isLessThan=P.lt=function(e,r){return m(this,new z(e,r))<0},P.isLessThanOrEqualTo=P.lte=function(e,r){return-1===(r=m(this,new z(e,r)))||0===r},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,r){var n,t,i,o,s=this,l=s.s;if(r=(e=new z(e,r)).s,!l||!r)return new z(NaN);if(l!=r)return e.s=-r,s.plus(e);var c=s.e/f,a=e.e/f,h=s.c,w=e.c;if(!c||!a){if(!h||!w)return h?(e.s=-r,e):new z(w?s:NaN);if(!h[0]||!w[0])return w[0]?(e.s=-r,e):new z(h[0]?s:3==U?-0:0)}if(c=p(c),a=p(a),h=h.slice(),l=c-a){for((o=l<0)?(l=-l,i=h):(a=c,i=w),i.reverse(),r=l;r--;i.push(0));i.reverse()}else for(t=(o=(l=h.length)<(r=w.length))?l:r,l=r=0;r0)for(;r--;h[n++]=0);for(r=99999999999999;t>l;){if(h[--t]=0;){for(n=0,d=A[i]%E,N=A[i]/E|0,o=i+(s=c);o>i;)n=((h=d*(h=y[--s]%E)+(l=N*h+(w=y[s]/E|0)*d)%E*E+v[o]+n)/b|0)+(l/E|0)+N*w,v[o--]=h%b;v[o]=n}return n?++t:v.splice(0,1),W(e,v,t)},P.negated=function(){var e=new z(this);return e.s=-e.s||null,e},P.plus=function(e,r){var n,t=this,i=t.s;if(r=(e=new z(e,r)).s,!i||!r)return new z(NaN);if(i!=r)return e.s=-r,t.minus(e);var o=t.e/f,s=e.e/f,l=t.c,c=e.c;if(!o||!s){if(!l||!c)return new z(i/0);if(!l[0]||!c[0])return c[0]?e:new z(l[0]?t:0*i)}if(o=p(o),s=p(s),l=l.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=l),n.reverse();i--;n.push(0));n.reverse()}for((i=l.length)-(r=c.length)<0&&(n=c,c=l,l=n,r=i),i=0;r;)i=(l[--r]=l[r]+c[r]+i)/u|0,l[r]=u===l[r]?0:l[r]%u;return i&&(l=[i].concat(l),++s),W(e,l,s)},P.precision=P.sd=function(e,r){var n,t,i,o=this;if(null!=e&&e!==!!e)return d(e,1,h),null==r?r=U:d(r,0,8),X(new z(o),e,r);if(!(n=o.c))return null;if(t=(i=n.length-1)*f+1,i=n[i]){for(;i%10==0;i/=10,t--);for(i=n[0];i>=10;i/=10,t++);}return e&&o.e+1>t&&(t=o.e+1),t},P.shiftedBy=function(e){return d(e,-9007199254740991,l),this.times('1e'+e)},P.squareRoot=P.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,u=o.s,f=o.e,l=L+4,c=new z('0.5');if(1!==u||!s||!s[0])return new z(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(u=Math.sqrt(+Y(o)))||u==1/0?(((r=w(s)).length+f)%2==0&&(r+='0'),u=Math.sqrt(+r),f=p((f+1)/2)-(f<0||f%2),n=new z(r=u==1/0?'5e'+f:(r=u.toExponential()).slice(0,r.indexOf('e')+1)+f)):n=new z(u+''),n.c[0])for((u=(f=n.e)+l)<3&&(u=0);;)if(i=n,n=c.times(i.plus(E(o,i,l,1))),w(i.c).slice(0,u)===(r=w(n.c)).slice(0,u)){if(n.e0&&w>0){for(o=w%u||u,c=p.substr(0,o);o0&&(c+=l+p.slice(o)),h&&(c='-'+c)}t=a?c+(n.decimalSeparator||'')+((f=+n.fractionGroupSize)?a.replace(new RegExp('\\d{'+f+'}\\B','g'),'$&'+(n.fractionGroupSeparator||'')):a):c}return(n.prefix||'')+t+(n.suffix||'')},P.toFraction=function(e){var r,n,t,i,o,s,u,l,a,h,p,m,d=this,N=d.c;if(null!=e&&(!(u=new z(e)).isInteger()&&(u.c||1!==u.s)||u.lt(x)))throw Error("[BigNumber Error] Argument "+(u.isInteger()?'out of range: ':'not an integer: ')+Y(u));if(!N)return new z(d);for(r=new z(x),a=n=new z(x),t=l=new z(x),m=w(N),o=r.e=m.length-d.e-1,r.c[0]=c[(s=o%f)<0?f+s:s],e=!e||u.comparedTo(r)>0?o>0?r:a:u,s=M,M=1/0,u=new z(m),l.c[0]=0;h=E(u,r,0,1),1!=(i=n.plus(h.times(t))).comparedTo(e);)n=t,t=i,a=l.plus(h.times(i=a)),l=i,r=u.minus(h.times(i=r)),u=i;return i=E(e.minus(n),t,0,1),l=l.plus(i.times(a)),n=n.plus(i.times(t)),l.s=a.s=d.s,p=E(a,t,o*=2,U).minus(d).abs().comparedTo(E(l,n,o,U).minus(d).abs())<1?[a,t]:[l,n],M=s,p},P.toNumber=function(){return+Y(this)},P.toPrecision=function(e,r){return null!=e&&d(e,1,h),H(this,e,r,2)},P.toString=function(e){var r,n=this,t=n.s,i=n.e;return null===i?t?(r='Infinity',t<0&&(r='-'+r)):r='NaN':(null==e?r=i<=I||i>=T?v(w(n.c),i):b(w(n.c),i,'0'):10===e&&$?r=b(w((n=X(new z(n),L+i+1,U)).c),n.e,'0'):(d(e,2,j.length,'Base'),r=O(b(w(n.c),i,'0'),10,e,t,!0)),t<0&&n.c[0]&&(r='-'+r)),r},P.valueOf=P.toJSON=function(){return Y(this)},P._isBigNumber=!0,null!=r&&z.set(r),z})()).default=r.BigNumber=r,'function'==typeof define&&define.amd?define(function(){return r}):void 0!==_m&&_m.exports?_m.exports=r:(e||(e='undefined'!=typeof self&&self?self:window),e.BigNumber=r)})(this)},1678,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},e.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},e.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},e.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},e.SYMS={NULL:Symbol('null'),UNDEFINED:Symbol('undef'),PARENT:Symbol('parent'),BREAK:Symbol('break'),STREAM:Symbol('stream')},e.SHIFT32=Math.pow(2,32),e.SHIFT16=Math.pow(2,16),e.MAX_SAFE_HIGH=2097151,e.NEG_ONE=new(r(d[0]).BigNumber)(-1),e.TEN=new(r(d[0]).BigNumber)(10),e.TWO=new(r(d[0]).BigNumber)(2),e.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},1679,[1678]); +__d(function(_g,r,i,_a,m,_e,_d){'use strict';var t=(function(){function t(e){r(_d[0])(this,t),!(e=e||{}).size||e.size<65536?e.size=65536:e.size=r(_d[1]).nextPowerOf2(e.size),this._heap=new ArrayBuffer(e.size),this._heap8=new Uint8Array(this._heap),this._buffer=r(_d[2]).Buffer.from(this._heap),this._reset(),this._knownTags=r(_d[3])({0:function(t){return new Date(t)},1:function(t){return new Date(1e3*t)},2:function(t){return r(_d[1]).arrayBufferToBignumber(t)},3:function(t){return r(_d[4]).NEG_ONE.minus(r(_d[1]).arrayBufferToBignumber(t))},4:function(t){return r(_d[4]).TEN.pow(t[0]).times(t[1])},5:function(t){return r(_d[4]).TWO.pow(t[0]).times(t[1])},32:function(t){return new(r(_d[5]).URL)(t)},35:function(t){return new RegExp(t)}},e.tags),this.parser=r(_d[6])(_g,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}return r(_d[7])(t,[{key:"_depth",get:function(){return this._parents.length}},{key:"_currentParent",get:function(){return this._parents[this._depth-1]}},{key:"_ref",get:function(){return this._currentParent.ref}},{key:"_closeParent",value:function(){var t=this._parents.pop();if(t.length>0)throw new Error("Missing "+t.length+" elements");switch(t.type){case r(_d[4]).PARENT.TAG:this._push(this.createTag(t.ref[0],t.ref[1]));break;case r(_d[4]).PARENT.BYTE_STRING:this._push(this.createByteString(t.ref,t.length));break;case r(_d[4]).PARENT.UTF8_STRING:this._push(this.createUtf8String(t.ref,t.length));break;case r(_d[4]).PARENT.MAP:if(t.values%2>0)throw new Error('Odd number of elements in the map');this._push(this.createMap(t.ref,t.length));break;case r(_d[4]).PARENT.OBJECT:if(t.values%2>0)throw new Error('Odd number of elements in the map');this._push(this.createObject(t.ref,t.length));break;case r(_d[4]).PARENT.ARRAY:this._push(this.createArray(t.ref,t.length))}this._currentParent&&this._currentParent.type===r(_d[4]).PARENT.TAG&&this._dec()}},{key:"_dec",value:function(){var t=this._currentParent;t.length<0||(t.length--,0===t.length&&this._closeParent())}},{key:"_push",value:function(t,e){var n=this._currentParent;switch(n.values++,n.type){case r(_d[4]).PARENT.ARRAY:case r(_d[4]).PARENT.BYTE_STRING:case r(_d[4]).PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=t:this._ref.push(t),this._dec();break;case r(_d[4]).PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=t,n.tmpKey=null,this._dec()):(n.tmpKey=t,'string'!=typeof n.tmpKey&&(n.type=r(_d[4]).PARENT.MAP,n.ref=r(_d[1]).buildMap(n.ref)));break;case r(_d[4]).PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,t),n.tmpKey=null,this._dec()):n.tmpKey=t;break;case r(_d[4]).PARENT.TAG:this._ref.push(t),e||this._dec();break;default:throw new Error('Unknown parent type')}}},{key:"_createParent",value:function(t,e,n){this._parents[this._depth]={type:e,length:n,ref:t,values:0,tmpKey:null}}},{key:"_reset",value:function(){this._res=[],this._parents=[{type:r(_d[4]).PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}},{key:"createTag",value:function(t,e){var n=this._knownTags[t];return n?n(e):new(r(_d[8]))(t,e)}},{key:"createMap",value:function(t,e){return t}},{key:"createObject",value:function(t,e){return t}},{key:"createArray",value:function(t,e){return t}},{key:"createByteString",value:function(t,e){return r(_d[2]).Buffer.concat(t)}},{key:"createByteStringFromHeap",value:function(t,e){return t===e?r(_d[2]).Buffer.alloc(0):r(_d[2]).Buffer.from(this._heap.slice(t,e))}},{key:"createInt",value:function(t){return t}},{key:"createInt32",value:function(t,e){return r(_d[1]).buildInt32(t,e)}},{key:"createInt64",value:function(t,e,n,s){return r(_d[1]).buildInt64(t,e,n,s)}},{key:"createFloat",value:function(t){return t}},{key:"createFloatSingle",value:function(t,e,n,s){return r(_d[9]).read([t,e,n,s],0,!1,23,4)}},{key:"createFloatDouble",value:function(t,e,n,s,u,h,a,c){return r(_d[9]).read([t,e,n,s,u,h,a,c],0,!1,52,8)}},{key:"createInt32Neg",value:function(t,e){return-1-r(_d[1]).buildInt32(t,e)}},{key:"createInt64Neg",value:function(t,e,n,s){var u=r(_d[1]).buildInt32(t,e),h=r(_d[1]).buildInt32(n,s);return u>r(_d[4]).MAX_SAFE_HIGH?r(_d[4]).NEG_ONE.minus(new(r(_d[10]).BigNumber)(u).times(r(_d[4]).SHIFT32).plus(h)):-1-(u*r(_d[4]).SHIFT32+h)}},{key:"createTrue",value:function(){return!0}},{key:"createFalse",value:function(){return!1}},{key:"createNull",value:function(){return null}},{key:"createUndefined",value:function(){}},{key:"createInfinity",value:function(){return 1/0}},{key:"createInfinityNeg",value:function(){return-1/0}},{key:"createNaN",value:function(){return NaN}},{key:"createNaNNeg",value:function(){return NaN}},{key:"createUtf8String",value:function(t,e){return t.join('')}},{key:"createUtf8StringFromHeap",value:function(t,e){return t===e?'':this._buffer.toString('utf8',t,e)}},{key:"createSimpleUnassigned",value:function(t){return new(r(_d[11]))(t)}},{key:"pushInt",value:function(t){this._push(this.createInt(t))}},{key:"pushInt32",value:function(t,e){this._push(this.createInt32(t,e))}},{key:"pushInt64",value:function(t,e,n,s){this._push(this.createInt64(t,e,n,s))}},{key:"pushFloat",value:function(t){this._push(this.createFloat(t))}},{key:"pushFloatSingle",value:function(t,e,n,s){this._push(this.createFloatSingle(t,e,n,s))}},{key:"pushFloatDouble",value:function(t,e,n,s,u,h,a,c){this._push(this.createFloatDouble(t,e,n,s,u,h,a,c))}},{key:"pushInt32Neg",value:function(t,e){this._push(this.createInt32Neg(t,e))}},{key:"pushInt64Neg",value:function(t,e,n,s){this._push(this.createInt64Neg(t,e,n,s))}},{key:"pushTrue",value:function(){this._push(this.createTrue())}},{key:"pushFalse",value:function(){this._push(this.createFalse())}},{key:"pushNull",value:function(){this._push(this.createNull())}},{key:"pushUndefined",value:function(){this._push(this.createUndefined())}},{key:"pushInfinity",value:function(){this._push(this.createInfinity())}},{key:"pushInfinityNeg",value:function(){this._push(this.createInfinityNeg())}},{key:"pushNaN",value:function(){this._push(this.createNaN())}},{key:"pushNaNNeg",value:function(){this._push(this.createNaNNeg())}},{key:"pushArrayStart",value:function(){this._createParent([],r(_d[4]).PARENT.ARRAY,-1)}},{key:"pushArrayStartFixed",value:function(t){this._createArrayStartFixed(t)}},{key:"pushArrayStartFixed32",value:function(t,e){var n=r(_d[1]).buildInt32(t,e);this._createArrayStartFixed(n)}},{key:"pushArrayStartFixed64",value:function(t,e,n,s){var u=r(_d[1]).buildInt64(t,e,n,s);this._createArrayStartFixed(u)}},{key:"pushObjectStart",value:function(){this._createObjectStartFixed(-1)}},{key:"pushObjectStartFixed",value:function(t){this._createObjectStartFixed(t)}},{key:"pushObjectStartFixed32",value:function(t,e){var n=r(_d[1]).buildInt32(t,e);this._createObjectStartFixed(n)}},{key:"pushObjectStartFixed64",value:function(t,e,n,s){var u=r(_d[1]).buildInt64(t,e,n,s);this._createObjectStartFixed(u)}},{key:"pushByteStringStart",value:function(){this._parents[this._depth]={type:r(_d[4]).PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushByteString",value:function(t,e){this._push(this.createByteStringFromHeap(t,e))}},{key:"pushUtf8StringStart",value:function(){this._parents[this._depth]={type:r(_d[4]).PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}},{key:"pushUtf8String",value:function(t,e){this._push(this.createUtf8StringFromHeap(t,e))}},{key:"pushSimpleUnassigned",value:function(t){this._push(this.createSimpleUnassigned(t))}},{key:"pushTagStart",value:function(t){this._parents[this._depth]={type:r(_d[4]).PARENT.TAG,length:1,ref:[t]}}},{key:"pushTagStart4",value:function(t,e){this.pushTagStart(r(_d[1]).buildInt32(t,e))}},{key:"pushTagStart8",value:function(t,e,n,s){this.pushTagStart(r(_d[1]).buildInt64(t,e,n,s))}},{key:"pushTagUnassigned",value:function(t){this._push(this.createTag(t))}},{key:"pushBreak",value:function(){if(this._currentParent.length>-1)throw new Error('Unexpected break');this._closeParent()}},{key:"_createObjectStartFixed",value:function(t){0!==t?this._createParent({},r(_d[4]).PARENT.OBJECT,t):this._push(this.createObject({}))}},{key:"_createArrayStartFixed",value:function(t){0!==t?this._createParent(new Array(t),r(_d[4]).PARENT.ARRAY,t):this._push(this.createArray([]))}},{key:"_decode",value:function(t){if(0===t.byteLength)throw new Error('Input too short');this._reset(),this._heap8.set(t);var e=this.parser.parse(t.byteLength);if(this._depth>1){for(;0===this._currentParent.length;)this._closeParent();if(this._depth>1)throw new Error('Undeterminated nesting')}if(e>0)throw new Error('Failed to parse');if(0===this._res.length)throw new Error('No valid result')}},{key:"decodeFirst",value:function(t){return this._decode(t),this._res[0]}},{key:"decodeAll",value:function(t){return this._decode(t),this._res}}],[{key:"decode",value:function(e,n){return'string'==typeof e&&(e=r(_d[2]).Buffer.from(e,n||'hex')),new t({size:e.length}).decodeFirst(e)}},{key:"decodeAll",value:function(e,n){return'string'==typeof e&&(e=r(_d[2]).Buffer.from(e,n||'hex')),new t({size:e.length}).decodeAll(e)}}]),t})();t.decodeFirst=t.decode,m.exports=t},1680,[7,1677,981,4,1679,1681,1684,8,1685,982,1678,1686]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={URL:r(d[0]).URLWithLegacySupport,URLSearchParams:r(d[0]).URLSearchParams,format:r(d[0]).format,relative:r(d[1]),defaultBase:r(d[0]).defaultBase}},1681,[1682,1683]); +__d(function(g,r,i,a,m,e,d){'use strict';var t='undefined'!=typeof navigator&&'ReactNative'===navigator.product;var s=self.URL,n=t?'http://localhost':self.location?self.location.protocol+'//'+self.location.host:'',o=(function(){function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;r(d[0])(this,t),this.super=new s(o,u),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+':'+this.password:null,this.query=this.search&&this.search.startsWith('?')?this.search.slice(1):null}return r(d[1])(t,[{key:"hash",get:function(){return this.super.hash},set:function(t){this.super.hash=t}},{key:"host",get:function(){return this.super.host},set:function(t){this.super.host=t}},{key:"hostname",get:function(){return this.super.hostname},set:function(t){this.super.hostname=t}},{key:"href",get:function(){return this.super.href},set:function(t){this.super.href=t}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(t){this.super.password=t}},{key:"pathname",get:function(){return this.super.pathname},set:function(t){this.super.pathname=t}},{key:"port",get:function(){return this.super.port},set:function(t){this.super.port=t}},{key:"protocol",get:function(){return this.super.protocol},set:function(t){this.super.protocol=t}},{key:"search",get:function(){return this.super.search},set:function(t){this.super.search=t}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(t){this.super.username=t}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}}],[{key:"createObjectURL",value:function(t){return s.createObjectURL(t)}},{key:"revokeObjectURL",value:function(t){s.revokeObjectURL(t)}}]),t})();m.exports={URLWithLegacySupport:o,URLSearchParams:self.URLSearchParams,defaultBase:n,format:function(t){if('string'==typeof t)return new s(t).toString();if(!(t instanceof s)){var n=t.username&&t.password?t.username+":"+t.password+"@":'',o=t.auth?t.auth+'@':'',u=t.port?':'+t.port:'',h=t.protocol?t.protocol+'//':'',c=t.host||'',p=t.hostname||'',f=t.search||(t.query?'?'+t.query:''),l=t.hash||'',y=t.pathname||'',k=t.path||y+f;return""+h+(n||o)+(c||p+u)+k+l}}}},1682,[7,8]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=arguments.length>3?arguments[3]:void 0,h=c.protocol?c.protocol.replace(':',''):'http';h=(n[h]||p||h)+':';try{o=new(r(d[0]).URLWithLegacySupport)(t)}catch(t){o={}}var l=r(d[1])({},c,{protocol:h||o.protocol,host:c.host||o.host});return new(r(d[0]).URLWithLegacySupport)(t,r(d[0]).format(l)).toString()}},1683,[1682,4]); +__d(function(_g,_r,i,a,m,e,d){m.exports=function(r,n,t){'use asm';var u=new r.Uint8Array(t);var f=n.pushInt;var v=n.pushInt32;var o=n.pushInt32Neg;var c=n.pushInt64;var s=n.pushInt64Neg;var p=n.pushFloat;var h=n.pushFloatSingle;var S=n.pushFloatDouble;var g=n.pushTrue;var l=n.pushFalse;var x=n.pushUndefined;var F=n.pushNull;var y=n.pushInfinity;var N=n.pushInfinityNeg;var I=n.pushNaN;var b=n.pushNaNNeg;var U=n.pushArrayStart;var A=n.pushArrayStartFixed;var T=n.pushArrayStartFixed32;var j=n.pushArrayStartFixed64;var O=n.pushObjectStart;var w=n.pushObjectStartFixed;var B=n.pushObjectStartFixed32;var k=n.pushObjectStartFixed64;var _=n.pushByteString;var C=n.pushByteStringStart;var D=n.pushUtf8String;var M=n.pushUtf8StringStart;var q=n.pushSimpleUnassigned;var z=n.pushTagStart;var E=n.pushTagStart4;var G=n.pushTagStart8;var H=n.pushTagUnassigned;var J=n.pushBreak;var K=r.Math.pow;var L=0;var P=0;var Q=0;function R(r){r=r|0;L=0;P=r;while((L|0)<(P|0)){Q=Wr[u[L]&255](u[L]|0)|0;if((Q|0)>0){break}}return Q|0}function V(r){r=r|0;if(((L|0)+(r|0)|0)<(P|0)){return 0}return 1}function W(r){r=r|0;return u[r|0]<<8|u[r+1|0]|0}function X(r){r=r|0;return u[r|0]<<24|u[r+1|0]<<16|u[r+2|0]<<8|u[r+3|0]|0}function Y(r){r=r|0;f(r|0);L=L+1|0;return 0}function Z(r){r=r|0;if(V(1)|0){return 1}f(u[L+1|0]|0);L=L+2|0;return 0}function $(r){r=r|0;if(V(2)|0){return 1}f(W(L+1|0)|0);L=L+3|0;return 0}function rr(r){r=r|0;if(V(4)|0){return 1}v(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function nr(r){r=r|0;if(V(8)|0){return 1}c(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function tr(r){r=r|0;f(-1-(r-32|0)|0);L=L+1|0;return 0}function ur(r){r=r|0;if(V(1)|0){return 1}f(-1-(u[L+1|0]|0)|0);L=L+2|0;return 0}function er(r){r=r|0;var n=0;if(V(2)|0){return 1}n=W(L+1|0)|0;f(-1-(n|0)|0);L=L+3|0;return 0}function ir(r){r=r|0;if(V(4)|0){return 1}o(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function fr(r){r=r|0;if(V(8)|0){return 1}s(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function ar(r){r=r|0;var n=0;var t=0;var u=0;u=r-64|0;if(V(u|0)|0){return 1}n=L+1|0;t=(L+1|0)+(u|0)|0;_(n|0,t|0);L=t|0;return 0}function vr(r){r=r|0;var n=0;var t=0;var f=0;if(V(1)|0){return 1}f=u[L+1|0]|0;n=L+2|0;t=(L+2|0)+(f|0)|0;if(V(f+1|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function or(r){r=r|0;var n=0;var t=0;var u=0;if(V(2)|0){return 1}u=W(L+1|0)|0;n=L+3|0;t=(L+3|0)+(u|0)|0;if(V(u+2|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function cr(r){r=r|0;var n=0;var t=0;var u=0;if(V(4)|0){return 1}u=X(L+1|0)|0;n=L+5|0;t=(L+5|0)+(u|0)|0;if(V(u+4|0)|0){return 1}_(n|0,t|0);L=t|0;return 0}function sr(r){r=r|0;return 1}function pr(r){r=r|0;C();L=L+1|0;return 0}function hr(r){r=r|0;var n=0;var t=0;var u=0;u=r-96|0;if(V(u|0)|0){return 1}n=L+1|0;t=(L+1|0)+(u|0)|0;D(n|0,t|0);L=t|0;return 0}function Sr(r){r=r|0;var n=0;var t=0;var f=0;if(V(1)|0){return 1}f=u[L+1|0]|0;n=L+2|0;t=(L+2|0)+(f|0)|0;if(V(f+1|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function gr(r){r=r|0;var n=0;var t=0;var u=0;if(V(2)|0){return 1}u=W(L+1|0)|0;n=L+3|0;t=(L+3|0)+(u|0)|0;if(V(u+2|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function lr(r){r=r|0;var n=0;var t=0;var u=0;if(V(4)|0){return 1}u=X(L+1|0)|0;n=L+5|0;t=(L+5|0)+(u|0)|0;if(V(u+4|0)|0){return 1}D(n|0,t|0);L=t|0;return 0}function dr(r){r=r|0;return 1}function xr(r){r=r|0;M();L=L+1|0;return 0}function Fr(r){r=r|0;A(r-128|0);L=L+1|0;return 0}function yr(r){r=r|0;if(V(1)|0){return 1}A(u[L+1|0]|0);L=L+2|0;return 0}function Nr(r){r=r|0;if(V(2)|0){return 1}A(W(L+1|0)|0);L=L+3|0;return 0}function Ir(r){r=r|0;if(V(4)|0){return 1}T(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function br(r){r=r|0;if(V(8)|0){return 1}j(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function Ur(r){r=r|0;U();L=L+1|0;return 0}function Ar(r){r=r|0;var n=0;n=r-160|0;if(V(n|0)|0){return 1}w(n|0);L=L+1|0;return 0}function Tr(r){r=r|0;if(V(1)|0){return 1}w(u[L+1|0]|0);L=L+2|0;return 0}function jr(r){r=r|0;if(V(2)|0){return 1}w(W(L+1|0)|0);L=L+3|0;return 0}function Or(r){r=r|0;if(V(4)|0){return 1}B(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function wr(r){r=r|0;if(V(8)|0){return 1}k(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function Br(r){r=r|0;O();L=L+1|0;return 0}function kr(r){r=r|0;z(r-192|0|0);L=L+1|0;return 0}function mr(r){r=r|0;z(r-192|0|0);L=L+1|0;return 0}function Cr(r){r=r|0;if(V(1)|0){return 1}z(u[L+1|0]|0);L=L+2|0;return 0}function Dr(r){r=r|0;if(V(2)|0){return 1}z(W(L+1|0)|0);L=L+3|0;return 0}function Mr(r){r=r|0;if(V(4)|0){return 1}E(W(L+1|0)|0,W(L+3|0)|0);L=L+5|0;return 0}function qr(r){r=r|0;if(V(8)|0){return 1}G(W(L+1|0)|0,W(L+3|0)|0,W(L+5|0)|0,W(L+7|0)|0);L=L+9|0;return 0}function zr(r){r=r|0;q((r|0)-224|0);L=L+1|0;return 0}function Er(r){r=r|0;l();L=L+1|0;return 0}function Gr(r){r=r|0;g();L=L+1|0;return 0}function Hr(r){r=r|0;F();L=L+1|0;return 0}function Jr(r){r=r|0;x();L=L+1|0;return 0}function Kr(r){r=r|0;if(V(1)|0){return 1}q(u[L+1|0]|0);L=L+2|0;return 0}function Lr(r){r=r|0;var n=0;var t=0;var f=1.0;var v=0.0;var o=0.0;var c=0.0;if(V(2)|0){return 1}n=u[L+1|0]|0;t=u[L+2|0]|0;if((n|0)&0x80){f=-1}v=+(((n|0)&0x7C)>>2);o=+(((n|0)&0x03)<<8|t);if(+v==0.0){p(+(+f*5.960464477539063e-8*+o))}else if(+v==31.0){if(+f==1.0){if(+o>0.0){I()}else{y()}}else{if(+o>0.0){b()}else{N()}}}else{p(+(+f*K(2,+(+v-25.0))*+(1024.0+o)))}L=L+3|0;return 0}function Pr(r){r=r|0;if(V(4)|0){return 1}h(u[L+1|0]|0,u[L+2|0]|0,u[L+3|0]|0,u[L+4|0]|0);L=L+5|0;return 0}function Qr(r){r=r|0;if(V(8)|0){return 1}S(u[L+1|0]|0,u[L+2|0]|0,u[L+3|0]|0,u[L+4|0]|0,u[L+5|0]|0,u[L+6|0]|0,u[L+7|0]|0,u[L+8|0]|0);L=L+9|0;return 0}function Rr(r){r=r|0;return 1}function Vr(r){r=r|0;J();L=L+1|0;return 0}var Wr=[Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Z,$,rr,nr,Rr,Rr,Rr,Rr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,tr,ur,er,ir,fr,Rr,Rr,Rr,Rr,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,vr,or,cr,sr,Rr,Rr,Rr,pr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,hr,Sr,gr,lr,dr,Rr,Rr,Rr,xr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,Fr,yr,Nr,Ir,br,Rr,Rr,Rr,Ur,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Ar,Tr,jr,Or,wr,Rr,Rr,Rr,Br,kr,kr,kr,kr,kr,kr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,mr,Cr,Dr,Mr,qr,Rr,Rr,Rr,Rr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,zr,Er,Gr,Hr,Jr,Kr,Lr,Pr,Qr,Rr,Rr,Rr,Vr];return{parse:R}}},1684,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,s,u){if(r(d[0])(this,t),this.tag=n,this.value=s,this.err=u,'number'!=typeof this.tag)throw new Error('Invalid tag type ('+typeof this.tag+')');if(this.tag<0||(0|this.tag)!==this.tag)throw new Error('Tag must be a positive integer: '+this.tag)}return r(d[1])(t,[{key:"toString",value:function(){return this.tag+"("+JSON.stringify(this.value)+")"}},{key:"encodeCBOR",value:function(t){return t._pushTag(this.tag),t.pushAny(this.value)}},{key:"convert",value:function(n){var s,u;if('function'!=typeof(u=null!=n?n[this.tag]:void 0)&&'function'!=typeof(u=t['_tag'+this.tag]))return this;try{return u.call(t,this.value)}catch(t){return s=t,this.err=s,this}}}]),t})();m.exports=t},1685,[7,8]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=(function(){function n(t){if(r(d[0])(this,n),'number'!=typeof t)throw new Error('Invalid Simple type: '+typeof t);if(t<0||t>255||(0|t)!==t)throw new Error('value must be a small positive integer: '+t);this.value=t}return r(d[1])(n,[{key:"toString",value:function(){return'simple('+this.value+')'}},{key:"inspect",value:function(){return'simple('+this.value+')'}},{key:"encodeCBOR",value:function(n){return n._pushInt(this.value,r(d[2]).MT.SIMPLE_FLOAT)}}],[{key:"isSimple",value:function(t){return t instanceof n}},{key:"decode",value:function(t,u){switch(null==u&&(u=!0),t){case r(d[2]).SIMPLE.FALSE:return!1;case r(d[2]).SIMPLE.TRUE:return!0;case r(d[2]).SIMPLE.NULL:return u?null:r(d[2]).SYMS.NULL;case r(d[2]).SIMPLE.UNDEFINED:return u?void 0:r(d[2]).SYMS.UNDEFINED;case-1:if(!u)throw new Error('Invalid BREAK');return r(d[2]).SYMS.BREAK;default:return new n(t)}}}]),n})();m.exports=n},1686,[7,8,1679]); +__d(function(g,r,_i,_a,_m,e,d){'use strict';function t(t,n){var u="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(u)return(u=u.call(t)).next.bind(u);if(Array.isArray(t)||(u=s(t))||n&&t&&"number"==typeof t.length){u&&(t=u);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,s){if(t){if("string"==typeof t)return n(t,s);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?n(t,s):void 0}}function n(t,s){(null==s||s>t.length)&&(s=t.length);for(var n=0,u=new Array(s);n=0;--s){var c=this.tryEntries[s],l=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=i.call(c,"catchLoc"),f=i.call(c,"finallyLoc");if(u&&f){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;S(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:j(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.JsonLdCredentialFormatService=void 0;var n='aries/ld-proof-vc-detail@v1.0',o=(function(){function o(){r(d[0])(this,o),this.formatKey='jsonld',this.credentialRecordType='w3c',this.areCredentialsEqual=function(t,n){var o=t.getDataAsJson(),i=n.getDataAsJson();return(0,r(d[1]).areObjectsEqual)(o,i)}}return r(d[2])(o,[{key:"createProposal",value:function(o,i){var s,c,l,u;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=i.credentialFormats,c=new(r(d[3]).CredentialFormatSpec)({format:n}),l=s.jsonld){t.next=5;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld payload in createProposal');case 5:return r(d[5]).JsonTransformer.fromJSON(l.credential,r(d[6]).JsonLdCredentialDetail),u=this.getFormatData(l,c.attachId),t.abrupt("return",{format:c,attachment:u});case 8:case"end":return t.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(n,o){var i,s;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o.attachment,s=i.getDataAsJson()){t.next=4;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld credential proposal data payload');case 4:r(d[5]).JsonTransformer.fromJSON(s,r(d[6]).JsonLdCredentialDetail);case 5:case"end":return t.stop()}},null,null,null,Promise)}},{key:"acceptProposal",value:function(o,i){var s,c,l,u,f,h;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=i.attachId,c=i.proposalAttachment,l=new(r(d[3]).CredentialFormatSpec)({attachId:s,format:n}),u=c.getDataAsJson(),r(d[5]).JsonTransformer.fromJSON(u,r(d[6]).JsonLdCredentialDetail),f=u,h=this.getFormatData(f,l.attachId),t.abrupt("return",{format:l,attachment:h});case 7:case"end":return t.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(o,i){var s,c,l,u,f;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=i.credentialFormats,c=i.attachId,l=new(r(d[3]).CredentialFormatSpec)({attachId:c,format:n}),u=null===s||void 0===s?void 0:s.jsonld){t.next=5;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld payload in createOffer');case 5:return r(d[5]).JsonTransformer.fromJSON(u.credential,r(d[6]).JsonLdCredentialDetail),f=this.getFormatData(u,l.attachId),t.abrupt("return",{format:l,attachment:f});case 8:case"end":return t.stop()}},null,this,null,Promise)}},{key:"processOffer",value:function(n,o){var i,s;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o.attachment,s=i.getDataAsJson()){t.next=4;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld credential offer data payload');case 4:r(d[5]).JsonTransformer.fromJSON(s,r(d[6]).JsonLdCredentialDetail);case 5:case"end":return t.stop()}},null,null,null,Promise)}},{key:"acceptOffer",value:function(o,i){var s,c,l,u,f;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=i.attachId,c=i.offerAttachment,l=c.getDataAsJson(),r(d[5]).JsonTransformer.fromJSON(l,r(d[6]).JsonLdCredentialDetail),u=new(r(d[3]).CredentialFormatSpec)({attachId:s,format:n}),f=this.getFormatData(l,u.attachId),t.abrupt("return",{format:u,attachment:f});case 6:case"end":return t.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(o,i){var s,c,l,u;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=i.credentialFormats,c=null===s||void 0===s?void 0:s.jsonld,l=new(r(d[3]).CredentialFormatSpec)({format:n}),c){t.next=5;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld payload in createRequest');case 5:return r(d[5]).JsonTransformer.fromJSON(c.credential,r(d[6]).JsonLdCredentialDetail),u=this.getFormatData(c,l.attachId),t.abrupt("return",{format:l,attachment:u});case 8:case"end":return t.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(n,o){var i,s;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o.attachment,s=i.getDataAsJson()){t.next=4;break}throw new(r(d[4]).AriesFrameworkError)('Missing jsonld credential request data payload');case 4:r(d[5]).JsonTransformer.fromJSON(s,r(d[6]).JsonLdCredentialDetail);case 5:case"end":return t.stop()}},null,null,null,Promise)}},{key:"acceptRequest",value:function(n,o){var i,s,c,l,u,f,h,p,v,y,w,k,x,A;return t().async(function(b){for(;;)switch(b.prev=b.next){case 0:if(i=o.credentialFormats,s=o.attachId,c=o.requestAttachment,f=n.dependencyManager.resolve(r(d[7]).W3cCredentialService),h=c.getDataAsJson(),null===(u=null===(l=null===i||void 0===i?void 0:i.jsonld)||void 0===l?void 0:l.verificationMethod)||void 0===u){b.next=7;break}b.t0=u,b.next=10;break;case 7:return b.next=9,t().awrap(this.deriveVerificationMethod(n,h.credential,h));case 9:b.t0=b.sent;case 10:if(p=b.t0){b.next=13;break}throw new(r(d[4]).AriesFrameworkError)('Missing verification method in credential data');case 13:if(v=new(r(d[3]).CredentialFormatSpec)({attachId:s,format:"aries/ld-proof-vc@1.0"}),y=h.options,!((w=['challenge','domain','credentialStatus','created'].filter(function(t){return void 0!==y[t]})).length>0)){b.next=19;break}throw new(r(d[4]).AriesFrameworkError)("Some fields are not currently supported in credential options: "+w.join(', '));case 19:return k=r(d[5]).JsonTransformer.fromJSON(h.credential,r(d[8]).W3cCredential),b.next=22,t().awrap(f.signCredential(n,{credential:k,proofType:h.options.proofType,verificationMethod:p}));case 22:return x=b.sent,A=this.getFormatData(x,v.attachId),b.abrupt("return",{format:v,attachment:A});case 25:case"end":return b.stop()}},null,this,null,Promise)}},{key:"deriveVerificationMethod",value:function(n,o,i){var s,c,l,u,f,h,p,v;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:return s=n.dependencyManager.resolve(r(d[9]).DidResolverService),c=n.dependencyManager.resolve(r(d[7]).W3cCredentialService),l=r(d[5]).JsonTransformer.fromJSON(o,r(d[8]).W3cCredential),'string'!=typeof(u=l.issuer)&&(u=u.id),y.next=7,t().awrap(s.resolveDidDocument(n,u));case 7:if(f=y.sent,h=i.options.proofType,(p=c.getVerificationMethodTypesByProofType(h))&&0!==p.length){y.next=12;break}throw new(r(d[4]).AriesFrameworkError)("No Key Type found for proofType "+h);case 12:return y.next=14,t().awrap((0,r(d[10]).findVerificationMethodByKeyType)(p[0],f));case 14:if(v=y.sent){y.next=17;break}throw new(r(d[4]).AriesFrameworkError)("Missing verification method for key type "+p);case 17:return y.abrupt("return",v.id);case 18:case"end":return y.stop()}},null,null,null,Promise)}},{key:"processCredential",value:function(n,o){var i,s,c,l,u,f,h,p,v;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:return i=o.credentialRecord,s=o.attachment,c=o.requestAttachment,l=n.dependencyManager.resolve(r(d[7]).W3cCredentialService),u=s.getDataAsJson(),f=r(d[5]).JsonTransformer.fromJSON(u,r(d[8]).W3cVerifiableCredential),h=c.getDataAsJson(),this.verifyReceivedCredentialMatchesRequest(f,h),y.next=8,t().awrap(l.verifyCredential(n,{credential:f}));case 8:if(!(p=y.sent)||p.verified){y.next=11;break}throw new(r(d[4]).AriesFrameworkError)("Failed to validate credential, error = "+p.error);case 11:return y.next=13,t().awrap(l.storeCredential(n,{credential:f}));case 13:v=y.sent,i.credentials.push({credentialRecordType:this.credentialRecordType,credentialRecordId:v.id});case 15:case"end":return y.stop()}},null,this,null,Promise)}},{key:"verifyReceivedCredentialMatchesRequest",value:function(t,n){var o=r(d[5]).JsonTransformer.toJSON(t);if(delete o.proof,Array.isArray(t.proof))throw new(r(d[4]).AriesFrameworkError)('Credential proof arrays are not supported');if(n.options.created&&t.proof.created!==n.options.created)throw new(r(d[4]).AriesFrameworkError)('Received credential proof created does not match created from credential request');if(t.proof.domain!==n.options.domain)throw new(r(d[4]).AriesFrameworkError)('Received credential proof domain does not match domain from credential request');if(t.proof.challenge!==n.options.challenge)throw new(r(d[4]).AriesFrameworkError)('Received credential proof challenge does not match challenge from credential request');if(t.proof.type!==n.options.proofType)throw new(r(d[4]).AriesFrameworkError)('Received credential proof type does not match proof type from credential request');if(t.proof.proofPurpose!==n.options.proofPurpose)throw new(r(d[4]).AriesFrameworkError)('Received credential proof purpose does not match proof purpose from credential request');if(!(0,r(d[1]).areObjectsEqual)(o,n.credential))throw new(r(d[4]).AriesFrameworkError)('Received credential does not match credential request')}},{key:"supportsFormat",value:function(t){return[n,"aries/ld-proof-vc@1.0"].includes(t)}},{key:"deleteCredentialById",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Not implemented.');case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"shouldAutoRespondToProposal",value:function(t,n){var o=n.offerAttachment,i=n.proposalAttachment;return this.areCredentialsEqual(i,o)}},{key:"shouldAutoRespondToOffer",value:function(t,n){var o=n.offerAttachment,i=n.proposalAttachment;return this.areCredentialsEqual(i,o)}},{key:"shouldAutoRespondToRequest",value:function(t,n){var o=n.offerAttachment,i=n.requestAttachment;return this.areCredentialsEqual(o,i)}},{key:"shouldAutoRespondToCredential",value:function(t,n){var o=n.requestAttachment,i=n.credentialAttachment.getDataAsJson(),s=r(d[5]).JsonTransformer.fromJSON(i,r(d[8]).W3cVerifiableCredential),c=o.getDataAsJson();try{return this.verifyReceivedCredentialMatchesRequest(s,c),!0}catch(t){return!1}}},{key:"getFormatData",value:function(t,n){return new(r(d[11]).Attachment)({id:n,mimeType:'application/json',data:new(r(d[11]).AttachmentData)({base64:r(d[1]).JsonEncoder.toBase64(t)})})}}]),o})();e.JsonLdCredentialFormatService=o},1690,[7,992,8,1645,611,625,1691,1698,1775,1346,1064,977]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,i,o){var r,c=arguments.length,d=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,n,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(d=(c<3?r(d):c>3?r(n,i,d):r(n,i))||d);return c>3&&d&&Object.defineProperty(n,i,d),d},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonLdCredentialDetail=void 0;var i=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.credential=n.credential,this.options=n.options)});t([(0,_r(_d[2]).Type)(function(){return _r(_d[3]).W3cCredential}),n("design:type",_r(_d[3]).W3cCredential)],i.prototype,"credential",void 0),t([(0,_r(_d[2]).Expose)({name:'options'}),(0,_r(_d[2]).Type)(function(){return _r(_d[4]).JsonLdCredentialDetailOptions}),n("design:type",_r(_d[4]).JsonLdCredentialDetailOptions)],i.prototype,"options",void 0),e.JsonLdCredentialDetail=i},1691,[8,7,626,1692,1697]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var s,c=arguments.length,o=c<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,n,r);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(o=(c<3?s(o):c>3?s(i,n,o):s(i,n))||o);return c>3&&o&&Object.defineProperty(i,n,o),o},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsCredentialType=e.W3cCredential=void 0;var n=(function(){function t(i){var n;_r(_d[0])(this,t),i&&(this.context=null!==(n=i.context)&&void 0!==n?n:[_r(_d[1]).CREDENTIALS_CONTEXT_V1_URL],this.id=i.id,this.type=i.type||[],this.issuer=i.issuer,this.issuanceDate=i.issuanceDate,this.expirationDate=i.expirationDate,this.credentialSubject=i.credentialSubject)}return _r(_d[2])(t,[{key:"issuerId",get:function(){return this.issuer instanceof _r(_d[3]).Issuer?this.issuer.id:this.issuer}},{key:"credentialSchemaIds",get:function(){return this.credentialSchema?Array.isArray(this.credentialSchema)?this.credentialSchema.map(function(t){return t.id}):[this.credentialSchema.id]:[]}},{key:"credentialSubjectIds",get:function(){return Array.isArray(this.credentialSubject)?this.credentialSubject.map(function(t){return t.id}):[this.credentialSubject.id]}},{key:"contexts",get:function(){return Array.isArray(this.context)?this.context.filter(function(t){return'string'==typeof t}):'string'==typeof this.context?[this.context]:[this.context.id]}}]),t})();function r(t){return(0,_r(_d[6]).ValidateBy)({name:'IsVerifiableCredentialType',validator:{validate:function(t){return!!Array.isArray(t)&&t.includes(_r(_d[1]).VERIFIABLE_CREDENTIAL_TYPE)},defaultMessage:(0,_r(_d[6]).buildMessage)(function(t){return t+'$property must be an array of strings which includes "VerifiableCredential"'},t)}},t)}t([(0,_r(_d[4]).Expose)({name:'@context'}),(0,_r(_d[5]).IsJsonLdContext)(),i("design:type",Object)],n.prototype,"context",void 0),t([(0,_r(_d[6]).IsOptional)(),(0,_r(_d[7]).IsUri)(),i("design:type",String)],n.prototype,"id",void 0),t([r(),i("design:type",Array)],n.prototype,"type",void 0),t([(0,_r(_d[3]).IssuerTransformer)(),(0,_r(_d[3]).IsIssuer)(),i("design:type",Object)],n.prototype,"issuer",void 0),t([(0,_r(_d[6]).IsString)(),i("design:type",String)],n.prototype,"issuanceDate",void 0),t([(0,_r(_d[6]).IsString)(),(0,_r(_d[6]).IsOptional)(),i("design:type",String)],n.prototype,"expirationDate",void 0),t([(0,_r(_d[4]).Type)(function(){return _r(_d[8]).CredentialSubject}),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[8]).CredentialSubject}),i("design:type",Object)],n.prototype,"credentialSubject",void 0),t([(0,_r(_d[6]).IsOptional)(),(0,_r(_d[4]).Type)(function(){return _r(_d[9]).CredentialSchema}),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[9]).CredentialSchema}),i("design:type",Object)],n.prototype,"credentialSchema",void 0),e.W3cCredential=n,e.IsCredentialType=r},1692,[7,1060,8,1693,626,1694,661,1010,1695,1696]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,i){var s,o=arguments.length,f=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,r,n,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(f=(o<3?s(f):o>3?s(r,n,f):s(r,n))||f);return o>3&&f&&Object.defineProperty(r,n,f),f},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsIssuer=e.IssuerTransformer=e.Issuer=void 0;var n=_r(_d[0])(function t(r){_r(_d[1])(this,t),r&&(this.id=r.id)});t([(0,_r(_d[2]).IsUri)(),r("design:type",String)],n.prototype,"id",void 0),e.Issuer=n,e.IssuerTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var r=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?(0,_r(_d[4]).isString)(r)?r:(0,_r(_d[3]).plainToInstance)(n,r):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?(0,_r(_d[4]).isString)(r)?r:(0,_r(_d[3]).instanceToPlain)(r):r})},e.IsIssuer=function(t){return(0,_r(_d[4]).ValidateBy)({name:'IsIssuer',validator:{validate:function(t){return'string'==typeof t?_r(_d[2]).UriValidator.test(t):!!(0,_r(_d[4]).isInstance)(t,n)&&_r(_d[2]).UriValidator.test(t.id)},defaultMessage:(0,_r(_d[4]).buildMessage)(function(t){return t+'$property must be a string or an object with an id property'},t)}},t)}},1693,[8,7,1010,626,661]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IsJsonLdContext=void 0,e.IsJsonLdContext=function(t){return(0,r(d[0]).ValidateBy)({name:'IsJsonLdContext',validator:{validate:function(t){return Array.isArray(t)?t.every(function(t){return(0,r(d[0]).isString)(t)&&(0,r(d[0]).isURL)(t)})&&t[0]===r(d[1]).CREDENTIALS_CONTEXT_V1_URL:'object'==typeof t},defaultMessage:(0,r(d[0]).buildMessage)(function(t){return t+'$property must be an array of strings or a JSON-LD context definition'},t)}},t)}},1694,[661,1060]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var o,c=arguments.length,f=c<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,n,r,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(f=(c<3?o(f):c>3?o(n,r,f):o(n,r))||f);return c>3&&f&&Object.defineProperty(n,r,f),f},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialSubjectTransformer=e.CredentialSubject=void 0;var r=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.id=n.id)});t([(0,_r(_d[2]).IsUri)(),n("design:type",String)],r.prototype,"id",void 0),e.CredentialSubject=r,e.CredentialSubjectTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var n=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?(0,_r(_d[4]).isString)(n)?n:(0,_r(_d[3]).plainToInstance)(r,n):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?(0,_r(_d[4]).isString)(n)?n:(0,_r(_d[3]).instanceToPlain)(n):n})}},1695,[8,7,1010,626,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,o){var n,c=arguments.length,f=c<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,i,r,o);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(f=(c<3?n(f):c>3?n(i,r,f):n(i,r))||f);return c>3&&f&&Object.defineProperty(i,r,f),f},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialSchema=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.type=i.type)});t([(0,_r(_d[2]).IsUri)(),i("design:type",String)],r.prototype,"id",void 0),t([(0,_r(_d[3]).IsString)(),i("design:type",String)],r.prototype,"type",void 0),e.CredentialSchema=r},1696,[8,7,1010,661]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var r,p=arguments.length,s=p<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(s=(p<3?r(s):p>3?r(i,o,s):r(i,o))||s);return p>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonLdCredentialDetailOptions=e.JsonLdCredentialDetailCredentialStatus=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.type=i.type)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],o.prototype,"type",void 0),e.JsonLdCredentialDetailCredentialStatus=o;var n=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.proofPurpose=i.proofPurpose,this.created=i.created,this.domain=i.domain,this.challenge=i.challenge,this.credentialStatus=i.credentialStatus,this.proofType=i.proofType)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"proofPurpose",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"created",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"domain",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),i("design:type",String)],n.prototype,"challenge",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],n.prototype,"proofType",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsObject)(),i("design:type",o)],n.prototype,"credentialStatus",void 0),e.JsonLdCredentialDetailOptions=n},1697,[8,7,661]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,u){void 0===u&&(u=o);var c=Object.getOwnPropertyDescriptor(n,o);c&&("get"in c?n.__esModule:!c.writable&&!c.configurable)||(c={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,u,c)}:function(t,n,o,u){void 0===u&&(u=o),t[u]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var u in n)"default"===u||Object.prototype.hasOwnProperty.call(o,u)||t(o,n,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureSuiteToken=e.orArrayToArray=e.w3cDate=void 0,n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),Object.defineProperty(e,"w3cDate",{enumerable:!0,get:function(){return r(d[4]).w3cDate}}),Object.defineProperty(e,"orArrayToArray",{enumerable:!0,get:function(){return r(d[4]).orArrayToArray}}),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),Object.defineProperty(e,"SignatureSuiteToken",{enumerable:!0,get:function(){return r(d[8]).SignatureSuiteToken}}),n(r(d[9]),e)},1698,[1699,1787,1794,1775,1774,1799,1060,1802,1789,1795]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,n){t[r]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(t,r,n){return Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,n){return t[r]=n}}function d(t,r,n,o){var s=r&&r.prototype instanceof y?r:y,u=Object.create(s.prototype),c=new R(o||[]);return i(u,"_invoke",{value:k(t,n,c)}),u}function p(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=d;var h={};function y(){}function v(){}function w(){}var x={};f(x,u,function(){return this});var b=Object.getPrototypeOf,C=b&&b(b(_([])));C&&C!==n&&o.call(C,u)&&(x=C);var P=w.prototype=y.prototype=Object.create(x);function L(t){["next","throw","return"].forEach(function(r){f(t,r,function(t){return this._invoke(r,t)})})}function T(t,r){function n(i,s,u,c){var l=p(t[i],t,s);if("throw"!==l.type){var f=l.arg,d=f.value;return d&&"object"==typeof d&&o.call(d,"__await")?r.resolve(d.__await).then(function(t){n("next",t,u,c)},function(t){n("throw",t,u,c)}):r.resolve(d).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,c)})}c(l.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,i){n(t,o,r,i)})}return s=s?s.then(i,i):i()}})}function k(t,r,n){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return E()}for(n.method=i,n.arg=s;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,r,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function S(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,S(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var s=i.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function M(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function _(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n=0;--i){var s=this.tryEntries[i],u=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),l=o.call(s,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}var r=this&&this.__decorate||function(t,r,n,o){var i,s=arguments.length,u=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,r,n,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(u=(s<3?i(u):s>3?i(r,n,u):i(r,n))||u);return s>3&&u&&Object.defineProperty(r,n,u),u},n=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.W3cCredentialService=void 0;var i=o(_r(_d[0])),s=o(_r(_d[1])),u=(function(){function r(t,n,o){_r(_d[2])(this,r),this.w3cCredentialRepository=t,this.signatureSuiteRegistry=n,this.w3cVcModuleConfig=o}return _r(_d[3])(r,[{key:"signCredential",value:function(r,n){var o,i,u,c,l,f,d,p;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return i=(0,_r(_d[4]).createWalletKeyPairClass)(r.wallet),h.next=3,t().awrap(this.getPublicKeyFromVerificationMethod(r,n.verificationMethod));case 3:if(u=h.sent,(c=this.signatureSuiteRegistry.getByProofType(n.proofType)).keyTypes.includes(u.keyType)){h.next=7;break}throw new(_r(_d[5]).AriesFrameworkError)('The key type of the verification method does not match the suite');case 7:return l=new i({controller:n.credential.issuerId,id:n.verificationMethod,key:u,wallet:r.wallet}),f=c.suiteClass,d=new f({key:l,LDKeyClass:i,proof:{verificationMethod:n.verificationMethod},useNativeCanonize:!1,date:null!==(o=n.created)&&void 0!==o?o:(0,_r(_d[6]).w3cDate)()}),h.next=12,t().awrap(s.default.issue({credential:_r(_d[7]).JsonTransformer.toJSON(n.credential),suite:d,purpose:n.proofPurpose,documentLoader:this.w3cVcModuleConfig.documentLoader(r)}));case 12:return p=h.sent,h.abrupt("return",_r(_d[7]).JsonTransformer.fromJSON(p,_r(_d[8]).W3cVerifiableCredential));case 14:case"end":return h.stop()}},null,this,null,Promise)}},{key:"verifyCredential",value:function(r,n){var o,i,u;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=this.getSignatureSuitesForCredential(r,n.credential),i={credential:_r(_d[7]).JsonTransformer.toJSON(n.credential),suite:o,documentLoader:this.w3cVcModuleConfig.documentLoader(r)},n.proofPurpose&&(i.purpose=n.proofPurpose),c.next=5,t().awrap(s.default.verifyCredential(i));case 5:return u=c.sent,c.abrupt("return",u);case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createPresentation",value:function(r){var n;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return Array.isArray(r.credentials)||(r.credentials=[r.credentials]),n=s.default.createPresentation({verifiableCredential:r.credentials.map(function(t){return _r(_d[7]).JsonTransformer.toJSON(t)}),id:r.id,holder:r.holderUrl}),t.abrupt("return",_r(_d[7]).JsonTransformer.fromJSON(n,_r(_d[9]).W3cPresentation));case 3:case"end":return t.stop()}},null,null,null,Promise)}},{key:"signPresentation",value:function(r,n){var o,i,u,c,l,f,d,p;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(o=(0,_r(_d[4]).createWalletKeyPairClass)(r.wallet),i=this.signatureSuiteRegistry.getByProofType(n.signatureType)){h.next=4;break}throw new(_r(_d[5]).AriesFrameworkError)("The requested proofType "+n.signatureType+" is not supported");case 4:return h.next=6,t().awrap(this.getPublicKeyFromVerificationMethod(r,n.verificationMethod));case 6:if(u=h.sent,i.keyTypes.includes(u.keyType)){h.next=9;break}throw new(_r(_d[5]).AriesFrameworkError)('The key type of the verification method does not match the suite');case 9:return c=this.w3cVcModuleConfig.documentLoader(r),h.next=12,t().awrap(c(n.verificationMethod));case 12:return l=h.sent.document,f=new o({controller:l.controller,id:n.verificationMethod,key:u,wallet:r.wallet}),d=new i.suiteClass({LDKeyClass:o,proof:{verificationMethod:n.verificationMethod},date:(new Date).toISOString(),key:f,useNativeCanonize:!1}),h.next=17,t().awrap(s.default.signPresentation({presentation:_r(_d[7]).JsonTransformer.toJSON(n.presentation),suite:d,challenge:n.challenge,documentLoader:this.w3cVcModuleConfig.documentLoader(r)}));case 17:return p=h.sent,h.abrupt("return",_r(_d[7]).JsonTransformer.fromJSON(p,_r(_d[10]).W3cVerifiablePresentation));case 19:case"end":return h.stop()}},null,this,null,Promise)}},{key:"verifyPresentation",value:function(r,n){var o,i,u,c,l,f,d,p,h=this;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:return o=(0,_r(_d[4]).createWalletKeyPairClass)(r.wallet),i=n.presentation.proof,Array.isArray(i)||(i=[i]),n.purpose&&(i=i.filter(function(t){return t.proofPurpose===n.purpose.term})),u=i.map(function(t){return new(0,h.signatureSuiteRegistry.getByProofType(t.type).suiteClass)({LDKeyClass:o,proof:{verificationMethod:t.verificationMethod},date:t.created,useNativeCanonize:!1})}),c=Array.isArray(n.presentation.verifiableCredential)?n.presentation.verifiableCredential:[n.presentation.verifiableCredential],l=c.map(function(t){return h.getSignatureSuitesForCredential(r,t)}),f=u.concat.apply(u,_r(_d[11])(l)),d={presentation:_r(_d[7]).JsonTransformer.toJSON(n.presentation),suite:f,challenge:n.challenge,documentLoader:this.w3cVcModuleConfig.documentLoader(r)},n.purpose&&(d.presentationPurpose=n.purpose),y.next=12,t().awrap(s.default.verify(d));case 12:return p=y.sent,y.abrupt("return",p);case 14:case"end":return y.stop()}},null,this,null,Promise)}},{key:"deriveProof",value:function(r,n){var o,i,s,u;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=this.signatureSuiteRegistry.getByProofType('BbsBlsSignatureProof2020'),i=o.suiteClass,s=new i,c.next=5,t().awrap((0,_r(_d[12]).deriveProof)(_r(_d[7]).JsonTransformer.toJSON(n.credential),n.revealDocument,{suite:s,documentLoader:this.w3cVcModuleConfig.documentLoader(r)}));case 5:return u=c.sent,c.abrupt("return",u);case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"getPublicKeyFromVerificationMethod",value:function(r,n){var o,i,s,u;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=this.w3cVcModuleConfig.documentLoader(r),c.next=3,t().awrap(o(n));case 3:return i=c.sent,s=_r(_d[7]).JsonTransformer.fromJSON(i.document,_r(_d[13]).VerificationMethod),u=(0,_r(_d[14]).getKeyDidMappingByVerificationMethod)(s),c.abrupt("return",u.getKeyFromVerificationMethod(s));case 7:case"end":return c.stop()}},null,this,null,Promise)}},{key:"storeCredential",value:function(r,n){var o,s;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t().awrap(i.default.expand(_r(_d[7]).JsonTransformer.toJSON(n.credential),{documentLoader:this.w3cVcModuleConfig.documentLoader(r)}));case 2:return o=u.sent[0]['@type'],s=new(_r(_d[15]).W3cCredentialRecord)({tags:{expandedTypes:(0,_r(_d[6]).orArrayToArray)(o)},credential:n.credential}),u.next=6,t().awrap(this.w3cCredentialRepository.save(r,s));case 6:return u.abrupt("return",s);case 7:case"end":return u.stop()}},null,this,null,Promise)}},{key:"removeCredentialRecord",value:function(r,n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.w3cCredentialRepository.getById(r,n));case 2:return o=i.sent,i.next=5,t().awrap(this.w3cCredentialRepository.delete(r,o));case 5:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getAllCredentialRecords",value:function(r){return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t().awrap(this.w3cCredentialRepository.getAll(r));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getCredentialRecordById",value:function(r,n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.w3cCredentialRepository.getById(r,n));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findCredentialRecordsByQuery",value:function(r,n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.w3cCredentialRepository.findByQuery(r,n));case 2:return o=i.sent,i.abrupt("return",o.map(function(t){return t.credential}));case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getVerificationMethodTypesByProofType",value:function(t){return this.signatureSuiteRegistry.getByProofType(t).verificationMethodTypes}},{key:"getKeyTypesByProofType",value:function(t){return this.signatureSuiteRegistry.getByProofType(t).keyTypes}},{key:"findCredentialRecordByQuery",value:function(r,n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.w3cCredentialRepository.findSingleByQuery(r,n));case 2:return o=i.sent,i.abrupt("return",null===o||void 0===o?void 0:o.credential);case 4:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getSignatureSuitesForCredential",value:function(t,r){var n=this,o=(0,_r(_d[4]).createWalletKeyPairClass)(t.wallet),i=r.proof;return Array.isArray(i)||(i=[i]),i.map(function(t){var r,i=null===(r=n.signatureSuiteRegistry.getByProofType(t.type))||void 0===r?void 0:r.suiteClass;if(i)return new i({LDKeyClass:o,proof:{verificationMethod:t.verificationMethod},date:t.created,useNativeCanonize:!1})})}}]),r})();u=r([(0,_r(_d[16]).injectable)(),n("design:paramtypes",[_r(_d[15]).W3cCredentialRepository,_r(_d[17]).SignatureSuiteRegistry,_r(_d[18]).W3cVcModuleConfig])],u),e.W3cCredentialService=u},1699,[1700,1737,7,8,1772,611,1774,992,1775,1780,1781,42,1785,1419,1078,1786,1019,1789,1791]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=t(r(d[0]));e.default=u.default},1700,[1701]); +__d(function(g,r,_i2,a,m,e,d){var t=["documentLoader"];function n(){"use strict";n=function(){return t};var t={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function h(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new D(i||[]);return c(s,"_invoke",{value:R(t,o,l)}),s}function x(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var v={};function w(){}function y(){}function b(){}var k={};f(k,s,function(){return this});var L=Object.getPrototypeOf,C=L&&L(L(_([])));C&&C!==o&&i.call(C,s)&&(k=C);var E=b.prototype=w.prototype=Object.create(k);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){function o(c,u,s,l){var p=x(t[c],t,u);if("throw"!==p.type){var f=p.arg,h=f.value;return h&&"object"==typeof h&&i.call(h,"__await")?n.resolve(h.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(h).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(p.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function R(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return S()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=P(s,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var p=x(t,n,o);if("normal"===p.type){if(i=o.done?"completed":"suspendedYield",p.arg===v)continue;return{value:p.arg,done:o.done}}"throw"===p.type&&(i="completed",o.method="throw",o.arg=p.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var c=x(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,v;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function F(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function _(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),p=i.call(u,"finallyLoc");if(l&&p){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),N(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;N(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:_(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}var o=function(o){var i={},c=new(r(d[0]))({max:100});function u(n,i){var c=i.documentLoader,u=void 0===c?o.documentLoader:c,s=r(d[21])(i,t);return r(d[9])({},{documentLoader:u},s,n)}return o.compact=function(t,i,s){var l,p,f,h,x,v,w,y,b,k,L=arguments;return n().async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(L.length<2)){C.next=2;break}throw new TypeError('Could not compact, too few arguments.');case 2:if(null!==i){C.next=4;break}throw new(r(d[1]))('The compaction context must not be null.','jsonld.CompactError',{code:'invalid local context'});case 4:if(null!==t){C.next=6;break}return C.abrupt("return",null);case 6:if((s=u(s,{base:r(d[2]).isString(t)?t:'',compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new(r(d[3]).IdentifierIssuer)('_:b'),contextResolver:new(r(d[4]))({sharedCache:c})})).link&&(s.skipExpansion=!0),s.compactToRelative||delete s.base,!s.skipExpansion){C.next=13;break}l=t,C.next=16;break;case 13:return C.next=15,n().awrap(o.expand(t,s));case 15:l=C.sent;case 16:return C.next=18,n().awrap(o.processContext(r(d[5]).getInitialContext(s),i,s));case 18:return p=C.sent,C.next=21,n().awrap(r(d[6]).compact({activeCtx:p,element:l,options:s,compactionMap:s.compactionMap}));case 21:f=C.sent,s.compactArrays&&!s.graph&&r(d[2]).isArray(f)?1===f.length?f=f[0]:0===f.length&&(f={}):s.graph&&r(d[2]).isObject(f)&&(f=[f]),r(d[2]).isObject(i)&&'@context'in i&&(i=i['@context']),i=r(d[3]).clone(i),r(d[2]).isArray(i)||(i=[i]),h=i,i=[];for(x=0;x0)&&i.push(h[x]);if(v=i.length>0,1===i.length&&(i=i[0]),r(d[2]).isArray(f))w=r(d[6]).compactIri({activeCtx:p,iri:'@graph',relativeTo:{vocab:!0}}),y=f,f={},v&&(f['@context']=i),f[w]=y;else if(r(d[2]).isObject(f)&&v)for(k in b=f,f={'@context':i},b)f[k]=b[k];return C.abrupt("return",f);case 33:case"end":return C.stop()}},null,null,null,Promise)},o.expand=function(t,i){var s,l,p,f,h,x,v,w,y,b,k=arguments;return n().async(function(L){for(;;)switch(L.prev=L.next){case 0:if(!(k.length<1)){L.next=2;break}throw new TypeError('Could not expand, too few arguments.');case 2:if(!1===(i=u(i,{keepFreeFloatingNodes:!1,contextResolver:new(r(d[4]))({sharedCache:c})})).expansionMap&&(i.expansionMap=void 0),s={},l=[],'expandContext'in i&&(p=r(d[3]).clone(i.expandContext),r(d[2]).isObject(p)&&'@context'in p?s.expandContext=p:s.expandContext={'@context':p},l.push(s.expandContext)),r(d[2]).isString(t)){L.next=11;break}s.input=r(d[3]).clone(t),L.next=17;break;case 11:return L.next=13,n().awrap(o.get(t,i));case 13:h=L.sent,f=h.documentUrl,s.input=h.document,h.contextUrl&&(s.remoteContext={'@context':h.contextUrl},l.push(s.remoteContext));case 17:'base'in i||(i.base=f||''),x=r(d[5]).getInitialContext(i),v=0,w=l;case 20:if(!(vthis[t])return w(this,this[v].get(s)),!1;var b=this[v].get(s).value;return this[o]&&(this[l]||this[o](s,b.value)),b.now=k,b.maxAge=c,b.value=y,this[n]+=p-b.length,b.length=p,this.get(s),x(this),!0}var S=new A(s,y,p,k,c);return S.length>this[t]?(this[o]&&this[o](s,y),!1):(this[n]+=S.length,this[f].unshift(S),this[v].set(s,this[f].head),x(this),!0)}},{key:"has",value:function(t){if(!this[v].has(t))return!1;var n=this[v].get(t).value;return!b(this,n)}},{key:"get",value:function(t){return p(this,t,!0)}},{key:"peek",value:function(t){return p(this,t,!1)}},{key:"pop",value:function(){var t=this[f].tail;return t?(w(this,t),t.value):null}},{key:"del",value:function(t){w(this,this[v].get(t))}},{key:"load",value:function(t){this.reset();for(var n=Date.now(),u=t.length-1;u>=0;u--){var s=t[u],h=s.e||0;if(0===h)this.set(s.k,s.v);else{var o=h-n;o>0&&this.set(s.k,s.v,o)}}}},{key:"prune",value:function(){var t=this;this[v].forEach(function(n,u){return p(t,u,!1)})}}]),k})(),p=function(t,n,u){var h=t[v].get(n);if(h){var o=h.value;if(b(t,o)){if(w(t,h),!t[s])return}else u&&(t[y]&&(h.value.now=Date.now()),t[f].unshiftNode(h));return o.value}},b=function(t,n){if(!n||!n.maxAge&&!t[h])return!1;var u=Date.now()-n.now;return n.maxAge?u>n.maxAge:t[h]&&u>t[h]},x=function(u){if(u[n]>u[t])for(var s=u[f].tail;u[n]>u[t]&&null!==s;){var h=s.prev;w(u,s),s=h}},w=function(t,u){if(u){var s=u.value;t[o]&&t[o](s.key,s.value),t[n]-=s.length,t[v].delete(s.key),t[f].removeNode(u)}},A=r(d[1])(function t(n,u,s,h,o){r(d[0])(this,t),this.key=n,this.value=u,this.length=s,this.now=h,this.maxAge=o||0}),S=function(t,n,u,h){var o=u.value;b(t,o)&&(w(t,u),t[s]||(o=void 0)),o&&n.call(h,o.value,o.key,t)};m.exports=k},1702,[7,8,1703]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(i){var n=this;if(n instanceof t||(n=new t),n.tail=null,n.head=null,n.length=0,i&&'function'==typeof i.forEach)i.forEach(function(t){n.push(t)});else if(arguments.length>0)for(var h=0,l=arguments.length;h1)n=i;else{if(!this.head)throw new TypeError('Reduce of empty list with no initial value');h=this.head.next,n=this.head.value}for(var l=0;null!==h;l++)n=t(n,h.value,l),h=h.next;return n},t.prototype.reduceReverse=function(t,i){var n,h=this.tail;if(arguments.length>1)n=i;else{if(!this.tail)throw new TypeError('Reduce of empty list with no initial value');h=this.tail.prev,n=this.tail.value}for(var l=this.length-1;null!==h;l--)n=t(n,h.value,l),h=h.prev;return n},t.prototype.toArray=function(){for(var t=new Array(this.length),i=0,n=this.head;null!==n;i++)t[i]=n.value,n=n.next;return t},t.prototype.toArrayReverse=function(){for(var t=new Array(this.length),i=0,n=this.tail;null!==n;i++)t[i]=n.value,n=n.prev;return t},t.prototype.slice=function(i,n){(n=n||this.length)<0&&(n+=this.length),(i=i||0)<0&&(i+=this.length);var h=new t;if(nthis.length&&(n=this.length);for(var l=0,s=this.head;null!==s&&lthis.length&&(n=this.length);for(var l=this.length,s=this.tail;null!==s&&l>n;l--)s=s.prev;for(;null!==s&&l>i;l--,s=s.prev)h.push(s.value);return h},t.prototype.splice=function(t,n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var h=0,l=this.head;null!==l&&h=0;--c){var u=this.tryEntries[c],h=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(f&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;P(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}m.exports=function(n){n.prototype[Symbol.iterator]=t().mark(function n(){var o;return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=this.head;case 1:if(!o){t.next=7;break}return t.next=4,o.value;case 4:o=o.next,t.next=1;break;case 7:case"end":return t.stop()}},n,this)})}},1704,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}m.exports=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'An unspecified JSON-LD error occurred.',n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'jsonld.Error',o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r(d[3])(this,u),(t=c.call(this,e)).name=n,t.message=e,t.details=o,t}return r(d[4])(u)})(r(d[5])(Error))},1705,[14,11,9,7,8,65]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.isArray=Array.isArray,t.isBoolean=function(t){return'boolean'==typeof t||'[object Boolean]'===Object.prototype.toString.call(t)},t.isDouble=function(n){return t.isNumber(n)&&(-1!==String(n).indexOf('.')||Math.abs(n)>=1e21)},t.isEmptyObject=function(n){return t.isObject(n)&&0===Object.keys(n).length},t.isNumber=function(t){return'number'==typeof t||'[object Number]'===Object.prototype.toString.call(t)},t.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},t.isObject=function(t){return'[object Object]'===Object.prototype.toString.call(t)},t.isString=function(t){return'string'==typeof t||'[object String]'===Object.prototype.toString.call(t)},t.isUndefined=function(t){return void 0===t}},1706,[]); +__d(function(g,r,_i,_a,m,_e,d){'use strict';function e(e,n){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=t(e))||n&&e&&"number"==typeof e.length){a&&(e=a);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n]*?>|"[^"]*?"|[^,])+/g,i=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,o=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,s={accept:'application/ld+json, application/json'},l={};function u(e,t){if(r(d[1]).isArray(t))for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).some(function(e){return'accept'===e.toLowerCase()}))throw new RangeError('Accept header may not be specified; only "'+s.accept+'" is supported.');return r(d[3])({Accept:s.accept},e)},l.parseLinkHeader=function(e){for(var t={},n=e.match(a),s=0;s0}return!1},l.hasValue=function(e,t,n){if(l.hasProperty(e,t)){var a=e[t],i=r(d[5]).isList(a);if(r(d[1]).isArray(a)||i){i&&(a=a['@list']);for(var o=0;o=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(l&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;z(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:G(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}var e;try{e=r(d[0])}catch(t){}var n={};m.exports=n,n.NQuads=r(d[1]),n.IdentifierIssuer=r(d[2]),n._rdfCanonizeNative=function(t){return t&&(e=t),e},n.canonize=function(o,i){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(Array.isArray(o)||(o=n.NQuads.legacyDatasetToQuads(o)),!i.useNative){t.next=5;break}if(e){t.next=4;break}throw new Error('rdf-canonize-native not available');case 4:return t.abrupt("return",new Promise(function(t,n){return e.canonize(o,i,function(e,o){return e?n(e):t(o)})}));case 5:if('URDNA2015'!==i.algorithm){t.next=7;break}return t.abrupt("return",new(r(d[3]))(i).main(o));case 7:if('URGNA2012'!==i.algorithm){t.next=9;break}return t.abrupt("return",new(r(d[4]))(i).main(o));case 9:if('algorithm'in i){t.next=11;break}throw new Error('No RDF Dataset Canonicalization algorithm specified.');case 11:throw new Error('Invalid RDF Dataset Canonicalization algorithm: '+i.algorithm);case 12:case"end":return t.stop()}},null,null,null,Promise)},n._canonizeSync=function(t,o){if(Array.isArray(t)||(t=n.NQuads.legacyDatasetToQuads(t)),o.useNative){if(e)return e.canonizeSync(t,o);throw new Error('rdf-canonize-native not available')}if('URDNA2015'===o.algorithm)return new(r(d[5]))(o).main(t);if('URGNA2012'===o.algorithm)return new(r(d[6]))(o).main(t);if(!('algorithm'in o))throw new Error('No RDF Dataset Canonicalization algorithm specified.');throw new Error('Invalid RDF Dataset Canonicalization algorithm: '+o.algorithm)}},1709,[616,1710,1711,1712,1715,1716,1717]); +__d(function(_g,r,_i,a,m,e,d){'use strict';function t(t,u){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||u&&t&&"number"==typeof t.length){o&&(t=o);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return u(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var u=0,o=new Array(n);u]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?))[ \\t]+(?:<([^:]+:[^>]*)>)[ \\t]+(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?)|(?:\"([^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"(?:(?:\\^\\^(?:<([^:]+:[^>]*)>))|(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*)))?))[ \\t]*(?:\\.|(?:(?:(?:<([^:]+:[^>]*)>)|(_:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9])(?:(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040.])*(?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd_0-9-\xb7\u0300-\u036f\u203f-\u2040]))?))[ \\t]*\\.))[ \\t]*$"),m.exports=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,null,[{key:"parse",value:function(n){for(var u,v=[],y={},f=0,b=t(n.split(c.eoln));!(u=b()).done;){var g=u.value;if(f++,!c.empty.test(g)){var h=g.match(c.quad);if(null===h)throw new Error('N-Quads parse error on line '+f+'.');var j={subject:null,predicate:null,object:null,graph:null};if(void 0!==h[1]?j.subject={termType:"NamedNode",value:h[1]}:j.subject={termType:"BlankNode",value:h[2]},j.predicate={termType:"NamedNode",value:h[3]},void 0!==h[4]?j.object={termType:"NamedNode",value:h[4]}:void 0!==h[5]?j.object={termType:"BlankNode",value:h[5]}:(j.object={termType:p,value:void 0,datatype:{termType:"NamedNode"}},void 0!==h[7]?j.object.datatype.value=h[7]:void 0!==h[8]?(j.object.datatype.value=o,j.object.language=h[8]):j.object.datatype.value=l,j.object.value=h[6].replace(s,function(t,n,u,o){if(n)switch(n){case't':return'\t';case'b':return'\b';case'n':return'\n';case'r':return'\r';case'f':return'\f';case'"':return'"';case'\'':return'\'';case'\\':return'\\'}if(u)return String.fromCharCode(parseInt(u,16));if(o)throw new Error('Unsupported U escape')})),void 0!==h[9]?j.graph={termType:"NamedNode",value:h[9]}:void 0!==h[10]?j.graph={termType:"BlankNode",value:h[10]}:j.graph={termType:"DefaultGraph",value:''},j.graph.value in y){for(var N,T=!0,A=y[j.graph.value],w=t(A);!(N=w()).done;){if(i(N.value,j)){T=!1;break}}T&&(A.push(j),v.push(j))}else y[j.graph.value]=[j],v.push(j)}}return v}},{key:"serialize",value:function(u){Array.isArray(u)||(u=n.legacyDatasetToQuads(u));for(var o,l=[],p=t(u);!(o=p()).done;){var c=o.value;l.push(n.serializeQuad(c))}return l.sort().join('')}},{key:"serializeQuad",value:function(t){var n=t.subject,u=t.predicate,p=t.object,c=t.graph,i='';return"NamedNode"===n.termType?i+="<"+n.value+">":i+=""+n.value,i+=" <"+u.value+"> ","NamedNode"===p.termType?i+="<"+p.value+">":"BlankNode"===p.termType?i+=p.value:(i+="\""+y(p.value)+"\"",p.datatype.value===o?p.language&&(i+="@"+p.language):p.datatype.value!==l&&(i+="^^<"+p.datatype.value+">")),"NamedNode"===c.termType?i+=" <"+c.value+">":"BlankNode"===c.termType&&(i+=" "+c.value),i+=' .\n'}},{key:"legacyDatasetToQuads",value:function(t){var n=[],u={'blank node':"BlankNode",IRI:"NamedNode",literal:p},c=function(c){t[c].forEach(function(t){var i={};for(var v in t){var y=t[v],s={termType:u[y.type],value:y.value};s.termType===p&&(s.datatype={termType:"NamedNode"},'datatype'in y&&(s.datatype.value=y.datatype),'language'in y?('datatype'in y||(s.datatype.value=o),s.language=y.language):'datatype'in y||(s.datatype.value=l)),i[v]=s}i.graph='@default'===c?{termType:"DefaultGraph",value:''}:{termType:c.startsWith('_:')?"BlankNode":"NamedNode",value:c},n.push(i)})};for(var i in t)c(i);return n}}]),n})();var v=/["\\\n\r]/g;function y(t){return t.replace(v,function(t){switch(t){case'"':return'\\"';case'\\':return'\\\\';case'\n':return'\\n';case'\r':return'\\r'}})}var s=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g},1710,[7,8]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=(function(){function t(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r(d[0])(this,t),this.prefix=n,this._existing=s,this.counter=u}return r(d[1])(t,[{key:"clone",value:function(){var n=this.prefix,s=this._existing,u=this.counter;return new t(n,new Map(s),u)}},{key:"getId",value:function(t){var n=t&&this._existing.get(t);if(n)return n;var s=this.prefix+this.counter;return this.counter++,t&&this._existing.set(t,s),s}},{key:"hasId",value:function(t){return this._existing.has(t)}},{key:"getOldIds",value:function(){return r(d[2])(this._existing.keys())}}]),t})()},1711,[7,8,42]); +__d(function(g,r,_i5,_a,m,e,d){'use strict';function t(){t=function(){return n};var n={},a=Object.prototype,o=a.hasOwnProperty,i=Object.defineProperty||function(t,n,a){t[n]=a.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function l(t,n,a){return Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,a){return t[n]=a}}function f(t,n,a,o){var s=n&&n.prototype instanceof y?n:y,u=Object.create(s.prototype),c=new P(o||[]);return i(u,"_invoke",{value:L(t,a,c)}),u}function p(t,n,a){try{return{type:"normal",arg:t.call(n,a)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var v={};function y(){}function b(){}function k(){}var x={};l(x,u,function(){return this});var w=Object.getPrototypeOf,I=w&&w(w(O([])));I&&I!==a&&o.call(I,u)&&(x=I);var N=k.prototype=y.prototype=Object.create(x);function _(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function a(i,s,u,c){var h=p(t[i],t,s);if("throw"!==h.type){var l=h.arg,f=l.value;return f&&"object"==typeof f&&o.call(f,"__await")?n.resolve(f.__await).then(function(t){a("next",t,u,c)},function(t){a("throw",t,u,c)}):n.resolve(f).then(function(t){l.value=t,u(l)},function(t){return a("throw",t,u,c)})}c(h.arg)}var s;i(this,"_invoke",{value:function(t,o){function i(){return new n(function(n,i){a(t,o,n,i)})}return s=s?s.then(i,i):i()}})}function L(t,n,a){var o="suspendedStart";return function(i,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw s;return q()}for(a.method=i,a.arg=s;;){var u=a.delegate;if(u){var c=E(u,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===o)throw o="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);o="executing";var h=p(t,n,a);if("normal"===h.type){if(o=a.done?"completed":"suspendedYield",h.arg===v)continue;return{value:h.arg,done:a.done}}"throw"===h.type&&(o="completed",a.method="throw",a.arg=h.arg)}}}function E(t,n){var a=n.method,o=t.iterator[a];if(void 0===o)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=void 0,E(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function B(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a=0;--i){var s=this.tryEntries[i],u=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var c=o.call(s,"catchLoc"),h=o.call(s,"finallyLoc");if(c&&h){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--n){var a=this.tryEntries[n];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),B(a),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc===t){var o=a.completion;if("throw"===o.type){var i=o.arg;B(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=void 0),v}},n}function n(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=a(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,n){if(t){if("string"==typeof t)return o(t,n);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var a=0,o=new Array(n);an.hash?1:0}m.exports=(function(){function a(){r(d[0])(this,a),this.name='URDNA2015',this.blankNodeInfo=new Map,this.canonicalIssuer=new(r(d[1]))('_:c14n'),this.hashAlgorithm='sha256',this.quads=null}return r(d[2])(a,[{key:"main",value:function(a){var o,s,u,c,h,l,f,p,v,y,b,k,x,w,I,N,_,j,L,E,T,B,P,O,q,A,R,S,F,Q,D,C,G,H,M,z,U;return t().async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:for(this.quads=a,o=n(a);!(s=o()).done;)u=s.value,this._addBlankNodeQuadInfo({quad:u,component:u.subject}),this._addBlankNodeQuadInfo({quad:u,component:u.object}),this._addBlankNodeQuadInfo({quad:u,component:u.graph});c=new Map,h=r(d[3])(this.blankNodeInfo.keys()),l=0,f=n(h);case 6:if((p=f()).done){Y.next=15;break}if(v=p.value,++l%100!=0){Y.next=11;break}return Y.next=11,t().awrap(this._yield());case 11:return Y.next=13,t().awrap(this._hashAndTrackBlankNode({id:v,hashToBlankNodes:c}));case 13:Y.next=6;break;case 15:y=r(d[3])(c.keys()).sort(),b=[],k=n(y);case 18:if((x=k()).done){Y.next=28;break}if(w=x.value,!((I=c.get(w)).length>1)){Y.next=24;break}return b.push(I),Y.abrupt("continue",26);case 24:N=I[0],this.canonicalIssuer.getId(N);case 26:Y.next=18;break;case 28:_=0,j=b;case 29:if(!(_f)){P.next=29;break}return I=!0,P.abrupt("break",31);case 29:P.next=23;break;case 31:if(!I){P.next=33;break}return P.abrupt("continue",13);case 33:L=0,E=w;case 34:if(!(L",k=B.issuer,!(0!==f.length&&x>f)){P.next=45;break}return I=!0,P.abrupt("break",48);case 45:L++,P.next=34;break;case 48:if(!I){P.next=50;break}return P.abrupt("continue",13);case 50:(0===f.length||x"}},{key:"createHashToRelated",value:function(a,o){var i,s,u,c,h,l;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:i=new Map,s=this.blankNodeInfo.get(a).quads,u=0,c=n(s);case 4:if((h=c()).done){f.next=13;break}if(l=h.value,++u%100!=0){f.next=9;break}return f.next=9,t().awrap(this._yield());case 9:return f.next=11,t().awrap(Promise.all([this._addRelatedBlankNodeHash({quad:l,component:l.subject,position:'s',id:a,issuer:o,hashToRelated:i}),this._addRelatedBlankNodeHash({quad:l,component:l.object,position:'o',id:a,issuer:o,hashToRelated:i}),this._addRelatedBlankNodeHash({quad:l,component:l.graph,position:'g',id:a,issuer:o,hashToRelated:i})]));case 11:f.next=4;break;case 13:return f.abrupt("return",i);case 14:case"end":return f.stop()}},null,this,null,Promise)}},{key:"_hashAndTrackBlankNode",value:function(n){var a,o,i,s;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return a=n.id,o=n.hashToBlankNodes,u.next=3,t().awrap(this.hashFirstDegreeQuads(a));case 3:i=u.sent,(s=o.get(i))?s.push(a):o.set(i,[a]);case 6:case"end":return u.stop()}},null,this,null,Promise)}},{key:"_addBlankNodeQuadInfo",value:function(t){var n=t.quad,a=t.component;if('BlankNode'===a.termType){var o=a.value,i=this.blankNodeInfo.get(o);i?i.quads.add(n):this.blankNodeInfo.set(o,{quads:new Set([n]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:function(n){var a,o,i,s,u,c,h,l,f;return t().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(a=n.quad,o=n.component,i=n.position,s=n.id,u=n.issuer,c=n.hashToRelated,'BlankNode'===o.termType&&o.value!==s){p.next=3;break}return p.abrupt("return");case 3:return h=o.value,p.next=6,t().awrap(this.hashRelatedBlankNode(h,a,u,i));case 6:l=p.sent,(f=c.get(l))?f.push(h):c.set(l,[h]);case 9:case"end":return p.stop()}},null,this,null,Promise)}},{key:"_useCanonicalId",value:function(t){var n=t.component;return'BlankNode'!==n.termType||n.value.startsWith(this.canonicalIssuer.prefix)?n:{termType:'BlankNode',value:this.canonicalIssuer.getId(n.value)}}},{key:"_yield",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){return setImmediate(t)}));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),a})()},1712,[7,1711,8,42,4,1710,1713,1714]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,h=Object.create(u.prototype),s=new T(i||[]);return c(h,"_invoke",{value:k(t,o,s)}),h}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,h,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(A([])));_&&_!==o&&i.call(_,h)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function S(t,n){function o(c,u,h,s){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,h,s)},function(t){o("throw",t,h,s)}):n.resolve(p).then(function(t){f.value=t,h(f)},function(t){return o("throw",t,h,s)})}s(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var s=G(h,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function A(t){if(t){var n=t[h];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],h=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(s&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),P(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;P(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}r(d[0]),m.exports=(function(){function n(t){if(r(d[1])(this,n),!r(d[2])||!r(d[2]).subtle)throw new Error('crypto.subtle not found.');if('sha256'===t)this.algorithm={name:'SHA-256'};else{if('sha1'!==t)throw new Error("Unsupported algorithm \""+t+"\".");this.algorithm={name:'SHA-1'}}this._content=''}return r(d[3])(n,[{key:"update",value:function(t){this._content+=t}},{key:"digest",value:function(){var n,o,i,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=(new TextEncoder).encode(this._content),u.t0=Uint8Array,u.next=4,t().awrap(r(d[2]).subtle.digest(this.algorithm,n));case 4:for(u.t1=u.sent,o=new u.t0(u.t1),i='',c=0;c=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);ou)&&(h&&c>0&&f>n[c-1]||!h&&cn[c+1])&&(u=f,l=c)}if(null===u)this.done=!0;else{var v=o.get(u)?l-1:l+1;n[l]=n[v],n[v]=u;for(var y,b=t(n);!(y=b()).done;){var p=y.value;p>u&&o.set(p,!o.get(p))}}return i}}]),n})()},1714,[7,8]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),l=new A(o||[]);return i(u,"_invoke",{value:O(t,n,l)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v={};function y(){}function b(){}function w(){}var x={};s(x,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(P([])));k&&k!==n&&o.call(k,u)&&(x=k);var E=w.prototype=y.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function n(i,c,u,l){var f=p(t[i],t,c);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,l)},function(t){n("throw",t,u,l)}):e.resolve(h).then(function(t){s.value=t,u(s)},function(t){return n("throw",t,u,l)})}l(f.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function O(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return G()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var l=N(u,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=p(t,e,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function N(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(l&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}function e(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,e){if(t){if("string"==typeof t)return o(t,e);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)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n=a.length?{done:!0}:{done:!1,value:a[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(a,t){if(a){if("string"==typeof a)return n(a,t);var o=Object.prototype.toString.call(a).slice(8,-1);return"Object"===o&&a.constructor&&(o=a.constructor.name),"Map"===o||"Set"===o?Array.from(a):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(a,t):void 0}}function n(a,t){(null==t||t>a.length)&&(t=a.length);for(var n=0,o=new Array(t);nt.hash?1:0}m.exports=(function(){function t(){r(d[0])(this,t),this.name='URDNA2015',this.blankNodeInfo=new Map,this.canonicalIssuer=new(r(d[1]))('_:c14n'),this.hashAlgorithm='sha256',this.quads=null}return r(d[2])(t,[{key:"main",value:function(t){this.quads=t;for(var n,s=a(t);!(n=s()).done;){var i=n.value;this._addBlankNodeQuadInfo({quad:i,component:i.subject}),this._addBlankNodeQuadInfo({quad:i,component:i.object}),this._addBlankNodeQuadInfo({quad:i,component:i.graph})}for(var h,u=new Map,l=a(r(d[3])(this.blankNodeInfo.keys()));!(h=l()).done;){var c=h.value;this._hashAndTrackBlankNode({id:c,hashToBlankNodes:u})}for(var v,f=[],p=a(r(d[3])(u.keys()).sort());!(v=p()).done;){var k=v.value,I=u.get(k);if(I.length>1)f.push(I);else{var y=I[0];this.canonicalIssuer.getId(y)}}for(var b=0,N=f;bl){b=!0;break}}if(!b){for(var B=0,_=y;B<_.length;B++){var T=_[B],q=this.hashNDegreeQuads(T,k);if(I+=k.getId(T),I+="<"+q.hash+">",k=q.issuer,0!==l.length&&I>l){b=!0;break}}b||(0===l.length||I"}},{key:"createHashToRelated",value:function(t,n){for(var o,s=new Map,i=a(this.blankNodeInfo.get(t).quads);!(o=i()).done;){var h=o.value;this._addRelatedBlankNodeHash({quad:h,component:h.subject,position:'s',id:t,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:h,component:h.object,position:'o',id:t,issuer:n,hashToRelated:s}),this._addRelatedBlankNodeHash({quad:h,component:h.graph,position:'g',id:t,issuer:n,hashToRelated:s})}return s}},{key:"_hashAndTrackBlankNode",value:function(a){var t=a.id,n=a.hashToBlankNodes,o=this.hashFirstDegreeQuads(t),s=n.get(o);s?s.push(t):n.set(o,[t])}},{key:"_addBlankNodeQuadInfo",value:function(a){var t=a.quad,n=a.component;if('BlankNode'===n.termType){var o=n.value,s=this.blankNodeInfo.get(o);s?s.quads.add(t):this.blankNodeInfo.set(o,{quads:new Set([t]),hash:null})}}},{key:"_addRelatedBlankNodeHash",value:function(a){var t=a.quad,n=a.component,o=a.position,s=a.id,i=a.issuer,h=a.hashToRelated;if('BlankNode'===n.termType&&n.value!==s){var u=n.value,l=this.hashRelatedBlankNode(u,t,i,o),c=h.get(l);c?c.push(u):h.set(l,[u])}}},{key:"_useCanonicalId",value:function(a){var t=a.component;return'BlankNode'!==t.termType||t.value.startsWith(this.canonicalIssuer.prefix)?t:{termType:'BlankNode',value:this.canonicalIssuer.getId(t.value)}}}]),t})()},1716,[7,1711,8,42,4,1710,1713,1714]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function e(e,n){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=t(e))||n&&e&&"number"==typeof e.length){o&&(e=o);var u=0;return function(){return u>=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1||!('@id'in n))},n.isSubjectReference=function(n){return r(d[0]).isObject(n)&&1===Object.keys(n).length&&'@id'in n},n.isValue=function(n){return r(d[0]).isObject(n)&&'@value'in n},n.isList=function(n){return r(d[0]).isObject(n)&&'@list'in n},n.isGraph=function(n){return r(d[0]).isObject(n)&&'@graph'in n&&1===Object.keys(n).filter(function(n){return'@id'!==n&&'@index'!==n}).length},n.isSimpleGraph=function(t){return n.isGraph(t)&&!('@id'in t)},n.isBlankNode=function(n){return!!r(d[0]).isObject(n)&&('@id'in n?0===n['@id'].indexOf('_:'):0===Object.keys(n).length||!('@value'in n||'@set'in n||'@list'in n))}},1718,[1706]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof x?n:x,u=Object.create(s.prototype),l=new A(i||[]);return c(u,"_invoke",{value:k(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function x(){}function w(){}function b(){}var L={};f(L,u,function(){return this});var O=Object.getPrototypeOf,j=O&&O(O(P([])));j&&j!==o&&i.call(j,u)&&(L=j);var S=b.prototype=x.prototype=Object.create(L);function C(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function _(t,n){function o(c,s,u,l){var h=v(t[c],t,s);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){f.value=t,u(f)},function(t){return o("throw",t,u,l)})}l(h.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return R()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=E(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function E(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,E(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function U(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),h=i.call(s,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),U(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;U(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o10)){h.next=3;break}throw new(r(d[7]))('Maximum number of @context URLs exceeded.','jsonld.ContextUrlError',{code:'json-ld-1.0'===o.processingMode?'loading remote context failed':'context overflow',max:10});case 3:if(!s.has(i)){h.next=5;break}throw new(r(d[7]))('Cyclical @context URLs detected.','jsonld.ContextUrlError',{code:'json-ld-1.0'===o.processingMode?'recursive context inclusion':'context overflow',url:i});case 5:return s.add(i),h.prev=6,h.next=9,t().awrap(c(i));case 9:l=h.sent,u=l.document||null,r(d[2]).isString(u)&&(u=JSON.parse(u)),h.next=17;break;case 14:throw h.prev=14,h.t0=h.catch(6),new(r(d[7]))("Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.",'jsonld.InvalidUrl',{code:'loading remote context failed',url:i,cause:h.t0});case 17:if(r(d[2]).isObject(u)){h.next=19;break}throw new(r(d[7]))("Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object.",'jsonld.InvalidUrl',{code:'invalid remote context',url:i});case 19:return u='@context'in u?{'@context':u['@context']}:{'@context':{}},l.contextUrl&&(r(d[2]).isArray(u['@context'])||(u['@context']=[u['@context']]),u['@context'].push(l.contextUrl)),h.abrupt("return",{context:u,remoteDoc:l});case 22:case"end":return h.stop()}},null,null,[[6,14]],Promise)}}]),o})()},1719,[7,8,1706,1707,42,1720,1721,1705]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=10;m.exports=(function(){function c(n){var s=n.document;r(d[0])(this,c),this.document=s,this.cache=new(r(d[1]))({max:t})}return r(d[2])(c,[{key:"getProcessed",value:function(t){return this.cache.get(t)}},{key:"setProcessed",value:function(t,c){this.cache.set(t,c)}}]),c})()},1720,[7,1702,8]); +__d(function(g,r,_i,a,_m,e,d){'use strict';var t={};_m.exports=t,t.parsers={simple:{keys:['href','scheme','authority','path','query','fragment'],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:['href','protocol','scheme','authority','auth','user','password','hostname','port','path','directory','file','query','fragment'],regex:/^(([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},t.parse=function(n,u){for(var h={},o=t.parsers[u||'full'],s=o.regex.exec(n),i=o.keys.length;i--;)h[o.keys[i]]=void 0===s[i]?null:s[i];return('https'===h.scheme&&'443'===h.port||'http'===h.scheme&&'80'===h.port)&&(h.href=h.href.replace(':'+h.port,''),h.authority=h.authority.replace(':'+h.port,''),h.port=null),h.normalizedPath=t.removeDotSegments(h.path),h},t.prependBase=function(n,u){if(null===n)return u;if(t.isAbsolute(u))return u;n&&!r(d[0]).isString(n)||(n=t.parse(n||''));var h=t.parse(u),o={protocol:n.protocol||''};if(null!==h.authority)o.authority=h.authority,o.path=h.path,o.query=h.query;else if(o.authority=n.authority,''===h.path)o.path=n.path,null!==h.query?o.query=h.query:o.query=n.query;else{if(0===h.path.indexOf('/'))o.path=h.path;else{var s=n.path;((s=s.substr(0,s.lastIndexOf('/')+1)).length>0||n.authority)&&'/'!==s.substr(-1)&&(s+='/'),s+=h.path,o.path=s}o.query=h.query}''!==h.path&&(o.path=t.removeDotSegments(o.path));var i=o.protocol;return null!==o.authority&&(i+='//'+o.authority),i+=o.path,null!==o.query&&(i+='?'+o.query),null!==h.fragment&&(i+='#'+h.fragment),''===i&&(i='./'),i},t.removeBase=function(n,u){if(null===n)return u;n&&!r(d[0]).isString(n)||(n=t.parse(n||''));var h='';if(''!==n.href?h+=(n.protocol||'')+'//'+(n.authority||''):u.indexOf('//')&&(h+='//'),0!==u.indexOf(h))return u;for(var o=t.parse(u.substr(h.length)),s=n.normalizedPath.split('/'),i=o.normalizedPath.split('/'),l=o.fragment||o.query?0:1;s.length>0&&i.length>l&&s[0]===i[0];)s.shift(),i.shift();var p='';if(s.length>0){s.pop();for(var f=0;f0;){var h=n.shift(),o=0===n.length;'.'!==h?'..'!==h?u.push(h):(u.pop(),o&&u.push('')):o&&u.push('')}return'/'===t[0]&&u.length>0&&''!==u[0]&&u.unshift(''),1===u.length&&''===u[0]?'/':u.join('/')};var n=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;t.isAbsolute=function(t){return r(d[0]).isString(t)&&n.test(t)},t.isRelative=function(t){return r(d[0]).isString(t)}},1721,[1706]); +__d(function(g,r,_i2,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,s=Object.defineProperty||function(t,n,o){t[n]=o.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function v(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{v({},"")}catch(t){v=function(t,n,o){return t[n]=o}}function f(t,n,o,i){var c=n&&n.prototype instanceof h?n:h,l=Object.create(c.prototype),u=new J(i||[]);return s(l,"_invoke",{value:k(t,o,u)}),l}function x(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var y={};function h(){}function b(){}function w(){}var S={};v(S,l,function(){return this});var I=Object.getPrototypeOf,j=I&&I(I(M([])));j&&j!==o&&i.call(j,l)&&(S=j);var O=w.prototype=h.prototype=Object.create(S);function L(t){["next","throw","return"].forEach(function(n){v(t,n,function(t){return this._invoke(n,t)})})}function E(t,n){function o(s,c,l,u){var p=x(t[s],t,c);if("throw"!==p.type){var v=p.arg,f=v.value;return f&&"object"==typeof f&&i.call(f,"__await")?n.resolve(f.__await).then(function(t){o("next",t,l,u)},function(t){o("throw",t,l,u)}):n.resolve(f).then(function(t){v.value=t,l(v)},function(t){return o("throw",t,l,u)})}u(p.arg)}var c;s(this,"_invoke",{value:function(t,i){function s(){return new n(function(n,s){o(t,i,n,s)})}return c=c?c.then(s,s):s()}})}function k(t,n,o){var i="suspendedStart";return function(s,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===s)throw c;return A()}for(o.method=s,o.arg=c;;){var l=o.delegate;if(l){var u=N(l,o);if(u){if(u===y)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var p=x(t,n,o);if("normal"===p.type){if(i=o.done?"completed":"suspendedYield",p.arg===y)continue;return{value:p.arg,done:o.done}}"throw"===p.type&&(i="completed",o.method="throw",o.arg=p.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var s=x(i,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,y;var c=s.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function C(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function J(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function M(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o=0;--s){var c=this.tryEntries[s],l=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=i.call(c,"catchLoc"),p=i.call(c,"finallyLoc");if(u&&p){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),C(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var s=i.arg;C(o)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:M(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o0){var f=n.substr(0,v),x=n.substr(v+1);if('_'===f||0===x.indexOf('//'))return n;i&&i.hasOwnProperty(f)&&l.createTermDefinition({activeCtx:t,localCtx:i,term:f,defined:s,options:u});var y=t.mappings.get(f);if(y&&y._prefix)return y['@id']+x;if(r(d[4]).isAbsolute(n))return n}var h=!1;if(void 0!==u&&void 0!==u.typeExpansion&&(h=u.typeExpansion),o.vocab&&'@vocab'in t){var b=t['@vocab']+n,w=void 0;u&&u.expansionMap&&(w=u.expansionMap({prependedIri:{type:'@vocab',vocab:t['@vocab'],value:n,result:b,typeExpansion:h},activeCtx:t,options:u})),n=void 0!==w?w:b}else if(o.base){var S,I,j;'@base'in t?t['@base']?(j=r(d[4]).prependBase(u.base,t['@base']),S=r(d[4]).prependBase(j,n)):(j=t['@base'],S=n):(j=u.base,S=r(d[4]).prependBase(u.base,n)),u&&u.expansionMap&&(I=u.expansionMap({prependedIri:{type:'@base',base:j,value:n,result:S,typeExpansion:h},activeCtx:t,options:u})),n=void 0!==I?I:S}if(!r(d[4]).isAbsolute(n)&&u&&u.expansionMap){var O=u.expansionMap({relativeIri:n,activeCtx:t,typeExpansion:h,options:u});void 0!==O&&(n=O)}return n}function p(t,n){if(!t||'object'!=typeof t||!n||'object'!=typeof n)return t===n;var o=Array.isArray(t);if(o!==Array.isArray(n))return!1;if(o){if(t.length!==n.length)return!1;for(var i=0;i0,'@reverse'in n){if('@id'in n)throw new(r(d[2]))("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});if('@nest'in n)throw new(r(d[2]))("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});var E=n['@reverse'];if(!r(d[0]).isString(E))throw new(r(d[2]))('Invalid JSON-LD syntax; a @context @reverse value must be a string.','jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(!l.isKeyword(E)&&E.match(c))return console.warn("WARNING: values beginning with \"@\" are reserved for future use and ignored",{reverse:E}),void(w?o.mappings.set(s,w):o.mappings.delete(s));var k=u(o,E,{vocab:!0,base:!1},i,v,f);if(!r(d[4]).isAbsolute(k))throw new(r(d[2]))("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});I['@id']=k,I.reverse=!0}else if('@id'in n){var N=n['@id'];if(N&&!r(d[0]).isString(N))throw new(r(d[2]))("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(null===N)I['@id']=null;else{if(!l.isKeyword(N)&&N.match(c))return console.warn("WARNING: values beginning with \"@\" are reserved for future use and ignored",{id:N}),void(w?o.mappings.set(s,w):o.mappings.delete(s));if(N!==s){if(N=u(o,N,{vocab:!0,base:!1},i,v,f),!r(d[4]).isAbsolute(N)&&!l.isKeyword(N))throw new(r(d[2]))("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});if(s.match(/(?::[^:])|\//))if(u(o,s,{vocab:!0,base:!1},i,new Map(v).set(s,!0),f)!==N)throw new(r(d[2]))("Invalid JSON-LD syntax; term in form of IRI must expand to definition.",'jsonld.SyntaxError',{code:'invalid IRI mapping',context:i});I['@id']=N,I._prefix=S&&!I._termHasColon&&N.match(/[:\/\?#\[\]@]$/)}}}if(!('@id'in I))if(I._termHasColon){var D=s.substr(0,L);if(i.hasOwnProperty(D)&&l.createTermDefinition({activeCtx:o,localCtx:i,term:D,defined:v,options:f}),o.mappings.has(D)){var C=s.substr(L+1);I['@id']=o.mappings.get(D)['@id']+C}else I['@id']=s}else if('@type'===s)I['@id']=s;else{if(!('@vocab'in o))throw new(r(d[2]))('Invalid JSON-LD syntax; @context terms must define an @id.','jsonld.SyntaxError',{code:'invalid IRI mapping',context:i,term:s});I['@id']=o['@vocab']+s}if((!0===n['@protected']||!0===v.get('@protected')&&!1!==n['@protected'])&&(o.protected[s]=!0,I.protected=!0),v.set(s,!0),'@type'in n){var J=n['@type'];if(!r(d[0]).isString(J))throw new(r(d[2]))('Invalid JSON-LD syntax; an @context @type value must be a string.','jsonld.SyntaxError',{code:'invalid type mapping',context:i});if('@json'===J||'@none'===J){if(l.processingMode(o,1))throw new(r(d[2]))("Invalid JSON-LD syntax; an @context @type value must not be \""+J+"\" in JSON-LD 1.0 mode.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}else if('@id'!==J&&'@vocab'!==J){if(J=u(o,J,{vocab:!0,base:!1},i,v,f),!r(d[4]).isAbsolute(J))throw new(r(d[2]))("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i});if(0===J.indexOf('_:'))throw new(r(d[2]))("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}I['@type']=J}if('@container'in n){var M=r(d[0]).isString(n['@container'])?[n['@container']]:n['@container']||[],A=['@list','@set','@index','@language'],_=!0,P=M.includes('@set');if(l.processingMode(o,1.1)){if(A.push('@graph','@id','@type'),M.includes('@list')){if(1!==M.length)throw new(r(d[2]))("Invalid JSON-LD syntax; @context @container with @list must have no other values",'jsonld.SyntaxError',{code:'invalid container mapping',context:i})}else if(M.includes('@graph')){if(M.some(function(t){return'@graph'!==t&&'@id'!==t&&'@index'!==t&&'@set'!==t}))throw new(r(d[2]))("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set",'jsonld.SyntaxError',{code:'invalid container mapping',context:i})}else _&=M.length<=(P?2:1);if(M.includes('@type')&&(I['@type']=I['@type']||'@id',!['@id','@vocab'].includes(I['@type'])))throw new(r(d[2]))("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.",'jsonld.SyntaxError',{code:'invalid type mapping',context:i})}else _&=!r(d[0]).isArray(n['@container']),_&=M.length<=1;if(_&=M.every(function(t){return A.includes(t)}),!(_&=!(P&&M.includes('@list'))))throw new(r(d[2]))("Invalid JSON-LD syntax; @context @container value must be one of the following: "+A.join(', '),'jsonld.SyntaxError',{code:'invalid container mapping',context:i});if(I.reverse&&!M.every(function(t){return['@index','@set'].includes(t)}))throw new(r(d[2]))("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.",'jsonld.SyntaxError',{code:'invalid reverse property',context:i});I['@container']=M}if('@index'in n){if(!('@container'in n&&I['@container'].includes('@index')))throw new(r(d[2]))("Invalid JSON-LD syntax; @index without @index in @container: \""+n['@index']+"\" on term \""+s+"\".",'jsonld.SyntaxError',{code:'invalid term definition',context:i});if(!r(d[0]).isString(n['@index'])||0===n['@index'].indexOf('@'))throw new(r(d[2]))("Invalid JSON-LD syntax; @index must expand to an IRI: \""+n['@index']+"\" on term \""+s+"\".",'jsonld.SyntaxError',{code:'invalid term definition',context:i});I['@index']=n['@index']}if('@context'in n&&(I['@context']=n['@context']),'@language'in n&&!('@type'in n)){var R=n['@language'];if(null!==R&&!r(d[0]).isString(R))throw new(r(d[2]))("Invalid JSON-LD syntax; @context @language value must be a string or null.",'jsonld.SyntaxError',{code:'invalid language mapping',context:i});null!==R&&(R=R.toLowerCase()),I['@language']=R}if('@prefix'in n){if(s.match(/:|\//))throw new(r(d[2]))('Invalid JSON-LD syntax; @context @prefix used on a compact IRI term','jsonld.SyntaxError',{code:'invalid term definition',context:i});if(l.isKeyword(I['@id']))throw new(r(d[2]))('Invalid JSON-LD syntax; keywords may not be used as prefixes','jsonld.SyntaxError',{code:'invalid term definition',context:i});if('boolean'!=typeof n['@prefix'])throw new(r(d[2]))('Invalid JSON-LD syntax; @context value for @prefix must be boolean','jsonld.SyntaxError',{code:'invalid @prefix value',context:i});I._prefix=!0===n['@prefix']}if('@direction'in n){var T=n['@direction'];if(null!==T&&'ltr'!==T&&'rtl'!==T)throw new(r(d[2]))("Invalid JSON-LD syntax; @direction value must be null, \"ltr\", or \"rtl\".",'jsonld.SyntaxError',{code:'invalid base direction',context:i});I['@direction']=T}if('@nest'in n){var G=n['@nest'];if(!r(d[0]).isString(G)||'@nest'!==G&&0===G.indexOf('@'))throw new(r(d[2]))("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.",'jsonld.SyntaxError',{code:'invalid @nest value',context:i});I['@nest']=G}var K=I['@id'];if('@context'===K||'@preserve'===K)throw new(r(d[2]))('Invalid JSON-LD syntax; @context and @preserve cannot be aliased.','jsonld.SyntaxError',{code:'invalid keyword alias',context:i});if(w&&w.protected&&!y&&(o.protected[s]=!0,I.protected=!0,!p(w,I))){var B=f&&f.protectedMode||'error';if('error'===B)throw new(r(d[2]))("Invalid JSON-LD syntax; tried to redefine \""+s+"\" which is a protected term.",'jsonld.SyntaxError',{code:'protected term redefinition',context:i,term:s});if('warn'===B)return void console.warn('WARNING: protected term redefinition',{term:s});throw new(r(d[2]))('Invalid protectedMode.','jsonld.SyntaxError',{code:'invalid protected mode',context:i,term:s,protectedMode:B})}},l.expandIri=function(t,n,o,i){return u(t,n,o,void 0,void 0,i)},l.getInitialContext=function(t){var o=JSON.stringify({processingMode:t.processingMode}),i=s.get(o);if(i)return i;var c={processingMode:t.processingMode,mappings:new Map,inverse:null,getInverse:function(){if(this.inverse)return this.inverse;for(var t,o=this.inverse={},i=this.fastCurieMap={},s={},c=(this['@language']||'@none').toLowerCase(),v=this['@direction'],f=this.mappings,x=n(r(d[5])(f.keys()).sort(r(d[1]).compareShortestLeast));!(t=x()).done;){var y=t.value,h=f.get(y);if(null!==h){var b=h['@container']||'@none';if(b=[].concat(b).sort().join(''),null!==h['@id'])for(var w,S=r(d[1]).asArray(h['@id']),I=n(S);!(w=I()).done;){var j=w.value,O=o[j],L=l.isKeyword(j);if(O)L||h._termHasColon||s[j].push(y);else if(o[j]=O={},!L&&!h._termHasColon){s[j]=[y];var E={iri:j,terms:s[j]};j[0]in i?i[j[0]].push(E):i[j[0]]=[E]}if(O[b]||(O[b]={'@language':{},'@type':{},'@any':{}}),O=O[b],p(y,O['@any'],'@none'),h.reverse)p(y,O['@type'],'@reverse');else if('@none'===h['@type'])p(y,O['@any'],'@none'),p(y,O['@language'],'@none'),p(y,O['@type'],'@none');else if('@type'in h)p(y,O['@type'],h['@type']);else if('@language'in h&&'@direction'in h){var k=h['@language'],N=h['@direction'];p(y,O['@language'],k&&N?(k+"_"+N).toLowerCase():k?k.toLowerCase():N?"_"+N:'@null')}else'@language'in h?p(y,O['@language'],(h['@language']||'@null').toLowerCase()):'@direction'in h?h['@direction']?p(y,O['@language'],"_"+h['@direction']):p(y,O['@language'],'@none'):v?(p(y,O['@language'],"_"+v),p(y,O['@language'],'@none'),p(y,O['@type'],'@none')):(p(y,O['@language'],c),p(y,O['@language'],'@none'),p(y,O['@type'],'@none'))}}}for(var D in i)u(i,D,1);return o},clone:function(){var t={};t.mappings=r(d[1]).clone(this.mappings),t.clone=this.clone,t.inverse=null,t.getInverse=this.getInverse,t.protected=r(d[1]).clone(this.protected),this.previousContext&&(t.previousContext=this.previousContext.clone());t.revertToPreviousContext=this.revertToPreviousContext,'@base'in this&&(t['@base']=this['@base']);'@language'in this&&(t['@language']=this['@language']);'@vocab'in this&&(t['@vocab']=this['@vocab']);return t},revertToPreviousContext:function(){if(!this.previousContext)return this;return this.previousContext.clone()},protected:{}};return 1e4===s.size&&s.clear(),s.set(o,c),c;function u(t,o,i){for(var s,c,l,p=t[o],v=t[o]={},f=n(p);!(l=f()).done;){var x=l.value;(c=i>=(s=x.iri).length?'':s[i])in v?v[c].push(x):v[c]=[x]}for(var y in v)''!==y&&u(v,y,i+1)}function p(t,n,o){n.hasOwnProperty(o)||(n[o]=t)}},l.getContextValue=function(t,n,o){if(null===n){if('@context'===o)return;return null}if(t.mappings.has(n)){var i=t.mappings.get(n);if(r(d[0]).isUndefined(o))return i;if(i.hasOwnProperty(o))return i[o]}return'@language'===o&&o in t?t[o]:'@direction'===o&&o in t?t[o]:'@context'!==o?null:void 0},l.processingMode=function(t,n){return n.toString()>='1.1'?!t.processingMode||t.processingMode>='json-ld-'+n.toString():'json-ld-1.0'===t.processingMode},l.isKeyword=function(t){if(!r(d[0]).isString(t)||'@'!==t[0])return!1;switch(t){case'@base':case'@container':case'@context':case'@default':case'@direction':case'@embed':case'@explicit':case'@graph':case'@id':case'@included':case'@index':case'@json':case'@language':case'@list':case'@nest':case'@none':case'@omitDefault':case'@prefix':case'@preserve':case'@protected':case'@requireAll':case'@reverse':case'@set':case'@type':case'@value':case'@version':case'@vocab':return!0}return!1}},1722,[1706,1707,1705,31,1721,42]); +__d(function(g,r,_i4,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},i=Object.prototype,o=i.hasOwnProperty,c=Object.defineProperty||function(t,n,i){t[n]=i.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function v(t,n,i){return Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{v({},"")}catch(t){v=function(t,n,i){return t[n]=i}}function f(t,n,i,o){var s=n&&n.prototype instanceof y?n:y,u=Object.create(s.prototype),l=new E(o||[]);return c(u,"_invoke",{value:O(t,i,l)}),u}function h(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var x={};function y(){}function b(){}function k(){}var w={};v(w,u,function(){return this});var C=Object.getPrototypeOf,I=C&&C(C(S([])));I&&I!==i&&o.call(I,u)&&(w=I);var V=k.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach(function(n){v(t,n,function(t){return this._invoke(n,t)})})}function T(t,n){function i(c,s,u,l){var p=h(t[c],t,s);if("throw"!==p.type){var v=p.arg,f=v.value;return f&&"object"==typeof f&&o.call(f,"__await")?n.resolve(f.__await).then(function(t){i("next",t,u,l)},function(t){i("throw",t,u,l)}):n.resolve(f).then(function(t){v.value=t,u(v)},function(t){return i("throw",t,u,l)})}l(p.arg)}var s;c(this,"_invoke",{value:function(t,o){function c(){return new n(function(n,c){i(t,o,n,c)})}return s=s?s.then(c,c):c()}})}function O(t,n,i){var o="suspendedStart";return function(c,s){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===c)throw s;return _()}for(i.method=c,i.arg=s;;){var u=i.delegate;if(u){var l=L(u,i);if(l){if(l===x)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var p=h(t,n,i);if("normal"===p.type){if(o=i.done?"completed":"suspendedYield",p.arg===x)continue;return{value:p.arg,done:i.done}}"throw"===p.type&&(o="completed",i.method="throw",i.arg=p.arg)}}}function L(t,n){var i=n.method,o=t.iterator[i];if(void 0===o)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=void 0,L(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),x;var c=h(o,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,x;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,x):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,x)}function j(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,c=function n(){for(;++i=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),p=o.call(s,"finallyLoc");if(l&&p){if(this.prev=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var c=o.arg;P(i)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:S(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=void 0),x}},n}function n(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=i(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i1&&(j=Array.from(j).sort()),P=o,E=n(j);case 57:if((S=E()).done){Se.next=67;break}if(_=S.value,G=c.compactIri({activeCtx:P,iri:_,relativeTo:{vocab:!0}}),M=r(d[1]).getContextValue(O,G,'@context'),r(d[0]).isUndefined(M)){Se.next=65;break}return Se.next=64,t().awrap(r(d[1]).process({activeCtx:o,localCtx:M,options:f,propagate:!1}));case 64:o=Se.sent;case 65:Se.next=57;break;case 67:N=Object.keys(p).sort(),F=n(N);case 69:if((R=F()).done){Se.next=215;break}if(U=R.value,B=p[U],'@id'!==U){Se.next=78;break}return 1===(D=r(d[3]).asArray(B).map(function(t){return c.compactIri({activeCtx:o,iri:t,relativeTo:{vocab:!1},base:f.base})})).length&&(D=D[0]),J=c.compactIri({activeCtx:o,iri:'@id',relativeTo:{vocab:!0}}),T[J]=D,Se.abrupt("continue",213);case 78:if('@type'!==U){Se.next=87;break}return 1===(K=r(d[3]).asArray(B).map(function(t){return c.compactIri({activeCtx:O,iri:t,relativeTo:{vocab:!0}})})).length&&(K=K[0]),Y=c.compactIri({activeCtx:o,iri:'@type',relativeTo:{vocab:!0}}),W=r(d[1]).getContextValue(o,Y,'@container')||[],$=W.includes('@set')&&r(d[1]).processingMode(o,1.1),q=$||r(d[0]).isArray(K)&&0===B.length,r(d[3]).addValue(T,Y,K,{propertyIsArray:q}),Se.abrupt("continue",213);case 87:if('@reverse'!==U){Se.next=94;break}return Se.next=90,t().awrap(c.compact({activeCtx:o,activeProperty:'@reverse',element:B,options:f,compactionMap:x}));case 90:for(H in z=Se.sent)o.mappings.has(H)&&o.mappings.get(H).reverse&&(Q=z[H],X=r(d[1]).getContextValue(o,H,'@container')||[],Z=X.includes('@set')||!f.compactArrays,r(d[3]).addValue(T,H,Q,{propertyIsArray:Z}),delete z[H]);return Object.keys(z).length>0&&(ee=c.compactIri({activeCtx:o,iri:U,relativeTo:{vocab:!0}}),r(d[3]).addValue(T,ee,z)),Se.abrupt("continue",213);case 94:if('@preserve'!==U){Se.next=100;break}return Se.next=97,t().awrap(c.compact({activeCtx:o,activeProperty:l,element:B,options:f,compactionMap:x}));case 97:return te=Se.sent,r(d[0]).isArray(te)&&0===te.length||r(d[3]).addValue(T,U,te),Se.abrupt("continue",213);case 100:if('@index'!==U){Se.next=107;break}if(!(r(d[1]).getContextValue(o,l,'@container')||[]).includes('@index')){Se.next=104;break}return Se.abrupt("continue",213);case 104:return re=c.compactIri({activeCtx:o,iri:U,relativeTo:{vocab:!0}}),r(d[3]).addValue(T,re,B),Se.abrupt("continue",213);case 107:if('@graph'===U||'@list'===U||'@included'===U||!r(d[1]).isKeyword(U)){Se.next=111;break}return ne=c.compactIri({activeCtx:o,iri:U,relativeTo:{vocab:!0}}),r(d[3]).addValue(T,ne,B),Se.abrupt("continue",213);case 111:if(r(d[0]).isArray(B)){Se.next=113;break}throw new(r(d[4]))('JSON-LD expansion error; expanded value must be an array.','jsonld.SyntaxError');case 113:0===B.length&&(ae=c.compactIri({activeCtx:o,iri:U,value:B,relativeTo:{vocab:!0},reverse:A}),ie=o.mappings.has(ae)?o.mappings.get(ae)['@nest']:null,oe=T,ie&&(u(o,ie,f),r(d[0]).isObject(T[ie])||(T[ie]={}),oe=T[ie]),r(d[3]).addValue(oe,ae,B,{propertyIsArray:!0})),ce=n(B);case 115:if((se=ce()).done){Se.next=213;break}return ue=se.value,le=c.compactIri({activeCtx:o,iri:U,value:ue,relativeTo:{vocab:!0},reverse:A}),pe=o.mappings.has(le)?o.mappings.get(le)['@nest']:null,ve=T,pe&&(u(o,pe,f),r(d[0]).isObject(T[pe])||(T[pe]={}),ve=T[pe]),de=r(d[1]).getContextValue(o,le,'@container')||[],fe=r(d[2]).isGraph(ue),he=r(d[2]).isList(ue),xe=void 0,he?xe=ue['@list']:fe&&(xe=ue['@graph']),Se.next=128,t().awrap(c.compact({activeCtx:o,activeProperty:le,element:he||fe?xe:ue,options:f,compactionMap:x}));case 128:if(ge=Se.sent,!he){Se.next=138;break}if(r(d[0]).isArray(ge)||(ge=[ge]),de.includes('@list')){Se.next=136;break}ge=r(d[5])({},c.compactIri({activeCtx:o,iri:'@list',relativeTo:{vocab:!0}}),ge),'@index'in ue&&(ge[c.compactIri({activeCtx:o,iri:'@index',relativeTo:{vocab:!0}})]=ue['@index']),Se.next=138;break;case 136:return r(d[3]).addValue(ve,le,ge,{valueIsArray:!0,allowDuplicate:!0}),Se.abrupt("continue",211);case 138:if(!fe){Se.next=142;break}de.includes('@graph')&&(de.includes('@id')||de.includes('@index')&&r(d[2]).isSimpleGraph(ue))?(ye=void 0,ve.hasOwnProperty(le)?ye=ve[le]:ve[le]=ye={},be=(de.includes('@id')?ue['@id']:ue['@index'])||c.compactIri({activeCtx:o,iri:'@none',relativeTo:{vocab:!0}}),r(d[3]).addValue(ye,be,ge,{propertyIsArray:!f.compactArrays||de.includes('@set')})):de.includes('@graph')&&r(d[2]).isSimpleGraph(ue)?(r(d[0]).isArray(ge)&&ge.length>1&&(ge={'@included':ge}),r(d[3]).addValue(ve,le,ge,{propertyIsArray:!f.compactArrays||de.includes('@set')})):(r(d[0]).isArray(ge)&&1===ge.length&&f.compactArrays&&(ge=ge[0]),ge=r(d[5])({},c.compactIri({activeCtx:o,iri:'@graph',relativeTo:{vocab:!0}}),ge),'@id'in ue&&(ge[c.compactIri({activeCtx:o,iri:'@id',relativeTo:{vocab:!0}})]=ue['@id']),'@index'in ue&&(ge[c.compactIri({activeCtx:o,iri:'@index',relativeTo:{vocab:!0}})]=ue['@index']),r(d[3]).addValue(ve,le,ge,{propertyIsArray:!f.compactArrays||de.includes('@set')})),Se.next=211;break;case 142:if(!(de.includes('@language')||de.includes('@index')||de.includes('@id')||de.includes('@type'))){Se.next=209;break}if(me=void 0,ve.hasOwnProperty(le)?me=ve[le]:ve[le]=me={},ke=void 0,!de.includes('@language')){Se.next=151;break}r(d[2]).isValue(ge)&&(ge=ge['@value']),ke=ue['@language'],Se.next=205;break;case 151:if(!de.includes('@index')){Se.next=179;break}if(we=r(d[1]).getContextValue(o,le,'@index')||'@index',Ce=c.compactIri({activeCtx:o,iri:we,relativeTo:{vocab:!0}}),'@index'!==we){Se.next=159;break}ke=ue['@index'],delete ge[Ce],Se.next=177;break;case 159:if(Ie=void 0,Ve=r(d[3]).asArray(ge[we]||[]),Ae=r(d[6])(Ve),ke=Ae[0],Ie=Ae.slice(1),r(d[0]).isString(ke)){Se.next=168;break}ke=null,Se.next=177;break;case 168:Se.t0=Ie.length,Se.next=0===Se.t0?171:1===Se.t0?173:175;break;case 171:return delete ge[we],Se.abrupt("break",177);case 173:return ge[we]=Ie[0],Se.abrupt("break",177);case 175:return ge[we]=Ie,Se.abrupt("break",177);case 177:Se.next=205;break;case 179:if(!de.includes('@id')){Se.next=185;break}Te=c.compactIri({activeCtx:o,iri:'@id',relativeTo:{vocab:!0}}),ke=ge[Te],delete ge[Te],Se.next=205;break;case 185:if(!de.includes('@type')){Se.next=205;break}Oe=c.compactIri({activeCtx:o,iri:'@type',relativeTo:{vocab:!0}}),Le=void 0,je=r(d[3]).asArray(ge[Oe]||[]),Pe=r(d[6])(je),ke=Pe[0],Le=Pe.slice(1),Se.t1=Le.length,Se.next=0===Se.t1?195:1===Se.t1?197:199;break;case 195:return delete ge[Oe],Se.abrupt("break",201);case 197:return ge[Oe]=Le[0],Se.abrupt("break",201);case 199:return ge[Oe]=Le,Se.abrupt("break",201);case 201:if(!(1===Object.keys(ge).length&&'@id'in ue)){Se.next=205;break}return Se.next=204,t().awrap(c.compact({activeCtx:o,activeProperty:le,element:{'@id':ue['@id']},options:f,compactionMap:x}));case 204:ge=Se.sent;case 205:ke||(ke=c.compactIri({activeCtx:o,iri:'@none',relativeTo:{vocab:!0}})),r(d[3]).addValue(me,ke,ge,{propertyIsArray:de.includes('@set')}),Se.next=211;break;case 209:Ee=!f.compactArrays||de.includes('@set')||de.includes('@list')||r(d[0]).isArray(ge)&&0===ge.length||'@list'===U||'@graph'===U,r(d[3]).addValue(ve,le,ge,{propertyIsArray:Ee});case 211:Se.next=115;break;case 213:Se.next=69;break;case 215:return Se.abrupt("return",T);case 216:return Se.abrupt("return",p);case 217:case"end":return Se.stop()}},null,null,null,Promise)},c.compactIri=function(t){var i=t.activeCtx,o=t.iri,c=t.value,u=void 0===c?null:c,l=t.relativeTo,p=void 0===l?{vocab:!1}:l,v=t.reverse,f=void 0!==v&&v,h=t.base,x=void 0===h?null:h;if(null===o)return o;i.isPropertyTermScoped&&i.previousContext&&(i=i.previousContext);var y=i.getInverse();if(r(d[1]).isKeyword(o)&&o in y&&'@none'in y[o]&&'@type'in y[o]['@none']&&'@none'in y[o]['@none']['@type'])return y[o]['@none']['@type']['@none'];if(p.vocab&&o in y){var b=i['@language']||'@none',k=[];r(d[0]).isObject(u)&&'@index'in u&&!('@graph'in u)&&k.push('@index','@index@set'),r(d[0]).isObject(u)&&'@preserve'in u&&(u=u['@preserve'][0]),r(d[2]).isGraph(u)?('@index'in u&&k.push('@graph@index','@graph@index@set','@index','@index@set'),'@id'in u&&k.push('@graph@id','@graph@id@set'),k.push('@graph','@graph@set','@set'),'@index'in u||k.push('@graph@index','@graph@index@set','@index','@index@set'),'@id'in u||k.push('@graph@id','@graph@id@set')):r(d[0]).isObject(u)&&!r(d[2]).isValue(u)&&k.push('@id','@id@set','@type','@set@type');var w='@language',C='@null';if(f)w='@type',C='@reverse',k.push('@set');else if(r(d[2]).isList(u)){'@index'in u||k.push('@list');var I=u['@list'];if(0===I.length)w='@any',C='@none';else{for(var V=0===I.length?b:null,A=null,T=0;T=0;--U)for(var B,D=M[U],J=n(D.terms);!(B=J()).done;){var K=B.value,Y=K+':'+o.substr(D.iri.length);i.mappings.get(K)._prefix&&(!i.mappings.has(Y)||null===u&&i.mappings.get(Y)['@id']===o)&&(null===G||r(d[3]).compareShortestLeast(Y,G)<0)&&(G=Y)}if(null!==G)return G;for(var W,$=n(i.mappings);!(W=$()).done;){var q=W.value,z=r(d[7])(q,2),H=z[0],Q=z[1];if(Q&&Q._prefix&&o.startsWith(H+':'))throw new(r(d[4]))("Absolute IRI \""+o+"\" confused with prefix \""+H+"\".",'jsonld.SyntaxError',{code:'IRI confused with prefix',context:i})}return p.vocab?o:'@base'in i?i['@base']?r(d[8]).removeBase(r(d[8]).prependBase(x,i['@base']),o):o:r(d[8]).removeBase(x,o)},c.compactValue=function(t){var n=t.activeCtx,i=t.activeProperty,o=t.value,s=t.options;if(r(d[2]).isValue(o)){var u=r(d[1]).getContextValue(n,i,'@type'),l=r(d[1]).getContextValue(n,i,'@language'),p=r(d[1]).getContextValue(n,i,'@direction'),v=r(d[1]).getContextValue(n,i,'@container')||[],f='@index'in o&&!v.includes('@index');if(!f&&'@none'!==u){if(o['@type']===u)return o['@value'];if('@language'in o&&o['@language']===l&&'@direction'in o&&o['@direction']===p)return o['@value'];if('@language'in o&&o['@language']===l)return o['@value'];if('@direction'in o&&o['@direction']===p)return o['@value']}var h=Object.keys(o).length,x=1===h||2===h&&'@index'in o&&!f,y='@language'in n,b=r(d[0]).isString(o['@value']),k=n.mappings.has(i)&&null===n.mappings.get(i)['@language'];if(x&&'@none'!==u&&(!y||!b||k))return o['@value'];var w={};return f&&(w[c.compactIri({activeCtx:n,iri:'@index',relativeTo:{vocab:!0}})]=o['@index']),'@type'in o?w[c.compactIri({activeCtx:n,iri:'@type',relativeTo:{vocab:!0}})]=c.compactIri({activeCtx:n,iri:o['@type'],relativeTo:{vocab:!0}}):'@language'in o&&(w[c.compactIri({activeCtx:n,iri:'@language',relativeTo:{vocab:!0}})]=o['@language']),'@direction'in o&&(w[c.compactIri({activeCtx:n,iri:'@direction',relativeTo:{vocab:!0}})]=o['@direction']),w[c.compactIri({activeCtx:n,iri:'@value',relativeTo:{vocab:!0}})]=o['@value'],w}var C=r(d[1]).expandIri(n,i,{vocab:!0},s),I=r(d[1]).getContextValue(n,i,'@type'),V=c.compactIri({activeCtx:n,iri:o['@id'],relativeTo:{vocab:'@vocab'===I},base:s.base});return'@id'===I||'@vocab'===I||'@graph'===C?V:r(d[5])({},c.compactIri({activeCtx:n,iri:'@id',relativeTo:{vocab:!0}}),V)}},1723,[1706,1722,1718,1707,1705,248,1478,31,1721]); +__d(function(g,r,_i2,a,m,_e,d){'use strict';function e(){e=function(){return t};var t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function v(e,t,n,i){var s=t&&t.prototype instanceof f?t:f,c=Object.create(s.prototype),u=new P(i||[]);return o(c,"_invoke",{value:O(e,n,u)}),c}function x(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=v;var y={};function f(){}function b(){}function h(){}var k={};p(k,c,function(){return this});var w=Object.getPrototypeOf,j=w&&w(w(V([])));j&&j!==n&&i.call(j,c)&&(k=j);var S=h.prototype=f.prototype=Object.create(k);function L(e){["next","throw","return"].forEach(function(t){p(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){function n(o,s,c,u){var l=x(e[o],e,s);if("throw"!==l.type){var p=l.arg,v=p.value;return v&&"object"==typeof v&&i.call(v,"__await")?t.resolve(v.__await).then(function(e){n("next",e,c,u)},function(e){n("throw",e,c,u)}):t.resolve(v).then(function(e){p.value=e,c(p)},function(e){return n("throw",e,c,u)})}u(l.arg)}var s;o(this,"_invoke",{value:function(e,i){function o(){return new t(function(t,o){n(e,i,t,o)})}return s=s?s.then(o,o):o()}})}function O(e,t,n){var i="suspendedStart";return function(o,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw s;return N()}for(n.method=o,n.arg=s;;){var c=n.delegate;if(c){var u=C(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=x(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=x(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,y;var s=o.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,y):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function V(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var s=this.tryEntries[o],c=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var u=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:V(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},t}function t(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function n(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?U.slice().sort():U:[U],Y=t(z);case 74:if((Z=Y()).done){ne.next=83;break}if($=Z.value,B=r(d[2]).getContextValue(w,$,'@context'),r(d[1]).isUndefined(B)){ne.next=81;break}return ne.next=80,e().awrap(r(d[2]).process({activeCtx:i,localCtx:B,options:x,propagate:!1}));case 80:i=ne.sent;case 81:ne.next=74;break;case 83:ne.next=66;break;case 85:return R={},ne.next=88,e().awrap(c({activeCtx:i,activeProperty:l,expandedActiveProperty:A,element:p,expandedParent:R,options:x,insideList:f,typeKey:_,typeScopedContext:w,expansionMap:S}));case 88:if(V=Object.keys(R),q=V.length,!('@value'in R)){ne.next=120;break}if(!('@type'in R&&('@language'in R||'@direction'in R))){ne.next=93;break}throw new(r(d[3]))("Invalid JSON-LD syntax; an element containing \"@value\" may not contain both \"@type\" and either \"@language\" or \"@direction\".",'jsonld.SyntaxError',{code:'invalid value object',element:R});case 93:if(H=q-1,'@type'in R&&(H-=1),'@index'in R&&(H-=1),'@language'in R&&(H-=1),'@direction'in R&&(H-=1),0===H){ne.next=100;break}throw new(r(d[3]))("Invalid JSON-LD syntax; an element containing \"@value\" may only have an \"@index\" property and either \"@type\" or either or both \"@language\" or \"@direction\".",'jsonld.SyntaxError',{code:'invalid value object',element:R});case 100:if(Q=null===R['@value']?[]:r(d[4]).asArray(R['@value']),W=r(d[4]).getValues(R,'@type'),!r(d[2]).processingMode(i,1.1)||!W.includes('@json')||1!==W.length){ne.next=105;break}ne.next=118;break;case 105:if(0!==Q.length){ne.next=112;break}return ne.next=108,e().awrap(S({unmappedValue:R,activeCtx:i,activeProperty:l,element:p,options:x,insideList:f}));case 108:X=ne.sent,R=void 0!==X?X:null,ne.next=118;break;case 112:if(Q.every(function(e){return r(d[1]).isString(e)||r(d[1]).isEmptyObject(e)})||!('@language'in R)){ne.next=116;break}throw new(r(d[3]))('Invalid JSON-LD syntax; only strings may be language-tagged.','jsonld.SyntaxError',{code:'invalid language-tagged value',element:R});case 116:if(W.every(function(e){return r(d[5]).isAbsolute(e)&&!(r(d[1]).isString(e)&&0===e.indexOf('_:'))||r(d[1]).isEmptyObject(e)})){ne.next=118;break}throw new(r(d[3]))("Invalid JSON-LD syntax; an element containing \"@value\" and \"@type\" must have an absolute IRI for the value of \"@type\".",'jsonld.SyntaxError',{code:'invalid typed value',element:R});case 118:ne.next=135;break;case 120:if(!('@type'in R)||r(d[1]).isArray(R['@type'])){ne.next=124;break}R['@type']=[R['@type']],ne.next=135;break;case 124:if(!('@set'in R||'@list'in R)){ne.next=130;break}if(!(q>1)||2===q&&'@index'in R){ne.next=127;break}throw new(r(d[3]))("Invalid JSON-LD syntax; if an element has the property \"@set\" or \"@list\", then it can have at most one other property that is \"@index\".",'jsonld.SyntaxError',{code:'invalid set or list object',element:R});case 127:'@set'in R&&(R=R['@set'],V=Object.keys(R),q=V.length),ne.next=135;break;case 130:if(!(1===q&&'@language'in R)){ne.next=135;break}return ne.next=133,e().awrap(S(R,{unmappedValue:R,activeCtx:i,activeProperty:l,element:p,options:x,insideList:f}));case 133:ee=ne.sent,R=void 0!==ee?ee:null;case 135:if(!r(d[1]).isObject(R)||x.keepFreeFloatingNodes||f||null!==l&&'@graph'!==A){ne.next=141;break}if(!(0===q||'@value'in R||'@list'in R||1===q&&'@id'in R)){ne.next=141;break}return ne.next=139,e().awrap(S({unmappedValue:R,activeCtx:i,activeProperty:l,element:p,options:x,insideList:f}));case 139:te=ne.sent,R=void 0!==te?te:null;case 141:return ne.abrupt("return",R);case 142:case"end":return ne.stop()}},null,null,null,Promise)}},1724,[4,1706,1722,1705,1707,1721,31,1718]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.flatten=function(t){for(var n=r(d[0]).createMergedNodeMap(t),c=[],s=Object.keys(n).sort(),o=0;o=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){if(t){if("string"==typeof t)return o(t,i);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)?o(t,i):void 0}}function o(t,i){(null==i||i>t.length)&&(i=t.length);for(var o=0,n=new Array(i);o=n.length?{done:!0}:{done:!1,value:n[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(n,t){if(n){if("string"==typeof n)return i(n,t);var u=Object.prototype.toString.call(n).slice(8,-1);return"Object"===u&&n.constructor&&(u=n.constructor.name),"Map"===u||"Set"===u?Array.from(n):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?i(n,t):void 0}}function i(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,u=new Array(t);i=0;--u){var l=i[u];if(l.graph===t&&l.subject['@id']===n['@id'])return!0}return!1}function o(n,t,i){var u='@'+i,l=u in n?n[u][0]:t[i];if('embed'===i)if(!0===l)l='@once';else if(!1===l)l='@never';else if('@always'!==l&&'@never'!==l&&'@link'!==l&&'@first'!==l&&'@last'!==l&&'@once'!==l)throw new(r(d[3]))('Invalid JSON-LD syntax; invalid value of @embed.','jsonld.SyntaxError',{code:'invalid @embed value',frame:n});return l}function f(t){if(!r(d[4]).isArray(t)||1!==t.length||!r(d[4]).isObject(t[0]))throw new(r(d[3]))('Invalid JSON-LD syntax; a JSON-LD frame must be a single object.','jsonld.SyntaxError',{frame:t});if('@id'in t[0])for(var i,u=n(r(d[0]).asArray(t[0]['@id']));!(i=u()).done;){var l=i.value;if(!r(d[4]).isObject(l)&&!r(d[8]).isAbsolute(l)||r(d[4]).isString(l)&&0===l.indexOf('_:'))throw new(r(d[3]))('Invalid JSON-LD syntax; invalid @id in frame.','jsonld.SyntaxError',{code:'invalid frame',frame:t})}if('@type'in t[0])for(var s,o=n(r(d[0]).asArray(t[0]['@type']));!(s=o()).done;){var f=s.value;if(!r(d[4]).isObject(f)&&!r(d[8]).isAbsolute(f)||r(d[4]).isString(f)&&0===f.indexOf('_:'))throw new(r(d[3]))('Invalid JSON-LD syntax; invalid @type in frame.','jsonld.SyntaxError',{code:'invalid frame',frame:t})}}function c(t,i,u,l){for(var s,o={},f=n(i);!(s=f()).done;){var c=s.value,v=t.graphMap[t.graph][c];p(t,v,u,l)&&(o[c]=v)}return o}function p(t,i,u,l){var s=!0,o=!1,c=function(){var c=!1,v=r(d[0]).getValues(i,p),b=0===r(d[0]).getValues(u,p).length;if('@id'===p){if(r(d[4]).isEmptyObject(u['@id'][0]||{})?c=!0:u['@id'].length>=0&&(c=u['@id'].includes(v[0])),!l.requireAll)return{v:c}}else if('@type'===p){if(s=!1,b){if(v.length>0)return{v:!1};c=!0}else if(1===u['@type'].length&&r(d[4]).isEmptyObject(u['@type'][0]))c=v.length>0;else for(var y,O=function(n){c=!!(r(d[4]).isObject(n)&&'@default'in n)||(c||v.some(function(t){return t===n}))},k=n(u['@type']);!(y=k()).done;){O(y.value)}if(!l.requireAll)return{v:c}}else{if(r(d[6]).isKeyword(p))return"continue";var A=r(d[0]).getValues(u,p)[0],S=!1;if(A&&(f([A]),S='@default'in A),s=!1,0===v.length&&S)return"continue";if(v.length>0&&b)return{v:!1};if(void 0===A){if(v.length>0)return{v:!1};c=!0}else if(r(d[7]).isList(A)){var w=A['@list'][0];if(r(d[7]).isList(v[0])){var x=v[0]['@list'];r(d[7]).isValue(w)?c=x.some(function(n){return j(w,n)}):(r(d[7]).isSubject(w)||r(d[7]).isSubjectReference(w))&&(c=x.some(function(n){return h(t,w,n,l)}))}}else c=r(d[7]).isValue(A)?v.some(function(n){return j(A,n)}):r(d[7]).isSubjectReference(A)?v.some(function(n){return h(t,A,n,l)}):!!r(d[4]).isObject(A)&&v.length>0}if(!c&&l.requireAll)return{v:!1};o=o||c};for(var p in u){var v=c();if("continue"!==v&&"object"==typeof v)return v.v}return s||o}function v(n,t){var i=n.uniqueEmbeds[n.graph],u=i[t],l=u.parent,s=u.property,o={'@id':t};if(r(d[4]).isArray(l)){for(var f=0;f4&&void 0!==arguments[4]?arguments[4]:null;f(p),p=p[0];var O=t.options,k={embed:o(p,O,'embed'),explicit:o(p,O,'explicit'),requireAll:o(p,O,'requireAll')};t.link.hasOwnProperty(t.graph)||(t.link[t.graph]={});for(var A,S=t.link[t.graph],w=c(t,i,p,k),x=function(f){var c=w[f];if(null===h?t.uniqueEmbeds=r(d[2])({},t.graph,{}):t.uniqueEmbeds[t.graph]=t.uniqueEmbeds[t.graph]||{},'@link'===k.embed&&f in S)return y(b,h,S[f]),"continue";var A={'@id':f};if(0===f.indexOf('_:')&&r(d[0]).addValue(t.bnodeMap,f,A,{propertyIsArray:!0}),S[f]=A,('@first'===k.embed||'@last'===k.embed)&&t.is11)throw new(r(d[3]))('Invalid JSON-LD syntax; invalid value of @embed.','jsonld.SyntaxError',{code:'invalid @embed value',frame:p});if(!t.embedded&&t.uniqueEmbeds[t.graph].hasOwnProperty(f))return"continue";if(t.embedded&&('@never'===k.embed||s(c,t.graph,t.subjectStack)))return y(b,h,A),"continue";if(t.embedded&&('@first'==k.embed||'@once'==k.embed)&&t.uniqueEmbeds[t.graph].hasOwnProperty(f))return y(b,h,A),"continue";if('@last'===k.embed&&f in t.uniqueEmbeds[t.graph]&&v(t,f),t.uniqueEmbeds[t.graph][f]={parent:b,property:h},t.subjectStack.push({subject:c,graph:t.graph}),f in t.graphMap){var x=!1,E=null;'@graph'in p?(E=p['@graph'][0],x=!('@merged'===f||'@default'===f),r(d[4]).isObject(E)||(E={})):(x='@merged'!==t.graph,E={}),x&&u.frame(r(d[5])({},t,{graph:f,embedded:!1}),Object.keys(t.graphMap[f]).sort(),[E],A,'@graph')}'@included'in p&&u.frame(r(d[5])({},t,{embedded:!1}),i,p['@included'],A,'@included');for(var I,M=n(Object.keys(c).sort());!(I=M()).done;){var V=I.value;if(r(d[6]).isKeyword(V)){if(A[V]=r(d[0]).clone(c[V]),'@type'===V)for(var q,N=n(c['@type']);!(q=N()).done;){var L=q.value;0===L.indexOf('_:')&&r(d[0]).addValue(t.bnodeMap,L,A,{propertyIsArray:!0})}}else if(!k.explicit||V in p)for(var D,_=n(c[V]);!(D=_()).done;){var J=D.value,P=V in p?p[V]:l(k);if(r(d[7]).isList(J)){var R=p[V]&&p[V][0]&&p[V][0]['@list']?p[V][0]['@list']:l(k),C={'@list':[]};y(A,V,C);for(var K,T=n(J['@list']);!(K=T()).done;){var B=K.value;r(d[7]).isSubjectReference(B)?u.frame(r(d[5])({},t,{embedded:!0}),[B['@id']],R,C,'@list'):y(C,'@list',r(d[0]).clone(B))}}else r(d[7]).isSubjectReference(J)?u.frame(r(d[5])({},t,{embedded:!0}),[J['@id']],P,A,V):j(P[0],J)&&y(A,V,r(d[0]).clone(J))}}for(var G,U=n(Object.keys(p).sort());!(G=U()).done;){var $=G.value;if('@type'===$){if(!(r(d[4]).isObject(p[$][0])&&'@default'in p[$][0]))continue}else if(r(d[6]).isKeyword($))continue;var z=p[$][0]||{};if(!(o(z,O,'omitDefault')||$ in A)){var F='@null';'@default'in z&&(F=r(d[0]).clone(z['@default'])),r(d[4]).isArray(F)||(F=[F]),A[$]=[{'@preserve':F}]}}for(var H,Q=n(Object.keys(p['@reverse']||{}).sort());!(H=Q()).done;)for(var W=H.value,X=p['@reverse'][W],Y=0,Z=Object.keys(t.subjects);Y=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var l=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(l&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}function t(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=n(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&(o['@language']=f,f.match(i)||console.warn("@language must be valid BCP47: "+f)),o['@direction']=h}else u!==r(d[0]).XSD_STRING&&(o['@type']=u)}return o}m.exports=u,u.fromRDF=function(n,o){var i,u,l,s,f,h,p,v,y,b,w,x,_,L,S,E,O,R,j,k,N,D,T,F,I,A,G,P,X,B,J,U,W,Y,z,C,V,Z,$,M,q,H,K,Q,ee,te,re,ne,oe;return e().async(function(ae){for(;;)switch(ae.prev=ae.next){case 0:i=o.useRdfType,u=void 0!==i&&i,l=o.useNativeTypes,s=void 0!==l&&l,f=o.rdfDirection,h=void 0===f?null:f,v={'@default':p={}},y={},b=t(n);case 5:if((w=b()).done){ae.next=26;break}if(x=w.value,(_='DefaultGraph'===x.graph.termType?'@default':x.graph.value)in v||(v[_]={}),'@default'===_||_ in p||(p[_]={'@id':_}),L=v[_],S=x.subject.value,E=x.predicate.value,O=x.object,S in L||(L[S]={'@id':S}),R=L[S],!(j=O.termType.endsWith('Node'))||O.value in L||(L[O.value]={'@id':O.value}),E!==r(d[0]).RDF_TYPE||u||!j){ae.next=21;break}return r(d[1]).addValue(R,'@type',O.value,{propertyIsArray:!0}),ae.abrupt("continue",24);case 21:k=c(O,s,h),r(d[1]).addValue(R,E,k,{propertyIsArray:!0}),j&&(O.value===r(d[0]).RDF_NIL?('usages'in(N=L[O.value])||(N.usages=[]),N.usages.push({node:R,property:E,value:k})):O.value in y?y[O.value]=!1:y[O.value]={node:R,property:E,value:k});case 24:ae.next=5;break;case 26:ae.t0=e().keys(v);case 27:if((ae.t1=ae.t0()).done){ae.next=64;break}if(D=ae.t1.value,T=v[D],r(d[0]).RDF_NIL in T){ae.next=32;break}return ae.abrupt("continue",27);case 32:if((F=T[r(d[0]).RDF_NIL]).usages){ae.next=35;break}return ae.abrupt("continue",27);case 35:I=t(F.usages);case 36:if((A=I()).done){ae.next=61;break}G=A.value,P=G.node,X=G.property,B=G.value,J=[],U=[],W=Object.keys(P).length;case 44:if(!(X===r(d[0]).RDF_REST&&r(d[2]).isObject(y[P['@id']])&&r(d[2]).isArray(P[r(d[0]).RDF_FIRST])&&1===P[r(d[0]).RDF_FIRST].length&&r(d[2]).isArray(P[r(d[0]).RDF_REST])&&1===P[r(d[0]).RDF_REST].length&&(3===W||4===W&&r(d[2]).isArray(P['@type'])&&1===P['@type'].length&&P['@type'][0]===r(d[0]).RDF_LIST))){ae.next=56;break}if(J.push(P[r(d[0]).RDF_FIRST][0]),U.push(P['@id']),G=y[P['@id']],P=G.node,X=G.property,B=G.value,W=Object.keys(P).length,r(d[3]).isBlankNode(P)){ae.next=54;break}return ae.abrupt("break",56);case 54:ae.next=44;break;case 56:for(delete B['@id'],B['@list']=J.reverse(),Y=0,z=U;Y=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return l(t,o);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)?l(t,o):void 0}}function l(t,o){(null==o||o>t.length)&&(o=t.length);for(var l=0,n=new Array(o);l=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(h&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}m.exports=(function(){function n(){r(d[0])(this,n),this._requests={}}return r(d[1])(n,[{key:"wrapLoader",value:function(t){var n=this;return n._loader=t,function(){return n.add.apply(n,arguments)}}},{key:"add",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:if(!(o=this._requests[n])){i.next=3;break}return i.abrupt("return",Promise.resolve(o));case 3:return o=this._requests[n]=this._loader(n),i.prev=4,i.next=7,t().awrap(o);case 7:return i.abrupt("return",i.sent);case 8:return i.prev=8,delete this._requests[n],i.finish(8);case 11:case"end":return i.stop()}},null,this,[[4,,8,11]],Promise)}}]),n})()},1733,[7,8]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){var n=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,[{key:"toString",value:function(){return'[object JsonLdProcessor]'}}]),t})();return Object.defineProperty(n,'prototype',{writable:!1,enumerable:!1}),Object.defineProperty(n.prototype,'constructor',{writable:!0,enumerable:!1,configurable:!0,value:n}),n.compact=function(n,o){return arguments.length<2?Promise.reject(new TypeError('Could not compact, too few arguments.')):t.compact(n,o)},n.expand=function(n){return arguments.length<1?Promise.reject(new TypeError('Could not expand, too few arguments.')):t.expand(n)},n.flatten=function(n){return arguments.length<1?Promise.reject(new TypeError('Could not flatten, too few arguments.')):t.flatten(n)},n}},1734,[7,8]); +__d(function(g,r,i,a,m,e,d){'use strict';var o={};m.exports=o,o.setupDocumentLoaders=function(o){'undefined'!=typeof XMLHttpRequest&&(o.documentLoaders.xhr=r(d[0]),o.useDocumentLoader('xhr'))},o.setupGlobals=function(o){void 0===globalThis.JsonLdProcessor&&Object.defineProperty(globalThis,'JsonLdProcessor',{writable:!0,enumerable:!1,configurable:!0,value:o.JsonLdProcessor})}},1735,[1736]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new N(i||[]);return c(s,"_invoke",{value:R(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};h(b,s,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(P([])));j&&j!==o&&i.call(j,s)&&(b=j);var k=L.prototype=w.prototype=Object.create(b);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function R(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return G()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=U(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function U(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,U(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function H(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function P(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),H(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;H(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n=/(^|(\r\n))link:/i;function o(t,n,o){var i=new(t=t||XMLHttpRequest);return new Promise(function(t,c){for(var u in i.onload=function(){return t(i)},i.onerror=function(t){return c(t)},i.open('GET',n,!0),o)i.setRequestHeader(u,o[u]);i.send()})}m.exports=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{headers:{}},c=i.secure,u=i.headers,s=void 0===u?{}:u,l=i.xhr;return s=r(d[0]).buildHeaders(s),(new(r(d[1]))).wrapLoader(function i(u){var f,h,p,v,y,w,x;return t().async(function(L){for(;;)switch(L.prev=L.next){case 0:if(0===u.indexOf('http:')||0===u.indexOf('https:')){L.next=2;break}throw new(r(d[2]))("URL could not be dereferenced; only \"http\" and \"https\" URLs are supported.",'jsonld.InvalidUrl',{code:'loading document failed',url:u});case 2:if(!c||0===u.indexOf('https')){L.next=4;break}throw new(r(d[2]))("URL could not be dereferenced; secure mode is enabled and the URL's scheme is not \"https\".",'jsonld.InvalidUrl',{code:'loading document failed',url:u});case 4:return L.prev=4,L.next=7,t().awrap(o(l,u,s));case 7:f=L.sent,L.next=13;break;case 10:throw L.prev=10,L.t0=L.catch(4),new(r(d[2]))('URL could not be dereferenced, an error occurred.','jsonld.LoadDocumentError',{code:'loading document failed',url:u,cause:L.t0});case 13:if(!(f.status>=400)){L.next=15;break}throw new(r(d[2]))('URL could not be dereferenced: '+f.statusText,'jsonld.LoadDocumentError',{code:'loading document failed',url:u,httpStatusCode:f.status});case 15:if(h={contextUrl:null,documentUrl:u,document:f.response},p=null,v=f.getResponseHeader('Content-Type'),n.test(f.getAllResponseHeaders())&&(y=f.getResponseHeader('Link')),!y||'application/ld+json'===v){L.next=30;break}if(w=r(d[0]).parseLinkHeader(y),x=w[r(d[3]).LINK_HEADER_CONTEXT],!Array.isArray(x)){L.next=24;break}throw new(r(d[2]))("URL could not be dereferenced, it has more than one associated HTTP Link Header.",'jsonld.InvalidUrl',{code:'multiple context link headers',url:u});case 24:if(x&&(h.contextUrl=x.target),!(p=w.alternate)||'application/ld+json'!=p.type||(v||'').match(/^application\/(\w*\+)?json$/)){L.next=30;break}return L.next=29,t().awrap(i(r(d[4]).prependBase(u,p.target)));case 29:h=L.sent;case 30:return L.abrupt("return",h);case 31:case"end":return L.stop()}},null,null,[[4,10]],Promise)})}},1736,[1707,1733,1705,1730,1721]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=t(r(d[0]));e.default=u.default},1737,[1738]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},1738,[1739]); +__d(function(g,_r,_i,a,m,_e,d){'use strict';function e(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=t(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}var i=_r(d[0]).purposes.AuthenticationProofPurpose,o=_r(d[0]).extendContextLoader(_r(d[1])),u=_r(d[2]).constants.CREDENTIALS_CONTEXT_V1_URL,c=new RegExp("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$",'i');function s(){var e,t,r=arguments;return n().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.credential,n.prev=2,t){n.next=5;break}throw new TypeError('A "credential" property is required for verifying.');case 5:return n.abrupt("return",l(e));case 8:return n.prev=8,n.t0=n.catch(2),n.abrupt("return",{verified:!1,results:[{credential:t,verified:!1,error:n.t0}],error:n.t0});case 11:case"end":return n.stop()}},null,null,[[2,8]],Promise)}function l(){var e,t,r,i,u,c,s,l=arguments;return n().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(e=l.length>0&&void 0!==l[0]?l[0]:{},t=e.credential,r=e.checkStatus,v(t),!t.credentialStatus||'function'==typeof e.checkStatus){f.next=5;break}throw new TypeError("A \"checkStatus\" function must be given to verify credentials with \"credentialStatus\".");case 5:return i=e.documentLoader||o,u=e.controller,c=e.purpose||new(_r(d[3]))({controller:u}),f.next=10,n().awrap(_r(d[0]).verify(t,_r(d[4])({purpose:c,documentLoader:i},e)));case 10:if((s=f.sent).verified){f.next=13;break}return f.abrupt("return",s);case 13:if(!t.credentialStatus){f.next=18;break}return f.next=16,n().awrap(r(e));case 16:s.statusResult=f.sent,s.statusResult.verified||(s.verified=!1);case 18:return f.abrupt("return",s);case 19:case"end":return f.stop()}},null,null,null,Promise)}function f(){var t,r,u,c,l,f,p,v,y,w,b,x,E,L,S,P,k,_=arguments;return n().async(function(j){for(;;)switch(j.prev=j.next){case 0:if(t=_.length>0&&void 0!==_[0]?_[0]:{},r=t.presentation,u=t.unsignedPresentation,h(r),c=t.documentLoader||o,f=!0,!((p=_r(d[5]).getValues(r,'verifiableCredential')).length>0)){j.next=13;break}return j.next=9,n().awrap(Promise.all(p.map(function(e){return s(_r(d[4])({credential:e,documentLoader:c},t))})));case 9:for(l=j.sent,v=e(l.entries());!(y=v()).done;)w=y.value,b=_r(d[6])(w,2),x=b[0],b[1].credentialId=p[x].id;l.every(function(e){return e.verified})||(f=!1);case 13:if(!u){j.next=15;break}return j.abrupt("return",{verified:f,results:[r],credentialResults:l});case 15:if(E=t.controller,L=t.domain,S=t.challenge,t.presentationPurpose||S){j.next=18;break}throw new Error('A "challenge" param is required for AuthenticationProofPurpose.');case 18:return P=t.presentationPurpose||new i({controller:E,domain:L,challenge:S}),j.next=21,n().awrap(_r(d[0]).verify(r,_r(d[4])({purpose:P,documentLoader:c},t)));case 21:return k=j.sent,j.abrupt("return",{presentationResult:k,verified:f&&k.verified,credentialResults:l,error:k.error});case 23:case"end":return j.stop()}},null,null,null,Promise)}function p(e){return'string'==typeof e?e:'id'in e?e.id:void 0}function h(e){if((Array.isArray(e['@context'])?e['@context']:[e['@context']])[0]!==u)throw new Error("\""+u+"\" needs to be first in the list of contexts.");if(!_r(d[5]).getValues(e,'type').includes('VerifiablePresentation'))throw new Error('"type" must include "VerifiablePresentation".')}function v(e){if(e['@context'][0]!==u)throw new Error("\""+u+"\" needs to be first in the list of contexts.");if(!e.type)throw new Error('"type" property is required.');if(!_r(d[5]).getValues(e,'type').includes('VerifiableCredential'))throw new Error('"type" must include `VerifiableCredential`.');if(!e.credentialSubject)throw new Error('"credentialSubject" property is required.');if(e.credentialSubject.id&&y({id:e.credentialSubject.id,propertyName:'credentialSubject.id'}),!e.issuer)throw new Error('"issuer" property is required.');if(_r(d[5]).getValues(e,'issuanceDate').length>1)throw new Error('"issuanceDate" property can only have one value.');if(!e.issuanceDate)throw new Error('"issuanceDate" property is required.');if('issuanceDate'in e&&!c.test(e.issuanceDate))throw new Error("\"issuanceDate\" must be a valid date: "+e.issuanceDate);if(_r(d[5]).getValues(e,'issuer').length>1)throw new Error('"issuer" property can only have one value.');if('issuer'in e){var t=p(e.issuer);if(!t)throw new Error("\"issuer\" id is required.");y({id:t,propertyName:'issuer'})}if('credentialStatus'in e){if(!e.credentialStatus.id)throw new Error('"credentialStatus" must include an id.');if(!e.credentialStatus.type)throw new Error('"credentialStatus" must include a type.')}if(_r(d[5]).getValues(e,'evidence').forEach(function(e){var t=p(e);t&&y({id:t,propertyName:'evidence'})}),'expirationDate'in e&&!c.test(e.expirationDate))throw new Error("\"expirationDate\" must be a valid date: "+e.expirationDate)}function y(e){var t=e.id,r=e.propertyName;try{new URL(t)}catch(e){var n=new TypeError("\""+r+"\" must be a URI: \""+t+"\".");throw n.cause=e,n}}m.exports={issue:function(){var e,t,r,i,u,c,s,l,f,p=arguments;return n().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=p.length>0&&void 0!==p[0]?p[0]:{},t=e.credential,r=e.suite,i=e.expansionMap,u=e.purpose,c=void 0===u?new(_r(d[3])):u,s=e.documentLoader,l=void 0===s?o:s,r){n.next=3;break}throw new TypeError('"suite" parameter is required for issuing.');case 3:if(r.verificationMethod){n.next=5;break}throw new TypeError('"suite.verificationMethod" property is required.');case 5:if(t){n.next=7;break}throw new TypeError('"credential" parameter is required for issuing.');case 7:return t.issuanceDate||(f=(new Date).toJSON(),t.issuanceDate=f.substr(0,f.length-5)+"Z"),v(t),n.abrupt("return",_r(d[0]).sign(t,{purpose:c,documentLoader:l,suite:r,expansionMap:i}));case 10:case"end":return n.stop()}},null,null,null,Promise)},createPresentation:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.verifiableCredential,n=t.id,i=t.holder,o={'@context':[u],type:['VerifiablePresentation']};if(r){for(var c,s=[].concat(r),l=e(s);!(c=l()).done;){var f=c.value;v(f)}o.verifiableCredential=s}n&&(o.id=n);i&&(o.holder=i);return h(o),o},signPresentation:function(){var e,t,r,u,c,s,l=arguments;return n().async(function(n){for(;;)switch(n.prev=n.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:{},t=e.presentation,r=e.domain,u=e.challenge,c=e.purpose||new i({domain:r,challenge:u}),s=e.documentLoader||o,n.abrupt("return",_r(d[0]).sign(t,_r(d[4])({purpose:c,documentLoader:s},e)));case 5:case"end":return n.stop()}},null,null,null,Promise)},verify:function(){var e,t,r=arguments;return n().async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=r.length>0&&void 0!==r[0]?r[0]:{},t=e.presentation,n.prev=2,t){n.next=5;break}throw new TypeError('A "presentation" property is required for verifying.');case 5:return n.abrupt("return",f(e));case 8:return n.prev=8,n.t0=n.catch(2),n.abrupt("return",{verified:!1,results:[{presentation:t,verified:!1,error:n.t0}],error:n.t0});case 11:case"end":return n.stop()}},null,null,[[2,8]],Promise)},verifyCredential:s,CredentialIssuancePurpose:_r(d[3]),defaultDocumentLoader:o,_checkCredential:v,_checkPresentation:h,dateRegex:c}},1739,[1740,1763,1767,1771,4,1701,31]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new N(i||[]);return c(s,"_invoke",{value:S(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,s,function(){return this});var E=Object.getPrototypeOf,j=E&&E(E(U([])));j&&j!==o&&i.call(j,s)&&(L=j);var _=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function S(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=P(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function U(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:U(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n={};m.exports=n,r(d[0])(n,r(d[1])),n.sign=function(n){var o,i,c,u,s,l,f,h,p,v=arguments;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(o=v.length>1&&void 0!==v[1]?v[1]:{},i=o.suite,c=o.purpose,u=o.documentLoader,s=o.expansionMap,l=o.addSuiteContext,f=void 0===l||l,'object'==typeof n){y.next=3;break}throw new TypeError('The "document" parameter must be an object.');case 3:return i.ensureSuiteContext({document:n,addSuiteContext:f}),y.prev=4,y.next=7,t().awrap((new(r(d[2]))).add(n,{suite:i,purpose:c,documentLoader:u,expansionMap:s}));case 7:return y.abrupt("return",y.sent);case 10:if(y.prev=10,y.t0=y.catch(4),u||'jsonld.InvalidUrl'!==y.t0.name){y.next=17;break}throw h=y.t0.details.url,(p=new Error("A URL \""+h+"\" could not be fetched; you need to pass \"documentLoader\" or resolve the URL before calling \"sign\".")).cause=y.t0,p;case 17:throw y.t0;case 18:case"end":return y.stop()}},null,null,[[4,10]],Promise)},n.verify=function(n){var o,i,c,u,s,l,f,h,p,v=arguments;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(o=v.length>1&&void 0!==v[1]?v[1]:{},i=o.suite,c=o.purpose,u=o.documentLoader,s=o.expansionMap,'object'==typeof n){y.next=3;break}throw new TypeError('The "document" parameter must be an object.');case 3:return y.next=5,t().awrap((new(r(d[2]))).verify(n,{suite:i,purpose:c,documentLoader:u,expansionMap:s}));case 5:return l=y.sent,(f=l.error)&&(u||'jsonld.InvalidUrl'!==f.name?l.error=new(r(d[3]))(f):(h=f.details.url,p=new Error("A URL \""+h+"\" could not be fetched; you need to pass \"documentLoader\" or resolve the URL before calling \"verify\"."),l.error=new(r(d[3]))(p))),y.abrupt("return",l);case 9:case"end":return y.stop()}},null,null,null,Promise)},n.suites=r(d[4]).suites,n.purposes=r(d[5]).purposes,r(d[0])(n,r(d[6]))},1740,[4,1741,1746,1751,1752,1758,1747]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={SECURITY_CONTEXT_URL:r(d[0]).constants.SECURITY_CONTEXT_V2_URL,SECURITY_CONTEXT_V1_URL:r(d[0]).constants.SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:r(d[0]).constants.SECURITY_CONTEXT_V2_URL,SECURITY_PROOF_URL:'https://w3id.org/security#proof',SECURITY_SIGNATURE_URL:'https://w3id.org/security#signature'}},1741,[1742]); +__d(function(g,r,i,a,m,e,d){'use strict';var T=new Map;T.set(r(d[0]).SECURITY_CONTEXT_V1_URL,r(d[1])),T.set(r(d[0]).SECURITY_CONTEXT_V2_URL,r(d[2])),m.exports={constants:r(d[0]),contexts:T,SECURITY_CONTEXT_V1_URL:r(d[0]).SECURITY_CONTEXT_V1_URL,SECURITY_CONTEXT_V2_URL:r(d[0]).SECURITY_CONTEXT_V2_URL,CONTEXT_URL:r(d[0]).CONTEXT_URL,CONTEXT:r(d[2])}},1742,[1743,1744,1745]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={SECURITY_CONTEXT_V1_URL:'https://w3id.org/security/v1',SECURITY_CONTEXT_V2_URL:'https://w3id.org/security/v2',CONTEXT_URL:'https://w3id.org/security/v2'}},1743,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{id:'@id',type:'@type',dc:'http://purl.org/dc/terms/',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',EcdsaKoblitzSignature2016:'sec:EcdsaKoblitzSignature2016',Ed25519Signature2018:'sec:Ed25519Signature2018',EncryptedMessage:'sec:EncryptedMessage',GraphSignature2012:'sec:GraphSignature2012',LinkedDataSignature2015:'sec:LinkedDataSignature2015',LinkedDataSignature2016:'sec:LinkedDataSignature2016',CryptographicKey:'sec:Key',authenticationTag:'sec:authenticationTag',canonicalizationAlgorithm:'sec:canonicalizationAlgorithm',cipherAlgorithm:'sec:cipherAlgorithm',cipherData:'sec:cipherData',cipherKey:'sec:cipherKey',created:{'@id':'dc:created','@type':'xsd:dateTime'},creator:{'@id':'dc:creator','@type':'@id'},digestAlgorithm:'sec:digestAlgorithm',digestValue:'sec:digestValue',domain:'sec:domain',encryptionKey:'sec:encryptionKey',expiration:{'@id':'sec:expiration','@type':'xsd:dateTime'},expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},initializationVector:'sec:initializationVector',iterationCount:'sec:iterationCount',nonce:'sec:nonce',normalizationAlgorithm:'sec:normalizationAlgorithm',owner:{'@id':'sec:owner','@type':'@id'},password:'sec:password',privateKey:{'@id':'sec:privateKey','@type':'@id'},privateKeyPem:'sec:privateKeyPem',publicKey:{'@id':'sec:publicKey','@type':'@id'},publicKeyBase58:'sec:publicKeyBase58',publicKeyPem:'sec:publicKeyPem',publicKeyWif:'sec:publicKeyWif',publicKeyService:{'@id':'sec:publicKeyService','@type':'@id'},revoked:{'@id':'sec:revoked','@type':'xsd:dateTime'},salt:'sec:salt',signature:'sec:signature',signatureAlgorithm:'sec:signingAlgorithm',signatureValue:'sec:signatureValue'}}},1744,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':[{'@version':1.1},'https://w3id.org/security/v1',{AesKeyWrappingKey2019:'sec:AesKeyWrappingKey2019',DeleteKeyOperation:'sec:DeleteKeyOperation',DeriveSecretOperation:'sec:DeriveSecretOperation',EcdsaSecp256k1Signature2019:'sec:EcdsaSecp256k1Signature2019',EcdsaSecp256r1Signature2019:'sec:EcdsaSecp256r1Signature2019',EcdsaSecp256k1VerificationKey2019:'sec:EcdsaSecp256k1VerificationKey2019',EcdsaSecp256r1VerificationKey2019:'sec:EcdsaSecp256r1VerificationKey2019',Ed25519Signature2018:'sec:Ed25519Signature2018',Ed25519VerificationKey2018:'sec:Ed25519VerificationKey2018',EquihashProof2018:'sec:EquihashProof2018',ExportKeyOperation:'sec:ExportKeyOperation',GenerateKeyOperation:'sec:GenerateKeyOperation',KmsOperation:'sec:KmsOperation',RevokeKeyOperation:'sec:RevokeKeyOperation',RsaSignature2018:'sec:RsaSignature2018',RsaVerificationKey2018:'sec:RsaVerificationKey2018',Sha256HmacKey2019:'sec:Sha256HmacKey2019',SignOperation:'sec:SignOperation',UnwrapKeyOperation:'sec:UnwrapKeyOperation',VerifyOperation:'sec:VerifyOperation',WrapKeyOperation:'sec:WrapKeyOperation',X25519KeyAgreementKey2019:'sec:X25519KeyAgreementKey2019',allowedAction:'sec:allowedAction',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'},capability:{'@id':'sec:capability','@type':'@id'},capabilityAction:'sec:capabilityAction',capabilityChain:{'@id':'sec:capabilityChain','@type':'@id','@container':'@list'},capabilityDelegation:{'@id':'sec:capabilityDelegationMethod','@type':'@id','@container':'@set'},capabilityInvocation:{'@id':'sec:capabilityInvocationMethod','@type':'@id','@container':'@set'},caveat:{'@id':'sec:caveat','@type':'@id','@container':'@set'},challenge:'sec:challenge',ciphertext:'sec:ciphertext',controller:{'@id':'sec:controller','@type':'@id'},delegator:{'@id':'sec:delegator','@type':'@id'},equihashParameterK:{'@id':'sec:equihashParameterK','@type':'xsd:integer'},equihashParameterN:{'@id':'sec:equihashParameterN','@type':'xsd:integer'},invocationTarget:{'@id':'sec:invocationTarget','@type':'@id'},invoker:{'@id':'sec:invoker','@type':'@id'},jws:'sec:jws',keyAgreement:{'@id':'sec:keyAgreementMethod','@type':'@id','@container':'@set'},kmsModule:{'@id':'sec:kmsModule'},parentCapability:{'@id':'sec:parentCapability','@type':'@id'},plaintext:'sec:plaintext',proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab'},proofValue:'sec:proofValue',referenceId:'sec:referenceId',unwrappedKey:'sec:unwrappedKey',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'},verifyData:'sec:verifyData',wrappedKey:'sec:wrappedKey'}]}},1745,[]); +__d(function(g,_r,_i,a,m,e,d){'use strict';function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=r(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=n.call(u,"catchLoc"),p=n.call(u,"finallyLoc");if(s&&p){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}function i(t){var r,n,i;return o().async(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t.document,n=_r(d[5]).getValues(r,'proof'),delete r.proof,0!==n.length){o.next=5;break}throw new Error('No matching proofs found in the given document.');case 5:return i=r['@context']||_r(d[7]).SECURITY_CONTEXT_URL,n=n.map(function(t){return _r(d[4])({'@context':i},t)}),o.abrupt("return",{proofSet:n,document:r});case 8:case"end":return o.stop()}},null,null,null,Promise)}function u(r){var n,i,u,p,f,l,h,v,y,w,x;return o().async(function(b){for(;;)switch(b.prev=b.next){case 0:return n=r.document,i=r.suites,u=r.proofSet,p=r.purpose,f=r.documentLoader,l=r.expansionMap,h=Array.isArray(p)?p:[p],v=new Map,y=new Map,w=new Map,b.next=7,o().awrap(Promise.all(h.map(function(t){return s({purposeToProofs:v,proofToSuite:y,purpose:t,proofSet:u,suites:i,suiteMatchQueue:w,document:n,documentLoader:f,expansionMap:l})})));case 7:if(!(v.size1&&void 0!==f[1]?f[1]:{},n=r.suite,i=r.purpose,u=r.documentLoader,c=r.expansionMap,n){l.next=3;break}throw new TypeError('"options.suite" is required.');case 3:if(i){l.next=5;break}throw new TypeError('"options.purpose" is required.');case 5:return u=u?_r(d[2]).extendContextLoader(u):_r(d[2]).strictDocumentLoader,!1!==c&&(c=_r(d[3])),delete(s=_r(d[4])({},t)).proof,l.next=11,o().awrap(n.createProof({document:s,purpose:i,documentLoader:u,expansionMap:c}));case 11:return p=l.sent,_r(d[5]).addValue(t,'proof',p),l.abrupt("return",t);case 14:case"end":return l.stop()}},null,null,null,Promise)}},{key:"verify",value:function(t){var r,n,s,p,f,l,h,v,y,w,x,b,L,E,k,M=arguments;return o().async(function(P){for(;;)switch(P.prev=P.next){case 0:if(r=M.length>1&&void 0!==M[1]?M[1]:{},n=r.suite,s=r.purpose,p=r.documentLoader,f=r.expansionMap,n){P.next=3;break}throw new TypeError('"options.suite" is required.');case 3:if(s){P.next=5;break}throw new TypeError('"options.purpose" is required.');case 5:if(0!==(l=Array.isArray(n)?n:[n]).length){P.next=8;break}throw new TypeError('At least one suite is required.');case 8:return p=p?_r(d[2]).extendContextLoader(p):_r(d[2]).strictDocumentLoader,!1!==f&&(f=_r(d[3])),P.prev=10,t=_r(d[4])({},t),P.next=14,o().awrap(i({document:t,documentLoader:p,expansionMap:f}));case 14:return h=P.sent,v=h.proofSet,y=h.document,t=y,P.next=20,o().awrap(u({document:t,suites:l,proofSet:v,purpose:s,documentLoader:p,expansionMap:f}));case 20:if(0!==(w=P.sent).length){P.next=25;break}throw(x=new Error("Did not verify any proofs; insufficient proofs matched the acceptable suite(s) and required purpose(s).")).name='NotFoundError',x;case 25:if(b=w.some(function(t){return t.verified})){P.next=31;break}return E=(L=[]).concat.apply(L,_r(d[6])(w.filter(function(t){return t.error}).map(function(t){return t.error}))),k={verified:b,results:w},E.length>0&&(k.error=E),P.abrupt("return",k);case 31:return P.abrupt("return",{verified:b,results:w});case 34:return P.prev=34,P.t0=P.catch(10),c(P.t0),P.abrupt("return",{verified:!1,error:P.t0});case 38:case"end":return P.stop()}},null,null,[[10,34]],Promise)}}]),t})()},1746,[7,8,1747,1749,4,1701,42,1741,31,1750]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new F(i||[]);return c(l,"_invoke",{value:G(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};s(b,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,f){var h=v(t[c],t,u);if("throw"!==h.type){var s=h.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){s.value=t,l(s)},function(t){return o("throw",t,l,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function G(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=N(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n={};m.exports=n,n.extendContextLoader=function(n){return function(o){var i;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(i=r(d[0]).get(o))){t.next=3;break}return t.abrupt("return",{contextUrl:null,documentUrl:o,document:i,tag:'static'});case 3:return t.abrupt("return",n(o));case 4:case"end":return t.stop()}},null,null,null,Promise)}},n.strictDocumentLoader=n.extendContextLoader(function(t){throw new Error(t+" not found.")})},1747,[1748]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=new Map([[r(d[0]).SECURITY_CONTEXT_V1_URL,r(d[1]).contexts.get(r(d[0]).SECURITY_CONTEXT_V1_URL)],[r(d[0]).SECURITY_CONTEXT_V2_URL,r(d[1]).contexts.get(r(d[0]).SECURITY_CONTEXT_V2_URL)]])},1748,[1741,1742]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){if(t.unmappedProperty)throw new Error('The property "'+t.unmappedProperty+"\" in the input was not defined in the context.")}},1749,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';function e(){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(e){return!1}}var t=(function(t){r(d[2])(c,t);var n,o,u=(n=c,o=e(),function(){var e,t=r(d[0])(n);if(o){var u=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,u)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function c(e){var t;return r(d[3])(this,c),t=u.call(this,c._prepareSuperMessage(e)),Object.defineProperty(r(d[4])(t),'name',{value:'NonError',configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(r(d[4])(t),c),t}return r(d[5])(c,null,[{key:"_prepareSuperMessage",value:function(e){try{return JSON.stringify(e)}catch(t){return String(e)}}}]),c})(r(d[6])(Error)),n=[{property:'name',enumerable:!1},{property:'message',enumerable:!1},{property:'stack',enumerable:!1},{property:'code',enumerable:!0}],o=Symbol('.toJSON called'),u=function(e){e[o]=!0;var t=e.toJSON();return delete e[o],t},c=function e(t){var c=t.from,f=t.seen,l=t.to_,p=t.forceEnumerable,s=t.maxDepth,y=t.depth,b=l||(Array.isArray(c)?[]:{});if(f.push(c),y>=s)return b;if('function'==typeof c.toJSON&&!0!==c[o])return u(c);for(var h=0,v=Object.entries(c);h1&&void 0!==arguments[1]?arguments[1]:{}).maxDepth,n=void 0===t?Number.POSITIVE_INFINITY:t;return'object'==typeof e&&null!==e?c({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):'function'==typeof e?"[Function: "+(e.name||'anonymous')+"]":e},deserializeError:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).maxDepth,o=void 0===n?Number.POSITIVE_INFINITY:n;if(e instanceof Error)return e;if('object'==typeof e&&null!==e&&!Array.isArray(e)){var u=new Error;return c({from:e,seen:[],to_:u,maxDepth:o,depth:0}),u}return new t(e)}}},1750,[14,11,9,7,13,8,65,31]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e;return r(d[3])(this,u),(e=o.call(this,'Verification error(s).')).name='VerificationError',e.errors=[].concat(t),e}return r(d[4])(u)})(r(d[5])(Error));m.exports=e},1751,[14,11,9,7,8,65]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.suites={LinkedDataProof:r(d[0]),LinkedDataSignature:r(d[1])}},1752,[1753,1755]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new T(i||[]);return c(s,"_invoke",{value:k(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};h(b,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,s)&&(b=_);var P=L.prototype=w.prototype=Object.create(b);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return A()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=G(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}m.exports=(function(){function n(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type;if(r(d[0])(this,n),'string'!=typeof t)throw new TypeError('A LinkedDataProof must have a "type".');this.type=t}return r(d[1])(n,[{key:"createProof",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw r(d[2])(n),new Error('"createProof" must be implemented in a derived class.');case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"verifyProof",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw r(d[2])(n),new Error('"verifyProof" must be implemented in a derived class.');case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"matchProof",value:function(n){var o;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n.proof,t.abrupt("return",o.type===this.type);case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})()},1753,[7,8,1754]); +__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},m.exports.default=m.exports,m.exports.__esModule=!0},1754,[]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function e(){e=function(){return t};var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var c=t&&t.prototype instanceof y?t:y,u=Object.create(c.prototype),s=new j(o||[]);return i(u,"_invoke",{value:_(e,n,s)}),u}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var v={};function y(){}function w(){}function x(){}var L={};h(L,u,function(){return this});var b=Object.getPrototypeOf,E=b&&b(b(C([])));E&&E!==n&&o.call(E,u)&&(L=E);var k=x.prototype=y.prototype=Object.create(L);function M(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function P(e,t){function n(i,c,u,s){var f=p(e[i],e,c);if("throw"!==f.type){var h=f.arg,l=h.value;return l&&"object"==typeof l&&o.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,u,s)},function(e){n("throw",e,u,s)}):t.resolve(l).then(function(e){h.value=e,u(h)},function(e){return n("throw",e,u,s)})}s(f.arg)}var c;i(this,"_invoke",{value:function(e,o){function i(){return new t(function(t,i){n(e,o,t,i)})}return c=c?c.then(i,i):i()}})}function _(e,t,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return S()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=T(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=p(e,t,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function T(e,t){var n=t.method,o=e.iterator[n];if(void 0===o)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var c=i.arg;return c?c.done?(t[e.resultName]=c.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,v):c:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function C(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(s&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}function t(){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(e){return!1}}function n(e){var t=e.document,n=e.contextUrl,o=t['@context'];return o===n||Array.isArray(o)&&o.includes(n)}function o(e){var t=e.key,n=e.signer,o=e.verifier,i={};if(t){if(i.key=t,i.verificationMethod=t.id,'function'==typeof t.signer&&(i.signer=t.signer()),'function'==typeof t.verifier&&(i.verifier=t.verifier()),!i.signer&&!i.verifier)throw new TypeError('The "key" parameter must contain a "signer" or "verifier" method.')}else i.verificationMethod=n&&n.id||o&&o.id,i.signer=n,i.verifier=o;if(i.signer&&'function'!=typeof i.signer.sign)throw new TypeError('A signer API has not been specified.');if(i.verifier&&'function'!=typeof i.verifier.verify)throw new TypeError('A verifier API has not been specified.');return i}m.exports=(function(i){r(d[2])(f,i);var c,u,s=(c=f,u=t(),function(){var e,t=r(d[0])(c);if(u){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function f(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.type,i=t.proof,c=t.LDKeyClass,u=t.date,h=t.key,l=t.signer,p=t.verifier,v=t.useNativeCanonize,y=t.contextUrl;r(d[3])(this,f),(e=s.call(this,{type:n})).LDKeyClass=c,e.contextUrl=y,e.proof=i;var w=o({key:h,signer:l,verifier:p});if(e.verificationMethod=w.verificationMethod,e.key=w.key,e.signer=w.signer,e.verifier=w.verifier,u&&(e.date=new Date(u),isNaN(e.date)))throw TypeError("\"date\" \""+u+"\" is not a valid date.");return e.useNativeCanonize=v,e._hashCache=null,e}return r(d[4])(f,[{key:"createProof",value:function(t){var n,o,i,c,u,s,f;return e().async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=t.document,o=t.purpose,i=t.documentLoader,c=t.expansionMap,(u=this.proof?r(d[5])({},this.proof):{}).type=this.type,s=this.date,void 0===u.created&&void 0===s&&(s=new Date),s&&'string'!=typeof s&&(s=r(d[6]).w3cDate(s)),s&&(u.created=s),u.verificationMethod=this.verificationMethod,h.next=10,e().awrap(this.updateProof({document:n,proof:u,purpose:o,documentLoader:i,expansionMap:c}));case 10:return u=h.sent,h.next=13,e().awrap(o.update(u,{document:n,suite:this,documentLoader:i,expansionMap:c}));case 13:return u=h.sent,h.next=16,e().awrap(this.createVerifyData({document:n,proof:u,documentLoader:i,expansionMap:c}));case 16:return f=h.sent,h.next=19,e().awrap(this.sign({verifyData:f,document:n,proof:u,documentLoader:i,expansionMap:c}));case 19:return u=h.sent,h.abrupt("return",u);case 21:case"end":return h.stop()}},null,this,null,Promise)}},{key:"updateProof",value:function(t){var n;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.proof,e.abrupt("return",n);case 2:case"end":return e.stop()}},null,null,null,Promise)}},{key:"verifyProof",value:function(t){var n,o,i,c,u,s;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:return n=t.proof,o=t.document,i=t.documentLoader,c=t.expansionMap,f.prev=1,f.next=4,e().awrap(this.createVerifyData({document:o,proof:n,documentLoader:i,expansionMap:c}));case 4:return u=f.sent,f.next=7,e().awrap(this.getVerificationMethod({proof:n,document:o,documentLoader:i,expansionMap:c}));case 7:return s=f.sent,f.next=10,e().awrap(this.verifySignature({verifyData:u,verificationMethod:s,document:o,proof:n,documentLoader:i,expansionMap:c}));case 10:if(f.sent){f.next=13;break}throw new Error('Invalid signature.');case 13:return f.abrupt("return",{verified:!0,verificationMethod:s});case 16:return f.prev=16,f.t0=f.catch(1),f.abrupt("return",{verified:!1,error:f.t0});case 19:case"end":return f.stop()}},null,this,[[1,16]],Promise)}},{key:"canonize",value:function(t,n){var o,i,c;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.documentLoader,i=n.expansionMap,c=n.skipExpansion,e.abrupt("return",r(d[7]).canonize(t,{algorithm:'URDNA2015',format:'application/n-quads',documentLoader:o,expansionMap:i,skipExpansion:c,useNative:this.useNativeCanonize}));case 2:case"end":return e.stop()}},null,this,null,Promise)}},{key:"canonizeProof",value:function(t,n){var o,i,c;return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.document,i=n.documentLoader,c=n.expansionMap,delete(t=r(d[5])({'@context':o['@context']||r(d[8]).SECURITY_CONTEXT_URL},t)).jws,delete t.signatureValue,delete t.proofValue,e.abrupt("return",this.canonize(t,{documentLoader:i,expansionMap:c,skipExpansion:!1}));case 6:case"end":return e.stop()}},null,this,null,Promise)}},{key:"createVerifyData",value:function(t){var n,o,i,c,u,s,f,h,l,p;return e().async(function(v){for(;;)switch(v.prev=v.next){case 0:return n=t.document,o=t.proof,i=t.documentLoader,c=t.expansionMap,(s=this._hashCache)&&s.document===n?u=s.hash:this._hashCache={document:n,hash:u=this.canonize(n,{documentLoader:i,expansionMap:c}).then(function(e){return r(d[9]).sha256digest({string:e})})},v.next=5,e().awrap(Promise.all([this.canonizeProof(o,{document:n,documentLoader:i,expansionMap:c}).then(function(e){return r(d[9]).sha256digest({string:e})}),u]));case 5:return f=v.sent,h=r(d[10])(f,2),l=h[0],p=h[1],v.abrupt("return",r(d[6]).concat(l,p));case 10:case"end":return v.stop()}},null,this,null,Promise)}},{key:"getVerificationMethod",value:function(t){var n,o,i,c;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.proof,o=t.documentLoader,'object'==typeof(i=n.verificationMethod)&&(i=i.id),i){u.next=5;break}throw new Error('No "verificationMethod" found in proof.');case 5:return u.next=7,e().awrap(r(d[7]).frame(i,{'@context':r(d[8]).SECURITY_CONTEXT_URL,'@embed':'@always',id:i},{documentLoader:o,compactToRelative:!1}));case 7:if(c=u.sent){u.next=10;break}throw new Error("Verification method "+i+" not found.");case 10:if(void 0===c.revoked){u.next=12;break}throw new Error('The verification method has been revoked.');case 12:return u.abrupt("return",c);case 13:case"end":return u.stop()}},null,null,null,Promise)}},{key:"sign",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('Must be implemented by a derived class.');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"verifySignature",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('Must be implemented by a derived class.');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"ensureSuiteContext",value:function(e){var t=e.document,o=e.addSuiteContext,i=this.contextUrl;if(!n({document:t,contextUrl:i})){if(!o)throw new TypeError("The document to be signed must contain this suite's @context, \""+i+"\".");var c=t['@context']||[];t['@context']=Array.isArray(c)?[].concat(r(d[11])(c),[i]):[c,i]}}}]),f})(r(d[12]))},1755,[14,11,9,7,8,4,1756,1701,1741,1757,31,42,1753]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={};m.exports=t,t.w3cDate=function(t){void 0===t||null===t?t=new Date:'number'!=typeof t&&'string'!=typeof t||(t=new Date(t));var n=t.toISOString();return n.substr(0,n.length-5)+'Z'},t.concat=function(t,n){var o=new Uint8Array(t.length+n.length);return o.set(t,0),o.set(n,t.length),o}},1756,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new T(i||[]);return c(l,"_invoke",{value:G(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,l)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function G(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return A()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=N(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}r(d[0]),m.exports={sha256digest:function(n){var o,i=n.string;return t().async(function(n){for(;;)switch(n.prev=n.next){case 0:return o=(new TextEncoder).encode(i),n.t0=Uint8Array,n.next=4,t().awrap(r(d[1]).subtle.digest({name:'SHA-256'},o));case 4:return n.t1=n.sent,n.abrupt("return",new n.t0(n.t1));case 6:case"end":return n.stop()}},null,null,null,Promise)}}},1757,[616,616]); +__d(function(g,r,i,a,m,e,d){'use strict';var o={};m.exports=o,o.purposes={AssertionProofPurpose:r(d[0]),AuthenticationProofPurpose:r(d[1]),ControllerProofPurpose:r(d[2]),ProofPurpose:r(d[3])}},1758,[1759,1762,1760,1761]); +__d(function(g,r,i,a,m,_e,d){'use strict';function t(){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}}m.exports=(function(e){r(d[2])(u,e);var n,o,c=(n=u,o=t(),function(){var t,e=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.term,n=void 0===e?'assertionMethod':e,o=t.controller,l=t.date,f=t.maxTimestampDelta,s=void 0===f?1/0:f;return r(d[3])(this,u),c.call(this,{term:n,controller:o,date:l,maxTimestampDelta:s})}return r(d[4])(u)})(r(d[5]))},1759,[14,11,9,7,8,1760]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),l=new P(o||[]);return i(u,"_invoke",{value:O(t,n,l)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v={};function y(){}function w(){}function x(){}var b={};f(b,u,function(){return this});var L=Object.getPrototypeOf,E=L&&L(L(R([])));E&&E!==n&&o.call(E,u)&&(b=E);var _=x.prototype=y.prototype=Object.create(b);function k(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function n(i,c,u,l){var s=p(t[i],t,c);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,l)},function(t){n("throw",t,u,l)}):e.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,l)})}l(s.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function O(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return G()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var l=T(u,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=p(t,e,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function T(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function D(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function R(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}function e(){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}}var n=['assertionMethod','authentication','capabilityInvocation','capabilityDelegation','keyAgreement','verificationMethod'];m.exports=(function(o){r(d[2])(l,o);var i,c,u=(i=l,c=e(),function(){var t,e=r(d[0])(i);if(c){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function l(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.term,i=e.controller,c=e.date,s=e.maxTimestampDelta,f=void 0===s?1/0:s;if(r(d[3])(this,l),t=u.call(this,{term:o,date:c,maxTimestampDelta:f}),void 0!==i){if('object'!=typeof i)throw new TypeError('"controller" must be an object.');t.controller=i}return t._termDefinedByDIDContext=n.includes(o),t}return r(d[4])(l,[{key:"validate",value:function(e,n){var o,i,c,u,s,f,h,p,v,y,w,x;return t().async(function(b){for(;;)switch(b.prev=b.next){case 0:return o=n.verificationMethod,i=n.documentLoader,c=n.expansionMap,b.prev=1,b.next=4,t().awrap(r(d[5])(r(d[0])(l.prototype),"validate",this).call(this,e,{verificationMethod:o,documentLoader:i,expansionMap:c}));case 4:if((u=b.sent).valid){b.next=7;break}throw u.error;case 7:if(s=o.id,f=this.term,h=this._termDefinedByDIDContext,!this.controller){b.next=13;break}u.controller=this.controller,b.next=34;break;case 13:if(!(p=o.controller)){b.next=24;break}if('object'!=typeof p){b.next=19;break}v=p.id,b.next=24;break;case 19:if('string'==typeof p){b.next=23;break}throw new TypeError('"controller" must be a string representing a URL.');case 23:v=p;case 24:return b.next=26,t().awrap(i(v));case 26:if(y=b.sent,w=y.document,!!(h&&"https://www.w3.org/ns/did/v1"===w['@context']||Array.isArray(w['@context'])&&"https://www.w3.org/ns/did/v1"===w['@context'][0])){b.next=33;break}return b.next=32,t().awrap(r(d[6]).frame(w,r(d[7])({'@context':r(d[8]).SECURITY_CONTEXT_URL,id:v},f,{'@embed':'@never',id:s}),{documentLoader:i,compactToRelative:!1}));case 32:w=b.sent;case 33:u.controller=w;case 34:if(x=r(d[6]).getValues(u.controller,f),u.valid=x.some(function(t){return t===s||'object'==typeof t&&t.id===s}),u.valid){b.next=38;break}throw new Error("Verification method \""+o.id+"\" not authorized by controller for proof purpose \""+this.term+"\".");case 38:return b.abrupt("return",u);case 41:return b.prev=41,b.t0=b.catch(1),b.abrupt("return",{valid:!1,error:b.t0});case 44:case"end":return b.stop()}},null,this,[[1,41]],Promise)}}]),l})(r(d[9]))},1760,[14,11,9,7,8,90,1701,248,1741,1761]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",h=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),h=new G(i||[]);return c(s,"_invoke",{value:k(t,o,h)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(S([])));_&&_!==o&&i.call(_,s)&&(L=_);var T=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,h){var l=v(t[c],t,u);if("throw"!==l.type){var f=l.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,h)},function(t){o("throw",t,s,h)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,h)})}h(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return F()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var h=P(s,o);if(h){if(h===y)continue;return h}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function P(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,P(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function D(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function S(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var h=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(h&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),D(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;D(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:S(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}m.exports=(function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.term,i=t.date,c=t.maxTimestampDelta,u=void 0===c?1/0:c;if(r(d[0])(this,n),void 0===o)throw new Error('"term" is required.');if(void 0!==u&&'number'!=typeof u)throw new TypeError('"maxTimestampDelta" must be a number.');if(this.term=o,void 0!==i&&(this.date=new Date(i),isNaN(this.date)))throw TypeError("\"date\" \""+i+"\" is not a valid date.");this.maxTimestampDelta=u}return r(d[1])(n,[{key:"validate",value:function(n,o){var i,c,u;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(r(d[2])(o),t.prev=1,this.maxTimestampDelta===1/0){t.next=8;break}if(i=(this.date||new Date).getTime(),c=1e3*this.maxTimestampDelta,(u=new Date(n.created).getTime())>=i-c&&u<=i+c){t.next=8;break}throw new Error('The proof\'s created timestamp is out of range.');case 8:return t.abrupt("return",{valid:!0});case 11:return t.prev=11,t.t0=t.catch(1),t.abrupt("return",{valid:!1,error:t.t0});case 14:case"end":return t.stop()}},null,this,[[1,11]],Promise)}},{key:"update",value:function(n,o){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return r(d[2])(o),n.proofPurpose=this.term,t.abrupt("return",n);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"match",value:function(n,o){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return r(d[2])(o),t.abrupt("return",n.proofPurpose===this.term);case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})()},1761,[7,8,1754]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function f(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),l=new N(o||[]);return i(u,"_invoke",{value:k(t,n,l)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v={};function y(){}function w(){}function x(){}var b={};h(b,u,function(){return this});var L=Object.getPrototypeOf,E=L&&L(L(S([])));E&&E!==n&&o.call(E,u)&&(b=E);var _=x.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach(function(e){h(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function n(i,c,u,l){var s=p(t[i],t,c);if("throw"!==s.type){var h=s.arg,f=h.value;return f&&"object"==typeof f&&o.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,u,l)},function(t){n("throw",t,u,l)}):e.resolve(f).then(function(t){h.value=t,u(h)},function(t){return n("throw",t,u,l)})}l(s.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function k(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return M()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var l=T(u,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=p(t,e,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}function T(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function P(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 G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function S(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=o.call(c,"catchLoc"),s=o.call(c,"finallyLoc");if(l&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),G(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;G(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}function e(){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}}m.exports=(function(n){r(d[2])(u,n);var o,i,c=(o=u,i=e(),function(){var t,e=r(d[0])(o);if(i){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.term,o=void 0===n?'authentication':n,i=e.controller,l=e.challenge,s=e.date,h=e.domain,f=e.maxTimestampDelta,p=void 0===f?1/0:f;if(r(d[3])(this,u),t=c.call(this,{term:o,controller:i,date:s,maxTimestampDelta:p}),'string'!=typeof l)throw new TypeError('"challenge" must be a string.');if(void 0!==h&&'string'!=typeof h)throw new TypeError('"domain" must be a string.');return t.challenge=l,t.domain=h,t}return r(d[4])(u,[{key:"validate",value:function(e,n){var o,i,c;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.verificationMethod,i=n.documentLoader,c=n.expansionMap,t.prev=1,e.challenge===this.challenge){t.next=4;break}throw new Error("The challenge is not as expected; challenge=\""+e.challenge+"\", expected=\""+this.challenge+"\"");case 4:if(void 0===this.domain||e.domain===this.domain){t.next=6;break}throw new Error("The domain is not as expected; domain=\""+e.domain+"\", expected=\""+this.domain+"\"");case 6:return t.abrupt("return",r(d[5])(r(d[0])(u.prototype),"validate",this).call(this,e,{verificationMethod:o,documentLoader:i,expansionMap:c}));case 9:return t.prev=9,t.t0=t.catch(1),t.abrupt("return",{valid:!1,error:t.t0});case 12:case"end":return t.stop()}},null,this,[[1,9]],Promise)}},{key:"update",value:function(e,n){var o,i,c,l;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return o=n.document,i=n.suite,c=n.documentLoader,l=n.expansionMap,s.next=3,t().awrap(r(d[5])(r(d[0])(u.prototype),"update",this).call(this,e,{document:o,suite:i,documentLoader:c,expansionMap:l}));case 3:return(e=s.sent).challenge=this.challenge,void 0!==this.domain&&(e.domain=this.domain),s.abrupt("return",e);case 7:case"end":return s.stop()}},null,this,null,Promise)}}]),u})(r(d[6]))},1762,[14,11,9,7,8,90,1760]); +__d(function(g,r,_i,a,m,e,d){'use strict';function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),f=new F(i||[]);return c(l,"_invoke",{value:G(t,o,f)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};s(b,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,f){var h=v(t[c],t,u);if("throw"!==h.type){var s=h.arg,p=s.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,f)},function(t){o("throw",t,l,f)}):n.resolve(p).then(function(t){s.value=t,l(s)},function(t){return o("throw",t,l,f)})}f(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function G(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var f=N(l,o);if(f){if(f===y)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var f=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(f&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}m.exports=function(n){var o;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(o=r(d[0])[n])){t.next=3;break}return t.abrupt("return",{contextUrl:null,documentUrl:n,document:o});case 3:throw new Error("Document loader unable to load URL \""+n+"\".");case 4:case"end":return t.stop()}},null,null,null,Promise)}},1763,[1764]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=m.exports={'https://www.w3.org/2018/credentials/examples/v1':r(d[0]),'https://www.w3.org/ns/odrl.jsonld':r(d[1])};for(var s in r(d[2]).constants){var n=r(d[2]).constants[s];s.includes('URL')&&(t[n]=r(d[2]).contexts.get(n))}},1764,[1765,1766,1767]); +__d(function(g,r,i,a,m,e,d){m.exports={'@context':[{'@version':1.1},'https://www.w3.org/ns/odrl.jsonld',{ex:'https://example.org/examples#',schema:'http://schema.org/',rdf:'http://www.w3.org/1999/02/22-rdf-syntax-ns#','3rdPartyCorrelation':'ex:3rdPartyCorrelation',AllVerifiers:'ex:AllVerifiers',Archival:'ex:Archival',BachelorDegree:'ex:BachelorDegree',Child:'ex:Child',CLCredentialDefinition2019:'ex:CLCredentialDefinition2019',CLSignature2019:'ex:CLSignature2019',IssuerPolicy:'ex:IssuerPolicy',HolderPolicy:'ex:HolderPolicy',Mother:'ex:Mother',RelationshipCredential:'ex:RelationshipCredential',UniversityDegreeCredential:'ex:UniversityDegreeCredential',ZkpExampleSchema2018:'ex:ZkpExampleSchema2018',alumniOf:{'@id':'schema:alumniOf','@type':'rdf:HTML'},child:{'@id':'ex:child','@type':'@id'},degree:'ex:degree',name:{'@id':'schema:name','@type':'rdf:HTML'},parent:{'@id':'ex:parent','@type':'@id'},referenceId:'ex:referenceId',documentPresence:'ex:documentPresence',evidenceDocument:'ex:evidenceDocument',subjectPresence:'ex:subjectPresence',verifier:{'@id':'ex:verifier','@type':'@id'}}]}},1765,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{odrl:'http://www.w3.org/ns/odrl/2/',rdf:'http://www.w3.org/1999/02/22-rdf-syntax-ns#',rdfs:'http://www.w3.org/2000/01/rdf-schema#',owl:'http://www.w3.org/2002/07/owl#',skos:'http://www.w3.org/2004/02/skos/core#',dct:'http://purl.org/dc/terms/',xsd:'http://www.w3.org/2001/XMLSchema#',vcard:'http://www.w3.org/2006/vcard/ns#',foaf:'http://xmlns.com/foaf/0.1/',schema:'http://schema.org/',cc:'http://creativecommons.org/ns#',uid:'@id',type:'@type',Policy:'odrl:Policy',Rule:'odrl:Rule',profile:{'@type':'@id','@id':'odrl:profile'},inheritFrom:{'@type':'@id','@id':'odrl:inheritFrom'},ConflictTerm:'odrl:ConflictTerm',conflict:{'@type':'@vocab','@id':'odrl:conflict'},perm:'odrl:perm',prohibit:'odrl:prohibit',invalid:'odrl:invalid',Agreement:'odrl:Agreement',Assertion:'odrl:Assertion',Offer:'odrl:Offer',Privacy:'odrl:Privacy',Request:'odrl:Request',Set:'odrl:Set',Ticket:'odrl:Ticket',Asset:'odrl:Asset',AssetCollection:'odrl:AssetCollection',relation:{'@type':'@id','@id':'odrl:relation'},hasPolicy:{'@type':'@id','@id':'odrl:hasPolicy'},target:{'@type':'@id','@id':'odrl:target'},output:{'@type':'@id','@id':'odrl:output'},partOf:{'@type':'@id','@id':'odrl:partOf'},source:{'@type':'@id','@id':'odrl:source'},Party:'odrl:Party',PartyCollection:'odrl:PartyCollection',function:{'@type':'@vocab','@id':'odrl:function'},PartyScope:'odrl:PartyScope',assignee:{'@type':'@id','@id':'odrl:assignee'},assigner:{'@type':'@id','@id':'odrl:assigner'},assigneeOf:{'@type':'@id','@id':'odrl:assigneeOf'},assignerOf:{'@type':'@id','@id':'odrl:assignerOf'},attributedParty:{'@type':'@id','@id':'odrl:attributedParty'},attributingParty:{'@type':'@id','@id':'odrl:attributingParty'},compensatedParty:{'@type':'@id','@id':'odrl:compensatedParty'},compensatingParty:{'@type':'@id','@id':'odrl:compensatingParty'},consentingParty:{'@type':'@id','@id':'odrl:consentingParty'},consentedParty:{'@type':'@id','@id':'odrl:consentedParty'},informedParty:{'@type':'@id','@id':'odrl:informedParty'},informingParty:{'@type':'@id','@id':'odrl:informingParty'},trackingParty:{'@type':'@id','@id':'odrl:trackingParty'},trackedParty:{'@type':'@id','@id':'odrl:trackedParty'},contractingParty:{'@type':'@id','@id':'odrl:contractingParty'},contractedParty:{'@type':'@id','@id':'odrl:contractedParty'},Action:'odrl:Action',action:{'@type':'@vocab','@id':'odrl:action'},includedIn:{'@type':'@id','@id':'odrl:includedIn'},implies:{'@type':'@id','@id':'odrl:implies'},Permission:'odrl:Permission',permission:{'@type':'@id','@id':'odrl:permission'},Prohibition:'odrl:Prohibition',prohibition:{'@type':'@id','@id':'odrl:prohibition'},obligation:{'@type':'@id','@id':'odrl:obligation'},use:'odrl:use',grantUse:'odrl:grantUse',aggregate:'odrl:aggregate',annotate:'odrl:annotate',anonymize:'odrl:anonymize',archive:'odrl:archive',concurrentUse:'odrl:concurrentUse',derive:'odrl:derive',digitize:'odrl:digitize',display:'odrl:display',distribute:'odrl:distribute',execute:'odrl:execute',extract:'odrl:extract',give:'odrl:give',index:'odrl:index',install:'odrl:install',modify:'odrl:modify',move:'odrl:move',play:'odrl:play',present:'odrl:present',print:'odrl:print',read:'odrl:read',reproduce:'odrl:reproduce',sell:'odrl:sell',stream:'odrl:stream',textToSpeech:'odrl:textToSpeech',transfer:'odrl:transfer',transform:'odrl:transform',translate:'odrl:translate',Duty:'odrl:Duty',duty:{'@type':'@id','@id':'odrl:duty'},consequence:{'@type':'@id','@id':'odrl:consequence'},remedy:{'@type':'@id','@id':'odrl:remedy'},acceptTracking:'odrl:acceptTracking',attribute:'odrl:attribute',compensate:'odrl:compensate',delete:'odrl:delete',ensureExclusivity:'odrl:ensureExclusivity',include:'odrl:include',inform:'odrl:inform',nextPolicy:'odrl:nextPolicy',obtainConsent:'odrl:obtainConsent',reviewPolicy:'odrl:reviewPolicy',uninstall:'odrl:uninstall',watermark:'odrl:watermark',Constraint:'odrl:Constraint',LogicalConstraint:'odrl:LogicalConstraint',constraint:{'@type':'@id','@id':'odrl:constraint'},refinement:{'@type':'@id','@id':'odrl:refinement'},Operator:'odrl:Operator',operator:{'@type':'@vocab','@id':'odrl:operator'},RightOperand:'odrl:RightOperand',rightOperand:'odrl:rightOperand',rightOperandReference:{'@type':'xsd:anyURI','@id':'odrl:rightOperandReference'},LeftOperand:'odrl:LeftOperand',leftOperand:{'@type':'@vocab','@id':'odrl:leftOperand'},unit:'odrl:unit',dataType:{'@type':'xsd:anyType','@id':'odrl:datatype'},status:'odrl:status',absolutePosition:'odrl:absolutePosition',absoluteSpatialPosition:'odrl:absoluteSpatialPosition',absoluteTemporalPosition:'odrl:absoluteTemporalPosition',absoluteSize:'odrl:absoluteSize',count:'odrl:count',dateTime:'odrl:dateTime',delayPeriod:'odrl:delayPeriod',deliveryChannel:'odrl:deliveryChannel',elapsedTime:'odrl:elapsedTime',event:'odrl:event',fileFormat:'odrl:fileFormat',industry:'odrl:industry:',language:'odrl:language',media:'odrl:media',meteredTime:'odrl:meteredTime',payAmount:'odrl:payAmount',percentage:'odrl:percentage',product:'odrl:product',purpose:'odrl:purpose',recipient:'odrl:recipient',relativePosition:'odrl:relativePosition',relativeSpatialPosition:'odrl:relativeSpatialPosition',relativeTemporalPosition:'odrl:relativeTemporalPosition',relativeSize:'odrl:relativeSize',resolution:'odrl:resolution',spatial:'odrl:spatial',spatialCoordinates:'odrl:spatialCoordinates',systemDevice:'odrl:systemDevice',timeInterval:'odrl:timeInterval',unitOfCount:'odrl:unitOfCount',version:'odrl:version',virtualLocation:'odrl:virtualLocation',eq:'odrl:eq',gt:'odrl:gt',gteq:'odrl:gteq',lt:'odrl:lt',lteq:'odrl:lteq',neq:'odrl:neg',isA:'odrl:isA',hasPart:'odrl:hasPart',isPartOf:'odrl:isPartOf',isAllOf:'odrl:isAllOf',isAnyOf:'odrl:isAnyOf',isNoneOf:'odrl:isNoneOf',or:'odrl:or',xone:'odrl:xone',and:'odrl:and',andSequence:'odrl:andSequence',policyUsage:'odrl:policyUsage'}}},1766,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var T=new Map;T.set(r(d[0]).CONTEXT_URL,r(d[1])),m.exports={constants:r(d[0]),contexts:T,documentLoader:r(d[2]).documentLoader,CONTEXT_URL:r(d[0]).CONTEXT_URL,CREDENTIALS_CONTEXT_V1_URL:r(d[0]).CONTEXT_URL,CONTEXT_URL_V1:r(d[0]).CONTEXT_URL,CONTEXT:r(d[1])}},1767,[1768,1769,1770]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={CONTEXT_FILENAME:'credentials-v1.jsonld',CONTEXT_URL:'https://www.w3.org/2018/credentials/v1',CREDENTIALS_CONTEXT_V1_URL:'https://www.w3.org/2018/credentials/v1'}},1768,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={'@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',VerifiableCredential:{'@id':'https://www.w3.org/2018/credentials#VerifiableCredential','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',credentialSchema:{'@id':'cred:credentialSchema','@type':'@id','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',JsonSchemaValidator2018:'cred:JsonSchemaValidator2018'}},credentialStatus:{'@id':'cred:credentialStatus','@type':'@id'},credentialSubject:{'@id':'cred:credentialSubject','@type':'@id'},evidence:{'@id':'cred:evidence','@type':'@id'},expirationDate:{'@id':'cred:expirationDate','@type':'xsd:dateTime'},holder:{'@id':'cred:holder','@type':'@id'},issued:{'@id':'cred:issued','@type':'xsd:dateTime'},issuer:{'@id':'cred:issuer','@type':'@id'},issuanceDate:{'@id':'cred:issuanceDate','@type':'xsd:dateTime'},proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},refreshService:{'@id':'cred:refreshService','@type':'@id','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',ManualRefreshService2018:'cred:ManualRefreshService2018'}},termsOfUse:{'@id':'cred:termsOfUse','@type':'@id'},validFrom:{'@id':'cred:validFrom','@type':'xsd:dateTime'},validUntil:{'@id':'cred:validUntil','@type':'xsd:dateTime'}}},VerifiablePresentation:{'@id':'https://www.w3.org/2018/credentials#VerifiablePresentation','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',cred:'https://www.w3.org/2018/credentials#',sec:'https://w3id.org/security#',holder:{'@id':'cred:holder','@type':'@id'},proof:{'@id':'sec:proof','@type':'@id','@container':'@graph'},verifiableCredential:{'@id':'cred:verifiableCredential','@type':'@id','@container':'@graph'}}},EcdsaSecp256k1Signature2019:{'@id':'https://w3id.org/security#EcdsaSecp256k1Signature2019','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},EcdsaSecp256r1Signature2019:{'@id':'https://w3id.org/security#EcdsaSecp256r1Signature2019','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},Ed25519Signature2018:{'@id':'https://w3id.org/security#Ed25519Signature2018','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',xsd:'http://www.w3.org/2001/XMLSchema#',challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},RsaSignature2018:{'@id':'https://w3id.org/security#RsaSignature2018','@context':{'@version':1.1,'@protected':!0,challenge:'sec:challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'xsd:dateTime'},domain:'sec:domain',expires:{'@id':'sec:expiration','@type':'xsd:dateTime'},jws:'sec:jws',nonce:'sec:nonce',proofPurpose:{'@id':'sec:proofPurpose','@type':'@vocab','@context':{'@version':1.1,'@protected':!0,id:'@id',type:'@type',sec:'https://w3id.org/security#',assertionMethod:{'@id':'sec:assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'sec:authenticationMethod','@type':'@id','@container':'@set'}}},proofValue:'sec:proofValue',verificationMethod:{'@id':'sec:verificationMethod','@type':'@id'}}},proof:{'@id':'https://w3id.org/security#proof','@type':'@id','@container':'@graph'}}}},1769,[]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={documentLoader:function(n){if(n!==r(d[0]).CONTEXT_URL)throw new Error("Loading document \""+n+"\" is not allowed.");return{contextUrl:null,document:r(d[1]),documentUrl:n}}}},1770,[1768,1769]); +__d(function(g,r,_i,a,m,_e,d){'use strict';function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),s=new S(o||[]);return i(u,"_invoke",{value:k(t,n,s)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v={};function y(){}function w(){}function x(){}var b={};f(b,u,function(){return this});var L=Object.getPrototypeOf,E=L&&L(L(T([])));E&&E!==n&&o.call(E,u)&&(b=E);var _=x.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function n(i,c,u,s){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):e.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function k(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return F()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=P(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function G(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}function e(){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}}var n=(function(n){r(d[3])(u,n);var o,i,c=(o=u,i=e(),function(){var t,e=r(d[0])(o);if(i){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.controller,n=t.date,o=t.maxTimestampDelta;return r(d[4])(this,u),c.call(this,{controller:e,date:n,maxTimestampDelta:o})}return r(d[5])(u,[{key:"validate",value:function(e,n){var o,i,c,s,l,f,h,p;return t().async(function(v){for(;;)switch(v.prev=v.next){case 0:return o=n.document,i=n.suite,c=n.verificationMethod,s=n.documentLoader,l=n.expansionMap,v.prev=1,v.next=4,t().awrap(r(d[6])(r(d[0])(u.prototype),"validate",this).call(this,e,{document:o,suite:i,verificationMethod:c,documentLoader:s,expansionMap:l}));case 4:if((f=v.sent).valid){v.next=7;break}throw f.error;case 7:if((h=r(d[7]).getValues(o,'issuer'))&&0!==h.length){v.next=10;break}throw new Error('Credential issuer is required.');case 10:if(p='string'==typeof h[0]?h[0]:h[0].id,f.controller.id===p){v.next=13;break}throw new Error('Credential issuer must match the verification method controller.');case 13:return v.abrupt("return",{valid:!0});case 16:return v.prev=16,v.t0=v.catch(1),v.abrupt("return",{valid:!1,error:v.t0});case 19:case"end":return v.stop()}},null,this,[[1,16]],Promise)}}]),u})(r(d[2]).purposes.AssertionProofPurpose);m.exports=n},1771,[14,11,1740,9,7,8,90,1701]); +__d(function(g,r,_i,a,m,_e,_d){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var u=e&&e.prototype instanceof v?e:v,c=Object.create(u.prototype),f=new B(o||[]);return i(c,"_invoke",{value:O(t,n,f)}),c}function y(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function v(){}function d(){}function w(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,L=x&&x(x(S([])));L&&L!==n&&o.call(L,c)&&(b=L);var k=w.prototype=v.prototype=Object.create(b);function E(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function n(i,u,c,f){var l=y(t[i],t,u);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,c,f)},function(t){n("throw",t,c,f)}):e.resolve(h).then(function(t){s.value=t,c(s)},function(t){return n("throw",t,c,f)})}f(l.arg)}var u;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return u=u?u.then(i,i):i()}})}function O(t,e,n){var o="suspendedStart";return function(i,u){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw u;return A()}for(n.method=i,n.arg=u;;){var c=n.delegate;if(c){var f=P(c,n);if(f){if(f===p)continue;return f}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=y(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=y(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var u=i.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var f=o.call(u,"catchLoc"),l=o.call(u,"finallyLoc");if(f&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function e(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.createWalletKeyPairClass=void 0,_e.createWalletKeyPairClass=function(n){return(function(o){r(_d[2])(f,o);var i,u,c=(i=f,u=e(),function(){var t,e=r(_d[0])(i);if(u){var n=r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(_d[1])(this,t)});function f(t){var e;return r(_d[3])(this,f),(e=c.call(this,t)).wallet=t.wallet,e.key=t.key,e.type=t.key.keyType,e}return r(_d[4])(f,[{key:"fingerprint",value:function(){throw new Error('Method not implemented.')}},{key:"verifyFingerprint",value:function(t){throw new Error('Method not implemented.')}},{key:"signer",value:function(){var e=this;return{sign:function(o){var i,u;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return i=[],i=Array.isArray(o.data)?o.data.map(function(t){return r(_d[5]).Buffer.from(t)}):r(_d[5]).Buffer.from(o.data),c.next=4,t().awrap(n.sign({data:i,key:e.key}));case 4:return u=c.sent,c.abrupt("return",Uint8Array.from(u));case 6:case"end":return c.stop()}},null,null,null,Promise)}.bind(this)}}},{key:"verifier",value:function(){var e=this;return{verify:function(o){var i;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],i=Array.isArray(o.data)?o.data.map(function(t){return r(_d[5]).Buffer.from(t)}):r(_d[5]).Buffer.from(o.data),t.abrupt("return",n.verify({data:i,signature:r(_d[5]).Buffer.from(o.signature),key:e.key}));case 3:case"end":return t.stop()}},null,null,null,Promise)}.bind(this)}}},{key:"publicKeyBuffer",get:function(){return new Uint8Array(this.key.publicKey)}}],[{key:"generate",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Not implemented');case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"from",value:function(e){var o,i,u,c;return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:return o=r(_d[6]).JsonTransformer.fromJSON(e,r(_d[7]).VerificationMethod),r(_d[8]).MessageValidator.validateSync(o),i=(0,r(_d[9]).getKeyDidMappingByVerificationMethod)(o),u=i.getKeyFromVerificationMethod,c=u(o),t.abrupt("return",new f({id:o.id,controller:o.controller,wallet:n,key:c}));case 5:case"end":return t.stop()}},null,null,null,Promise)}}]),f})(r(_d[10]).LdKeyPair)}},1772,[14,11,9,7,8,980,992,1419,660,1079,1773]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new F(i||[]);return c(l,"_invoke",{value:k(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};f(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(L=_);var O=x.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return K()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=N(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function G(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.LdKeyPair=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.id=t.id,this.controller=t.controller}return r(d[1])(n,[{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t&&!n)throw new Error('Export requires specifying either "publicKey" or "privateKey".');return{id:this.id,type:this.type,controller:this.controller}}}],[{key:"generate",value:function(){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Not implemented');case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"from",value:function(n){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error('Abstract method from() must be implemented in subclass.');case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),n})();e.LdKeyPair=n},1773,[7,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new N(i||[]);return c(s,"_invoke",{value:P(t,o,l)}),s}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var v={};function w(){}function x(){}function L(){}var b={};h(b,s,function(){return this});var _=Object.getPrototypeOf,E=_&&_(_(G([])));E&&E!==o&&i.call(E,s)&&(b=E);var O=L.prototype=w.prototype=Object.create(b);function T(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var f=y(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return I()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=k(s,o);if(l){if(l===v)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=y(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===v)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),v;var c=y(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,v;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,v):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},n}var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getTypeInfo=e.w3cDate=e.getProofs=e._includesContext=e.orArrayToArray=void 0;var o=n(r(d[0]));e.orArrayToArray=function(t){return t?Array.isArray(t)?t:[t]:[]};e._includesContext=function(t){var n=t.document['@context'];return n===t.contextUrl||Array.isArray(n)&&n.includes(t.contextUrl)};e.getProofs=function(n){var i,c,u,s,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=n.proofType,c=n.skipProofCompaction,u=n.documentLoader,s=n.expansionMap,l=n.document,c){h.next=6;break}return h.next=5,t().awrap(o.default.compact(l,r(d[1]).SECURITY_CONTEXT_URL,{documentLoader:u,expansionMap:s,compactToRelative:!1}));case 5:l=h.sent;case 6:return f=o.default.getValues(l,"proof"),delete l.proof,'string'==typeof i&&(f=f.filter(function(t){return t.type==i})),Array.isArray(i)&&(f=f.filter(function(t){return i.includes(t.type)})),f=f.map(function(t){return r(d[2])({'@context':r(d[1]).SECURITY_CONTEXT_URL},t)}),h.abrupt("return",{proofs:f,document:l});case 12:case"end":return h.stop()}},null,null,null,Promise)};e.w3cDate=function(t){var n=new Date;'number'!=typeof t&&'string'!=typeof t||(n=new Date(t));var o=n.toISOString();return o.substr(0,o.length-5)+'Z'};e.getTypeInfo=function(n,i){var c,u,s,l,f,h,p;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:return c=i.documentLoader,u=i.expansionMap,s=o.default.getValues(n,'@context'),y.next=4,t().awrap(o.default.compact({'@type':'_:b0'},s,{documentLoader:c,expansionMap:u}));case 4:return delete(l=y.sent)['@context'],f=Object.keys(l)[0],(h={'@context':s})['@type']=o.default.getValues(n,'@type').concat(o.default.getValues(n,f)),y.next=11,t().awrap(o.default.expand(h,{documentLoader:c,expansionMap:u}));case 11:if(y.t0=y.sent[0],y.t0){y.next=14;break}y.t0={};case 14:return p=y.t0,y.abrupt("return",{types:o.default.getValues(p,'@type'),alias:f});case 16:case"end":return y.stop()}},null,null,null,Promise)}},1774,[1700,1060,4]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e),n(r(d[7]),e),n(r(d[8]),e),n(r(d[9]),e),n(r(d[10]),e)},1775,[1692,1776,1778,1779,1780,1781,1782,1783,1784,1773,1777]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,f=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(f=(i<3?o(f):i>3?o(t,r,f):o(t,r))||f);return i>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.VerifiableCredentialTransformer=_e.W3cVerifiableCredential=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t;return _r(_d[3])(this,i),t=o.call(this,e),e&&(t.proof=Array.isArray(e.proof)?e.proof.map(function(e){return new(_r(_d[4]).LinkedDataProof)(e)}):new(_r(_d[4]).LinkedDataProof)(e.proof)),t}return _r(_d[5])(i,[{key:"proofTypes",get:function(){var e,t=(0,_r(_d[6]).orArrayToArray)(this.proof);return null!==(e=null===t||void 0===t?void 0:t.map(function(e){return e.type}))&&void 0!==e?e:[]}}]),i})(_r(_d[7]).W3cCredential);t([(0,_r(_d[4]).LinkedDataProofTransformer)(),(0,_r(_d[8]).IsInstanceOrArrayOfInstances)({classType:_r(_d[4]).LinkedDataProof}),r("design:type",Object)],n.prototype,"proof",void 0),_e.W3cVerifiableCredential=n,_e.VerifiableCredentialTransformer=function(){return(0,_r(_d[9]).Transform)(function(e){var t=e.value,r=e.type;return r===_r(_d[9]).TransformationType.PLAIN_TO_CLASS?Array.isArray(t)?t.map(function(e){return(0,_r(_d[9]).plainToInstance)(n,e)}):(0,_r(_d[9]).plainToInstance)(n,t):r===_r(_d[9]).TransformationType.CLASS_TO_PLAIN?Array.isArray(t)?t.map(function(e){return(0,_r(_d[9]).instanceToPlain)(e)}):(0,_r(_d[9]).instanceToPlain)(t):t})}},1776,[14,11,9,7,1777,8,1774,1692,992,626]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,n,i){var r,p=arguments.length,s=p<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,n,i);else for(var f=t.length-1;f>=0;f--)(r=t[f])&&(s=(p<3?r(s):p>3?r(o,n,s):r(o,n))||s);return p>3&&s&&Object.defineProperty(o,n,s),s},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedDataProofTransformer=e.LinkedDataProof=void 0;var n=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.type=o.type,this.proofPurpose=o.proofPurpose,this.verificationMethod=o.verificationMethod,this.created=o.created,this.domain=o.domain,this.challenge=o.challenge,this.jws=o.jws,this.proofValue=o.proofValue,this.nonce=o.nonce)});t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"type",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"proofPurpose",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"verificationMethod",void 0),t([(0,_r(_d[2]).IsString)(),o("design:type",String)],n.prototype,"created",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"domain",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"challenge",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"jws",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"proofValue",void 0),t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).IsOptional)(),o("design:type",String)],n.prototype,"nonce",void 0),e.LinkedDataProof=n,e.LinkedDataProofTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var o=t.value,i=t.type;return i===_r(_d[3]).TransformationType.PLAIN_TO_CLASS?Array.isArray(o)?o.map(function(t){return(0,_r(_d[3]).plainToInstance)(n,t)}):(0,_r(_d[3]).plainToInstance)(n,o):i===_r(_d[3]).TransformationType.CLASS_TO_PLAIN?Array.isArray(o)?o.map(function(t){return(0,_r(_d[3]).instanceToPlain)(t)}):(0,_r(_d[3]).instanceToPlain)(o):o})}},1777,[8,7,661,626]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1778,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1779,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1780,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,s=arguments.length,l=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,r,n);else for(var d=t.length-1;d>=0;d--)(o=t[d])&&(l=(s<3?o(l):s>3?o(i,r,l):o(i,r))||l);return s>3&&l&&Object.defineProperty(i,r,l),l},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsVerifiablePresentationType=e.W3cPresentation=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.context=i.context,this.type=i.type,this.verifiableCredential=Array.isArray(i.verifiableCredential)?i.verifiableCredential.map(function(t){return new(_r(_d[2]).W3cVerifiableCredential)(t)}):new(_r(_d[2]).W3cVerifiableCredential)(i.verifiableCredential),this.holder=i.holder)});function n(t){return(0,_r(_d[5]).ValidateBy)({name:'IsVerifiablePresentationType',validator:{validate:function(t){return!!Array.isArray(t)&&t.includes(_r(_d[7]).VERIFIABLE_PRESENTATION_TYPE)},defaultMessage:(0,_r(_d[5]).buildMessage)(function(t){return t+'$property must be an array of strings which includes "VerifiablePresentation"'},t)}},t)}t([(0,_r(_d[3]).Expose)({name:'@context'}),(0,_r(_d[4]).IsJsonLdContext)(),i("design:type",Object)],r.prototype,"context",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[6]).IsUri)(),i("design:type",String)],r.prototype,"id",void 0),t([n(),i("design:type",Array)],r.prototype,"type",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[5]).IsString)(),(0,_r(_d[6]).IsUri)(),i("design:type",String)],r.prototype,"holder",void 0),t([(0,_r(_d[2]).VerifiableCredentialTransformer)(),(0,_r(_d[6]).IsInstanceOrArrayOfInstances)({classType:_r(_d[2]).W3cVerifiableCredential}),i("design:type",Object)],r.prototype,"verifiableCredential",void 0),e.W3cPresentation=r,e.IsVerifiablePresentationType=n},1781,[8,7,1777,627,1695,662,1011,1061]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,f=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(f=(c<3?o(f):c>3?o(t,r,f):o(t,r))||f);return c>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cVerifiablePresentation=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),t=o.call(this,e),e&&(t.proof=new(_r(_d[4]).LinkedDataProof)(e.proof)),t}return _r(_d[5])(c)})(_r(_d[6]).W3cPresentation);t([(0,_r(_d[4]).LinkedDataProofTransformer)(),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[4]).LinkedDataProof}),r("design:type",Object)],n.prototype,"proof",void 0),_e.W3cVerifiablePresentation=n},1782,[14,11,9,7,1778,8,1781,1011]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,r,n){var o,s=arguments.length,l=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,r,n);else for(var d=t.length-1;d>=0;d--)(o=t[d])&&(l=(s<3?o(l):s>3?o(i,r,l):o(i,r))||l);return s>3&&l&&Object.defineProperty(i,r,l),l},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.IsVerifiablePresentationType=e.W3cPresentation=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.id=i.id,this.context=i.context,this.type=i.type,this.verifiableCredential=Array.isArray(i.verifiableCredential)?i.verifiableCredential.map(function(t){return new(_r(_d[2]).W3cVerifiableCredential)(t)}):new(_r(_d[2]).W3cVerifiableCredential)(i.verifiableCredential),this.holder=i.holder)});function n(t){return(0,_r(_d[5]).ValidateBy)({name:'IsVerifiablePresentationType',validator:{validate:function(t){return!!Array.isArray(t)&&t.includes(_r(_d[7]).VERIFIABLE_PRESENTATION_TYPE)},defaultMessage:(0,_r(_d[5]).buildMessage)(function(t){return t+'$property must be an array of strings which includes "VerifiablePresentation"'},t)}},t)}t([(0,_r(_d[3]).Expose)({name:'@context'}),(0,_r(_d[4]).IsJsonLdContext)(),i("design:type",Object)],r.prototype,"context",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[6]).IsUri)(),i("design:type",String)],r.prototype,"id",void 0),t([n(),i("design:type",Array)],r.prototype,"type",void 0),t([(0,_r(_d[5]).IsOptional)(),(0,_r(_d[5]).IsString)(),(0,_r(_d[6]).IsUri)(),i("design:type",String)],r.prototype,"holder",void 0),t([(0,_r(_d[2]).VerifiableCredentialTransformer)(),(0,_r(_d[6]).IsInstanceOrArrayOfInstances)({classType:_r(_d[2]).W3cVerifiableCredential}),i("design:type",Object)],r.prototype,"verifiableCredential",void 0),e.W3cPresentation=r,e.IsVerifiablePresentationType=n},1780,[8,7,1776,626,1694,661,1010,1060]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,c=arguments.length,f=c<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(f=(c<3?o(f):c>3?o(t,r,f):o(t,r))||f);return c>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cVerifiablePresentation=void 0;var n=(function(t){_r(_d[2])(c,t);var r,n,o=(r=c,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),t=o.call(this,e),e&&(t.proof=new(_r(_d[4]).LinkedDataProof)(e.proof)),t}return _r(_d[5])(c)})(_r(_d[6]).W3cPresentation);t([(0,_r(_d[4]).LinkedDataProofTransformer)(),(0,_r(_d[7]).IsInstanceOrArrayOfInstances)({classType:_r(_d[4]).LinkedDataProof}),r("design:type",Object)],n.prototype,"proof",void 0),_e.W3cVerifiablePresentation=n},1781,[14,11,9,7,1777,8,1780,1010]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1782,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1783,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1784,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1785,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){var u="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(u)return(u=u.call(t)).next.bind(u);if(Array.isArray(t)||(u=o(t))||n&&t&&"number"==typeof t.length){u&&(t=u);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return n(t,o);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?n(t,o):void 0}}function n(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,u=new Array(o);n1)){D.next=27;break}h=r(d[3])(r(d[3])({},h),{proof:[h.proof]}),b.splice(0,1),w=t(b);case 19:if((k=w()).done){D.next=27;break}return P=k.value,D.next=23,r(d[1]).awrap(c.deriveProof({document:x,proof:P,revealDocument:n,documentLoader:p,expansionMap:f}));case 23:T=D.sent,h.proof.push(T.proof);case 25:D.next=19;break;case 27:if(s){D.next=46;break}return _=r(d[4])({},r(d[5]).SECURITY_PROOF_URL,{'@graph':h.proof}),D.next=31,r(d[1]).awrap((0,r(d[2]).getTypeInfo)(h.document,{documentLoader:p,expansionMap:f}));case 31:return M=D.sent,A=M.types,L=M.alias,_['@type']=A,O=i.default.getValues(h.document,'@context'),D.next=38,r(d[1]).awrap(i.default.compact(_,O,{documentLoader:p,expansionMap:f,compactToRelative:!1}));case 38:delete(S=D.sent)[L],delete S['@context'],(null===(y=S.proof)||void 0===y?void 0:y['@included'])&&(S.proof=S.proof['@included']),j=Object.keys(S)[0],i.default.addValue(h.document,j,S[j]),D.next=48;break;case 46:delete h.proof['@context'],i.default.addValue(h.document,'proof',h.proof);case 48:return D.abrupt("return",r(d[6]).JsonTransformer.fromJSON(h.document,r(d[7]).W3cVerifiableCredential));case 49:case"end":return D.stop()}},null,null,null,Promise)}},1786,[1701,82,1775,4,249,1061,993,1776]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1787,[1788,1789]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,c){var n,i=arguments.length,o=i<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,c);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(o=(i<3?n(o):i>3?n(t,r,o):n(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cCredentialRecord=void 0;var c=(function(t){_r(_d[2])(i,t);var r,c,n=(r=i,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r,c;return _r(_d[3])(this,i),(t=n.call(this)).type=i.type,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:(0,_r(_d[4]).uuid)(),t.createdAt=null!==(c=e.createdAt)&&void 0!==c?c:new Date,t._tags=e.tags,t.credential=e.credential),t}return _r(_d[5])(i,[{key:"getTags",value:function(){return _r(_d[6])(_r(_d[6])({},this._tags),{issuerId:this.credential.issuerId,subjectIds:this.credential.credentialSubjectIds,schemaIds:this.credential.credentialSchemaIds,contexts:this.credential.contexts,proofTypes:this.credential.proofTypes,givenId:this.credential.id})}}]),i})(_r(_d[7]).BaseRecord);c.type='W3cCredentialRecord',t([(0,_r(_d[8]).Type)(function(){return _r(_d[9]).W3cVerifiableCredential}),r("design:type",_r(_d[9]).W3cVerifiableCredential)],c.prototype,"credential",void 0),_e.W3cCredentialRecord=c},1788,[14,11,9,7,953,8,4,1097,627,1777]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cCredentialRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).W3cCredentialRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.W3cCredentialRepository=c},1789,[14,11,9,7,1788,8,1102,1020,1104,1105]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,u=arguments.length,f=u<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,i,n,r);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(f=(u<3?o(f):u>3?o(i,n,f):o(i,n))||f);return u>3&&f&&Object.defineProperty(i,n,f),f},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},n=this&&this.__param||function(t,i){return function(n,r){i(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureSuiteRegistry=e.SignatureSuiteToken=void 0;_r(_d[0]).suites.LinkedDataSignature;e.SignatureSuiteToken=Symbol('SignatureSuiteToken');var r=(function(){function t(i){_r(_d[1])(this,t),this.suiteMapping=i}return _r(_d[2])(t,[{key:"supportedProofTypes",get:function(){return this.suiteMapping.map(function(t){return t.proofType})}},{key:"getByVerificationMethodType",value:function(t){return this.suiteMapping.find(function(i){return i.verificationMethodTypes.includes(t)})}},{key:"getByKeyType",value:function(t){return this.suiteMapping.find(function(i){return i.keyTypes.includes(t)})}},{key:"getByProofType",value:function(t){var i=this.suiteMapping.find(function(i){return i.proofType===t});if(!i)throw new(_r(_d[3]).AriesFrameworkError)("No signature suite for proof type: "+t);return i}},{key:"getVerificationMethodTypesByProofType",value:function(t){var i=this.suiteMapping.find(function(i){return i.proofType===t});if(!i)throw new(_r(_d[3]).AriesFrameworkError)("No verification method type found for proof type: "+t);return i.verificationMethodTypes}}]),t})();r=t([(0,_r(_d[4]).injectable)(),n(0,(0,_r(_d[4]).injectAll)(e.SignatureSuiteToken)),i("design:paramtypes",[Array])],r),e.SignatureSuiteRegistry=r},1790,[1791,7,8,612,1020]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.constants=e.purposes=e.suites=void 0,e.suites=r(d[0]).suites,e.purposes=r(d[0]).purposes,e.constants=r(d[0]).constants},1791,[1741]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.W3cVcModuleConfig=void 0;var o=(function(){function o(n){r(d[0])(this,o),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(o,[{key:"documentLoader",get:function(){var o;return null!==(o=this.options.documentLoader)&&void 0!==o?o:r(d[2]).defaultDocumentLoader}}]),o})();e.W3cVcModuleConfig=o},1792,[7,8,1793]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultDocumentLoader=void 0;var n=t(r(d[0]));e.defaultDocumentLoader=function(t){var o=t.dependencyManager.resolve(r(d[1]).DidResolverService);function u(u){var c,s,l,f;return r(d[2]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(!u.startsWith('did:')){v.next=10;break}return v.next=3,r(d[2]).awrap(o.resolve(t,u));case 3:if(!(c=v.sent).didResolutionMetadata.error&&c.didDocument){v.next=6;break}throw new(r(d[3]).AriesFrameworkError)("Unable to resolve DID: "+u);case 6:return v.next=8,r(d[2]).awrap(n.default.frame(c.didDocument.toJSON(),{'@context':c.didDocument.context,'@embed':'@never',id:u},{documentLoader:this}));case 8:return s=v.sent,v.abrupt("return",{contextUrl:null,documentUrl:u,document:s});case 10:return l=(0,r(d[4]).getNativeDocumentLoader)(),f=l.apply(n.default,[]),v.next=14,r(d[2]).awrap(f(u));case 14:return v.abrupt("return",v.sent);case 15:case"end":return v.stop()}},null,this,null,Promise)}return u.bind(u)}},1793,[1701,1420,82,613,1794]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNativeDocumentLoader=void 0,e.getNativeDocumentLoader=function(){return r(d[0])}},1794,[1737]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.W3cVcModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.config=new(r(d[1]).W3cVcModuleConfig)(n)}return r(d[2])(t,[{key:"register",value:function(t){t.registerSingleton(r(d[3]).W3cCredentialService),t.registerSingleton(r(d[4]).W3cCredentialRepository),t.registerSingleton(r(d[5]).SignatureSuiteRegistry),t.registerInstance(r(d[1]).W3cVcModuleConfig,this.config),t.registerInstance(r(d[5]).SignatureSuiteToken,{suiteClass:r(d[6]).Ed25519Signature2018,proofType:'Ed25519Signature2018',verificationMethodTypes:[r(d[7]).VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,r(d[7]).VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020],keyTypes:[r(d[8]).KeyType.Ed25519]})}}]),t})();e.W3cVcModule=t},1795,[7,1792,8,1700,1789,1790,1796,1081,990]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1796,[1797,1798]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Ed25519Signature2018=void 0;var n=t(r(d[2])),o=(function(t){r(d[3])(f,t);var o,s,l=(o=f,s=e(),function(){var e,t=r(d[0])(o);if(s){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function f(e){var t;return r(d[4])(this,f),(t=l.call(this,{type:'Ed25519Signature2018',algorithm:'EdDSA',LDKeyClass:e.LDKeyClass,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018,key:e.key,proof:e.proof,date:e.date,useNativeCanonize:e.useNativeCanonize})).requiredKeyType='Ed25519VerificationKey2018',t}return r(d[6])(f,[{key:"assertVerificationMethod",value:function(e){return r(d[7]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(u({document:e})){t.next=2;break}throw new TypeError("The verification method (key) must contain \""+this.contextUrl+"\".");case 2:if(o=e,void 0,(0,r(d[13])._includesContext)({document:o,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018})&&n.default.hasValue(o,'type','Ed25519VerificationKey2018')||c(e)){t.next=4;break}throw new Error("Invalid key type. Key type must be \""+this.requiredKeyType+"\".");case 4:if(void 0===e.revoked){t.next=6;break}throw new Error('The verification method has been revoked.');case 6:case"end":return t.stop()}var o},null,this,null,Promise)}},{key:"getVerificationMethod",value:function(e){var t,n,o;return r(d[7]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,r(d[7]).awrap(r(d[8])(r(d[0])(f.prototype),"getVerificationMethod",this).call(this,{proof:e.proof,documentLoader:e.documentLoader}));case 2:return c(t=u.sent)&&(n=r(d[9]).MultiBaseEncoder.decode(t.publicKeyMultibase),o=t['@context'].indexOf(r(d[5]).ED25519_SUITE_CONTEXT_URL_2020),t['@context'].splice(o,1),t['@context'].push(r(d[5]).ED25519_SUITE_CONTEXT_URL_2018),t.type='Ed25519VerificationKey2018',t=r(d[10])(r(d[10])({},t),{publicKeyMultibase:void 0,publicKeyBase58:r(d[9]).TypedArrayEncoder.toBase58(n.data)})),u.abrupt("return",t);case 5:case"end":return u.stop()}},null,this,null,Promise)}},{key:"ensureSuiteContext",value:function(e){u({document:e.document})||r(d[8])(r(d[0])(f.prototype),"ensureSuiteContext",this).call(this,{document:e.document,addSuiteContext:e.addSuiteContext})}},{key:"matchProof",value:function(e){return r(d[7]).async(function(t){for(;;)switch(t.prev=t.next){case 0:if(u({document:e.document})){t.next=2;break}return t.abrupt("return",!1);case 2:return t.abrupt("return",r(d[8])(r(d[0])(f.prototype),"matchProof",this).call(this,{proof:e.proof,document:e.document,purpose:e.purpose,documentLoader:e.documentLoader,expansionMap:e.expansionMap}));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),f})(r(d[11]).JwsLinkedDataSignature);function u(e){var t=(0,r(d[13])._includesContext)({document:e.document,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018}),n=(0,r(d[13])._includesContext)({document:e.document,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2020}),o=(0,r(d[13])._includesContext)({document:e.document,contextUrl:r(d[14]).CREDENTIALS_CONTEXT_V1_URL}),u=(0,r(d[13])._includesContext)({document:e.document,contextUrl:r(d[14]).SECURITY_CONTEXT_URL});return(!t||!o)&&((!t||!u)&&(t||n||o||u))}function c(e){return(0,r(d[13])._includesContext)({document:e,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2020})&&n.default.hasValue(e,'type','Ed25519VerificationKey2020')}_e.Ed25519Signature2018=o,o.CONTEXT_URL=r(d[5]).ED25519_SUITE_CONTEXT_URL_2018,o.CONTEXT=r(d[12]).ed25519Signature2018Context.get(r(d[5]).ED25519_SUITE_CONTEXT_URL_2018)},1797,[14,11,1701,9,7,1089,8,82,91,993,4,1798,1799,1775,1061]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.JwsLinkedDataSignature=void 0;var t=(function(t){r(d[3])(u,t);var o,s,c=(o=u,s=e(),function(){var e,t=r(d[0])(o);if(s){var n=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t;return r(d[4])(this,u),(t=c.call(this,{type:e.type,LDKeyClass:e.LDKeyClass,contextUrl:e.contextUrl,key:e.key,signer:void 0,verifier:void 0,proof:e.proof,date:e.date,useNativeCanonize:e.useNativeCanonize})).alg=e.algorithm,t}return r(d[5])(u,[{key:"sign",value:function(e){var t,o,s,c,u;return r(d[6]).async(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.signer&&'function'==typeof this.signer.sign){f.next=2;break}throw new Error('A signer API has not been specified.');case 2:return t={alg:this.alg,b64:!1,crit:['b64']},o=r(d[7]).JsonEncoder.toBase64URL(t),s=n({encodedHeader:o,verifyData:e.verifyData}),f.next=7,r(d[6]).awrap(this.signer.sign({data:s}));case 7:return c=f.sent,u=r(d[7]).TypedArrayEncoder.toBase64URL(c),e.proof.jws=o+'..'+u,f.abrupt("return",e.proof);case 11:case"end":return f.stop()}},null,this,null,Promise)}},{key:"verifySignature",value:function(e){var t,o,s,c,u,f,p,l,h;return r(d[6]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(e.proof.jws&&'string'==typeof e.proof.jws&&e.proof.jws.includes('.')){y.next=2;break}throw new TypeError('The proof does not include a valid "jws" property.');case 2:t=e.proof.jws.split('.'),o=r(d[8])(t,3),s=o[0],c=o[2],y.prev=3,u=r(d[7]).JsonEncoder.fromBase64(s),y.next=10;break;case 7:throw y.prev=7,y.t0=y.catch(3),new Error('Could not parse JWS header; '+y.t0);case 10:if(u&&'object'==typeof u){y.next=12;break}throw new Error('Invalid JWS header.');case 12:if(u.alg===this.alg&&!1===u.b64&&Array.isArray(u.crit)&&1===u.crit.length&&'b64'===u.crit[0]||3!==Object.keys(u).length){y.next=14;break}throw new Error("Invalid JWS header parameters for "+this.type+".");case 14:if(f=r(d[7]).TypedArrayEncoder.fromBase64(c),p=n({encodedHeader:s,verifyData:e.verifyData}),l=this.verifier){y.next=22;break}return y.next=20,r(d[6]).awrap(this.LDKeyClass.from(e.verificationMethod));case 20:h=y.sent,l=h.verifier();case 22:return y.abrupt("return",l.verify({data:p,signature:f}));case 23:case"end":return y.stop()}},null,this,[[3,7]],Promise)}},{key:"getVerificationMethod",value:function(e){var t,n,o;return r(d[6]).async(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.key){s.next=2;break}return s.abrupt("return",this.key.export({publicKey:!0}));case 2:if('object'==typeof(t=e.proof.verificationMethod)&&null!==t&&(t=t.id),t){s.next=6;break}throw new Error('No "verificationMethod" found in proof.');case 6:if(e.documentLoader){s.next=8;break}throw new(r(d[9]).AriesFrameworkError)('Missing custom document loader. This is required for resolving verification methods.');case 8:return s.next=10,r(d[6]).awrap(e.documentLoader(t));case 10:return n=s.sent,o=n.document,t='string'==typeof o?JSON.parse(o):o,s.next=15,r(d[6]).awrap(this.assertVerificationMethod(t));case 15:return s.abrupt("return",t);case 16:case"end":return s.stop()}},null,this,null,Promise)}},{key:"matchProof",value:function(e){var t;return r(d[6]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[6]).awrap(r(d[10])(r(d[0])(u.prototype),"matchProof",this).call(this,{proof:e.proof,document:e.document,purpose:e.purpose,documentLoader:e.documentLoader,expansionMap:e.expansionMap}));case 2:if(n.sent){n.next=5;break}return n.abrupt("return",!1);case 5:if(this.key){n.next=7;break}return n.abrupt("return",!0);case 7:if('object'!=typeof(t=e.proof.verificationMethod)){n.next=10;break}return n.abrupt("return",t.id===this.key.id);case 10:return n.abrupt("return",t===this.key.id);case 11:case"end":return n.stop()}},null,this,null,Promise)}}]),u})(r(d[2]).suites.LinkedDataSignature);function n(e){var t=r(d[7]).TypedArrayEncoder.fromString(e.encodedHeader+'.'),n=new Uint8Array(t.length+e.verifyData.length);return n.set(t,0),n.set(e.verifyData,t.length),n}_e.JwsLinkedDataSignature=t},1798,[14,11,1791,9,7,8,82,993,31,612,91]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ed25519Signature2018Context=e.context=void 0,e.context={'@context':{id:'@id',type:'@type','@protected':!0,proof:{'@id':'https://w3id.org/security#proof','@type':'@id','@container':'@graph'},Ed25519VerificationKey2018:{'@id':'https://w3id.org/security#Ed25519VerificationKey2018','@context':{'@protected':!0,id:'@id',type:'@type',controller:{'@id':'https://w3id.org/security#controller','@type':'@id'},revoked:{'@id':'https://w3id.org/security#revoked','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},publicKeyBase58:{'@id':'https://w3id.org/security#publicKeyBase58'}}},Ed25519Signature2018:{'@id':'https://w3id.org/security#Ed25519Signature2018','@context':{'@protected':!0,id:'@id',type:'@type',challenge:'https://w3id.org/security#challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},domain:'https://w3id.org/security#domain',expires:{'@id':'https://w3id.org/security#expiration','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},nonce:'https://w3id.org/security#nonce',proofPurpose:{'@id':'https://w3id.org/security#proofPurpose','@type':'@vocab','@context':{'@protected':!0,id:'@id',type:'@type',assertionMethod:{'@id':'https://w3id.org/security#assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'https://w3id.org/security#authenticationMethod','@type':'@id','@container':'@set'},capabilityInvocation:{'@id':'https://w3id.org/security#capabilityInvocationMethod','@type':'@id','@container':'@set'},capabilityDelegation:{'@id':'https://w3id.org/security#capabilityDelegationMethod','@type':'@id','@container':'@set'},keyAgreement:{'@id':'https://w3id.org/security#keyAgreementMethod','@type':'@id','@container':'@set'}}},jws:{'@id':'https://w3id.org/security#jws'},verificationMethod:{'@id':'https://w3id.org/security#verificationMethod','@type':'@id'}}}}};var t=new Map;e.ed25519Signature2018Context=t,t.set(r(d[0]).ED25519_SUITE_CONTEXT_URL_2018,e.context)},1799,[1089]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1800,[1801,1802]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialIssuancePurpose=void 0;var t=r(d[2]).purposes.AssertionProofPurpose,n=(r(d[2]).suites.LinkedDataProof,(function(t){r(d[3])(u,t);var n,o,s=(n=u,o=e(),function(){var e,t=r(d[0])(n);if(o){var s=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){return r(d[4])(this,u),e.maxTimestampDelta=e.maxTimestampDelta||1/0,s.call(this,e)}return r(d[5])(u,[{key:"validate",value:function(e,t){var n,o,s;return r(d[6]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,r(d[6]).awrap(r(d[7])(r(d[0])(u.prototype),"validate",this).call(this,e,t));case 3:if((n=c.sent).valid){c.next=6;break}throw n.error;case 6:if((o=jsonld.util.getValues(t.document,'issuer'))&&0!==o.length){c.next=9;break}throw new Error('Credential issuer is required.');case 9:if(s='string'==typeof o[0]?o[0]:o[0].id,n.controller.id===s){c.next=12;break}throw new Error('Credential issuer must match the verification method controller.');case 12:return c.abrupt("return",{valid:!0});case 15:return c.prev=15,c.t0=c.catch(0),c.abrupt("return",{valid:!1,error:c.t0});case 18:case"end":return c.stop()}},null,this,[[0,15]],Promise)}}]),u})(t));_e.CredentialIssuancePurpose=n},1801,[14,11,1791,9,7,8,82,91]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1802,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u);var c=Object.getOwnPropertyDescriptor(n,u);c&&("get"in c?n.__esModule:!c.writable&&!c.configurable)||(c={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,o,c)}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),n=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var o={};if(null!=u)for(var c in u)"default"!==c&&Object.prototype.hasOwnProperty.call(u,c)&&t(o,u,c);return n(o,u),o};Object.defineProperty(e,"__esModule",{value:!0}),e.vcLibraries=void 0;var o=u(r(d[0])),c=u(r(d[1])),l=u(r(d[2]));e.vcLibraries={jsonldSignatures:c,jsonld:r(d[3])(r(d[3])({},o),o.default),vc:r(d[3])(r(d[3])({},l),l.default)}},1803,[1701,1791,1738,4]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1804,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1805,[1806,1818,1836]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1806,[1807,1661]); -__d(function(g,_r,_i,a,m,_e2,_d2){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var s,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e2,"__esModule",{value:!0}),_e2.V1CredentialProtocol=void 0;var n=(function(t){_r(_d2[2])(i,t);var r,n,s=(r=i,n=e(),function(){var e,t=_r(_d2[0])(r);if(n){var s=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function i(e){var t,r=e.indyCredentialFormat;return _r(_d2[3])(this,i),(t=s.call(this)).version='v1',t.indyCredentialFormat=r,t}return _r(_d2[4])(i,[{key:"register",value:function(e,t){e.registerMessageHandlers([new(_r(_d2[5]).V1ProposeCredentialHandler)(this),new(_r(_d2[5]).V1OfferCredentialHandler)(this),new(_r(_d2[5]).V1RequestCredentialHandler)(this),new(_r(_d2[5]).V1IssueCredentialHandler)(this),new(_r(_d2[5]).V1CredentialAckHandler)(this),new(_r(_d2[5]).V1CredentialProblemReportHandler)(this)]),t.register(new(_r(_d2[6]).Protocol)({id:'https://didcomm.org/issue-credential/1.0',roles:['holder','issuer']}))}},{key:"createProposal",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v,C,h;return _r(_d2[7]).async(function(A){for(;;)switch(A.prev=A.next){case 0:if(r=t.connection,n=t.credentialFormats,s=t.comment,i=t.autoAcceptCredential,this.assertOnlyIndyFormat(n),o=e.dependencyManager.resolve(_r(_d2[8]).CredentialRepository),d=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.indy){A.next=6;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing indy credential format in v1 create proposal call.');case 6:return c=n.indy.linkedAttachments,l=new(_r(_d2[8]).CredentialExchangeRecord)({connectionId:r.id,threadId:(0,_r(_d2[11]).uuid)(),state:_r(_d2[12]).CredentialState.ProposalSent,linkedAttachments:null===c||void 0===c?void 0:c.map(function(e){return e.attachment}),autoAcceptCredential:i,protocolVersion:'v1'}),A.next=10,_r(_d2[7]).awrap(this.indyCredentialFormat.createProposal(e,{credentialFormats:n,credentialRecord:l}));case 10:return u=A.sent,p=u.previewAttributes,f=u.attachment,v=_r(_d2[13]).JsonTransformer.fromJSON(f.getDataAsJson(),_r(_d2[14]).IndyCredPropose),C=p?new(_r(_d2[15]).V1CredentialPreview)({attributes:p}):void 0,h=new(_r(_d2[16]).V1ProposeCredentialMessage)(_r(_d2[17])(_r(_d2[17])({},v),{id:l.threadId,credentialPreview:C,comment:s})),A.next=18,_r(_d2[7]).awrap(d.saveAgentMessage(e,{agentMessage:h,role:_r(_d2[9]).DidCommMessageRole.Sender,associatedRecordId:l.id}));case 18:return l.credentialAttributes=p,A.next=21,_r(_d2[7]).awrap(o.save(e,l));case 21:return this.emitStateChangedEvent(e,l,null),A.abrupt("return",{credentialRecord:l,message:h});case 23:case"end":return A.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(e){var t,r,n,s,i,o,d,c,l;return _r(_d2[7]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.message,r=e.connection,n=e.agentContext,s=n.dependencyManager.resolve(_r(_d2[8]).CredentialRepository),i=n.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),o=n.dependencyManager.resolve(_r(_d2[18]).ConnectionService),n.config.logger.debug("Processing credential proposal with message id "+t.id),u.next=7,_r(_d2[7]).awrap(this.findByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 7:if(!(d=u.sent)){u.next=27;break}return n.config.logger.debug('Credential record already exists for incoming proposal'),d.assertProtocolVersion('v1'),d.assertState(_r(_d2[12]).CredentialState.OfferSent),u.next=14,_r(_d2[7]).awrap(i.findAgentMessage(e.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[16]).V1ProposeCredentialMessage}));case 14:return c=u.sent,u.next=17,_r(_d2[7]).awrap(i.findAgentMessage(e.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 17:return l=u.sent,o.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==c&&void 0!==c?c:void 0,previousSentMessage:null!==l&&void 0!==l?l:void 0}),u.next=21,_r(_d2[7]).awrap(this.indyCredentialFormat.processProposal(e.agentContext,{credentialRecord:d,attachment:new(_r(_d2[19]).Attachment)({data:new(_r(_d2[19]).AttachmentData)({json:_r(_d2[13]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(t))})})}));case 21:return u.next=23,_r(_d2[7]).awrap(this.updateState(e.agentContext,d,_r(_d2[12]).CredentialState.ProposalReceived));case 23:return u.next=25,_r(_d2[7]).awrap(i.saveOrUpdateAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 25:u.next=35;break;case 27:return n.config.logger.debug('Credential record does not exists yet for incoming proposal'),d=new(_r(_d2[8]).CredentialExchangeRecord)({connectionId:null===r||void 0===r?void 0:r.id,threadId:t.threadId,state:_r(_d2[12]).CredentialState.ProposalReceived,protocolVersion:'v1'}),o.assertConnectionOrServiceDecorator(e),u.next=32,_r(_d2[7]).awrap(s.save(e.agentContext,d));case 32:return this.emitStateChangedEvent(e.agentContext,d,null),u.next=35,_r(_d2[7]).awrap(i.saveAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 35:return u.abrupt("return",d);case 36:case"end":return u.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f;return _r(_d2[7]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return r=t.credentialRecord,n=t.credentialFormats,s=t.comment,i=t.autoAcceptCredential,r.assertProtocolVersion('v1'),r.assertState(_r(_d2[12]).CredentialState.ProposalReceived),n&&this.assertOnlyIndyFormat(n),d=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),v.next=7,_r(_d2[7]).awrap(d.getAgentMessage(e,{associatedRecordId:r.id,messageClass:_r(_d2[16]).V1ProposeCredentialMessage}));case 7:return c=v.sent,r.credentialAttributes=null===(o=c.credentialPreview)||void 0===o?void 0:o.attributes,v.next=11,_r(_d2[7]).awrap(this.indyCredentialFormat.acceptProposal(e,{attachId:_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:n,credentialRecord:r,proposalAttachment:new(_r(_d2[19]).Attachment)({data:new(_r(_d2[19]).AttachmentData)({json:_r(_d2[13]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(c))})})}));case 11:if(l=v.sent,u=l.attachment,p=l.previewAttributes){v.next=16;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing required credential preview attributes from indy format service');case 16:return(f=new(_r(_d2[16]).V1OfferCredentialMessage)({comment:s,offerAttachments:[u],credentialPreview:new(_r(_d2[15]).V1CredentialPreview)({attributes:p}),attachments:r.linkedAttachments})).setThread({threadId:r.threadId}),r.credentialAttributes=p,r.autoAcceptCredential=null!==i&&void 0!==i?i:r.autoAcceptCredential,v.next=22,_r(_d2[7]).awrap(this.updateState(e,r,_r(_d2[12]).CredentialState.OfferSent));case 22:return v.next=24,_r(_d2[7]).awrap(d.saveOrUpdateAgentMessage(e,{agentMessage:f,role:_r(_d2[9]).DidCommMessageRole.Sender,associatedRecordId:r.id}));case 24:return v.abrupt("return",{credentialRecord:r,message:f});case 25:case"end":return v.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(e,t){var r,n,s,i,o,d,c,l,u;return _r(_d2[7]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return r=t.credentialFormats,n=t.credentialRecord,s=t.comment,i=t.autoAcceptCredential,n.assertProtocolVersion('v1'),n.assertState(_r(_d2[12]).CredentialState.ProposalReceived),r&&this.assertOnlyIndyFormat(r),o=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),p.next=7,_r(_d2[7]).awrap(this.indyCredentialFormat.createOffer(e,{attachId:_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:r,credentialRecord:n}));case 7:if(d=p.sent,c=d.attachment,l=d.previewAttributes){p.next=12;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing required credential preview attributes from indy format service');case 12:return(u=new(_r(_d2[16]).V1OfferCredentialMessage)({comment:s,offerAttachments:[c],credentialPreview:new(_r(_d2[15]).V1CredentialPreview)({attributes:l}),attachments:n.linkedAttachments})).setThread({threadId:n.threadId}),n.credentialAttributes=l,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,p.next=18,_r(_d2[7]).awrap(this.updateState(e,n,_r(_d2[12]).CredentialState.OfferSent));case 18:return p.next=20,_r(_d2[7]).awrap(o.saveOrUpdateAgentMessage(e,{agentMessage:u,role:_r(_d2[9]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 20:return p.abrupt("return",{credentialRecord:n,message:u});case 21:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v,C;return _r(_d2[7]).async(function(h){for(;;)switch(h.prev=h.next){case 0:if(r=t.credentialFormats,n=t.autoAcceptCredential,s=t.comment,i=t.connection,r&&this.assertOnlyIndyFormat(r),c=e.dependencyManager.resolve(_r(_d2[8]).CredentialRepository),l=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),r.indy){h.next=6;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing indy credential format data for v1 create offer');case 6:return u=new(_r(_d2[8]).CredentialExchangeRecord)({connectionId:null===i||void 0===i?void 0:i.id,threadId:(0,_r(_d2[11]).uuid)(),linkedAttachments:null===(o=r.indy.linkedAttachments)||void 0===o?void 0:o.map(function(e){return e.attachment}),state:_r(_d2[12]).CredentialState.OfferSent,autoAcceptCredential:n,protocolVersion:'v1'}),h.next=9,_r(_d2[7]).awrap(this.indyCredentialFormat.createOffer(e,{attachId:_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:r,credentialRecord:u}));case 9:if(p=h.sent,f=p.attachment,v=p.previewAttributes){h.next=14;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing required credential preview from indy format service');case 14:return C=new(_r(_d2[16]).V1OfferCredentialMessage)({id:u.threadId,credentialPreview:new(_r(_d2[15]).V1CredentialPreview)({attributes:v}),comment:s,offerAttachments:[f],attachments:null===(d=r.indy.linkedAttachments)||void 0===d?void 0:d.map(function(e){return e.attachment})}),h.next=17,_r(_d2[7]).awrap(l.saveAgentMessage(e,{associatedRecordId:u.id,agentMessage:C,role:_r(_d2[9]).DidCommMessageRole.Sender}));case 17:return u.credentialAttributes=v,h.next=20,_r(_d2[7]).awrap(c.save(e,u));case 20:return this.emitStateChangedEvent(e,u,null),h.abrupt("return",{message:C,credentialRecord:u});case 22:case"end":return h.stop()}},null,this,null,Promise)}},{key:"processOffer",value:function(e){var t,r,n,s,i,o,d,c,l,u;return _r(_d2[7]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.message,r=e.connection,n=e.agentContext,s=n.dependencyManager.resolve(_r(_d2[8]).CredentialRepository),i=n.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),o=n.dependencyManager.resolve(_r(_d2[18]).ConnectionService),n.config.logger.debug("Processing credential offer with id "+t.id),p.next=7,_r(_d2[7]).awrap(this.findByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 7:if(d=p.sent,c=t.getOfferAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID)){p.next=11;break}throw new(_r(_d2[10]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID+" not found in offer message");case 11:if(!d){p.next=30;break}return p.next=14,_r(_d2[7]).awrap(i.findAgentMessage(e.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[16]).V1ProposeCredentialMessage}));case 14:return l=p.sent,p.next=17,_r(_d2[7]).awrap(i.findAgentMessage(e.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 17:return u=p.sent,d.assertProtocolVersion('v1'),d.assertState(_r(_d2[12]).CredentialState.ProposalSent),o.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==u&&void 0!==u?u:void 0,previousSentMessage:null!==l&&void 0!==l?l:void 0}),p.next=23,_r(_d2[7]).awrap(this.indyCredentialFormat.processOffer(e.agentContext,{credentialRecord:d,attachment:c}));case 23:return p.next=25,_r(_d2[7]).awrap(i.saveOrUpdateAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 25:return p.next=27,_r(_d2[7]).awrap(this.updateState(e.agentContext,d,_r(_d2[12]).CredentialState.OfferReceived));case 27:return p.abrupt("return",d);case 30:return d=new(_r(_d2[8]).CredentialExchangeRecord)({connectionId:null===r||void 0===r?void 0:r.id,threadId:t.id,state:_r(_d2[12]).CredentialState.OfferReceived,protocolVersion:'v1'}),o.assertConnectionOrServiceDecorator(e),p.next=34,_r(_d2[7]).awrap(this.indyCredentialFormat.processOffer(e.agentContext,{credentialRecord:d,attachment:c}));case 34:return p.next=36,_r(_d2[7]).awrap(i.saveAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 36:return p.next=38,_r(_d2[7]).awrap(s.save(e.agentContext,d));case 38:return this.emitStateChangedEvent(e.agentContext,d,null),p.abrupt("return",d);case 40:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v;return _r(_d2[7]).async(function(C){for(;;)switch(C.prev=C.next){case 0:return r=t.credentialRecord,n=t.credentialFormats,s=t.comment,i=t.autoAcceptCredential,r.assertProtocolVersion('v1'),r.assertState(_r(_d2[12]).CredentialState.OfferReceived),c=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),C.next=6,_r(_d2[7]).awrap(c.getAgentMessage(e,{associatedRecordId:r.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 6:if(l=C.sent,u=l.getOfferAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID)){C.next=10;break}throw new(_r(_d2[10]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID+" not found in offer message");case 10:return C.next=12,_r(_d2[7]).awrap(this.indyCredentialFormat.acceptOffer(e,{credentialRecord:r,credentialFormats:n,attachId:_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID,offerAttachment:u}));case 12:return p=C.sent,f=p.attachment,(v=new(_r(_d2[16]).V1RequestCredentialMessage)({comment:s,requestAttachments:[f],attachments:null===(o=l.appendedAttachments)||void 0===o?void 0:o.filter(function(e){return(0,_r(_d2[20]).isLinkedAttachment)(e)})})).setThread({threadId:r.threadId}),r.credentialAttributes=l.credentialPreview.attributes,r.autoAcceptCredential=null!==i&&void 0!==i?i:r.autoAcceptCredential,r.linkedAttachments=null===(d=l.appendedAttachments)||void 0===d?void 0:d.filter(function(e){return(0,_r(_d2[20]).isLinkedAttachment)(e)}),C.next=21,_r(_d2[7]).awrap(c.saveOrUpdateAgentMessage(e,{agentMessage:v,associatedRecordId:r.id,role:_r(_d2[9]).DidCommMessageRole.Sender}));case 21:return C.next=23,_r(_d2[7]).awrap(this.updateState(e,r,_r(_d2[12]).CredentialState.RequestSent));case 23:return C.abrupt("return",{message:v,credentialRecord:r});case 24:case"end":return C.stop()}},null,this,null,Promise)}},{key:"negotiateOffer",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v;return _r(_d2[7]).async(function(C){for(;;)switch(C.prev=C.next){case 0:if(r=t.credentialFormats,n=t.credentialRecord,s=t.autoAcceptCredential,i=t.comment,n.assertProtocolVersion('v1'),n.assertState(_r(_d2[12]).CredentialState.OfferReceived),this.assertOnlyIndyFormat(r),o=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.connectionId){C.next=7;break}throw new(_r(_d2[10]).AriesFrameworkError)("No connectionId found for credential record '"+n.id+"'. Connection-less issuance does not support negotiation.");case 7:if(r.indy){C.next=9;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing indy credential format in v1 create proposal call.');case 9:return d=r.indy.linkedAttachments,C.next=12,_r(_d2[7]).awrap(this.indyCredentialFormat.createProposal(e,{credentialFormats:r,credentialRecord:n}));case 12:return c=C.sent,l=c.previewAttributes,u=c.attachment,p=_r(_d2[13]).JsonTransformer.fromJSON(u.getDataAsJson(),_r(_d2[14]).IndyCredPropose),f=l?new(_r(_d2[15]).V1CredentialPreview)({attributes:l}):void 0,(v=new(_r(_d2[16]).V1ProposeCredentialMessage)(_r(_d2[17])(_r(_d2[17])({},p),{credentialPreview:f,comment:i}))).setThread({threadId:n.threadId}),C.next=21,_r(_d2[7]).awrap(o.saveOrUpdateAgentMessage(e,{agentMessage:v,role:_r(_d2[9]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 21:return n.credentialAttributes=l,n.linkedAttachments=null===d||void 0===d?void 0:d.map(function(e){return e.attachment}),n.autoAcceptCredential=null!==s&&void 0!==s?s:n.autoAcceptCredential,C.next=26,_r(_d2[7]).awrap(this.updateState(e,n,_r(_d2[12]).CredentialState.ProposalSent));case 26:return C.abrupt("return",{credentialRecord:n,message:v});case 27:case"end":return C.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(){return _r(_d2[7]).async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new(_r(_d2[10]).AriesFrameworkError)('Starting from a request is not supported for v1 issue credential protocol');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"processRequest",value:function(e){var t,r,n,s,i,o,d,c,l;return _r(_d2[7]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=e.message,r=e.connection,n=e.agentContext,s=n.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),i=n.dependencyManager.resolve(_r(_d2[18]).ConnectionService),n.config.logger.debug("Processing credential request with id "+t.id),u.next=6,_r(_d2[7]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 6:return o=u.sent,n.config.logger.trace('Credential record found when processing credential request',o),u.next=10,_r(_d2[7]).awrap(s.findAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1ProposeCredentialMessage}));case 10:return d=u.sent,u.next=13,_r(_d2[7]).awrap(s.findAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 13:if(c=u.sent,o.assertProtocolVersion('v1'),o.assertState(_r(_d2[12]).CredentialState.OfferSent),i.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==d&&void 0!==d?d:void 0,previousSentMessage:null!==c&&void 0!==c?c:void 0}),l=t.getRequestAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){u.next=20;break}throw new(_r(_d2[10]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID+" not found in request message");case 20:return u.next=22,_r(_d2[7]).awrap(this.indyCredentialFormat.processRequest(e.agentContext,{credentialRecord:o,attachment:l}));case 22:return u.next=24,_r(_d2[7]).awrap(s.saveAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:o.id}));case 24:return u.next=26,_r(_d2[7]).awrap(this.updateState(e.agentContext,o,_r(_d2[12]).CredentialState.RequestReceived));case 26:return u.abrupt("return",o);case 27:case"end":return u.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v;return _r(_d2[7]).async(function(C){for(;;)switch(C.prev=C.next){case 0:return r=t.credentialRecord,n=t.credentialFormats,s=t.comment,i=t.autoAcceptCredential,r.assertProtocolVersion('v1'),r.assertState(_r(_d2[12]).CredentialState.RequestReceived),o=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),C.next=6,_r(_d2[7]).awrap(o.getAgentMessage(e,{associatedRecordId:r.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 6:return d=C.sent,C.next=9,_r(_d2[7]).awrap(o.getAgentMessage(e,{associatedRecordId:r.id,messageClass:_r(_d2[16]).V1RequestCredentialMessage}));case 9:if(c=C.sent,l=d.getOfferAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),u=c.getRequestAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID),l&&u){C.next=14;break}throw new(_r(_d2[10]).AriesFrameworkError)("Missing data payload in offer or request attachment in credential Record "+r.id);case 14:return C.next=16,_r(_d2[7]).awrap(this.indyCredentialFormat.acceptRequest(e,{credentialRecord:r,requestAttachment:u,offerAttachment:l,attachId:_r(_d2[16]).INDY_CREDENTIAL_ATTACHMENT_ID,credentialFormats:n}));case 16:return p=C.sent,f=p.attachment,(v=new(_r(_d2[16]).V1IssueCredentialMessage)({comment:s,credentialAttachments:[f],attachments:r.linkedAttachments})).setThread({threadId:r.threadId}),v.setPleaseAck(),C.next=23,_r(_d2[7]).awrap(o.saveAgentMessage(e,{agentMessage:v,associatedRecordId:r.id,role:_r(_d2[9]).DidCommMessageRole.Sender}));case 23:return r.autoAcceptCredential=null!==i&&void 0!==i?i:r.autoAcceptCredential,C.next=26,_r(_d2[7]).awrap(this.updateState(e,r,_r(_d2[12]).CredentialState.CredentialIssued));case 26:return C.abrupt("return",{message:v,credentialRecord:r});case 27:case"end":return C.stop()}},null,this,null,Promise)}},{key:"processCredential",value:function(e){var t,r,n,s,i,o,d,c,l,u;return _r(_d2[7]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.message,r=e.connection,(n=e.agentContext).config.logger.debug("Processing credential with id "+t.id),s=n.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),i=n.dependencyManager.resolve(_r(_d2[18]).ConnectionService),p.next=6,_r(_d2[7]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 6:return o=p.sent,p.next=9,_r(_d2[7]).awrap(s.findAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1RequestCredentialMessage}));case 9:return d=p.sent,p.next=12,_r(_d2[7]).awrap(s.findAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 12:if(c=p.sent,o.assertProtocolVersion('v1'),o.assertState(_r(_d2[12]).CredentialState.RequestSent),i.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==c&&void 0!==c?c:void 0,previousSentMessage:null!==d&&void 0!==d?d:void 0}),l=t.getCredentialAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_ATTACHMENT_ID)){p.next=19;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing indy credential attachment in processCredential');case 19:if(u=null===d||void 0===d?void 0:d.getRequestAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){p.next=22;break}throw new(_r(_d2[10]).AriesFrameworkError)('Missing indy credential request attachment in processCredential');case 22:return p.next=24,_r(_d2[7]).awrap(this.indyCredentialFormat.processCredential(e.agentContext,{attachment:l,credentialRecord:o,requestAttachment:u}));case 24:return p.next=26,_r(_d2[7]).awrap(s.saveAgentMessage(e.agentContext,{agentMessage:t,role:_r(_d2[9]).DidCommMessageRole.Receiver,associatedRecordId:o.id}));case 26:return p.next=28,_r(_d2[7]).awrap(this.updateState(e.agentContext,o,_r(_d2[12]).CredentialState.CredentialReceived));case 28:return p.abrupt("return",o);case 29:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(e,t){var r,n;return _r(_d2[7]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return(r=t.credentialRecord).assertProtocolVersion('v1'),r.assertState(_r(_d2[12]).CredentialState.CredentialReceived),n=new(_r(_d2[16]).V1CredentialAckMessage)({status:_r(_d2[21]).AckStatus.OK,threadId:r.threadId}),s.next=6,_r(_d2[7]).awrap(this.updateState(e,r,_r(_d2[12]).CredentialState.Done));case 6:return s.abrupt("return",{message:n,credentialRecord:r});case 7:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processAck",value:function(e){var t,r,n,s,i,o,d,c;return _r(_d2[7]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=e.message,r=e.connection,(n=e.agentContext).config.logger.debug("Processing credential ack with id "+t.id),s=n.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),i=n.dependencyManager.resolve(_r(_d2[18]).ConnectionService),l.next=6,_r(_d2[7]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 6:return o=l.sent,l.next=9,_r(_d2[7]).awrap(s.getAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1RequestCredentialMessage}));case 9:return d=l.sent,l.next=12,_r(_d2[7]).awrap(s.getAgentMessage(e.agentContext,{associatedRecordId:o.id,messageClass:_r(_d2[16]).V1IssueCredentialMessage}));case 12:return c=l.sent,o.assertProtocolVersion('v1'),o.assertState(_r(_d2[12]).CredentialState.CredentialIssued),i.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:d,previousSentMessage:c}),l.next=18,_r(_d2[7]).awrap(this.updateState(e.agentContext,o,_r(_d2[12]).CredentialState.Done));case 18:return l.abrupt("return",o);case 19:case"end":return l.stop()}},null,this,null,Promise)}},{key:"createProblemReport",value:function(e,t){return new(_r(_d2[16]).V1CredentialProblemReportMessage)({description:{en:t.message,code:_r(_d2[22]).CredentialProblemReportReason.IssuanceAbandoned}})}},{key:"shouldAutoRespondToProposal",value:function(e,t){var r,n,s,i,o,d;return _r(_d2[7]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=t.credentialRecord,n=t.proposalMessage,s=e.dependencyManager.resolve(_r(_d2[23]).CredentialsModuleConfig),(i=(0,_r(_d2[24]).composeAutoAccept)(r.autoAcceptCredential,s.autoAcceptCredentials))!==_r(_d2[25]).AutoAcceptCredential.Always){c.next=5;break}return c.abrupt("return",!0);case 5:if(i!==_r(_d2[25]).AutoAcceptCredential.Never){c.next=7;break}return c.abrupt("return",!1);case 7:return c.next=9,_r(_d2[7]).awrap(this.findOfferMessage(e,r.id));case 9:if((o=c.sent)&&o.credentialPreview){c.next=12;break}return c.abrupt("return",!1);case 12:if(n.credentialPreview&&n.credentialDefinitionId){c.next=14;break}return c.abrupt("return",!1);case 14:if(d=o.indyCredentialOffer){c.next=17;break}return c.abrupt("return",!1);case 17:if(d.cred_def_id===n.credentialDefinitionId){c.next=19;break}return c.abrupt("return",!1);case 19:return c.abrupt("return",(0,_r(_d2[26]).arePreviewAttributesEqual)(n.credentialPreview.attributes,o.credentialPreview.attributes));case 20:case"end":return c.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToOffer",value:function(e,t){var r,n,s,i,o,d;return _r(_d2[7]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=t.credentialRecord,n=t.offerMessage,s=e.dependencyManager.resolve(_r(_d2[23]).CredentialsModuleConfig),(i=(0,_r(_d2[24]).composeAutoAccept)(r.autoAcceptCredential,s.autoAcceptCredentials))!==_r(_d2[25]).AutoAcceptCredential.Always){c.next=5;break}return c.abrupt("return",!0);case 5:if(i!==_r(_d2[25]).AutoAcceptCredential.Never){c.next=7;break}return c.abrupt("return",!1);case 7:return c.next=9,_r(_d2[7]).awrap(this.findProposalMessage(e,r.id));case 9:if(o=c.sent,n.credentialPreview){c.next=12;break}return c.abrupt("return",!1);case 12:if(o&&o.credentialPreview&&o.credentialDefinitionId){c.next=14;break}return c.abrupt("return",!1);case 14:if(d=n.indyCredentialOffer){c.next=17;break}return c.abrupt("return",!1);case 17:if(d.cred_def_id===o.credentialDefinitionId){c.next=19;break}return c.abrupt("return",!1);case 19:return c.abrupt("return",(0,_r(_d2[26]).arePreviewAttributesEqual)(o.credentialPreview.attributes,n.credentialPreview.attributes));case 20:case"end":return c.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToRequest",value:function(e,t){var r,n,s,i,o,d,c;return _r(_d2[7]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=t.credentialRecord,n=t.requestMessage,s=e.dependencyManager.resolve(_r(_d2[23]).CredentialsModuleConfig),(i=(0,_r(_d2[24]).composeAutoAccept)(r.autoAcceptCredential,s.autoAcceptCredentials))!==_r(_d2[25]).AutoAcceptCredential.Always){l.next=5;break}return l.abrupt("return",!0);case 5:if(i!==_r(_d2[25]).AutoAcceptCredential.Never){l.next=7;break}return l.abrupt("return",!1);case 7:return l.next=9,_r(_d2[7]).awrap(this.findOfferMessage(e,r.id));case 9:if(o=l.sent){l.next=12;break}return l.abrupt("return",!1);case 12:if(d=o.getOfferAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),c=n.getRequestAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID),d&&c){l.next=16;break}return l.abrupt("return",!1);case 16:return l.abrupt("return",this.indyCredentialFormat.shouldAutoRespondToRequest(e,{credentialRecord:r,offerAttachment:d,requestAttachment:c}));case 17:case"end":return l.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToCredential",value:function(e,t){var r,n,s,i,o,d,c,l,u;return _r(_d2[7]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(r=t.credentialRecord,n=t.credentialMessage,s=e.dependencyManager.resolve(_r(_d2[23]).CredentialsModuleConfig),(i=(0,_r(_d2[24]).composeAutoAccept)(r.autoAcceptCredential,s.autoAcceptCredentials))!==_r(_d2[25]).AutoAcceptCredential.Always){p.next=5;break}return p.abrupt("return",!0);case 5:if(i!==_r(_d2[25]).AutoAcceptCredential.Never){p.next=7;break}return p.abrupt("return",!1);case 7:return p.next=9,_r(_d2[7]).awrap(this.findRequestMessage(e,r.id));case 9:return o=p.sent,p.next=12,_r(_d2[7]).awrap(this.findOfferMessage(e,r.id));case 12:if(d=p.sent,c=n.getCredentialAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_ATTACHMENT_ID)){p.next=16;break}return p.abrupt("return",!1);case 16:if(l=null===o||void 0===o?void 0:o.getRequestAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){p.next=19;break}return p.abrupt("return",!1);case 19:return u=null===d||void 0===d?void 0:d.getOfferAttachmentById(_r(_d2[16]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),p.abrupt("return",this.indyCredentialFormat.shouldAutoRespondToCredential(e,{credentialRecord:r,credentialAttachment:c,requestAttachment:l,offerAttachment:u}));case 21:case"end":return p.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(e,t){var r;return _r(_d2[7]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.next=3,_r(_d2[7]).awrap(r.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[16]).V1ProposeCredentialMessage}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}},null,null,null,Promise)}},{key:"findOfferMessage",value:function(e,t){var r;return _r(_d2[7]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.next=3,_r(_d2[7]).awrap(r.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[16]).V1OfferCredentialMessage}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}},null,null,null,Promise)}},{key:"findRequestMessage",value:function(e,t){var r;return _r(_d2[7]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.next=3,_r(_d2[7]).awrap(r.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[16]).V1RequestCredentialMessage}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}},null,null,null,Promise)}},{key:"findCredentialMessage",value:function(e,t){var r;return _r(_d2[7]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dependencyManager.resolve(_r(_d2[9]).DidCommMessageRepository),n.next=3,_r(_d2[7]).awrap(r.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[16]).V1IssueCredentialMessage}));case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getFormatData",value:function(e,t){var r,n,s,i,o,d,c,l,u,p,f,v,C,h,A;return _r(_d2[7]).async(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,_r(_d2[7]).awrap(Promise.all([this.findProposalMessage(e,t),this.findOfferMessage(e,t),this.findRequestMessage(e,t),this.findCredentialMessage(e,t)]));case 2:return d=w.sent,c=_r(_d2[27])(d,4),l=c[0],u=c[1],p=c[2],f=c[3],v=l?_r(_d2[13]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(l)):void 0,C=null!==(r=null===u||void 0===u?void 0:u.indyCredentialOffer)&&void 0!==r?r:void 0,h=null!==(n=null===p||void 0===p?void 0:p.indyCredentialRequest)&&void 0!==n?n:void 0,A=null!==(s=null===f||void 0===f?void 0:f.indyCredential)&&void 0!==s?s:void 0,w.abrupt("return",{proposalAttributes:null===(i=null===l||void 0===l?void 0:l.credentialPreview)||void 0===i?void 0:i.attributes,proposal:l?{indy:v}:void 0,offerAttributes:null===(o=null===u||void 0===u?void 0:u.credentialPreview)||void 0===o?void 0:o.attributes,offer:u?{indy:C}:void 0,request:p?{indy:h}:void 0,credential:f?{indy:A}:void 0});case 13:case"end":return w.stop()}},null,this,null,Promise)}},{key:"rfc0592ProposalFromV1ProposeMessage",value:function(e){return new(_r(_d2[14]).IndyCredPropose)({credentialDefinitionId:e.credentialDefinitionId,schemaId:e.schemaId,issuerDid:e.issuerDid,schemaIssuerDid:e.schemaIssuerDid,schemaName:e.schemaName,schemaVersion:e.schemaVersion})}},{key:"assertOnlyIndyFormat",value:function(e){var t=Object.keys(e);if(0!==t.length&&(1!==t.length||!t.includes('indy')))throw new(_r(_d2[10]).AriesFrameworkError)('Only indy credential format is supported for issue credential v1 protocol')}},{key:"getFormatServiceForRecordType",value:function(e){if(e!==this.indyCredentialFormat.credentialRecordType)throw new(_r(_d2[10]).AriesFrameworkError)("Unsupported credential record type "+e+" for v1 issue credential protocol (need "+this.indyCredentialFormat.credentialRecordType+")");return this.indyCredentialFormat}}]),i})(_r(_d2[28]).BaseCredentialProtocol);n=t([(0,_r(_d2[29]).injectable)(),r("design:paramtypes",[Object])],n),_e2.V1CredentialProtocol=n},1807,[14,11,9,7,8,1808,624,82,1643,1533,612,953,1550,993,1653,1663,1661,4,1466,978,1674,1485,1659,1644,1815,1401,1816,31,1817,1020]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e)},1808,[1809,1810,1811,1812,1813,1814,1639]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialAckHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1CredentialAckMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.credentialProtocol.processAck(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V1CredentialAckHandler=t},1809,[7,1661,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1IssueCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1IssueCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.credentialProtocol.processCredential(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToCredential(t.agentContext,{credentialRecord:n,credentialMessage:t.message}));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.acceptCredential(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(t,n){var s,o,c,u,l,C;return r(d[3]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return n.agentContext.config.logger.info("Automatically sending acknowledgement with autoAccept"),p.next=3,r(d[3]).awrap(this.credentialProtocol.acceptCredential(n.agentContext,{credentialRecord:t}));case 3:return s=p.sent,o=s.message,c=n.agentContext.dependencyManager.resolve(r(d[4]).DidCommMessageRepository),p.next=8,r(d[3]).awrap(c.getAgentMessage(n.agentContext,{associatedRecordId:t.id,messageClass:r(d[1]).V1RequestCredentialMessage}));case 8:if(u=p.sent,!n.connection){p.next=13;break}return p.abrupt("return",new(r(d[5]).OutboundMessageContext)(o,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 13:if(!n.message.service||!u.service){p.next=17;break}return l=n.message.service,C=u.service,p.abrupt("return",new(r(d[5]).OutboundMessageContext)(o,{agentContext:n.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:C.resolvedDidCommService.recipientKeys[0]}}));case 17:n.agentContext.config.logger.error("Could not automatically create credential ack");case 18:case"end":return p.stop()}},null,this,null,Promise)}}]),t})();e.V1IssueCredentialHandler=t},1810,[7,1661,8,82,1533,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1OfferCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1OfferCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.credentialProtocol.processOffer(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToOffer(t.agentContext,{credentialRecord:n,offerMessage:t.message}));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.acceptOffer(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(t,n){var s,o,c,u,l,f,p,x,v;return r(d[3]).async(function(C){for(;;)switch(C.prev=C.next){case 0:if(n.agentContext.config.logger.info("Automatically sending request with autoAccept"),!n.connection){C.next=9;break}return C.next=4,r(d[3]).awrap(this.credentialProtocol.acceptOffer(n.agentContext,{credentialRecord:t}));case 4:return s=C.sent,o=s.message,C.abrupt("return",new(r(d[4]).OutboundMessageContext)(o,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 9:if(!n.message.service){C.next=25;break}return c=n.agentContext.dependencyManager.resolve(r(d[5]).RoutingService),C.next=13,r(d[3]).awrap(c.getRouting(n.agentContext));case 13:return u=C.sent,l=new(r(d[6]).ServiceDecorator)({serviceEndpoint:u.endpoints[0],recipientKeys:[u.recipientKey.publicKeyBase58],routingKeys:u.routingKeys.map(function(t){return t.publicKeyBase58})}),f=n.message.service,C.next=18,r(d[3]).awrap(this.credentialProtocol.acceptOffer(n.agentContext,{credentialRecord:t,credentialFormats:{indy:{holderDid:l.recipientKeys[0]}}}));case 18:return p=C.sent,(x=p.message).service=l,v=n.agentContext.dependencyManager.resolve(r(d[7]).DidCommMessageRepository),C.next=24,r(d[3]).awrap(v.saveOrUpdateAgentMessage(n.agentContext,{agentMessage:x,role:r(d[7]).DidCommMessageRole.Sender,associatedRecordId:t.id}));case 24:return C.abrupt("return",new(r(d[4]).OutboundMessageContext)(x,{agentContext:n.agentContext,serviceParams:{service:f.resolvedDidCommService,senderKey:l.resolvedDidCommService.recipientKeys[0]}}));case 25:n.agentContext.config.logger.error("Could not automatically create credential request");case 26:case"end":return C.stop()}},null,this,null,Promise)}}]),t})();e.V1OfferCredentialHandler=t},1811,[7,1661,8,82,623,1508,985,1533]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1ProposeCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1ProposeCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[3]).awrap(this.credentialProtocol.processProposal(t));case 2:return n=o.sent,o.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToProposal(t.agentContext,{credentialRecord:n,proposalMessage:t.message}));case 5:if(!o.sent){o.next=10;break}return o.next=9,r(d[3]).awrap(this.acceptProposal(n,t));case 9:return o.abrupt("return",o.sent);case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(t,n){var o,s;return r(d[3]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(n.agentContext.config.logger.info("Automatically sending offer with autoAccept"),n.connection){c.next=4;break}return n.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept'),c.abrupt("return");case 4:return c.next=6,r(d[3]).awrap(this.credentialProtocol.acceptProposal(n.agentContext,{credentialRecord:t}));case 6:return o=c.sent,s=o.message,c.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 9:case"end":return c.stop()}},null,this,null,Promise)}}]),t})();e.V1ProposeCredentialHandler=t},1812,[7,1661,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1RequestCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1RequestCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.credentialProtocol.processRequest(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToRequest(t.agentContext,{credentialRecord:n,requestMessage:t.message}));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.acceptRequest(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t,n){var s,o,c,u,l,p;return r(d[3]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return n.agentContext.config.logger.info("Automatically sending credential with autoAccept"),v.next=3,r(d[3]).awrap(this.credentialProtocol.findOfferMessage(n.agentContext,t.id));case 3:return s=v.sent,v.next=6,r(d[3]).awrap(this.credentialProtocol.acceptRequest(n.agentContext,{credentialRecord:t}));case 6:if(o=v.sent,c=o.message,!n.connection){v.next=12;break}return v.abrupt("return",new(r(d[4]).OutboundMessageContext)(c,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 12:if(!(n.message.service&&(null===s||void 0===s?void 0:s.service))){v.next=20;break}return u=n.message.service,l=s.service,c.setService(l),p=n.agentContext.dependencyManager.resolve(r(d[5]).DidCommMessageRepository),v.next=19,r(d[3]).awrap(p.saveOrUpdateAgentMessage(n.agentContext,{agentMessage:c,role:r(d[5]).DidCommMessageRole.Sender,associatedRecordId:t.id}));case 19:return v.abrupt("return",new(r(d[4]).OutboundMessageContext)(c,{agentContext:n.agentContext,serviceParams:{service:u.resolvedDidCommService,senderKey:l.resolvedDidCommService.recipientKeys[0]}}));case 20:n.agentContext.config.logger.error("Could not automatically create credential request");case 21:case"end":return v.stop()}},null,this,null,Promise)}}]),t})();e.V1RequestCredentialHandler=t},1813,[7,1661,8,82,623,1533]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialProblemReportHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1CredentialProblemReportMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.credentialProtocol.processProblemReport(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V1CredentialProblemReportHandler=t},1814,[7,1661,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.composeAutoAccept=void 0,e.composeAutoAccept=function(o,t){var c;return null!==(c=null!==o&&void 0!==o?o:t)&&void 0!==c?c:r(d[0]).AutoAcceptCredential.Never}},1815,[1401]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i=n.length?{done:!0}:{done:!1,value:n[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(n,t){if(n){if("string"==typeof n)return o(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(n,t):void 0}}function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var o=0,i=new Array(t);o=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,s){if(t){if("string"==typeof t)return n(t,s);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,s):void 0}}function n(t,s){(null==s||s>t.length)&&(s=t.length);for(var n=0,o=new Array(s);n=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2CredentialAckMessage=void 0;var c=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(c.type),r("design:type",Object)],c.prototype,"type",void 0),_e.V2CredentialAckMessage=c},1822,[14,11,9,7,8,1485,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2CredentialProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V2CredentialProblemReportMessage=o},1823,[14,11,9,7,8,948,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,n,o):c(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2IssueCredentialMessage=void 0;var r=(function(t){_r(_d[2])(i,t);var n,r,c=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.credentialAttachments=e.credentialAttachments),t}return _r(_d[4])(i,[{key:"getCredentialAttachmentById",value:function(e){return this.credentialAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/issue-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),n("design:type",Array)],r.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[7]).Expose)({name:'credentials~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"credentialAttachments",void 0),_e.V2IssueCredentialMessage=r},1824,[14,11,9,7,8,949,942,627,1645,662,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2OfferCredentialMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,i=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.credentialPreview=e.credentialPreview,t.offerAttachments=e.offerAttachments),t}return _r(_d[4])(o,[{key:"getOfferAttachmentById",value:function(e){return this.offerAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/offer-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),r("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[7]).Expose)({name:'credential_preview'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).V2CredentialPreview}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsInstance)(_r(_d[10]).V2CredentialPreview),r("design:type",_r(_d[10]).V2CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[7]).Expose)({name:'offers~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[11]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"offerAttachments",void 0),t([(0,_r(_d[7]).Expose)({name:'replacement_id'}),(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),r("design:type",String)],n.prototype,"replacementId",void 0),_e.V2OfferCredentialMessage=n},1825,[14,11,9,7,8,949,942,627,1645,662,1826,978]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,c=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(r,i,c):o(r,i))||c);return s>3&&c&&Object.defineProperty(r,i,c),c},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialPreview=void 0;var i=(function(){function t(r){_r(_d[0])(this,t),this.type=t.type.messageTypeUri,r&&(this.attributes=r.attributes)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}],[{key:"fromRecord",value:function(r){return new t({attributes:Object.entries(r).map(function(t){var r=_r(_d[3])(t,2),i=r[0],n=r[1];return new(_r(_d[4]).CredentialPreviewAttribute)({name:i,mimeType:'text/plain',value:n})})})}}]),t})();i.type=(0,_r(_d[5]).parseMessageType)('https://didcomm.org/issue-credential/2.0/credential-preview'),t([(0,_r(_d[6]).Expose)({name:'@type'}),(0,_r(_d[5]).IsValidMessageType)(i.type),(0,_r(_d[6]).Transform)(function(t){var r=t.value;return(0,_r(_d[5]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[6]).Type)(function(){return _r(_d[4]).CredentialPreviewAttribute}),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[4]).CredentialPreviewAttribute,{each:!0}),r("design:type",Array)],i.prototype,"attributes",void 0),e.V2CredentialPreview=i},1826,[7,8,626,31,1549,942,627,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2ProposeCredentialMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.formats=e.formats,t.proposalAttachments=e.proposalAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(i,[{key:"getProposalAttachmentById",value:function(e){return this.proposalAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/propose-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).Expose)({name:'credential_preview'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).V2CredentialPreview}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsInstance)(_r(_d[10]).V2CredentialPreview),r("design:type",_r(_d[10]).V2CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[7]).Expose)({name:'filters~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[11]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"proposalAttachments",void 0),t([(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsString)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V2ProposeCredentialMessage=n},1827,[14,11,9,7,8,949,942,627,1645,662,1826,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(t,r,s):c(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2RequestCredentialMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.requestAttachments=e.requestAttachments),t}return _r(_d[4])(o,[{key:"getRequestAttachmentById",value:function(e){return this.requestAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/request-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).Expose)({name:'requests~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"requestAttachments",void 0),t([(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsString)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V2RequestCredentialMessage=n},1828,[14,11,9,7,8,949,942,627,1645,662,978]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1829,[1830,1831,1832,1833,1834,1835]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialAckHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2CredentialAckMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.credentialProtocol.processAck(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V2CredentialAckHandler=t},1830,[7,1822,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2IssueCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2IssueCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.credentialProtocol.processCredential(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToCredential(t.agentContext,{credentialRecord:n,credentialMessage:t.message}));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.acceptCredential(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(t,n){var s,o,c,l,u,C;return r(d[3]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return n.agentContext.config.logger.info("Automatically sending acknowledgement with autoAccept"),s=n.agentContext.dependencyManager.resolve(r(d[4]).DidCommMessageRepository),p.next=4,r(d[3]).awrap(s.findAgentMessage(n.agentContext,{associatedRecordId:t.id,messageClass:r(d[5]).V2RequestCredentialMessage}));case 4:return o=p.sent,p.next=7,r(d[3]).awrap(this.credentialProtocol.acceptCredential(n.agentContext,{credentialRecord:t}));case 7:if(c=p.sent,l=c.message,!n.connection){p.next=13;break}return p.abrupt("return",new(r(d[6]).OutboundMessageContext)(l,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 13:if(!((null===o||void 0===o?void 0:o.service)&&n.message.service)){p.next=17;break}return u=n.message.service,C=o.service,p.abrupt("return",new(r(d[6]).OutboundMessageContext)(l,{agentContext:n.agentContext,serviceParams:{service:u.resolvedDidCommService,senderKey:C.resolvedDidCommService.recipientKeys[0]}}));case 17:n.agentContext.config.logger.error("Could not automatically create credential ack");case 18:case"end":return p.stop()}},null,this,null,Promise)}}]),t})();e.V2IssueCredentialHandler=t},1831,[7,1824,8,82,1533,1828,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2OfferCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2OfferCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[3]).awrap(this.credentialProtocol.processOffer(t));case 2:return n=o.sent,o.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToOffer(t.agentContext,{credentialRecord:n,offerMessage:t.message}));case 5:if(!o.sent){o.next=10;break}return o.next=9,r(d[3]).awrap(this.acceptOffer(n,t));case 9:return o.abrupt("return",o.sent);case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(t,n,o){var s,c,u,l,f,p,x,v,C;return r(d[3]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(n.agentContext.config.logger.info("Automatically sending request with autoAccept"),!n.connection){y.next=9;break}return y.next=4,r(d[3]).awrap(this.credentialProtocol.acceptOffer(n.agentContext,{credentialRecord:t}));case 4:return s=y.sent,c=s.message,y.abrupt("return",new(r(d[4]).OutboundMessageContext)(c,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 9:if(!(null===o||void 0===o?void 0:o.service)){y.next=25;break}return u=n.agentContext.dependencyManager.resolve(r(d[5]).RoutingService),y.next=13,r(d[3]).awrap(u.getRouting(n.agentContext));case 13:return l=y.sent,f=new(r(d[6]).ServiceDecorator)({serviceEndpoint:l.endpoints[0],recipientKeys:[l.recipientKey.publicKeyBase58],routingKeys:l.routingKeys.map(function(t){return t.publicKeyBase58})}),p=o.service,y.next=18,r(d[3]).awrap(this.credentialProtocol.acceptOffer(n.agentContext,{credentialRecord:t}));case 18:return x=y.sent,(v=x.message).service=f,C=n.agentContext.dependencyManager.resolve(r(d[7]).DidCommMessageRepository),y.next=24,r(d[3]).awrap(C.saveOrUpdateAgentMessage(n.agentContext,{agentMessage:v,role:r(d[7]).DidCommMessageRole.Sender,associatedRecordId:t.id}));case 24:return y.abrupt("return",new(r(d[4]).OutboundMessageContext)(v,{agentContext:n.agentContext,serviceParams:{service:p.resolvedDidCommService,senderKey:f.resolvedDidCommService.recipientKeys[0]}}));case 25:n.agentContext.config.logger.error("Could not automatically create credential request");case 26:case"end":return y.stop()}},null,this,null,Promise)}}]),t})();e.V2OfferCredentialHandler=t},1832,[7,1825,8,82,623,1508,985,1533]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2ProposeCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2ProposeCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[3]).awrap(this.credentialProtocol.processProposal(t));case 2:return n=o.sent,o.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToProposal(t.agentContext,{credentialRecord:n,proposalMessage:t.message}));case 5:if(!o.sent){o.next=10;break}return o.next=9,r(d[3]).awrap(this.acceptProposal(n,t));case 9:return o.abrupt("return",o.sent);case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(t,n){var o,s;return r(d[3]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(n.agentContext.config.logger.info("Automatically sending offer with autoAccept"),n.connection){c.next=4;break}return n.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept'),c.abrupt("return");case 4:return c.next=6,r(d[3]).awrap(this.credentialProtocol.acceptProposal(n.agentContext,{credentialRecord:t}));case 6:return o=c.sent,s=o.message,c.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 9:case"end":return c.stop()}},null,this,null,Promise)}}]),t})();e.V2ProposeCredentialHandler=t},1833,[7,1827,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2RequestCredentialHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2RequestCredentialMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.credentialProtocol.processRequest(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.credentialProtocol.shouldAutoRespondToRequest(t.agentContext,{credentialRecord:n,requestMessage:t.message}));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.acceptRequest(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t,n){var s,o,c,u,l,p;return r(d[3]).async(function(v){for(;;)switch(v.prev=v.next){case 0:return n.agentContext.config.logger.info("Automatically sending credential with autoAccept"),s=n.agentContext.dependencyManager.resolve(r(d[4]).DidCommMessageRepository),v.next=4,r(d[3]).awrap(s.findAgentMessage(n.agentContext,{associatedRecordId:t.id,messageClass:r(d[5]).V2OfferCredentialMessage}));case 4:return o=v.sent,v.next=7,r(d[3]).awrap(this.credentialProtocol.acceptRequest(n.agentContext,{credentialRecord:t}));case 7:if(c=v.sent,u=c.message,!n.connection){v.next=13;break}return v.abrupt("return",new(r(d[6]).OutboundMessageContext)(u,{agentContext:n.agentContext,connection:n.connection,associatedRecord:t}));case 13:if(!(n.message.service&&(null===o||void 0===o?void 0:o.service))){v.next=20;break}return l=n.message.service,p=o.service,u.setService(p),v.next=19,r(d[3]).awrap(s.saveOrUpdateAgentMessage(n.agentContext,{agentMessage:u,associatedRecordId:t.id,role:r(d[4]).DidCommMessageRole.Sender}));case 19:return v.abrupt("return",new(r(d[6]).OutboundMessageContext)(u,{agentContext:n.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:p.resolvedDidCommService.recipientKeys[0]}}));case 20:n.agentContext.config.logger.error("Could not automatically issue credential");case 21:case"end":return v.stop()}},null,this,null,Promise)}}]),t})();e.V2RequestCredentialHandler=t},1834,[7,1828,8,82,1533,1825,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialProblemReportHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V2CredentialProblemReportMessage],this.credentialProtocol=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.credentialProtocol.processProblemReport(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V2CredentialProblemReportHandler=t},1835,[7,1823,8,82]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1836,[1837]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1837,[1640,1642]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return n(t,o);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,o):void 0}}function n(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n=0;u--)(n=t[u])&&(d=(o<3?n(d):o>3?n(i,r,d):n(i,r))||d);return o>3&&d&&Object.defineProperty(i,r,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeFilterTransformer=e.AttributeFilter=e.AttributeValue=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.name=i.name,this.value=i.value)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],r.prototype,"name",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],r.prototype,"value",void 0),e.AttributeValue=r;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.schemaId=i.schemaId,this.schemaIssuerDid=i.schemaIssuerDid,this.schemaName=i.schemaName,this.schemaVersion=i.schemaVersion,this.issuerDid=i.issuerDid,this.credentialDefinitionId=i.credentialDefinitionId,this.attributeValue=i.attributeValue)});t([(0,_r(_d[3]).Expose)({name:'schema_id'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).schemaIdRegex),i("design:type",String)],s.prototype,"schemaId",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).indyDidRegex),i("design:type",String)],s.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_name'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],s.prototype,"schemaName",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_version'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).schemaVersionRegex,{message:'Version must be X.X or X.X.X'}),i("design:type",String)],s.prototype,"schemaVersion",void 0),t([(0,_r(_d[3]).Expose)({name:'issuer_did'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).indyDidRegex),i("design:type",String)],s.prototype,"issuerDid",void 0),t([(0,_r(_d[3]).Expose)({name:'cred_def_id'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).credDefIdRegex),i("design:type",String)],s.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[3]).Type)(function(){return r}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(r),i("design:type",r)],s.prototype,"attributeValue",void 0),e.AttributeFilter=s,e.AttributeFilterTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var i=t.value;switch(t.type){case _r(_d[3]).TransformationType.CLASS_TO_PLAIN:return i.attributeValue&&(i["attr::"+i.attributeValue.name+"::value"]=i.attributeValue.value,delete i.attributeValue),i;case _r(_d[3]).TransformationType.PLAIN_TO_CLASS:for(var s=0,n=Object.entries(i);s=0;d--)(i=t[d])&&(c=(s<3?i(c):s>3?i(n,o,c):i(n,o))||c);return s>3&&c&&Object.defineProperty(n,o,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofAttributeInfo=void 0;var o=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.name=n.name,this.names=n.names,this.nonRevoked=n.nonRevoked,this.restrictions=n.restrictions)});t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).ValidateIf)(function(t){return void 0===t.names}),n("design:type",String)],o.prototype,"name",void 0),t([(0,_r(_d[2]).IsArray)(),(0,_r(_d[2]).IsString)({each:!0}),(0,_r(_d[2]).ValidateIf)(function(t){return void 0===t.name}),(0,_r(_d[2]).ArrayNotEmpty)(),n("design:type",Array)],o.prototype,"names",void 0),t([(0,_r(_d[3]).Expose)({name:'non_revoked'}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(_r(_d[4]).IndyRevocationInterval),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).IndyRevocationInterval}),(0,_r(_d[2]).IsOptional)(),n("design:type",_r(_d[4]).IndyRevocationInterval)],o.prototype,"nonRevoked",void 0),t([(0,_r(_d[2]).ValidateNested)({each:!0}),(0,_r(_d[3]).Type)(function(){return _r(_d[5]).AttributeFilter}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[5]).AttributeFilter,{each:!0}),n("design:type",Array)],o.prototype,"restrictions",void 0),e.ProofAttributeInfo=o},1850,[8,7,662,627,1531,1848]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,o,i){var r,c=arguments.length,p=c<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,n,o,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(p=(c<3?r(p):c>3?r(n,o,p):r(n,o))||p);return c>3&&p&&Object.defineProperty(n,o,p),p},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofPredicateInfo=void 0;var o=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.name=n.name,this.nonRevoked=n.nonRevoked,this.restrictions=n.restrictions,this.predicateType=n.predicateType,this.predicateValue=n.predicateValue)});t([(0,_r(_d[2]).IsString)(),n("design:type",String)],o.prototype,"name",void 0),t([(0,_r(_d[3]).Expose)({name:'p_type'}),(0,_r(_d[2]).IsEnum)(_r(_d[4]).PredicateType),n("design:type",String)],o.prototype,"predicateType",void 0),t([(0,_r(_d[3]).Expose)({name:'p_value'}),(0,_r(_d[2]).IsInt)(),n("design:type",Number)],o.prototype,"predicateValue",void 0),t([(0,_r(_d[3]).Expose)({name:'non_revoked'}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[3]).Type)(function(){return _r(_d[5]).IndyRevocationInterval}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[5]).IndyRevocationInterval),n("design:type",_r(_d[5]).IndyRevocationInterval)],o.prototype,"nonRevoked",void 0),t([(0,_r(_d[2]).ValidateNested)({each:!0}),(0,_r(_d[3]).Type)(function(){return _r(_d[6]).AttributeFilter}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[6]).AttributeFilter,{each:!0}),(0,_r(_d[2]).IsArray)(),n("design:type",Array)],o.prototype,"restrictions",void 0),e.ProofPredicateInfo=o},1851,[8,7,662,627,1849,1531,1848]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,o){var i,s=arguments.length,d=s<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,n,r,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(d=(s<3?i(d):s>3?i(n,r,d):i(n,r))||d);return s>3&&d&&Object.defineProperty(n,r,d),d},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofRequest=void 0;var r=(function(){function t(n){_r(_d[0])(this,t),n&&(this.name=n.name,this.version=n.version,this.nonce=n.nonce,this.requestedAttributes=n.requestedAttributes?n.requestedAttributes instanceof Map?n.requestedAttributes:new Map(Object.entries(n.requestedAttributes)):new Map,this.requestedPredicates=n.requestedPredicates?n.requestedPredicates instanceof Map?n.requestedPredicates:new Map(Object.entries(n.requestedPredicates)):new Map,this.nonRevoked=n.nonRevoked,this.ver=n.ver)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"name",void 0),t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"version",void 0),t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"nonce",void 0),t([(0,_r(_d[4]).Expose)({name:'requested_attributes'}),(0,_r(_d[5]).IsMap)(),(0,_r(_d[3]).ValidateNested)({each:!0}),(0,_r(_d[4]).Type)(function(){return _r(_d[6]).ProofAttributeInfo}),(0,_r(_d[3]).IsInstance)(_r(_d[6]).ProofAttributeInfo,{each:!0}),n("design:type",Map)],r.prototype,"requestedAttributes",void 0),t([(0,_r(_d[4]).Expose)({name:'requested_predicates'}),(0,_r(_d[5]).IsMap)(),(0,_r(_d[3]).ValidateNested)({each:!0}),(0,_r(_d[4]).Type)(function(){return _r(_d[7]).ProofPredicateInfo}),(0,_r(_d[3]).IsInstance)(_r(_d[7]).ProofPredicateInfo,{each:!0}),n("design:type",Map)],r.prototype,"requestedPredicates",void 0),t([(0,_r(_d[4]).Expose)({name:'non_revoked'}),(0,_r(_d[3]).ValidateNested)(),(0,_r(_d[4]).Type)(function(){return _r(_d[8]).IndyRevocationInterval}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsInstance)(_r(_d[8]).IndyRevocationInterval),n("design:type",_r(_d[8]).IndyRevocationInterval)],r.prototype,"nonRevoked",void 0),t([(0,_r(_d[3]).IsIn)(['1.0','2.0']),(0,_r(_d[3]).IsOptional)(),n("design:type",String)],r.prototype,"ver",void 0),e.ProofRequest=r},1852,[7,8,626,662,627,1073,1850,1851,1531]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,i,n){var r,d=arguments.length,l=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,o,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(l=(d<3?r(l):d>3?r(o,i,l):r(o,i))||l);return d>3&&l&&Object.defineProperty(o,i,l),l},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedAttribute=void 0;var i=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.credentialId=o.credentialId,this.timestamp=o.timestamp,this.revealed=o.revealed,this.credentialInfo=o.credentialInfo,this.revoked=o.revoked)});t([(0,_r(_d[2]).Expose)({name:'cred_id'}),(0,_r(_d[3]).IsString)(),o("design:type",String)],i.prototype,"credentialId",void 0),t([(0,_r(_d[2]).Expose)({name:'timestamp'}),(0,_r(_d[3]).IsInt)(),(0,_r(_d[3]).IsOptional)(),o("design:type",Number)],i.prototype,"timestamp",void 0),t([(0,_r(_d[3]).IsBoolean)(),o("design:type",Boolean)],i.prototype,"revealed",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),o("design:type",_r(_d[4]).IndyCredentialInfo)],i.prototype,"credentialInfo",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),o("design:type",Boolean)],i.prototype,"revoked",void 0),e.RequestedAttribute=i},1853,[8,7,627,662,1655]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,s,i){var d,n=arguments.length,o=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,i);else for(var u=t.length-1;u>=0;u--)(d=t[u])&&(o=(n<3?d(o):n>3?d(r,s,o):d(r,s))||o);return n>3&&o&&Object.defineProperty(r,s,o),o},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedCredentials=void 0;var s=(function(){function t(){var r,s,i,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_r(_d[0])(this,t),d&&(this.requestedAttributes=null!==(r=d.requestedAttributes)&&void 0!==r?r:{},this.requestedPredicates=null!==(s=d.requestedPredicates)&&void 0!==s?s:{},this.selfAttestedAttributes=null!==(i=d.selfAttestedAttributes)&&void 0!==i?i:{})}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}},{key:"getCredentialIdentifiers",value:function(){var t=new Set;return Object.values(this.requestedAttributes).forEach(function(r){t.add(r.credentialId)}),Object.values(this.requestedPredicates).forEach(function(r){t.add(r.credentialId)}),Array.from(t)}}]),t})();t([(0,_r(_d[3]).Expose)({name:'requested_attributes'}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[5]).RecordTransformer)(_r(_d[6]).RequestedAttribute),r("design:type",Object)],s.prototype,"requestedAttributes",void 0),t([(0,_r(_d[3]).Expose)({name:'requested_predicates'}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[5]).RecordTransformer)(_r(_d[7]).RequestedPredicate),r("design:type",Object)],s.prototype,"requestedPredicates",void 0),t([(0,_r(_d[3]).Expose)({name:'self_attested_attributes'}),r("design:type",Object)],s.prototype,"selfAttestedAttributes",void 0),e.RequestedCredentials=s},1854,[7,8,626,627,662,1073,1853,1855]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var d,r=arguments.length,c=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,o,n);else for(var s=t.length-1;s>=0;s--)(d=t[s])&&(c=(r<3?d(c):r>3?d(i,o,c):d(i,o))||c);return r>3&&c&&Object.defineProperty(i,o,c),c},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedPredicate=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.credentialId=i.credentialId,this.timestamp=i.timestamp,this.credentialInfo=i.credentialInfo,this.revoked=i.revoked)});t([(0,_r(_d[2]).Expose)({name:'cred_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],o.prototype,"credentialId",void 0),t([(0,_r(_d[2]).Expose)({name:'timestamp'}),(0,_r(_d[3]).IsInt)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Number)],o.prototype,"timestamp",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),i("design:type",_r(_d[4]).IndyCredentialInfo)],o.prototype,"credentialInfo",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),i("design:type",Boolean)],o.prototype,"revoked",void 0),e.RequestedPredicate=o},1855,[8,7,627,662,1531]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RetrievedCredentials=void 0;var t=r(d[0])(function t(){var s,u,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(d[1])(this,t),this.requestedAttributes=null!==(s=n.requestedAttributes)&&void 0!==s?s:{},this.requestedPredicates=null!==(u=n.requestedPredicates)&&void 0!==u?u:{}});e.RetrievedCredentials=t},1856,[8,7]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},f=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function p(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{p({},"")}catch(t){p=function(t,n,o){return t[n]=o}}function h(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,f=Object.create(u.prototype),s=new M(i||[]);return c(f,"_invoke",{value:P(t,o,s)}),f}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=h;var y={};function w(){}function b(){}function x(){}var L={};p(L,f,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(N([])));_&&_!==o&&i.call(_,f)&&(L=_);var O=x.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){p(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,f,s){var l=v(t[c],t,u);if("throw"!==l.type){var p=l.arg,h=p.value;return h&&"object"==typeof h&&i.call(h,"__await")?n.resolve(h.__await).then(function(t){o("next",t,f,s)},function(t){o("throw",t,f,s)}):n.resolve(h).then(function(t){p.value=t,f(p)},function(t){return o("throw",t,f,s)})}s(l.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return G()}for(o.method=c,o.arg=u;;){var f=o.delegate;if(f){var s=T(f,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var l=v(t,n,o);if("normal"===l.type){if(i=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i="completed",o.method="throw",o.arg=l.arg)}}}function T(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,T(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var n=t[f];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],f=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(s&&l){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),A(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;A(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o1)){N.next=27;break}x=r(d[2])(r(d[2])({},x),{proof:[x.proof]}),w.splice(0,1),L=n(w);case 19:if((E=L()).done){N.next=27;break}return _=E.value,N.next=23,t().awrap(f.deriveProof({document:b,proof:_,revealDocument:i,documentLoader:l,expansionMap:p}));case 23:O=N.sent,x.proof.push(O.proof);case 25:N.next=19;break;case 27:if(s){N.next=46;break}return j=r(d[3])({},r(d[4]).SECURITY_PROOF_URL,{'@graph':x.proof}),N.next=31,t().awrap((0,r(d[1]).getTypeInfo)(x.document,{documentLoader:l,expansionMap:p}));case 31:return k=N.sent,P=k.types,T=k.alias,j['@type']=P,S=u.default.getValues(x.document,'@context'),N.next=38,t().awrap(u.default.compact(j,S,{documentLoader:l,expansionMap:p,compactToRelative:!1}));case 38:delete(A=N.sent)[T],delete A['@context'],(null===(v=A.proof)||void 0===v?void 0:v['@included'])&&(A.proof=A.proof['@included']),M=Object.keys(A)[0],u.default.addValue(x.document,M,A[M]),N.next=48;break;case 46:delete x.proof['@context'],u.default.addValue(x.document,'proof',x.proof);case 48:return N.abrupt("return",r(d[5]).JsonTransformer.fromJSON(x.document,r(d[6]).W3cVerifiableCredential));case 49:case"end":return N.stop()}},null,null,null,Promise)}},1785,[1700,1774,4,248,1060,992,1775]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1786,[1787,1788]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,c){var n,i=arguments.length,o=i<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,r):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,c);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(o=(i<3?n(o):i>3?n(t,r,o):n(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cCredentialRecord=void 0;var c=(function(t){_r(_d[2])(i,t);var r,c,n=(r=i,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r,c;return _r(_d[3])(this,i),(t=n.call(this)).type=i.type,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:(0,_r(_d[4]).uuid)(),t.createdAt=null!==(c=e.createdAt)&&void 0!==c?c:new Date,t._tags=e.tags,t.credential=e.credential),t}return _r(_d[5])(i,[{key:"getTags",value:function(){return _r(_d[6])(_r(_d[6])({},this._tags),{issuerId:this.credential.issuerId,subjectIds:this.credential.credentialSubjectIds,schemaIds:this.credential.credentialSchemaIds,contexts:this.credential.contexts,proofTypes:this.credential.proofTypes,givenId:this.credential.id})}}]),i})(_r(_d[7]).BaseRecord);c.type='W3cCredentialRecord',t([(0,_r(_d[8]).Type)(function(){return _r(_d[9]).W3cVerifiableCredential}),r("design:type",_r(_d[9]).W3cVerifiableCredential)],c.prototype,"credential",void 0),_e.W3cCredentialRecord=c},1787,[14,11,9,7,952,8,4,1096,626,1776]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.W3cCredentialRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).W3cCredentialRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.W3cCredentialRepository=c},1788,[14,11,9,7,1787,8,1101,1019,1103,1104]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,u=arguments.length,f=u<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,i,n,r);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(f=(u<3?o(f):u>3?o(i,n,f):o(i,n))||f);return u>3&&f&&Object.defineProperty(i,n,f),f},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)},n=this&&this.__param||function(t,i){return function(n,r){i(n,r,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureSuiteRegistry=e.SignatureSuiteToken=void 0;_r(_d[0]).suites.LinkedDataSignature;e.SignatureSuiteToken=Symbol('SignatureSuiteToken');var r=(function(){function t(i){_r(_d[1])(this,t),this.suiteMapping=i}return _r(_d[2])(t,[{key:"supportedProofTypes",get:function(){return this.suiteMapping.map(function(t){return t.proofType})}},{key:"getByVerificationMethodType",value:function(t){return this.suiteMapping.find(function(i){return i.verificationMethodTypes.includes(t)})}},{key:"getByKeyType",value:function(t){return this.suiteMapping.find(function(i){return i.keyTypes.includes(t)})}},{key:"getByProofType",value:function(t){var i=this.suiteMapping.find(function(i){return i.proofType===t});if(!i)throw new(_r(_d[3]).AriesFrameworkError)("No signature suite for proof type: "+t);return i}},{key:"getVerificationMethodTypesByProofType",value:function(t){var i=this.suiteMapping.find(function(i){return i.proofType===t});if(!i)throw new(_r(_d[3]).AriesFrameworkError)("No verification method type found for proof type: "+t);return i.verificationMethodTypes}}]),t})();r=t([(0,_r(_d[4]).injectable)(),n(0,(0,_r(_d[4]).injectAll)(e.SignatureSuiteToken)),i("design:paramtypes",[Array])],r),e.SignatureSuiteRegistry=r},1789,[1790,7,8,611,1019]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.constants=e.purposes=e.suites=void 0,e.suites=r(d[0]).suites,e.purposes=r(d[0]).purposes,e.constants=r(d[0]).constants},1790,[1740]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.W3cVcModuleConfig=void 0;var o=(function(){function o(n){r(d[0])(this,o),this.options=null!==n&&void 0!==n?n:{}}return r(d[1])(o,[{key:"documentLoader",get:function(){var o;return null!==(o=this.options.documentLoader)&&void 0!==o?o:r(d[2]).defaultDocumentLoader}}]),o})();e.W3cVcModuleConfig=o},1791,[7,8,1792]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new G(i||[]);return c(l,"_invoke",{value:D(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,l)&&(L=_);var O=b.prototype=w.prototype=Object.create(L);function j(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){h.value=t,l(h)},function(t){return o("throw",t,l,s)})}s(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function D(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=N(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function N(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,N(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function P(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultDocumentLoader=void 0;var o=n(r(d[0]));e.defaultDocumentLoader=function(n){var i=n.dependencyManager.resolve(r(d[1]).DidResolverService);function c(c){var u,l,s,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:if(!c.startsWith('did:')){h.next=10;break}return h.next=3,t().awrap(i.resolve(n,c));case 3:if(!(u=h.sent).didResolutionMetadata.error&&u.didDocument){h.next=6;break}throw new(r(d[2]).AriesFrameworkError)("Unable to resolve DID: "+c);case 6:return h.next=8,t().awrap(o.default.frame(u.didDocument.toJSON(),{'@context':u.didDocument.context,'@embed':'@never',id:c},{documentLoader:this}));case 8:return l=h.sent,h.abrupt("return",{contextUrl:null,documentUrl:c,document:l});case 10:return s=(0,r(d[3]).getNativeDocumentLoader)(),f=s.apply(o.default,[]),h.next=14,t().awrap(f(c));case 14:return h.abrupt("return",h.sent);case 15:case"end":return h.stop()}},null,this,null,Promise)}return c.bind(c)}},1792,[1700,1419,612,1793]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNativeDocumentLoader=void 0,e.getNativeDocumentLoader=function(){return r(d[0])}},1793,[1736]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.W3cVcModule=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.config=new(r(d[1]).W3cVcModuleConfig)(n)}return r(d[2])(t,[{key:"register",value:function(t){t.registerSingleton(r(d[3]).W3cCredentialService),t.registerSingleton(r(d[4]).W3cCredentialRepository),t.registerSingleton(r(d[5]).SignatureSuiteRegistry),t.registerInstance(r(d[1]).W3cVcModuleConfig,this.config),t.registerInstance(r(d[5]).SignatureSuiteToken,{suiteClass:r(d[6]).Ed25519Signature2018,proofType:'Ed25519Signature2018',verificationMethodTypes:[r(d[7]).VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2018,r(d[7]).VERIFICATION_METHOD_TYPE_ED25519_VERIFICATION_KEY_2020],keyTypes:[r(d[8]).KeyType.Ed25519]})}}]),t})();e.W3cVcModule=t},1794,[7,1791,8,1699,1788,1789,1795,1080,989]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1795,[1796,1797]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof v?e:v,u=Object.create(c.prototype),s=new k(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y={};function v(){}function _(){}function E(){}var x={};f(x,u,function(){return this});var w=Object.getPrototypeOf,L=w&&w(w(R([])));L&&L!==n&&o.call(L,u)&&(x=L);var T=E.prototype=v.prototype=Object.create(x);function b(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){function n(i,c,u,s){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):e.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function O(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return D()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=U(u,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function U(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,U(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,y):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function S(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},e}function e(){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}}var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.Ed25519Signature2018=void 0;var o=n(r(d[2])),i=(function(n){r(d[3])(f,n);var i,s,l=(i=f,s=e(),function(){var t,e=r(d[0])(i);if(s){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function f(t){var e;return r(d[4])(this,f),(e=l.call(this,{type:'Ed25519Signature2018',algorithm:'EdDSA',LDKeyClass:t.LDKeyClass,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018,key:t.key,proof:t.proof,date:t.date,useNativeCanonize:t.useNativeCanonize})).requiredKeyType='Ed25519VerificationKey2018',e}return r(d[6])(f,[{key:"assertVerificationMethod",value:function(e){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(c({document:e})){t.next=2;break}throw new TypeError("The verification method (key) must contain \""+this.contextUrl+"\".");case 2:if(n=e,void 0,(0,r(d[12])._includesContext)({document:n,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018})&&o.default.hasValue(n,'type','Ed25519VerificationKey2018')||u(e)){t.next=4;break}throw new Error("Invalid key type. Key type must be \""+this.requiredKeyType+"\".");case 4:if(void 0===e.revoked){t.next=6;break}throw new Error('The verification method has been revoked.');case 6:case"end":return t.stop()}var n},null,this,null,Promise)}},{key:"getVerificationMethod",value:function(e){var n,o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,t().awrap(r(d[7])(r(d[0])(f.prototype),"getVerificationMethod",this).call(this,{proof:e.proof,documentLoader:e.documentLoader}));case 2:return u(n=c.sent)&&(o=r(d[8]).MultiBaseEncoder.decode(n.publicKeyMultibase),i=n['@context'].indexOf(r(d[5]).ED25519_SUITE_CONTEXT_URL_2020),n['@context'].splice(i,1),n['@context'].push(r(d[5]).ED25519_SUITE_CONTEXT_URL_2018),n.type='Ed25519VerificationKey2018',n=r(d[9])(r(d[9])({},n),{publicKeyMultibase:void 0,publicKeyBase58:r(d[8]).TypedArrayEncoder.toBase58(o.data)})),c.abrupt("return",n);case 5:case"end":return c.stop()}},null,this,null,Promise)}},{key:"ensureSuiteContext",value:function(t){c({document:t.document})||r(d[7])(r(d[0])(f.prototype),"ensureSuiteContext",this).call(this,{document:t.document,addSuiteContext:t.addSuiteContext})}},{key:"matchProof",value:function(e){return t().async(function(t){for(;;)switch(t.prev=t.next){case 0:if(c({document:e.document})){t.next=2;break}return t.abrupt("return",!1);case 2:return t.abrupt("return",r(d[7])(r(d[0])(f.prototype),"matchProof",this).call(this,{proof:e.proof,document:e.document,purpose:e.purpose,documentLoader:e.documentLoader,expansionMap:e.expansionMap}));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),f})(r(d[10]).JwsLinkedDataSignature);function c(t){var e=(0,r(d[12])._includesContext)({document:t.document,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2018}),n=(0,r(d[12])._includesContext)({document:t.document,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2020}),o=(0,r(d[12])._includesContext)({document:t.document,contextUrl:r(d[13]).CREDENTIALS_CONTEXT_V1_URL}),i=(0,r(d[12])._includesContext)({document:t.document,contextUrl:r(d[13]).SECURITY_CONTEXT_URL});return(!e||!o)&&((!e||!i)&&(e||n||o||i))}function u(t){return(0,r(d[12])._includesContext)({document:t,contextUrl:r(d[5]).ED25519_SUITE_CONTEXT_URL_2020})&&o.default.hasValue(t,'type','Ed25519VerificationKey2020')}_e.Ed25519Signature2018=i,i.CONTEXT_URL=r(d[5]).ED25519_SUITE_CONTEXT_URL_2018,i.CONTEXT=r(d[11]).ed25519Signature2018Context.get(r(d[5]).ED25519_SUITE_CONTEXT_URL_2018)},1796,[14,11,1700,9,7,1088,8,90,992,4,1797,1798,1774,1060]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof v?e:v,u=Object.create(c.prototype),s=new N(o||[]);return i(u,"_invoke",{value:O(t,n,s)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y={};function v(){}function w(){}function b(){}var x={};l(x,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(A([])));k&&k!==n&&o.call(k,u)&&(x=k);var E=b.prototype=v.prototype=Object.create(x);function j(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function _(t,e){function n(i,c,u,s){var f=p(t[i],t,c);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):e.resolve(h).then(function(t){l.value=t,u(l)},function(t){return n("throw",t,u,s)})}s(f.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function O(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return T()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=P(u,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var f=p(t,e,n);if("normal"===f.type){if(o=n.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o="completed",n.method="throw",n.arg=f.arg)}}}function P(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,y):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function S(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),f=o.call(c,"finallyLoc");if(s&&f){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;D(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),y}},e}function e(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.JwsLinkedDataSignature=void 0;var n=(function(n){r(d[3])(s,n);var i,c,u=(i=s,c=e(),function(){var t,e=r(d[0])(i);if(c){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function s(t){var e;return r(d[4])(this,s),(e=u.call(this,{type:t.type,LDKeyClass:t.LDKeyClass,contextUrl:t.contextUrl,key:t.key,signer:void 0,verifier:void 0,proof:t.proof,date:t.date,useNativeCanonize:t.useNativeCanonize})).alg=t.algorithm,e}return r(d[5])(s,[{key:"sign",value:function(e){var n,i,c,u,s;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.signer&&'function'==typeof this.signer.sign){f.next=2;break}throw new Error('A signer API has not been specified.');case 2:return n={alg:this.alg,b64:!1,crit:['b64']},i=r(d[6]).JsonEncoder.toBase64URL(n),c=o({encodedHeader:i,verifyData:e.verifyData}),f.next=7,t().awrap(this.signer.sign({data:c}));case 7:return u=f.sent,s=r(d[6]).TypedArrayEncoder.toBase64URL(u),e.proof.jws=i+'..'+s,f.abrupt("return",e.proof);case 11:case"end":return f.stop()}},null,this,null,Promise)}},{key:"verifySignature",value:function(e){var n,i,c,u,s,f,l,h,p;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(e.proof.jws&&'string'==typeof e.proof.jws&&e.proof.jws.includes('.')){y.next=2;break}throw new TypeError('The proof does not include a valid "jws" property.');case 2:n=e.proof.jws.split('.'),i=r(d[7])(n,3),c=i[0],u=i[2],y.prev=3,s=r(d[6]).JsonEncoder.fromBase64(c),y.next=10;break;case 7:throw y.prev=7,y.t0=y.catch(3),new Error('Could not parse JWS header; '+y.t0);case 10:if(s&&'object'==typeof s){y.next=12;break}throw new Error('Invalid JWS header.');case 12:if(s.alg===this.alg&&!1===s.b64&&Array.isArray(s.crit)&&1===s.crit.length&&'b64'===s.crit[0]||3!==Object.keys(s).length){y.next=14;break}throw new Error("Invalid JWS header parameters for "+this.type+".");case 14:if(f=r(d[6]).TypedArrayEncoder.fromBase64(u),l=o({encodedHeader:c,verifyData:e.verifyData}),h=this.verifier){y.next=22;break}return y.next=20,t().awrap(this.LDKeyClass.from(e.verificationMethod));case 20:p=y.sent,h=p.verifier();case 22:return y.abrupt("return",h.verify({data:l,signature:f}));case 23:case"end":return y.stop()}},null,this,[[3,7]],Promise)}},{key:"getVerificationMethod",value:function(e){var n,o,i;return t().async(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this.key){c.next=2;break}return c.abrupt("return",this.key.export({publicKey:!0}));case 2:if('object'==typeof(n=e.proof.verificationMethod)&&null!==n&&(n=n.id),n){c.next=6;break}throw new Error('No "verificationMethod" found in proof.');case 6:if(e.documentLoader){c.next=8;break}throw new(r(d[8]).AriesFrameworkError)('Missing custom document loader. This is required for resolving verification methods.');case 8:return c.next=10,t().awrap(e.documentLoader(n));case 10:return o=c.sent,i=o.document,n='string'==typeof i?JSON.parse(i):i,c.next=15,t().awrap(this.assertVerificationMethod(n));case 15:return c.abrupt("return",n);case 16:case"end":return c.stop()}},null,this,null,Promise)}},{key:"matchProof",value:function(e){var n;return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(r(d[9])(r(d[0])(s.prototype),"matchProof",this).call(this,{proof:e.proof,document:e.document,purpose:e.purpose,documentLoader:e.documentLoader,expansionMap:e.expansionMap}));case 2:if(o.sent){o.next=5;break}return o.abrupt("return",!1);case 5:if(this.key){o.next=7;break}return o.abrupt("return",!0);case 7:if('object'!=typeof(n=e.proof.verificationMethod)){o.next=10;break}return o.abrupt("return",n.id===this.key.id);case 10:return o.abrupt("return",n===this.key.id);case 11:case"end":return o.stop()}},null,this,null,Promise)}}]),s})(r(d[2]).suites.LinkedDataSignature);function o(t){var e=r(d[6]).TypedArrayEncoder.fromString(t.encodedHeader+'.'),n=new Uint8Array(e.length+t.verifyData.length);return n.set(e,0),n.set(t.verifyData,e.length),n}_e.JwsLinkedDataSignature=n},1797,[14,11,1790,9,7,8,992,31,611,90]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ed25519Signature2018Context=e.context=void 0,e.context={'@context':{id:'@id',type:'@type','@protected':!0,proof:{'@id':'https://w3id.org/security#proof','@type':'@id','@container':'@graph'},Ed25519VerificationKey2018:{'@id':'https://w3id.org/security#Ed25519VerificationKey2018','@context':{'@protected':!0,id:'@id',type:'@type',controller:{'@id':'https://w3id.org/security#controller','@type':'@id'},revoked:{'@id':'https://w3id.org/security#revoked','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},publicKeyBase58:{'@id':'https://w3id.org/security#publicKeyBase58'}}},Ed25519Signature2018:{'@id':'https://w3id.org/security#Ed25519Signature2018','@context':{'@protected':!0,id:'@id',type:'@type',challenge:'https://w3id.org/security#challenge',created:{'@id':'http://purl.org/dc/terms/created','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},domain:'https://w3id.org/security#domain',expires:{'@id':'https://w3id.org/security#expiration','@type':'http://www.w3.org/2001/XMLSchema#dateTime'},nonce:'https://w3id.org/security#nonce',proofPurpose:{'@id':'https://w3id.org/security#proofPurpose','@type':'@vocab','@context':{'@protected':!0,id:'@id',type:'@type',assertionMethod:{'@id':'https://w3id.org/security#assertionMethod','@type':'@id','@container':'@set'},authentication:{'@id':'https://w3id.org/security#authenticationMethod','@type':'@id','@container':'@set'},capabilityInvocation:{'@id':'https://w3id.org/security#capabilityInvocationMethod','@type':'@id','@container':'@set'},capabilityDelegation:{'@id':'https://w3id.org/security#capabilityDelegationMethod','@type':'@id','@container':'@set'},keyAgreement:{'@id':'https://w3id.org/security#keyAgreementMethod','@type':'@id','@container':'@set'}}},jws:{'@id':'https://w3id.org/security#jws'},verificationMethod:{'@id':'https://w3id.org/security#verificationMethod','@type':'@id'}}}}};var t=new Map;e.ed25519Signature2018Context=t,t.set(r(d[0]).ED25519_SUITE_CONTEXT_URL_2018,e.context)},1798,[1088]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1799,[1800,1801]); +__d(function(g,r,_i,a,m,_e,d){"use strict";function t(){t=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function h(t,e,n,o){var c=e&&e.prototype instanceof y?e:y,u=Object.create(c.prototype),s=new S(o||[]);return i(u,"_invoke",{value:P(t,n,s)}),u}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v={};function y(){}function w(){}function x(){}var b={};f(b,u,function(){return this});var L=Object.getPrototypeOf,E=L&&L(L(T([])));E&&E!==n&&o.call(E,u)&&(b=E);var _=x.prototype=y.prototype=Object.create(b);function O(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function n(i,c,u,s){var l=p(t[i],t,c);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==typeof h&&o.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,u,s)},function(t){n("throw",t,u,s)}):e.resolve(h).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,s)})}s(l.arg)}var c;i(this,"_invoke",{value:function(t,o){function i(){return new e(function(e,i){n(t,o,e,i)})}return c=c?c.then(i,i):i()}})}function P(t,e,n){var o="suspendedStart";return function(i,c){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw c;return F()}for(n.method=i,n.arg=c;;){var u=n.delegate;if(u){var s=k(u,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=p(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function k(t,e){var n=e.method,o=t.iterator[n];if(void 0===o)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function G(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var s=o.call(c,"catchLoc"),l=o.call(c,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;N(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},e}function e(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.CredentialIssuancePurpose=void 0;var n=r(d[2]).purposes.AssertionProofPurpose,o=(r(d[2]).suites.LinkedDataProof,(function(n){r(d[3])(u,n);var o,i,c=(o=u,i=e(),function(){var t,e=r(d[0])(o);if(i){var n=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){return r(d[4])(this,u),t.maxTimestampDelta=t.maxTimestampDelta||1/0,c.call(this,t)}return r(d[5])(u,[{key:"validate",value:function(e,n){var o,i,c;return t().async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,t().awrap(r(d[6])(r(d[0])(u.prototype),"validate",this).call(this,e,n));case 3:if((o=s.sent).valid){s.next=6;break}throw o.error;case 6:if((i=jsonld.util.getValues(n.document,'issuer'))&&0!==i.length){s.next=9;break}throw new Error('Credential issuer is required.');case 9:if(c='string'==typeof i[0]?i[0]:i[0].id,o.controller.id===c){s.next=12;break}throw new Error('Credential issuer must match the verification method controller.');case 12:return s.abrupt("return",{valid:!0});case 15:return s.prev=15,s.t0=s.catch(0),s.abrupt("return",{valid:!1,error:s.t0});case 18:case"end":return s.stop()}},null,this,[[0,15]],Promise)}}]),u})(n));_e.CredentialIssuancePurpose=o},1800,[14,11,1790,9,7,8,90]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1801,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,u,o){void 0===o&&(o=u);var c=Object.getOwnPropertyDescriptor(n,u);c&&("get"in c?n.__esModule:!c.writable&&!c.configurable)||(c={enumerable:!0,get:function(){return n[u]}}),Object.defineProperty(t,o,c)}:function(t,n,u,o){void 0===o&&(o=u),t[o]=n[u]}),n=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),u=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var o={};if(null!=u)for(var c in u)"default"!==c&&Object.prototype.hasOwnProperty.call(u,c)&&t(o,u,c);return n(o,u),o};Object.defineProperty(e,"__esModule",{value:!0}),e.vcLibraries=void 0;var o=u(r(d[0])),c=u(r(d[1])),l=u(r(d[2]));e.vcLibraries={jsonldSignatures:c,jsonld:r(d[3])(r(d[3])({},o),o.default),vc:r(d[3])(r(d[3])({},l),l.default)}},1802,[1700,1790,1737,4]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1803,[]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1804,[1805,1817,1835]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1805,[1806,1660]); +__d(function(g,_r,_i,a,m,_e2,_d2){"use strict";function e(){e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),c=new T(n||[]);return s(i,"_invoke",{value:I(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f={};function v(){}function h(){}function C(){}var y={};l(y,i,function(){return this});var w=Object.getPrototypeOf,A=w&&w(w(D([])));A&&A!==r&&n.call(A,i)&&(y=A);var R=C.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function M(e,t){function r(s,o,i,c){var d=p(e[s],e,o);if("throw"!==d.type){var l=d.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(u).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(d.arg)}var o;s(this,"_invoke",{value:function(e,n){function s(){return new t(function(t,s){r(e,n,t,s)})}return o=o?o.then(s,s):s()}})}function I(e,t,r){var n="suspendedStart";return function(s,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw o;return k()}for(r.method=s,r.arg=o;;){var i=r.delegate;if(i){var c=b(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var d=p(e,t,r);if("normal"===d.type){if(n=r.done?"completed":"suspendedYield",d.arg===f)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(n="completed",r.method="throw",r.arg=d.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var s=p(n,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,f;var o=s.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function D(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function t(){for(;++r=0;--s){var o=this.tryEntries[s],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),d=n.call(o,"finallyLoc");if(c&&d){if(this.prev=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var s=n.arg;P(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function t(){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(e){return!1}}var r=this&&this.__decorate||function(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e2,"__esModule",{value:!0}),_e2.V1CredentialProtocol=void 0;var s=(function(r){_r(_d2[2])(i,r);var n,s,o=(n=i,s=t(),function(){var e,t=_r(_d2[0])(n);if(s){var r=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function i(e){var t,r=e.indyCredentialFormat;return _r(_d2[3])(this,i),(t=o.call(this)).version='v1',t.indyCredentialFormat=r,t}return _r(_d2[4])(i,[{key:"register",value:function(e,t){e.registerMessageHandlers([new(_r(_d2[5]).V1ProposeCredentialHandler)(this),new(_r(_d2[5]).V1OfferCredentialHandler)(this),new(_r(_d2[5]).V1RequestCredentialHandler)(this),new(_r(_d2[5]).V1IssueCredentialHandler)(this),new(_r(_d2[5]).V1CredentialAckHandler)(this),new(_r(_d2[5]).V1CredentialProblemReportHandler)(this)]),t.register(new(_r(_d2[6]).Protocol)({id:'https://didcomm.org/issue-credential/1.0',roles:['holder','issuer']}))}},{key:"createProposal",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h,C,y;return e().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(n=r.connection,s=r.credentialFormats,o=r.comment,i=r.autoAcceptCredential,this.assertOnlyIndyFormat(s),c=t.dependencyManager.resolve(_r(_d2[7]).CredentialRepository),d=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.indy){w.next=6;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing indy credential format in v1 create proposal call.');case 6:return l=s.indy.linkedAttachments,u=new(_r(_d2[7]).CredentialExchangeRecord)({connectionId:n.id,threadId:(0,_r(_d2[10]).uuid)(),state:_r(_d2[11]).CredentialState.ProposalSent,linkedAttachments:null===l||void 0===l?void 0:l.map(function(e){return e.attachment}),autoAcceptCredential:i,protocolVersion:'v1'}),w.next=10,e().awrap(this.indyCredentialFormat.createProposal(t,{credentialFormats:s,credentialRecord:u}));case 10:return p=w.sent,f=p.previewAttributes,v=p.attachment,h=_r(_d2[12]).JsonTransformer.fromJSON(v.getDataAsJson(),_r(_d2[13]).IndyCredPropose),C=f?new(_r(_d2[14]).V1CredentialPreview)({attributes:f}):void 0,y=new(_r(_d2[15]).V1ProposeCredentialMessage)(_r(_d2[16])(_r(_d2[16])({},h),{id:u.threadId,credentialPreview:C,comment:o})),w.next=18,e().awrap(d.saveAgentMessage(t,{agentMessage:y,role:_r(_d2[8]).DidCommMessageRole.Sender,associatedRecordId:u.id}));case 18:return u.credentialAttributes=f,w.next=21,e().awrap(c.save(t,u));case 21:return this.emitStateChangedEvent(t,u,null),w.abrupt("return",{credentialRecord:u,message:y});case 23:case"end":return w.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(t){var r,n,s,o,i,c,d,l,u;return e().async(function(p){for(;;)switch(p.prev=p.next){case 0:return r=t.message,n=t.connection,s=t.agentContext,o=s.dependencyManager.resolve(_r(_d2[7]).CredentialRepository),i=s.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),c=s.dependencyManager.resolve(_r(_d2[17]).ConnectionService),s.config.logger.debug("Processing credential proposal with message id "+r.id),p.next=7,e().awrap(this.findByThreadAndConnectionId(t.agentContext,r.threadId,null===n||void 0===n?void 0:n.id));case 7:if(!(d=p.sent)){p.next=27;break}return s.config.logger.debug('Credential record already exists for incoming proposal'),d.assertProtocolVersion('v1'),d.assertState(_r(_d2[11]).CredentialState.OfferSent),p.next=14,e().awrap(i.findAgentMessage(t.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[15]).V1ProposeCredentialMessage}));case 14:return l=p.sent,p.next=17,e().awrap(i.findAgentMessage(t.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 17:return u=p.sent,c.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:null!==l&&void 0!==l?l:void 0,previousSentMessage:null!==u&&void 0!==u?u:void 0}),p.next=21,e().awrap(this.indyCredentialFormat.processProposal(t.agentContext,{credentialRecord:d,attachment:new(_r(_d2[18]).Attachment)({data:new(_r(_d2[18]).AttachmentData)({json:_r(_d2[12]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(r))})})}));case 21:return p.next=23,e().awrap(this.updateState(t.agentContext,d,_r(_d2[11]).CredentialState.ProposalReceived));case 23:return p.next=25,e().awrap(i.saveOrUpdateAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 25:p.next=35;break;case 27:return s.config.logger.debug('Credential record does not exists yet for incoming proposal'),d=new(_r(_d2[7]).CredentialExchangeRecord)({connectionId:null===n||void 0===n?void 0:n.id,threadId:r.threadId,state:_r(_d2[11]).CredentialState.ProposalReceived,protocolVersion:'v1'}),c.assertConnectionOrServiceDecorator(t),p.next=32,e().awrap(o.save(t.agentContext,d));case 32:return this.emitStateChangedEvent(t.agentContext,d,null),p.next=35,e().awrap(i.saveAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 35:return p.abrupt("return",d);case 36:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v;return e().async(function(h){for(;;)switch(h.prev=h.next){case 0:return n=r.credentialRecord,s=r.credentialFormats,o=r.comment,i=r.autoAcceptCredential,n.assertProtocolVersion('v1'),n.assertState(_r(_d2[11]).CredentialState.ProposalReceived),s&&this.assertOnlyIndyFormat(s),d=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),h.next=7,e().awrap(d.getAgentMessage(t,{associatedRecordId:n.id,messageClass:_r(_d2[15]).V1ProposeCredentialMessage}));case 7:return l=h.sent,n.credentialAttributes=null===(c=l.credentialPreview)||void 0===c?void 0:c.attributes,h.next=11,e().awrap(this.indyCredentialFormat.acceptProposal(t,{attachId:_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:s,credentialRecord:n,proposalAttachment:new(_r(_d2[18]).Attachment)({data:new(_r(_d2[18]).AttachmentData)({json:_r(_d2[12]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(l))})})}));case 11:if(u=h.sent,p=u.attachment,f=u.previewAttributes){h.next=16;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing required credential preview attributes from indy format service');case 16:return(v=new(_r(_d2[15]).V1OfferCredentialMessage)({comment:o,offerAttachments:[p],credentialPreview:new(_r(_d2[14]).V1CredentialPreview)({attributes:f}),attachments:n.linkedAttachments})).setThread({threadId:n.threadId}),n.credentialAttributes=f,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,h.next=22,e().awrap(this.updateState(t,n,_r(_d2[11]).CredentialState.OfferSent));case 22:return h.next=24,e().awrap(d.saveOrUpdateAgentMessage(t,{agentMessage:v,role:_r(_d2[8]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 24:return h.abrupt("return",{credentialRecord:n,message:v});case 25:case"end":return h.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(t,r){var n,s,o,i,c,d,l,u,p;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:return n=r.credentialFormats,s=r.credentialRecord,o=r.comment,i=r.autoAcceptCredential,s.assertProtocolVersion('v1'),s.assertState(_r(_d2[11]).CredentialState.ProposalReceived),n&&this.assertOnlyIndyFormat(n),c=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),f.next=7,e().awrap(this.indyCredentialFormat.createOffer(t,{attachId:_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:n,credentialRecord:s}));case 7:if(d=f.sent,l=d.attachment,u=d.previewAttributes){f.next=12;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing required credential preview attributes from indy format service');case 12:return(p=new(_r(_d2[15]).V1OfferCredentialMessage)({comment:o,offerAttachments:[l],credentialPreview:new(_r(_d2[14]).V1CredentialPreview)({attributes:u}),attachments:s.linkedAttachments})).setThread({threadId:s.threadId}),s.credentialAttributes=u,s.autoAcceptCredential=null!==i&&void 0!==i?i:s.autoAcceptCredential,f.next=18,e().awrap(this.updateState(t,s,_r(_d2[11]).CredentialState.OfferSent));case 18:return f.next=20,e().awrap(c.saveOrUpdateAgentMessage(t,{agentMessage:p,role:_r(_d2[8]).DidCommMessageRole.Sender,associatedRecordId:s.id}));case 20:return f.abrupt("return",{credentialRecord:s,message:p});case 21:case"end":return f.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h,C;return e().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=r.credentialFormats,s=r.autoAcceptCredential,o=r.comment,i=r.connection,n&&this.assertOnlyIndyFormat(n),l=t.dependencyManager.resolve(_r(_d2[7]).CredentialRepository),u=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),n.indy){y.next=6;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing indy credential format data for v1 create offer');case 6:return p=new(_r(_d2[7]).CredentialExchangeRecord)({connectionId:null===i||void 0===i?void 0:i.id,threadId:(0,_r(_d2[10]).uuid)(),linkedAttachments:null===(c=n.indy.linkedAttachments)||void 0===c?void 0:c.map(function(e){return e.attachment}),state:_r(_d2[11]).CredentialState.OfferSent,autoAcceptCredential:s,protocolVersion:'v1'}),y.next=9,e().awrap(this.indyCredentialFormat.createOffer(t,{attachId:_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID,credentialFormats:n,credentialRecord:p}));case 9:if(f=y.sent,v=f.attachment,h=f.previewAttributes){y.next=14;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing required credential preview from indy format service');case 14:return C=new(_r(_d2[15]).V1OfferCredentialMessage)({id:p.threadId,credentialPreview:new(_r(_d2[14]).V1CredentialPreview)({attributes:h}),comment:o,offerAttachments:[v],attachments:null===(d=n.indy.linkedAttachments)||void 0===d?void 0:d.map(function(e){return e.attachment})}),y.next=17,e().awrap(u.saveAgentMessage(t,{associatedRecordId:p.id,agentMessage:C,role:_r(_d2[8]).DidCommMessageRole.Sender}));case 17:return p.credentialAttributes=h,y.next=20,e().awrap(l.save(t,p));case 20:return this.emitStateChangedEvent(t,p,null),y.abrupt("return",{message:C,credentialRecord:p});case 22:case"end":return y.stop()}},null,this,null,Promise)}},{key:"processOffer",value:function(t){var r,n,s,o,i,c,d,l,u,p;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:return r=t.message,n=t.connection,s=t.agentContext,o=s.dependencyManager.resolve(_r(_d2[7]).CredentialRepository),i=s.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),c=s.dependencyManager.resolve(_r(_d2[17]).ConnectionService),s.config.logger.debug("Processing credential offer with id "+r.id),f.next=7,e().awrap(this.findByThreadAndConnectionId(t.agentContext,r.threadId,null===n||void 0===n?void 0:n.id));case 7:if(d=f.sent,l=r.getOfferAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID)){f.next=11;break}throw new(_r(_d2[9]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID+" not found in offer message");case 11:if(!d){f.next=30;break}return f.next=14,e().awrap(i.findAgentMessage(t.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[15]).V1ProposeCredentialMessage}));case 14:return u=f.sent,f.next=17,e().awrap(i.findAgentMessage(t.agentContext,{associatedRecordId:d.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 17:return p=f.sent,d.assertProtocolVersion('v1'),d.assertState(_r(_d2[11]).CredentialState.ProposalSent),c.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:null!==p&&void 0!==p?p:void 0,previousSentMessage:null!==u&&void 0!==u?u:void 0}),f.next=23,e().awrap(this.indyCredentialFormat.processOffer(t.agentContext,{credentialRecord:d,attachment:l}));case 23:return f.next=25,e().awrap(i.saveOrUpdateAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 25:return f.next=27,e().awrap(this.updateState(t.agentContext,d,_r(_d2[11]).CredentialState.OfferReceived));case 27:return f.abrupt("return",d);case 30:return d=new(_r(_d2[7]).CredentialExchangeRecord)({connectionId:null===n||void 0===n?void 0:n.id,threadId:r.id,state:_r(_d2[11]).CredentialState.OfferReceived,protocolVersion:'v1'}),c.assertConnectionOrServiceDecorator(t),f.next=34,e().awrap(this.indyCredentialFormat.processOffer(t.agentContext,{credentialRecord:d,attachment:l}));case 34:return f.next=36,e().awrap(i.saveAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:d.id}));case 36:return f.next=38,e().awrap(o.save(t.agentContext,d));case 38:return this.emitStateChangedEvent(t.agentContext,d,null),f.abrupt("return",d);case 40:case"end":return f.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h;return e().async(function(C){for(;;)switch(C.prev=C.next){case 0:return n=r.credentialRecord,s=r.credentialFormats,o=r.comment,i=r.autoAcceptCredential,n.assertProtocolVersion('v1'),n.assertState(_r(_d2[11]).CredentialState.OfferReceived),l=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),C.next=6,e().awrap(l.getAgentMessage(t,{associatedRecordId:n.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 6:if(u=C.sent,p=u.getOfferAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID)){C.next=10;break}throw new(_r(_d2[9]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID+" not found in offer message");case 10:return C.next=12,e().awrap(this.indyCredentialFormat.acceptOffer(t,{credentialRecord:n,credentialFormats:s,attachId:_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID,offerAttachment:p}));case 12:return f=C.sent,v=f.attachment,(h=new(_r(_d2[15]).V1RequestCredentialMessage)({comment:o,requestAttachments:[v],attachments:null===(c=u.appendedAttachments)||void 0===c?void 0:c.filter(function(e){return(0,_r(_d2[19]).isLinkedAttachment)(e)})})).setThread({threadId:n.threadId}),n.credentialAttributes=u.credentialPreview.attributes,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,n.linkedAttachments=null===(d=u.appendedAttachments)||void 0===d?void 0:d.filter(function(e){return(0,_r(_d2[19]).isLinkedAttachment)(e)}),C.next=21,e().awrap(l.saveOrUpdateAgentMessage(t,{agentMessage:h,associatedRecordId:n.id,role:_r(_d2[8]).DidCommMessageRole.Sender}));case 21:return C.next=23,e().awrap(this.updateState(t,n,_r(_d2[11]).CredentialState.RequestSent));case 23:return C.abrupt("return",{message:h,credentialRecord:n});case 24:case"end":return C.stop()}},null,this,null,Promise)}},{key:"negotiateOffer",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h;return e().async(function(C){for(;;)switch(C.prev=C.next){case 0:if(n=r.credentialFormats,s=r.credentialRecord,o=r.autoAcceptCredential,i=r.comment,s.assertProtocolVersion('v1'),s.assertState(_r(_d2[11]).CredentialState.OfferReceived),this.assertOnlyIndyFormat(n),c=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.connectionId){C.next=7;break}throw new(_r(_d2[9]).AriesFrameworkError)("No connectionId found for credential record '"+s.id+"'. Connection-less issuance does not support negotiation.");case 7:if(n.indy){C.next=9;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing indy credential format in v1 create proposal call.');case 9:return d=n.indy.linkedAttachments,C.next=12,e().awrap(this.indyCredentialFormat.createProposal(t,{credentialFormats:n,credentialRecord:s}));case 12:return l=C.sent,u=l.previewAttributes,p=l.attachment,f=_r(_d2[12]).JsonTransformer.fromJSON(p.getDataAsJson(),_r(_d2[13]).IndyCredPropose),v=u?new(_r(_d2[14]).V1CredentialPreview)({attributes:u}):void 0,(h=new(_r(_d2[15]).V1ProposeCredentialMessage)(_r(_d2[16])(_r(_d2[16])({},f),{credentialPreview:v,comment:i}))).setThread({threadId:s.threadId}),C.next=21,e().awrap(c.saveOrUpdateAgentMessage(t,{agentMessage:h,role:_r(_d2[8]).DidCommMessageRole.Sender,associatedRecordId:s.id}));case 21:return s.credentialAttributes=u,s.linkedAttachments=null===d||void 0===d?void 0:d.map(function(e){return e.attachment}),s.autoAcceptCredential=null!==o&&void 0!==o?o:s.autoAcceptCredential,C.next=26,e().awrap(this.updateState(t,s,_r(_d2[11]).CredentialState.ProposalSent));case 26:return C.abrupt("return",{credentialRecord:s,message:h});case 27:case"end":return C.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(){return e().async(function(e){for(;;)switch(e.prev=e.next){case 0:throw new(_r(_d2[9]).AriesFrameworkError)('Starting from a request is not supported for v1 issue credential protocol');case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"processRequest",value:function(t){var r,n,s,o,i,c,d,l,u;return e().async(function(p){for(;;)switch(p.prev=p.next){case 0:return r=t.message,n=t.connection,s=t.agentContext,o=s.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),i=s.dependencyManager.resolve(_r(_d2[17]).ConnectionService),s.config.logger.debug("Processing credential request with id "+r.id),p.next=6,e().awrap(this.getByThreadAndConnectionId(t.agentContext,r.threadId,null===n||void 0===n?void 0:n.id));case 6:return c=p.sent,s.config.logger.trace('Credential record found when processing credential request',c),p.next=10,e().awrap(o.findAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1ProposeCredentialMessage}));case 10:return d=p.sent,p.next=13,e().awrap(o.findAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 13:if(l=p.sent,c.assertProtocolVersion('v1'),c.assertState(_r(_d2[11]).CredentialState.OfferSent),i.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:null!==d&&void 0!==d?d:void 0,previousSentMessage:null!==l&&void 0!==l?l:void 0}),u=r.getRequestAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){p.next=20;break}throw new(_r(_d2[9]).AriesFrameworkError)("Indy attachment with id "+_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID+" not found in request message");case 20:return p.next=22,e().awrap(this.indyCredentialFormat.processRequest(t.agentContext,{credentialRecord:c,attachment:u}));case 22:return p.next=24,e().awrap(o.saveAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:c.id}));case 24:return p.next=26,e().awrap(this.updateState(t.agentContext,c,_r(_d2[11]).CredentialState.RequestReceived));case 26:return p.abrupt("return",c);case 27:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h;return e().async(function(C){for(;;)switch(C.prev=C.next){case 0:return n=r.credentialRecord,s=r.credentialFormats,o=r.comment,i=r.autoAcceptCredential,n.assertProtocolVersion('v1'),n.assertState(_r(_d2[11]).CredentialState.RequestReceived),c=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),C.next=6,e().awrap(c.getAgentMessage(t,{associatedRecordId:n.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 6:return d=C.sent,C.next=9,e().awrap(c.getAgentMessage(t,{associatedRecordId:n.id,messageClass:_r(_d2[15]).V1RequestCredentialMessage}));case 9:if(l=C.sent,u=d.getOfferAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),p=l.getRequestAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID),u&&p){C.next=14;break}throw new(_r(_d2[9]).AriesFrameworkError)("Missing data payload in offer or request attachment in credential Record "+n.id);case 14:return C.next=16,e().awrap(this.indyCredentialFormat.acceptRequest(t,{credentialRecord:n,requestAttachment:p,offerAttachment:u,attachId:_r(_d2[15]).INDY_CREDENTIAL_ATTACHMENT_ID,credentialFormats:s}));case 16:return f=C.sent,v=f.attachment,(h=new(_r(_d2[15]).V1IssueCredentialMessage)({comment:o,credentialAttachments:[v],attachments:n.linkedAttachments})).setThread({threadId:n.threadId}),h.setPleaseAck(),C.next=23,e().awrap(c.saveAgentMessage(t,{agentMessage:h,associatedRecordId:n.id,role:_r(_d2[8]).DidCommMessageRole.Sender}));case 23:return n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,C.next=26,e().awrap(this.updateState(t,n,_r(_d2[11]).CredentialState.CredentialIssued));case 26:return C.abrupt("return",{message:h,credentialRecord:n});case 27:case"end":return C.stop()}},null,this,null,Promise)}},{key:"processCredential",value:function(t){var r,n,s,o,i,c,d,l,u,p;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:return r=t.message,n=t.connection,(s=t.agentContext).config.logger.debug("Processing credential with id "+r.id),o=s.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),i=s.dependencyManager.resolve(_r(_d2[17]).ConnectionService),f.next=6,e().awrap(this.getByThreadAndConnectionId(t.agentContext,r.threadId,null===n||void 0===n?void 0:n.id));case 6:return c=f.sent,f.next=9,e().awrap(o.findAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1RequestCredentialMessage}));case 9:return d=f.sent,f.next=12,e().awrap(o.findAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 12:if(l=f.sent,c.assertProtocolVersion('v1'),c.assertState(_r(_d2[11]).CredentialState.RequestSent),i.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:null!==l&&void 0!==l?l:void 0,previousSentMessage:null!==d&&void 0!==d?d:void 0}),u=r.getCredentialAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_ATTACHMENT_ID)){f.next=19;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing indy credential attachment in processCredential');case 19:if(p=null===d||void 0===d?void 0:d.getRequestAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){f.next=22;break}throw new(_r(_d2[9]).AriesFrameworkError)('Missing indy credential request attachment in processCredential');case 22:return f.next=24,e().awrap(this.indyCredentialFormat.processCredential(t.agentContext,{attachment:u,credentialRecord:c,requestAttachment:p}));case 24:return f.next=26,e().awrap(o.saveAgentMessage(t.agentContext,{agentMessage:r,role:_r(_d2[8]).DidCommMessageRole.Receiver,associatedRecordId:c.id}));case 26:return f.next=28,e().awrap(this.updateState(t.agentContext,c,_r(_d2[11]).CredentialState.CredentialReceived));case 28:return f.abrupt("return",c);case 29:case"end":return f.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(t,r){var n,s;return e().async(function(o){for(;;)switch(o.prev=o.next){case 0:return(n=r.credentialRecord).assertProtocolVersion('v1'),n.assertState(_r(_d2[11]).CredentialState.CredentialReceived),s=new(_r(_d2[15]).V1CredentialAckMessage)({status:_r(_d2[20]).AckStatus.OK,threadId:n.threadId}),o.next=6,e().awrap(this.updateState(t,n,_r(_d2[11]).CredentialState.Done));case 6:return o.abrupt("return",{message:s,credentialRecord:n});case 7:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processAck",value:function(t){var r,n,s,o,i,c,d,l;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:return r=t.message,n=t.connection,(s=t.agentContext).config.logger.debug("Processing credential ack with id "+r.id),o=s.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),i=s.dependencyManager.resolve(_r(_d2[17]).ConnectionService),u.next=6,e().awrap(this.getByThreadAndConnectionId(t.agentContext,r.threadId,null===n||void 0===n?void 0:n.id));case 6:return c=u.sent,u.next=9,e().awrap(o.getAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1RequestCredentialMessage}));case 9:return d=u.sent,u.next=12,e().awrap(o.getAgentMessage(t.agentContext,{associatedRecordId:c.id,messageClass:_r(_d2[15]).V1IssueCredentialMessage}));case 12:return l=u.sent,c.assertProtocolVersion('v1'),c.assertState(_r(_d2[11]).CredentialState.CredentialIssued),i.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:d,previousSentMessage:l}),u.next=18,e().awrap(this.updateState(t.agentContext,c,_r(_d2[11]).CredentialState.Done));case 18:return u.abrupt("return",c);case 19:case"end":return u.stop()}},null,this,null,Promise)}},{key:"createProblemReport",value:function(e,t){return new(_r(_d2[15]).V1CredentialProblemReportMessage)({description:{en:t.message,code:_r(_d2[21]).CredentialProblemReportReason.IssuanceAbandoned}})}},{key:"shouldAutoRespondToProposal",value:function(t,r){var n,s,o,i,c,d;return e().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(n=r.credentialRecord,s=r.proposalMessage,o=t.dependencyManager.resolve(_r(_d2[22]).CredentialsModuleConfig),(i=(0,_r(_d2[23]).composeAutoAccept)(n.autoAcceptCredential,o.autoAcceptCredentials))!==_r(_d2[24]).AutoAcceptCredential.Always){l.next=5;break}return l.abrupt("return",!0);case 5:if(i!==_r(_d2[24]).AutoAcceptCredential.Never){l.next=7;break}return l.abrupt("return",!1);case 7:return l.next=9,e().awrap(this.findOfferMessage(t,n.id));case 9:if((c=l.sent)&&c.credentialPreview){l.next=12;break}return l.abrupt("return",!1);case 12:if(s.credentialPreview&&s.credentialDefinitionId){l.next=14;break}return l.abrupt("return",!1);case 14:if(d=c.indyCredentialOffer){l.next=17;break}return l.abrupt("return",!1);case 17:if(d.cred_def_id===s.credentialDefinitionId){l.next=19;break}return l.abrupt("return",!1);case 19:return l.abrupt("return",(0,_r(_d2[25]).arePreviewAttributesEqual)(s.credentialPreview.attributes,c.credentialPreview.attributes));case 20:case"end":return l.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToOffer",value:function(t,r){var n,s,o,i,c,d;return e().async(function(l){for(;;)switch(l.prev=l.next){case 0:if(n=r.credentialRecord,s=r.offerMessage,o=t.dependencyManager.resolve(_r(_d2[22]).CredentialsModuleConfig),(i=(0,_r(_d2[23]).composeAutoAccept)(n.autoAcceptCredential,o.autoAcceptCredentials))!==_r(_d2[24]).AutoAcceptCredential.Always){l.next=5;break}return l.abrupt("return",!0);case 5:if(i!==_r(_d2[24]).AutoAcceptCredential.Never){l.next=7;break}return l.abrupt("return",!1);case 7:return l.next=9,e().awrap(this.findProposalMessage(t,n.id));case 9:if(c=l.sent,s.credentialPreview){l.next=12;break}return l.abrupt("return",!1);case 12:if(c&&c.credentialPreview&&c.credentialDefinitionId){l.next=14;break}return l.abrupt("return",!1);case 14:if(d=s.indyCredentialOffer){l.next=17;break}return l.abrupt("return",!1);case 17:if(d.cred_def_id===c.credentialDefinitionId){l.next=19;break}return l.abrupt("return",!1);case 19:return l.abrupt("return",(0,_r(_d2[25]).arePreviewAttributesEqual)(c.credentialPreview.attributes,s.credentialPreview.attributes));case 20:case"end":return l.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToRequest",value:function(t,r){var n,s,o,i,c,d,l;return e().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=r.credentialRecord,s=r.requestMessage,o=t.dependencyManager.resolve(_r(_d2[22]).CredentialsModuleConfig),(i=(0,_r(_d2[23]).composeAutoAccept)(n.autoAcceptCredential,o.autoAcceptCredentials))!==_r(_d2[24]).AutoAcceptCredential.Always){u.next=5;break}return u.abrupt("return",!0);case 5:if(i!==_r(_d2[24]).AutoAcceptCredential.Never){u.next=7;break}return u.abrupt("return",!1);case 7:return u.next=9,e().awrap(this.findOfferMessage(t,n.id));case 9:if(c=u.sent){u.next=12;break}return u.abrupt("return",!1);case 12:if(d=c.getOfferAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),l=s.getRequestAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID),d&&l){u.next=16;break}return u.abrupt("return",!1);case 16:return u.abrupt("return",this.indyCredentialFormat.shouldAutoRespondToRequest(t,{credentialRecord:n,offerAttachment:d,requestAttachment:l}));case 17:case"end":return u.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToCredential",value:function(t,r){var n,s,o,i,c,d,l,u,p;return e().async(function(f){for(;;)switch(f.prev=f.next){case 0:if(n=r.credentialRecord,s=r.credentialMessage,o=t.dependencyManager.resolve(_r(_d2[22]).CredentialsModuleConfig),(i=(0,_r(_d2[23]).composeAutoAccept)(n.autoAcceptCredential,o.autoAcceptCredentials))!==_r(_d2[24]).AutoAcceptCredential.Always){f.next=5;break}return f.abrupt("return",!0);case 5:if(i!==_r(_d2[24]).AutoAcceptCredential.Never){f.next=7;break}return f.abrupt("return",!1);case 7:return f.next=9,e().awrap(this.findRequestMessage(t,n.id));case 9:return c=f.sent,f.next=12,e().awrap(this.findOfferMessage(t,n.id));case 12:if(d=f.sent,l=s.getCredentialAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_ATTACHMENT_ID)){f.next=16;break}return f.abrupt("return",!1);case 16:if(u=null===c||void 0===c?void 0:c.getRequestAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_REQUEST_ATTACHMENT_ID)){f.next=19;break}return f.abrupt("return",!1);case 19:return p=null===d||void 0===d?void 0:d.getOfferAttachmentById(_r(_d2[15]).INDY_CREDENTIAL_OFFER_ATTACHMENT_ID),f.abrupt("return",this.indyCredentialFormat.shouldAutoRespondToCredential(t,{credentialRecord:n,credentialAttachment:l,requestAttachment:u,offerAttachment:p}));case 21:case"end":return f.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(t,r){var n;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.next=3,e().awrap(n.findAgentMessage(t,{associatedRecordId:r,messageClass:_r(_d2[15]).V1ProposeCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"findOfferMessage",value:function(t,r){var n;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.next=3,e().awrap(n.findAgentMessage(t,{associatedRecordId:r,messageClass:_r(_d2[15]).V1OfferCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"findRequestMessage",value:function(t,r){var n;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.next=3,e().awrap(n.findAgentMessage(t,{associatedRecordId:r,messageClass:_r(_d2[15]).V1RequestCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"findCredentialMessage",value:function(t,r){var n;return e().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=t.dependencyManager.resolve(_r(_d2[8]).DidCommMessageRepository),s.next=3,e().awrap(n.findAgentMessage(t,{associatedRecordId:r,messageClass:_r(_d2[15]).V1IssueCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"getFormatData",value:function(t,r){var n,s,o,i,c,d,l,u,p,f,v,h,C,y,w;return e().async(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e().awrap(Promise.all([this.findProposalMessage(t,r),this.findOfferMessage(t,r),this.findRequestMessage(t,r),this.findCredentialMessage(t,r)]));case 2:return d=A.sent,l=_r(_d2[26])(d,4),u=l[0],p=l[1],f=l[2],v=l[3],h=u?_r(_d2[12]).JsonTransformer.toJSON(this.rfc0592ProposalFromV1ProposeMessage(u)):void 0,C=null!==(n=null===p||void 0===p?void 0:p.indyCredentialOffer)&&void 0!==n?n:void 0,y=null!==(s=null===f||void 0===f?void 0:f.indyCredentialRequest)&&void 0!==s?s:void 0,w=null!==(o=null===v||void 0===v?void 0:v.indyCredential)&&void 0!==o?o:void 0,A.abrupt("return",{proposalAttributes:null===(i=null===u||void 0===u?void 0:u.credentialPreview)||void 0===i?void 0:i.attributes,proposal:u?{indy:h}:void 0,offerAttributes:null===(c=null===p||void 0===p?void 0:p.credentialPreview)||void 0===c?void 0:c.attributes,offer:p?{indy:C}:void 0,request:f?{indy:y}:void 0,credential:v?{indy:w}:void 0});case 13:case"end":return A.stop()}},null,this,null,Promise)}},{key:"rfc0592ProposalFromV1ProposeMessage",value:function(e){return new(_r(_d2[13]).IndyCredPropose)({credentialDefinitionId:e.credentialDefinitionId,schemaId:e.schemaId,issuerDid:e.issuerDid,schemaIssuerDid:e.schemaIssuerDid,schemaName:e.schemaName,schemaVersion:e.schemaVersion})}},{key:"assertOnlyIndyFormat",value:function(e){var t=Object.keys(e);if(0!==t.length&&(1!==t.length||!t.includes('indy')))throw new(_r(_d2[9]).AriesFrameworkError)('Only indy credential format is supported for issue credential v1 protocol')}},{key:"getFormatServiceForRecordType",value:function(e){if(e!==this.indyCredentialFormat.credentialRecordType)throw new(_r(_d2[9]).AriesFrameworkError)("Unsupported credential record type "+e+" for v1 issue credential protocol (need "+this.indyCredentialFormat.credentialRecordType+")");return this.indyCredentialFormat}}]),i})(_r(_d2[27]).BaseCredentialProtocol);s=r([(0,_r(_d2[28]).injectable)(),n("design:paramtypes",[Object])],s),_e2.V1CredentialProtocol=s},1806,[14,11,9,7,8,1807,623,1642,1532,611,952,1549,992,1652,1662,1660,4,1465,977,1673,1484,1658,1643,1814,1400,1815,31,1816,1019]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e),n(r(d[6]),e)},1807,[1808,1809,1810,1811,1812,1813,1638]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new A(i||[]);return c(l,"_invoke",{value:P(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,l)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=G(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialAckHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1CredentialAckMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.credentialProtocol.processAck(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V1CredentialAckHandler=n},1808,[7,1660,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",h=s.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof w?n:w,u=Object.create(s.prototype),l=new G(i||[]);return c(u,"_invoke",{value:P(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,u,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(N([])));E&&E!==o&&i.call(E,u)&&(L=E);var _=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,s,u,l){var h=v(t[c],t,s);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){f.value=t,u(f)},function(t){return o("throw",t,u,l)})}l(h.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return I()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=j(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),h=i.call(s,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1IssueCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1IssueCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processCredential(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToCredential(n.agentContext,{credentialRecord:o,credentialMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptCredential(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(n,o){var i,c,s,u,l,h;return t().async(function(f){for(;;)switch(f.prev=f.next){case 0:return o.agentContext.config.logger.info("Automatically sending acknowledgement with autoAccept"),f.next=3,t().awrap(this.credentialProtocol.acceptCredential(o.agentContext,{credentialRecord:n}));case 3:return i=f.sent,c=i.message,s=o.agentContext.dependencyManager.resolve(r(d[3]).DidCommMessageRepository),f.next=8,t().awrap(s.getAgentMessage(o.agentContext,{associatedRecordId:n.id,messageClass:r(d[1]).V1RequestCredentialMessage}));case 8:if(u=f.sent,!o.connection){f.next=13;break}return f.abrupt("return",new(r(d[4]).OutboundMessageContext)(c,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 13:if(!o.message.service||!u.service){f.next=17;break}return l=o.message.service,h=u.service,f.abrupt("return",new(r(d[4]).OutboundMessageContext)(c,{agentContext:o.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:h.resolvedDidCommService.recipientKeys[0]}}));case 17:o.agentContext.config.logger.error("Could not automatically create credential ack");case 18:case"end":return f.stop()}},null,this,null,Promise)}}]),n})();e.V1IssueCredentialHandler=n},1809,[7,1660,8,1532,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof w?n:w,u=Object.create(s.prototype),l=new R(i||[]);return c(u,"_invoke",{value:j(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,u,function(){return this});var O=Object.getPrototypeOf,C=O&&O(O(K([])));C&&C!==o&&i.call(C,u)&&(L=C);var E=b.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,s,u,l){var f=v(t[c],t,s);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){h.value=t,u(h)},function(t){return o("throw",t,u,l)})}l(f.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function j(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return G()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=k(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function K(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),f=i.call(s,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:K(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1OfferCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1OfferCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processOffer(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToOffer(n.agentContext,{credentialRecord:o,offerMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptOffer(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(n,o){var i,c,s,u,l,f,h,p,v;return t().async(function(y){for(;;)switch(y.prev=y.next){case 0:if(o.agentContext.config.logger.info("Automatically sending request with autoAccept"),!o.connection){y.next=9;break}return y.next=4,t().awrap(this.credentialProtocol.acceptOffer(o.agentContext,{credentialRecord:n}));case 4:return i=y.sent,c=i.message,y.abrupt("return",new(r(d[3]).OutboundMessageContext)(c,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 9:if(!o.message.service){y.next=25;break}return s=o.agentContext.dependencyManager.resolve(r(d[4]).RoutingService),y.next=13,t().awrap(s.getRouting(o.agentContext));case 13:return u=y.sent,l=new(r(d[5]).ServiceDecorator)({serviceEndpoint:u.endpoints[0],recipientKeys:[u.recipientKey.publicKeyBase58],routingKeys:u.routingKeys.map(function(t){return t.publicKeyBase58})}),f=o.message.service,y.next=18,t().awrap(this.credentialProtocol.acceptOffer(o.agentContext,{credentialRecord:n,credentialFormats:{indy:{holderDid:l.recipientKeys[0]}}}));case 18:return h=y.sent,(p=h.message).service=l,v=o.agentContext.dependencyManager.resolve(r(d[6]).DidCommMessageRepository),y.next=24,t().awrap(v.saveOrUpdateAgentMessage(o.agentContext,{agentMessage:p,role:r(d[6]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 24:return y.abrupt("return",new(r(d[3]).OutboundMessageContext)(p,{agentContext:o.agentContext,serviceParams:{service:f.resolvedDidCommService,senderKey:l.resolvedDidCommService.recipientKeys[0]}}));case 25:o.agentContext.config.logger.error("Could not automatically create credential request");case 26:case"end":return y.stop()}},null,this,null,Promise)}}]),n})();e.V1OfferCredentialHandler=n},1810,[7,1660,8,622,1507,984,1532]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new S(i||[]);return c(s,"_invoke",{value:k(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,P=E&&E(E(T([])));P&&P!==o&&i.call(P,s)&&(L=P);var _=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return A()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=C(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function C(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,C(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1ProposeCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1ProposeCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processProposal(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToProposal(n.agentContext,{credentialRecord:o,proposalMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptProposal(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(n,o){var i,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.agentContext.config.logger.info("Automatically sending offer with autoAccept"),o.connection){u.next=4;break}return o.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept'),u.abrupt("return");case 4:return u.next=6,t().awrap(this.credentialProtocol.acceptProposal(o.agentContext,{credentialRecord:n}));case 6:return i=u.sent,c=i.message,u.abrupt("return",new(r(d[3]).OutboundMessageContext)(c,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 9:case"end":return u.stop()}},null,this,null,Promise)}}]),n})();e.V1ProposeCredentialHandler=n},1811,[7,1660,8,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof w?n:w,u=Object.create(s.prototype),l=new S(i||[]);return c(u,"_invoke",{value:R(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,u,function(){return this});var E=Object.getPrototypeOf,C=E&&E(E(q([])));C&&C!==o&&i.call(C,u)&&(L=C);var O=b.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,s,u,l){var f=v(t[c],t,s);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){h.value=t,u(h)},function(t){return o("throw",t,u,l)})}l(f.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function R(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return G()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=j(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function M(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function q(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),f=i.call(s,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),M(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;M(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:q(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1RequestCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1RequestCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processRequest(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToRequest(n.agentContext,{credentialRecord:o,requestMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptRequest(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(n,o){var i,c,s,u,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.agentContext.config.logger.info("Automatically sending credential with autoAccept"),h.next=3,t().awrap(this.credentialProtocol.findOfferMessage(o.agentContext,n.id));case 3:return i=h.sent,h.next=6,t().awrap(this.credentialProtocol.acceptRequest(o.agentContext,{credentialRecord:n}));case 6:if(c=h.sent,s=c.message,!o.connection){h.next=12;break}return h.abrupt("return",new(r(d[3]).OutboundMessageContext)(s,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 12:if(!(o.message.service&&(null===i||void 0===i?void 0:i.service))){h.next=20;break}return u=o.message.service,l=i.service,s.setService(l),f=o.agentContext.dependencyManager.resolve(r(d[4]).DidCommMessageRepository),h.next=19,t().awrap(f.saveOrUpdateAgentMessage(o.agentContext,{agentMessage:s,role:r(d[4]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 19:return h.abrupt("return",new(r(d[3]).OutboundMessageContext)(s,{agentContext:o.agentContext,serviceParams:{service:u.resolvedDidCommService,senderKey:l.resolvedDidCommService.recipientKeys[0]}}));case 20:o.agentContext.config.logger.error("Could not automatically create credential request");case 21:case"end":return h.stop()}},null,this,null,Promise)}}]),n})();e.V1RequestCredentialHandler=n},1812,[7,1660,8,622,1532]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new F(i||[]);return c(l,"_invoke",{value:k(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};f(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(L=_);var O=x.prototype=w.prototype=Object.create(L);function P(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=G(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V1CredentialProblemReportHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1CredentialProblemReportMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.credentialProtocol.processProblemReport(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V1CredentialProblemReportHandler=n},1813,[7,1660,8]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.composeAutoAccept=void 0,e.composeAutoAccept=function(o,t){var c;return null!==(c=null!==o&&void 0!==o?o:t)&&void 0!==c?c:r(d[0]).AutoAcceptCredential.Never}},1814,[1400]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var s=o.call(u,"catchLoc"),f=o.call(u,"finallyLoc");if(s&&f){if(this.prev=0;--i){var c=this.tryEntries[i];if(c.tryLoc<=this.prev&&o.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),R(o),v}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;R(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:A(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},t}Object.defineProperty(e,"__esModule",{value:!0}),e.BaseCredentialProtocol=void 0;var c=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"declineOffer",value:function(t,n){return i().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n.assertState(r(d[2]).CredentialState.OfferReceived),o.next=3,i().awrap(this.updateState(t,n,r(d[2]).CredentialState.Declined));case 3:return o.abrupt("return",n);case 4:case"end":return o.stop()}},null,this,null,Promise)}},{key:"processProblemReport",value:function(t){var n,o,c,u;return i().async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=t.message,o=t.agentContext,c=t.assertReadyConnection(),o.config.logger.debug("Processing problem report with id "+n.id),l.next=5,i().awrap(this.getByThreadAndConnectionId(t.agentContext,n.threadId,c.id));case 5:return(u=l.sent).errorMessage=n.description.code+": "+n.description.en,l.next=9,i().awrap(this.update(t.agentContext,u));case 9:return l.abrupt("return",u);case 10:case"end":return l.stop()}},null,this,null,Promise)}},{key:"updateState",value:function(t,n,o){var c,u;return i().async(function(l){for(;;)switch(l.prev=l.next){case 0:return c=t.dependencyManager.resolve(r(d[3]).CredentialRepository),t.config.logger.debug("Updating credential record "+n.id+" to state "+o+" (previous="+n.state+")"),u=n.state,n.state=o,l.next=6,i().awrap(c.update(t,n));case 6:this.emitStateChangedEvent(t,n,u);case 7:case"end":return l.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,n,o){var i=t.dependencyManager.resolve(r(d[4]).EventEmitter),c=r(d[5]).JsonTransformer.clone(n);i.emit(t,{type:r(d[6]).CredentialEventTypes.CredentialStateChanged,payload:{credentialRecord:c,previousState:o}})}},{key:"getById",value:function(t,n){return t.dependencyManager.resolve(r(d[3]).CredentialRepository).getById(t,n)}},{key:"getAll",value:function(t){return t.dependencyManager.resolve(r(d[3]).CredentialRepository).getAll(t)}},{key:"findAllByQuery",value:function(t,n){var o;return i().async(function(i){for(;;)switch(i.prev=i.next){case 0:return o=t.dependencyManager.resolve(r(d[3]).CredentialRepository),i.abrupt("return",o.findByQuery(t,n));case 2:case"end":return i.stop()}},null,null,null,Promise)}},{key:"findById",value:function(t,n){return t.dependencyManager.resolve(r(d[3]).CredentialRepository).findById(t,n)}},{key:"delete",value:function(n,o,c){var u,l,s,f,h,p,y,v,w,b,x,C,E,L;return i().async(function(k){for(;;)switch(k.prev=k.next){case 0:return s=n.dependencyManager.resolve(r(d[3]).CredentialRepository),f=n.dependencyManager.resolve(r(d[7]).DidCommMessageRepository),k.next=4,i().awrap(s.delete(n,o));case 4:if(h=null===(u=null===c||void 0===c?void 0:c.deleteAssociatedCredentials)||void 0===u||u,p=null===(l=null===c||void 0===c?void 0:c.deleteAssociatedDidCommMessages)||void 0===l||l,!h){k.next=15;break}y=t(o.credentials);case 8:if((v=y()).done){k.next=15;break}return w=v.value,b=this.getFormatServiceForRecordType(w.credentialRecordType),k.next=13,i().awrap(b.deleteCredentialById(n,w.credentialRecordId));case 13:k.next=8;break;case 15:if(!p){k.next=26;break}return k.next=18,i().awrap(f.findByQuery(n,{associatedRecordId:o.id}));case 18:x=k.sent,C=t(x);case 20:if((E=C()).done){k.next=26;break}return L=E.value,k.next=24,i().awrap(f.delete(n,L));case 24:k.next=20;break;case 26:case"end":return k.stop()}},null,this,null,Promise)}},{key:"getByThreadAndConnectionId",value:function(t,n,o){return t.dependencyManager.resolve(r(d[3]).CredentialRepository).getSingleByQuery(t,{connectionId:o,threadId:n})}},{key:"findByThreadAndConnectionId",value:function(t,n,o){return t.dependencyManager.resolve(r(d[3]).CredentialRepository).findSingleByQuery(t,{connectionId:o,threadId:n})}},{key:"update",value:function(t,n){var o;return i().async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=t.dependencyManager.resolve(r(d[3]).CredentialRepository),c.next=3,i().awrap(o.update(t,n));case 3:return c.abrupt("return",c.sent);case 4:case"end":return c.stop()}},null,null,null,Promise)}}]),n})();e.BaseCredentialProtocol=c},1816,[7,8,1549,1642,1104,992,1635,1532]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1817,[1818,1820]); +__d(function(g,r,_i3,a,m,_e,d){"use strict";function e(e,n){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=t(e))||n&&e&&"number"==typeof e.length){o&&(e=o);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0;--s){var i=this.tryEntries[s],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev=0;--o){var s=this.tryEntries[o];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var s=o.arg;I(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function s(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2CredentialProtocol=void 0;var i=(function(t){r(d[2])(u,t);var n,i,c=(n=u,i=s(),function(){var e,t=r(d[0])(n);if(i){var o=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e){var t,n=e.credentialFormats;return r(d[3])(this,u),(t=c.call(this)).credentialFormatCoordinator=new(r(d[4]).CredentialFormatCoordinator),t.version='v2',t.credentialFormats=n,t}return r(d[5])(u,[{key:"register",value:function(e,t){e.registerMessageHandlers([new(r(d[6]).V2ProposeCredentialHandler)(this),new(r(d[6]).V2OfferCredentialHandler)(this),new(r(d[6]).V2RequestCredentialHandler)(this),new(r(d[6]).V2IssueCredentialHandler)(this),new(r(d[6]).V2CredentialAckHandler)(this),new(r(d[7]).V2CredentialProblemReportHandler)(this)]),t.register(new(r(d[8]).Protocol)({id:'https://didcomm.org/issue-credential/2.0',roles:['holder','issuer']}))}},{key:"createProposal",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.connection,s=t.credentialFormats,i=t.comment,c=t.autoAcceptCredential,e.config.logger.debug('Get the Format Service and Create Proposal Message'),u=e.dependencyManager.resolve(r(d[9]).CredentialRepository),0!==(l=this.getFormatServices(s)).length){v.next=6;break}throw new(r(d[10]).AriesFrameworkError)("Unable to create proposal. No supported formats");case 6:return p=new(r(d[9]).CredentialExchangeRecord)({connectionId:n.id,threadId:(0,r(d[11]).uuid)(),state:r(d[12]).CredentialState.ProposalSent,autoAcceptCredential:c,protocolVersion:'v2'}),v.next=9,o().awrap(this.credentialFormatCoordinator.createProposal(e,{credentialFormats:s,credentialRecord:p,formatServices:l,comment:i}));case 9:return f=v.sent,e.config.logger.debug('Save record and emit state change event'),v.next=13,o().awrap(u.save(e,p));case 13:return this.emitStateChangedEvent(e,p,null),v.abrupt("return",{credentialRecord:p,message:f});case 15:case"end":return v.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(e){var t,n,s,i,c,u,l,p,f,v;return o().async(function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.message,n=e.connection,(s=e.agentContext).config.logger.debug("Processing credential proposal with id "+t.id),i=s.dependencyManager.resolve(r(d[9]).CredentialRepository),c=s.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),u=s.dependencyManager.resolve(r(d[14]).ConnectionService),h.next=7,o().awrap(this.findByThreadAndConnectionId(e.agentContext,t.threadId,null===n||void 0===n?void 0:n.id));case 7:if(l=h.sent,0!==(p=this.getFormatServicesFromMessage(s,t.formats)).length){h.next=11;break}throw new(r(d[10]).AriesFrameworkError)("Unable to process proposal. No supported formats");case 11:if(!l){h.next=28;break}return h.next=14,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2ProposeCredentialMessage}));case 14:return f=h.sent,h.next=17,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2OfferCredentialMessage}));case 17:return v=h.sent,l.assertProtocolVersion('v2'),l.assertState(r(d[12]).CredentialState.OfferSent),u.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==f&&void 0!==f?f:void 0,previousSentMessage:null!==v&&void 0!==v?v:void 0}),h.next=23,o().awrap(this.credentialFormatCoordinator.processProposal(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 23:return h.next=25,o().awrap(this.updateState(e.agentContext,l,r(d[12]).CredentialState.ProposalReceived));case 25:return h.abrupt("return",l);case 28:return u.assertConnectionOrServiceDecorator(e),l=new(r(d[9]).CredentialExchangeRecord)({connectionId:null===n||void 0===n?void 0:n.id,threadId:t.threadId,state:r(d[12]).CredentialState.ProposalReceived,protocolVersion:'v2'}),h.next=32,o().awrap(this.credentialFormatCoordinator.processProposal(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 32:return h.next=34,o().awrap(i.save(e.agentContext,l));case 34:return this.emitStateChangedEvent(e.agentContext,l,null),h.abrupt("return",l);case 36:case"end":return h.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.credentialRecord,s=t.credentialFormats,i=t.autoAcceptCredential,c=t.comment,n.assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.ProposalReceived),u=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),0!==(l=this.getFormatServices(null!==s&&void 0!==s?s:{})).length){v.next=10;break}return v.next=8,o().awrap(u.getAgentMessage(e,{associatedRecordId:n.id,messageClass:r(d[15]).V2ProposeCredentialMessage}));case 8:p=v.sent,l=this.getFormatServicesFromMessage(e,p.formats);case 10:if(0!==l.length){v.next=12;break}throw new(r(d[10]).AriesFrameworkError)("Unable to accept proposal. No supported formats provided as input or in proposal message");case 12:return v.next=14,o().awrap(this.credentialFormatCoordinator.acceptProposal(e,{credentialRecord:n,formatServices:l,comment:c,credentialFormats:s}));case 14:return f=v.sent,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,v.next=18,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.OfferSent));case 18:return v.abrupt("return",{credentialRecord:n,message:f});case 19:case"end":return v.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(e,t){var n,s,i,c,u,l;return o().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(n=t.credentialRecord,s=t.credentialFormats,i=t.autoAcceptCredential,c=t.comment,n.assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.ProposalReceived),n.connectionId){p.next=5;break}throw new(r(d[10]).AriesFrameworkError)("No connectionId found for credential record '"+n.id+"'. Connection-less issuance does not support negotiation.");case 5:if(0!==(u=this.getFormatServices(s)).length){p.next=8;break}throw new(r(d[10]).AriesFrameworkError)("Unable to create offer. No supported formats");case 8:return p.next=10,o().awrap(this.credentialFormatCoordinator.createOffer(e,{formatServices:u,credentialFormats:s,credentialRecord:n,comment:c}));case 10:return l=p.sent,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,p.next=14,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.OfferSent));case 14:return p.abrupt("return",{credentialRecord:n,message:l});case 15:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createOffer",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.credentialFormats,s=t.autoAcceptCredential,i=t.comment,c=t.connection,u=e.dependencyManager.resolve(r(d[9]).CredentialRepository),0!==(l=this.getFormatServices(n)).length){v.next=5;break}throw new(r(d[10]).AriesFrameworkError)("Unable to create offer. No supported formats");case 5:return p=new(r(d[9]).CredentialExchangeRecord)({connectionId:null===c||void 0===c?void 0:c.id,threadId:(0,r(d[11]).uuid)(),state:r(d[12]).CredentialState.OfferSent,autoAcceptCredential:s,protocolVersion:'v2'}),v.next=8,o().awrap(this.credentialFormatCoordinator.createOffer(e,{formatServices:l,credentialFormats:n,credentialRecord:p,comment:i}));case 8:return f=v.sent,e.config.logger.debug("Saving record and emitting state changed for credential exchange record "+p.id),v.next=12,o().awrap(u.save(e,p));case 12:return this.emitStateChangedEvent(e,p,null),v.abrupt("return",{credentialRecord:p,message:f});case 14:case"end":return v.stop()}},null,this,null,Promise)}},{key:"processOffer",value:function(e){var t,n,s,i,c,u,l,p,f,v;return o().async(function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.message,n=e.connection,(s=e.agentContext).config.logger.debug("Processing credential offer with id "+t.id),i=s.dependencyManager.resolve(r(d[9]).CredentialRepository),c=s.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),u=s.dependencyManager.resolve(r(d[14]).ConnectionService),h.next=7,o().awrap(this.findByThreadAndConnectionId(e.agentContext,t.threadId,null===n||void 0===n?void 0:n.id));case 7:if(l=h.sent,0!==(p=this.getFormatServicesFromMessage(s,t.formats)).length){h.next=11;break}throw new(r(d[10]).AriesFrameworkError)("Unable to process offer. No supported formats");case 11:if(!l){h.next=28;break}return h.next=14,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2ProposeCredentialMessage}));case 14:return f=h.sent,h.next=17,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2OfferCredentialMessage}));case 17:return v=h.sent,l.assertProtocolVersion('v2'),l.assertState(r(d[12]).CredentialState.ProposalSent),u.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==v&&void 0!==v?v:void 0,previousSentMessage:null!==f&&void 0!==f?f:void 0}),h.next=23,o().awrap(this.credentialFormatCoordinator.processOffer(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 23:return h.next=25,o().awrap(this.updateState(e.agentContext,l,r(d[12]).CredentialState.OfferReceived));case 25:return h.abrupt("return",l);case 28:return u.assertConnectionOrServiceDecorator(e),s.config.logger.debug('No credential record found for offer, creating a new one'),l=new(r(d[9]).CredentialExchangeRecord)({connectionId:null===n||void 0===n?void 0:n.id,threadId:t.threadId,state:r(d[12]).CredentialState.OfferReceived,protocolVersion:'v2'}),h.next=33,o().awrap(this.credentialFormatCoordinator.processOffer(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 33:return s.config.logger.debug('Saving credential record and emit offer-received event'),h.next=36,o().awrap(i.save(e.agentContext,l));case 36:return this.emitStateChangedEvent(e.agentContext,l,null),h.abrupt("return",l);case 38:case"end":return h.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.credentialRecord,s=t.autoAcceptCredential,i=t.comment,c=t.credentialFormats,u=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),n.assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.OfferReceived),0!==(l=this.getFormatServices(null!==c&&void 0!==c?c:{})).length){v.next=10;break}return v.next=8,o().awrap(u.getAgentMessage(e,{associatedRecordId:n.id,messageClass:r(d[15]).V2OfferCredentialMessage}));case 8:p=v.sent,l=this.getFormatServicesFromMessage(e,p.formats);case 10:if(0!==l.length){v.next=12;break}throw new(r(d[10]).AriesFrameworkError)("Unable to accept offer. No supported formats provided as input or in offer message");case 12:return v.next=14,o().awrap(this.credentialFormatCoordinator.acceptOffer(e,{credentialRecord:n,formatServices:l,comment:i,credentialFormats:c}));case 14:return f=v.sent,n.autoAcceptCredential=null!==s&&void 0!==s?s:n.autoAcceptCredential,v.next=18,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.RequestSent));case 18:return v.abrupt("return",{credentialRecord:n,message:f});case 19:case"end":return v.stop()}},null,this,null,Promise)}},{key:"negotiateOffer",value:function(e,t){var n,s,i,c,u,l;return o().async(function(p){for(;;)switch(p.prev=p.next){case 0:if(n=t.credentialRecord,s=t.credentialFormats,i=t.autoAcceptCredential,c=t.comment,n.assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.OfferReceived),n.connectionId){p.next=5;break}throw new(r(d[10]).AriesFrameworkError)("No connectionId found for credential record '"+n.id+"'. Connection-less issuance does not support negotiation.");case 5:if(0!==(u=this.getFormatServices(s)).length){p.next=8;break}throw new(r(d[10]).AriesFrameworkError)("Unable to create proposal. No supported formats");case 8:return p.next=10,o().awrap(this.credentialFormatCoordinator.createProposal(e,{formatServices:u,credentialFormats:s,credentialRecord:n,comment:c}));case 10:return l=p.sent,n.autoAcceptCredential=null!==i&&void 0!==i?i:n.autoAcceptCredential,p.next=14,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.ProposalSent));case 14:return p.abrupt("return",{credentialRecord:n,message:l});case 15:case"end":return p.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.credentialFormats,s=t.autoAcceptCredential,i=t.comment,c=t.connection,u=e.dependencyManager.resolve(r(d[9]).CredentialRepository),0!==(l=this.getFormatServices(n)).length){v.next=5;break}throw new(r(d[10]).AriesFrameworkError)("Unable to create request. No supported formats");case 5:return p=new(r(d[9]).CredentialExchangeRecord)({connectionId:c.id,threadId:(0,r(d[11]).uuid)(),state:r(d[12]).CredentialState.RequestSent,autoAcceptCredential:s,protocolVersion:'v2'}),v.next=8,o().awrap(this.credentialFormatCoordinator.createRequest(e,{formatServices:l,credentialFormats:n,credentialRecord:p,comment:i}));case 8:return f=v.sent,e.config.logger.debug("Saving record and emitting state changed for credential exchange record "+p.id),v.next=12,o().awrap(u.save(e,p));case 12:return this.emitStateChangedEvent(e,p,null),v.abrupt("return",{credentialRecord:p,message:f});case 14:case"end":return v.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(e){var t,n,s,i,c,u,l,p,f,v;return o().async(function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.message,n=e.connection,s=e.agentContext,i=s.dependencyManager.resolve(r(d[9]).CredentialRepository),c=s.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),u=s.dependencyManager.resolve(r(d[14]).ConnectionService),s.config.logger.debug("Processing credential request with id "+t.id),h.next=7,o().awrap(this.findByThreadAndConnectionId(e.agentContext,t.threadId,null===n||void 0===n?void 0:n.id));case 7:if(l=h.sent,0!==(p=this.getFormatServicesFromMessage(s,t.formats)).length){h.next=11;break}throw new(r(d[10]).AriesFrameworkError)("Unable to process request. No supported formats");case 11:if(!l){h.next=28;break}return h.next=14,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2ProposeCredentialMessage}));case 14:return f=h.sent,h.next=17,o().awrap(c.findAgentMessage(e.agentContext,{associatedRecordId:l.id,messageClass:r(d[15]).V2OfferCredentialMessage}));case 17:return v=h.sent,l.assertProtocolVersion('v2'),l.assertState(r(d[12]).CredentialState.OfferSent),u.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==f&&void 0!==f?f:void 0,previousSentMessage:null!==v&&void 0!==v?v:void 0}),h.next=23,o().awrap(this.credentialFormatCoordinator.processRequest(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 23:return h.next=25,o().awrap(this.updateState(e.agentContext,l,r(d[12]).CredentialState.RequestReceived));case 25:return h.abrupt("return",l);case 28:return u.assertConnectionOrServiceDecorator(e),s.config.logger.debug('No credential record found for request, creating a new one'),l=new(r(d[9]).CredentialExchangeRecord)({connectionId:null===n||void 0===n?void 0:n.id,threadId:t.threadId,state:r(d[12]).CredentialState.RequestReceived,protocolVersion:'v2'}),h.next=33,o().awrap(this.credentialFormatCoordinator.processRequest(e.agentContext,{credentialRecord:l,formatServices:p,message:t}));case 33:return s.config.logger.debug('Saving credential record and emit request-received event'),h.next=36,o().awrap(i.save(e.agentContext,l));case 36:return this.emitStateChangedEvent(e.agentContext,l,null),h.abrupt("return",l);case 38:case"end":return h.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(e,t){var n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:if(n=t.credentialRecord,s=t.autoAcceptCredential,i=t.comment,c=t.credentialFormats,u=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),n.assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.RequestReceived),0!==(l=this.getFormatServices(null!==c&&void 0!==c?c:{})).length){v.next=10;break}return v.next=8,o().awrap(u.getAgentMessage(e,{associatedRecordId:n.id,messageClass:r(d[15]).V2RequestCredentialMessage}));case 8:p=v.sent,l=this.getFormatServicesFromMessage(e,p.formats);case 10:if(0!==l.length){v.next=12;break}throw new(r(d[10]).AriesFrameworkError)("Unable to accept request. No supported formats provided as input or in request message");case 12:return v.next=14,o().awrap(this.credentialFormatCoordinator.acceptRequest(e,{credentialRecord:n,formatServices:l,comment:i,credentialFormats:c}));case 14:return f=v.sent,n.autoAcceptCredential=null!==s&&void 0!==s?s:n.autoAcceptCredential,v.next=18,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.CredentialIssued));case 18:return v.abrupt("return",{credentialRecord:n,message:f});case 19:case"end":return v.stop()}},null,this,null,Promise)}},{key:"processCredential",value:function(e){var t,n,s,i,c,u,l,p,f;return o().async(function(v){for(;;)switch(v.prev=v.next){case 0:return t=e.message,n=e.connection,s=e.agentContext,i=s.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),c=s.dependencyManager.resolve(r(d[14]).ConnectionService),s.config.logger.debug("Processing credential with id "+t.id),v.next=6,o().awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===n||void 0===n?void 0:n.id));case 6:return u=v.sent,v.next=9,o().awrap(i.getAgentMessage(e.agentContext,{associatedRecordId:u.id,messageClass:r(d[15]).V2RequestCredentialMessage}));case 9:return l=v.sent,v.next=12,o().awrap(i.findAgentMessage(e.agentContext,{associatedRecordId:u.id,messageClass:r(d[15]).V2OfferCredentialMessage}));case 12:if(p=v.sent,u.assertProtocolVersion('v2'),u.assertState(r(d[12]).CredentialState.RequestSent),c.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==p&&void 0!==p?p:void 0,previousSentMessage:l}),0!==(f=this.getFormatServicesFromMessage(s,l.formats)).length){v.next=19;break}throw new(r(d[10]).AriesFrameworkError)("Unable to process credential. No supported formats");case 19:return v.next=21,o().awrap(this.credentialFormatCoordinator.processCredential(e.agentContext,{credentialRecord:u,formatServices:f,requestMessage:l,message:t}));case 21:return v.next=23,o().awrap(this.updateState(e.agentContext,u,r(d[12]).CredentialState.CredentialReceived));case 23:return v.abrupt("return",u);case 24:case"end":return v.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(e,t){var n,s;return o().async(function(i){for(;;)switch(i.prev=i.next){case 0:return(n=t.credentialRecord).assertProtocolVersion('v2'),n.assertState(r(d[12]).CredentialState.CredentialReceived),s=new(r(d[15]).V2CredentialAckMessage)({status:r(d[16]).AckStatus.OK,threadId:n.threadId}),i.next=6,o().awrap(this.updateState(e,n,r(d[12]).CredentialState.Done));case 6:return i.abrupt("return",{message:s,credentialRecord:n});case 7:case"end":return i.stop()}},null,this,null,Promise)}},{key:"processAck",value:function(e){var t,n,s,i,c,u,l,p;return o().async(function(f){for(;;)switch(f.prev=f.next){case 0:return t=e.message,n=e.connection,(s=e.agentContext).config.logger.debug("Processing credential ack with id "+t.id),i=s.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),c=s.dependencyManager.resolve(r(d[14]).ConnectionService),f.next=6,o().awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===n||void 0===n?void 0:n.id));case 6:return(u=f.sent).connectionId=null===n||void 0===n?void 0:n.id,f.next=10,o().awrap(i.getAgentMessage(e.agentContext,{associatedRecordId:u.id,messageClass:r(d[15]).V2RequestCredentialMessage}));case 10:return l=f.sent,f.next=13,o().awrap(i.getAgentMessage(e.agentContext,{associatedRecordId:u.id,messageClass:r(d[15]).V2IssueCredentialMessage}));case 13:return p=f.sent,u.assertProtocolVersion('v2'),u.assertState(r(d[12]).CredentialState.CredentialIssued),c.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:l,previousSentMessage:p}),f.next=19,o().awrap(this.updateState(e.agentContext,u,r(d[12]).CredentialState.Done));case 19:return f.abrupt("return",u);case 20:case"end":return f.stop()}},null,this,null,Promise)}},{key:"createProblemReport",value:function(e,t){return new(r(d[15]).V2CredentialProblemReportMessage)({description:{en:t.message,code:r(d[17]).CredentialProblemReportReason.IssuanceAbandoned}})}},{key:"shouldAutoRespondToProposal",value:function(t,n){var s,i,c,u,l,p,f,v,h,C,y;return o().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(s=n.credentialRecord,i=n.proposalMessage,c=t.dependencyManager.resolve(r(d[18]).CredentialsModuleConfig),(u=(0,r(d[19]).composeAutoAccept)(s.autoAcceptCredential,c.autoAcceptCredentials))!==r(d[12]).AutoAcceptCredential.Always){w.next=5;break}return w.abrupt("return",!0);case 5:if(u!==r(d[12]).AutoAcceptCredential.Never){w.next=7;break}return w.abrupt("return",!1);case 7:return w.next=9,o().awrap(this.findOfferMessage(t,s.id));case 9:if(l=w.sent){w.next=12;break}return w.abrupt("return",!1);case 12:p=this.getFormatServicesFromMessage(t,l.formats),f=e(p);case 14:if((v=f()).done){w.next=23;break}if(h=v.value,C=this.credentialFormatCoordinator.getAttachmentForService(h,l.formats,l.offerAttachments),y=this.credentialFormatCoordinator.getAttachmentForService(h,i.formats,i.proposalAttachments),h.shouldAutoRespondToProposal(t,{credentialRecord:s,offerAttachment:C,proposalAttachment:y})){w.next=21;break}return w.abrupt("return",!1);case 21:w.next=14;break;case 23:if(!i.credentialPreview&&!l.credentialPreview){w.next=27;break}if(i.credentialPreview&&l.credentialPreview){w.next=26;break}return w.abrupt("return",!1);case 26:return w.abrupt("return",(0,r(d[20]).arePreviewAttributesEqual)(i.credentialPreview.attributes,l.credentialPreview.attributes));case 27:return w.abrupt("return",!0);case 28:case"end":return w.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToOffer",value:function(t,n){var s,i,c,u,l,p,f,v,h,C,y,w,x,b,A;return o().async(function(S){for(;;)switch(S.prev=S.next){case 0:if(l=n.credentialRecord,p=n.offerMessage,f=t.dependencyManager.resolve(r(d[18]).CredentialsModuleConfig),(v=(0,r(d[19]).composeAutoAccept)(l.autoAcceptCredential,f.autoAcceptCredentials))!==r(d[12]).AutoAcceptCredential.Always){S.next=5;break}return S.abrupt("return",!0);case 5:if(v!==r(d[12]).AutoAcceptCredential.Never){S.next=7;break}return S.abrupt("return",!1);case 7:return S.next=9,o().awrap(this.findProposalMessage(t,l.id));case 9:if(h=S.sent){S.next=12;break}return S.abrupt("return",!1);case 12:C=this.getFormatServicesFromMessage(t,h.formats),y=e(C);case 14:if((w=y()).done){S.next=23;break}if(x=w.value,b=this.credentialFormatCoordinator.getAttachmentForService(x,p.formats,p.offerAttachments),A=this.credentialFormatCoordinator.getAttachmentForService(x,h.formats,h.proposalAttachments),x.shouldAutoRespondToOffer(t,{credentialRecord:l,offerAttachment:b,proposalAttachment:A})){S.next=21;break}return S.abrupt("return",!1);case 21:S.next=14;break;case 23:if(!h.credentialPreview&&!p.credentialPreview){S.next=25;break}return S.abrupt("return",(0,r(d[20]).arePreviewAttributesEqual)(null!==(i=null===(s=h.credentialPreview)||void 0===s?void 0:s.attributes)&&void 0!==i?i:[],null!==(u=null===(c=p.credentialPreview)||void 0===c?void 0:c.attributes)&&void 0!==u?u:[]));case 25:return S.abrupt("return",!0);case 26:case"end":return S.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToRequest",value:function(t,n){var s,i,c,u,l,p,f,v,h,C,y,w,x;return o().async(function(b){for(;;)switch(b.prev=b.next){case 0:if(s=n.credentialRecord,i=n.requestMessage,c=t.dependencyManager.resolve(r(d[18]).CredentialsModuleConfig),(u=(0,r(d[19]).composeAutoAccept)(s.autoAcceptCredential,c.autoAcceptCredentials))!==r(d[12]).AutoAcceptCredential.Always){b.next=5;break}return b.abrupt("return",!0);case 5:if(u!==r(d[12]).AutoAcceptCredential.Never){b.next=7;break}return b.abrupt("return",!1);case 7:return b.next=9,o().awrap(this.findProposalMessage(t,s.id));case 9:return l=b.sent,b.next=12,o().awrap(this.findOfferMessage(t,s.id));case 12:if(p=b.sent){b.next=15;break}return b.abrupt("return",!1);case 15:f=this.getFormatServicesFromMessage(t,p.formats),v=e(f);case 17:if((h=v()).done){b.next=27;break}if(C=h.value,y=this.credentialFormatCoordinator.getAttachmentForService(C,p.formats,p.offerAttachments),w=l?this.credentialFormatCoordinator.getAttachmentForService(C,l.formats,l.proposalAttachments):void 0,x=this.credentialFormatCoordinator.getAttachmentForService(C,i.formats,i.requestAttachments),C.shouldAutoRespondToRequest(t,{credentialRecord:s,offerAttachment:y,requestAttachment:x,proposalAttachment:w})){b.next=25;break}return b.abrupt("return",!1);case 25:b.next=17;break;case 27:return b.abrupt("return",!0);case 28:case"end":return b.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToCredential",value:function(t,n){var s,i,c,u,l,p,f,v,h,C,y,w,x,b,A;return o().async(function(S){for(;;)switch(S.prev=S.next){case 0:if(s=n.credentialRecord,i=n.credentialMessage,c=t.dependencyManager.resolve(r(d[18]).CredentialsModuleConfig),(u=(0,r(d[19]).composeAutoAccept)(s.autoAcceptCredential,c.autoAcceptCredentials))!==r(d[12]).AutoAcceptCredential.Always){S.next=5;break}return S.abrupt("return",!0);case 5:if(u!==r(d[12]).AutoAcceptCredential.Never){S.next=7;break}return S.abrupt("return",!1);case 7:return S.next=9,o().awrap(this.findProposalMessage(t,s.id));case 9:return l=S.sent,S.next=12,o().awrap(this.findOfferMessage(t,s.id));case 12:return p=S.sent,S.next=15,o().awrap(this.findRequestMessage(t,s.id));case 15:if(f=S.sent){S.next=18;break}return S.abrupt("return",!1);case 18:v=this.getFormatServicesFromMessage(t,f.formats),h=e(v);case 20:if((C=h()).done){S.next=31;break}if(y=C.value,w=p?this.credentialFormatCoordinator.getAttachmentForService(y,p.formats,p.offerAttachments):void 0,x=l?this.credentialFormatCoordinator.getAttachmentForService(y,l.formats,l.proposalAttachments):void 0,b=this.credentialFormatCoordinator.getAttachmentForService(y,f.formats,f.requestAttachments),A=this.credentialFormatCoordinator.getAttachmentForService(y,i.formats,i.credentialAttachments),y.shouldAutoRespondToCredential(t,{credentialRecord:s,offerAttachment:w,credentialAttachment:A,requestAttachment:b,proposalAttachment:x})){S.next=29;break}return S.abrupt("return",!1);case 29:S.next=20;break;case 31:return S.abrupt("return",!0);case 32:case"end":return S.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(e,t){var n;return o().async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),o.abrupt("return",n.findAgentMessage(e,{associatedRecordId:t,messageClass:r(d[15]).V2ProposeCredentialMessage}));case 2:case"end":return o.stop()}},null,null,null,Promise)}},{key:"findOfferMessage",value:function(e,t){var n;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),s.next=3,o().awrap(n.findAgentMessage(e,{associatedRecordId:t,messageClass:r(d[15]).V2OfferCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"findRequestMessage",value:function(e,t){var n;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),s.next=3,o().awrap(n.findAgentMessage(e,{associatedRecordId:t,messageClass:r(d[15]).V2RequestCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"findCredentialMessage",value:function(e,t){var n;return o().async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=e.dependencyManager.resolve(r(d[13]).DidCommMessageRepository),s.next=3,o().awrap(n.findAgentMessage(e,{associatedRecordId:t,messageClass:r(d[15]).V2IssueCredentialMessage}));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,null,null,Promise)}},{key:"getFormatData",value:function(t,n){var s,i,c,u,l,p,f,v,h,C,y,w,x,b,A,S,R,F,M,k,P,I,O,E;return o().async(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,o().awrap(Promise.all([this.findProposalMessage(t,n),this.findOfferMessage(t,n),this.findRequestMessage(t,n),this.findCredentialMessage(t,n)]));case 2:c=V.sent,u=r(d[21])(c,4),l=u[0],p=u[1],f=u[2],v=u[3],h={proposal:[null===l||void 0===l?void 0:l.formats,null===l||void 0===l?void 0:l.proposalAttachments],offer:[null===p||void 0===p?void 0:p.formats,null===p||void 0===p?void 0:p.offerAttachments],request:[null===f||void 0===f?void 0:f.formats,null===f||void 0===f?void 0:f.requestAttachments],credential:[null===v||void 0===v?void 0:v.formats,null===v||void 0===v?void 0:v.credentialAttachments]},C={proposalAttributes:null===(s=null===l||void 0===l?void 0:l.credentialPreview)||void 0===s?void 0:s.attributes,offerAttributes:null===(i=null===p||void 0===p?void 0:p.credentialPreview)||void 0===i?void 0:i.attributes},y=0,w=Object.entries(h);case 11:if(!(y=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=s.call(c,"catchLoc"),f=s.call(c,"finallyLoc");if(l&&f){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),F(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var s=o.completion;if("throw"===s.type){var i=s.arg;F(o)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:E(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}function n(t,n){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=o(t))||n&&t&&"number"==typeof t.length){s&&(t=s);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return s(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?s(t,n):void 0}}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o=0;f--)(n=e[f])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2CredentialAckMessage=void 0;var c=(function(t){_r(_d[2])(o,t);var r,c,n=(r=o,c=e(),function(){var e,t=_r(_d[0])(r);if(c){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=n.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);c.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(c.type),r("design:type",Object)],c.prototype,"type",void 0),_e.V2CredentialAckMessage=c},1821,[14,11,9,7,8,1484,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(i=(c<3?n(i):c>3?n(t,r,i):n(t,r))||i);return c>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2CredentialProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V2CredentialProblemReportMessage=o},1822,[14,11,9,7,8,947,941]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,n,r){var c,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(o=(i<3?c(o):i>3?c(t,n,o):c(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2IssueCredentialMessage=void 0;var r=(function(t){_r(_d[2])(i,t);var n,r,c=(n=i,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,n;return _r(_d[3])(this,i),(t=c.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.credentialAttachments=e.credentialAttachments),t}return _r(_d[4])(i,[{key:"getCredentialAttachmentById",value:function(e){return this.credentialAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/issue-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),n("design:type",Array)],r.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),n("design:type",String)],r.prototype,"comment",void 0),t([(0,_r(_d[7]).Expose)({name:'credentials~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"credentialAttachments",void 0),_e.V2IssueCredentialMessage=r},1823,[14,11,9,7,8,948,941,626,1644,661,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(c=(o<3?i(c):o>3?i(t,r,c):i(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2OfferCredentialMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,i=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var i=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=i.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.credentialPreview=e.credentialPreview,t.offerAttachments=e.offerAttachments),t}return _r(_d[4])(o,[{key:"getOfferAttachmentById",value:function(e){return this.offerAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/offer-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),r("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[7]).Expose)({name:'credential_preview'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).V2CredentialPreview}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsInstance)(_r(_d[10]).V2CredentialPreview),r("design:type",_r(_d[10]).V2CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[7]).Expose)({name:'offers~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[11]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"offerAttachments",void 0),t([(0,_r(_d[7]).Expose)({name:'replacement_id'}),(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),r("design:type",String)],n.prototype,"replacementId",void 0),_e.V2OfferCredentialMessage=n},1824,[14,11,9,7,8,948,941,626,1644,661,1825,977]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,i,n){var o,s=arguments.length,c=s<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,i,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(r,i,c):o(r,i))||c);return s>3&&c&&Object.defineProperty(r,i,c),c},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialPreview=void 0;var i=(function(){function t(r){_r(_d[0])(this,t),this.type=t.type.messageTypeUri,r&&(this.attributes=r.attributes)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}],[{key:"fromRecord",value:function(r){return new t({attributes:Object.entries(r).map(function(t){var r=_r(_d[3])(t,2),i=r[0],n=r[1];return new(_r(_d[4]).CredentialPreviewAttribute)({name:i,mimeType:'text/plain',value:n})})})}}]),t})();i.type=(0,_r(_d[5]).parseMessageType)('https://didcomm.org/issue-credential/2.0/credential-preview'),t([(0,_r(_d[6]).Expose)({name:'@type'}),(0,_r(_d[5]).IsValidMessageType)(i.type),(0,_r(_d[6]).Transform)(function(t){var r=t.value;return(0,_r(_d[5]).replaceLegacyDidSovPrefix)(r)},{toClassOnly:!0}),r("design:type",Object)],i.prototype,"type",void 0),t([(0,_r(_d[6]).Type)(function(){return _r(_d[4]).CredentialPreviewAttribute}),(0,_r(_d[7]).ValidateNested)({each:!0}),(0,_r(_d[7]).IsInstance)(_r(_d[4]).CredentialPreviewAttribute,{each:!0}),r("design:type",Array)],i.prototype,"attributes",void 0),e.V2CredentialPreview=i},1825,[7,8,625,31,1548,941,626,661]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2ProposeCredentialMessage=void 0;var n=(function(t){_r(_d[2])(i,t);var r,n,o=(r=i,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e){var t,r;return _r(_d[3])(this,i),(t=o.call(this)).type=i.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.credentialPreview=e.credentialPreview,t.formats=e.formats,t.proposalAttachments=e.proposalAttachments,t.appendedAttachments=e.attachments),t}return _r(_d[4])(i,[{key:"getProposalAttachmentById",value:function(e){return this.proposalAttachments.find(function(t){return t.id==e})}}]),i})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/propose-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).Expose)({name:'credential_preview'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).V2CredentialPreview}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsInstance)(_r(_d[10]).V2CredentialPreview),r("design:type",_r(_d[10]).V2CredentialPreview)],n.prototype,"credentialPreview",void 0),t([(0,_r(_d[7]).Expose)({name:'filters~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[11]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"proposalAttachments",void 0),t([(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsString)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V2ProposeCredentialMessage=n},1826,[14,11,9,7,8,948,941,626,1644,661,1825,977]); +__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var i=e.length-1;i>=0;i--)(c=e[i])&&(s=(o<3?c(s):o>3?c(t,r,s):c(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2RequestCredentialMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t,r;return _r(_d[3])(this,o),(t=c.call(this)).type=o.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,t.formats=e.formats,t.requestAttachments=e.requestAttachments),t}return _r(_d[4])(o,[{key:"getRequestAttachmentById",value:function(e){return this.requestAttachments.find(function(t){return t.id==e})}}]),o})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/issue-credential/2.0/request-credential'),t([(0,_r(_d[7]).Type)(function(){return _r(_d[8]).CredentialFormatSpec}),(0,_r(_d[9]).ValidateNested)(),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).IsInstance)(_r(_d[8]).CredentialFormatSpec,{each:!0}),r("design:type",Array)],n.prototype,"formats",void 0),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).Expose)({name:'requests~attach'}),(0,_r(_d[7]).Type)(function(){return _r(_d[10]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[10]).Attachment,{each:!0}),r("design:type",Array)],n.prototype,"requestAttachments",void 0),t([(0,_r(_d[9]).IsOptional)(),(0,_r(_d[9]).IsString)(),r("design:type",String)],n.prototype,"comment",void 0),_e.V2RequestCredentialMessage=n},1827,[14,11,9,7,8,948,941,626,1644,661,977]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1828,[1829,1830,1831,1832,1833,1834]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new A(i||[]);return c(l,"_invoke",{value:P(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function L(){}var b={};f(b,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,l)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return T()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=G(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:F(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialAckHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2CredentialAckMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.credentialProtocol.processAck(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V2CredentialAckHandler=n},1829,[7,1821,8]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof w?n:w,u=Object.create(s.prototype),l=new G(i||[]);return c(u,"_invoke",{value:P(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,u,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(N([])));E&&E!==o&&i.call(E,u)&&(L=E);var _=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function k(t,n){function o(c,s,u,l){var f=v(t[c],t,s);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){h.value=t,u(h)},function(t){return o("throw",t,u,l)})}l(f.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return I()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=j(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),f=i.call(s,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:N(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2IssueCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2IssueCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processCredential(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToCredential(n.agentContext,{credentialRecord:o,credentialMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptCredential(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptCredential",value:function(n,o){var i,c,s,u,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.agentContext.config.logger.info("Automatically sending acknowledgement with autoAccept"),i=o.agentContext.dependencyManager.resolve(r(d[3]).DidCommMessageRepository),h.next=4,t().awrap(i.findAgentMessage(o.agentContext,{associatedRecordId:n.id,messageClass:r(d[4]).V2RequestCredentialMessage}));case 4:return c=h.sent,h.next=7,t().awrap(this.credentialProtocol.acceptCredential(o.agentContext,{credentialRecord:n}));case 7:if(s=h.sent,u=s.message,!o.connection){h.next=13;break}return h.abrupt("return",new(r(d[5]).OutboundMessageContext)(u,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 13:if(!((null===c||void 0===c?void 0:c.service)&&o.message.service)){h.next=17;break}return l=o.message.service,f=c.service,h.abrupt("return",new(r(d[5]).OutboundMessageContext)(u,{agentContext:o.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:f.resolvedDidCommService.recipientKeys[0]}}));case 17:o.agentContext.config.logger.error("Could not automatically create credential ack");case 18:case"end":return h.stop()}},null,this,null,Promise)}}]),n})();e.V2IssueCredentialHandler=n},1830,[7,1823,8,1532,1827,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new R(i||[]);return c(s,"_invoke",{value:j(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,s,function(){return this});var O=Object.getPrototypeOf,C=O&&O(O(G([])));C&&C!==o&&i.call(C,s)&&(L=C);var E=b.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function P(t,n){function o(c,u,s,l){var f=v(t[c],t,u);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){h.value=t,s(h)},function(t){return o("throw",t,s,l)})}l(f.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function j(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return K()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=k(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function k(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,k(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function G(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),f=i.call(u,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:G(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2OfferCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2OfferCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processOffer(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToOffer(n.agentContext,{credentialRecord:o,offerMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptOffer(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptOffer",value:function(n,o,i){var c,u,s,l,f,h,p,v,y;return t().async(function(w){for(;;)switch(w.prev=w.next){case 0:if(o.agentContext.config.logger.info("Automatically sending request with autoAccept"),!o.connection){w.next=9;break}return w.next=4,t().awrap(this.credentialProtocol.acceptOffer(o.agentContext,{credentialRecord:n}));case 4:return c=w.sent,u=c.message,w.abrupt("return",new(r(d[3]).OutboundMessageContext)(u,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 9:if(!(null===i||void 0===i?void 0:i.service)){w.next=25;break}return s=o.agentContext.dependencyManager.resolve(r(d[4]).RoutingService),w.next=13,t().awrap(s.getRouting(o.agentContext));case 13:return l=w.sent,f=new(r(d[5]).ServiceDecorator)({serviceEndpoint:l.endpoints[0],recipientKeys:[l.recipientKey.publicKeyBase58],routingKeys:l.routingKeys.map(function(t){return t.publicKeyBase58})}),h=i.service,w.next=18,t().awrap(this.credentialProtocol.acceptOffer(o.agentContext,{credentialRecord:n}));case 18:return p=w.sent,(v=p.message).service=f,y=o.agentContext.dependencyManager.resolve(r(d[6]).DidCommMessageRepository),w.next=24,t().awrap(y.saveOrUpdateAgentMessage(o.agentContext,{agentMessage:v,role:r(d[6]).DidCommMessageRole.Sender,associatedRecordId:n.id}));case 24:return w.abrupt("return",new(r(d[3]).OutboundMessageContext)(v,{agentContext:o.agentContext,serviceParams:{service:h.resolvedDidCommService,senderKey:f.resolvedDidCommService.recipientKeys[0]}}));case 25:o.agentContext.config.logger.error("Could not automatically create credential request");case 26:case"end":return w.stop()}},null,this,null,Promise)}}]),n})();e.V2OfferCredentialHandler=n},1831,[7,1824,8,622,1507,984,1532]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,s=Object.create(u.prototype),l=new S(i||[]);return c(s,"_invoke",{value:k(t,o,l)}),s}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};f(L,s,function(){return this});var E=Object.getPrototypeOf,P=E&&E(E(T([])));P&&P!==o&&i.call(P,s)&&(L=P);var _=b.prototype=w.prototype=Object.create(L);function O(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,s,l){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,s,l)},function(t){o("throw",t,s,l)}):n.resolve(p).then(function(t){f.value=t,s(f)},function(t){return o("throw",t,s,l)})}l(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return A()}for(o.method=c,o.arg=u;;){var s=o.delegate;if(s){var l=C(s,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function C(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,C(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function G(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(t){if(t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],s=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var l=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(l&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),G(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;G(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2ProposeCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2ProposeCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processProposal(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToProposal(n.agentContext,{credentialRecord:o,proposalMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptProposal(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(n,o){var i,c;return t().async(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.agentContext.config.logger.info("Automatically sending offer with autoAccept"),o.connection){u.next=4;break}return o.agentContext.config.logger.error('No connection on the messageContext, aborting auto accept'),u.abrupt("return");case 4:return u.next=6,t().awrap(this.credentialProtocol.acceptProposal(o.agentContext,{credentialRecord:n}));case 6:return i=u.sent,c=i.message,u.abrupt("return",new(r(d[3]).OutboundMessageContext)(c,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 9:case"end":return u.stop()}},null,this,null,Promise)}}]),n})();e.V2ProposeCredentialHandler=n},1832,[7,1826,8,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function h(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{h({},"")}catch(t){h=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var s=n&&n.prototype instanceof w?n:w,u=Object.create(s.prototype),l=new S(i||[]);return c(u,"_invoke",{value:P(t,o,l)}),u}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function x(){}function b(){}var L={};h(L,u,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(q([])));E&&E!==o&&i.call(E,u)&&(L=E);var O=b.prototype=w.prototype=Object.create(L);function _(t){["next","throw","return"].forEach(function(n){h(t,n,function(t){return this._invoke(n,t)})})}function R(t,n){function o(c,s,u,l){var f=v(t[c],t,s);if("throw"!==f.type){var h=f.arg,p=h.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,u,l)},function(t){o("throw",t,u,l)}):n.resolve(p).then(function(t){h.value=t,u(h)},function(t){return o("throw",t,u,l)})}l(f.arg)}var s;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return s=s?s.then(c,c):c()}})}function P(t,n,o){var i="suspendedStart";return function(c,s){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw s;return G()}for(o.method=c,o.arg=s;;){var u=o.delegate;if(u){var l=j(u,o);if(l){if(l===y)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var f=v(t,n,o);if("normal"===f.type){if(i=o.done?"completed":"suspendedYield",f.arg===y)continue;return{value:f.arg,done:o.done}}"throw"===f.type&&(i="completed",o.method="throw",o.arg=f.arg)}}}function j(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,j(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var s=c.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function M(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function q(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var s=this.tryEntries[c],u=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var l=i.call(s,"catchLoc"),f=i.call(s,"finallyLoc");if(l&&f){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),M(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;M(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:q(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2RequestCredentialHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2RequestCredentialMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){var o;return t().async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t().awrap(this.credentialProtocol.processRequest(n));case 2:return o=i.sent,i.next=5,t().awrap(this.credentialProtocol.shouldAutoRespondToRequest(n.agentContext,{credentialRecord:o,requestMessage:n.message}));case 5:if(!i.sent){i.next=10;break}return i.next=9,t().awrap(this.acceptRequest(o,n));case 9:return i.abrupt("return",i.sent);case 10:case"end":return i.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(n,o){var i,c,s,u,l,f;return t().async(function(h){for(;;)switch(h.prev=h.next){case 0:return o.agentContext.config.logger.info("Automatically sending credential with autoAccept"),i=o.agentContext.dependencyManager.resolve(r(d[3]).DidCommMessageRepository),h.next=4,t().awrap(i.findAgentMessage(o.agentContext,{associatedRecordId:n.id,messageClass:r(d[4]).V2OfferCredentialMessage}));case 4:return c=h.sent,h.next=7,t().awrap(this.credentialProtocol.acceptRequest(o.agentContext,{credentialRecord:n}));case 7:if(s=h.sent,u=s.message,!o.connection){h.next=13;break}return h.abrupt("return",new(r(d[5]).OutboundMessageContext)(u,{agentContext:o.agentContext,connection:o.connection,associatedRecord:n}));case 13:if(!(o.message.service&&(null===c||void 0===c?void 0:c.service))){h.next=20;break}return l=o.message.service,f=c.service,u.setService(f),h.next=19,t().awrap(i.saveOrUpdateAgentMessage(o.agentContext,{agentMessage:u,associatedRecordId:n.id,role:r(d[3]).DidCommMessageRole.Sender}));case 19:return h.abrupt("return",new(r(d[5]).OutboundMessageContext)(u,{agentContext:o.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:f.resolvedDidCommService.recipientKeys[0]}}));case 20:o.agentContext.config.logger.error("Could not automatically issue credential");case 21:case"end":return h.stop()}},null,this,null,Promise)}}]),n})();e.V2RequestCredentialHandler=n},1833,[7,1827,8,1532,1824,622]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(){t=function(){return n};var n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,n,o){t[n]=o.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,o){return t[n]=o}}function p(t,n,o,i){var u=n&&n.prototype instanceof w?n:w,l=Object.create(u.prototype),s=new F(i||[]);return c(l,"_invoke",{value:k(t,o,s)}),l}function v(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var y={};function w(){}function b(){}function x(){}var L={};f(L,l,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(T([])));_&&_!==o&&i.call(_,l)&&(L=_);var O=x.prototype=w.prototype=Object.create(L);function P(t){["next","throw","return"].forEach(function(n){f(t,n,function(t){return this._invoke(n,t)})})}function j(t,n){function o(c,u,l,s){var h=v(t[c],t,u);if("throw"!==h.type){var f=h.arg,p=f.value;return p&&"object"==typeof p&&i.call(p,"__await")?n.resolve(p.__await).then(function(t){o("next",t,l,s)},function(t){o("throw",t,l,s)}):n.resolve(p).then(function(t){f.value=t,l(f)},function(t){return o("throw",t,l,s)})}s(h.arg)}var u;c(this,"_invoke",{value:function(t,i){function c(){return new n(function(n,c){o(t,i,n,c)})}return u=u?u.then(c,c):c()}})}function k(t,n,o){var i="suspendedStart";return function(c,u){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===c)throw u;return R()}for(o.method=c,o.arg=u;;){var l=o.delegate;if(l){var s=G(l,o);if(s){if(s===y)continue;return s}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var h=v(t,n,o);if("normal"===h.type){if(i=o.done?"completed":"suspendedYield",h.arg===y)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(i="completed",o.method="throw",o.arg=h.arg)}}}function G(t,n){var o=n.method,i=t.iterator[o];if(void 0===i)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=void 0,G(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var c=v(i,t.iterator,n.arg);if("throw"===c.type)return n.method="throw",n.arg=c.arg,n.delegate=null,y;var u=c.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,y):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o=0;--c){var u=this.tryEntries[c],l=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),h=i.call(u,"finallyLoc");if(s&&h){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),S(o),y}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;S(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:T(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=void 0),y}},n}Object.defineProperty(e,"__esModule",{value:!0}),e.V2CredentialProblemReportHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V2CredentialProblemReportMessage],this.credentialProtocol=t}return r(d[2])(n,[{key:"handle",value:function(n){return t().async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t().awrap(this.credentialProtocol.processProblemReport(n));case 2:case"end":return o.stop()}},null,this,null,Promise)}}]),n})();e.V2CredentialProblemReportHandler=n},1834,[7,1822,8]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1835,[1836]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1836,[1639,1641]); +__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,o){if(t){if("string"==typeof t)return n(t,o);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,o):void 0}}function n(t,o){(null==o||o>t.length)&&(o=t.length);for(var n=0,i=new Array(o);n=0;u--)(n=t[u])&&(d=(o<3?n(d):o>3?n(i,r,d):n(i,r))||d);return o>3&&d&&Object.defineProperty(i,r,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeFilterTransformer=e.AttributeFilter=e.AttributeValue=void 0;var r=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.name=i.name,this.value=i.value)});t([(0,_r(_d[2]).IsString)(),i("design:type",String)],r.prototype,"name",void 0),t([(0,_r(_d[2]).IsString)(),i("design:type",String)],r.prototype,"value",void 0),e.AttributeValue=r;var s=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.schemaId=i.schemaId,this.schemaIssuerDid=i.schemaIssuerDid,this.schemaName=i.schemaName,this.schemaVersion=i.schemaVersion,this.issuerDid=i.issuerDid,this.credentialDefinitionId=i.credentialDefinitionId,this.attributeValue=i.attributeValue)});t([(0,_r(_d[3]).Expose)({name:'schema_id'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).schemaIdRegex),i("design:type",String)],s.prototype,"schemaId",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_issuer_did'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).indyDidRegex),i("design:type",String)],s.prototype,"schemaIssuerDid",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_name'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),i("design:type",String)],s.prototype,"schemaName",void 0),t([(0,_r(_d[3]).Expose)({name:'schema_version'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).schemaVersionRegex,{message:'Version must be X.X or X.X.X'}),i("design:type",String)],s.prototype,"schemaVersion",void 0),t([(0,_r(_d[3]).Expose)({name:'issuer_did'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).indyDidRegex),i("design:type",String)],s.prototype,"issuerDid",void 0),t([(0,_r(_d[3]).Expose)({name:'cred_def_id'}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).Matches)(_r(_d[4]).credDefIdRegex),i("design:type",String)],s.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[2]).IsOptional)(),(0,_r(_d[3]).Type)(function(){return r}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(r),i("design:type",r)],s.prototype,"attributeValue",void 0),e.AttributeFilter=s,e.AttributeFilterTransformer=function(){return(0,_r(_d[3]).Transform)(function(t){var i=t.value;switch(t.type){case _r(_d[3]).TransformationType.CLASS_TO_PLAIN:return i.attributeValue&&(i["attr::"+i.attributeValue.name+"::value"]=i.attributeValue.value,delete i.attributeValue),i;case _r(_d[3]).TransformationType.PLAIN_TO_CLASS:for(var s=0,n=Object.entries(i);s=0;d--)(i=t[d])&&(c=(s<3?i(c):s>3?i(n,o,c):i(n,o))||c);return s>3&&c&&Object.defineProperty(n,o,c),c},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofAttributeInfo=void 0;var o=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.name=n.name,this.names=n.names,this.nonRevoked=n.nonRevoked,this.restrictions=n.restrictions)});t([(0,_r(_d[2]).IsString)(),(0,_r(_d[2]).ValidateIf)(function(t){return void 0===t.names}),n("design:type",String)],o.prototype,"name",void 0),t([(0,_r(_d[2]).IsArray)(),(0,_r(_d[2]).IsString)({each:!0}),(0,_r(_d[2]).ValidateIf)(function(t){return void 0===t.name}),(0,_r(_d[2]).ArrayNotEmpty)(),n("design:type",Array)],o.prototype,"names",void 0),t([(0,_r(_d[3]).Expose)({name:'non_revoked'}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[2]).IsInstance)(_r(_d[4]).IndyRevocationInterval),(0,_r(_d[3]).Type)(function(){return _r(_d[4]).IndyRevocationInterval}),(0,_r(_d[2]).IsOptional)(),n("design:type",_r(_d[4]).IndyRevocationInterval)],o.prototype,"nonRevoked",void 0),t([(0,_r(_d[2]).ValidateNested)({each:!0}),(0,_r(_d[3]).Type)(function(){return _r(_d[5]).AttributeFilter}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[5]).AttributeFilter,{each:!0}),n("design:type",Array)],o.prototype,"restrictions",void 0),e.ProofAttributeInfo=o},1849,[8,7,661,626,1530,1847]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,o,i){var r,c=arguments.length,p=c<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(t,n,o,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(p=(c<3?r(p):c>3?r(n,o,p):r(n,o))||p);return c>3&&p&&Object.defineProperty(n,o,p),p},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofPredicateInfo=void 0;var o=_r(_d[0])(function t(n){_r(_d[1])(this,t),n&&(this.name=n.name,this.nonRevoked=n.nonRevoked,this.restrictions=n.restrictions,this.predicateType=n.predicateType,this.predicateValue=n.predicateValue)});t([(0,_r(_d[2]).IsString)(),n("design:type",String)],o.prototype,"name",void 0),t([(0,_r(_d[3]).Expose)({name:'p_type'}),(0,_r(_d[2]).IsEnum)(_r(_d[4]).PredicateType),n("design:type",String)],o.prototype,"predicateType",void 0),t([(0,_r(_d[3]).Expose)({name:'p_value'}),(0,_r(_d[2]).IsInt)(),n("design:type",Number)],o.prototype,"predicateValue",void 0),t([(0,_r(_d[3]).Expose)({name:'non_revoked'}),(0,_r(_d[2]).ValidateNested)(),(0,_r(_d[3]).Type)(function(){return _r(_d[5]).IndyRevocationInterval}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[5]).IndyRevocationInterval),n("design:type",_r(_d[5]).IndyRevocationInterval)],o.prototype,"nonRevoked",void 0),t([(0,_r(_d[2]).ValidateNested)({each:!0}),(0,_r(_d[3]).Type)(function(){return _r(_d[6]).AttributeFilter}),(0,_r(_d[2]).IsOptional)(),(0,_r(_d[2]).IsInstance)(_r(_d[6]).AttributeFilter,{each:!0}),(0,_r(_d[2]).IsArray)(),n("design:type",Array)],o.prototype,"restrictions",void 0),e.ProofPredicateInfo=o},1850,[8,7,661,626,1848,1530,1847]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,o){var i,s=arguments.length,d=s<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,n,r,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(d=(s<3?i(d):s>3?i(n,r,d):i(n,r))||d);return s>3&&d&&Object.defineProperty(n,r,d),d},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofRequest=void 0;var r=(function(){function t(n){_r(_d[0])(this,t),n&&(this.name=n.name,this.version=n.version,this.nonce=n.nonce,this.requestedAttributes=n.requestedAttributes?n.requestedAttributes instanceof Map?n.requestedAttributes:new Map(Object.entries(n.requestedAttributes)):new Map,this.requestedPredicates=n.requestedPredicates?n.requestedPredicates instanceof Map?n.requestedPredicates:new Map(Object.entries(n.requestedPredicates)):new Map,this.nonRevoked=n.nonRevoked,this.ver=n.ver)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"name",void 0),t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"version",void 0),t([(0,_r(_d[3]).IsString)(),n("design:type",String)],r.prototype,"nonce",void 0),t([(0,_r(_d[4]).Expose)({name:'requested_attributes'}),(0,_r(_d[5]).IsMap)(),(0,_r(_d[3]).ValidateNested)({each:!0}),(0,_r(_d[4]).Type)(function(){return _r(_d[6]).ProofAttributeInfo}),(0,_r(_d[3]).IsInstance)(_r(_d[6]).ProofAttributeInfo,{each:!0}),n("design:type",Map)],r.prototype,"requestedAttributes",void 0),t([(0,_r(_d[4]).Expose)({name:'requested_predicates'}),(0,_r(_d[5]).IsMap)(),(0,_r(_d[3]).ValidateNested)({each:!0}),(0,_r(_d[4]).Type)(function(){return _r(_d[7]).ProofPredicateInfo}),(0,_r(_d[3]).IsInstance)(_r(_d[7]).ProofPredicateInfo,{each:!0}),n("design:type",Map)],r.prototype,"requestedPredicates",void 0),t([(0,_r(_d[4]).Expose)({name:'non_revoked'}),(0,_r(_d[3]).ValidateNested)(),(0,_r(_d[4]).Type)(function(){return _r(_d[8]).IndyRevocationInterval}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsInstance)(_r(_d[8]).IndyRevocationInterval),n("design:type",_r(_d[8]).IndyRevocationInterval)],r.prototype,"nonRevoked",void 0),t([(0,_r(_d[3]).IsIn)(['1.0','2.0']),(0,_r(_d[3]).IsOptional)(),n("design:type",String)],r.prototype,"ver",void 0),e.ProofRequest=r},1851,[7,8,625,661,626,1072,1849,1850,1530]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,i,n){var r,d=arguments.length,l=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,o,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(l=(d<3?r(l):d>3?r(o,i,l):r(o,i))||l);return d>3&&l&&Object.defineProperty(o,i,l),l},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedAttribute=void 0;var i=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.credentialId=o.credentialId,this.timestamp=o.timestamp,this.revealed=o.revealed,this.credentialInfo=o.credentialInfo,this.revoked=o.revoked)});t([(0,_r(_d[2]).Expose)({name:'cred_id'}),(0,_r(_d[3]).IsString)(),o("design:type",String)],i.prototype,"credentialId",void 0),t([(0,_r(_d[2]).Expose)({name:'timestamp'}),(0,_r(_d[3]).IsInt)(),(0,_r(_d[3]).IsOptional)(),o("design:type",Number)],i.prototype,"timestamp",void 0),t([(0,_r(_d[3]).IsBoolean)(),o("design:type",Boolean)],i.prototype,"revealed",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),o("design:type",_r(_d[4]).IndyCredentialInfo)],i.prototype,"credentialInfo",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),o("design:type",Boolean)],i.prototype,"revoked",void 0),e.RequestedAttribute=i},1852,[8,7,626,661,1654]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,s,i){var d,n=arguments.length,o=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,i);else for(var u=t.length-1;u>=0;u--)(d=t[u])&&(o=(n<3?d(o):n>3?d(r,s,o):d(r,s))||o);return n>3&&o&&Object.defineProperty(r,s,o),o},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedCredentials=void 0;var s=(function(){function t(){var r,s,i,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_r(_d[0])(this,t),d&&(this.requestedAttributes=null!==(r=d.requestedAttributes)&&void 0!==r?r:{},this.requestedPredicates=null!==(s=d.requestedPredicates)&&void 0!==s?s:{},this.selfAttestedAttributes=null!==(i=d.selfAttestedAttributes)&&void 0!==i?i:{})}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}},{key:"getCredentialIdentifiers",value:function(){var t=new Set;return Object.values(this.requestedAttributes).forEach(function(r){t.add(r.credentialId)}),Object.values(this.requestedPredicates).forEach(function(r){t.add(r.credentialId)}),Array.from(t)}}]),t})();t([(0,_r(_d[3]).Expose)({name:'requested_attributes'}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[5]).RecordTransformer)(_r(_d[6]).RequestedAttribute),r("design:type",Object)],s.prototype,"requestedAttributes",void 0),t([(0,_r(_d[3]).Expose)({name:'requested_predicates'}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[5]).RecordTransformer)(_r(_d[7]).RequestedPredicate),r("design:type",Object)],s.prototype,"requestedPredicates",void 0),t([(0,_r(_d[3]).Expose)({name:'self_attested_attributes'}),r("design:type",Object)],s.prototype,"selfAttestedAttributes",void 0),e.RequestedCredentials=s},1853,[7,8,625,626,661,1072,1852,1854]); +__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,n){var d,r=arguments.length,c=r<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,o,n);else for(var s=t.length-1;s>=0;s--)(d=t[s])&&(c=(r<3?d(c):r>3?d(i,o,c):d(i,o))||c);return r>3&&c&&Object.defineProperty(i,o,c),c},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedPredicate=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.credentialId=i.credentialId,this.timestamp=i.timestamp,this.credentialInfo=i.credentialInfo,this.revoked=i.revoked)});t([(0,_r(_d[2]).Expose)({name:'cred_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],o.prototype,"credentialId",void 0),t([(0,_r(_d[2]).Expose)({name:'timestamp'}),(0,_r(_d[3]).IsInt)(),(0,_r(_d[3]).IsOptional)(),i("design:type",Number)],o.prototype,"timestamp",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),i("design:type",_r(_d[4]).IndyCredentialInfo)],o.prototype,"credentialInfo",void 0),t([(0,_r(_d[2]).Exclude)({toPlainOnly:!0}),i("design:type",Boolean)],o.prototype,"revoked",void 0),e.RequestedPredicate=o},1854,[8,7,626,661,1530]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RetrievedCredentials=void 0;var t=r(d[0])(function t(){var s,u,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(d[1])(this,t),this.requestedAttributes=null!==(s=n.requestedAttributes)&&void 0!==s?s:{},this.requestedPredicates=null!==(u=n.requestedPredicates)&&void 0!==u?u:{}});e.RetrievedCredentials=t},1855,[8,7]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1856,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1857,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1858,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1859,[1860,1861]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1858,[1859,1860]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1859,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1860,[]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1861,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1862,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V2_INDY_PRESENTATION=e.V2_INDY_PRESENTATION_REQUEST=e.V2_INDY_PRESENTATION_PROPOSAL=e.INDY_ATTACH_ID=void 0,e.INDY_ATTACH_ID='indy',e.V2_INDY_PRESENTATION_PROPOSAL='hlindy/proof-req@v2.0',e.V2_INDY_PRESENTATION_REQUEST='hlindy/proof-req@v2.0',e.V2_INDY_PRESENTATION='hlindy/proof@v2.0'},1863,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProofFormatService=void 0;var o=r(d[0])(function o(t,s){r(d[1])(this,o),this.didCommMessageRepository=t,this.agentConfig=s});e.ProofFormatService=o},1864,[8,7]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1865,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1866,[1867]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1867,[]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1868,[1869,1899]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1869,[1870,1873,1880,1885]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1870,[1871]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1PresentationProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).V1PresentationProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.V1PresentationProblemReportError=t},1871,[14,11,9,7,1872,8,945]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,f=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(f=(c<3?n(f):c>3?n(t,r,f):n(t,r))||f);return c>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1PresentationProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/present-proof/1.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V1PresentationProblemReportMessage=o},1872,[14,11,9,7,8,948,942]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1873,[1874,1876,1872,1878,1879]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var o,s=arguments.length,i=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(i=(s<3?o(i):s>3?o(t,r,i):o(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1ProposePresentationMessage=void 0;var n=(function(t){_r(_d[2])(s,t);var r,n,o=(r=s,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function s(e){var t,r;return _r(_d[3])(this,s),(t=o.call(this)).type=s.type.messageTypeUri,e&&(t.id=null!==(r=e.id)&&void 0!==r?r:t.generateId(),t.comment=e.comment,e.parentThreadId&&t.setThread({parentThreadId:e.parentThreadId}),t.presentationProposal=e.presentationProposal),t}return _r(_d[4])(s)})(_r(_d[5]).AgentMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/present-proof/1.0/propose-presentation'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),t([(0,_r(_d[7]).IsString)(),(0,_r(_d[7]).IsOptional)(),r("design:type",String)],n.prototype,"comment",void 0),t([(0,_r(_d[8]).Expose)({name:'presentation_proposal'}),(0,_r(_d[8]).Type)(function(){return _r(_d[9]).PresentationPreview}),(0,_r(_d[7]).ValidateNested)(),(0,_r(_d[7]).IsInstance)(_r(_d[9]).PresentationPreview),r("design:type",_r(_d[9]).PresentationPreview)],n.prototype,"presentationProposal",void 0),_e.V1ProposePresentationMessage=n},1874,[14,11,9,7,8,949,942,662,627,1875]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,n,r){var o,s=arguments.length,d=s<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,n,r);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(d=(s<3?o(d):s>3?o(i,n,d):o(i,n))||d);return s>3&&d&&Object.defineProperty(i,n,d),d},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.PresentationPreview=e.PresentationPreviewPredicate=e.PresentationPreviewAttribute=void 0;var n=(function(){function t(i){_r(_d[0])(this,t),i&&(this.name=i.name,this.credentialDefinitionId=i.credentialDefinitionId,this.mimeType=i.mimeType,this.value=i.value,this.referent=i.referent)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[3]).Expose)({name:'cred_def_id'}),(0,_r(_d[4]).IsString)(),(0,_r(_d[4]).ValidateIf)(function(t){return void 0!==t.referent}),(0,_r(_d[4]).Matches)(_r(_d[5]).credDefIdRegex),i("design:type",String)],n.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[3]).Expose)({name:'mime-type'}),(0,_r(_d[4]).IsOptional)(),(0,_r(_d[4]).IsMimeType)(),i("design:type",String)],n.prototype,"mimeType",void 0),t([(0,_r(_d[4]).IsString)(),(0,_r(_d[4]).IsOptional)(),i("design:type",String)],n.prototype,"value",void 0),t([(0,_r(_d[4]).IsString)(),(0,_r(_d[4]).IsOptional)(),i("design:type",String)],n.prototype,"referent",void 0),e.PresentationPreviewAttribute=n;var r=(function(){function t(i){_r(_d[0])(this,t),i&&(this.name=i.name,this.credentialDefinitionId=i.credentialDefinitionId,this.predicate=i.predicate,this.threshold=i.threshold)}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();t([(0,_r(_d[4]).IsString)(),i("design:type",String)],r.prototype,"name",void 0),t([(0,_r(_d[3]).Expose)({name:'cred_def_id'}),(0,_r(_d[4]).IsString)(),(0,_r(_d[4]).Matches)(_r(_d[5]).credDefIdRegex),i("design:type",String)],r.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[4]).IsEnum)(_r(_d[6]).PredicateType),i("design:type",String)],r.prototype,"predicate",void 0),t([(0,_r(_d[4]).IsInt)(),i("design:type",Number)],r.prototype,"threshold",void 0),e.PresentationPreviewPredicate=r;var o=(function(){function t(i){var n,r;_r(_d[0])(this,t),this.type=t.type.messageTypeUri,i&&(this.attributes=null!==(n=i.attributes)&&void 0!==n?n:[],this.predicates=null!==(r=i.predicates)&&void 0!==r?r:[])}return _r(_d[1])(t,[{key:"toJSON",value:function(){return _r(_d[2]).JsonTransformer.toJSON(this)}}]),t})();o.type=(0,_r(_d[7]).parseMessageType)('https://didcomm.org/present-proof/1.0/presentation-preview'),t([(0,_r(_d[3]).Expose)({name:'@type'}),(0,_r(_d[7]).IsValidMessageType)(o.type),(0,_r(_d[3]).Transform)(function(t){var i=t.value;return(0,_r(_d[7]).replaceLegacyDidSovPrefix)(i)},{toClassOnly:!0}),i("design:type",Object)],o.prototype,"type",void 0),t([(0,_r(_d[3]).Type)(function(){return n}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[4]).IsInstance)(n,{each:!0}),i("design:type",Array)],o.prototype,"attributes",void 0),t([(0,_r(_d[3]).Type)(function(){return r}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[4]).IsInstance)(r,{each:!0}),i("design:type",Array)],o.prototype,"predicates",void 0),e.PresentationPreview=o},1875,[7,8,626,627,662,993,1849,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var o,s=arguments.length,i=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(s<3?o(i):s>3?o(e,n,i):o(e,n))||i);return s>3&&i&&Object.defineProperty(e,n,i),i},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1RequestPresentationMessage=_e.INDY_PROOF_REQUEST_ATTACHMENT_ID=void 0,_e.INDY_PROOF_REQUEST_ATTACHMENT_ID='libindy-request-presentation-0';var r=(function(e){_r(_d[2])(s,e);var n,r,o=(n=s,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function s(t){var e,n;return _r(_d[3])(this,s),(e=o.call(this)).type=s.type.messageTypeUri,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:e.generateId(),e.comment=t.comment,e.requestPresentationAttachments=t.requestPresentationAttachments,t.parentThreadId&&e.setThread({parentThreadId:t.parentThreadId})),e}return _r(_d[4])(s,[{key:"indyProofRequest",get:function(){var t=this.indyProofRequestJson;return _r(_d[5]).JsonTransformer.fromJSON(t,_r(_d[6]).ProofRequest)}},{key:"indyProofRequestJson",get:function(){var t,e=this.requestPresentationAttachments.find(function(t){return t.id===_e.INDY_PROOF_REQUEST_ATTACHMENT_ID});return null!==(t=null===e||void 0===e?void 0:e.getDataAsJson())&&void 0!==t?t:null}},{key:"getAttachmentFormats",value:function(){var t=this.indyAttachment;if(!t)throw new(_r(_d[7]).AriesFrameworkError)("Could not find a request presentation attachment");return[{format:new(_r(_d[8]).ProofFormatSpec)({format:_r(_d[9]).V2_INDY_PRESENTATION_REQUEST}),attachment:t}]}},{key:"indyAttachment",get:function(){var t;return null!==(t=this.requestPresentationAttachments.find(function(t){return t.id===_e.INDY_PROOF_REQUEST_ATTACHMENT_ID}))&&void 0!==t?t:null}}]),s})(_r(_d[10]).AgentMessage);r.type=(0,_r(_d[11]).parseMessageType)('https://didcomm.org/present-proof/1.0/request-presentation'),e([(0,_r(_d[11]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),e([(0,_r(_d[12]).IsOptional)(),(0,_r(_d[12]).IsString)(),n("design:type",String)],r.prototype,"comment",void 0),e([(0,_r(_d[13]).Expose)({name:'request_presentations~attach'}),(0,_r(_d[13]).Type)(function(){return _r(_d[14]).Attachment}),(0,_r(_d[12]).IsArray)(),(0,_r(_d[12]).ValidateNested)({each:!0}),(0,_r(_d[12]).IsInstance)(_r(_d[14]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"requestPresentationAttachments",void 0),_e.V1RequestPresentationMessage=r},1876,[14,11,9,7,8,626,1852,613,1877,1863,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,i){var n,c=arguments.length,f=c<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,r,i);else for(var d=t.length-1;d>=0;d--)(n=t[d])&&(f=(c<3?n(f):c>3?n(o,r,f):n(o,r))||f);return c>3&&f&&Object.defineProperty(o,r,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofFormatSpec=void 0;var r=_r(_d[0])(function t(o){var r;_r(_d[1])(this,t),o&&(this.attachmentId=null!==(r=o.attachmentId)&&void 0!==r?r:(0,_r(_d[2]).uuid)(),this.format=o.format)});t([(0,_r(_d[3]).Expose)({name:'attach_id'}),(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"attachmentId",void 0),t([(0,_r(_d[4]).IsString)(),o("design:type",String)],r.prototype,"format",void 0),e.ProofFormatSpec=r},1877,[8,7,953,627,662]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1PresentationMessage=_e.INDY_PROOF_ATTACHMENT_ID=void 0,_e.INDY_PROOF_ATTACHMENT_ID='libindy-presentation-0';var r=(function(e){_r(_d[2])(i,e);var n,r,o=(n=i,r=t(),function(){var t,e=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function i(t){var e,n;return _r(_d[3])(this,i),(e=o.call(this)).type=i.type.messageTypeUri,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:e.generateId(),e.comment=t.comment,e.presentationAttachments=t.presentationAttachments,e.appendedAttachments=t.attachments),e}return _r(_d[4])(i,[{key:"getAttachmentFormats",value:function(){var t=this.indyAttachment;if(!t)throw new(_r(_d[5]).AriesFrameworkError)("Could not find a presentation attachment");return[{format:new(_r(_d[6]).ProofFormatSpec)({format:_r(_d[7]).V2_INDY_PRESENTATION}),attachment:t}]}},{key:"indyAttachment",get:function(){var t;return null!==(t=this.presentationAttachments.find(function(t){return t.id===_e.INDY_PROOF_ATTACHMENT_ID}))&&void 0!==t?t:null}},{key:"indyProof",get:function(){var t,e=this.indyAttachment;return null!==(t=null===e||void 0===e?void 0:e.getDataAsJson())&&void 0!==t?t:null}}]),i})(_r(_d[8]).AgentMessage);r.type=(0,_r(_d[9]).parseMessageType)('https://didcomm.org/present-proof/1.0/presentation'),e([(0,_r(_d[9]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),e([(0,_r(_d[10]).IsOptional)(),(0,_r(_d[10]).IsString)(),n("design:type",String)],r.prototype,"comment",void 0),e([(0,_r(_d[11]).Expose)({name:'presentations~attach'}),(0,_r(_d[11]).Type)(function(){return _r(_d[12]).Attachment}),(0,_r(_d[10]).IsArray)(),(0,_r(_d[10]).ValidateNested)({each:!0}),(0,_r(_d[10]).IsInstance)(_r(_d[12]).Attachment,{each:!0}),n("design:type",Array)],r.prototype,"presentationAttachments",void 0),_e.V1PresentationMessage=r},1878,[14,11,9,7,8,613,1877,1863,949,942,662,627,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,f=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(f=(o<3?c(f):o>3?c(t,r,f):c(t,r))||f);return o>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1PresentationAckMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=c.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/present-proof/1.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.V1PresentationAckMessage=n},1879,[14,11,9,7,8,1485,942]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1880,[1881,1884,1882,1883,1875]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,i){var n,f=arguments.length,d=f<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,o,r,i);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(d=(f<3?n(d):f>3?n(o,r,d):n(o,r))||d);return f>3&&d&&Object.defineProperty(o,r,d),d},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.PartialProof=void 0;var r=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.identifiers=o.identifiers)});t([(0,_r(_d[2]).Type)(function(){return _r(_d[3]).ProofIdentifier}),(0,_r(_d[4]).ValidateNested)({each:!0}),(0,_r(_d[4]).IsInstance)(_r(_d[3]).ProofIdentifier,{each:!0}),o("design:type",Array)],r.prototype,"identifiers",void 0),t([(0,_r(_d[2]).Expose)({name:'requested_proof'}),(0,_r(_d[2]).Type)(function(){return _r(_d[5]).RequestedProof}),(0,_r(_d[4]).ValidateNested)(),(0,_r(_d[4]).IsInstance)(_r(_d[5]).RequestedProof),o("design:type",_r(_d[5]).RequestedProof)],r.prototype,"requestedProof",void 0),e.PartialProof=r},1881,[8,7,627,1882,662,1883]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,i,o,r){var n,d=arguments.length,s=d<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,r);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(s=(d<3?n(s):d>3?n(i,o,s):n(i,o))||s);return d>3&&s&&Object.defineProperty(i,o,s),s},i=this&&this.__metadata||function(t,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofIdentifier=void 0;var o=_r(_d[0])(function t(i){_r(_d[1])(this,t),i&&(this.schemaId=i.schemaId,this.credentialDefinitionId=i.credentialDefinitionId,this.revocationRegistryId=i.revocationRegistryId,this.timestamp=i.timestamp)});t([(0,_r(_d[2]).Expose)({name:'schema_id'}),(0,_r(_d[3]).IsString)(),i("design:type",String)],o.prototype,"schemaId",void 0),t([(0,_r(_d[2]).Expose)({name:'cred_def_id'}),(0,_r(_d[3]).IsString)(),(0,_r(_d[3]).Matches)(_r(_d[4]).credDefIdRegex),i("design:type",String)],o.prototype,"credentialDefinitionId",void 0),t([(0,_r(_d[2]).Expose)({name:'rev_reg_id'}),(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsString)(),i("design:type",String)],o.prototype,"revocationRegistryId",void 0),t([(0,_r(_d[3]).IsOptional)(),(0,_r(_d[3]).IsNumber)(),i("design:type",Number)],o.prototype,"timestamp",void 0),e.ProofIdentifier=o},1882,[8,7,627,662,1009]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,s,o){var i,f=arguments.length,n=f<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,s,o);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(n=(f<3?i(n):f>3?i(r,s,n):i(r,s))||n);return f>3&&n&&Object.defineProperty(r,s,n),n},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.RequestedProof=void 0;var s=_r(_d[0])(function t(r){_r(_d[1])(this,t),this.selfAttestedAttributes=new Map,r&&(this.revealedAttributes=r.revealedAttributes,this.selfAttestedAttributes=r.selfAttestedAttributes)});t([(0,_r(_d[2]).Expose)({name:'revealed_attrs'}),(0,_r(_d[3]).ValidateNested)({each:!0}),(0,_r(_d[2]).Type)(function(){return _r(_d[4]).ProofAttribute}),(0,_r(_d[3]).IsInstance)(_r(_d[4]).ProofAttribute,{each:!0}),r("design:type",Map)],s.prototype,"revealedAttributes",void 0),t([(0,_r(_d[2]).Expose)({name:'self_attested_attrs'}),(0,_r(_d[3]).IsOptional)(),r("design:type",Map)],s.prototype,"selfAttestedAttributes",void 0),e.RequestedProof=s},1883,[8,7,627,662,1884]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,o,r,n){var i,d=arguments.length,f=d<3?o:null===n?n=Object.getOwnPropertyDescriptor(o,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(t,o,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(f=(d<3?i(f):d>3?i(o,r,f):i(o,r))||f);return d>3&&f&&Object.defineProperty(o,r,f),f},o=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofAttribute=void 0;var r=_r(_d[0])(function t(o){_r(_d[1])(this,t),o&&(this.subProofIndex=o.subProofIndex,this.raw=o.raw,this.encoded=o.encoded)});t([(0,_r(_d[2]).Expose)({name:'sub_proof_index'}),(0,_r(_d[3]).IsInt)(),o("design:type",Number)],r.prototype,"subProofIndex",void 0),t([(0,_r(_d[3]).IsString)(),o("design:type",String)],r.prototype,"raw",void 0),t([(0,_r(_d[3]).IsString)(),o("design:type",String)],r.prototype,"encoded",void 0),e.ProofAttribute=r},1884,[8,7,627,662]); -__d(function(g,_r,_i3,a,m,_e,_d2){"use strict";function e(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=t(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;d--)(s=e[d])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V1ProofService=void 0;var d=(function(t){_r(_d2[2])(i,t);var r,s,o=(r=i,s=n(),function(){var e,t=_r(_d2[0])(r);if(s){var n=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function i(e,t,r,n,s,d,c,u,l,p,f){var h;return _r(_d2[3])(this,i),(h=o.call(this,s,e,d,t,n,c)).version='v1',h.credentialRepository=u,h.ledgerService=r,h.wallet=n,h.indyProofFormatService=l,h.indyHolderService=p,h.indyRevocationService=f,h}return _r(_d2[4])(i,[{key:"createProposal",value:function(e,t){var r,n,s,o,i,d,c,u;return _r(_d2[5]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=t.connectionRecord,i=t.proofFormats,o.assertReady(),i.indy&&1===Object.keys(i).length){l.next=4;break}throw new(_r(_d2[6]).AriesFrameworkError)('Only indy proof format is supported for present proof protocol v1');case 4:return d=new(_r(_d2[7]).PresentationPreview)({attributes:null===(r=i.indy)||void 0===r?void 0:r.attributes,predicates:null===(n=i.indy)||void 0===n?void 0:n.predicates}),c=new(_r(_d2[8]).V1ProposePresentationMessage)({comment:null===t||void 0===t?void 0:t.comment,presentationProposal:d,parentThreadId:t.parentThreadId}),u=new(_r(_d2[9]).ProofExchangeRecord)({connectionId:o.id,threadId:c.threadId,parentThreadId:null===(s=c.thread)||void 0===s?void 0:s.parentThreadId,state:_r(_d2[10]).ProofState.ProposalSent,autoAcceptProof:null===t||void 0===t?void 0:t.autoAcceptProof,protocolVersion:'v1'}),l.next=9,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e,{agentMessage:c,associatedRecordId:u.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 9:return l.next=11,_r(_d2[5]).awrap(this.proofRepository.save(e,u));case 11:return this.emitStateChangedEvent(e,u,null),l.abrupt("return",{proofRecord:u,message:c});case 13:case"end":return l.stop()}},null,this,null,Promise)}},{key:"createProposalAsResponse",value:function(e,t){var r,n,s,o,i,d,c;return _r(_d2[5]).async(function(u){for(;;)switch(u.prev=u.next){case 0:if(s=t.proofRecord,o=t.proofFormats,i=t.comment,s.assertState(_r(_d2[10]).ProofState.RequestReceived),o.indy&&1===Object.keys(o).length){u.next=4;break}throw new(_r(_d2[6]).AriesFrameworkError)('Only indy proof format is supported for present proof protocol v1');case 4:return d=new(_r(_d2[7]).PresentationPreview)({attributes:null===(r=o.indy)||void 0===r?void 0:r.attributes,predicates:null===(n=o.indy)||void 0===n?void 0:n.predicates}),(c=new(_r(_d2[8]).V1ProposePresentationMessage)({comment:i,presentationProposal:d})).setThread({threadId:s.threadId}),u.next=9,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e,{agentMessage:c,associatedRecordId:s.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 9:return u.next=11,_r(_d2[5]).awrap(this.updateState(e,s,_r(_d2[10]).ProofState.ProposalSent));case 11:return u.abrupt("return",{proofRecord:s,message:c});case 12:case"end":return u.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(e){var t,r,n,s,o;return _r(_d2[5]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=e.message,s=e.connection,this.logger.debug("Processing presentation proposal with id "+n.id),i.prev=2,i.next=5,_r(_d2[5]).awrap(this.getByThreadAndConnectionId(e.agentContext,n.threadId,null===s||void 0===s?void 0:s.id));case 5:return r=i.sent,i.next=8,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e.agentContext,{associatedRecordId:r.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 8:return o=i.sent,r.assertState(_r(_d2[10]).ProofState.RequestSent),this.connectionService.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:n,previousSentMessage:null!==o&&void 0!==o?o:void 0}),i.next=13,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e.agentContext,{agentMessage:n,associatedRecordId:r.id,role:_r(_d2[11]).DidCommMessageRole.Receiver}));case 13:return i.next=15,_r(_d2[5]).awrap(this.updateState(e.agentContext,r,_r(_d2[10]).ProofState.ProposalReceived));case 15:i.next=26;break;case 17:return i.prev=17,i.t0=i.catch(2),r=new(_r(_d2[9]).ProofExchangeRecord)({connectionId:null===s||void 0===s?void 0:s.id,threadId:n.threadId,parentThreadId:null===(t=n.thread)||void 0===t?void 0:t.parentThreadId,state:_r(_d2[10]).ProofState.ProposalReceived,protocolVersion:'v1'}),this.connectionService.assertConnectionOrServiceDecorator(e),i.next=23,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e.agentContext,{agentMessage:n,associatedRecordId:r.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 23:return i.next=25,_r(_d2[5]).awrap(this.proofRepository.save(e.agentContext,r));case 25:this.emitStateChangedEvent(e.agentContext,r,null);case 26:return i.abrupt("return",r);case 27:case"end":return i.stop()}},null,this,[[2,17]],Promise)}},{key:"createRequestAsResponse",value:function(e,t){var r,n,s,o,i,d;return _r(_d2[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(r=t.proofRecord,n=t.comment,(s=t.proofFormats).indy){c.next=3;break}throw new(_r(_d2[6]).AriesFrameworkError)('Only indy proof format is supported for present proof protocol v1');case 3:return r.assertState(_r(_d2[10]).ProofState.ProposalReceived),c.next=6,_r(_d2[5]).awrap(this.indyProofFormatService.createRequest({id:_r(_d2[8]).INDY_PROOF_REQUEST_ATTACHMENT_ID,formats:s}));case 6:return o=c.sent,i=o.attachment,(d=new(_r(_d2[8]).V1RequestPresentationMessage)({comment:n,requestPresentationAttachments:[i]})).setThread({threadId:r.threadId}),c.next=12,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e,{agentMessage:d,associatedRecordId:r.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 12:return c.next=14,_r(_d2[5]).awrap(this.updateState(e,r,_r(_d2[10]).ProofState.RequestSent));case 14:return c.abrupt("return",{message:d,proofRecord:r});case 15:case"end":return c.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(e,t){var r,n,s,o,i,d;return _r(_d2[5]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.logger.debug("Creating proof request"),t.connectionRecord&&t.connectionRecord.assertReady(),t.proofFormats.indy&&1===Object.keys(t.proofFormats).length){c.next=4;break}throw new(_r(_d2[6]).AriesFrameworkError)('Only indy proof format is supported for present proof protocol v1');case 4:return c.next=6,_r(_d2[5]).awrap(this.indyProofFormatService.createRequest({id:_r(_d2[8]).INDY_PROOF_REQUEST_ATTACHMENT_ID,formats:t.proofFormats}));case 6:return s=c.sent,o=s.attachment,i=new(_r(_d2[8]).V1RequestPresentationMessage)({comment:null===t||void 0===t?void 0:t.comment,requestPresentationAttachments:[o],parentThreadId:t.parentThreadId}),d=new(_r(_d2[9]).ProofExchangeRecord)({connectionId:null===(r=t.connectionRecord)||void 0===r?void 0:r.id,threadId:i.threadId,parentThreadId:null===(n=i.thread)||void 0===n?void 0:n.parentThreadId,state:_r(_d2[10]).ProofState.RequestSent,autoAcceptProof:null===t||void 0===t?void 0:t.autoAcceptProof,protocolVersion:'v1'}),c.next=12,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e,{agentMessage:i,associatedRecordId:d.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 12:return c.next=14,_r(_d2[5]).awrap(this.proofRepository.save(e,d));case 14:return this.emitStateChangedEvent(e,d,null),c.abrupt("return",{message:i,proofRecord:d});case 16:case"end":return c.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(t){var r,n,s,o,i,d,c,u,l,p,f;return _r(_d2[5]).async(function(h){for(;;)switch(h.prev=h.next){case 0:s=t.message,o=t.connection,this.logger.debug("Processing presentation request with id "+s.id),i=s.getAttachmentFormats(),d=e(i);case 4:if((c=d()).done){h.next=10;break}return u=c.value,h.next=8,_r(_d2[5]).awrap(this.indyProofFormatService.processRequest({requestAttachment:u}));case 8:h.next=4;break;case 10:if(l=s.indyProofRequest){h.next=13;break}throw new(_r(_d2[12]).V1PresentationProblemReportError)("Missing required base64 or json encoded attachment data for presentation request with thread id "+s.threadId,{problemCode:_r(_d2[13]).PresentationProblemReportReason.Abandoned});case 13:return h.next=15,_r(_d2[5]).awrap((0,_r(_d2[14]).validateOrReject)(l));case 15:return(0,_r(_d2[15]).checkProofRequestForDuplicates)(l),this.logger.debug('received proof request',l),h.prev=17,h.next=20,_r(_d2[5]).awrap(this.getByThreadAndConnectionId(t.agentContext,s.threadId,null===o||void 0===o?void 0:o.id));case 20:return n=h.sent,h.next=23,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(t.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 23:return p=h.sent,h.next=26,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(t.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 26:return f=h.sent,n.assertState(_r(_d2[10]).ProofState.ProposalSent),this.connectionService.assertConnectionOrServiceDecorator(t,{previousReceivedMessage:null!==p&&void 0!==p?p:void 0,previousSentMessage:null!==f&&void 0!==f?f:void 0}),h.next=31,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(t.agentContext,{agentMessage:s,associatedRecordId:n.id,role:_r(_d2[11]).DidCommMessageRole.Receiver}));case 31:return h.next=33,_r(_d2[5]).awrap(this.updateState(t.agentContext,n,_r(_d2[10]).ProofState.RequestReceived));case 33:h.next=44;break;case 35:return h.prev=35,h.t0=h.catch(17),n=new(_r(_d2[9]).ProofExchangeRecord)({connectionId:null===o||void 0===o?void 0:o.id,threadId:s.threadId,parentThreadId:null===(r=s.thread)||void 0===r?void 0:r.parentThreadId,state:_r(_d2[10]).ProofState.RequestReceived,protocolVersion:'v1'}),h.next=40,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(t.agentContext,{agentMessage:s,associatedRecordId:n.id,role:_r(_d2[11]).DidCommMessageRole.Receiver}));case 40:return this.connectionService.assertConnectionOrServiceDecorator(t),h.next=43,_r(_d2[5]).awrap(this.proofRepository.save(t.agentContext,n));case 43:this.emitStateChangedEvent(t.agentContext,n,null);case 44:return h.abrupt("return",n);case 45:case"end":return h.stop()}},null,this,[[17,35]],Promise)}},{key:"createPresentation",value:function(e,t){var r,n,s,o,i,d,c,u,l,p,f,h,v,R,P;return _r(_d2[5]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(i=t.proofRecord,d=t.proofFormats,this.logger.debug("Creating presentation for proof record with id "+i.id),d.indy&&1===Object.keys(d).length){y.next=4;break}throw new(_r(_d2[6]).AriesFrameworkError)('Only indy proof format is supported for present proof protocol v1');case 4:return i.assertState(_r(_d2[10]).ProofState.RequestReceived),y.next=7,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:i.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 7:if(c=y.sent,u=null===c||void 0===c?void 0:c.indyAttachment){y.next=11;break}throw new(_r(_d2[12]).V1PresentationProblemReportError)("Missing required base64 or json encoded attachment data for presentation with thread id "+i.threadId,{problemCode:_r(_d2[13]).PresentationProblemReportReason.Abandoned});case 11:return l={id:_r(_d2[8]).INDY_PROOF_ATTACHMENT_ID,attachment:u,proofFormats:d},y.next=14,_r(_d2[5]).awrap(this.indyProofFormatService.createPresentation(e,l));case 14:return p=y.sent,f=null!==(r=u.getDataAsJson())&&void 0!==r?r:null,h=_r(_d2[16]).JsonTransformer.fromJSON(f,_r(_d2[17]).ProofRequest),v=new(_r(_d2[18]).RequestedCredentials)({requestedAttributes:null===(n=d.indy)||void 0===n?void 0:n.requestedAttributes,requestedPredicates:null===(s=d.indy)||void 0===s?void 0:s.requestedPredicates,selfAttestedAttributes:null===(o=d.indy)||void 0===o?void 0:o.selfAttestedAttributes}),y.next=20,_r(_d2[5]).awrap(this.getRequestedAttachmentsForRequestedCredentials(e,h,v));case 20:return R=y.sent,(P=new(_r(_d2[8]).V1PresentationMessage)({comment:null===t||void 0===t?void 0:t.comment,presentationAttachments:[p.attachment],attachments:R})).setThread({threadId:i.threadId}),y.next=25,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e,{agentMessage:P,associatedRecordId:i.id,role:_r(_d2[11]).DidCommMessageRole.Sender}));case 25:return y.next=27,_r(_d2[5]).awrap(this.updateState(e,i,_r(_d2[10]).ProofState.PresentationSent));case 27:return y.abrupt("return",{message:P,proofRecord:i});case 28:case"end":return y.stop()}},null,this,null,Promise)}},{key:"processPresentation",value:function(e){var t,r,n,s,o,i;return _r(_d2[5]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return t=e.message,r=e.connection,this.logger.debug("Processing presentation with id "+t.id),d.next=4,_r(_d2[5]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 4:return n=d.sent,d.next=7,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 7:return s=d.sent,d.next=10,_r(_d2[5]).awrap(this.didCommMessageRepository.getAgentMessage(e.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 10:return o=d.sent,n.assertState(_r(_d2[10]).ProofState.RequestSent),this.connectionService.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==s&&void 0!==s?s:void 0,previousSentMessage:null!==o&&void 0!==o?o:void 0}),d.prev=13,d.next=16,_r(_d2[5]).awrap(this.indyProofFormatService.processPresentation(e.agentContext,{record:n,formatAttachments:{presentation:t.getAttachmentFormats(),request:o.getAttachmentFormats()}}));case 16:return i=d.sent,d.next=19,_r(_d2[5]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(e.agentContext,{agentMessage:t,associatedRecordId:n.id,role:_r(_d2[11]).DidCommMessageRole.Receiver}));case 19:return n.isVerified=i,d.next=22,_r(_d2[5]).awrap(this.updateState(e.agentContext,n,_r(_d2[10]).ProofState.PresentationReceived));case 22:d.next=29;break;case 24:if(d.prev=24,d.t0=d.catch(13),!(d.t0 instanceof _r(_d2[6]).AriesFrameworkError)){d.next=28;break}throw new(_r(_d2[12]).V1PresentationProblemReportError)(d.t0.message,{problemCode:_r(_d2[13]).PresentationProblemReportReason.Abandoned});case 28:throw d.t0;case 29:return d.abrupt("return",n);case 30:case"end":return d.stop()}},null,this,[[13,24]],Promise)}},{key:"processAck",value:function(e){var t,r,n,s,o;return _r(_d2[5]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.message,r=e.connection,this.logger.debug("Processing presentation ack with id "+t.id),i.next=4,_r(_d2[5]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 4:return n=i.sent,i.next=7,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 7:return s=i.sent,i.next=10,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e.agentContext,{associatedRecordId:n.id,messageClass:_r(_d2[8]).V1PresentationMessage}));case 10:return o=i.sent,n.assertState(_r(_d2[10]).ProofState.PresentationSent),this.connectionService.assertConnectionOrServiceDecorator(e,{previousReceivedMessage:null!==s&&void 0!==s?s:void 0,previousSentMessage:null!==o&&void 0!==o?o:void 0}),i.next=15,_r(_d2[5]).awrap(this.updateState(e.agentContext,n,_r(_d2[10]).ProofState.Done));case 15:return i.abrupt("return",n);case 16:case"end":return i.stop()}},null,this,null,Promise)}},{key:"createProblemReport",value:function(e,t){var r;return _r(_d2[5]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new(_r(_d2[19]).V1PresentationProblemReportMessage)({description:{code:_r(_d2[13]).PresentationProblemReportReason.Abandoned,en:t.description}})).setThread({threadId:t.proofRecord.threadId,parentThreadId:t.proofRecord.parentThreadId}),e.abrupt("return",{proofRecord:t.proofRecord,message:r});case 3:case"end":return e.stop()}},null,null,null,Promise)}},{key:"processProblemReport",value:function(e){var t,r,n;return _r(_d2[5]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.message,r=e.assertReadyConnection(),this.logger.debug("Processing problem report with id "+t.id),s.next=5,_r(_d2[5]).awrap(this.getByThreadAndConnectionId(e.agentContext,t.threadId,null===r||void 0===r?void 0:r.id));case 5:return(n=s.sent).errorMessage=t.description.code+": "+t.description.en,s.next=9,_r(_d2[5]).awrap(this.updateState(e.agentContext,n,_r(_d2[10]).ProofState.Abandoned));case 9:return s.abrupt("return",n);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"createProofRequestFromProposal",value:function(e,t){var r,n,s,o;return _r(_d2[5]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=t.proofRecord.id,i.next=3,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:r,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 3:if(n=i.sent){i.next=6;break}throw new(_r(_d2[6]).AriesFrameworkError)("Proof record with id "+r+" is missing required presentation proposal");case 6:return i.next=8,_r(_d2[5]).awrap(this.wallet.generateNonce());case 8:return i.t0=i.sent,s={name:'Proof Request',version:'1.0',nonce:i.t0},i.next=12,_r(_d2[5]).awrap(this.indyProofFormatService.createReferentForProofRequest(s,n.presentationProposal));case 12:return o=i.sent,i.abrupt("return",{proofRecord:t.proofRecord,proofFormats:{indy:o}});case 14:case"end":return i.stop()}},null,this,null,Promise)}},{key:"getRequestedAttachmentsForRequestedCredentials",value:function(t,r,n){var s,o,i,d,c,u,l,p,f,h,v,R,P,y,w,x,b,M,C;return _r(_d2[5]).async(function(S){for(;;)switch(S.prev=S.next){case 0:i=[],d=new Set,c=[],u=0,l=Object.entries(n.requestedAttributes);case 4:if(!(ud.length)){p.next=25;break}return p.abrupt("return",!1);case 25:return c.forEach(function(e){if(!d.includes(e))return l.logger.debug("Attribute "+e+" was requested but wasn't proposed."),!1}),u=r.presentationProposal.predicates.map(function(e){return e.name}),s.requestedPredicates.forEach(function(e){if(!u.includes(e.name))return!1}),p.abrupt("return",!0);case 29:case"end":return p.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToRequest",value:function(e,t){var r,n,s,o,i,d,c,u,l=this;return _r(_d2[5]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t.id,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 2:if(r=p.sent){p.next=5;break}return p.abrupt("return",!1);case 5:return p.next=7,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 7:if(n=p.sent){p.next=10;break}throw new(_r(_d2[6]).AriesFrameworkError)("Expected to find a request message for ProofExchangeRecord with id "+t.id);case 10:if(s=n.indyProofRequest){p.next=13;break}throw new(_r(_d2[12]).V1PresentationProblemReportError)("Missing required base64 or json encoded attachment data for presentation request with thread id "+n.threadId,{problemCode:_r(_d2[13]).PresentationProblemReportReason.Abandoned});case 13:return p.next=15,_r(_d2[5]).awrap((0,_r(_d2[14]).validateOrReject)(s));case 15:if((0,_r(_d2[15]).checkProofRequestForDuplicates)(s),o=r.presentationProposal.attributes,i=s.requestedAttributes,d=o.map(function(e){return e.name}),c=[],Array.from(i.values()).forEach(function(e){e.name?c.push(e.name):e.names&&(c=c.concat(e.names))}),!(c.length>d.length)){p.next=24;break}return p.abrupt("return",!1);case 24:return c.forEach(function(e){if(!d.includes(e))return l.logger.debug("Attribute "+e+" was requested but wasn't proposed."),!1}),u=r.presentationProposal.predicates.map(function(e){return e.name}),s.requestedPredicates.forEach(function(e){if(!u.includes(e.name))return!1}),p.abrupt("return",!0);case 28:case"end":return p.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToPresentation",value:function(e,t){return _r(_d2[5]).async(function(e){for(;;)switch(e.prev=e.next){case 0:return this.logger.debug("Should auto respond to presentation for proof record id: "+t.id),e.abrupt("return",!0);case 2:case"end":return e.stop()}},null,this,null,Promise)}},{key:"getRequestedCredentialsForProofRequest",value:function(e,t){var r,n,s,o,i;return _r(_d2[5]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t.proofRecord.id,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 2:return n=d.sent,d.next=5,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t.proofRecord.id,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 5:if(s=d.sent,o=null===n||void 0===n?void 0:n.requestPresentationAttachments){d.next=9;break}throw new(_r(_d2[6]).AriesFrameworkError)('Could not find proof request');case 9:return d.next=11,_r(_d2[5]).awrap(this.indyProofFormatService.getRequestedCredentialsForProofRequest(e,{attachment:o[0],presentationProposal:null===s||void 0===s?void 0:s.presentationProposal,config:null!==(r=t.config)&&void 0!==r?r:void 0}));case 11:return i=d.sent,d.abrupt("return",i);case 13:case"end":return d.stop()}},null,this,null,Promise)}},{key:"autoSelectCredentialsForProofRequest",value:function(e){return _r(_d2[5]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d2[5]).awrap(this.indyProofFormatService.autoSelectCredentialsForProofRequest(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(e,t,r,n,s){e.registerMessageHandler(new(_r(_d2[24]).V1ProposePresentationHandler)(this,t,r,this.didCommMessageRepository)),e.registerMessageHandler(new(_r(_d2[24]).V1RequestPresentationHandler)(this,t,r,n,this.didCommMessageRepository,s)),e.registerMessageHandler(new(_r(_d2[24]).V1PresentationHandler)(this,t,r,this.didCommMessageRepository)),e.registerMessageHandler(new(_r(_d2[24]).V1PresentationAckHandler)(this)),e.registerMessageHandler(new(_r(_d2[24]).V1PresentationProblemReportHandler)(this))}},{key:"findRequestMessage",value:function(e,t){return _r(_d2[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[8]).V1RequestPresentationMessage}));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findPresentationMessage",value:function(e,t){return _r(_d2[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[8]).V1PresentationMessage}));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(e,t){return _r(_d2[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d2[5]).awrap(this.didCommMessageRepository.findAgentMessage(e,{associatedRecordId:t,messageClass:_r(_d2[8]).V1ProposePresentationMessage}));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getFormatData",value:function(e,t){var r,n,s,o,i,d,c,u,l,p;return _r(_d2[5]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,_r(_d2[5]).awrap(Promise.all([this.findProposalMessage(e,t),this.findRequestMessage(e,t),this.findPresentationMessage(e,t)]));case 2:if(s=f.sent,o=_r(_d2[20])(s,3),i=o[0],d=o[1],c=o[2],!i){f.next=15;break}return f.t1=_r(_d2[16]).JsonTransformer,f.next=11,_r(_d2[5]).awrap(this.rfc0592ProposalFromV1ProposeMessage(i));case 11:f.t2=f.sent,f.t0=f.t1.toJSON.call(f.t1,f.t2),f.next=16;break;case 15:f.t0=void 0;case 16:return u=f.t0,l=null!==(r=null===d||void 0===d?void 0:d.indyProofRequestJson)&&void 0!==r?r:void 0,p=null!==(n=null===c||void 0===c?void 0:c.indyProof)&&void 0!==n?n:void 0,f.abrupt("return",{proposal:i?{indy:u}:void 0,request:d?{indy:l}:void 0,presentation:c?{indy:p}:void 0});case 20:case"end":return f.stop()}},null,this,null,Promise)}},{key:"rfc0592ProposalFromV1ProposeMessage",value:function(e){var t,r;return _r(_d2[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d2[5]).awrap(this.wallet.generateNonce());case 2:if(n.t0=n.sent,n.t1=e.presentationProposal.attributes,n.t2=e.presentationProposal.predicates,t={name:'Proof Request',version:'1.0',nonce:n.t0,attributes:n.t1,predicates:n.t2}){n.next=8;break}throw new(_r(_d2[6]).AriesFrameworkError)('No Indy format found.');case 8:return r=new(_r(_d2[7]).PresentationPreview)({attributes:t.attributes,predicates:t.predicates}),n.abrupt("return",this.indyProofFormatService.createReferentForProofRequest(t,r));case 10:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(e){return _r(_d2[5]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.proofRepository.getAll(e));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getByThreadAndConnectionId",value:function(e,t,r){return _r(_d2[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.proofRepository.getSingleByQuery(e,{threadId:t,connectionId:r}));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createAck",value:function(e,t){var r,n;return _r(_d2[5]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=t.proofRecord,this.logger.debug("Creating presentation ack for proof record with id "+r.id),r.assertState(_r(_d2[10]).ProofState.PresentationReceived),n=new(_r(_d2[8]).V1PresentationAckMessage)({status:_r(_d2[25]).AckStatus.OK,threadId:r.threadId}),s.next=6,_r(_d2[5]).awrap(this.updateState(e,r,_r(_d2[10]).ProofState.Done));case 6:return s.abrupt("return",{message:n,proofRecord:r});case 7:case"end":return s.stop()}},null,this,null,Promise)}}]),i})(_r(_d2[26]).ProofService);d=s([(0,_r(_d2[27]).scoped)(_r(_d2[27]).Lifecycle.ContainerScoped),i(3,(0,_r(_d2[27]).inject)(_r(_d2[28]).InjectionSymbols.Wallet)),o("design:paramtypes",[_r(_d2[29]).ProofRepository,_r(_d2[30]).DidCommMessageRepository,_r(_d2[31]).IndyLedgerService,Object,_r(_d2[32]).AgentConfig,_r(_d2[33]).ConnectionService,_r(_d2[34]).EventEmitter,_r(_d2[35]).CredentialRepository,_r(_d2[36]).IndyProofFormatService,_r(_d2[37]).IndyHolderService,_r(_d2[37]).IndyRevocationService])],d),_e.V1ProofService=d},1885,[14,11,9,7,8,82,613,1875,1873,1624,1627,1533,1870,1841,662,993,626,1852,1854,1872,31,42,1655,661,1886,1486,1892,1022,1104,1623,1536,1362,1394,1426,1105,1531,1894,1895]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1886,[1887,1888,1889,1890,1891]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1PresentationAckHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).V1PresentationAckMessage],this.proofService=t}return r(d[2])(n,[{key:"handle",value:function(n){return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r(d[3]).awrap(this.proofService.processAck(n));case 2:case"end":return t.stop()}},null,this,null,Promise)}}]),n})();e.V1PresentationAckHandler=n},1887,[7,1873,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1PresentationHandler=void 0;var t=(function(){function t(n,s,o,c){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1PresentationMessage],this.proofService=n,this.agentConfig=s,this.proofResponseCoordinator=o,this.didCommMessageRepository=c}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[3]).awrap(this.proofService.processPresentation(t));case 2:return n=s.sent,s.next=5,r(d[3]).awrap(this.proofResponseCoordinator.shouldAutoRespondToPresentation(t.agentContext,n));case 5:if(!s.sent){s.next=10;break}return s.next=9,r(d[3]).awrap(this.createAck(n,t));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"createAck",value:function(t,n){var s,o,c,u,l,p,v;return r(d[3]).async(function(f){for(;;)switch(f.prev=f.next){case 0:return this.agentConfig.logger.info("Automatically sending acknowledgement with autoAccept on "+this.agentConfig.autoAcceptProofs),f.next=3,r(d[3]).awrap(this.proofService.createAck(n.agentContext,{proofRecord:t}));case 3:return s=f.sent,o=s.message,c=s.proofRecord,f.next=8,r(d[3]).awrap(this.didCommMessageRepository.findAgentMessage(n.agentContext,{associatedRecordId:c.id,messageClass:r(d[1]).V1RequestPresentationMessage}));case 8:return u=f.sent,f.next=11,r(d[3]).awrap(this.didCommMessageRepository.findAgentMessage(n.agentContext,{associatedRecordId:c.id,messageClass:r(d[1]).V1PresentationMessage}));case 11:if(l=f.sent,!n.connection){f.next=16;break}return f.abrupt("return",new(r(d[4]).OutboundMessageContext)(o,{agentContext:n.agentContext,connection:n.connection,associatedRecord:c}));case 16:if(!((null===u||void 0===u?void 0:u.service)&&(null===l||void 0===l?void 0:l.service))){f.next=20;break}return p=null===l||void 0===l?void 0:l.service,v=null===u||void 0===u?void 0:u.service,f.abrupt("return",new(r(d[4]).OutboundMessageContext)(o,{agentContext:n.agentContext,serviceParams:{service:p.resolvedDidCommService,senderKey:v.resolvedDidCommService.recipientKeys[0]}}));case 20:this.agentConfig.logger.error("Could not automatically create presentation ack");case 21:case"end":return f.stop()}},null,this,null,Promise)}}]),t})();e.V1PresentationHandler=t},1888,[7,1873,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1ProposePresentationHandler=void 0;var o=(function(){function o(t,n,s,c){r(d[0])(this,o),this.supportedMessages=[r(d[1]).V1ProposePresentationMessage],this.proofService=t,this.agentConfig=n,this.proofResponseCoordinator=s,this.didCommMessageRepository=c}return r(d[2])(o,[{key:"handle",value:function(o){var t;return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.proofService.processProposal(o));case 2:return t=n.sent,n.next=5,r(d[3]).awrap(this.proofResponseCoordinator.shouldAutoRespondToProposal(o.agentContext,t));case 5:if(!n.sent){n.next=10;break}return n.next=9,r(d[3]).awrap(this.createRequest(t,o));case 9:return n.abrupt("return",n.sent);case 10:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(o,t){var n,s,c,u,p,l,f,v,h,w,x,C;return r(d[3]).async(function(P){for(;;)switch(P.prev=P.next){case 0:if(this.agentConfig.logger.info("Automatically sending request with autoAccept on "+this.agentConfig.autoAcceptProofs),t.connection){P.next=4;break}throw this.agentConfig.logger.error('No connection on the messageContext'),new(r(d[4]).AriesFrameworkError)('No connection on the messageContext');case 4:return P.next=6,r(d[3]).awrap(this.didCommMessageRepository.getAgentMessage(t.agentContext,{associatedRecordId:o.id,messageClass:r(d[1]).V1ProposePresentationMessage}));case 6:if(P.sent){P.next=10;break}throw this.agentConfig.logger.error("Proof record with id "+o.id+" is missing required credential proposal"),new(r(d[4]).AriesFrameworkError)("Proof record with id "+o.id+" is missing required credential proposal");case 10:return P.next=12,r(d[3]).awrap(t.agentContext.wallet.generateNonce());case 12:return P.t0=P.sent,P.t1=o,v={name:'proof-request',version:'1.0',nonce:P.t0,proofRecord:P.t1},P.next=17,r(d[3]).awrap(this.proofService.createProofRequestFromProposal(t.agentContext,v));case 17:if(h=P.sent,(w=h.proofFormats)&&w.indy){P.next=22;break}throw this.agentConfig.logger.error("No Indy proof request was found"),new(r(d[4]).AriesFrameworkError)('No Indy proof request was found');case 22:return P.next=24,r(d[3]).awrap(this.proofService.createRequestAsResponse(t.agentContext,{proofFormats:{indy:{name:null===(n=w.indy)||void 0===n?void 0:n.name,version:null===(s=w.indy)||void 0===s?void 0:s.version,nonRevoked:null===(c=w.indy)||void 0===c?void 0:c.nonRevoked,requestedAttributes:null===(u=w.indy)||void 0===u?void 0:u.requestedAttributes,requestedPredicates:null===(p=w.indy)||void 0===p?void 0:p.requestedPredicates,ver:null===(l=w.indy)||void 0===l?void 0:l.ver,nonce:null===(f=w.indy)||void 0===f?void 0:f.nonce}},proofRecord:o,autoAcceptProof:o.autoAcceptProof,willConfirm:!0}));case 24:return x=P.sent,C=x.message,P.abrupt("return",new(r(d[5]).OutboundMessageContext)(C,{agentContext:t.agentContext,connection:t.connection,associatedRecord:o}));case 27:case"end":return P.stop()}},null,this,null,Promise)}}]),o})();e.V1ProposePresentationHandler=o},1889,[7,1873,8,82,612,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1RequestPresentationHandler=void 0;var t=(function(){function t(n,o,s,c,u,p){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1RequestPresentationMessage],this.proofService=n,this.agentConfig=o,this.proofResponseCoordinator=s,this.mediationRecipientService=c,this.didCommMessageRepository=u,this.routingService=p}return r(d[2])(t,[{key:"handle",value:function(t){var n;return r(d[3]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,r(d[3]).awrap(this.proofService.processRequest(t));case 2:return n=o.sent,o.next=5,r(d[3]).awrap(this.proofResponseCoordinator.shouldAutoRespondToRequest(t.agentContext,n));case 5:if(!o.sent){o.next=10;break}return o.next=9,r(d[3]).awrap(this.createPresentation(n,t));case 9:return o.abrupt("return",o.sent);case 10:case"end":return o.stop()}},null,this,null,Promise)}},{key:"createPresentation",value:function(t,n){var o,s,c,u,p,f,l,h,v,C;return r(d[3]).async(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,r(d[3]).awrap(this.didCommMessageRepository.getAgentMessage(n.agentContext,{associatedRecordId:t.id,messageClass:r(d[1]).V1RequestPresentationMessage}));case 2:if(o=x.sent,s=o.indyProofRequest,this.agentConfig.logger.info("Automatically sending presentation with autoAccept on "+this.agentConfig.autoAcceptProofs),s){x.next=8;break}throw this.agentConfig.logger.error('Proof request is undefined.'),new(r(d[4]).AriesFrameworkError)('No proof request found.');case 8:return x.next=10,r(d[3]).awrap(this.proofService.getRequestedCredentialsForProofRequest(n.agentContext,{proofRecord:t,config:{filterByPresentationPreview:!0}}));case 10:if((c=x.sent).proofFormats.indy){x.next=14;break}throw this.agentConfig.logger.error('No matching Indy credentials could be retrieved.'),new(r(d[4]).AriesFrameworkError)('No matching Indy credentials could be retrieved.');case 14:return u={proofFormats:c.proofFormats},x.next=17,r(d[3]).awrap(this.proofService.autoSelectCredentialsForProofRequest(u));case 17:return p=x.sent,x.next=20,r(d[3]).awrap(this.proofService.createPresentation(n.agentContext,{proofRecord:t,proofFormats:{indy:p.proofFormats.indy},willConfirm:!0}));case 20:if(f=x.sent,l=f.message,h=f.proofRecord,!n.connection){x.next=27;break}return x.abrupt("return",new(r(d[5]).OutboundMessageContext)(l,{agentContext:n.agentContext,connection:n.connection,associatedRecord:h}));case 27:if(!o.service){x.next=36;break}return x.next=30,r(d[3]).awrap(this.routingService.getRouting(n.agentContext));case 30:return v=x.sent,l.service=new(r(d[6]).ServiceDecorator)({serviceEndpoint:v.endpoints[0],recipientKeys:[v.recipientKey.publicKeyBase58],routingKeys:v.routingKeys.map(function(t){return t.publicKeyBase58})}),C=o.service,x.next=35,r(d[3]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(n.agentContext,{agentMessage:l,associatedRecordId:h.id,role:r(d[7]).DidCommMessageRole.Sender}));case 35:return x.abrupt("return",new(r(d[5]).OutboundMessageContext)(l,{agentContext:n.agentContext,serviceParams:{service:C.resolvedDidCommService,senderKey:l.service.resolvedDidCommService.recipientKeys[0]}}));case 36:this.agentConfig.logger.error("Could not automatically create presentation");case 37:case"end":return x.stop()}},null,this,null,Promise)}}]),t})();e.V1RequestPresentationHandler=t},1890,[7,1873,8,82,612,623,985,1533]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.V1PresentationProblemReportHandler=void 0;var t=(function(){function t(n){r(d[0])(this,t),this.supportedMessages=[r(d[1]).V1PresentationProblemReportMessage],this.proofService=n}return r(d[2])(t,[{key:"handle",value:function(t){return r(d[3]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r(d[3]).awrap(this.proofService.processProblemReport(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}}]),t})();e.V1PresentationProblemReportHandler=t},1891,[7,1872,8,82]); -__d(function(g,r,_i,a,m,e,d){"use strict";function t(t,o){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=n(t))||o&&t&&"number"==typeof t.length){s&&(t=s);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;i--)(a=e[i])&&(s=(o<3?a(s):o>3?a(t,r,s):a(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyProofFormatService=void 0;var s=(function(t){_r(_d2[2])(s,t);var r,a,o=(r=s,a=n(),function(){var e,t=_r(_d2[0])(r);if(a){var n=_r(_d2[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d2[1])(this,e)});function s(e,t,r,n,a,i,u){var c;return _r(_d2[3])(this,s),(c=o.call(this,i,e)).formatKey='indy',c.proofRecordType='indy',c.indyHolderService=t,c.indyVerifierService=r,c.indyRevocationService=n,c.ledgerService=a,c.wallet=u,c.logger=new(_r(_d2[4]).ConsoleLogger)(_r(_d2[4]).LogLevel.off),c}return _r(_d2[5])(s,[{key:"createRequestAttachment",value:function(e){var t=new(_r(_d2[6]).ProofFormatSpec)({attachmentId:e.id,format:_r(_d2[7]).V2_INDY_PRESENTATION_REQUEST}),r=new(_r(_d2[8]).ProofRequest)(e.proofRequestOptions);return(0,_r(_d2[9]).checkProofRequestForDuplicates)(r),{format:t,attachment:new(_r(_d2[10]).Attachment)({id:e.id,mimeType:'application/json',data:new(_r(_d2[10]).AttachmentData)({base64:_r(_d2[11]).JsonEncoder.toBase64(r)})})}}},{key:"createProofAttachment",value:function(e){var t,r,n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:return t=new(_r(_d2[6]).ProofFormatSpec)({attachmentId:e.id,format:_r(_d2[7]).V2_INDY_PRESENTATION_PROPOSAL}),r=new(_r(_d2[8]).ProofRequest)(e.proofProposalOptions),_r(_d2[13]).MessageValidator.validateSync(r),n=new(_r(_d2[10]).Attachment)({id:e.id,mimeType:'application/json',data:new(_r(_d2[10]).AttachmentData)({base64:_r(_d2[11]).JsonEncoder.toBase64(_r(_d2[14]).JsonTransformer.toJSON(r))})}),a.abrupt("return",{format:t,attachment:n});case 5:case"end":return a.stop()}},null,null,null,Promise)}},{key:"createProposal",value:function(e){var t,r;return _r(_d2[12]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.formats.indy){n.next=2;break}throw Error('Missing indy format to create proposal attachment format');case 2:return n.next=4,_r(_d2[12]).awrap(this.createRequestFromPreview(e.formats.indy));case 4:return r=n.sent,n.next=7,_r(_d2[12]).awrap(this.createProofAttachment({id:null!==(t=e.id)&&void 0!==t?t:(0,_r(_d2[15]).uuid)(),proofProposalOptions:r}));case 7:return n.abrupt("return",n.sent);case 8:case"end":return n.stop()}},null,this,null,Promise)}},{key:"processProposal",value:function(e){var t,r,n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e.proposal.attachment.getDataAsJson()){a.next=3;break}throw new(_r(_d2[16]).AriesFrameworkError)("Missing required base64 or json encoded attachment data for presentation proposal with thread id "+(null===(t=e.record)||void 0===t?void 0:t.threadId));case 3:n=_r(_d2[14]).JsonTransformer.fromJSON(r,_r(_d2[8]).ProofRequest),_r(_d2[13]).MessageValidator.validateSync(n);case 5:case"end":return a.stop()}},null,null,null,Promise)}},{key:"createRequestAsResponse",value:function(e){var t,r,n,a;return _r(_d2[12]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(e.proofFormats.indy){o.next=2;break}throw Error('Missing indy format to create proposal attachment format');case 2:return r=null!==(t=e.id)&&void 0!==t?t:(0,_r(_d2[15]).uuid)(),n=new(_r(_d2[6]).ProofFormatSpec)({attachmentId:r,format:_r(_d2[7]).V2_INDY_PRESENTATION_REQUEST}),a=new(_r(_d2[10]).Attachment)({id:r,mimeType:'application/json',data:new(_r(_d2[10]).AttachmentData)({base64:_r(_d2[11]).JsonEncoder.toBase64(e.proofFormats.indy)})}),o.abrupt("return",{format:n,attachment:a});case 6:case"end":return o.stop()}},null,null,null,Promise)}},{key:"createRequest",value:function(e){var t,r,n,a,o;return _r(_d2[12]).async(function(s){for(;;)switch(s.prev=s.next){case 0:if(e.formats.indy){s.next=2;break}throw new(_r(_d2[16]).AriesFrameworkError)('Missing indy format to create proof request attachment format.');case 2:if(o=e.formats.indy,s.t0=this,s.t1=null!==(t=e.id)&&void 0!==t?t:(0,_r(_d2[15]).uuid)(),s.t2=_r(_d2[17]),s.t3=_r(_d2[17])({},o),s.t4=null!==(r=o.name)&&void 0!==r?r:'proof-request',s.t5=null!==(n=o.version)&&void 0!==n?n:'1.0',null===(a=o.nonce)||void 0===a){s.next=13;break}s.t6=a,s.next=16;break;case 13:return s.next=15,_r(_d2[12]).awrap(this.wallet.generateNonce());case 15:s.t6=s.sent;case 16:return s.t7=s.t6,s.t8={name:s.t4,version:s.t5,nonce:s.t7},s.t9=(0,s.t2)(s.t3,s.t8),s.t10={id:s.t1,proofRequestOptions:s.t9},s.abrupt("return",s.t0.createRequestAttachment.call(s.t0,s.t10));case 21:case"end":return s.stop()}},null,this,null,Promise)}},{key:"processRequest",value:function(e){var t,r,n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e.requestAttachment.attachment.getDataAsJson(),n=_r(_d2[14]).JsonTransformer.fromJSON(r,_r(_d2[8]).ProofRequest)){a.next=4;break}throw new(_r(_d2[16]).AriesFrameworkError)("Missing required base64 or json encoded attachment data for presentation request with thread id "+(null===(t=e.record)||void 0===t?void 0:t.threadId));case 4:_r(_d2[13]).MessageValidator.validateSync(n),(0,_r(_d2[9]).checkProofRequestForDuplicates)(n);case 6:case"end":return a.stop()}},null,null,null,Promise)}},{key:"createPresentation",value:function(e,t){var r,n,a,o,s,i,u,c,l;return _r(_d2[12]).async(function(d){for(;;)switch(d.prev=d.next){case 0:if(a=null!==(r=t.attachment.getDataAsJson())&&void 0!==r?r:null,o=_r(_d2[14]).JsonTransformer.fromJSON(a,_r(_d2[8]).ProofRequest),t.proofFormats.indy){d.next=4;break}throw new(_r(_d2[16]).AriesFrameworkError)('Missing indy format to create proof presentation attachment format.');case 4:return s=new(_r(_d2[18]).RequestedCredentials)({requestedAttributes:t.proofFormats.indy.requestedAttributes,requestedPredicates:t.proofFormats.indy.requestedPredicates,selfAttestedAttributes:t.proofFormats.indy.selfAttestedAttributes}),d.next=7,_r(_d2[12]).awrap(this.createProof(e,o,s));case 7:return i=d.sent,u=null!==(n=t.id)&&void 0!==n?n:(0,_r(_d2[15]).uuid)(),c=new(_r(_d2[6]).ProofFormatSpec)({attachmentId:u,format:_r(_d2[7]).V2_INDY_PRESENTATION}),l=new(_r(_d2[10]).Attachment)({id:u,mimeType:'application/json',data:new(_r(_d2[10]).AttachmentData)({base64:_r(_d2[11]).JsonEncoder.toBase64(i)})}),d.abrupt("return",{format:c,attachment:l});case 12:case"end":return d.stop()}},null,this,null,Promise)}},{key:"processPresentation",value:function(e,t){var r,n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=t.formatAttachments.request.find(function(e){return e.format.format===_r(_d2[7]).V2_INDY_PRESENTATION_REQUEST})){a.next=3;break}throw new(_r(_d2[19]).MissingIndyProofMessageError)('Missing Indy Proof Request format while trying to process an Indy proof presentation.');case 3:if(n=t.formatAttachments.presentation.find(function(e){return e.format.format===_r(_d2[7]).V2_INDY_PRESENTATION})){a.next=6;break}throw new(_r(_d2[19]).MissingIndyProofMessageError)('Missing Indy Proof Presentation format while trying to process an Indy proof presentation.');case 6:return a.next=8,_r(_d2[12]).awrap(this.verifyProof(e,{request:r.attachment,proof:n.attachment}));case 8:return a.abrupt("return",a.sent);case 9:case"end":return a.stop()}},null,this,null,Promise)}},{key:"verifyProof",value:function(t,r){var n,a,o,s,i,u,c,l,d,f,p,v,h,y;return _r(_d2[12]).async(function(w){for(;;)switch(w.prev=w.next){case 0:if(r){w.next=2;break}throw new(_r(_d2[16]).AriesFrameworkError)('No Indy proof was provided.');case 2:o=null!==(n=r.request.getDataAsJson())&&void 0!==n?n:null,s=_r(_d2[14]).JsonTransformer.fromJSON(o,_r(_d2[8]).ProofRequest),i=null!==(a=r.proof.getDataAsJson())&&void 0!==a?a:null,u=_r(_d2[14]).JsonTransformer.fromJSON(i,_r(_d2[20]).PartialProof),c=e(u.requestedProof.revealedAttributes.entries());case 7:if((l=c()).done){w.next=16;break}if(d=l.value,f=_r(_d2[21])(d,2),p=f[0],v=f[1],_r(_d2[22]).IndyCredentialUtils.checkValidEncoding(v.raw,v.encoded)){w.next=14;break}throw new(_r(_d2[23]).InvalidEncodedValueError)("The encoded value for '"+p+"' is invalid. Expected '"+_r(_d2[22]).IndyCredentialUtils.encode(v.raw)+"'. Actual '"+v.encoded+"'");case 14:w.next=7;break;case 16:return w.next=18,_r(_d2[12]).awrap(this.getSchemas(t,new Set(u.identifiers.map(function(e){return e.schemaId}))));case 18:return h=w.sent,w.next=21,_r(_d2[12]).awrap(this.getCredentialDefinitions(t,new Set(u.identifiers.map(function(e){return e.credentialDefinitionId}))));case 21:return y=w.sent,w.next=24,_r(_d2[12]).awrap(this.indyVerifierService.verifyProof(t,{proofRequest:s.toJSON(),proof:i,schemas:h,credentialDefinitions:y}));case 24:return w.abrupt("return",w.sent);case 25:case"end":return w.stop()}},null,this,null,Promise)}},{key:"supportsFormat",value:function(e){return[_r(_d2[7]).V2_INDY_PRESENTATION_PROPOSAL,_r(_d2[7]).V2_INDY_PRESENTATION_REQUEST,_r(_d2[7]).V2_INDY_PRESENTATION].includes(e)}},{key:"proposalAndRequestAreEqual",value:function(e,t){var r,n,a=null===(r=e.find(function(e){return e.format.format===_r(_d2[7]).V2_INDY_PRESENTATION_PROPOSAL}))||void 0===r?void 0:r.attachment,o=null===(n=t.find(function(e){return e.format.format===_r(_d2[7]).V2_INDY_PRESENTATION_REQUEST}))||void 0===n?void 0:n.attachment;if(!a)throw new(_r(_d2[16]).AriesFrameworkError)('Proposal message has no attachment linked to it');if(!o)throw new(_r(_d2[16]).AriesFrameworkError)('Request message has no attachment linked to it');var s=a.getDataAsJson(),i=_r(_d2[14]).JsonTransformer.fromJSON(s,_r(_d2[8]).ProofRequest),u=o.getDataAsJson(),c=_r(_d2[14]).JsonTransformer.fromJSON(u,_r(_d2[8]).ProofRequest);return!(!(0,_r(_d2[9]).deepEquality)(i.requestedAttributes,c.requestedAttributes)||!(0,_r(_d2[9]).deepEquality)(i.requestedPredicates,c.requestedPredicates))}},{key:"getCredentialDefinitions",value:function(t,r){var n,a,o,s,i;return _r(_d2[12]).async(function(u){for(;;)switch(u.prev=u.next){case 0:n={},a=e(r);case 2:if((o=a()).done){u.next=10;break}return s=o.value,u.next=6,_r(_d2[12]).awrap(this.ledgerService.getCredentialDefinition(t,s));case 6:i=u.sent,n[s]=i;case 8:u.next=2;break;case 10:return u.abrupt("return",n);case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"getRequestedCredentialsForProofRequest",value:function(t,r){var n,a,o,s,i,u,c,l,d,f,p,v,h,y,w,P,b,R,q,I,A,x,k=this;return _r(_d2[12]).async(function(S){for(;;)switch(S.prev=S.next){case 0:s=new(_r(_d2[24]).RetrievedCredentials)({}),i=r.attachment,u=r.presentationProposal,c=null===(n=r.config)||void 0===n?void 0:n.filterByNonRevocationRequirements,l=null!==(a=i.getDataAsJson())&&void 0!==a?a:null,d=_r(_d2[14]).JsonTransformer.fromJSON(l,_r(_d2[8]).ProofRequest),f=function(e,r){var n,a,i;return _r(_d2[12]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=[],l.next=3,_r(_d2[12]).awrap(k.getCredentialsForProofRequest(t,d,e));case 3:return 1!==(a=l.sent).length&&u?(i=null!==(o=r.names)&&void 0!==o?o:[r.name],n=a.filter(function(e){var t=e.credentialInfo,r=t.attributes,n=t.credentialDefinitionId;return i.every(function(e){return u.attributes.find(function(t){return t.name===e&&t.credentialDefinitionId===n&&(!t.value||t.value===r[e])})})})):n=a,l.next=7,_r(_d2[12]).awrap(Promise.all(n.map(function(e){var n,a,o;return _r(_d2[12]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d2[12]).awrap(k.getRevocationStatusForRequestedItem(t,{proofRequest:d,requestedItem:r,credential:e}));case 2:return n=s.sent,a=n.revoked,o=n.deltaTimestamp,s.abrupt("return",new(_r(_d2[25]).RequestedAttribute)({credentialId:e.credentialInfo.referent,revealed:!0,credentialInfo:e.credentialInfo,timestamp:o,revoked:a}));case 6:case"end":return s.stop()}},null,null,null,Promise)})));case 7:s.requestedAttributes[e]=l.sent,c&&(s.requestedAttributes[e]=s.requestedAttributes[e].filter(function(e){return!e.revoked}));case 9:case"end":return l.stop()}},null,null,null,Promise)},p=e(d.requestedAttributes.entries());case 7:if((v=p()).done){S.next=16;break}return h=v.value,y=_r(_d2[21])(h,2),w=y[0],P=y[1],S.next=14,_r(_d2[12]).awrap(f(w,P));case 14:S.next=7;break;case 16:b=function(e,r){var n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,_r(_d2[12]).awrap(k.getCredentialsForProofRequest(t,d,e));case 2:return n=a.sent,a.next=5,_r(_d2[12]).awrap(Promise.all(n.map(function(e){var n,a,o;return _r(_d2[12]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d2[12]).awrap(k.getRevocationStatusForRequestedItem(t,{proofRequest:d,requestedItem:r,credential:e}));case 2:return n=s.sent,a=n.revoked,o=n.deltaTimestamp,s.abrupt("return",new(_r(_d2[25]).RequestedPredicate)({credentialId:e.credentialInfo.referent,credentialInfo:e.credentialInfo,timestamp:o,revoked:a}));case 6:case"end":return s.stop()}},null,null,null,Promise)})));case 5:s.requestedPredicates[e]=a.sent,c&&(s.requestedPredicates[e]=s.requestedPredicates[e].filter(function(e){return!e.revoked}));case 7:case"end":return a.stop()}},null,null,null,Promise)},R=e(d.requestedPredicates.entries());case 18:if((q=R()).done){S.next=27;break}return I=q.value,A=_r(_d2[21])(I,2),w=A[0],x=A[1],S.next=25,_r(_d2[12]).awrap(b(w,x));case 25:S.next=18;break;case 27:return S.abrupt("return",{proofFormats:{indy:s}});case 28:case"end":return S.stop()}},null,null,null,Promise)}},{key:"getCredentialsForProofRequest",value:function(e,t,r){var n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,_r(_d2[12]).awrap(this.indyHolderService.getCredentialsForProofRequest(e,{proofRequest:t.toJSON(),attributeReferent:r}));case 2:return n=a.sent,a.abrupt("return",_r(_d2[14]).JsonTransformer.fromJSON(n,_r(_d2[26]).IndyCredential));case 4:case"end":return a.stop()}},null,this,null,Promise)}},{key:"autoSelectCredentialsForProofRequest",value:function(e){var t,r,n;return _r(_d2[12]).async(function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.proofFormats,r=t.indy){a.next=4;break}throw new(_r(_d2[16]).AriesFrameworkError)('No indy options provided');case 4:return n=new(_r(_d2[18]).RequestedCredentials)({}),Object.keys(r.requestedAttributes).forEach(function(e){var t=r.requestedAttributes[e];if(0===t.length)throw new(_r(_d2[16]).AriesFrameworkError)('Unable to automatically select requested attributes.');n.requestedAttributes[e]=t[0]}),Object.keys(r.requestedPredicates).forEach(function(e){if(0===r.requestedPredicates[e].length)throw new(_r(_d2[16]).AriesFrameworkError)('Unable to automatically select requested predicates.');n.requestedPredicates[e]=r.requestedPredicates[e][0]}),a.abrupt("return",{proofFormats:{indy:n}});case 8:case"end":return a.stop()}},null,null,null,Promise)}},{key:"getSchemas",value:function(t,r){var n,a,o,s,i;return _r(_d2[12]).async(function(u){for(;;)switch(u.prev=u.next){case 0:n={},a=e(r);case 2:if((o=a()).done){u.next=10;break}return s=o.value,u.next=6,_r(_d2[12]).awrap(this.ledgerService.getSchema(t,s));case 6:i=u.sent,n[s]=i;case 8:u.next=2;break;case 10:return u.abrupt("return",n);case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"createProof",value:function(e,t,r){var n,a,o,s=this;return _r(_d2[12]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,_r(_d2[12]).awrap(Promise.all([].concat(_r(_d2[27])(Object.values(r.requestedAttributes)),_r(_d2[27])(Object.values(r.requestedPredicates))).map(function(t){var r;return _r(_d2[12]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.credentialInfo){n.next=2;break}return n.abrupt("return",t.credentialInfo);case 2:return n.next=4,_r(_d2[12]).awrap(s.indyHolderService.getCredential(e,t.credentialId));case 4:return r=n.sent,n.abrupt("return",_r(_d2[14]).JsonTransformer.fromJSON(r,_r(_d2[26]).IndyCredentialInfo));case 6:case"end":return n.stop()}},null,null,null,Promise)})));case 2:return n=i.sent,i.next=5,_r(_d2[12]).awrap(this.getSchemas(e,new Set(n.map(function(e){return e.schemaId}))));case 5:return a=i.sent,i.next=8,_r(_d2[12]).awrap(this.getCredentialDefinitions(e,new Set(n.map(function(e){return e.credentialDefinitionId}))));case 8:return o=i.sent,i.next=11,_r(_d2[12]).awrap(this.indyHolderService.createProof(e,{proofRequest:t.toJSON(),requestedCredentials:r,schemas:a,credentialDefinitions:o}));case 11:return i.abrupt("return",i.sent);case 12:case"end":return i.stop()}},null,this,null,Promise)}},{key:"createProofRequestFromProposal",value:function(e){var t,r;return _r(_d2[12]).async(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.presentationAttachment.getDataAsJson(),r=_r(_d2[14]).JsonTransformer.fromJSON(t,_r(_d2[8]).ProofRequest)){n.next=4;break}throw new(_r(_d2[16]).AriesFrameworkError)("Missing required base64 or json encoded attachment data for presentation request.");case 4:return _r(_d2[13]).MessageValidator.validateSync(r),(0,_r(_d2[9]).checkProofRequestForDuplicates)(r),n.abrupt("return",{indy:r});case 7:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getRevocationStatusForRequestedItem",value:function(e,t){var r,n,a,o,s,i,u,c;return _r(_d2[12]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(r=t.proofRequest,n=t.requestedItem,a=t.credential,s=null!==(o=n.nonRevoked)&&void 0!==o?o:r.nonRevoked,i=a.credentialInfo.credentialRevocationId,u=a.credentialInfo.revocationRegistryId,!(s&&i&&u)){l.next=10;break}return this.logger.trace("Presentation is requesting proof of non revocation, getting revocation status for credential",{requestNonRevoked:s,credentialRevocationId:i,revocationRegistryId:u}),l.next=8,_r(_d2[12]).awrap(this.indyRevocationService.getRevocationStatus(e,i,u,s));case 8:return c=l.sent,l.abrupt("return",c);case 10:return l.abrupt("return",{revoked:void 0,deltaTimestamp:void 0});case 11:case"end":return l.stop()}},null,this,null,Promise)}},{key:"createRequestFromPreview",value:function(e){var t,r;return _r(_d2[12]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=new(_r(_d2[20]).PresentationPreview)({attributes:e.attributes,predicates:e.predicates}),n.next=3,_r(_d2[12]).awrap(this.createReferentForProofRequest(e,t));case 3:return r=n.sent,n.abrupt("return",r);case 5:case"end":return n.stop()}},null,this,null,Promise)}},{key:"createReferentForProofRequest",value:function(t,r){var n,a,o,s,i,u,c,l,d,f,p,v,h,y,w,P,b,R,q,I,A,x;return _r(_d2[12]).async(function(k){for(;;)switch(k.prev=k.next){case 0:if(k.t0=_r(_d2[8]).ProofRequest,k.t1=null!==(n=t.name)&&void 0!==n?n:'proof-request',k.t2=null!==(a=t.version)&&void 0!==a?a:'1.0',null===(o=t.nonce)||void 0===o){k.next=7;break}k.t3=o,k.next=10;break;case 7:return k.next=9,_r(_d2[12]).awrap(this.wallet.generateNonce());case 9:k.t3=k.sent;case 10:for(k.t4=k.t3,k.t5={name:k.t1,version:k.t2,nonce:k.t4},s=new k.t0(k.t5),i={},u=e(r.attributes);!(c=u()).done;)(l=c.value).referent||(l.referent=(0,_r(_d2[15]).uuid)()),(d=i[l.referent])?d.push(l):i[l.referent]=[l];for(f=0,p=Object.entries(i);f1?w.map(function(e){return e.name}):void 0,R=new(_r(_d2[25]).ProofAttributeInfo)({name:P,names:b,restrictions:[new(_r(_d2[25]).AttributeFilter)({credentialDefinitionId:w[0].credentialDefinitionId})]}),s.requestedAttributes.set(y,R);for(q=e(r.predicates);!(I=q()).done;)A=I.value,x=new(_r(_d2[25]).ProofPredicateInfo)({name:A.name,predicateType:A.predicate,predicateValue:A.threshold,restrictions:[new(_r(_d2[25]).AttributeFilter)({credentialDefinitionId:A.credentialDefinitionId})]}),s.requestedPredicates.set((0,_r(_d2[15]).uuid)(),x);return k.abrupt("return",s);case 18:case"end":return k.stop()}},null,this,null,Promise)}}]),s})(_r(_d2[28]).ProofFormatService);s=a([(0,_r(_d2[29]).scoped)(_r(_d2[29]).Lifecycle.ContainerScoped),o("design:paramtypes",[_r(_d2[30]).AgentConfig,_r(_d2[31]).IndyHolderService,_r(_d2[31]).IndyVerifierService,_r(_d2[31]).IndyRevocationService,_r(_d2[32]).IndyLedgerService,_r(_d2[33]).DidCommMessageRepository,_r(_d2[34]).IndyWallet])],s),_e.IndyProofFormatService=s},1894,[14,11,9,7,1395,8,1877,1863,1852,993,978,979,82,661,626,953,613,4,1854,1846,1880,31,1672,1845,1856,1847,1531,42,1864,1022,1394,1895,1360,1536,1367]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1895,[1896,1898]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1896,[1670,1365,1897,1374,1671]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";function t(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=r(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function r(t,r){if(t){if("string"==typeof t)return n(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,r):void 0}}function n(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,i=new Array(r);n=0;u--)(o=t[u])&&(s=(c<3?o(s):c>3?o(r,n,s):o(r,n))||s);return c>3&&s&&Object.defineProperty(r,n,s),s},o=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},c=this&&this.__param||function(t,r){return function(n,i){r(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IndyVerifierService=void 0;var s=(function(){function r(t,n){_r(_d[0])(this,r),this.indy=n.indy,this.ledgerService=t}return _r(_d[1])(r,[{key:"verifyProof",value:function(t,r){var n,i,o,c,s,u,f;return _r(_d[2]).async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=r.proofRequest,i=r.proof,o=r.schemas,c=r.credentialDefinitions,l.prev=1,l.next=4,_r(_d[2]).awrap(this.getRevocationRegistries(t,i));case 4:return s=l.sent,u=s.revocationRegistryDefinitions,f=s.revocationRegistries,l.next=9,_r(_d[2]).awrap(this.indy.verifierVerifyProof(n,i,o,c,u,f));case 9:return l.abrupt("return",l.sent);case 12:throw l.prev=12,l.t0=l.catch(1),(0,_r(_d[3]).isIndyError)(l.t0)?new(_r(_d[4]).IndySdkError)(l.t0):l.t0;case 15:case"end":return l.stop()}},null,this,[[1,12]],Promise)}},{key:"getRevocationRegistries",value:function(r,n){var i,o,c,s,u,f,l,d,v,y,p,h;return _r(_d[2]).async(function(b){for(;;)switch(b.prev=b.next){case 0:o={},c=Object.create(null),s=t(n.identifiers);case 3:if((u=s()).done){b.next=22;break}if(f=u.value,l=f.rev_reg_id,d=f.timestamp,!l||o[l]){b.next=13;break}return b.next=10,_r(_d[2]).awrap(this.ledgerService.getRevocationRegistryDefinition(r,l));case 10:v=b.sent,y=v.revocationRegistryDefinition,o[l]=y;case 13:if(!l||!d||(null===(i=c[l])||void 0===i?void 0:i[d])){b.next=20;break}return c[l]||(c[l]=Object.create(null)),b.next=17,_r(_d[2]).awrap(this.ledgerService.getRevocationRegistry(r,l,d));case 17:p=b.sent,h=p.revocationRegistry,c[l][d]=h;case 20:b.next=3;break;case 22:return b.abrupt("return",{revocationRegistryDefinitions:o,revocationRegistries:c});case 23:case"end":return b.stop()}},null,this,null,Promise)}}]),r})();s=i([(0,_r(_d[5]).injectable)(),c(1,(0,_r(_d[5]).inject)(_r(_d[6]).InjectionSymbols.AgentDependencies)),o("design:paramtypes",[_r(_d[7]).IndyLedgerService,Object])],s),e.IndyVerifierService=s},1897,[7,8,82,1363,612,1020,1104,1362]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndyModule=void 0;var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"register",value:function(n){n.registerSingleton(r(d[2]).IndyIssuerService),n.registerSingleton(r(d[3]).IndyHolderService),n.registerSingleton(r(d[4]).IndyVerifierService),n.registerSingleton(r(d[5]).IndyRevocationService),n.registerSingleton(r(d[5]).IndyUtilitiesService)}}]),n})();e.IndyModule=n},1898,[7,8,1365,1670,1897,1896]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e)},1899,[1900,1902,1908]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1900,[1901]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2PresentationProblemReportError=void 0;var t=(function(t){r(d[2])(u,t);var o,n,c=(o=u,n=e(),function(){var e,t=r(d[0])(o);if(n){var c=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function u(e,t){var o,n=t.problemCode;return r(d[3])(this,u),(o=c.call(this,e,{problemCode:n})).message=e,o.problemReport=new(r(d[4]).V2PresentationProblemReportMessage)({description:{en:e,code:n}}),o}return r(d[5])(u)})(r(d[6]).ProblemReportError);_e.V2PresentationProblemReportError=t},1901,[14,11,9,7,1902,8,947]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e)},1902,[1903,1904,1905,1906,1907]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,f=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(c=e[s])&&(f=(o<3?c(f):o>3?c(t,r,f):c(t,r))||f);return o>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2PresentationAckMessage=void 0;var n=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e){var t;return _r(_d[3])(this,o),(t=c.call(this,e)).type=o.type.messageTypeUri,t}return _r(_d[4])(o)})(_r(_d[5]).AckMessage);n.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/present-proof/2.0/ack'),t([(0,_r(_d[6]).IsValidMessageType)(n.type),r("design:type",Object)],n.prototype,"type",void 0),_e.V2PresentationAckMessage=n},1903,[14,11,9,7,8,1486,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=e(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function e(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2PresentationMessage=void 0;var s=(function(e){_r(_d[2])(s,e);var n,o,i=(n=s,o=r(),function(){var t,e=_r(_d[0])(n);if(o){var r=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function s(e){var n,r,o;if(_r(_d[3])(this,s),(n=i.call(this)).type=s.type.messageTypeUri,n.lastPresentation=!0,e){n.formats=[],n.presentationsAttach=[],n.id=null!==(r=e.id)&&void 0!==r?r:(0,_r(_d[4]).uuid)(),n.comment=e.comment,n.goalCode=e.goalCode,n.lastPresentation=null===(o=e.lastPresentation)||void 0===o||o;for(var c,f=t(e.attachmentInfo);!(c=f()).done;){var p=c.value;n.addPresentationsAttachment(p)}}return n}return _r(_d[5])(s,[{key:"addPresentationsAttachment",value:function(t){this.formats.push(t.format),this.presentationsAttach.push(t.attachment)}},{key:"getAttachmentFormats",value:function(){var t=this,e=[];return this.formats.forEach(function(n){var r=t.presentationsAttach.find(function(t){return t.id===n.attachmentId});if(!r)throw new(_r(_d[6]).AriesFrameworkError)("Could not find a matching attachment with attachmentId: "+n.attachmentId);e.push({format:n,attachment:r})}),e}}]),s})(_r(_d[7]).AgentMessage);s.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/present-proof/2.0/presentation'),o([(0,_r(_d[8]).IsValidMessageType)(s.type),i("design:type",Object)],s.prototype,"type",void 0),o([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"comment",void 0),o([(0,_r(_d[10]).Expose)({name:'goal_code'}),(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"goalCode",void 0),o([(0,_r(_d[10]).Expose)({name:'last_presentation'}),(0,_r(_d[9]).IsBoolean)(),i("design:type",Object)],s.prototype,"lastPresentation",void 0),o([(0,_r(_d[10]).Expose)({name:'formats'}),(0,_r(_d[10]).Type)(function(){return _r(_d[11]).ProofFormatSpec}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).ProofFormatSpec,{each:!0}),i("design:type",Array)],s.prototype,"formats",void 0),o([(0,_r(_d[10]).Expose)({name:'presentations~attach'}),(0,_r(_d[10]).Type)(function(){return _r(_d[12]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[12]).Attachment,{each:!0}),i("design:type",Array)],s.prototype,"presentationsAttach",void 0),_e.V2PresentationMessage=s},1904,[14,11,9,7,953,8,613,949,942,662,627,1877,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,o){var n,c=arguments.length,f=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(f=(c<3?n(f):c>3?n(t,r,f):n(t,r))||f);return c>3&&f&&Object.defineProperty(t,r,f),f},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2PresentationProblemReportMessage=void 0;var o=(function(t){_r(_d[2])(c,t);var r,o,n=(r=c,o=e(),function(){var e,t=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=n.call(this,e)).type=c.type.messageTypeUri,t}return _r(_d[4])(c)})(_r(_d[5]).ProblemReportMessage);o.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/present-proof/2.0/problem-report'),t([(0,_r(_d[6]).IsValidMessageType)(o.type),r("design:type",Object)],o.prototype,"type",void 0),_e.V2PresentationProblemReportMessage=o},1905,[14,11,9,7,8,948,942]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=e(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r=0;c--)(n=t[c])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2ProposalPresentationMessage=void 0;var s=(function(e){_r(_d[2])(s,e);var r,n,i=(r=s,n=o(),function(){var t,e=_r(_d[0])(r);if(n){var o=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function s(e){var r,o,n;if(_r(_d[3])(this,s),(r=i.call(this)).type=s.type.messageTypeUri,r.willConfirm=!1,e){r.formats=[],r.proposalsAttach=[],r.id=null!==(o=e.id)&&void 0!==o?o:(0,_r(_d[4]).uuid)(),r.comment=e.comment,r.goalCode=e.goalCode,r.willConfirm=null!==(n=e.willConfirm)&&void 0!==n&&n,e.parentThreadId&&r.setThread({parentThreadId:e.parentThreadId});for(var c,p=t(e.attachmentInfo);!(c=p()).done;){var l=c.value;r.addProposalsAttachment(l)}}return r}return _r(_d[5])(s,[{key:"addProposalsAttachment",value:function(t){this.formats.push(t.format),this.proposalsAttach.push(t.attachment)}},{key:"getAttachmentFormats",value:function(){var t=this,e=[];return this.formats.forEach(function(r){var o=t.proposalsAttach.find(function(t){return t.id===r.attachmentId});if(!o)throw new(_r(_d[6]).AriesFrameworkError)("Could not find a matching attachment with attachmentId: "+r.attachmentId);e.push({format:r,attachment:o})}),e}}]),s})(_r(_d[7]).AgentMessage);s.type=(0,_r(_d[8]).parseMessageType)("https://didcomm.org/present-proof/2.0/propose-presentation"),n([(0,_r(_d[8]).IsValidMessageType)(s.type),i("design:type",Object)],s.prototype,"type",void 0),n([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"comment",void 0),n([(0,_r(_d[10]).Expose)({name:'goal_code'}),(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"goalCode",void 0),n([(0,_r(_d[10]).Expose)({name:'will_confirm'}),(0,_r(_d[9]).IsBoolean)(),i("design:type",Object)],s.prototype,"willConfirm",void 0),n([(0,_r(_d[10]).Expose)({name:'formats'}),(0,_r(_d[10]).Type)(function(){return _r(_d[11]).ProofFormatSpec}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).ProofFormatSpec,{each:!0}),i("design:type",Array)],s.prototype,"formats",void 0),n([(0,_r(_d[10]).Expose)({name:'proposals~attach'}),(0,_r(_d[10]).Type)(function(){return _r(_d[12]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[12]).Attachment,{each:!0}),i("design:type",Array)],s.prototype,"proposalsAttach",void 0),_e.V2ProposalPresentationMessage=s},1906,[14,11,9,7,953,8,613,949,942,662,627,1877,978]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=e(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function e(t,e){if(t){if("string"==typeof t)return r(t,e);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)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;c--)(o=t[c])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2RequestPresentationMessage=void 0;var s=(function(e){_r(_d[2])(s,e);var r,o,i=(r=s,o=n(),function(){var t,e=_r(_d[0])(r);if(o){var n=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function s(e){var r,n,o,c;if(_r(_d[3])(this,s),(r=i.call(this)).type=s.type.messageTypeUri,r.willConfirm=!1,r.presentMultiple=!1,e){r.formats=[],r.requestPresentationsAttach=[],r.id=null!==(n=e.id)&&void 0!==n?n:(0,_r(_d[4]).uuid)(),r.comment=e.comment,r.goalCode=e.goalCode,r.willConfirm=null===(o=e.willConfirm)||void 0===o||o,r.presentMultiple=null!==(c=e.presentMultiple)&&void 0!==c&&c,e.parentThreadId&&r.setThread({parentThreadId:e.parentThreadId});for(var u,f=t(e.attachmentInfo);!(u=f()).done;){var l=u.value;r.addRequestPresentationsAttachment(l)}}return r}return _r(_d[5])(s,[{key:"addRequestPresentationsAttachment",value:function(t){this.formats.push(t.format),this.requestPresentationsAttach.push(t.attachment)}},{key:"getAttachmentByFormatIdentifier",value:function(t){var e=this.formats.find(function(e){return e.format===t});if(!e)throw new(_r(_d[6]).AriesFrameworkError)("Expected to find a format entry of type: "+t+", but none could be found.");var r=this.requestPresentationsAttach.find(function(t){return t.id===e.attachmentId});if(!r)throw new(_r(_d[6]).AriesFrameworkError)("Expected to find an attachment entry with id: "+e.attachmentId+", but none could be found.");return r}},{key:"getAttachmentFormats",value:function(){var t=this,e=[];return this.formats.forEach(function(r){var n=t.requestPresentationsAttach.find(function(t){return t.id===r.attachmentId});if(!n)throw new(_r(_d[6]).AriesFrameworkError)("Could not find a matching attachment with attachmentId: "+r.attachmentId);e.push({format:r,attachment:n})}),e}}]),s})(_r(_d[7]).AgentMessage);s.type=(0,_r(_d[8]).parseMessageType)('https://didcomm.org/present-proof/2.0/request-presentation'),o([(0,_r(_d[8]).IsValidMessageType)(s.type),i("design:type",Object)],s.prototype,"type",void 0),o([(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"comment",void 0),o([(0,_r(_d[10]).Expose)({name:'goal_code'}),(0,_r(_d[9]).IsString)(),(0,_r(_d[9]).IsOptional)(),i("design:type",String)],s.prototype,"goalCode",void 0),o([(0,_r(_d[10]).Expose)({name:'will_confirm'}),(0,_r(_d[9]).IsBoolean)(),i("design:type",Object)],s.prototype,"willConfirm",void 0),o([(0,_r(_d[10]).Expose)({name:'present_multiple'}),(0,_r(_d[9]).IsBoolean)(),i("design:type",Object)],s.prototype,"presentMultiple",void 0),o([(0,_r(_d[10]).Expose)({name:'formats'}),(0,_r(_d[10]).Type)(function(){return _r(_d[11]).ProofFormatSpec}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[11]).ProofFormatSpec,{each:!0}),i("design:type",Array)],s.prototype,"formats",void 0),o([(0,_r(_d[10]).Expose)({name:'request_presentations~attach'}),(0,_r(_d[10]).Type)(function(){return _r(_d[12]).Attachment}),(0,_r(_d[9]).IsArray)(),(0,_r(_d[9]).ValidateNested)({each:!0}),(0,_r(_d[9]).IsInstance)(_r(_d[12]).Attachment,{each:!0}),i("design:type",Array)],s.prototype,"requestPresentationsAttach",void 0),_e.V2RequestPresentationMessage=s},1907,[14,11,9,7,953,8,612,949,942,662,627,1877,978]); -__d(function(g,_r,_i9,a,m,_e,_d){"use strict";function e(e,r){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=t(e))||r&&e&&"number"==typeof e.length){s&&(e=s);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}function t(e,t){if(e){if("string"==typeof e)return r(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r=0;c--)(o=e[c])&&(i=(n<3?o(i):n>3?o(t,r,i):o(t,r))||i);return n>3&&i&&Object.defineProperty(t,r,i),i},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,s){t(r,s,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.V2ProofService=void 0;var c=(function(t){_r(_d[2])(i,t);var r,o,n=(r=i,o=s(),function(){var e,t=_r(_d[0])(r);if(o){var s=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function i(e,t,r,s,o,c,d){var u;return _r(_d[3])(this,i),(u=n.call(this,e,r,t,s,d,o)).version='v2',u.wallet=d,u.formatServiceMap=[c].reduce(function(e,t){return _r(_d[4])(_r(_d[4])({},e),_r(_d[5])({},t.formatKey,t))},{}),u}return _r(_d[6])(i,[{key:"createProposal",value:function(e,t){var r,s,o,n,i,c,d,u;return _r(_d[7]).async(function(p){for(;;)switch(p.prev=p.next){case 0:s=[],o=0,n=Object.keys(t.proofFormats);case 2:if(!(o=0;p--)(c=t[p])&&(s=(u<3?c(s):u>3?c(o,r,s):c(o,r))||s);return u>3&&s&&Object.defineProperty(o,r,s),s},r=this&&this.__metadata||function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofResponseCoordinator=void 0;var n=t=(function(){function o(t){_r(_d[0])(this,o),this.proofService=t}return _r(_d[1])(o,[{key:"shouldAutoRespondToProposal",value:function(o,r){var n;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if((n=t.composeAutoAccept(r.autoAcceptProof,o.config.autoAcceptProofs))!==_r(_d[3]).AutoAcceptProof.Always){c.next=3;break}return c.abrupt("return",!0);case 3:if(n!==_r(_d[3]).AutoAcceptProof.ContentApproved){c.next=5;break}return c.abrupt("return",this.proofService.shouldAutoRespondToProposal(o,r));case 5:return c.abrupt("return",!1);case 6:case"end":return c.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToRequest",value:function(o,r){var n;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if((n=t.composeAutoAccept(r.autoAcceptProof,o.config.autoAcceptProofs))!==_r(_d[3]).AutoAcceptProof.Always){c.next=3;break}return c.abrupt("return",!0);case 3:if(n!==_r(_d[3]).AutoAcceptProof.ContentApproved){c.next=5;break}return c.abrupt("return",this.proofService.shouldAutoRespondToRequest(o,r));case 5:return c.abrupt("return",!1);case 6:case"end":return c.stop()}},null,this,null,Promise)}},{key:"shouldAutoRespondToPresentation",value:function(o,r){var n;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:if((n=t.composeAutoAccept(r.autoAcceptProof,o.config.autoAcceptProofs))!==_r(_d[3]).AutoAcceptProof.Always){c.next=3;break}return c.abrupt("return",!0);case 3:if(n!==_r(_d[3]).AutoAcceptProof.ContentApproved){c.next=5;break}return c.abrupt("return",this.proofService.shouldAutoRespondToPresentation(o,r));case 5:return c.abrupt("return",!1);case 6:case"end":return c.stop()}},null,this,null,Promise)}}],[{key:"composeAutoAccept",value:function(t,o){var r;return null!==(r=null!==t&&void 0!==t?t:o)&&void 0!==r?r:_r(_d[3]).AutoAcceptProof.Never}}]),o})();n=t=o([(0,_r(_d[4]).injectable)(),r("design:paramtypes",[_r(_d[5]).ProofService])],n),e.ProofResponseCoordinator=n},1915,[7,8,82,1400,1020,1892]); -__d(function(g,_r,_i2,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,o){var s,c=arguments.length,i=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,n,r,o);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(i=(c<3?s(i):c>3?s(n,r,i):s(n,r))||i);return c>3&&i&&Object.defineProperty(n,r,i),i},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},r=this&&this.__param||function(t,n){return function(r,o){n(r,o,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofsApi=void 0;var o=(function(){function t(n,r,o,s,c,i,u,p,d,l,f){_r(_d[0])(this,t),this.messageSender=o,this.connectionService=s,this.proofRepository=d,this.agentContext=c,this.agentConfig=i,this.routingService=u,this.logger=p,this.serviceMap=[l,f].reduce(function(t,n){return _r(_d[1])(_r(_d[1])({},t),_r(_d[2])({},n.version,n))},{}),this.logger.debug("Initializing Proofs Module for agent "+this.agentContext.config.label),this.registerMessageHandlers(n,r)}return _r(_d[3])(t,[{key:"getService",value:function(t){if(!this.serviceMap[t])throw new(_r(_d[4]).AriesFrameworkError)("No proof service registered for protocol version "+t);return this.serviceMap[t]}},{key:"proposeProof",value:function(t){var n,r,o,s,c,i,u,p;return _r(_d[5]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=this.getService(t.protocolVersion),r=t.connectionId,d.next=4,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,r));case 4:return(o=d.sent).assertReady(),s={connectionRecord:o,proofFormats:t.proofFormats,autoAcceptProof:t.autoAcceptProof,goalCode:t.goalCode,comment:t.comment,parentThreadId:t.parentThreadId},d.next=9,_r(_d[5]).awrap(n.createProposal(this.agentContext,s));case 9:return c=d.sent,i=c.message,u=c.proofRecord,p=new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:o,associatedRecord:u}),d.next=15,_r(_d[5]).awrap(this.messageSender.sendMessage(p));case 15:return d.abrupt("return",u);case 16:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptProposal",value:function(t){var n,r,o,s,c,i,u,p,d,l,f;return _r(_d[5]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return r=t.proofRecordId,h.next=3,_r(_d[5]).awrap(this.getById(r));case 3:if(o=h.sent,s=this.getService(o.protocolVersion),o.connectionId){h.next=7;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for proof record '"+o.id+"'. Connection-less issuance does not support presentation proposal or negotiation.");case 7:return h.next=9,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,o.connectionId));case 9:return(c=h.sent).assertReady(),i={proofRecord:o},h.next=14,_r(_d[5]).awrap(s.createProofRequestFromProposal(this.agentContext,i));case 14:return u=h.sent,p={proofRecord:o,proofFormats:u.proofFormats,goalCode:t.goalCode,willConfirm:null===(n=t.willConfirm)||void 0===n||n,comment:t.comment},h.next=18,_r(_d[5]).awrap(s.createRequestAsResponse(this.agentContext,p));case 18:return d=h.sent,l=d.message,f=new(_r(_d[6]).OutboundMessageContext)(l,{agentContext:this.agentContext,connection:c,associatedRecord:o}),h.next=23,_r(_d[5]).awrap(this.messageSender.sendMessage(f));case 23:return h.abrupt("return",o);case 24:case"end":return h.stop()}},null,this,null,Promise)}},{key:"negotiateProposal",value:function(t){var n,r,o,s,c,i,u,p;return _r(_d[5]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=t.proofRecordId,d.next=3,_r(_d[5]).awrap(this.getById(n));case 3:if(r=d.sent,o=this.getService(r.protocolVersion),r.connectionId){d.next=7;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for proof record '"+r.id+"'. Connection-less issuance does not support negotiation.");case 7:return d.next=9,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 9:return(s=d.sent).assertReady(),c={proofRecord:r,proofFormats:t.proofFormats,autoAcceptProof:t.autoAcceptProof,comment:t.comment},d.next=14,_r(_d[5]).awrap(o.createRequestAsResponse(this.agentContext,c));case 14:return i=d.sent,u=i.message,p=new(_r(_d[6]).OutboundMessageContext)(u,{agentContext:this.agentContext,connection:s,associatedRecord:r}),d.next=19,_r(_d[5]).awrap(this.messageSender.sendMessage(p));case 19:return d.abrupt("return",r);case 20:case"end":return d.stop()}},null,this,null,Promise)}},{key:"requestProof",value:function(t){var n,r,o,s,c,i,u;return _r(_d[5]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return n=this.getService(t.protocolVersion),p.next=3,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,t.connectionId));case 3:return(r=p.sent).assertReady(),o={connectionRecord:r,proofFormats:t.proofFormats,autoAcceptProof:t.autoAcceptProof,parentThreadId:t.parentThreadId,comment:t.comment},p.next=8,_r(_d[5]).awrap(n.createRequest(this.agentContext,o));case 8:return s=p.sent,c=s.message,i=s.proofRecord,u=new(_r(_d[6]).OutboundMessageContext)(c,{agentContext:this.agentContext,connection:r,associatedRecord:i}),p.next=14,_r(_d[5]).awrap(this.messageSender.sendMessage(u));case 14:return p.abrupt("return",i);case 15:case"end":return p.stop()}},null,this,null,Promise)}},{key:"acceptRequest",value:function(t){var n,r,o,s,c,i,u,p,d,l,f,h,x,v;return _r(_d[5]).async(function(y){for(;;)switch(y.prev=y.next){case 0:return n=t.proofRecordId,r=t.proofFormats,o=t.comment,y.next=3,_r(_d[5]).awrap(this.getById(n));case 3:return s=y.sent,c=this.getService(s.protocolVersion),i={proofFormats:r,proofRecord:s,comment:o},y.next=8,_r(_d[5]).awrap(c.createPresentation(this.agentContext,i));case 8:return u=y.sent,p=u.message,d=u.proofRecord,y.next=13,_r(_d[5]).awrap(c.findRequestMessage(this.agentContext,d.id));case 13:if(l=y.sent,!d.connectionId){y.next=25;break}return y.next=17,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,d.connectionId));case 17:return(f=y.sent).assertReady(),h=new(_r(_d[6]).OutboundMessageContext)(p,{agentContext:this.agentContext,connection:f,associatedRecord:d}),y.next=22,_r(_d[5]).awrap(this.messageSender.sendMessage(h));case 22:return y.abrupt("return",d);case 25:if(!(null===l||void 0===l?void 0:l.service)){y.next=38;break}return y.next=28,_r(_d[5]).awrap(this.routingService.getRouting(this.agentContext));case 28:return x=y.sent,p.service=new(_r(_d[7]).ServiceDecorator)({serviceEndpoint:x.endpoints[0],recipientKeys:[x.recipientKey.publicKeyBase58],routingKeys:x.routingKeys.map(function(t){return t.publicKeyBase58})}),v=l.service,y.next=33,_r(_d[5]).awrap(c.saveOrUpdatePresentationMessage(this.agentContext,{proofRecord:d,message:p,role:_r(_d[8]).DidCommMessageRole.Sender}));case 33:return y.next=35,_r(_d[5]).awrap(this.messageSender.sendMessageToService(new(_r(_d[6]).OutboundMessageContext)(p,{agentContext:this.agentContext,serviceParams:{service:v.resolvedDidCommService,senderKey:p.service.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 35:return y.abrupt("return",d);case 38:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept presentation request without connectionId or ~service decorator on presentation request.");case 39:case"end":return y.stop()}},null,this,null,Promise)}},{key:"createRequest",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=this.getService(t.protocolVersion),r={proofFormats:t.proofFormats,autoAcceptProof:t.autoAcceptProof,comment:t.comment,parentThreadId:t.parentThreadId},o.next=4,_r(_d[5]).awrap(n.createRequest(this.agentContext,r));case 4:return o.abrupt("return",o.sent);case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"declineRequest",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getService(n.protocolVersion),n.assertState(_r(_d[9]).ProofState.RequestReceived),o.next=7,_r(_d[5]).awrap(r.updateState(this.agentContext,n,_r(_d[9]).ProofState.Declined));case 7:return o.abrupt("return",n);case 8:case"end":return o.stop()}},null,this,null,Promise)}},{key:"negotiateRequest",value:function(t){var n,r,o,s,c,i,u,p;return _r(_d[5]).async(function(d){for(;;)switch(d.prev=d.next){case 0:return n=t.proofRecordId,d.next=3,_r(_d[5]).awrap(this.getById(n));case 3:if(r=d.sent,o=this.getService(r.protocolVersion),r.connectionId){d.next=7;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for proof record '"+r.id+"'. Connection-less issuance does not support presentation proposal or negotiation.");case 7:return d.next=9,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 9:return(s=d.sent).assertReady(),c={proofRecord:r,proofFormats:t.proofFormats,autoAcceptProof:t.autoAcceptProof,goalCode:t.goalCode,comment:t.comment},d.next=14,_r(_d[5]).awrap(o.createProposalAsResponse(this.agentContext,c));case 14:return i=d.sent,u=i.message,p=new(_r(_d[6]).OutboundMessageContext)(u,{agentContext:this.agentContext,connection:s,associatedRecord:r}),d.next=19,_r(_d[5]).awrap(this.messageSender.sendMessage(p));case 19:return d.abrupt("return",r);case 20:case"end":return d.stop()}},null,this,null,Promise)}},{key:"acceptPresentation",value:function(t){var n,r,o,s,c,i,u,p,d,l,f;return _r(_d[5]).async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=h.sent,r=this.getService(n.protocolVersion),h.next=6,_r(_d[5]).awrap(r.createAck(this.agentContext,{proofRecord:n}));case 6:return o=h.sent,s=o.message,c=o.proofRecord,h.next=11,_r(_d[5]).awrap(r.findRequestMessage(this.agentContext,n.id));case 11:return i=h.sent,h.next=14,_r(_d[5]).awrap(r.findPresentationMessage(this.agentContext,n.id));case 14:if(u=h.sent,!c.connectionId){h.next=25;break}return h.next=18,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,c.connectionId));case 18:return(p=h.sent).assertReady(),d=new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,connection:p,associatedRecord:c}),h.next=23,_r(_d[5]).awrap(this.messageSender.sendMessage(d));case 23:h.next=33;break;case 25:if(!((null===i||void 0===i?void 0:i.service)&&(null===u||void 0===u?void 0:u.service))){h.next=32;break}return l=null===u||void 0===u?void 0:u.service,f=i.service,h.next=30,_r(_d[5]).awrap(this.messageSender.sendMessageToService(new(_r(_d[6]).OutboundMessageContext)(s,{agentContext:this.agentContext,serviceParams:{service:l.resolvedDidCommService,senderKey:f.resolvedDidCommService.recipientKeys[0],returnRoute:!0}})));case 30:h.next=33;break;case 32:throw new(_r(_d[4]).AriesFrameworkError)("Cannot accept presentation without connectionId or ~service decorator on presentation message.");case 33:return h.abrupt("return",n);case 34:case"end":return h.stop()}},null,this,null,Promise)}},{key:"autoSelectCredentialsForProofRequest",value:function(t){var n,r,o;return _r(_d[5]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[5]).awrap(this.getById(t.proofRecordId));case 2:return n=s.sent,r=this.getService(n.protocolVersion),s.next=6,_r(_d[5]).awrap(r.getRequestedCredentialsForProofRequest(this.agentContext,{proofRecord:n,config:t.config}));case 6:return o=s.sent,s.next=9,_r(_d[5]).awrap(r.autoSelectCredentialsForProofRequest(o));case 9:return s.abrupt("return",s.sent);case 10:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getRequestedCredentialsForProofRequest",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t.proofRecordId));case 2:return n=o.sent,r=this.getService(n.protocolVersion),o.next=6,_r(_d[5]).awrap(r.getRequestedCredentialsForProofRequest(this.agentContext,{proofRecord:n,config:t.config}));case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}},null,this,null,Promise)}},{key:"sendProblemReport",value:function(t,n){var r,o,s,c,i,u;return _r(_d[5]).async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,_r(_d[5]).awrap(this.getById(t));case 2:if(r=p.sent,o=this.getService(r.protocolVersion),r.connectionId){p.next=6;break}throw new(_r(_d[4]).AriesFrameworkError)("No connectionId found for proof record '"+r.id+"'.");case 6:return p.next=8,_r(_d[5]).awrap(this.connectionService.getById(this.agentContext,r.connectionId));case 8:return(s=p.sent).assertReady(),p.next=12,_r(_d[5]).awrap(o.createProblemReport(this.agentContext,{proofRecord:r,description:n}));case 12:return c=p.sent,i=c.message,u=new(_r(_d[6]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:s,associatedRecord:r}),p.next=17,_r(_d[5]).awrap(this.messageSender.sendMessage(u));case 17:return p.abrupt("return",r);case 18:case"end":return p.stop()}},null,this,null,Promise)}},{key:"getFormatData",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getService(n.protocolVersion),o.abrupt("return",r.getFormatData(this.agentContext,t));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(){return _r(_d[5]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.proofRepository.getAll(this.agentContext));case 1:case"end":return t.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t){return this.proofRepository.findByQuery(this.agentContext,t)}},{key:"getById",value:function(t){return _r(_d[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[5]).awrap(this.proofRepository.getById(this.agentContext,t));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findById",value:function(t){return _r(_d[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[5]).awrap(this.proofRepository.findById(this.agentContext,t));case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(t,n){var r,o;return _r(_d[5]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return r=s.sent,o=this.getService(r.protocolVersion),s.abrupt("return",o.delete(this.agentContext,r,n));case 5:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getByThreadAndConnectionId",value:function(t,n){return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.proofRepository.getByThreadAndConnectionId(this.agentContext,t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getByParentThreadAndConnectionId",value:function(t,n){return _r(_d[5]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.proofRepository.getByParentThreadAndConnectionId(this.agentContext,t,n));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"update",value:function(t){return _r(_d[5]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[5]).awrap(this.proofRepository.update(this.agentContext,t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findProposalMessage",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getService(n.protocolVersion),o.abrupt("return",r.findProposalMessage(this.agentContext,t));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findRequestMessage",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getService(n.protocolVersion),o.abrupt("return",r.findRequestMessage(this.agentContext,t));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"findPresentationMessage",value:function(t){var n,r;return _r(_d[5]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d[5]).awrap(this.getById(t));case 2:return n=o.sent,r=this.getService(n.protocolVersion),o.abrupt("return",r.findPresentationMessage(this.agentContext,t));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(t,n){for(var r=0,o=Object.values(this.serviceMap);r=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,n,s):o(t,n))||s);return c>3&&s&&Object.defineProperty(t,n,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BasicMessage=void 0;var r=(function(t){_r(_d[2])(c,t);var n,r,o=(n=c,r=e(),function(){var e,t=_r(_d[0])(n);if(r){var o=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function c(e){var t;return _r(_d[3])(this,c),(t=o.call(this)).type=c.type.messageTypeUri,e&&(t.id=e.id||t.generateId(),t.sentTime=e.sentTime||new Date,t.content=e.content,t.addLocale(e.locale||'en')),t}return _r(_d[4])(c)})(_r(_d[5]).AgentMessage);r.type=(0,_r(_d[6]).parseMessageType)('https://didcomm.org/basicmessage/1.0/message'),t([(0,_r(_d[6]).IsValidMessageType)(r.type),n("design:type",Object)],r.prototype,"type",void 0),t([(0,_r(_d[7]).Expose)({name:'sent_time'}),(0,_r(_d[7]).Transform)(function(e){var t=e.value;return(0,_r(_d[8]).DateParser)(t)}),(0,_r(_d[9]).IsDate)(),n("design:type",Date)],r.prototype,"sentTime",void 0),t([(0,_r(_d[7]).Expose)({name:'content'}),(0,_r(_d[9]).IsString)(),n("design:type",String)],r.prototype,"content",void 0),_e.BasicMessage=r},1922,[14,11,9,7,8,949,942,627,1073,662]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1923,[1924]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,s,n,r){var i,c=arguments.length,o=c<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(c<3?i(o):c>3?i(s,n,o):i(s,n))||o);return c>3&&o&&Object.defineProperty(s,n,o),o},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessageService=void 0;var n=(function(){function t(s,n){_r(_d[0])(this,t),this.basicMessageRepository=s,this.eventEmitter=n}return _r(_d[1])(t,[{key:"createMessage",value:function(t,s,n){var r,i;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return r=new(_r(_d[3]).BasicMessage)({content:s}),i=new(_r(_d[4]).BasicMessageRecord)({sentTime:r.sentTime.toISOString(),content:r.content,connectionId:n.id,role:_r(_d[5]).BasicMessageRole.Sender}),c.next=4,_r(_d[2]).awrap(this.basicMessageRepository.save(t,i));case 4:return this.emitStateChangedEvent(t,i,r),c.abrupt("return",{message:r,record:i});case 6:case"end":return c.stop()}},null,this,null,Promise)}},{key:"save",value:function(t,s){var n,r,i;return _r(_d[2]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return n=t.message,r=t.agentContext,i=new(_r(_d[4]).BasicMessageRecord)({sentTime:n.sentTime.toISOString(),content:n.content,connectionId:s.id,role:_r(_d[5]).BasicMessageRole.Receiver}),c.next=4,_r(_d[2]).awrap(this.basicMessageRepository.save(r,i));case 4:this.emitStateChangedEvent(r,i,n);case 5:case"end":return c.stop()}},null,this,null,Promise)}},{key:"emitStateChangedEvent",value:function(t,s,n){var r=_r(_d[6]).JsonTransformer.clone(s);this.eventEmitter.emit(t,{type:_r(_d[7]).BasicMessageEventTypes.BasicMessageStateChanged,payload:{message:n,basicMessageRecord:r}})}},{key:"findAllByQuery",value:function(t,s){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.basicMessageRepository.findByQuery(t,s));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t,s){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.basicMessageRepository.getById(t,s));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(t,s){var n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.getById(t,s));case 2:return n=r.sent,r.abrupt("return",this.basicMessageRepository.delete(t,n));case 4:case"end":return r.stop()}},null,this,null,Promise)}}]),t})();n=t([(0,_r(_d[8]).injectable)(),s("design:paramtypes",[_r(_d[4]).BasicMessageRepository,_r(_d[9]).EventEmitter])],n),e.BasicMessageService=n},1924,[7,8,82,1921,1925,1928,993,1929,1020,1105]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1925,[1926,1927]); -__d(function(g,r,i,a,m,_e,d){"use strict";function e(){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(e){return!1}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.BasicMessageRecord=void 0;var t=(function(t){r(d[2])(s,t);var n,c,o=(n=s,c=e(),function(){var e,t=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return r(d[1])(this,e)});function s(e){var t,n,c,u;return r(d[3])(this,s),(t=o.call(this)).type=s.type,e&&(t.id=null!==(n=e.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),t.createdAt=null!==(c=e.createdAt)&&void 0!==c?c:new Date,t.content=e.content,t.sentTime=e.sentTime,t.connectionId=e.connectionId,t._tags=null!==(u=e.tags)&&void 0!==u?u:{},t.role=e.role),t}return r(d[5])(s,[{key:"getTags",value:function(){return r(d[6])(r(d[6])({},this._tags),{connectionId:this.connectionId,role:this.role})}}]),s})(r(d[7]).BaseRecord);_e.BasicMessageRecord=t,t.type='BasicMessageRecord'},1926,[14,11,9,7,953,8,4,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function t(){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}}var e=this&&this.__decorate||function(t,e,r,n){var c,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var f=t.length-1;f>=0;f--)(c=t[f])&&(i=(o<3?c(i):o>3?c(e,r,i):c(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},r=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},n=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.BasicMessageRepository=void 0;var c=(function(e){_r(_d[2])(o,e);var r,n,c=(r=o,n=t(),function(){var t,e=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;t=Reflect.construct(e,arguments,c)}else t=e.apply(this,arguments);return _r(_d[1])(this,t)});function o(t,e){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).BasicMessageRecord,t,e)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=e([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.BasicMessageRepository=c},1927,[14,11,9,7,1926,8,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessageRole=void 0,(function(s){s.Sender="sender",s.Receiver="receiver"})(e.BasicMessageRole||(e.BasicMessageRole={}))},1928,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessageEventTypes=void 0,(function(s){s.BasicMessageStateChanged="BasicMessageStateChanged"})(e.BasicMessageEventTypes||(e.BasicMessageEventTypes={}))},1929,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,s,r){var i,c=arguments.length,o=c<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,s,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(o=(c<3?i(o):c>3?i(n,s,o):i(n,s))||o);return c>3&&o&&Object.defineProperty(n,s,o),o},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessagesApi=void 0;var s=(function(){function t(n,s,r,i,c){_r(_d[0])(this,t),this.basicMessageService=s,this.messageSender=r,this.connectionService=i,this.agentContext=c,this.registerMessageHandlers(n)}return _r(_d[1])(t,[{key:"sendMessage",value:function(t,n){var s,r,i,c,o;return _r(_d[2]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,_r(_d[2]).awrap(this.connectionService.getById(this.agentContext,t));case 2:return s=u.sent,u.next=5,_r(_d[2]).awrap(this.basicMessageService.createMessage(this.agentContext,n,s));case 5:return r=u.sent,i=r.message,c=r.record,o=new(_r(_d[3]).OutboundMessageContext)(i,{agentContext:this.agentContext,connection:s,associatedRecord:c}),u.next=11,_r(_d[2]).awrap(this.messageSender.sendMessage(o));case 11:return u.abrupt("return",c);case 12:case"end":return u.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.basicMessageService.findAllByQuery(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getById",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.basicMessageService.getById(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"deleteById",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.basicMessageService.deleteById(this.agentContext,t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d[4]).BasicMessageHandler)(this.basicMessageService))}}]),t})();s=t([(0,_r(_d[5]).injectable)(),n("design:paramtypes",[_r(_d[6]).Dispatcher,_r(_d[7]).BasicMessageService,_r(_d[8]).MessageSender,_r(_d[9]).ConnectionService,_r(_d[10]).AgentContext])],s),e.BasicMessagesApi=s},1930,[7,8,82,623,1931,1020,1494,1923,1345,1426,1391]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1931,[1932]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessageHandler=void 0;var s=(function(){function s(n){r(d[0])(this,s),this.supportedMessages=[r(d[1]).BasicMessage],this.basicMessageService=n}return r(d[2])(s,[{key:"handle",value:function(s){var n;return r(d[3]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.assertReadyConnection(),t.next=3,r(d[3]).awrap(this.basicMessageService.save(s,n));case 3:case"end":return t.stop()}},null,this,null,Promise)}}]),s})();e.BasicMessageHandler=s},1932,[7,1921,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMessagesModule=void 0;var s=(function(){function s(){r(d[0])(this,s),this.api=r(d[1]).BasicMessagesApi}return r(d[2])(s,[{key:"register",value:function(s,t){s.registerContextScoped(r(d[1]).BasicMessagesApi),s.registerSingleton(r(d[3]).BasicMessageService),s.registerSingleton(r(d[4]).BasicMessageRepository),t.register(new(r(d[5]).Protocol)({id:'https://didcomm.org/basicmessage/1.0',roles:[r(d[6]).BasicMessageRole.Sender,r(d[6]).BasicMessageRole.Receiver]}))}}]),s})();e.BasicMessagesModule=s},1933,[7,1930,8,1923,1925,623,1928]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e)},1934,[1935,1939]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,r,n,c){var s,i=arguments.length,o=i<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,n,c);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(o=(i<3?s(o):i>3?s(r,n,o):s(r,n))||o);return i>3&&o&&Object.defineProperty(r,n,o),o},r=this&&this.__metadata||function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)},n=this&&this.__param||function(t,r){return function(n,c){r(n,c,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.GenericRecordsApi=void 0;var c=(function(){function t(r,n,c){_r(_d[0])(this,t),this.genericRecordsService=r,this.logger=n,this.agentContext=c}return _r(_d[1])(t,[{key:"save",value:function(t){var r,n,c,s;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=t.content,n=t.tags,c=t.id,i.prev=1,i.next=4,_r(_d[2]).awrap(this.genericRecordsService.save(this.agentContext,{id:c,content:r,tags:n}));case 4:return s=i.sent,i.abrupt("return",s);case 8:throw i.prev=8,i.t0=i.catch(1),this.logger.error('Error while saving generic-record',{error:i.t0,content:r,errorMessage:i.t0 instanceof Error?i.t0.message:i.t0}),i.t0;case 12:case"end":return i.stop()}},null,this,[[1,8]],Promise)}},{key:"delete",value:function(t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_r(_d[2]).awrap(this.genericRecordsService.delete(this.agentContext,t));case 3:r.next=9;break;case 5:throw r.prev=5,r.t0=r.catch(0),this.logger.error('Error while saving generic-record',{error:r.t0,content:t.content,errorMessage:r.t0 instanceof Error?r.t0.message:r.t0}),r.t0;case 9:case"end":return r.stop()}},null,this,[[0,5]],Promise)}},{key:"deleteById",value:function(t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.genericRecordsService.deleteById(this.agentContext,t));case 2:case"end":return r.stop()}},null,this,null,Promise)}},{key:"update",value:function(t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_r(_d[2]).awrap(this.genericRecordsService.update(this.agentContext,t));case 3:r.next=9;break;case 5:throw r.prev=5,r.t0=r.catch(0),this.logger.error('Error while update generic-record',{error:r.t0,content:t.content,errorMessage:r.t0 instanceof Error?r.t0.message:r.t0}),r.t0;case 9:case"end":return r.stop()}},null,this,[[0,5]],Promise)}},{key:"findById",value:function(t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.genericRecordsService.findById(this.agentContext,t));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"findAllByQuery",value:function(t){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.genericRecordsService.findAllByQuery(this.agentContext,t));case 1:case"end":return r.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.genericRecordsService.getAll(this.agentContext));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),t})();c=t([(0,_r(_d[3]).injectable)(),n(1,(0,_r(_d[3]).inject)(_r(_d[4]).InjectionSymbols.Logger)),r("design:paramtypes",[_r(_d[5]).GenericRecordService,Object,_r(_d[6]).AgentContext])],c),e.GenericRecordsApi=c},1935,[7,8,82,1020,1104,1936,1391]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var r=this&&this.__decorate||function(r,t,n,c){var s,o=arguments.length,i=o<3?t:null===c?c=Object.getOwnPropertyDescriptor(t,n):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,n,c);else for(var u=r.length-1;u>=0;u--)(s=r[u])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},t=this&&this.__metadata||function(r,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(r,t)};Object.defineProperty(e,"__esModule",{value:!0}),e.GenericRecordService=void 0;var n=(function(){function r(t){_r(_d[0])(this,r),this.genericRecordsRepository=t}return _r(_d[1])(r,[{key:"save",value:function(r,t){var n,c,s,o;return _r(_d[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return n=t.content,c=t.tags,s=t.id,o=new(_r(_d[3]).GenericRecord)({id:s,content:n,tags:c}),i.prev=2,i.next=5,_r(_d[2]).awrap(this.genericRecordsRepository.save(r,o));case 5:return i.abrupt("return",o);case 8:throw i.prev=8,i.t0=i.catch(2),new(_r(_d[4]).AriesFrameworkError)("Unable to store the genericRecord record with id "+o.id+". Message: "+i.t0);case 11:case"end":return i.stop()}},null,this,[[2,8]],Promise)}},{key:"delete",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[2]).awrap(this.genericRecordsRepository.delete(r,t));case 3:n.next=8;break;case 5:throw n.prev=5,n.t0=n.catch(0),new(_r(_d[4]).AriesFrameworkError)("Unable to delete the genericRecord record with id "+t.id+". Message: "+n.t0);case 8:case"end":return n.stop()}},null,this,[[0,5]],Promise)}},{key:"deleteById",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.genericRecordsRepository.deleteById(r,t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"update",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,_r(_d[2]).awrap(this.genericRecordsRepository.update(r,t));case 3:n.next=8;break;case 5:throw n.prev=5,n.t0=n.catch(0),new(_r(_d[4]).AriesFrameworkError)("Unable to update the genericRecord record with id "+t.id+". Message: "+n.t0);case 8:case"end":return n.stop()}},null,this,[[0,5]],Promise)}},{key:"findAllByQuery",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.genericRecordsRepository.findByQuery(r,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findById",value:function(r,t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.genericRecordsRepository.findById(r,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(r){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.genericRecordsRepository.getAll(r));case 1:case"end":return t.stop()}},null,this,null,Promise)}}]),r})();n=r([(0,_r(_d[5]).injectable)(),t("design:paramtypes",[_r(_d[6]).GenericRecordsRepository])],n),e.GenericRecordService=n},1936,[7,8,82,1937,612,1020,1938]); -__d(function(g,r,i,a,m,_e,d){"use strict";function t(){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}}Object.defineProperty(_e,"__esModule",{value:!0}),_e.GenericRecord=void 0;var e=(function(e){r(d[2])(u,e);var n,c,o=(n=u,c=t(),function(){var t,e=r(d[0])(n);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return r(d[1])(this,t)});function u(t){var e,n,c,l;return r(d[3])(this,u),(e=o.call(this)).type=u.type,t&&(e.id=null!==(n=t.id)&&void 0!==n?n:(0,r(d[4]).uuid)(),e.createdAt=null!==(c=t.createdAt)&&void 0!==c?c:new Date,e.content=t.content,e._tags=null!==(l=t.tags)&&void 0!==l?l:{}),e}return r(d[5])(u,[{key:"getTags",value:function(){return r(d[6])({},this._tags)}}]),u})(r(d[7]).BaseRecord);_e.GenericRecord=e,e.type='GenericRecord'},1937,[14,11,9,7,953,8,4,1097]); -__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(){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(e){return!1}}var t=this&&this.__decorate||function(e,t,r,n){var c,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(i=(o<3?c(i):o>3?c(t,r,i):c(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},n=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.GenericRecordsRepository=void 0;var c=(function(t){_r(_d[2])(o,t);var r,n,c=(r=o,n=e(),function(){var e,t=_r(_d[0])(r);if(n){var c=_r(_d[0])(this).constructor;e=Reflect.construct(t,arguments,c)}else e=t.apply(this,arguments);return _r(_d[1])(this,e)});function o(e,t){return _r(_d[3])(this,o),c.call(this,_r(_d[4]).GenericRecord,e,t)}return _r(_d[5])(o)})(_r(_d[6]).Repository);c=t([(0,_r(_d[7]).injectable)(),n(0,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.StorageService)),r("design:paramtypes",[Object,_r(_d[9]).EventEmitter])],c),_e.GenericRecordsRepository=c},1938,[14,11,9,7,1937,8,1102,1020,1104,1105]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericRecordsModule=void 0;var n=(function(){function n(){r(d[0])(this,n),this.api=r(d[1]).GenericRecordsApi}return r(d[2])(n,[{key:"register",value:function(n){n.registerContextScoped(r(d[1]).GenericRecordsApi),n.registerSingleton(r(d[3]).GenericRecordService),n.registerSingleton(r(d[4]).GenericRecordsRepository)}}]),n})();e.GenericRecordsModule=n},1939,[7,1935,8,1936,1938]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1940,[1941,1367,1942,1943]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},1941,[]); -__d(function(g,_r,_i,a,m,e,_d){"use strict";var t=this&&this.__decorate||function(t,n,r,i){var s,l=arguments.length,o=l<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(o=(l<3?s(o):l>3?s(n,r,o):s(n,r))||o);return l>3&&o&&Object.defineProperty(n,r,o),o},n=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},r=this&&this.__param||function(t,n){return function(r,i){n(r,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletApi=void 0;var i=(function(){function t(n,r,i){_r(_d[0])(this,t),this.storageUpdateService=n,this.logger=i,this.wallet=r.wallet,this.agentContext=r}return _r(_d[1])(t,[{key:"isInitialized",get:function(){return this.wallet.isInitialized}},{key:"isProvisioned",get:function(){return this.wallet.isProvisioned}},{key:"walletConfig",get:function(){return this._walletConfig}},{key:"initialize",value:function(t){var n;return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:if(this.logger.info("Initializing wallet '"+t.id+"'",_r(_d[3])(_r(_d[3])({},t),{key:(null===t||void 0===t?void 0:t.key)?'[*****]':void 0,storage:_r(_d[3])(_r(_d[3])({},null===t||void 0===t?void 0:t.storage),{credentials:(null===(n=null===t||void 0===t?void 0:t.storage)||void 0===n?void 0:n.credentials)?'[*****]':void 0})})),!this.isInitialized){r.next=3;break}throw new(_r(_d[4]).WalletError)('Wallet instance already initialized. Close the currently opened wallet before re-initializing the wallet');case 3:return r.prev=3,r.next=6,_r(_d[2]).awrap(this.open(t));case 6:r.next=16;break;case 8:if(r.prev=8,r.t0=r.catch(3),!(r.t0 instanceof _r(_d[5]).WalletNotFoundError)){r.next=15;break}return r.next=13,_r(_d[2]).awrap(this.createAndOpen(t));case 13:r.next=16;break;case 15:throw r.t0;case 16:case"end":return r.stop()}},null,this,[[3,8]],Promise)}},{key:"createAndOpen",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.wallet.createAndOpen(t));case 2:return this._walletConfig=t,n.next=5,_r(_d[2]).awrap(this.storageUpdateService.setCurrentStorageVersion(this.agentContext,_r(_d[6]).CURRENT_FRAMEWORK_STORAGE_VERSION));case 5:case"end":return n.stop()}},null,this,null,Promise)}},{key:"create",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.createAndOpen(t));case 2:return n.next=4,_r(_d[2]).awrap(this.close());case 4:case"end":return n.stop()}},null,this,null,Promise)}},{key:"open",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.wallet.open(t));case 2:this._walletConfig=t;case 3:case"end":return n.stop()}},null,this,null,Promise)}},{key:"close",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[2]).awrap(this.wallet.close());case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"rotateKey",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.wallet.rotateKey(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"generateNonce",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[2]).awrap(this.wallet.generateNonce());case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"delete",value:function(){return _r(_d[2]).async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_r(_d[2]).awrap(this.wallet.delete());case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"export",value:function(t){return _r(_d[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,_r(_d[2]).awrap(this.wallet.export(t));case 2:case"end":return n.stop()}},null,this,null,Promise)}},{key:"import",value:function(t,n){return _r(_d[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d[2]).awrap(this.wallet.import(t,n));case 2:case"end":return r.stop()}},null,this,null,Promise)}}]),t})();i=t([(0,_r(_d[7]).injectable)(),r(2,(0,_r(_d[7]).inject)(_r(_d[8]).InjectionSymbols.Logger)),n("design:paramtypes",[_r(_d[9]).StorageUpdateService,_r(_d[10]).AgentContext,Object])],i),e.WalletApi=i},1942,[7,8,82,4,1372,1370,1542,1020,1104,1533,1391]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletModule=void 0;var t=(function(){function t(){r(d[0])(this,t),this.api=r(d[1]).WalletApi}return r(d[2])(t,[{key:"register",value:function(t){t.registerContextScoped(r(d[1]).WalletApi)}}]),t})();e.WalletModule=t},1943,[7,1942,8]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e),n(r(d[4]),e),n(r(d[5]),e)},1944,[1501,1505,1945,1498,1950,1951]); -__d(function(g,_r,_i,a,m,e,_d2){"use strict";function t(t,r){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||r&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[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.")}function n(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r=0;u--)(o=t[u])&&(c=(s<3?o(c):s>3?o(n,r,c):o(n,r))||c);return s>3&&c&&Object.defineProperty(n,r,c),c},o=this&&this.__metadata||function(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},s=this&&this.__param||function(t,n){return function(r,i){n(r,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandApi=void 0;var c=['didcomm/aip1','didcomm/aip2;env=rfc19'],u=(function(){function n(t,r,i,o,s,c,u,d,l,h){_r(_d2[0])(this,n),this.messageHandlerRegistry=t,this.didCommDocumentService=r,this.agentContext=h,this.logger=l,this.outOfBandService=i,this.routingService=o,this.connectionsApi=s,this.didCommMessageRepository=c,this.messageSender=u,this.eventEmitter=d,this.registerMessageHandlers(t)}return _r(_d2[1])(n,[{key:"createInvitation",value:function(){var t,n,r,i,o,s,u,d,l,h,p,f,v,y,x,b,k,w,C,O,S,I=arguments;return _r(_d2[2]).async(function(B){for(;;)switch(B.prev=B.next){case 0:if(t=I.length>0&&void 0!==I[0]?I[0]:{},d=null!==(n=t.multiUseInvitation)&&void 0!==n&&n,l=null===(r=t.handshake)||void 0===r||r,h=t.handshakeProtocols,p=null!==(i=t.autoAcceptConnection)&&void 0!==i?i:this.connectionsApi.config.autoAcceptConnections,f=t.messages&&t.messages.length>0?t.messages:void 0,v=null!==(o=t.label)&&void 0!==o?o:this.agentContext.config.label,y=null!==(s=t.imageUrl)&&void 0!==s?s:this.agentContext.config.connectionImageUrl,x=t.appendedAttachments&&t.appendedAttachments.length>0?t.appendedAttachments:void 0,l||f){B.next=11;break}throw new(_r(_d2[3]).AriesFrameworkError)('One or both of handshake_protocols and requests~attach MUST be included in the message.');case 11:if(l||!h){B.next=13;break}throw new(_r(_d2[3]).AriesFrameworkError)("Attribute 'handshake' can not be 'false' when 'handshakeProtocols' is defined.");case 13:if(!f||!d){B.next=15;break}throw new(_r(_d2[3]).AriesFrameworkError)("Attribute 'multiUseInvitation' can not be 'true' when 'messages' is defined.");case 15:if(l&&(h?(this.assertHandshakeProtocols(h),b=h):b=this.getSupportedHandshakeProtocols()),null===(u=t.routing)||void 0===u){B.next=20;break}B.t0=u,B.next=23;break;case 20:return B.next=22,_r(_d2[2]).awrap(this.routingService.getRouting(this.agentContext,{}));case 22:B.t0=B.sent;case 23:return k=B.t0,w=k.endpoints.map(function(t,n){return new(_r(_d2[4]).OutOfBandDidCommService)({id:"#inline-"+n,serviceEndpoint:t,recipientKeys:[k.recipientKey].map(function(t){return new(_r(_d2[5]).DidKey)(t).did}),routingKeys:k.routingKeys.map(function(t){return new(_r(_d2[5]).DidKey)(t).did})})}),C={label:v,goal:t.goal,goalCode:t.goalCode,imageUrl:y,accept:c,services:w,handshakeProtocols:b,appendedAttachments:x},O=new(_r(_d2[6]).OutOfBandInvitation)(C),f&&f.forEach(function(t){t.service&&(t.service=void 0),O.addRequest(t)}),S=new(_r(_d2[7]).OutOfBandRecord)({mediatorId:k.mediatorId,role:_r(_d2[8]).OutOfBandRole.Sender,state:_r(_d2[9]).OutOfBandState.AwaitResponse,alias:t.alias,outOfBandInvitation:O,reusable:d,autoAcceptConnection:p,tags:{recipientKeyFingerprints:w.reduce(function(t,n){var r=n.recipientKeys;return[].concat(_r(_d2[10])(t),_r(_d2[10])(r))},[]).map(function(t){return _r(_d2[5]).DidKey.fromDid(t).key.fingerprint})}}),B.next=31,_r(_d2[2]).awrap(this.outOfBandService.save(this.agentContext,S));case 31:return this.outOfBandService.emitStateChangedEvent(this.agentContext,S,null),B.abrupt("return",S);case 33:case"end":return B.stop()}},null,this,null,Promise)}},{key:"createLegacyInvitation",value:function(){var t,n,r=arguments;return _r(_d2[2]).async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},i.next=3,_r(_d2[2]).awrap(this.createInvitation(_r(_d2[11])(_r(_d2[11])({},t),{handshakeProtocols:[_r(_d2[12]).HandshakeProtocol.Connections]})));case 3:return n=i.sent,i.abrupt("return",{outOfBandRecord:n,invitation:(0,_r(_d2[13]).convertToOldInvitation)(n.outOfBandInvitation)});case 5:case"end":return i.stop()}},null,this,null,Promise)}},{key:"createLegacyConnectionlessInvitation",value:function(t){var n;return _r(_d2[2]).async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,_r(_d2[2]).awrap(this.routingService.getRouting(this.agentContext));case 2:return n=r.sent,t.message.service=new(_r(_d2[14]).ServiceDecorator)({serviceEndpoint:n.endpoints[0],recipientKeys:[n.recipientKey].map(function(t){return t.publicKeyBase58}),routingKeys:n.routingKeys.map(function(t){return t.publicKeyBase58})}),r.next=6,_r(_d2[2]).awrap(this.didCommMessageRepository.saveOrUpdateAgentMessage(this.agentContext,{agentMessage:t.message,associatedRecordId:t.recordId,role:_r(_d2[15]).DidCommMessageRole.Sender}));case 6:return r.abrupt("return",{message:t.message,invitationUrl:t.domain+"?d_m="+_r(_d2[16]).JsonEncoder.toBase64URL(_r(_d2[16]).JsonTransformer.toJSON(t.message))});case 7:case"end":return r.stop()}},null,this,null,Promise)}},{key:"receiveInvitationFromUrl",value:function(t){var n,r,i=arguments;return _r(_d2[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},o.next=3,_r(_d2[2]).awrap(this.parseInvitation(t));case 3:return r=o.sent,o.abrupt("return",this.receiveInvitation(r,n));case 5:case"end":return o.stop()}},null,this,null,Promise)}},{key:"parseInvitation",value:function(t){return _r(_d2[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,_r(_d2[17]).parseInvitationShortUrl)(t,this.agentContext.config.agentDependencies));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"receiveInvitation",value:function(n){var r,i,o,s,c,u,d,l,h,p,f,v,y,x,b,k,w,C,O,S,I,B,A,R,P=arguments;return _r(_d2[2]).async(function(E){for(;;)switch(E.prev=E.next){case 0:if(r=P.length>1&&void 0!==P[1]?P[1]:{},d=n instanceof _r(_d2[6]).OutOfBandInvitation?n:(0,_r(_d2[13]).convertToNewInvitation)(n),l=d.handshakeProtocols,h=r.routing,p=null===(i=r.autoAcceptInvitation)||void 0===i||i,f=null===(o=r.autoAcceptConnection)||void 0===o||o,v=null!==(s=r.reuseConnection)&&void 0!==s&&s,y=null!==(c=r.label)&&void 0!==c?c:this.agentContext.config.label,x=r.alias,b=null!==(u=r.imageUrl)&&void 0!==u?u:this.agentContext.config.connectionImageUrl,k=d.getRequests(),l&&0!==l.length||k&&0!==(null===k||void 0===k?void 0:k.length)){E.next=13;break}throw new(_r(_d2[3]).AriesFrameworkError)('One or both of handshake_protocols and requests~attach MUST be included in the message.');case 13:return E.next=15,_r(_d2[2]).awrap(this.outOfBandService.findAllByQuery(this.agentContext,{invitationId:d.id,role:_r(_d2[8]).OutOfBandRole.Receiver}));case 15:if(w=E.sent,C=_r(_d2[18])(w,1),!(O=C[0])){E.next=20;break}throw new(_r(_d2[3]).AriesFrameworkError)("An out of band record with invitation "+d.id+" has already been received. Invitations should have a unique id.");case 20:S=[],I=t(d.getServices());case 22:if((B=I()).done){E.next=35;break}if('string'!=typeof(A=B.value)){E.next=32;break}return this.logger.debug("Resolving services for did "+A+"."),E.next=28,_r(_d2[2]).awrap(this.didCommDocumentService.resolveServicesFromDid(this.agentContext,A));case 28:R=E.sent,S.push.apply(S,_r(_d2[10])(R.reduce(function(t,n){var r=n.recipientKeys;return[].concat(_r(_d2[10])(t),_r(_d2[10])(r))},[]).map(function(t){return t.fingerprint}))),E.next=33;break;case 32:S.push.apply(S,_r(_d2[10])(A.recipientKeys.map(function(t){return _r(_d2[5]).DidKey.fromDid(t).key.fingerprint})));case 33:E.next=22;break;case 35:return O=new(_r(_d2[7]).OutOfBandRecord)({role:_r(_d2[8]).OutOfBandRole.Receiver,state:_r(_d2[9]).OutOfBandState.Initial,outOfBandInvitation:d,autoAcceptConnection:f,tags:{recipientKeyFingerprints:S}}),E.next=38,_r(_d2[2]).awrap(this.outOfBandService.save(this.agentContext,O));case 38:if(this.outOfBandService.emitStateChangedEvent(this.agentContext,O,null),!p){E.next=43;break}return E.next=42,_r(_d2[2]).awrap(this.acceptInvitation(O.id,{label:y,alias:x,imageUrl:b,autoAcceptConnection:f,reuseConnection:v,routing:h,timeoutMs:r.acceptInvitationTimeoutMs}));case 42:return E.abrupt("return",E.sent);case 43:return E.abrupt("return",{outOfBandRecord:O});case 44:case"end":return E.stop()}},null,this,null,Promise)}},{key:"acceptInvitation",value:function(t,n){var r,i,o,s,c,u,d,l,h,p,f,v,y,x,b,k,w=this;return _r(_d2[2]).async(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,_r(_d2[2]).awrap(this.outOfBandService.getById(this.agentContext,t));case 2:return i=C.sent,o=i.outOfBandInvitation,s=n.label,c=n.alias,u=n.imageUrl,d=n.autoAcceptConnection,l=n.reuseConnection,h=n.routing,p=o.handshakeProtocols,f=o.getServices(),v=o.getRequests(),y=null!==(r=n.timeoutMs)&&void 0!==r?r:2e4,C.next=11,_r(_d2[2]).awrap(this.findExistingConnection(o));case 11:return x=C.sent,C.next=14,_r(_d2[2]).awrap(this.outOfBandService.updateState(this.agentContext,i,_r(_d2[9]).OutOfBandState.PrepareResponse));case 14:if(!p){C.next=45;break}if(this.logger.debug('Out of band message contains handshake protocols.'),!x||!l){C.next=28;break}if(this.logger.debug("Connection already exists and reuse is enabled. Reusing an existing connection with ID "+x.id+"."),v){C.next=26;break}return this.logger.debug('Out of band message does not contain any request messages.'),C.next=22,_r(_d2[2]).awrap(this.handleHandshakeReuse(i,x));case 22:C.sent?(this.logger.debug("Handshake reuse successful. Reusing existing connection "+x.id+"."),b=x):this.logger.debug("Handshake reuse failed. Not using existing connection "+x.id+"."),C.next=28;break;case 26:this.logger.debug("Reusing existing connection "+x.id+"."),b=x;case 28:if(b){C.next=34;break}return this.logger.debug('Connection does not exist or reuse is disabled. Creating a new connection.'),k=this.getFirstSupportedProtocol(p),C.next=33,_r(_d2[2]).awrap(this.connectionsApi.acceptOutOfBandInvitation(i,{label:s,alias:c,imageUrl:u,autoAcceptConnection:d,protocol:k,routing:h}));case 33:b=C.sent;case 34:if(!v){C.next=42;break}if(this.logger.debug('Out of band message contains request messages.'),!b.isReady){C.next=41;break}return C.next=39,_r(_d2[2]).awrap(this.emitWithConnection(b,v));case 39:C.next=42;break;case 41:this.connectionsApi.returnWhenIsConnected(b.id,{timeoutMs:y}).then(function(t){return w.emitWithConnection(t,v)}).catch(function(t){t instanceof _r(_d2[19]).EmptyError?w.logger.warn("Agent unsubscribed before connection got into "+_r(_d2[12]).DidExchangeState.Completed+" state",t):w.logger.error('Promise waiting for the connection to be complete failed.',t)});case 42:return C.abrupt("return",{outOfBandRecord:i,connectionRecord:b});case 45:if(!v){C.next=55;break}if(this.logger.debug('Out of band message contains only request messages.'),!x){C.next=53;break}return this.logger.debug('Connection already exists.',{connectionId:x.id}),C.next=51,_r(_d2[2]).awrap(this.emitWithConnection(x,v));case 51:C.next=55;break;case 53:return C.next=55,_r(_d2[2]).awrap(this.emitWithServices(f,v));case 55:return C.abrupt("return",{outOfBandRecord:i});case 56:case"end":return C.stop()}},null,this,null,Promise)}},{key:"findByReceivedInvitationId",value:function(t){return _r(_d2[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.outOfBandService.findByReceivedInvitationId(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"findByCreatedInvitationId",value:function(t){return _r(_d2[2]).async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.outOfBandService.findByCreatedInvitationId(this.agentContext,t));case 1:case"end":return n.stop()}},null,this,null,Promise)}},{key:"getAll",value:function(){return this.outOfBandService.getAll(this.agentContext)}},{key:"findAllByQuery",value:function(t){return this.outOfBandService.findAllByQuery(this.agentContext,t)}},{key:"getById",value:function(t){return this.outOfBandService.getById(this.agentContext,t)}},{key:"findById",value:function(t){return this.outOfBandService.findById(this.agentContext,t)}},{key:"deleteById",value:function(t){var n,r,i;return _r(_d2[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,_r(_d2[2]).awrap(this.getById(t));case 2:return n=o.sent,o.next=5,_r(_d2[2]).awrap(this.connectionsApi.findAllByOutOfBandId(t));case 5:if(r=o.sent,!n.mediatorId||0!==r.length&&!n.reusable){o.next=10;break}return i=n.getTags().recipientKeyFingerprints.map(function(t){return _r(_d2[20]).Key.fromFingerprint(t)}),o.next=10,_r(_d2[2]).awrap(this.routingService.removeRouting(this.agentContext,{recipientKeys:i,mediatorId:n.mediatorId}));case 10:return o.abrupt("return",this.outOfBandService.deleteById(this.agentContext,t));case 11:case"end":return o.stop()}},null,this,null,Promise)}},{key:"assertHandshakeProtocols",value:function(t){if(!this.areHandshakeProtocolsSupported(t)){var n=this.getSupportedHandshakeProtocols();throw new(_r(_d2[3]).AriesFrameworkError)("Handshake protocols ["+t+"] are not supported. Supported protocols are ["+n+"]")}}},{key:"areHandshakeProtocolsSupported",value:function(t){var n=this.getSupportedHandshakeProtocols();return t.every(function(t){return n.includes(t)})}},{key:"getSupportedHandshakeProtocols",value:function(){var t=['https://didcomm.org/didexchange','https://didcomm.org/connections'],n=this.messageHandlerRegistry.filterSupportedProtocolsByMessageFamilies(t);if(0===n.length)throw new(_r(_d2[3]).AriesFrameworkError)('There is no handshake protocol supported. Agent can not create a connection.');return t.map(function(t){return n.find(function(n){return n.startsWith(t)})}).filter(function(t){return!!t})}},{key:"getFirstSupportedProtocol",value:function(t){var n=this.getSupportedHandshakeProtocols(),r=t.find(function(t){return n.includes(t)});if(!r)throw new(_r(_d2[3]).AriesFrameworkError)("Handshake protocols ["+t+"] are not supported. Supported protocols are ["+n+"]");return r}},{key:"findExistingConnection",value:function(n){var r,i,o,s,c,u,d,l,h,p;return _r(_d2[2]).async(function(f){for(;;)switch(f.prev=f.next){case 0:this.logger.debug('Searching for an existing connection for out-of-band invitation.',{outOfBandInvitation:n}),r=t(n.invitationDids);case 2:if((i=r()).done){f.next=20;break}return o=i.value,f.next=6,_r(_d2[2]).awrap(this.connectionsApi.findByInvitationDid(o));case 6:if(s=f.sent,this.logger.debug("Retrieved "+s.length+" connections for invitation did "+o),1!==s.length){f.next=13;break}return c=s,u=_r(_d2[18])(c,1),d=u[0],f.abrupt("return",d);case 13:if(!(s.length>1)){f.next=17;break}return this.logger.warn("There is more than one connection created from invitationDid "+o+". Taking the first one."),l=s,h=_r(_d2[18])(l,1),p=h[0],f.abrupt("return",p);case 17:return f.abrupt("return",null);case 18:f.next=2;break;case 20:case"end":return f.stop()}},null,this,null,Promise)}},{key:"emitWithConnection",value:function(t,n){var r,i;return _r(_d2[2]).async(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=this.messageHandlerRegistry.supportedMessageTypes,i=n.find(function(t){var n=(0,_r(_d2[21]).parseMessageType)(t['@type']);return r.find(function(t){return(0,_r(_d2[21]).supportsIncomingMessageType)(n,t)})})){o.next=4;break}throw new(_r(_d2[3]).AriesFrameworkError)('There is no message in requests~attach supported by agent.');case 4:this.logger.debug("Message with type "+i['@type']+" can be processed."),this.eventEmitter.emit(this.agentContext,{type:_r(_d2[22]).AgentEventTypes.AgentMessageReceived,payload:{message:i,connection:t,contextCorrelationId:this.agentContext.contextCorrelationId}});case 6:case"end":return o.stop()}},null,this,null,Promise)}},{key:"emitWithServices",value:function(t,n){var r,i,o,s,c,u,d,l,h,p,f,v;return _r(_d2[2]).async(function(y){for(;;)switch(y.prev=y.next){case 0:if(t&&0!==t.length){y.next=2;break}throw new(_r(_d2[3]).AriesFrameworkError)("There are no services. We can not emit messages");case 2:if(i=this.messageHandlerRegistry.supportedMessageTypes,o=n.find(function(t){var n=(0,_r(_d2[21]).parseMessageType)(t['@type']);return i.find(function(t){return(0,_r(_d2[21]).supportsIncomingMessageType)(n,t)})})){y.next=6;break}throw new(_r(_d2[3]).AriesFrameworkError)('There is no message in requests~attach supported by agent.');case 6:if(this.logger.debug("Message with type "+o['@type']+" can be processed."),u=[],d=_r(_d2[18])(t,1),'string'!=typeof(l=d[0])){y.next=18;break}return y.next=12,_r(_d2[2]).awrap(this.didCommDocumentService.resolveServicesFromDid(this.agentContext,l));case 12:h=y.sent,p=_r(_d2[18])(h,1),(f=p[0])&&(s=f.serviceEndpoint,c=f.recipientKeys.map(function(t){return t.publicKeyBase58}),u=f.routingKeys.map(function(t){return t.publicKeyBase58})||[]),y.next=21;break;case 18:s=l.serviceEndpoint,c=l.recipientKeys.map(_r(_d2[23]).didKeyToVerkey),u=(null===(r=l.routingKeys)||void 0===r?void 0:r.map(_r(_d2[23]).didKeyToVerkey))||[];case 21:if(s&&c){y.next=23;break}throw new(_r(_d2[3]).AriesFrameworkError)('Service not found');case 23:v=new(_r(_d2[14]).ServiceDecorator)({recipientKeys:c,routingKeys:u,serviceEndpoint:s}),o['~service']=_r(_d2[16]).JsonTransformer.toJSON(v),this.eventEmitter.emit(this.agentContext,{type:_r(_d2[22]).AgentEventTypes.AgentMessageReceived,payload:{message:o,contextCorrelationId:this.agentContext.contextCorrelationId}});case 26:case"end":return y.stop()}},null,this,null,Promise)}},{key:"handleHandshakeReuse",value:function(t,n){var r,i,o;return _r(_d2[2]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,_r(_d2[2]).awrap(this.outOfBandService.createHandShakeReuse(this.agentContext,t,n));case 2:return r=s.sent,i=(0,_r(_d2[19]).firstValueFrom)(this.eventEmitter.observable(_r(_d2[24]).OutOfBandEventTypes.HandshakeReused).pipe((0,_r(_d2[22]).filterContextCorrelationId)(this.agentContext.contextCorrelationId),(0,_r(_d2[19]).first)(function(i){return i.payload.reuseThreadId===r.threadId&&i.payload.outOfBandRecord.id===t.id&&i.payload.connectionRecord.id===n.id}),(0,_r(_d2[19]).map)(function(){return!0}),(0,_r(_d2[19]).timeout)(15e3),(0,_r(_d2[19]).catchError)(function(){return(0,_r(_d2[19]).of)(!1)}))),o=new(_r(_d2[25]).OutboundMessageContext)(r,{agentContext:this.agentContext,connection:n}),s.next=7,_r(_d2[2]).awrap(this.messageSender.sendMessage(o));case 7:return s.abrupt("return",i);case 8:case"end":return s.stop()}},null,this,null,Promise)}},{key:"registerMessageHandlers",value:function(t){t.registerMessageHandler(new(_r(_d2[26]).HandshakeReuseHandler)(this.outOfBandService)),t.registerMessageHandler(new(_r(_d2[27]).HandshakeReuseAcceptedHandler)(this.outOfBandService))}}]),n})();u=i([(0,_r(_d2[28]).injectable)(),s(8,(0,_r(_d2[28]).inject)(_r(_d2[29]).InjectionSymbols.Logger)),o("design:paramtypes",[_r(_d2[30]).MessageHandlerRegistry,_r(_d2[31]).DidCommDocumentService,_r(_d2[32]).OutOfBandService,_r(_d2[33]).RoutingService,_r(_d2[12]).ConnectionsApi,_r(_d2[15]).DidCommMessageRepository,_r(_d2[34]).MessageSender,_r(_d2[35]).EventEmitter,Object,_r(_d2[36]).AgentContext])],u),e.OutOfBandApi=u},1945,[7,8,82,612,1503,1420,1501,1506,1468,1469,42,4,1426,1620,985,1533,993,1946,31,1106,990,942,1346,986,1499,623,1947,1949,1020,1104,1057,1415,1498,1508,1345,1105,1391]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseInvitationShortUrl=e.oobInvitationFromShortUrl=e.parseInvitationUrl=void 0;var t=function(t,n){var o,s,u;return r(d[0]).async(function(c){for(;;)switch(c.prev=c.next){case 0:return o=new(r(d[1]).AbortController),s=setTimeout(function(){return o.abort()},15e3),c.prev=2,c.next=5,r(d[0]).awrap(n.fetch(t,{method:'GET',headers:{Accept:'application/json','Content-Type':'application/json'}}));case 5:u=c.sent,c.next=11;break;case 8:throw c.prev=8,c.t0=c.catch(2),new(r(d[2]).AriesFrameworkError)("Get request failed on provided url: "+c.t0.message,{cause:c.t0});case 11:return clearTimeout(s),c.abrupt("return",u);case 13:case"end":return c.stop()}},null,null,[[2,8]],Promise)};e.parseInvitationUrl=function(t){var n=(0,r(d[3]).parseUrl)(t).query;if(n.oob)return r(d[4]).OutOfBandInvitation.fromUrl(t);if(n.c_i||n.d_m){var o=r(d[5]).ConnectionInvitationMessage.fromUrl(t);return(0,r(d[6]).convertToNewInvitation)(o)}throw new(r(d[2]).AriesFrameworkError)('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`.')};e.oobInvitationFromShortUrl=function(t){var n,o,s,u,c,l,p;return r(d[0]).async(function(v){for(;;)switch(v.prev=v.next){case 0:if(!t){v.next=25;break}if(!((null===(n=t.headers.get('Content-Type'))||void 0===n?void 0:n.startsWith('application/json'))&&t.ok)){v.next=21;break}return v.next=4,r(d[0]).awrap(t.json());case 4:if(o=v.sent,s=(0,r(d[7]).parseMessageType)(o['@type']),!(0,r(d[7]).supportsIncomingMessageType)(s,r(d[4]).OutOfBandInvitation.type)){v.next=12;break}return u=r(d[8]).JsonTransformer.fromJSON(o,r(d[4]).OutOfBandInvitation),r(d[9]).MessageValidator.validateSync(u),v.abrupt("return",u);case 12:if(!(0,r(d[7]).supportsIncomingMessageType)(s,r(d[5]).ConnectionInvitationMessage.type)){v.next=18;break}return c=r(d[8]).JsonTransformer.fromJSON(o,r(d[5]).ConnectionInvitationMessage),r(d[9]).MessageValidator.validateSync(c),v.abrupt("return",(0,r(d[6]).convertToNewInvitation)(c));case 18:throw new(r(d[2]).AriesFrameworkError)("Invitation with '@type' "+s.messageTypeUri+" not supported.");case 19:v.next=25;break;case 21:if(!t.url){v.next=25;break}return p=t.headers.get('Location'),l=302!==t.status&&301!==t.status||!p?t.url:p,v.abrupt("return",(0,e.parseInvitationUrl)(l));case 25:throw new(r(d[2]).AriesFrameworkError)('HTTP request time out or did not receive valid response');case 26:case"end":return v.stop()}},null,null,null,Promise)};e.parseInvitationShortUrl=function(n,o){var s,u,c;return r(d[0]).async(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(s=(0,r(d[3]).parseUrl)(n).query).oob){l.next=6;break}return u=r(d[4]).OutOfBandInvitation.fromUrl(n),l.abrupt("return",u);case 6:if(!s.c_i&&!s.d_m){l.next=11;break}return c=r(d[5]).ConnectionInvitationMessage.fromUrl(n),l.abrupt("return",(0,r(d[6]).convertToNewInvitation)(c));case 11:return l.prev=11,l.t0=e.oobInvitationFromShortUrl,l.next=15,r(d[0]).awrap(t(n,o));case 15:return l.t1=l.sent,l.abrupt("return",(0,l.t0)(l.t1));case 19:throw l.prev=19,l.t2=l.catch(11),new(r(d[2]).AriesFrameworkError)('InvitationUrl is invalid. It needs to contain one, and only one, of the following parameters: `oob`, `c_i` or `d_m`, or be valid shortened URL');case 22:case"end":return l.stop()}},null,null,[[11,19]],Promise)}},1946,[82,1590,612,1429,1501,1426,1620,942,626,661]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},1947,[1948]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HandshakeReuseHandler=void 0;var n=(function(){function n(t){r(d[0])(this,n),this.supportedMessages=[r(d[1]).HandshakeReuseMessage],this.outOfBandService=t}return r(d[2])(n,[{key:"handle",value:function(n){var t,s;return r(d[3]).async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=n.assertReadyConnection(),u.next=3,r(d[3]).awrap(this.outOfBandService.processHandshakeReuse(n));case 3:return s=u.sent,u.abrupt("return",new(r(d[4]).OutboundMessageContext)(s,{agentContext:n.agentContext,connection:t}));case 5:case"end":return u.stop()}},null,this,null,Promise)}}]),n})();e.HandshakeReuseHandler=n},1948,[7,1504,8,82,623]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HandshakeReuseAcceptedHandler=void 0;var n=(function(){function n(s){r(d[0])(this,n),this.supportedMessages=[r(d[1]).HandshakeReuseAcceptedMessage],this.outOfBandService=s}return r(d[2])(n,[{key:"handle",value:function(n){return r(d[3]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return n.assertReadyConnection(),s.next=3,r(d[3]).awrap(this.outOfBandService.processHandshakeReuseAccepted(n));case 3:case"end":return s.stop()}},null,this,null,Promise)}}]),n})();e.HandshakeReuseAcceptedHandler=n},1949,[7,1500,8,82]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfBandModule=void 0;var t=(function(){function t(){r(d[0])(this,t),this.api=r(d[1]).OutOfBandApi}return r(d[2])(t,[{key:"register",value:function(t,n){t.registerContextScoped(r(d[1]).OutOfBandApi),t.registerSingleton(r(d[3]).OutOfBandService),t.registerSingleton(r(d[4]).OutOfBandRepository),n.register(new(r(d[5]).Protocol)({id:'https://didcomm.org/out-of-band/1.1',roles:['sender','receiver']}))}}]),t})();e.OutOfBandModule=t},1950,[7,1945,8,1498,1505,623]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&("get"in u?n.__esModule:!u.writable&&!u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e),n(r(d[1]),e),n(r(d[2]),e),n(r(d[3]),e)},1951,[1468,1469,1503,1499]); -__d(function(_g,_r,_i3,_a2,_m,_e,_d2){"use strict";function e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0;c--)(a=e[c])&&(s=(o<3?a(s):o>3?a(r,t,s):a(r,t))||s);return o>3&&s&&Object.defineProperty(r,t,s),s},o=this&&this.__metadata||function(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)},s=this&&this.__param||function(e,r){return function(t,n){r(t,n,e)}},c=this&&this.__rest||function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a1||c(e,r)})})}function c(e,r){try{(t=a[e](r)).value instanceof u?Promise.resolve(t.value.v).then(i,l):d(o[0][2],t)}catch(e){d(o[0][3],e)}var t}function i(e){c("next",e)}function l(e){c("throw",e)}function d(e,r){e(r),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.IndyStorageService=void 0;var d=n=(function(){function r(e){_r(_d2[0])(this,r),this.indy=e.indy}return _r(_d2[1])(r,[{key:"transformToRecordTagValues",value:function(e){for(var r={},t=0,n=Object.entries(e);t=0;u--)(o=t[u])&&(c=(r<3?o(c):r>3?o(s,n,c):o(s,n))||c);return r>3&&c&&Object.defineProperty(s,n,c),c},s=this&&this.__metadata||function(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)},n=this&&this.__param||function(t,s){return function(n,i){s(n,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryMessageRepository=void 0;var i=(function(){function t(s){_r(_d[0])(this,t),this.messages={},this.logger=s}return _r(_d[1])(t,[{key:"getAvailableMessageCount",value:function(t){return this.messages[t]?this.messages[t].length:0}},{key:"takeFromQueue",value:function(t,s,n){if(!this.messages[t])return[];var i=null!==s&&void 0!==s?s:this.messages[t].length;return this.logger.debug("Taking "+i+" messages from queue for connection "+t),n?this.messages[t].slice(0,i):this.messages[t].splice(0,i)}},{key:"add",value:function(t,s){this.messages[t]||(this.messages[t]=[]),this.messages[t].push(s)}}]),t})();i=t([(0,_r(_d[2]).injectable)(),n(0,(0,_r(_d[2]).inject)(_r(_d[3]).InjectionSymbols.Logger)),s("design:paramtypes",[Object])],i),e.InMemoryMessageRepository=i},1953,[7,8,1020,1104]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseAgent=void 0;var t=(function(){function t(n,s){r(d[0])(this,t),this._isInitialized=!1,this.dependencyManager=s,this.agentConfig=n,this.logger=this.agentConfig.logger,this.logger.info('Creating agent with config',{agentConfig:n.toJSON()}),this.agentConfig.walletConfig||this.logger.warn("Wallet config has not been set on the agent config. Make sure to initialize the wallet yourself before initializing the agent, or provide the required wallet configuration in the agent constructor"),this.eventEmitter=this.dependencyManager.resolve(r(d[1]).EventEmitter),this.featureRegistry=this.dependencyManager.resolve(r(d[2]).FeatureRegistry),this.messageSender=this.dependencyManager.resolve(r(d[3]).MessageSender),this.messageReceiver=this.dependencyManager.resolve(r(d[4]).MessageReceiver),this.transportService=this.dependencyManager.resolve(r(d[5]).TransportService),this.agentContext=this.dependencyManager.resolve(r(d[6]).AgentContext),this.connections=this.dependencyManager.resolve(r(d[7]).ConnectionsApi),this.credentials=this.dependencyManager.resolve(r(d[8]).CredentialsApi),this.proofs=this.dependencyManager.resolve(r(d[9]).ProofsApi),this.mediator=this.dependencyManager.resolve(r(d[10]).MediatorApi),this.mediationRecipient=this.dependencyManager.resolve(r(d[10]).RecipientApi),this.basicMessages=this.dependencyManager.resolve(r(d[11]).BasicMessagesApi),this.genericRecords=this.dependencyManager.resolve(r(d[12]).GenericRecordsApi),this.ledger=this.dependencyManager.resolve(r(d[13]).LedgerApi),this.discovery=this.dependencyManager.resolve(r(d[14]).DiscoverFeaturesApi),this.dids=this.dependencyManager.resolve(r(d[15]).DidsApi),this.wallet=this.dependencyManager.resolve(r(d[16]).WalletApi),this.oob=this.dependencyManager.resolve(r(d[17]).OutOfBandApi);var o=[this.connections,this.credentials,this.proofs,this.mediator,this.mediationRecipient,this.basicMessages,this.genericRecords,this.ledger,this.discovery,this.dids,this.wallet,this.oob];this.modules=(0,r(d[18]).getAgentApi)(this.dependencyManager,o)}return r(d[19])(t,[{key:"isInitialized",get:function(){return this._isInitialized&&this.wallet.isInitialized}},{key:"initialize",value:function(){var t,n,s,o,c,l,h;return r(d[20]).async(function(p){for(;;)switch(p.prev=p.next){case 0:if(t=this.agentConfig,n=t.publicDidSeed,s=t.walletConfig,!this._isInitialized){p.next=3;break}throw new(r(d[21]).AriesFrameworkError)('Agent already initialized. Currently it is not supported to re-initialize an already initialized agent.');case 3:if(this.wallet.isInitialized||!s){p.next=8;break}return p.next=6,r(d[20]).awrap(this.wallet.initialize(s));case 6:p.next=10;break;case 8:if(this.wallet.isInitialized){p.next=10;break}throw new(r(d[22]).WalletError)("Wallet config has not been set on the agent config. Make sure to initialize the wallet yourself before initializing the agent, or provide the required wallet configuration in the agent constructor");case 10:return o=this.dependencyManager.resolve(r(d[23]).StorageUpdateService),p.next=13,r(d[20]).awrap(o.isUpToDate(this.agentContext));case 13:if(c=p.sent,this.logger.info("Agent storage is "+(c?'':'not ')+"up to date."),c||!this.agentConfig.autoUpdateStorageOnStartup){p.next=23;break}return l=new(r(d[24]).UpdateAssistant)(this,r(d[25]).DEFAULT_UPDATE_CONFIG),p.next=19,r(d[20]).awrap(l.initialize());case 19:return p.next=21,r(d[20]).awrap(l.update());case 21:p.next=30;break;case 23:if(c){p.next=30;break}return p.next=26,r(d[20]).awrap(o.getCurrentStorageVersion(this.agentContext));case 26:return h=p.sent,p.next=29,r(d[20]).awrap(this.wallet.close());case 29:throw new(r(d[21]).AriesFrameworkError)("Current agent storage is not up to date. To prevent the framework state from getting corrupted the agent initialization is aborted. Make sure to update the agent storage (currently at "+h+") to the latest version ("+r(d[24]).UpdateAssistant.frameworkStorageVersion+"). You can also downgrade your version of Aries Framework JavaScript.");case 30:if(!n){p.next=33;break}return p.next=33,r(d[20]).awrap(this.agentContext.wallet.initPublicDid({seed:n}));case 33:case"end":return p.stop()}},null,this,null,Promise)}},{key:"publicDid",get:function(){return this.agentContext.wallet.publicDid}},{key:"receiveMessage",value:function(t,n){return r(d[20]).async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,r(d[20]).awrap(this.messageReceiver.receiveMessage(t,{session:n,contextCorrelationId:this.agentContext.contextCorrelationId}));case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},null,this,null,Promise)}},{key:"injectionContainer",get:function(){return this.dependencyManager.container}},{key:"config",get:function(){return this.agentConfig}},{key:"context",get:function(){return this.agentContext}}]),t})();e.BaseAgent=t},1954,[7,1105,1056,1345,611,1344,1392,1426,1531,1916,1552,1920,1934,1360,1593,1420,1940,1944,1530,8,82,612,1368,1533,1631,1542]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useAnimatedComponents=e.AnimatedComponentsProvider=e.AnimatedComponentsContext=void 0;var n=r(d[0]),t=(0,n.createContext)(r(d[1]).animatedComponents);e.AnimatedComponentsContext=t;var o=t.Provider;e.AnimatedComponentsProvider=o;e.useAnimatedComponents=function(){return(0,n.useContext)(t)}},1955,[15,1956]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.animatedComponents=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),f=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),C=r(d[0])(r(d[8])),L={ButtonLoading:n.default,ConnectionLoading:t.default,CredentialAdded:o.default,CredentialPending:f.default,LoadingIndicator:l.default,RecordLoading:u.default,SendingProof:c.default,SentProof:C.default};e.animatedComponents=L},1956,[3,1957,2175,2178,2183,2184,2187,2188,2190]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[0])),n=r(d[1]),u=r(d[2])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var f=function(){var o=(0,r(d[4]).useTheme)().ColorPallet,f=(0,t.useRef)(new n.Animated.Value(0)).current,l={toValue:1,duration:2e3,useNativeDriver:!0},c=f.interpolate({inputRange:[0,1],outputRange:['0deg','360deg']});return(0,t.useEffect)(function(){n.Animated.loop(n.Animated.timing(f,l)).start()},[f]),t.default.createElement(n.Animated.View,{style:[{transform:[{rotate:c}]}]},t.default.createElement(u.default,{style:{color:o.brand.icon},size:35,name:"refresh"}))};e.default=f},1957,[15,18,3,1958,1960]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourceSync=e.getImageSource=e.default=e.Button=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),o=(0,t.default)(u.default,'Material Icons','MaterialIcons.ttf'),c=o;e.default=c;var n=o.Button,S=o.getImageSource,l=o.getImageSourceSync;e.getImageSourceSync=l,e.getImageSource=S,e.Button=n},1958,[3,587,1959]); -__d(function(e,o,t,a,r,i,n){r.exports={360:58743,"10k":59729,"10mp":59730,"11mp":59731,"12mp":59732,"13mp":59733,"14mp":59734,"15mp":59735,"16mp":59736,"17mp":59737,"18mp":59738,"19mp":59739,"1k":59740,"1k-plus":59741,"20mp":59742,"21mp":59743,"22mp":59744,"23mp":59745,"24mp":59746,"2k":59747,"2k-plus":59748,"2mp":59749,"3d-rotation":59469,"3k":59750,"3k-plus":59751,"3mp":59752,"4k":57458,"4k-plus":59753,"4mp":59754,"5g":61240,"5k":59755,"5k-plus":59756,"5mp":59757,"6-ft-apart":61982,"6k":59758,"6k-plus":59759,"6mp":59760,"7k":59761,"7k-plus":59762,"7mp":59763,"8k":59764,"8k-plus":59765,"8mp":59766,"9k":59767,"9k-plus":59768,"9mp":59769,"ac-unit":60219,"access-alarm":57744,"access-alarms":57745,"access-time":57746,accessibility:59470,"accessibility-new":59692,accessible:59668,"accessible-forward":59700,"account-balance":59471,"account-balance-wallet":59472,"account-box":59473,"account-circle":59475,"account-tree":59770,"ad-units":61241,adb:58894,add:57669,"add-a-photo":58425,"add-alarm":57747,"add-alert":57347,"add-box":57670,"add-business":59177,"add-call":57576,"add-chart":59771,"add-circle":57671,"add-circle-outline":57672,"add-comment":57958,"add-ic-call":59772,"add-link":57720,"add-location":58727,"add-location-alt":61242,"add-moderator":59773,"add-photo-alternate":58430,"add-road":61243,"add-shopping-cart":59476,"add-task":62010,"add-to-drive":58972,"add-to-home-screen":57854,"add-to-photos":58269,"add-to-queue":57436,addchart:61244,adjust:58270,"admin-panel-settings":61245,agriculture:60025,"airline-seat-flat":58928,"airline-seat-flat-angled":58929,"airline-seat-individual-suite":58930,"airline-seat-legroom-extra":58931,"airline-seat-legroom-normal":58932,"airline-seat-legroom-reduced":58933,"airline-seat-recline-extra":58934,"airline-seat-recline-normal":58935,"airplanemode-active":57749,"airplanemode-inactive":57748,"airplanemode-off":57748,"airplanemode-on":57749,airplay:57429,"airport-shuttle":60220,alarm:59477,"alarm-add":59478,"alarm-off":59479,"alarm-on":59480,album:57369,"align-horizontal-center":57359,"align-horizontal-left":57357,"align-horizontal-right":57360,"align-vertical-bottom":57365,"align-vertical-center":57361,"align-vertical-top":57356,"all-inbox":59775,"all-inclusive":60221,"all-out":59659,"alt-route":61828,"alternate-email":57574,"amp-stories":59923,analytics:61246,anchor:61901,android:59481,animation:59164,announcement:59482,apartment:59968,api:61879,"app-blocking":61247,"app-registration":61248,"app-settings-alt":61249,approval:59778,apps:58819,architecture:59963,archive:57673,"arrow-back":58820,"arrow-back-ios":58848,"arrow-circle-down":61825,"arrow-circle-up":61826,"arrow-downward":58843,"arrow-drop-down":58821,"arrow-drop-down-circle":58822,"arrow-drop-up":58823,"arrow-forward":58824,"arrow-forward-ios":58849,"arrow-left":58846,"arrow-right":58847,"arrow-right-alt":59713,"arrow-upward":58840,"art-track":57440,article:61250,"aspect-ratio":59483,assessment:59484,assignment:59485,"assignment-ind":59486,"assignment-late":59487,"assignment-return":59488,"assignment-returned":59489,"assignment-turned-in":59490,assistant:58271,"assistant-direction":59784,"assistant-navigation":59785,"assistant-photo":58272,atm:58739,"attach-email":59998,"attach-file":57894,"attach-money":57895,attachment:58044,attractions:59986,audiotrack:58273,"auto-awesome":58975,"auto-awesome-mosaic":58976,"auto-awesome-motion":58977,"auto-delete":59980,"auto-fix-high":58979,"auto-fix-normal":58980,"auto-fix-off":58981,"auto-stories":58982,autorenew:59491,"av-timer":57371,"baby-changing-station":61851,backpack:61852,backspace:57674,backup:59492,"backup-table":61251,badge:60007,"bakery-dining":59987,ballot:57714,"bar-chart":57963,"batch-prediction":61685,bathtub:59969,"battery-alert":57756,"battery-charging-full":57763,"battery-full":57764,"battery-std":57765,"battery-unknown":57766,"beach-access":60222,bedtime:61252,beenhere:58669,bento:61940,"bike-scooter":61253,biotech:59962,block:57675,"block-flipped":61254,bluetooth:57767,"bluetooth-audio":58895,"bluetooth-connected":57768,"bluetooth-disabled":57769,"bluetooth-searching":57770,"blur-circular":58274,"blur-linear":58275,"blur-off":58276,"blur-on":58277,bolt:59915,book:59493,"book-online":61975,bookmark:59494,"bookmark-border":59495,"bookmark-outline":59495,bookmarks:59787,"border-all":57896,"border-bottom":57897,"border-clear":57898,"border-color":57899,"border-horizontal":57900,"border-inner":57901,"border-left":57902,"border-outer":57903,"border-right":57904,"border-style":57905,"border-top":57906,"border-vertical":57907,"branding-watermark":57451,"breakfast-dining":59988,"brightness-1":58278,"brightness-2":58279,"brightness-3":58280,"brightness-4":58281,"brightness-5":58282,"brightness-6":58283,"brightness-7":58284,"brightness-auto":57771,"brightness-high":57772,"brightness-low":57773,"brightness-medium":57774,"broken-image":58285,"browser-not-supported":61255,"brunch-dining":60019,brush:58286,"bubble-chart":59101,"bug-report":59496,build:59497,"build-circle":61256,"burst-mode":58428,"bus-alert":59791,business:57519,"business-center":60223,cached:59498,cake:59369,calculate:59999,"calendar-today":59701,"calendar-view-day":59702,call:57520,"call-end":57521,"call-made":57522,"call-merge":57523,"call-missed":57524,"call-missed-outgoing":57572,"call-received":57525,"call-split":57526,"call-to-action":57452,camera:58287,"camera-alt":58288,"camera-enhance":59644,"camera-front":58289,"camera-rear":58290,"camera-roll":58291,campaign:61257,cancel:58825,"cancel-presentation":57577,"cancel-schedule-send":59961,"car-rental":59989,"car-repair":59990,"card-giftcard":59638,"card-membership":59639,"card-travel":59640,carpenter:61944,cases:59794,casino:60224,cast:58119,"cast-connected":58120,"cast-for-education":61420,category:58740,celebration:60005,"cell-wifi":57580,"center-focus-strong":58292,"center-focus-weak":58293,"change-history":59499,"charging-station":61853,chat:57527,"chat-bubble":57546,"chat-bubble-outline":57547,check:58826,"check-box":59444,"check-box-outline-blank":59445,"check-circle":59500,"check-circle-outline":59693,checkroom:61854,"chevron-left":58827,"chevron-right":58828,"child-care":60225,"child-friendly":60226,"chrome-reader-mode":59501,circle:61258,"circle-notifications":59796,class:59502,"clean-hands":61983,"cleaning-services":61695,clear:57676,"clear-all":57528,close:58829,"close-fullscreen":61903,"closed-caption":57372,"closed-caption-disabled":61916,"closed-caption-off":59798,cloud:58045,"cloud-circle":58046,"cloud-done":58047,"cloud-download":58048,"cloud-off":58049,"cloud-queue":58050,"cloud-upload":58051,code:59503,collections:58294,"collections-bookmark":58417,"color-lens":58295,colorize:58296,comment:57529,"comment-bank":59982,commute:59712,compare:58297,"compare-arrows":59669,"compass-calibration":58748,compress:59725,computer:58122,"confirmation-num":58936,"confirmation-number":58936,"connect-without-contact":61987,"connected-tv":59800,construction:59964,"contact-mail":57552,"contact-page":61998,"contact-phone":57551,"contact-support":59724,contactless:60017,contacts:57530,"content-copy":57677,"content-cut":57678,"content-paste":57679,"control-camera":57460,"control-point":58298,"control-point-duplicate":58299,copyright:59660,coronavirus:61985,"corporate-fare":61904,countertops:61943,create:57680,"create-new-folder":58060,"credit-card":59504,crop:58302,"crop-16-9":58300,"crop-3-2":58301,"crop-5-4":58303,"crop-7-5":58304,"crop-din":58305,"crop-free":58306,"crop-landscape":58307,"crop-original":58308,"crop-portrait":58309,"crop-rotate":58423,"crop-square":58310,dangerous:59802,dashboard:59505,"dashboard-customize":59803,"data-usage":57775,"date-range":59670,deck:59970,dehaze:58311,delete:59506,"delete-forever":59691,"delete-outline":59694,"delete-sweep":57708,"delivery-dining":60018,"departure-board":58742,description:59507,"design-services":61706,"desktop-access-disabled":59805,"desktop-mac":58123,"desktop-windows":58124,details:58312,"developer-board":58125,"developer-mode":57776,"device-hub":58165,"device-thermostat":57855,"device-unknown":58169,devices:57777,"devices-other":58167,"dialer-sip":57531,dialpad:57532,"dinner-dining":59991,directions:58670,"directions-bike":58671,"directions-boat":58674,"directions-bus":58672,"directions-car":58673,"directions-ferry":58674,"directions-off":61711,"directions-railway":58676,"directions-run":58726,"directions-subway":58675,"directions-train":58676,"directions-transit":58677,"directions-walk":58678,"dirty-lens":61259,"disabled-by-default":62e3,"disc-full":58896,"dnd-forwardslash":58897,dns:59509,"do-not-disturb":58898,"do-not-disturb-alt":58897,"do-not-disturb-off":58947,"do-not-disturb-on":58948,"do-not-step":61855,"do-not-touch":61872,dock:58126,domain:59374,"domain-disabled":57583,"domain-verification":61260,done:59510,"done-all":59511,"done-outline":59695,"donut-large":59671,"donut-small":59672,"double-arrow":59984,drafts:57681,"drag-handle":57949,"drag-indicator":59717,"drive-eta":58899,"drive-file-move":58997,"drive-file-move-outline":59809,"drive-file-rename-outline":59810,"drive-folder-upload":59811,dry:61875,"dry-cleaning":59992,duo:59813,dvr:57778,"dynamic-feed":59924,"dynamic-form":61887,east:61919,eco:59957,edit:58313,"edit-attributes":58744,"edit-location":58728,"edit-off":59728,"edit-road":61261,eject:59643,elderly:61978,"electric-bike":60187,"electric-car":60188,"electric-moped":60189,"electric-rickshaw":60190,"electric-scooter":60191,"electrical-services":61698,elevator:61856,email:57534,"emoji-emotions":59938,"emoji-events":59939,"emoji-flags":59930,"emoji-food-beverage":59931,"emoji-nature":59932,"emoji-objects":59940,"emoji-people":59933,"emoji-symbols":59934,"emoji-transportation":59935,engineering:59965,"enhance-photo-translate":59644,"enhanced-encryption":58943,equalizer:57373,error:57344,"error-outline":57345,escalator:61857,"escalator-warning":61868,euro:59925,"euro-symbol":59686,"ev-station":58733,event:59512,"event-available":58900,"event-busy":58901,"event-note":58902,"event-seat":59651,"exit-to-app":59513,expand:59727,"expand-less":58830,"expand-more":58831,explicit:57374,explore:59514,"explore-off":59816,exposure:58314,"exposure-minus-1":58315,"exposure-minus-2":58316,"exposure-neg-1":58315,"exposure-neg-2":58316,"exposure-plus-1":58317,"exposure-plus-2":58318,"exposure-zero":58319,extension:59515,face:59516,"face-retouching-natural":61262,facebook:62004,"fact-check":61637,"family-restroom":61858,"fast-forward":57375,"fast-rewind":57376,fastfood:58746,favorite:59517,"favorite-border":59518,"favorite-outline":59518,"featured-play-list":57453,"featured-video":57454,feedback:59519,fence:61942,festival:60008,"fiber-dvr":57437,"fiber-manual-record":57441,"fiber-new":57438,"fiber-pin":57450,"fiber-smart-record":57442,"file-copy":57715,"file-download":58052,"file-download-done":59818,"file-present":59918,"file-upload":58054,filter:58323,"filter-1":58320,"filter-2":58321,"filter-3":58322,"filter-4":58324,"filter-5":58325,"filter-6":58326,"filter-7":58327,"filter-8":58328,"filter-9":58329,"filter-9-plus":58330,"filter-alt":61263,"filter-b-and-w":58331,"filter-center-focus":58332,"filter-drama":58333,"filter-frames":58334,"filter-hdr":58335,"filter-list":57682,"filter-list-alt":59726,"filter-none":58336,"filter-tilt-shift":58338,"filter-vintage":58339,"find-in-page":59520,"find-replace":59521,fingerprint:59661,"fire-extinguisher":61912,"fire-hydrant":61859,fireplace:59971,"first-page":58844,"fit-screen":59920,"fitness-center":60227,flag:57683,flaky:61264,flare:58340,"flash-auto":58341,"flash-off":58342,"flash-on":58343,flight:58681,"flight-land":59652,"flight-takeoff":59653,flip:58344,"flip-camera-android":59959,"flip-camera-ios":59960,"flip-to-back":59522,"flip-to-front":59523,folder:58055,"folder-open":58056,"folder-shared":58057,"folder-special":58903,"follow-the-signs":61986,"font-download":57703,"food-bank":61938,"format-align-center":57908,"format-align-justify":57909,"format-align-left":57910,"format-align-right":57911,"format-bold":57912,"format-clear":57913,"format-color-fill":57914,"format-color-reset":57915,"format-color-text":57916,"format-indent-decrease":57917,"format-indent-increase":57918,"format-italic":57919,"format-line-spacing":57920,"format-list-bulleted":57921,"format-list-numbered":57922,"format-list-numbered-rtl":57959,"format-paint":57923,"format-quote":57924,"format-shapes":57950,"format-size":57925,"format-strikethrough":57926,"format-textdirection-l-to-r":57927,"format-textdirection-r-to-l":57928,"format-underline":57929,"format-underlined":57929,forum:57535,forward:57684,"forward-10":57430,"forward-30":57431,"forward-5":57432,"forward-to-inbox":61831,foundation:61952,"free-breakfast":60228,fullscreen:58832,"fullscreen-exit":58833,functions:57930,"g-translate":59687,gamepad:58127,games:57377,gavel:59662,gesture:57685,"get-app":59524,gif:59656,goat:1114109,"golf-course":60229,"gps-fixed":57779,"gps-not-fixed":57780,"gps-off":57781,grade:59525,gradient:58345,grading:59983,grain:58346,"graphic-eq":57784,grass:61957,"grid-off":58347,"grid-on":58348,"grid-view":59824,group:59375,"group-add":59376,"group-work":59526,groups:62003,hail:59825,handyman:61707,hardware:59993,hd:57426,"hdr-enhanced-select":61265,"hdr-off":58349,"hdr-on":58350,"hdr-strong":58353,"hdr-weak":58354,headset:58128,"headset-mic":58129,"headset-off":58170,healing:58355,hearing:57379,"hearing-disabled":61700,height:59926,help:59527,"help-center":61888,"help-outline":59645,"high-quality":57380,highlight:57951,"highlight-alt":61266,"highlight-off":59528,"highlight-remove":59528,history:59529,"history-edu":59966,"history-toggle-off":61821,home:59530,"home-filled":59826,"home-repair-service":61696,"home-work":59913,"horizontal-distribute":57364,"horizontal-rule":61704,"horizontal-split":59719,"hot-tub":60230,hotel:58682,"hourglass-bottom":59996,"hourglass-disabled":61267,"hourglass-empty":59531,"hourglass-full":59532,"hourglass-top":59995,house:59972,"house-siding":61954,"how-to-reg":57716,"how-to-vote":57717,http:59650,https:59533,hvac:61710,icecream:60009,image:58356,"image-aspect-ratio":58357,"image-not-supported":61718,"image-search":58431,"imagesearch-roller":59828,"import-contacts":57568,"import-export":57539,"important-devices":59666,inbox:57686,"indeterminate-check-box":59657,info:59534,"info-outline":59535,input:59536,"insert-chart":57931,"insert-chart-outlined":57962,"insert-comment":57932,"insert-drive-file":57933,"insert-emoticon":57934,"insert-invitation":57935,"insert-link":57936,"insert-photo":57937,insights:61586,"integration-instructions":61268,inventory:57721,"invert-colors":59537,"invert-colors-off":57540,"invert-colors-on":59537,"ios-share":59064,iso:58358,keyboard:58130,"keyboard-arrow-down":58131,"keyboard-arrow-left":58132,"keyboard-arrow-right":58133,"keyboard-arrow-up":58134,"keyboard-backspace":58135,"keyboard-capslock":58136,"keyboard-control":58835,"keyboard-hide":58138,"keyboard-return":58139,"keyboard-tab":58140,"keyboard-voice":58141,"king-bed":59973,kitchen:60231,label:59538,"label-important":59703,"label-important-outline":59720,"label-off":59830,"label-outline":59539,landscape:58359,language:59540,laptop:58142,"laptop-chromebook":58143,"laptop-mac":58144,"laptop-windows":58145,"last-page":58845,launch:59541,layers:58683,"layers-clear":58684,leaderboard:61964,"leak-add":58360,"leak-remove":58361,"leave-bags-at-home":61979,"legend-toggle":61723,lens:58362,"library-add":57390,"library-add-check":59831,"library-books":57391,"library-music":57392,lightbulb:57584,"lightbulb-outline":59663,"line-style":59673,"line-weight":59674,"linear-scale":57952,link:57687,"link-off":57711,"linked-camera":58424,liquor:6e4,list:59542,"list-alt":57582,"live-help":57542,"live-tv":58937,"local-activity":58687,"local-airport":58685,"local-atm":58686,"local-attraction":58687,"local-bar":58688,"local-cafe":58689,"local-car-wash":58690,"local-convenience-store":58691,"local-dining":58710,"local-drink":58692,"local-fire-department":61269,"local-florist":58693,"local-gas-station":58694,"local-grocery-store":58695,"local-hospital":58696,"local-hotel":58697,"local-laundry-service":58698,"local-library":58699,"local-mall":58700,"local-movies":58701,"local-offer":58702,"local-parking":58703,"local-pharmacy":58704,"local-phone":58705,"local-pizza":58706,"local-play":58707,"local-police":61270,"local-post-office":58708,"local-print-shop":58709,"local-printshop":58709,"local-restaurant":58710,"local-see":58711,"local-shipping":58712,"local-taxi":58713,"location-city":59377,"location-disabled":57782,"location-history":58714,"location-off":57543,"location-on":57544,"location-pin":61915,"location-searching":57783,lock:59543,"lock-clock":61271,"lock-open":59544,"lock-outline":59545,login:60023,logout:59834,looks:58364,"looks-3":58363,"looks-4":58365,"looks-5":58366,"looks-6":58367,"looks-one":58368,"looks-two":58369,loop:57384,loupe:58370,"low-priority":57709,loyalty:59546,luggage:62005,"lunch-dining":60001,mail:57688,"mail-outline":57569,map:58715,"maps-ugc":61272,margin:59835,"mark-as-unread":59836,"mark-chat-read":61835,"mark-chat-unread":61833,"mark-email-read":61836,"mark-email-unread":61834,markunread:57689,"markunread-mailbox":59547,masks:61976,maximize:59696,mediation:61351,"medical-services":61705,"meeting-room":60239,memory:58146,menu:58834,"menu-book":59929,"menu-open":59837,"merge-type":57938,message:57545,messenger:57546,"messenger-outline":57547,mic:57385,"mic-external-off":61273,"mic-external-on":61274,"mic-none":57386,"mic-off":57387,microwave:61956,"military-tech":59967,minimize:59697,"miscellaneous-services":61708,"missed-video-call":57459,mms:58904,"mobile-friendly":57856,"mobile-off":57857,"mobile-screen-share":57575,"mode-comment":57939,"mode-edit":57940,"model-training":61647,"monetization-on":57955,money:58749,"money-off":57948,monitor:61275,"monochrome-photos":58371,mood:59378,"mood-bad":59379,moped:60200,more:58905,"more-horiz":58835,"more-time":59997,"more-vert":58836,"motion-photos-off":59840,"motion-photos-on":59841,"motion-photos-pause":61991,"motion-photos-paused":59842,motorcycle:59675,mouse:58147,"move-to-inbox":57704,movie:57388,"movie-creation":58372,"movie-filter":58426,mp:59843,"multiline-chart":59103,"multiple-stop":61881,"multitrack-audio":57784,museum:59958,"music-note":58373,"music-off":58432,"music-video":57443,"my-library-add":57390,"my-library-books":57391,"my-library-music":57392,"my-location":58716,nat:61276,nature:58374,"nature-people":58375,"navigate-before":58376,"navigate-next":58377,navigation:58717,"near-me":58729,"near-me-disabled":61935,"network-cell":57785,"network-check":58944,"network-locked":58906,"network-wifi":57786,"new-releases":57393,"next-plan":61277,"next-week":57706,nfc:57787,"night-shelter":61937,nightlife:60002,"nightlight-round":61278,"nights-stay":59974,"no-backpack":62007,"no-cell":61860,"no-drinks":61861,"no-encryption":58945,"no-flash":61862,"no-food":61863,"no-luggage":62011,"no-meals":61910,"no-meals-ouline":61993,"no-meeting-room":60238,"no-photography":61864,"no-sim":57548,"no-stroller":61871,"no-transfer":61909,north:61920,"north-east":61921,"north-west":61922,"not-accessible":61694,"not-interested":57395,"not-listed-location":58741,"not-started":61649,note:57455,"note-add":59548,notes:57964,"notification-important":57348,notifications:59380,"notifications-active":59383,"notifications-none":59381,"notifications-off":59382,"notifications-on":59383,"notifications-paused":59384,"now-wallpaper":57788,"now-widgets":57789,"offline-bolt":59698,"offline-pin":59658,"offline-share":59845,"ondemand-video":58938,"online-prediction":61675,opacity:59676,"open-in-browser":59549,"open-in-full":61902,"open-in-new":59550,"open-with":59551,outbond:61992,outbox:61279,"outdoor-grill":59975,"outgoing-mail":61650,outlet:61908,"outlined-flag":57710,padding:59848,pages:59385,pageview:59552,palette:58378,"pan-tool":59685,panorama:58379,"panorama-fish-eye":58380,"panorama-fisheye":58380,"panorama-horizontal":58381,"panorama-horizontal-select":61280,"panorama-photosphere":59849,"panorama-photosphere-select":59850,"panorama-vertical":58382,"panorama-vertical-select":61281,"panorama-wide-angle":58383,"panorama-wide-angle-select":61282,park:60003,"party-mode":59386,pause:57396,"pause-circle-filled":57397,"pause-circle-outline":57398,"pause-presentation":57578,payment:59553,payments:61283,"pedal-bike":60201,pending:61284,"pending-actions":61883,people:59387,"people-alt":59937,"people-outline":59388,"perm-camera-mic":59554,"perm-contact-cal":59555,"perm-contact-calendar":59555,"perm-data-setting":59556,"perm-device-info":59557,"perm-device-information":59557,"perm-identity":59558,"perm-media":59559,"perm-phone-msg":59560,"perm-scan-wifi":59561,person:59389,"person-add":59390,"person-add-alt":59981,"person-add-alt-1":61285,"person-add-disabled":59851,"person-outline":59391,"person-pin":58714,"person-pin-circle":58730,"person-remove":61286,"person-remove-alt-1":61287,"person-search":61702,"personal-video":58939,"pest-control":61690,"pest-control-rodent":61693,pets:59677,phone:57549,"phone-android":58148,"phone-bluetooth-speaker":58907,"phone-callback":58953,"phone-disabled":59852,"phone-enabled":59853,"phone-forwarded":58908,"phone-in-talk":58909,"phone-iphone":58149,"phone-locked":58910,"phone-missed":58911,"phone-paused":58912,phonelink:58150,"phonelink-erase":57563,"phonelink-lock":57564,"phonelink-off":58151,"phonelink-ring":57565,"phonelink-setup":57566,photo:58384,"photo-album":58385,"photo-camera":58386,"photo-camera-back":61288,"photo-camera-front":61289,"photo-filter":58427,"photo-library":58387,"photo-size-select-actual":58418,"photo-size-select-large":58419,"photo-size-select-small":58420,"picture-as-pdf":58389,"picture-in-picture":59562,"picture-in-picture-alt":59665,"pie-chart":59076,"pie-chart-outlined":59077,"pin-drop":58718,"pivot-table-chart":59854,place:58719,plagiarism:59994,"play-arrow":57399,"play-circle-fill":57400,"play-circle-filled":57400,"play-circle-outline":57401,"play-disabled":61290,"play-for-work":59654,"playlist-add":57403,"playlist-add-check":57445,"playlist-play":57439,plumbing:61703,"plus-one":59392,"point-of-sale":61822,policy:59927,poll:59393,polymer:59563,pool:60232,"portable-wifi-off":57550,portrait:58390,"post-add":59936,power:58940,"power-input":58166,"power-off":58950,"power-settings-new":59564,"pregnant-woman":59678,"present-to-all":57567,preview:61893,print:59565,"print-disabled":59855,"priority-high":58949,"privacy-tip":61660,psychology:59978,public:59403,"public-off":61898,publish:57941,"published-with-changes":62002,"push-pin":61709,"qr-code":61291,"qr-code-2":57354,"qr-code-scanner":61958,"query-builder":59566,"question-answer":59567,queue:57404,"queue-music":57405,"queue-play-next":57446,"quick-contacts-dialer":57551,"quick-contacts-mail":57552,quickreply:61292,radio:57406,"radio-button-checked":59447,"radio-button-off":59446,"radio-button-on":59447,"radio-button-unchecked":59446,"railway-alert":59857,"ramen-dining":60004,"rate-review":58720,"read-more":61293,receipt:59568,"receipt-long":61294,"recent-actors":57407,recommend:59858,"record-voice-over":59679,redeem:59569,redo:57690,"reduce-capacity":61980,refresh:58837,remove:57691,"remove-circle":57692,"remove-circle-outline":57693,"remove-done":59859,"remove-from-queue":57447,"remove-moderator":59860,"remove-red-eye":58391,"remove-shopping-cart":59688,reorder:59646,repeat:57408,"repeat-on":59862,"repeat-one":57409,"repeat-one-on":59863,replay:57410,"replay-10":57433,"replay-30":57434,"replay-5":57435,"replay-circle-filled":59864,reply:57694,"reply-all":57695,report:57696,"report-off":57712,"report-problem":59570,"request-page":61996,"request-quote":61878,"reset-tv":59865,restaurant:58732,"restaurant-menu":58721,restore:59571,"restore-from-trash":59704,"restore-page":59689,"rice-bowl":61941,"ring-volume":57553,roofing:61953,room:59572,"room-preferences":61880,"room-service":60233,"rotate-90-degrees-ccw":58392,"rotate-left":58393,"rotate-right":58394,"rounded-corner":59680,router:58152,rowing:59681,"rss-feed":57573,rtt:59821,rule:61890,"rule-folder":61897,"run-circle":61295,"rv-hookup":58946,sanitizer:61981,satellite:58722,save:57697,"save-alt":57713,"saved-search":59921,scanner:58153,"scatter-plot":57960,schedule:59573,"schedule-send":59914,school:59404,science:59979,score:57961,"screen-lock-landscape":57790,"screen-lock-portrait":57791,"screen-lock-rotation":57792,"screen-rotation":57793,"screen-search-desktop":61296,"screen-share":57570,sd:59869,"sd-card":58915,"sd-storage":57794,search:59574,"search-off":60022,security:58154,segment:59723,"select-all":57698,"self-improvement":60024,send:57699,"send-and-archive":59916,"send-to-mobile":61532,"sensor-door":61877,"sensor-window":61876,"sentiment-dissatisfied":59409,"sentiment-neutral":59410,"sentiment-satisfied":59411,"sentiment-satisfied-alt":57581,"sentiment-very-dissatisfied":59412,"sentiment-very-satisfied":59413,"set-meal":61930,settings:59576,"settings-applications":59577,"settings-backup-restore":59578,"settings-bluetooth":59579,"settings-brightness":59581,"settings-cell":59580,"settings-display":59581,"settings-ethernet":59582,"settings-input-antenna":59583,"settings-input-component":59584,"settings-input-composite":59585,"settings-input-hdmi":59586,"settings-input-svideo":59587,"settings-overscan":59588,"settings-phone":59589,"settings-power":59590,"settings-remote":59591,"settings-system-daydream":57795,"settings-voice":59592,share:59405,shield:59872,shop:59593,"shop-two":59594,"shopping-bag":61900,"shopping-basket":59595,"shopping-cart":59596,"short-text":57953,"show-chart":59105,shuffle:57411,"shuffle-on":59873,"shutter-speed":58429,sick:61984,"signal-cellular-0-bar":61608,"signal-cellular-4-bar":57800,"signal-cellular-alt":57858,"signal-cellular-connected-no-internet-4-bar":57805,"signal-cellular-no-sim":57806,"signal-cellular-null":57807,"signal-cellular-off":57808,"signal-wifi-0-bar":61616,"signal-wifi-4-bar":57816,"signal-wifi-4-bar-lock":57817,"signal-wifi-off":57818,"sim-card":58155,"sim-card-alert":58916,"single-bed":59976,"skip-next":57412,"skip-previous":57413,slideshow:58395,"slow-motion-video":57448,"smart-button":61889,smartphone:58156,"smoke-free":60234,"smoking-rooms":60235,sms:58917,"sms-failed":58918,"snippet-folder":61895,snooze:57414,soap:61874,sort:57700,"sort-by-alpha":57427,source:61892,south:61923,"south-east":61924,"south-west":61925,spa:60236,"space-bar":57942,speaker:58157,"speaker-group":58158,"speaker-notes":59597,"speaker-notes-off":59690,"speaker-phone":57554,speed:59876,spellcheck:59598,sports:59952,"sports-bar":61939,"sports-baseball":59985,"sports-basketball":59942,"sports-cricket":59943,"sports-esports":59944,"sports-football":59945,"sports-golf":59946,"sports-handball":59955,"sports-hockey":59947,"sports-kabaddi":59956,"sports-mma":59948,"sports-motorsports":59949,"sports-rugby":59950,"sports-soccer":59951,"sports-tennis":59954,"sports-volleyball":59953,"square-foot":59977,"stacked-bar-chart":59878,"stacked-line-chart":61995,stairs:61865,star:59448,"star-border":59450,"star-half":59449,"star-outline":61551,"star-rate":61676,stars:59600,"stay-current-landscape":57555,"stay-current-portrait":57556,"stay-primary-landscape":57557,"stay-primary-portrait":57558,"sticky-note-2":61948,stop:57415,"stop-circle":61297,"stop-screen-share":57571,storage:57819,store:59601,"store-mall-directory":58723,storefront:59922,straighten:58396,stream:59881,streetview:58734,"strikethrough-s":57943,stroller:61870,style:58397,"subdirectory-arrow-left":58841,"subdirectory-arrow-right":58842,subject:59602,subscript:61713,subscriptions:57444,subtitles:57416,"subtitles-off":61298,subway:58735,superscript:61714,"supervised-user-circle":59705,"supervisor-account":59603,support:61299,"support-agent":61666,"surround-sound":57417,"swap-calls":57559,"swap-horiz":59604,"swap-horizontal-circle":59699,"swap-vert":59605,"swap-vert-circle":59606,"swap-vertical-circle":59606,swipe:59884,"switch-account":59885,"switch-camera":58398,"switch-left":61905,"switch-right":61906,"switch-video":58399,sync:58919,"sync-alt":59928,"sync-disabled":58920,"sync-problem":58921,"system-update":58922,"system-update-alt":59607,"system-update-tv":59607,tab:59608,"tab-unselected":59609,"table-chart":57957,"table-rows":61697,"table-view":61886,tablet:58159,"tablet-android":58160,"tablet-mac":58161,tag:59887,"tag-faces":58400,"takeout-dining":60020,"tap-and-play":58923,tapas:61929,"taxi-alert":61300,terrain:58724,"text-fields":57954,"text-format":57701,"text-rotate-up":59706,"text-rotate-vertical":59707,"text-rotation-angledown":59708,"text-rotation-angleup":59709,"text-rotation-down":59710,"text-rotation-none":59711,"text-snippet":61894,textsms:57560,texture:58401,"theater-comedy":60006,theaters:59610,"thumb-down":59611,"thumb-down-alt":59414,"thumb-down-off-alt":59890,"thumb-up":59612,"thumb-up-alt":59415,"thumb-up-off-alt":59891,"thumbs-up-down":59613,"time-to-leave":58924,timelapse:58402,timeline:59682,timer:58405,"timer-10":58403,"timer-3":58404,"timer-off":58406,title:57956,toc:59614,today:59615,"toggle-off":59893,"toggle-on":59894,toll:59616,tonality:58407,topic:61896,"touch-app":59667,tour:61301,toys:58162,"track-changes":59617,traffic:58725,train:58736,tram:58737,"transfer-within-a-station":58738,transform:58408,"transit-enterexit":58745,translate:59618,"trending-down":59619,"trending-flat":59620,"trending-neutral":59620,"trending-up":59621,"trip-origin":58747,tty:61866,tune:58409,"turned-in":59622,"turned-in-not":59623,tv:58163,"tv-off":58951,"two-wheeler":59897,umbrella:61869,unarchive:57705,undo:57702,"unfold-less":58838,"unfold-more":58839,unpublished:62006,unsubscribe:57579,update:59683,"update-disabled":57461,upgrade:61691,"upload-file":59900,usb:57824,verified:61302,"verified-user":59624,"vertical-align-bottom":57944,"vertical-align-center":57945,"vertical-align-top":57946,"vertical-distribute":57462,"vertical-split":59721,vibration:58925,"video-call":57456,"video-collection":57418,"video-label":57457,"video-library":57418,"video-settings":60021,videocam:57419,"videocam-off":57420,"videogame-asset":58168,"view-agenda":59625,"view-array":59626,"view-carousel":59627,"view-column":59628,"view-comfortable":58410,"view-comfy":58410,"view-compact":58411,"view-day":59629,"view-headline":59630,"view-in-ar":59902,"view-list":59631,"view-module":59632,"view-quilt":59633,"view-sidebar":61716,"view-stream":59634,"view-week":59635,vignette:58421,visibility:59636,"visibility-off":59637,"voice-chat":58926,"voice-over-off":59722,voicemail:57561,"volume-down":57421,"volume-mute":57422,"volume-off":57423,"volume-up":57424,"volunteer-activism":60016,"vpn-key":57562,"vpn-lock":58927,"wallet-giftcard":59638,"wallet-membership":59639,"wallet-travel":59640,wallpaper:57788,warning:57346,wash:61873,watch:58164,"watch-later":59684,"water-damage":61955,"waterfall-chart":59904,waves:57718,"wb-auto":58412,"wb-cloudy":58413,"wb-incandescent":58414,"wb-iridescent":58422,"wb-shade":59905,"wb-sunny":58416,"wb-twighlight":59906,wc:58941,web:57425,"web-asset":57449,weekend:57707,west:61926,whatshot:59406,"wheelchair-pickup":61867,"where-to-vote":57719,widgets:57789,wifi:58942,"wifi-calling":61303,"wifi-lock":57825,"wifi-off":58952,"wifi-protected-setup":61692,"wifi-tethering":57826,"wine-bar":61928,work:59641,"work-off":59714,"work-outline":59715,"workspaces-filled":59917,"workspaces-outline":59919,"wrap-text":57947,"wrong-location":61304,wysiwyg:61891,"youtube-searched-for":59642,"zoom-in":59647,"zoom-out":59648,"zoom-out-map":58731}},1959,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTheme=e.ThemeProvider=e.ThemeContext=void 0;var t=r(d[0]),o=(0,t.createContext)(r(d[1]).theme);e.ThemeContext=o;var n=o.Provider;e.ThemeProvider=n;e.useTheme=function(){return(0,t.useContext)(o)}},1960,[15,1961]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.zeroOpacity=e.theme=e.mediumOpacity=e.lightOpacity=e.heavyOpacity=e.borderWidth=e.borderRadius=e.TextTheme=e.TabTheme=e.SettingsTheme=e.OnboardingTheme=e.NavigationTheme=e.ListItems=e.Inputs=e.HomeTheme=e.DialogTheme=e.ColorPallet=e.ChatTheme=e.Buttons=e.Assets=void 0;var o=r(d[0])(r(d[1])),t=r(d[2]),n=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),b=r(d[0])(r(d[6])),s=r(d[0])(r(d[7])),h=r(d[0])(r(d[8])),u=r(d[0])(r(d[9])),f=r(d[0])(r(d[10]));e.borderRadius=4;e.heavyOpacity=.7;e.mediumOpacity=.5;e.lightOpacity=.35;e.zeroOpacity=0;e.borderWidth=2;var y={black:'#000000',darkGrey:'#313132',mediumGrey:'#606060',lightGrey:'#D3D3D3',veryLightGrey:'#F2F2F2',white:'#FFFFFF'},p={brand:{primary:'#42803E',primaryDisabled:"rgba(53, 130, 63, 0.35)",secondary:'#FFFFFFFF',secondaryDisabled:"rgba(53, 130, 63, 0.7)",primaryLight:"rgba(53, 130, 63, 0.35)",highlight:'#FCBA19',primaryBackground:'#000000',secondaryBackground:'#313132',modalPrimary:'#42803E',modalSecondary:'#FFFFFFFF',modalPrimaryBackground:'#000000',modalSecondaryBackground:'#313132',unorderedList:y.white,unorderedListModal:y.white,link:y.white,text:y.white,icon:y.white,headerIcon:y.white,headerText:y.white,buttonText:y.white,tabBarInactive:y.white},semantic:{error:'#D8292F',success:'#2E8540',focus:'#3399FF'},notification:{success:'#313132',successBorder:'#2E8540',successIcon:'#2E8540',successText:'#FFFFFF',info:'#313132',infoBorder:'#0099FF',infoIcon:'#0099FF',infoText:'#FFFFFF',warn:'#313132',warnBorder:'#FCBA19',warnIcon:'#FCBA19',warnText:'#FFFFFF',error:'#313132',errorBorder:'#D8292F',errorIcon:'#D8292F',errorText:'#FFFFFF',popupOverlay:"rgba(0, 0, 0, 0.5)"},grayscale:y};e.ColorPallet=p;var T={headingOne:{fontSize:38,fontWeight:'bold',color:p.brand.text},headingTwo:{fontSize:32,fontWeight:'bold',color:p.brand.text},headingThree:{fontSize:26,fontWeight:'bold',color:p.brand.text},headingFour:{fontSize:21,fontWeight:'bold',color:p.brand.text},normal:{fontSize:18,fontWeight:'normal',color:p.brand.text},label:{fontSize:14,fontWeight:'bold',color:p.brand.text},labelTitle:{fontSize:16,fontWeight:'bold',color:p.brand.text},labelSubtitle:{fontSize:14,fontWeight:'normal',color:p.brand.text},labelText:{fontSize:10,fontWeight:'normal',fontStyle:'italic',color:p.brand.text},caption:{fontSize:14,fontWeight:'normal',color:p.brand.text},title:{fontSize:20,fontWeight:'bold',color:p.brand.text},headerTitle:{fontSize:28,fontWeight:'bold',color:p.brand.headerText},modalNormal:{fontSize:18,fontWeight:'normal',color:p.grayscale.white},modalTitle:{fontSize:24,fontWeight:'bold',color:p.grayscale.white},modalHeadingOne:{fontSize:38,fontWeight:'bold',color:p.grayscale.white},modalHeadingThree:{fontSize:26,fontWeight:'bold',color:p.grayscale.white},popupModalText:{fontSize:18,fontWeight:'normal',color:p.grayscale.white}};e.TextTheme=T;var x=t.StyleSheet.create({label:(0,o.default)({},T.label),textInput:{padding:10,borderRadius:4,fontSize:16,backgroundColor:p.brand.primaryBackground,color:p.notification.infoText,borderWidth:2,borderColor:p.brand.secondary},inputSelected:{borderColor:p.brand.primary},singleSelect:{padding:12,borderRadius:8,backgroundColor:p.brand.secondaryBackground},singleSelectText:(0,o.default)({},T.normal),singleSelectIcon:{color:p.grayscale.white},checkBoxColor:{color:p.brand.primary},checkBoxText:(0,o.default)({},T.normal)});e.Inputs=x;var k=t.StyleSheet.create({critical:{padding:16,borderRadius:4,backgroundColor:p.brand.primary},primary:{padding:16,borderRadius:4,backgroundColor:p.brand.primary},primaryDisabled:{padding:16,borderRadius:4,backgroundColor:p.brand.primaryDisabled},primaryText:(0,o.default)({},T.normal,{color:p.brand.buttonText,fontWeight:'bold',textAlign:'center'}),primaryTextDisabled:(0,o.default)({},T.normal,{fontWeight:'bold',textAlign:'center'}),secondary:{padding:16,borderRadius:4,borderWidth:2,borderColor:p.brand.primary},secondaryDisabled:{padding:16,borderRadius:4,borderWidth:2,borderColor:p.brand.secondaryDisabled},secondaryText:(0,o.default)({},T.normal,{fontWeight:'bold',color:p.brand.primary,textAlign:'center'}),secondaryTextDisabled:(0,o.default)({},T.normal,{fontWeight:'bold',color:p.brand.secondaryDisabled,textAlign:'center'}),modalCritical:{padding:16,borderRadius:4,backgroundColor:p.brand.primary},modalPrimary:{padding:16,borderRadius:4,backgroundColor:p.brand.modalPrimary},modalPrimaryText:(0,o.default)({},T.normal,{fontWeight:'bold',textAlign:'center'}),modalSecondary:{padding:16,borderRadius:4,borderWidth:2,borderColor:p.brand.modalPrimary},modalSecondaryText:(0,o.default)({},T.normal,{fontWeight:'bold',color:p.brand.modalPrimary,textAlign:'center'})});e.Buttons=k;var S=t.StyleSheet.create({credentialBackground:{backgroundColor:p.brand.secondaryBackground},credentialTitle:(0,o.default)({},T.headingFour),credentialDetails:(0,o.default)({},T.caption),credentialOfferBackground:{backgroundColor:p.brand.modalPrimaryBackground},credentialOfferTitle:(0,o.default)({},T.modalHeadingThree),credentialOfferDetails:(0,o.default)({},T.normal),revoked:{backgroundColor:p.notification.error,borderColor:p.notification.errorBorder},contactBackground:{backgroundColor:p.brand.secondaryBackground},credentialIconColor:{color:p.notification.infoText},contactTitle:{color:p.brand.text},contactDate:{color:p.brand.text,marginTop:10},contactIconBackground:{backgroundColor:p.brand.primary},contactIcon:{color:p.grayscale.white},recordAttributeLabel:(0,o.default)({},T.normal),recordContainer:{backgroundColor:p.brand.secondaryBackground},recordBorder:{borderBottomColor:p.brand.primaryBackground},recordLink:{color:p.brand.link},recordAttributeText:(0,o.default)({},T.normal),proofIcon:(0,o.default)({},T.headingOne),proofError:{color:p.semantic.error},avatarText:(0,o.default)({},T.headingTwo,{fontWeight:'normal'}),avatarCircle:{borderRadius:T.headingTwo.fontSize,borderColor:T.headingTwo.color,width:2*T.headingTwo.fontSize,height:2*T.headingTwo.fontSize},emptyList:(0,o.default)({},T.normal),requestTemplateBackground:{backgroundColor:p.grayscale.white},requestTemplateIconColor:{color:p.notification.infoText},requestTemplateTitle:{color:p.grayscale.black,fontWeight:'bold'},requestTemplateDetails:{color:p.grayscale.black,fontWeight:'normal'},requestTemplateZkpLabel:{color:p.grayscale.mediumGrey},requestTemplateIcon:{color:p.grayscale.black},requestTemplateDate:{color:p.grayscale.mediumGrey}});e.ListItems=S;var C={tabBarStyle:{height:60,backgroundColor:p.brand.secondaryBackground,shadowOffset:{width:0,height:-3},shadowRadius:6,shadowColor:p.grayscale.black,shadowOpacity:.1,borderTopWidth:0,paddingBottom:0},tabBarContainerStyle:{flex:1,justifyContent:'center',alignItems:'center'},tabBarActiveTintColor:p.brand.primary,tabBarInactiveTintColor:p.brand.tabBarInactive,tabBarTextStyle:(0,o.default)({},T.label,{fontWeight:'normal',paddingBottom:5}),tabBarButtonIconStyle:{color:p.brand.headerIcon},focusTabIconStyle:{height:60,width:60,backgroundColor:p.brand.primary,borderRadius:60,justifyContent:'center',alignItems:'center'},focusTabActiveTintColor:{backgroundColor:p.brand.secondary}};e.TabTheme=C;var B={dark:!0,colors:{primary:p.brand.primary,background:p.brand.primaryBackground,card:p.brand.primary,text:p.grayscale.white,border:p.grayscale.white,notification:p.grayscale.white}};e.NavigationTheme=B;var F=t.StyleSheet.create({welcomeHeader:(0,o.default)({},T.headingOne),credentialMsg:(0,o.default)({},T.normal),notificationsHeader:(0,o.default)({},T.headingThree),noNewUpdatesText:(0,o.default)({},T.normal,{color:p.notification.infoText}),link:(0,o.default)({},T.normal,{color:p.brand.link})});e.HomeTheme=F;var w={groupHeader:(0,o.default)({},T.normal,{marginBottom:8}),groupBackground:p.brand.secondaryBackground,iconColor:T.normal.color,text:(0,o.default)({},T.caption,{color:p.grayscale.white})};e.SettingsTheme=w;var z={containerStyle:{marginBottom:16,marginLeft:16,marginRight:16,flexDirection:'column',alignItems:'flex-start',alignSelf:'flex-end'},leftBubble:{backgroundColor:p.brand.secondaryBackground,borderRadius:4,padding:16,marginLeft:16},rightBubble:{backgroundColor:p.brand.primaryLight,borderRadius:4,padding:16,marginRight:16},timeStyleLeft:{color:p.grayscale.lightGrey,fontSize:12,marginTop:8},timeStyleRight:{color:p.grayscale.lightGrey,fontSize:12,marginTop:8},leftText:{color:p.brand.secondary,fontSize:T.normal.fontSize},leftTextHighlighted:{color:p.brand.secondary,fontSize:T.normal.fontSize,fontWeight:'bold'},rightText:{color:p.brand.secondary,fontSize:T.normal.fontSize},rightTextHighlighted:{color:p.brand.secondary,fontSize:T.normal.fontSize,fontWeight:'bold'},inputToolbar:{backgroundColor:p.brand.secondary,shadowColor:p.brand.primaryDisabled,borderRadius:10},inputText:{lineHeight:void 0,fontWeight:'500',fontSize:T.normal.fontSize},placeholderText:p.grayscale.lightGrey,sendContainer:{marginBottom:4,paddingHorizontal:4,justifyContent:'center'},sendEnabled:p.brand.primary,sendDisabled:p.brand.primaryDisabled,options:p.brand.primary,optionsText:p.grayscale.black,openButtonStyle:{borderRadius:32,backgroundColor:p.brand.primary,paddingTop:8,paddingBottom:8,paddingLeft:16,paddingRight:16,marginTop:16},openButtonTextStyle:{fontSize:T.normal.fontSize,fontWeight:'bold',textAlign:'center'},documentIconContainer:{backgroundColor:p.brand.primary,alignSelf:'flex-start',padding:4,borderRadius:4,marginBottom:8},documentIcon:{color:p.grayscale.white}};e.ChatTheme=z;var W={container:{backgroundColor:p.brand.primaryBackground},carouselContainer:{backgroundColor:p.brand.primaryBackground},pagerDot:{borderColor:p.brand.primary},pagerDotActive:{color:p.brand.primary},pagerDotInactive:{color:p.brand.secondary},pagerNavigationButton:{color:p.brand.primary},headerTintColor:p.grayscale.white,headerText:(0,o.default)({},T.headingTwo),bodyText:(0,o.default)({},T.normal),imageDisplayOptions:{fill:p.notification.infoText}};e.OnboardingTheme=W;var v={modalView:{backgroundColor:p.brand.secondaryBackground},titleText:{color:p.grayscale.white},description:{color:p.grayscale.white},closeButtonIcon:{color:p.grayscale.white},carouselButtonText:{color:p.grayscale.white}};e.DialogTheme=v;var I={backgroundColor:p.brand.modalPrimaryBackground},D={cell:{backgroundColor:p.brand.secondaryBackground,borderColor:p.brand.secondaryBackground},focussedCell:{borderColor:p.brand.headerIcon},cellText:{color:p.brand.text},icon:{color:p.brand.headerIcon}},R={svg:{appLockout:l.default,biometrics:c.default,credentialDeclined:b.default,deleteNotification:s.default,emptyWallet:h.default,logo:u.default,proofRequestDeclined:f.default,arrow:n.default},img:{logoPrimary:{src:r(d[11]),aspectRatio:1,height:'33%',width:'33%',resizeMode:'contain'},logoSecondary:{src:r(d[11]),aspectRatio:1,height:120,width:120,resizeMode:'contain'}}};e.Assets=R;var O={ColorPallet:p,TextTheme:T,Inputs:x,Buttons:k,ListItems:S,TabTheme:C,NavigationTheme:B,HomeTheme:F,SettingsTheme:w,ChatTheme:z,OnboardingTheme:W,DialogTheme:v,LoadingTheme:I,PINInputTheme:D,heavyOpacity:.7,borderRadius:4,borderWidth:2,Assets:R};e.theme=O},1961,[3,4,18,1962,2167,2168,2169,2170,2171,2172,2173,2174]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=f(n);if(u&&u.has(t))return u.get(t);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=t[c]}o.default=t,u&&u.set(t,o);return o})(r(d[3]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(f=function(t){return t?u:n})(t)}var o=function(f){return n.default.createElement(u.default,(0,t.default)({"data-name":"Layer 1",viewBox:"0 0 22.5 52"},f),n.default.createElement(u.Path,{d:"M20.5 52a2 2 0 01-1.6-.8L0 26 18.9.8a2 2 0 013.2 2.4L5 26l17.1 22.8a2 2 0 01-1.6 3.2z","data-name":"Path 287"}))};e.default=o},1962,[3,4,15,1963]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={};Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=t[l]}f.default=t,u&&u.set(t,f);return f})(r(d[0]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}Object.keys(n).forEach(function(o){"default"!==o&&"__esModule"!==o&&(Object.prototype.hasOwnProperty.call(t,o)||o in e&&e[o]===n[o]||Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[o]}}))})},1963,[1964]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ClipPath",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Defs",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"ForeignObject",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"G",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"LinearGradient",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"LocalSvg",{enumerable:!0,get:function(){return r(d[0]).LocalSvg}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"Mask",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"Pattern",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"RNSVGCircle",{enumerable:!0,get:function(){return r(d[1]).RNSVGCircle}}),Object.defineProperty(e,"RNSVGClipPath",{enumerable:!0,get:function(){return r(d[1]).RNSVGClipPath}}),Object.defineProperty(e,"RNSVGDefs",{enumerable:!0,get:function(){return r(d[1]).RNSVGDefs}}),Object.defineProperty(e,"RNSVGEllipse",{enumerable:!0,get:function(){return r(d[1]).RNSVGEllipse}}),Object.defineProperty(e,"RNSVGForeignObject",{enumerable:!0,get:function(){return r(d[1]).RNSVGForeignObject}}),Object.defineProperty(e,"RNSVGGroup",{enumerable:!0,get:function(){return r(d[1]).RNSVGGroup}}),Object.defineProperty(e,"RNSVGImage",{enumerable:!0,get:function(){return r(d[1]).RNSVGImage}}),Object.defineProperty(e,"RNSVGLine",{enumerable:!0,get:function(){return r(d[1]).RNSVGLine}}),Object.defineProperty(e,"RNSVGLinearGradient",{enumerable:!0,get:function(){return r(d[1]).RNSVGLinearGradient}}),Object.defineProperty(e,"RNSVGMarker",{enumerable:!0,get:function(){return r(d[1]).RNSVGMarker}}),Object.defineProperty(e,"RNSVGMask",{enumerable:!0,get:function(){return r(d[1]).RNSVGMask}}),Object.defineProperty(e,"RNSVGPath",{enumerable:!0,get:function(){return r(d[1]).RNSVGPath}}),Object.defineProperty(e,"RNSVGPattern",{enumerable:!0,get:function(){return r(d[1]).RNSVGPattern}}),Object.defineProperty(e,"RNSVGRadialGradient",{enumerable:!0,get:function(){return r(d[1]).RNSVGRadialGradient}}),Object.defineProperty(e,"RNSVGRect",{enumerable:!0,get:function(){return r(d[1]).RNSVGRect}}),Object.defineProperty(e,"RNSVGSvg",{enumerable:!0,get:function(){return r(d[1]).RNSVGSvg}}),Object.defineProperty(e,"RNSVGSymbol",{enumerable:!0,get:function(){return r(d[1]).RNSVGSymbol}}),Object.defineProperty(e,"RNSVGTSpan",{enumerable:!0,get:function(){return r(d[1]).RNSVGTSpan}}),Object.defineProperty(e,"RNSVGText",{enumerable:!0,get:function(){return r(d[1]).RNSVGText}}),Object.defineProperty(e,"RNSVGTextPath",{enumerable:!0,get:function(){return r(d[1]).RNSVGTextPath}}),Object.defineProperty(e,"RNSVGUse",{enumerable:!0,get:function(){return r(d[1]).RNSVGUse}}),Object.defineProperty(e,"RadialGradient",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Stop",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"Svg",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"SvgAst",{enumerable:!0,get:function(){return r(d[2]).SvgAst}}),Object.defineProperty(e,"SvgCss",{enumerable:!0,get:function(){return r(d[3]).SvgCss}}),Object.defineProperty(e,"SvgCssUri",{enumerable:!0,get:function(){return r(d[3]).SvgCssUri}}),Object.defineProperty(e,"SvgFromUri",{enumerable:!0,get:function(){return r(d[2]).SvgFromUri}}),Object.defineProperty(e,"SvgFromXml",{enumerable:!0,get:function(){return r(d[2]).SvgFromXml}}),Object.defineProperty(e,"SvgUri",{enumerable:!0,get:function(){return r(d[2]).SvgUri}}),Object.defineProperty(e,"SvgWithCss",{enumerable:!0,get:function(){return r(d[3]).SvgWithCss}}),Object.defineProperty(e,"SvgWithCssUri",{enumerable:!0,get:function(){return r(d[3]).SvgWithCssUri}}),Object.defineProperty(e,"SvgXml",{enumerable:!0,get:function(){return r(d[2]).SvgXml}}),Object.defineProperty(e,"Symbol",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"TSpan",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"TextPath",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"Use",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"WithLocalSvg",{enumerable:!0,get:function(){return r(d[0]).WithLocalSvg}}),e.default=void 0,Object.defineProperty(e,"inlineStyles",{enumerable:!0,get:function(){return r(d[3]).inlineStyles}}),Object.defineProperty(e,"loadLocalRawResource",{enumerable:!0,get:function(){return r(d[0]).loadLocalRawResource}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r(d[2]).parse}});var t=r(d[4])(r(d[5])),n=r(d[4])(r(d[6])),u=r(d[4])(r(d[7])),f=r(d[4])(r(d[8])),o=r(d[4])(r(d[9])),c=r(d[4])(r(d[10])),b=r(d[4])(r(d[11])),l=r(d[4])(r(d[12])),S=r(d[4])(r(d[13])),p=r(d[4])(r(d[14])),P=r(d[4])(r(d[15])),y=r(d[4])(r(d[16])),j=r(d[4])(r(d[17])),O=r(d[4])(r(d[18])),R=r(d[4])(r(d[19])),G=r(d[4])(r(d[20])),N=r(d[4])(r(d[21])),V=r(d[4])(r(d[22])),s=r(d[4])(r(d[23])),v=r(d[4])(r(d[24])),h=r(d[4])(r(d[25])),C=r(d[4])(r(d[26])),L=r(d[4])(r(d[27])),U=r(d[4])(r(d[28])),T=r(d[4])(r(d[29])),F=l.default;e.default=F},1964,[1965,1970,1966,2010,3,1968,1967,1983,1984,1985,1988,1989,1990,1986,1992,1994,1995,1996,1997,1998,1999,2000,2001,2004,2005,2006,2007,2008,2009,2166]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.LocalSvg=j,_e.default=_e.WithLocalSvg=void 0,_e.getUriFromSource=b,_e.isUriAnAndroidResourceIdentifier=k,_e.loadAndroidRawResource=P,_e.loadLocalRawResource=void 0,_e.loadLocalRawResourceAndroid=S,_e.loadLocalRawResourceDefault=O;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),p=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=R(t);if(n&&n.has(e))return n.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if("default"!==c&&Object.prototype.hasOwnProperty.call(e,c)){var l=u?Object.getOwnPropertyDescriptor(e,c):null;l&&(l.get||l.set)?Object.defineProperty(o,c,l):o[c]=e[c]}o.default=e,n&&n.set(e,o);return o})(r(d[10])),v=r(d[11]),h=r(d[0])(r(d[12])),y=["asset"];function R(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(R=function(e){return e?n:t})(e)}function w(){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(e){return!1}}var x=(v.NativeModules.RNSVGRenderableManager||{}).getRawResource;function b(e){return(0,h.default)(e).uri}function O(e){var t=b(e);return(0,r(d[13]).fetchText)(t)}function k(e){return'string'==typeof e&&e.indexOf('/')<=-1}function P(e){return f.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f.default.awrap(x(e));case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),console.error('Error in RawResourceUtils while trying to natively load an Android raw resource: ',t.t0),t.abrupt("return",null);case 10:case"end":return t.stop()}},null,null,[[0,6]],Promise)}function S(e){var t=b(e);return k(t)?P(t):(0,r(d[13]).fetchText)(t)}var M='android'!==v.Platform.OS?O:S;function j(e){var t=e.asset,n=(0,s.default)(e,y),o=(0,p.useState)(null),u=(0,l.default)(o,2),f=u[0],v=u[1];return(0,p.useEffect)(function(){M(t).then(v)},[t]),p.default.createElement(r(d[14]).SvgCss,(0,c.default)({xml:f},n))}_e.loadLocalRawResource=M;var L=(function(c){(0,n.default)(h,c);var l,s,v=(l=h,s=w(),function(){var e,t=(0,u.default)(l);if(s){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function h(){var t;(0,e.default)(this,h);for(var n=arguments.length,o=new Array(n),u=0;u=o))break;l-=o}var c=e.slice(0,t).replace(/^\t+/,Y),f=/(^|\n).*$/.exec(c),s=f&&f[0]||'',p=e.slice(t),v=/.*(\n|$)/.exec(p);return{line:i,column:l,snippet:""+s+(v&&v[0])+"\n"+Q(' ',s.length)+"^"}}var te=/[a-zA-Z0-9:_-]/,re=/[\s\t\r\n]/,ne=/['"]/;function ae(e,t){var n,u=e.length,l=null,i=function(){for(;S+1'!==e[S]&&f('Expected >'),O||(l=w,o=w.children,c.push(w)),s}function v(){var t=e.indexOf('--\x3e',S);return~t||f('expected --\x3e'),S=t+2,s}function h(){var t=e.indexOf(']]>',S);return~t||f('expected ]]>'),o.push(e.slice(S+7,t)),S=t+2,s}function y(){var t=x();(t||f('Expected tag name'),l&&t!==l.tag&&f("Expected closing tag to match opening tag <"+l.tag+">"),'>'!==e[S]&&f('Expected >'),c.pop(),l=c[c.length-1])&&(o=l.children);return s}function x(){for(var t,n='';S'===n||'/'===n)return t;t+=n,S+=1}while(S>>0===n&&n>=0&&n<=4294967295)return(0,t.integerColor)(n);if(!n||'none'===n)return null;if('currentColor'===n)return u;if('context-fill'===n)return f;if('context-stroke'===n)return l;var c='string'==typeof n&&n.match(o);if(c)return[1,c[1]];var p=(0,t.default)(n);if('number'==typeof p)return p;return console.warn("\""+n+"\" is not a valid color or brush"),null};var t=(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f);return f})(r(d[0]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}var o=/^url\(#(.+)\)$/,u=[2],f=[3],l=[4]},1973,[1974]); -__d(function(_g,_r,_i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.colors=e.colorNames=void 0,e.default=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?N(r):null;var a='string'==typeof r?q(r):r;if(!Array.isArray(a))return a;var l=a[0],n=a[1],t=a[2],o=a[3],s=((void 0===o?4278190080:Math.round(255*o)<<24)|Math.round(255*l)<<16|Math.round(255*n)<<8|Math.round(255*t))>>>0;return N(s)},e.integerColor=void 0;var r=_r(d[0]),a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.colors=a;var l={};for(var n in e.colorNames=l,a)if(a.hasOwnProperty(n)){var t=a[n],o=t[0],s=t[1],i=t[2];l[n]=(4278190080|o<<16|s<<8|i)>>>0}function u(r,a,l,n){var t,o,s,i,u,g=r/360,c=a/100,h=l/100;if(0===c)return[u=h,u,u,n];t=2*h-(o=h<.5?h*(1+c):h+c-h*c),i=[0,0,0,n];for(var f=0;f<3;f++)(s=g+.3333333333333333*-(f-1))<0&&s++,s>1&&s--,u=6*s<1?t+6*(o-t)*s:2*s<1?o:3*s<2?t+(o-t)*(.6666666666666666-s)*6:t,i[f]=u;return i}function g(r,a,l,n){var t,o,s,i,u,g,c,h=r/360,f=a/100,b=l/100,p=f+b;switch(p>1&&(f/=p,b/=p),o=1-b,s=6*h-(t=Math.floor(6*h)),0!=(1&t)&&(s=1-s),i=f+s*(o-f),t){default:case 6:case 0:u=o,g=i,c=f;break;case 1:u=i,g=o,c=f;break;case 2:u=f,g=o,c=i;break;case 3:u=f,g=i,c=o;break;case 4:u=i,g=f,c=o;break;case 5:u=o,g=f,c=i}return[u,g,c,n]}function c(r,a,l){return Math.min(Math.max(a,r),l)}Object.freeze(l);var h=/^#([a-f0-9]{3,4})$/i,f=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,b=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/,y=/(\D+)/;function k(r){var a,n,t,o=[0,0,0,1];if(a=r.match(f)){for(t=a[2],a=a[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(a.slice(s,s+2),16)/255}t&&(o[3]=Math.round(parseInt(t,16)/255*100)/100)}else if(a=r.match(h)){for(t=(a=a[1])[3],n=0;n<3;n++)o[n]=parseInt(a[n]+a[n],16)/255;t&&(o[3]=Math.round(parseInt(t+t,16)/255*100)/100)}else if(a=r.match(b)){for(n=0;n<3;n++)o[n]=parseInt(a[n+1],0)/255;a[4]&&(o[3]=parseFloat(a[4]))}else{if(!(a=r.match(p))){if(a=r.match(y)){if('transparent'===a[1])return[0,0,0,0];var i=l[a[1]];return'number'!=typeof i?null:N(i)}return null}for(n=0;n<3;n++)o[n]=parseFloat(a[n+1])/100;a[4]&&(o[3]=parseFloat(a[4]))}for(n=0;n<4;n++)o[n]=c(o[n],0,1);return o}var v=/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/;function w(r){var a=r.match(v);if(!a)return null;var l=parseFloat(a[4]);return u((parseFloat(a[1])+360)%360,c(parseFloat(a[2]),0,100),c(parseFloat(a[3]),0,100),isNaN(l)?1:c(l,0,1))}var F=/^hwb\(\s*([+-]?\d*[.]?\d+)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?[\d.]+)\s*)?\)$/;function M(r){var a=r.match(F);if(!a)return null;var l=parseFloat(a[4]);return g((parseFloat(a[1])%360+360)%360,c(parseFloat(a[2]),0,100),c(parseFloat(a[3]),0,100),isNaN(l)?1:c(l,0,1))}function q(r){switch(r.substring(0,3).toLowerCase()){case'hsl':return w(r);case'hwb':return M(r);default:return k(r)}}var N='android'===r.Platform.OS?function(r){return 0|r}:function(r){return r};e.integerColor=N},1974,[18]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=+n;return isNaN(t)?1:t}},1975,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(k,f,h){var c=f.stroke,p=f.strokeOpacity,y=f.strokeLinecap,v=f.strokeLinejoin,D=f.strokeDasharray,L=f.strokeWidth,b=f.strokeDashoffset,j=f.strokeMiterlimit,M=f.vectorEffect;null!=c&&(h.push('stroke'),k.stroke=(0,t.default)(c));null!=L&&(h.push('strokeWidth'),k.strokeWidth=L);null!=p&&(h.push('strokeOpacity'),k.strokeOpacity=(0,o.default)(p));if(null!=D){h.push('strokeDasharray');var O=D&&'none'!==D?(0,s.default)(D):null;k.strokeDasharray=O&&O.length%2==1?O.concat(O):O}null!=b&&(h.push('strokeDashoffset'),k.strokeDashoffset=D&&b?+b||0:null);null!=y&&(h.push('strokeLinecap'),k.strokeLinecap=y&&n[y]||0);null!=v&&(h.push('strokeLinejoin'),k.strokeLinejoin=v&&l[v]||0);null!=j&&(h.push('strokeMiterlimit'),k.strokeMiterlimit=(j&&'number'!=typeof j?parseFloat(j):j)||4);null!=M&&(k.vectorEffect=M&&u[M]||0)};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),n={butt:0,square:2,round:1},l={miter:0,bevel:2,round:1},u={none:0,default:0,nonScalingStroke:1,'non-scaling-stroke':1,inherit:2,uri:3}},1976,[3,1973,1975,1977]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){return Array.isArray(u)?u:'number'==typeof u?[u]:'string'==typeof u?u.trim().replace(n,' ').split(t):[]};var t=/\s+/,n=/,/g},1977,[]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,t,l){for(var p=t.onPress,u=t.disabled,R=t.onPressIn,i=t.onPressOut,c=t.onLongPress,b=t.delayPressIn,h=t.delayPressOut,P=t.delayLongPress,v=t.pointerEvents,H=!1,S=0;S0){for(r=1,t=1;rte&&(te=re,ue=[]),ue.push(e))}function ce(){var e,r,n,t,o;for(e=re,r=[],n=Te();n!==u;)r.push(n),n=Te();if(r!==u)if((n=he())===u&&(n=null),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();t!==u?e=r=f(n):(re=e,e=u)}else re=e,e=u;else re=e,e=u;return e}function he(){var e,r,n,t;if(e=re,(r=pe())!==u){for(n=[],t=we();t!==u;)n.push(t),t=we();n!==u&&(t=he())!==u?e=r=s(r,t):(re=e,e=u)}else re=e,e=u;return e===u&&(e=pe()),e}function pe(){var e;return(e=ge())===u&&(e=de())===u&&(e=ve())===u&&(e=Ae())===u&&(e=xe())===u&&(e=Ce()),e}function ge(){var e,n,t,o,i,f,s,A,x,C,y,j,w;if(e=re,r.substr(re,6)===l?(n=l,re+=6):(n=u,0===oe&&ae(a)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if(we()!==u)if((s=me())!==u)if(we()!==u)if((A=me())!==u)if(we()!==u)if((x=me())!==u)if(we()!==u)if((C=me())!==u)if(we()!==u)if((y=me())!==u){for(j=[],w=Te();w!==u;)j.push(w),w=Te();j!==u?(41===r.charCodeAt(re)?(w=p,re++):(w=u,0===oe&&ae(d)),w!==u?e=n=v(f,s,A,x,C,y):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function de(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,9)===A?(n=A,re+=9):(n=u,0===oe&&ae(x)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=ye())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?e=n=C(f,s):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function ve(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,5)===y?(n=y,re+=5):(n=u,0===oe&&ae(j)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=ye())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?e=n=w(f,s):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function Ae(){var e,n,t,o,i,f,s,l,a;if(e=re,r.substr(re,6)===b?(n=b,re+=6):(n=u,0===oe&&ae(E)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u)if((s=je())===u&&(s=null),s!==u){for(l=[],a=Te();a!==u;)l.push(a),a=Te();l!==u?(41===r.charCodeAt(re)?(a=p,re++):(a=u,0===oe&&ae(d)),a!==u?e=n=F(f,s):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function xe(){var e,n,t,o,i,f,s,l;if(e=re,r.substr(re,5)===M?(n=M,re+=5):(n=u,0===oe&&ae(k)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u){for(s=[],l=Te();l!==u;)s.push(l),l=Te();s!==u?(41===r.charCodeAt(re)?(l=p,re++):(l=u,0===oe&&ae(d)),l!==u?e=n=S(f):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function Ce(){var e,n,t,o,i,f,s,l;if(e=re,r.substr(re,5)===R?(n=R,re+=5):(n=u,0===oe&&ae(I)),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();if(t!==u)if(40===r.charCodeAt(re)?(o=c,re++):(o=u,0===oe&&ae(h)),o!==u){for(i=[],f=Te();f!==u;)i.push(f),f=Te();if(i!==u)if((f=me())!==u){for(s=[],l=Te();l!==u;)s.push(l),l=Te();s!==u?(41===r.charCodeAt(re)?(l=p,re++):(l=u,0===oe&&ae(d)),l!==u?e=n=T(f):(re=e,e=u)):(re=e,e=u)}else re=e,e=u;else re=e,e=u}else re=e,e=u;else re=e,e=u}else re=e,e=u;return e}function me(){var e,r,n,t;return e=re,r=re,(n=Se())===u&&(n=null),n!==u&&(t=Fe())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(r=X(r)),(e=r)===u&&(e=re,r=re,(n=Se())===u&&(n=null),n!==u&&(t=Ee())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(r=Y(r)),e=r),e}function ye(){var e,r;return e=re,we()!==u&&(r=me())!==u?e=_(r):(re=e,e=u),e}function je(){var e,r,n;return e=re,we()!==u&&(r=me())!==u&&we()!==u&&(n=me())!==u?e=L(r,n):(re=e,e=u),e}function we(){var e,r,n,t,o;if(e=re,r=[],(n=Te())!==u)for(;n!==u;)r.push(n),n=Te();else r=u;if(r!==u)if((n=be())===u&&(n=null),n!==u){for(t=[],o=Te();o!==u;)t.push(o),o=Te();t!==u?e=r=[r,n,t]:(re=e,e=u)}else re=e,e=u;else re=e,e=u;if(e===u)if(e=re,(r=be())!==u){for(n=[],t=Te();t!==u;)n.push(t),t=Te();n!==u?e=r=[r,n]:(re=e,e=u)}else re=e,e=u;return e}function be(){var e;return 44===r.charCodeAt(re)?(e=P,re++):(e=u,0===oe&&ae(U)),e}function Ee(){var e;return re,(e=Re())!==u&&(e=q(e)),e}function Fe(){var e,r,n,t;return e=re,r=re,(n=Me())!==u?((t=ke())===u&&(t=null),t!==u?r=n=[n,t]:(re=r,r=u)):(re=r,r=u),r!==u&&(r=z(r)),(e=r)===u&&(e=re,r=re,(n=Re())!==u&&(t=ke())!==u?r=n=[n,t]:(re=r,r=u),r!==u&&(r=B(r)),e=r),e}function Me(){var e,n,t,o;return oe++,e=re,(n=Re())===u&&(n=null),n!==u?(46===r.charCodeAt(re)?(t=G,re++):(t=u,0===oe&&ae(H)),t!==u&&(o=Re())!==u?e=n=J(n,o):(re=e,e=u)):(re=e,e=u),e===u&&(e=re,(n=Re())!==u?(46===r.charCodeAt(re)?(t=G,re++):(t=u,0===oe&&ae(H)),t!==u?e=n=B(n):(re=e,e=u)):(re=e,e=u)),oe--,e===u&&(n=u,0===oe&&ae(D)),e}function ke(){var e,n,t,o;return re,e=re,K.test(r.charAt(re))?(n=r.charAt(re),re++):(n=u,0===oe&&ae(N)),n!==u?((t=Se())===u&&(t=null),t!==u&&(o=Re())!==u?e=n=[n,t,o]:(re=e,e=u)):(re=e,e=u),e!==u&&(e=O(e)),e}function Se(){var e;return Q.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(V)),e}function Re(){var e,r;if(e=[],(r=Ie())!==u)for(;r!==u;)e.push(r),r=Ie();else e=u;return e}function Ie(){var e;return W.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(Z)),e}function Te(){var e;return $.test(r.charAt(re))?(e=r.charAt(re),re++):(e=u,0===oe&&ae(ee)),e}var Xe,Ye,Le,Pe=Math.PI/180;if((t=i())!==u&&re===r.length)return t;throw t!==u&&re1?Y:M,null!=O&&(U.bbWidth=O),null!=A&&(U.bbHeight=A),(0,p.default)(U,U,this);var X=(0,k.default)(w);return null!=X&&(U.color=X,U.tintColor=X),null!=c&&(U.onLayout=c),h.default.createElement(r(d[17]).RNSVGSvg,(0,t.default)({},U,{ref:this.refMethod},(0,y.default)({viewBox:u,preserveAspectRatio:v})),h.default.createElement(N.default,{children:f,style:n,font:W,transform:x,fill:B,fillOpacity:D,fillRule:j,stroke:P,strokeWidth:I,strokeOpacity:_,strokeDasharray:H,strokeDashoffset:V,strokeLinecap:C,strokeLinejoin:E,strokeMiterlimit:G}))}}]),W})(b.default);_e.default=O,O.displayName='Svg',O.defaultProps={preserveAspectRatio:'xMidYMid meet'}},1990,[3,42,4,5,7,8,13,9,11,14,15,18,1978,1991,1974,1968,1992,1970]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.alignEnum=void 0,e.default=function(l){var x=l.viewBox,o=l.preserveAspectRatio;if(!x)return null;var u=(Array.isArray(x)?x:x.trim().split(M)).map(Number);if(4!==u.length||u.some(isNaN))return console.warn('Invalid `viewBox` prop:'+x),null;var v=o?o.trim().split(M):[],s=v[0],c=v[1];return{minX:u[0],minY:u[1],vbWidth:u[2],vbHeight:u[3],align:t[s]||'xMidYMid',meetOrSlice:n[c]||0}},e.meetOrSliceTypes=void 0;var n={meet:0,slice:1,none:2};e.meetOrSliceTypes=n;var t=['xMinYMin','xMidYMin','xMaxYMin','xMinYMid','xMidYMid','xMaxYMid','xMinYMax','xMidYMax','xMaxYMax','none'].reduce(function(n,t){return n[t]=t,n},{});e.alignEnum=t;var M=/\s+/},1991,[]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var c=o?Object.getOwnPropertyDescriptor(t,f):null;c&&(c.get||c.set)?Object.defineProperty(u,f,c):u[f]=t[f]}u.default=t,n&&n.set(t,u);return u})(r(d[8])),p=r(d[0])(r(d[9]));function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function v(){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}}var y=(function(s){(0,u.default)(b,s);var y,O,P=(y=b,O=v(),function(){var t,e=(0,f.default)(y);if(O){var n=(0,f.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,o.default)(this,t)});function b(){var t;(0,e.default)(this,b);for(var n=arguments.length,u=new Array(n),o=0;o1||Array.isArray(S)?n.Children.map(S,v):S;return{content:null===j?String(S):null,children:j,inlineSize:h,baselineShift:x,verticalAlign:O,alignmentBaseline:w,font:b(t),x:(0,o.default)(u),y:(0,o.default)(c),dx:(0,o.default)(p),dy:(0,o.default)(s),rotate:(0,o.default)(y)}},e.extractFont=b,e.setTSpan=function(t){f=t};var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=l(n);if(o&&o.has(t))return o.get(t);var f={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=u?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,o&&o.set(t,f);return f})(r(d[2])),o=r(d[0])(r(d[3]));function l(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(l=function(t){return t?o:n})(t)}var f,u=/^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?(?:%|px|em|pt|pc|mm|cm|in]))*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i,c=/^[\s"']*/,p=/[\s"']*$/,s=/\s*,\s*/g,y={};function S(t){return t?t.split(s)[0].replace(c,'').replace(p,''):null}function h(t){if(y.hasOwnProperty(t))return y[t];var n=u.exec(t);if(!n)return y[t]=null,null;var o=/bold/.exec(n[1]),l=/italic/.exec(n[1]);return y[t]={fontSize:n[2]||12,fontWeight:o?'bold':'normal',fontStyle:l?'italic':'normal',fontFamily:S(n[3])},y[t]}function b(n){var o=n.fontData,l=n.fontStyle,f=n.fontVariant,u=n.fontWeight,c=n.fontStretch,p=n.fontSize,s=n.fontFamily,y=n.textAnchor,b=n.textDecoration,v=n.letterSpacing,x=n.wordSpacing,O=n.kerning,w=n.fontFeatureSettings,j=n.fontVariantLigatures,P=n.fontVariationSettings,k=n.font,A=(0,r(d[4]).pickNotNil)({fontData:o,fontStyle:l,fontVariant:f,fontWeight:u,fontStretch:c,fontSize:p,fontFamily:S(s),textAnchor:y,textDecoration:b,letterSpacing:v,wordSpacing:x,kerning:O,fontFeatureSettings:w,fontVariantLigatures:j,fontVariationSettings:P}),D='string'==typeof k?h(k):k;return(0,t.default)({},D,A)}function v(t){return'string'==typeof t||'number'==typeof t?n.default.createElement(f,null,String(t)):t}},1993,[3,4,15,1977,1979]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),p=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=f?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(u,o,l):u[o]=t[o]}u.default=t,n&&n.set(t,u);return u})(r(d[9])),s=r(d[0])(r(d[10])),y=r(d[0])(r(d[11]));function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}function h(){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}}r(d[12]);var O=(function(y){(0,u.default)(b,y);var v,O,P=(v=b,O=h(),function(){var t,e=(0,o.default)(v);if(O){var n=(0,o.default)(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return(0,f.default)(this,t)});function b(){var n;(0,e.default)(this,b);for(var u=arguments.length,f=new Array(u),o=0;o=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1;){for(t=r=e[a],delete e[a],n=!0;r;){if(e.includes(r)){n=!1,e.splice(a,1);break}r='object'==typeof r&&r.parent||null}n&&(e[a]=t)}return e},existsOne:function e(t,r){return r.some(function(r){return'object'==typeof r&&(t(r)||e(t,r.children))})},getSiblings:function(e){var t='object'==typeof e&&e.parent;return t&&t.children||[]},hasAttrib:function(e,t){return e.props.hasOwnProperty(t)},findOne:function e(t,r){for(var n,a=0,o=r.length;a2&&void 0!==arguments[2]?arguments[2]:[],a=0,o=r.length;at[r])return 1}return 0}function M(e){return{selector:e,specificity:O(e.item.data)}}function W(e,t,r,n){var a,o,i,u,l,c,s,f=2*r,p=0;for(a=0;at&&(o=t),i>t&&(i=t),u=a,l=o;;)if(u element, skipped. Error details: '+e)}}var c=P(x(n));C(c);for(var s,f=h(D(c).reverse());!(s=f()).done;){var p=s.value,v=p.rule,y=p.item;if(null!==v){var b=l.default.generate(y.data);try{if("continue"===(function(){var t=w(b,e).map(_);if(0===t.length)return"continue";l.default.walk(v,{visit:'Declaration',enter:function(e){for(var r,n=e,a=n.property,o=n.value,i=n.important,u=a.trim(),c=(0,_r(d[11]).camelCase)(u),s=l.default.generate(o).trim(),f=h(t);!(r=f()).done;){var p=r.value,v=p.style,y=p.priority,b=y.get(u);(void 0===b||b',needPositions:!1,onParseError:e,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:r(d[3]),createList:function(){return new(r(d[4]))},createSingleNodeList:function(e){return(new(r(d[4]))).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,n){var t=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;var o=n.call(this,t);return this.onParseErrorThrow=!0,this.onParseError(e,o),this.onParseErrorThrow=!1,o}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==n)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var n=this.scanner.tokenStart,t=r(d[0]).NAME[e]+' is expected';switch(e){case o:this.scanner.tokenType===s||this.scanner.tokenType===c?(n=this.scanner.tokenEnd-1,t='Identifier is expected but function found'):t='Identifier is expected';break;case u:this.scanner.isDelim(35)&&(this.scanner.next(),n++,t='Name is expected');break;case l:this.scanner.tokenType===p&&(n=this.scanner.tokenEnd,t='Percent sign is expected');break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(n+=1)}this.error(t,n)}this.scanner.next()},consume:function(e){var n=this.scanner.getTokenValue();return this.eat(e),n},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(s),e},getLocation:function(e,n){return this.needPositions?this.locationMap.getLocationRange(e,n,this.filename):null},getLocationFromList:function(e){if(this.needPositions){var n=this.getFirstListNode(e),t=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==n?n.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==t?t.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,n){var t=void 0!==n&&n',P.needPositions=Boolean(o.positions),P.onParseError='function'==typeof o.onParseError?o.onParseError:e,P.onParseErrorThrow=!1,P.parseAtrulePrelude=!('parseAtrulePrelude'in o)||Boolean(o.parseAtrulePrelude),P.parseRulePrelude=!('parseRulePrelude'in o)||Boolean(o.parseRulePrelude),P.parseValue=!('parseValue'in o)||Boolean(o.parseValue),P.parseCustomProperty='parseCustomProperty'in o&&Boolean(o.parseCustomProperty),!P.context.hasOwnProperty(c))throw new Error('Unknown context `'+c+'`');return'function'==typeof u&&P.scanner.forEachToken(function(e,o,s){if(e===t){var c=P.getLocation(o,s),l=r(d[5]).cmpStr(n,s-2,s,'*/')?n.slice(o+2,s-2):n.slice(o+2,s);u(l,c)}}),s=P.context[c].call(P,o),P.scanner.eof||P.error(),s}}},2014,[2015,2016,2019,2022,2023,2017,2024,2021]); -__d(function(g,r,i,a,m,e,d){var t={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},n=Object.keys(t).reduce(function(n,c){return n[t[c]]=c,n},{});m.exports={TYPE:t,NAME:n}},2015,[]); -__d(function(g,r,_i,a,m,e,d){var t=r(d[0]).TYPE.EOF,n=r(d[0]).TYPE.WhiteSpace,s=r(d[0]).TYPE.Comment,o=function(){this.offsetAndType=null,this.balance=null,this.reset()};o.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(n){return(n+=this.tokenIndex)>24:t},lookupOffset:function(t){return(t+=this.tokenIndex)0?t>24,this.source,i)){case 1:break t;case 2:o++;break t;default:this.balance[s]===o&&(o=s),i=16777215&this.offsetAndType[o]}return o-this.tokenIndex},isBalanceEdge:function(t){return this.balance[this.tokenIndex]>24===n;t++,s++);s>0&&this.skip(s)},skipSC:function(){for(;this.tokenType===n||this.tokenType===s;)this.next()},skip:function(t){var n=this.tokenIndex+t;n>24,this.tokenEnd=16777215&n):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var n=this.tokenIndex+1;n>24,this.tokenEnd=16777215&n):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=t,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(t){for(var n=0,s=this.firstCharOffset;n>24,o,h,n)}},dump:function(){var t=this,n=new Array(this.tokenCount);return this.forEachToken(function(s,o,i,h){n[h]={idx:h,type:r(d[0]).NAME[s],chunk:t.source.substring(o,i),balance:t.balance[h]}}),n}},m.exports=o},2016,[2015,2017]); -__d(function(g,r,_i,a,m,e,d){function t(t,n){return nt.length)return!1;for(var o=n;o=0&&r(d[0]).isWhiteSpace(t.charCodeAt(n));n--);return n+1},findWhiteSpaceEnd:function(t,n){for(;n=48&&t<=57}function i(t){return t>=65&&t<=90}function u(t){return t>=97&&t<=122}function c(t){return i(t)||u(t)}function o(t){return t>=128}function s(t){return c(t)||o(t)||95===t}function f(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t}function N(t){return 10===t||13===t||12===t}function S(t){return N(t)||32===t||9===t}function b(n,i){return 92===n&&(!N(i)&&i!==t)}var l=new Array(128);h.Eof=128,h.WhiteSpace=130,h.Digit=131,h.NameStart=132,h.NonPrintable=133;for(var p=0;p=65&&t<=70||t>=97&&t<=102},isUppercaseLetter:i,isLowercaseLetter:u,isLetter:c,isNonAscii:o,isNameStart:s,isName:function(t){return s(t)||n(t)||45===t},isNonPrintable:f,isNewline:N,isWhiteSpace:S,isValidEscape:b,isIdentifierStart:function(t,n,i){return 45===t?s(n)||45===n||b(n,i):!!s(t)||92===t&&b(t,n)},isNumberStart:function(t,i,u){return 43===t||45===t?n(i)?2:46===i&&n(u)?3:0:46===t?n(i)?2:0:n(t)?1:0},isBOM:function(t){return 65279===t?1:65534===t?1:0},charCodeCategory:h}},2018,[]); -__d(function(g,r,_i,a,m,e,d){var t=10,s=12,n=13;function i(i,o){for(var u=o.length,l=r(d[0])(i.lines,u),h=i.startLine,c=r(d[0])(i.columns,u),f=i.startColumn,C=o.length>0?r(d[1]).isBOM(o.charCodeAt(0)):0;C=n.length?void(b>c,Y[l]=y,Y[y++]=l;yn&&(j=f-t+3,f=58);for(var x=h;x<=p;x++)x>=0&&x0&&s[x].length>j?"\u2026":'')+s[x].substr(j,98)+(s[x].length>j+n-1?"\u2026":''));return[l(h,c),new Array(f+v+2).join('-')+'^',l(c,p)].filter(Boolean).join('\n')}m.exports=function(n,t,o,u,l){var s=r(d[0])('SyntaxError',n);return s.source=t,s.offset=o,s.line=u,s.column=l,s.sourceFragment=function(n){return i(s,isNaN(n)?0:n)},Object.defineProperty(s,'formattedMessage',{get:function(){return'Parse error: '+s.message+'\n'+i(s,2)}}),s.parseError={offset:o,line:u,column:l},s}},2024,[2025]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t,n){var c=Object.create(SyntaxError.prototype),o=new Error;return c.name=t,c.message=n,Object.defineProperty(c,'stack',{get:function(){return(o.stack||'').replace(/^(.+\n){1,3}/,t+': '+n+'\n')}}),c}},2025,[]); -__d(function(g,r,_i,a,m,e,d){var t=Object.prototype.hasOwnProperty,n=function(){};function l(t){return'function'==typeof t?t:n}function i(t,n){return function(l,i,u){l.type===n&&t.call(this,l,i,u)}}function u(n,l){var i=l.structure,u=[];for(var o in i)if(!1!==t.call(i,o)){var c=i[o],f={name:o,type:!1,nullable:!1};Array.isArray(i[o])||(c=[i[o]]);for(var s=0;s0&&n.column>=0)||o||t||i)&&!(n&&'line'in n&&'column'in n&&o&&'line'in o&&'column'in o&&n.line>0&&n.column>=0&&o.line>0&&o.column>=0&&t))throw new Error('Invalid mapping: '+JSON.stringify({generated:n,source:t,original:o,name:i}))},n.prototype._serializeMappings=function(){for(var n,o,t,i,s=0,l=1,u=0,c=0,p=0,h=0,f='',_=this._mappings.toArray(),y=0,v=_.length;y0){if(!r(d[0]).compareByGeneratedPositionsInflated(o,_[y-1]))continue;n+=','}n+=r(d[3]).encode(o.generatedColumn-s),s=o.generatedColumn,null!=o.source&&(i=this._sources.indexOf(o.source),n+=r(d[3]).encode(i-h),h=i,n+=r(d[3]).encode(o.originalLine-1-c),c=o.originalLine-1,n+=r(d[3]).encode(o.originalColumn-u),u=o.originalColumn,null!=o.name&&(t=this._names.indexOf(o.name),n+=r(d[3]).encode(t-p),p=t)),f+=n}return f},n.prototype._generateSourcesContent=function(n,o){return n.map(function(n){if(!this._sourcesContents)return null;null!=o&&(n=r(d[0]).relative(o,n));var t=r(d[0]).toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},n.prototype.toJSON=function(){var n={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(n.file=this._file),null!=this._sourceRoot&&(n.sourceRoot=this._sourceRoot),this._sourcesContents&&(n.sourcesContent=this._generateSourcesContent(n.sources,n.sourceRoot)),n},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=n},2029,[2030,2031,2032,2033]); -__d(function(g,r,_i,a,m,e,d){e.getArg=function(n,t,i){if(t in n)return n[t];if(3===arguments.length)return i;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,t=/^data:.+\,.+$/;function i(t){var i=t.match(n);return i?{scheme:i[1],auth:i[2],host:i[3],port:i[4],path:i[5]}:null}function o(n){var t='';return n.scheme&&(t+=n.scheme+':'),t+='//',n.auth&&(t+=n.auth+'@'),n.host&&(t+=n.host),n.port&&(t+=":"+n.port),n.path&&(t+=n.path),t}function u(n){var t=n,u=i(n);if(u){if(!u.path)return n;t=u.path}for(var c,l=e.isAbsolute(t),h=t.split(/\/+/),s=0,f=h.length-1;f>=0;f--)'.'===(c=h[f])?h.splice(f,1):'..'===c?s++:s>0&&(''===c?(h.splice(f+1,s),s=0):(h.splice(f,2),s--));return''===(t=h.join('/'))&&(t=l?'/':'.'),u?(u.path=t,o(u)):t}function c(n,c){""===n&&(n="."),""===c&&(c=".");var l=i(c),h=i(n);if(h&&(n=h.path||'/'),l&&!l.scheme)return h&&(l.scheme=h.scheme),o(l);if(l||c.match(t))return c;if(h&&!h.host&&!h.path)return h.host=c,o(h);var s='/'===c.charAt(0)?c:u(n.replace(/\/+$/,'')+'/'+c);return h?(h.path=s,o(h)):s}e.urlParse=i,e.urlGenerate=o,e.normalize=u,e.join=c,e.isAbsolute=function(t){return'/'===t.charAt(0)||n.test(t)},e.relative=function(n,t){""===n&&(n="."),n=n.replace(/\/$/,'');for(var i=0;0!==t.indexOf(n+'/');){var o=n.lastIndexOf("/");if(o<0)return t;if((n=n.slice(0,o)).match(/^([^\/]+:\/)?\/*$/))return t;++i}return Array(i+1).join("../")+t.substr(n.length+1)};var l=!('__proto__'in Object.create(null));function h(n){return n}function s(n){if(!n)return!1;var t=n.length;if(t<9)return!1;if(95!==n.charCodeAt(t-1)||95!==n.charCodeAt(t-2)||111!==n.charCodeAt(t-3)||116!==n.charCodeAt(t-4)||111!==n.charCodeAt(t-5)||114!==n.charCodeAt(t-6)||112!==n.charCodeAt(t-7)||95!==n.charCodeAt(t-8)||95!==n.charCodeAt(t-9))return!1;for(var i=t-10;i>=0;i--)if(36!==n.charCodeAt(i))return!1;return!0}function f(n,t){return n===t?0:null===n?1:null===t?-1:n>t?1:-1}e.toSetString=l?h:function(n){return s(n)?'$'+n:n},e.fromSetString=l?h:function(n){return s(n)?n.slice(1):n},e.compareByOriginalPositions=function(n,t,i){var o=f(n.source,t.source);return 0!==o?o:0!=(o=n.originalLine-t.originalLine)?o:0!=(o=n.originalColumn-t.originalColumn)||i?o:0!=(o=n.generatedColumn-t.generatedColumn)?o:0!=(o=n.generatedLine-t.generatedLine)?o:f(n.name,t.name)},e.compareByGeneratedPositionsDeflated=function(n,t,i){var o=n.generatedLine-t.generatedLine;return 0!==o?o:0!=(o=n.generatedColumn-t.generatedColumn)||i?o:0!==(o=f(n.source,t.source))?o:0!=(o=n.originalLine-t.originalLine)?o:0!=(o=n.originalColumn-t.originalColumn)?o:f(n.name,t.name)},e.compareByGeneratedPositionsInflated=function(n,t){var i=n.generatedLine-t.generatedLine;return 0!==i?i:0!=(i=n.generatedColumn-t.generatedColumn)?i:0!==(i=f(n.source,t.source))?i:0!=(i=n.originalLine-t.originalLine)?i:0!=(i=n.originalColumn-t.originalColumn)?i:f(n.name,t.name)},e.parseSourceMapInput=function(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,''))},e.computeSourceURL=function(n,t,l){if(t=t||'',n&&('/'!==n[n.length-1]&&'/'!==t[0]&&(n+='/'),t=n+t),l){var h=i(l);if(!h)throw new Error("sourceMapURL could not be parsed");if(h.path){var s=h.path.lastIndexOf('/');s>=0&&(h.path=h.path.substring(0,s+1))}t=c(o(h),t)}return u(t)}},2030,[]); -__d(function(g,r,_i,a,m,e,d){var t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function i(){this._array=[],this._set=n?new Map:Object.create(null)}i.fromArray=function(t,n){for(var s=new i,o=0,h=t.length;o=0)return s}else{var o=r(d[0]).toSetString(i);if(t.call(this._set,o))return this._set[o]}throw new Error('"'+i+'" is not in the set.')},i.prototype.at=function(t){if(t>=0&&ts||h==s&&p>=_||r(d[0]).compareByGeneratedPositionsInflated(n,o)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(r(d[0]).compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=t},2032,[2030]); -__d(function(g,r,i,a,m,e,d){function n(n){return n<0?1+(-n<<1):0+(n<<1)}e.encode=function(o){var t,c="",u=n(o);do{t=31&u,(u>>>=5)>0&&(t|=32),c+=r(d[0]).encode(t)}while(u>0);return c},e.decode=function(n,o,t){var c,u,h,f,l=n.length,w=0,v=0;do{if(o>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(u=r(d[0]).decode(n.charCodeAt(o++))))throw new Error("Invalid base64 digit: "+n.charAt(o-1));c=!!(32&u),w+=(u&=31)<>1,1==(1&h)?-f:f),t.rest=o}},2033,[2034]); -__d(function(g,r,i,a,m,e,d){var n='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');e.encode=function(t){if(0<=t&&t');function i(t,n,i){var s={};for(var o in t)t[o].syntax&&(s[o]=i?t[o].syntax:r(d[1])(t[o].syntax,{compact:n}));return s}function s(t,n,s){for(var o={},u=0,c=Object.entries(t);u3&&void 0!==arguments[3]?arguments[3]:null,syntax:null,match:null};return'function'==typeof t?o.match=r(d[0]).buildMatchGraph(t,s):('string'==typeof t?Object.defineProperty(o,'syntax',{get:function(){return Object.defineProperty(o,'syntax',{value:r(d[9])(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,'match',{get:function(){return Object.defineProperty(o,'match',{value:r(d[0]).buildMatchGraph(o.syntax,s)}),o.match}})),o},addAtrule_:function(t,n){var i=this;n&&(this.atrules[t]={type:'Atrule',name:t,prelude:n.prelude?this.createDescriptor(n.prelude,'AtrulePrelude',t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce(function(s,o){return s[o]=i.createDescriptor(n.descriptors[o],'AtruleDescriptor',o,t),s},{}):null})},addProperty_:function(t,n){n&&(this.properties[t]=this.createDescriptor(n,'Property',t))},addType_:function(t,i){i&&(this.types[t]=this.createDescriptor(i,'Type',t),i===r(d[8])['-ms-legacy-expression']&&(this.valueCommonSyntax=n))},checkAtruleName:function(t){if(!this.getAtrule(t))return new(r(d[6]).SyntaxReferenceError)('Unknown at-rule','@'+t)},checkAtrulePrelude:function(t,n){var i=this.checkAtruleName(t);if(i)return i;var s=this.getAtrule(t);return!s.prelude&&n?new SyntaxError('At-rule `@'+t+'` should not contain a prelude'):s.prelude&&!n?new SyntaxError('At-rule `@'+t+'` should contain a prelude'):void 0},checkAtruleDescriptorName:function(t,n){var i=this.checkAtruleName(t);if(i)return i;var s=this.getAtrule(t),o=r(d[10]).keyword(n);return s.descriptors?s.descriptors[o.name]||s.descriptors[o.basename]?void 0:new(r(d[6]).SyntaxReferenceError)('Unknown at-rule descriptor',n):new SyntaxError('At-rule `@'+t+'` has no known descriptors')},checkPropertyName:function(t){return r(d[10]).property(t).custom?new Error('Lexer matching doesn\'t applicable for custom properties'):this.getProperty(t)?void 0:new(r(d[6]).SyntaxReferenceError)('Unknown property',t)},matchAtrulePrelude:function(t,n){var i=this.checkAtrulePrelude(t,n);return i?u(null,i):n?c(this,this.getAtrule(t).prelude,n,!1):u(null,null)},matchAtruleDescriptor:function(t,n,i){var s=this.checkAtruleDescriptorName(t,n);if(s)return u(null,s);var o=this.getAtrule(t),p=r(d[10]).keyword(n);return c(this,o.descriptors[p.name]||o.descriptors[p.basename],i,!1)},matchDeclaration:function(t){return'Declaration'!==t.type?u(null,new Error('Not a Declaration node')):this.matchProperty(t.property,t.value)},matchProperty:function(t,n){var i=this.checkPropertyName(t);return i?u(null,i):c(this,this.getProperty(t),n,!0)},matchType:function(t,n){var i=this.getType(t);return i?c(this,i,n,!1):u(null,new(r(d[6]).SyntaxReferenceError)('Unknown type',t))},match:function(t,n){return'string'==typeof t||t&&t.type?('string'!=typeof t&&t.match||(t=this.createDescriptor(t,'Type','anonymous')),c(this,t,n,!1)):u(null,new(r(d[6]).SyntaxReferenceError)('Bad syntax'))},findValueFragments:function(t,n,i,s){return r(d[11]).matchFragments(this,n,this.matchProperty(t,n),i,s)},findDeclarationValueFragments:function(t,n,i){return r(d[11]).matchFragments(this,t.value,this.matchDeclaration(t),n,i)},findAllFragments:function(t,n,i){var s=[];return this.syntax.walk(t,{visit:'Declaration',enter:function(t){s.push.apply(s,this.findDeclarationValueFragments(t,n,i))}.bind(this)}),s},getAtrule:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=r(d[10]).keyword(t);return(i.vendor&&n?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name])||null},getAtrulePrelude:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getAtrule(t,n);return i&&i.prelude||null},getAtruleDescriptor:function(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null},getProperty:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=r(d[10]).property(t);return(i.vendor&&n?this.properties[i.name]||this.properties[i.basename]:this.properties[i.name])||null},getType:function(t){return this.types.hasOwnProperty(t)?this.types[t]:null},validate:function(){function t(s,o,u,c){if(u.hasOwnProperty(o))return u[o];u[o]=!1,null!==c.syntax&&r(d[12])(c.syntax,function(c){if('Type'===c.type||'Property'===c.type){var p='Type'===c.type?s.types:s.properties,l='Type'===c.type?n:i;p.hasOwnProperty(c.name)&&!t(s,c.name,l,p[c.name])||(u[o]=!0)}},this)}var n={},i={};for(var s in this.types)t(this,s,n,this.types[s]);for(var s in this.properties)t(this,s,i,this.properties[s]);return n=Object.keys(n).filter(function(t){return n[t]}),i=Object.keys(i).filter(function(t){return i[t]}),n.length||i.length?{types:n,properties:i}:null},dump:function(t,n){return{generic:this.generic,types:i(this.types,!n,t),properties:i(this.properties,!n,t),atrules:s(this.atrules,!n,t)}},toString:function(){return JSON.stringify(this.dump())}},m.exports=p},2036,[2037,2041,31,2042,2043,2044,2045,2046,2047,2038,2050,2051,2052]); -__d(function(g,r,_i,a,m,e,d){var t={type:'Match'},n={type:'Mismatch'},u={type:'DisallowEmpty'},y=40,o=41;function l(u,y,o){return y===t&&o===n?u:u===t&&y===t&&o===t?u:('If'===u.type&&u.else===n&&y===t&&(y=u.then,u=u.match),{type:'If',match:u,then:y,else:o})}function c(t){return t.length>2&&t.charCodeAt(t.length-2)===y&&t.charCodeAt(t.length-1)===o}function p(t){return'Keyword'===t.type||'AtKeyword'===t.type||'Function'===t.type||'Type'===t.type&&c(t.name)}function s(u,y,o){switch(u){case' ':for(var i=t,h=y.length-1;h>=0;h--){i=l(w=y[h],i,n)}return i;case'|':i=n;var f=null;for(h=y.length-1;h>=0;h--){if(p(w=y[h])&&(null===f&&h>0&&p(y[h-1])&&(i=l({type:'Enum',map:f=Object.create(null)},t,i)),null!==f)){var v=(c(w.name)?w.name.slice(0,-1):w.name).toLowerCase();if(v in f==!1){f[v]=w;continue}}f=null,i=l(w,t,i)}return i;case'&&':if(y.length>5)return{type:'MatchOnce',terms:y,all:!0};for(i=n,h=y.length-1;h>=0;h--){var w=y[h];x=y.length>1?s(u,y.filter(function(t){return t!==w}),!1):t,i=l(w,x,i)}return i;case'||':if(y.length>5)return{type:'MatchOnce',terms:y,all:!1};for(i=o?t:n,h=y.length-1;h>=0;h--){var x;w=y[h];x=y.length>1?s(u,y.filter(function(t){return t!==w}),!0):t,i=l(w,x,i)}return i}}function i(y){var o=t,c=h(y.term);if(0===y.max)(o=l(c=l(c,u,n),null,n)).then=l(t,t,o),y.comma&&(o.then.else=l({type:'Comma',syntax:y},o,n));else for(var p=y.min||1;p<=y.max;p++)y.comma&&o!==t&&(o=l({type:'Comma',syntax:y},o,n)),o=l(c,l(t,t,o),n);if(0===y.min)o=l(t,t,o);else for(p=0;p=128||0===S[a])break}return t.pos===n&&t.error('Expect a keyword'),t.substringToPos(n)}function W(t){for(var n=t.pos;n57)break}return t.pos===n&&t.error('Expect a number'),t.substringToPos(n)}function _(t){var n=t.str.indexOf('\'',t.pos+1);return-1===n&&(t.pos=t.str.length,t.error('Expect an apostrophe')),t.substringToPos(n+1)}function j(t){var n,a=null;return t.eat(T),n=W(t),t.charCode()===C?(t.pos++,t.charCode()!==U&&(a=W(t))):a=n,t.eat(U),{min:Number(n),max:a?Number(a):0}}function z(t){var n=null,a=!1;switch(t.charCode()){case h:t.pos++,n={min:0,max:0};break;case y:t.pos++,n={min:1,max:0};break;case k:t.pos++,n={min:0,max:1};break;case c:t.pos++,a=!0,n=t.charCode()===T?j(t):{min:1,max:0};break;case T:n=j(t);break;default:return null}return{type:'Multiplier',comma:a,min:n.min,max:n.max,term:null}}function F(t,n){var a=z(t);return null!==a?(a.term=n,a):n}function M(t){var n=t.peek();return''===n?null:{type:'Token',value:n}}function R(t){var n;return t.eat(v),t.eat(i),n=O(t),t.eat(i),t.eat(x),F(t,{type:'Property',name:n})}function Z(t){var n=null,a=null,o=1;return t.eat(A),t.charCode()===b&&(t.peek(),o=-1),-1==o&&t.charCode()===N?t.peek():n=o*Number(W(t)),K(t),t.eat(C),K(t),t.charCode()===N?t.peek():(o=1,t.charCode()===b&&(t.peek(),o=-1),a=o*Number(W(t))),t.eat(E),null===n&&null===a?null:{type:'Range',min:n,max:a}}function q(t){var n,a=null;return t.eat(v),n=O(t),t.charCode()===l&&t.nextCharCode()===f&&(t.pos+=2,n+='()'),t.charCodeAt(t.findWsEnd(t.pos))===A&&(K(t),a=Z(t)),t.eat(x),F(t,{type:'Type',name:n,opts:a})}function B(t){var n;return n=O(t),t.charCode()===l?(t.pos++,{type:'Function',name:n}):F(t,{type:'Keyword',name:n})}function D(t,n){function a(t,n){return{type:'Group',terms:t,combinator:n,disallowEmpty:!1,explicit:!1}}for(n=Object.keys(n).sort(function(t,n){return G[t]-G[n]});n.length>0;){for(var o=n.shift(),s=0,u=0;s1&&(t.splice(u,s-u,a(t.slice(u,s),o)),s=u+1),u=-1))}-1!==u&&n.length&&t.splice(u,s-u,a(t.slice(u,s),o))}return o}function H(t){for(var n,a=[],o={},s=null,u=t.pos;n=J(t);)'Spaces'!==n.type&&('Combinator'===n.type?(null!==s&&'Combinator'!==s.type||(t.pos=u,t.error('Unexpected combinator')),o[n.value]=!0):null!==s&&'Combinator'!==s.type&&(o[' ']=!0,a.push({type:'Combinator',value:' '})),a.push(n),s=n,u=t.pos);return null!==s&&'Combinator'===s.type&&(t.pos-=u,t.error('Unexpected combinator')),{type:'Group',terms:a,combinator:D(a,o)||' ',disallowEmpty:!1,explicit:!1}}function I(t){var n;return t.eat(A),n=H(t),t.eat(E),n.explicit=!0,t.charCode()===u&&(t.pos++,n.disallowEmpty=!0),n}function J(l){var f=l.charCode();if(f<128&&1===S[f])return B(l);switch(f){case E:break;case A:return F(l,I(l));case v:return l.nextCharCode()===i?R(l):q(l);case P:return{type:'Combinator',value:l.substringToPos(l.nextCharCode()===P?l.pos+2:l.pos+1)};case p:return l.pos++,l.eat(p),{type:'Combinator',value:'&&'};case C:return l.pos++,{type:'Comma'};case i:return F(l,{type:'String',value:_(l)});case s:case t:case n:case o:case a:return{type:'Spaces',value:K(l)};case w:return(f=l.nextCharCode())<128&&1===S[f]?(l.pos++,{type:'AtKeyword',name:O(l)}):M(l);case h:case y:case k:case c:case u:break;case T:if((f=l.nextCharCode())<48||f>57)return M(l);break;default:return M(l)}}function L(t){var n=new(r(d[0]))(t),a=H(n);return n.pos!==t.length&&n.error('Unexpected input'),1===a.terms.length&&'Group'===a.terms[0].type&&(a=a.terms[0]),a}L('[a&&#|<\'c\'>*||e() f{2} /,(% g#{1,2} h{2,})]!'),m.exports=L},2038,[2039]); -__d(function(g,r,i,a,m,e,d){var t=function(t){this.str=t,this.pos=0};t.prototype={charCodeAt:function(t){return t';break;case'Property':f='<\''+n.name+'\'>';break;case'Keyword':f=n.name;break;case'AtKeyword':f='@'+n.name;break;case'Function':f=n.name+'(';break;case'String':case'Token':f=n.value;break;case'Comma':f=',';break;default:throw new Error('Unknown node type `'+n.type+'`')}return u(f,n)}m.exports=function(t,o){var u=n,p=!1,s=!1;return'function'==typeof o?u=o:o&&(p=Boolean(o.forceBraces),s=Boolean(o.compact),'function'==typeof o.decorate&&(u=o.decorate)),c(t,u,p,s)}},2041,[]); -__d(function(g,r,_i,a,m,e,d){function t(t){function n(t){return null!==t&&('Type'===t.type||'Property'===t.type||'Keyword'===t.type)}var u=null;return null!==this.matched&&(function i(o){if(Array.isArray(o.match)){for(var y=0;y=65&&c<=90&&(c|=32),c!==u)return!1}return!0}function y(t){return t.type===r(d[0]).TYPE.Delim&&'?'!==t.value}function M(t){return null===t||(t.type===r(d[0]).TYPE.Comma||t.type===r(d[0]).TYPE.Function||t.type===r(d[0]).TYPE.LeftParenthesis||t.type===r(d[0]).TYPE.LeftSquareBracket||t.type===r(d[0]).TYPE.LeftCurlyBracket||y(t))}function x(t){return null===t||(t.type===r(d[0]).TYPE.RightParenthesis||t.type===r(d[0]).TYPE.RightSquareBracket||t.type===r(d[0]).TYPE.RightCurlyBracket||t.type===r(d[0]).TYPE.Delim)}function v(k,y,v){function T(){do{L=++RD&&(D=R)}function I(){K=K.type===c?K.prev:{type:u,syntax:E.syntax,token:K.token,prev:K},E=E.prev}var E=null,P=null,w=null,Y=null,O=0,B=null,L=null,R=-1,D=0,K={type:n,syntax:null,token:null,prev:null};for(T();null===B&&++Ow.tokenIndex)&&(w=Y,Y=!1);else if(null===w){B=o;break}y=w.nextState,P=w.thenStack,E=w.syntaxStack,K=w.matchStack,R=w.tokenIndex,L=RR){for(;R':'<\''+y.name+'\'>'));if(!1!==Y&&null!==L&&'Type'===y.type)if('custom-ident'===y.name&&L.type===r(d[0]).TYPE.Ident||'length'===y.name&&'0'===L.value){null===Y&&(Y=C(y,w)),y=r(d[1]).MISMATCH;break}E={syntax:y.syntax,opts:y.syntax.opts||null!==E&&E.opts||null,prev:E},K={type:c,syntax:y.syntax,token:K.token,prev:K},y=W.match;break;case'Keyword':var $=y.name;if(null!==L){var j=L.value;if(-1!==j.indexOf('\\')&&(j=j.replace(/\\[09].*$/,'')),f(j,$)){H(),y=r(d[1]).MATCH;break}}y=r(d[1]).MISMATCH;break;case'AtKeyword':case'Function':if(null!==L&&f(L.value,y.name)){H(),y=r(d[1]).MATCH;break}y=r(d[1]).MISMATCH;break;case'Token':if(null!==L&&L.value===y.value){H(),y=r(d[1]).MATCH;break}y=r(d[1]).MISMATCH;break;case'Comma':null!==L&&L.type===r(d[0]).TYPE.Comma?M(K.token)?y=r(d[1]).MISMATCH:(H(),y=x(L)?r(d[1]).MISMATCH:r(d[1]).MATCH):y=M(K.token)||x(L)?r(d[1]).MATCH:r(d[1]).MISMATCH;break;case'String':var U='';for(G=R;G1?f=l(o=s(v||c,'end')||l(n,E)):(o=s(v,'start')||l(s(c,'start')||n,E.slice(0,y)),f=s(v,'end')||l(o,E.substr(y,x))),{css:E,mismatchOffset:y,mismatchLength:x,start:o,end:f}}function s(n,t){var s=n&&n.loc&&n.loc[t];return s?'line'in s?l(s):s:null}function l(n,t){var s={offset:n.offset,line:n.line,column:n.column};if(t){var l=t.split(/\n|\r\n?|\f/);s.offset+=t.length,s.line+=l.length-1,s.column=1===l.length?s.column+t.length:l.pop().length+1}return s}m.exports={SyntaxReferenceError:function(n,t){var s=r(d[0])('SyntaxReferenceError',n+(t?' `'+t+'`':''));return s.reference=t,s},SyntaxMatchError:function(n,s,l,c){var o=r(d[0])('SyntaxMatchError',n),f=t(c,l),u=f.css,i=f.mismatchOffset,h=f.mismatchLength,v=f.start,y=f.end;return o.rawMessage=n,o.syntax=s?r(d[1])(s):'',o.css=u,o.mismatchOffset=i,o.mismatchLength=h,o.message=n+"\n syntax: "+o.syntax+"\n value: "+(u||'')+"\n --------"+new Array(o.mismatchOffset+1).join('-')+'^',r(d[2])(o,v),o.loc={source:l&&l.loc&&l.loc.source||'',start:v,end:y},o}}},2045,[2025,2041,4]); -__d(function(g,r,_i,a,m,e,d){var n=Object.prototype.hasOwnProperty;function t(n){return'number'==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function o(n){return Boolean(n)&&t(n.offset)&&t(n.line)&&t(n.column)}function i(t,i){return function(l,f){if(!l||l.constructor!==Object)return f(l,'Type of node should be an Object');for(var c in l){var s=!0;if(!1!==n.call(l,c)){if('type'===c)l.type!==t&&f(l,'Wrong node type `'+l.type+'`, expected `'+t+'`');else if('loc'===c){if(null===l.loc)continue;if(l.loc&&l.loc.constructor===Object)if('string'!=typeof l.loc.source)c+='.source';else if(o(l.loc.start)){if(o(l.loc.end))continue;c+='.end'}else c+='.start';s=!1}else if(i.hasOwnProperty(c)){var u=0;for(s=!1;!s&&u');else{if(!Array.isArray(v))throw new Error('Wrong value `'+v+'` in `'+t+'.'+s+'` structure definition');u.push('List')}}c[s]=u.join(' | ')}return{docs:c,check:i(t,f)}}m.exports={getStructureFromConfig:function(t){var o={};if(t.node)for(var i in t.node)if(n.call(t.node,i)){var f=t.node[i];if(!f.structure)throw new Error('Missed `structure` field in `'+i+'` node type definition');o[i]=l(i,f)}return o}}},2046,[2023]); -__d(function(g,r,_i,a,m,e,d){var n,t=['unset','initial','inherit'],u=['calc(','-moz-calc(','-webkit-calc('];function i(n,t){return tn.max)return!0}return!1}function f(n,t){var u=n.index,i=0;do{if(i++,n.balance<=u)break}while(n=t(i));return i}function P(n){return function(t,i,l){return null===t?0:t.type===r(d[0]).TYPE.Function&&o(t.value,u)?f(t,i):n(t,i,l)}}function E(n){return function(t){return null===t||t.type!==n?0:1}}function T(n){return function(t,u,i){if(null===t||t.type!==r(d[0]).TYPE.Dimension)return 0;var l=r(d[0]).consumeNumber(t.value,0);if(null!==n){var o=t.value.indexOf('\\',l),f=-1!==o&&c(t.value,o)?t.value.substring(l,o):t.value.substr(l);if(!1===n.hasOwnProperty(f.toLowerCase()))return 0}return s(i,t.value,l)?0:1}}function Y(n){return'function'!=typeof n&&(n=function(){return 0}),function(t,u,i){return null!==t&&t.type===r(d[0]).TYPE.Number&&0===Number(t.value)?1:n(t,u,i)}}m.exports={'ident-token':E(r(d[0]).TYPE.Ident),'function-token':E(r(d[0]).TYPE.Function),'at-keyword-token':E(r(d[0]).TYPE.AtKeyword),'hash-token':E(r(d[0]).TYPE.Hash),'string-token':E(r(d[0]).TYPE.String),'bad-string-token':E(r(d[0]).TYPE.BadString),'url-token':E(r(d[0]).TYPE.Url),'bad-url-token':E(r(d[0]).TYPE.BadUrl),'delim-token':E(r(d[0]).TYPE.Delim),'number-token':E(r(d[0]).TYPE.Number),'percentage-token':E(r(d[0]).TYPE.Percentage),'dimension-token':E(r(d[0]).TYPE.Dimension),'whitespace-token':E(r(d[0]).TYPE.WhiteSpace),'CDO-token':E(r(d[0]).TYPE.CDO),'CDC-token':E(r(d[0]).TYPE.CDC),'colon-token':E(r(d[0]).TYPE.Colon),'semicolon-token':E(r(d[0]).TYPE.Semicolon),'comma-token':E(r(d[0]).TYPE.Comma),'[-token':E(r(d[0]).TYPE.LeftSquareBracket),']-token':E(r(d[0]).TYPE.RightSquareBracket),'(-token':E(r(d[0]).TYPE.LeftParenthesis),')-token':E(r(d[0]).TYPE.RightParenthesis),'{-token':E(r(d[0]).TYPE.LeftCurlyBracket),'}-token':E(r(d[0]).TYPE.RightCurlyBracket),string:E(r(d[0]).TYPE.String),ident:E(r(d[0]).TYPE.Ident),'custom-ident':function(n){if(null===n||n.type!==r(d[0]).TYPE.Ident)return 0;var u=n.value.toLowerCase();return o(u,t)?0:l(u,'default')?0:1},'custom-property-name':function(n){return null===n||n.type!==r(d[0]).TYPE.Ident?0:45!==i(n.value,0)||45!==i(n.value,1)?0:1},'hex-color':function(n){if(null===n||n.type!==r(d[0]).TYPE.Hash)return 0;var t=n.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var u=1;un.index||n.balancen.index||n.balance0?6:0;if(!r(d[0]).isHexDigit(c))return 0;if(++o>6)return 0}return o}function y(n,t,u){if(!n)return 0;for(;c(u(t),o);){if(++n>6)return 0;t++}return t}m.exports=function(t,h){var C=0;if(null===t||t.type!==n||!r(d[0]).cmpChar(t.value,0,117))return 0;if(null===(t=h(++C)))return 0;if(c(t,43))return null===(t=h(++C))?0:t.type===n?y(p(t,0,!0),++C,h):c(t,o)?y(1,++C,h):0;if(t.type===u){if(!v(t,43))return 0;var E=p(t,1,!0);return 0===E?0:null===(t=h(++C))?C:t.type===f||t.type===u?v(t,l)&&p(t,1,!1)?C+1:0:y(E,C,h)}return t.type===f&&v(t,43)?y(p(t,1,!0),++C,h):0}},2049,[2021]); -__d(function(g,r,i,a,m,e,d){var t=Object.prototype.hasOwnProperty,n=Object.create(null),o=Object.create(null),u=45;function c(t,n){return n=n||0,t.length-n>=2&&t.charCodeAt(n)===u&&t.charCodeAt(n+1)===u}function l(t,n){if(n=n||0,t.length-n>=3&&t.charCodeAt(n)===u&&t.charCodeAt(n+1)!==u){var o=t.indexOf('-',n+2);if(-1!==o)return t.substring(n,o+1)}return''}m.exports={keyword:function(o){if(t.call(n,o))return n[o];var u=o.toLowerCase();if(t.call(n,u))return n[o]=n[u];var s=c(u,0),f=s?'':l(u,0);return n[o]=Object.freeze({basename:u.substr(f.length),name:u,vendor:f,prefix:f,custom:s})},property:function(n){if(t.call(o,n))return o[n];var u=n,s=n[0];'/'===s?s='/'===n[1]?'//':'/':'_'!==s&&'*'!==s&&'$'!==s&&'#'!==s&&'+'!==s&&'&'!==s&&(s='');var f=c(u,s.length);if(!f&&(u=u.toLowerCase(),t.call(o,u)))return o[n]=o[u];var h=f?'':l(u,s.length),b=u.substr(0,s.length+h.length);return o[n]=Object.freeze({basename:u.substr(b.length),name:u.substr(s.length),hack:s,vendor:h,prefix:b,custom:f})},isCustomProperty:c,vendorPrefix:l}},2050,[]); -__d(function(g,r,i,a,m,e,d){function n(t){return'node'in t?t.node:n(t.match[0])}function t(n){return'node'in n?n.node:t(n.match[n.match.length-1])}m.exports={matchFragments:function(c,o,u,h,f){var l=[];return null!==u.matched&&(function u(s){if(null!==s.syntax&&s.syntax.type===h&&s.syntax.name===f){var y=n(s),p=t(s);c.syntax.walk(o,function(n,t,c){if(n===y){var o=new(r(d[0]));do{if(o.appendData(t.data),t.data===p)break;t=t.next}while(null!==t);l.push({parent:c,nodes:o})}})}Array.isArray(s.match)&&s.match.forEach(u)})(u.matched),l}}},2051,[2023]); -__d(function(g,r,i,a,m,e,d){var t=function(){};function n(n){return'function'==typeof n?n:t}m.exports=function(o,c,s){var f=t,u=t;if('function'==typeof c?f=c:c&&(f=n(c.enter),u=n(c.leave)),f===t&&u===t)throw new Error('Neither `enter` nor `leave` walker handler is set or both aren\'t a function');!(function t(n){switch(f.call(s,n),n.type){case'Group':n.terms.forEach(t);break;case'Multiplier':t(n.term);break;case'Type':case'Property':case'Keyword':case'AtKeyword':case'Function':case'String':case'Token':case'Comma':break;default:throw new Error('Unknown type: '+n.type)}u.call(s,n)})(o)}},2052,[]); -__d(function(g,r,i,a,m,e,d){m.exports={SyntaxError:r(d[0]),parse:r(d[1]),generate:r(d[2]),walk:r(d[3])}},2053,[2040,2038,2041,2052]); -__d(function(g,r,i,a,m,e,d){m.exports=function n(t){var o={};for(var c in t){var f=t[c];f&&(Array.isArray(f)||f instanceof r(d[0])?f=f.map(n):f.constructor===Object&&(f=n(f))),o[c]=f}return o}},2054,[2023]); -__d(function(g,r,i,_a,m,e,d){var n=Object.prototype.hasOwnProperty,t={generic:!0,types:c,atrules:{prelude:f,descriptors:f},properties:c,parseContext:function(n,t){return r(d[0])(n,t)},scope:function t(a,c){for(var f in c)n.call(c,f)&&(o(a[f])?t(a[f],u(c[f])):a[f]=u(c[f]));return a},atrule:['parse'],pseudo:['parse'],node:['name','structure','parse','generate','walkContext']};function o(n){return n&&n.constructor===Object}function u(n){return o(n)?r(d[0])({},n):n}function a(n,t){return'string'==typeof t&&/^\s*\|/.test(t)?'string'==typeof n?n+t:t.replace(/^\s*\|\s*/,''):t||null}function c(t,o){if('string'==typeof o)return a(t,o);var u=r(d[0])({},t);for(var c in o)n.call(o,c)&&(u[c]=a(n.call(t,c)?t[c]:void 0,o[c]));return u}function f(n,t){var u=c(n,t);return!o(u)||Object.keys(u).length?u:null}function s(t,a,c){for(var f in c)if(!1!==n.call(c,f))if(!0===c[f])f in a&&n.call(a,f)&&(t[f]=u(a[f]));else if(c[f])if('function'==typeof c[f]){var l=c[f];t[f]=l({},t[f]),t[f]=l(t[f]||{},a[f])}else if(o(c[f])){var p={};for(var v in t[f])p[v]=s({},t[f][v],c[f]);for(var y in a[f])p[y]=s(p[y]||{},a[f][y],c[f]);t[f]=p}else if(Array.isArray(c[f])){for(var O={},b=c[f].reduce(function(n,t){return n[t]=!0,n},{}),j=0,h=Object.entries(t[f]||{});j | "},"angle-percentage":{syntax:" | "},"angular-color-hint":{syntax:""},"angular-color-stop":{syntax:" && ?"},"angular-color-stop-list":{syntax:"[ [, ]? ]# , "},"animateable-feature":{syntax:"scroll-position | contents | "},attachment:{syntax:"scroll | fixed | local"},"attr()":{syntax:"attr( ? [, ]? )"},"attr-matcher":{syntax:"[ '~' | '|' | '^' | '$' | '*' ]? '='"},"attr-modifier":{syntax:"i | s"},"attribute-selector":{syntax:"'[' ']' | '[' [ | ] ? ']'"},"auto-repeat":{syntax:"repeat( [ auto-fill | auto-fit ] , [ ? ]+ ? )"},"auto-track-list":{syntax:"[ ? [ | ] ]* ? \n[ ? [ | ] ]* ?"},"baseline-position":{syntax:"[ first | last ]? baseline"},"basic-shape":{syntax:" | | | | "},"bg-image":{syntax:"none | "},"bg-layer":{syntax:" || [ / ]? || || || || "},"bg-position":{syntax:"[ [ left | center | right | top | bottom | ] | [ left | center | right | ] [ top | center | bottom | ] | [ center | [ left | right ] ? ] && [ center | [ top | bottom ] ? ] ]"},"bg-size":{syntax:"[ | auto ]{1,2} | cover | contain"},"blur()":{syntax:"blur( )"},"blend-mode":{syntax:"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},box:{syntax:"border-box | padding-box | content-box"},"brightness()":{syntax:"brightness( )"},"calc()":{syntax:"calc( )"},"calc-sum":{syntax:" [ [ '+' | '-' ] ]*"},"calc-product":{syntax:" [ '*' | '/' ]*"},"calc-value":{syntax:" | | | ( )"},"cf-final-image":{syntax:" | "},"cf-mixing-image":{syntax:"? && "},"circle()":{syntax:"circle( [ ]? [ at ]? )"},"clamp()":{syntax:"clamp( #{3} )"},"class-selector":{syntax:"'.' "},"clip-source":{syntax:""},color:{syntax:" | | | | | | currentcolor | "},"color-stop":{syntax:" | "},"color-stop-angle":{syntax:"{1,2}"},"color-stop-length":{syntax:"{1,2}"},"color-stop-list":{syntax:"[ [, ]? ]# , "},combinator:{syntax:"'>' | '+' | '~' | [ '||' ]"},"common-lig-values":{syntax:"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{syntax:"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{syntax:"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{syntax:"add | subtract | intersect | exclude"},"compound-selector":{syntax:"[ ? * [ * ]* ]!"},"compound-selector-list":{syntax:"#"},"complex-selector":{syntax:" [ ? ]*"},"complex-selector-list":{syntax:"#"},"conic-gradient()":{syntax:"conic-gradient( [ from ]? [ at ]?, )"},"contextual-alt-values":{syntax:"[ contextual | no-contextual ]"},"content-distribution":{syntax:"space-between | space-around | space-evenly | stretch"},"content-list":{syntax:"[ | contents | | | | ]+"},"content-position":{syntax:"center | start | end | flex-start | flex-end"},"content-replacement":{syntax:""},"contrast()":{syntax:"contrast( [ ] )"},"counter()":{syntax:"counter( , ? )"},"counter-style":{syntax:" | symbols()"},"counter-style-name":{syntax:""},"counters()":{syntax:"counters( , , ? )"},"cross-fade()":{syntax:"cross-fade( , ? )"},"cubic-bezier-timing-function":{syntax:"ease | ease-in | ease-out | ease-in-out | cubic-bezier(, , , )"},"deprecated-system-color":{syntax:"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText"},"discretionary-lig-values":{syntax:"[ discretionary-ligatures | no-discretionary-ligatures ]"},"display-box":{syntax:"contents | none"},"display-inside":{syntax:"flow | flow-root | table | flex | grid | ruby"},"display-internal":{syntax:"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container"},"display-legacy":{syntax:"inline-block | inline-list-item | inline-table | inline-flex | inline-grid"},"display-listitem":{syntax:"? && [ flow | flow-root ]? && list-item"},"display-outside":{syntax:"block | inline | run-in"},"drop-shadow()":{syntax:"drop-shadow( {2,3} ? )"},"east-asian-variant-values":{syntax:"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]"},"east-asian-width-values":{syntax:"[ full-width | proportional-width ]"},"element()":{syntax:"element( )"},"ellipse()":{syntax:"ellipse( [ {2} ]? [ at ]? )"},"ending-shape":{syntax:"circle | ellipse"},"env()":{syntax:"env( , ? )"},"explicit-track-list":{syntax:"[ ? ]+ ?"},"family-name":{syntax:" | +"},"feature-tag-value":{syntax:" [ | on | off ]?"},"feature-type":{syntax:"@stylistic | @historical-forms | @styleset | @character-variant | @swash | @ornaments | @annotation"},"feature-value-block":{syntax:" '{' '}'"},"feature-value-block-list":{syntax:"+"},"feature-value-declaration":{syntax:": +;"},"feature-value-declaration-list":{syntax:""},"feature-value-name":{syntax:""},"fill-rule":{syntax:"nonzero | evenodd"},"filter-function":{syntax:" | | | | | | | | | "},"filter-function-list":{syntax:"[ | ]+"},"final-bg-layer":{syntax:"<'background-color'> || || [ / ]? || || || || "},"fit-content()":{syntax:"fit-content( [ | ] )"},"fixed-breadth":{syntax:""},"fixed-repeat":{syntax:"repeat( [ ] , [ ? ]+ ? )"},"fixed-size":{syntax:" | minmax( , ) | minmax( , )"},"font-stretch-absolute":{syntax:"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | "},"font-variant-css21":{syntax:"[ normal | small-caps ]"},"font-weight-absolute":{syntax:"normal | bold | "},"frequency-percentage":{syntax:" | "},"general-enclosed":{syntax:"[ ) ] | ( )"},"generic-family":{syntax:"serif | sans-serif | cursive | fantasy | monospace"},"generic-name":{syntax:"serif | sans-serif | cursive | fantasy | monospace"},"geometry-box":{syntax:" | fill-box | stroke-box | view-box"},gradient:{syntax:" | | | | "},"grayscale()":{syntax:"grayscale( )"},"grid-line":{syntax:"auto | | [ && ? ] | [ span && [ || ] ]"},"historical-lig-values":{syntax:"[ historical-ligatures | no-historical-ligatures ]"},"hsl()":{syntax:"hsl( [ / ]? ) | hsl( , , , ? )"},"hsla()":{syntax:"hsla( [ / ]? ) | hsla( , , , ? )"},hue:{syntax:" | "},"hue-rotate()":{syntax:"hue-rotate( )"},"id-selector":{syntax:""},image:{syntax:" | | | | | | "},"image()":{syntax:"image( ? [ ? , ? ]! )"},"image-set()":{syntax:"image-set( # )"},"image-set-option":{syntax:"[ | ] "},"image-src":{syntax:" | "},"image-tags":{syntax:"ltr | rtl"},"inflexible-breadth":{syntax:" | | min-content | max-content | auto"},"inset()":{syntax:"inset( {1,4} [ round <'border-radius'> ]? )"},"invert()":{syntax:"invert( )"},"keyframes-name":{syntax:" | "},"keyframe-block":{syntax:"# {\n \n}"},"keyframe-block-list":{syntax:"+"},"keyframe-selector":{syntax:"from | to | "},"leader()":{syntax:"leader( )"},"leader-type":{syntax:"dotted | solid | space | "},"length-percentage":{syntax:" | "},"line-names":{syntax:"'[' * ']'"},"line-name-list":{syntax:"[ | ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:" | thin | medium | thick"},"linear-color-hint":{syntax:""},"linear-color-stop":{syntax:" ?"},"linear-gradient()":{syntax:"linear-gradient( [ | to ]? , )"},"mask-layer":{syntax:" || [ / ]? || || || [ | no-clip ] || || "},"mask-position":{syntax:"[ | left | center | right ] [ | top | center | bottom ]?"},"mask-reference":{syntax:"none | | "},"mask-source":{syntax:""},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( #{6} )"},"matrix3d()":{syntax:"matrix3d( #{16} )"},"max()":{syntax:"max( # )"},"media-and":{syntax:" [ and ]+"},"media-condition":{syntax:" | | | "},"media-condition-without-or":{syntax:" | | "},"media-feature":{syntax:"( [ | | ] )"},"media-in-parens":{syntax:"( ) | | "},"media-not":{syntax:"not "},"media-or":{syntax:" [ or ]+"},"media-query":{syntax:" | [ not | only ]? [ and ]?"},"media-query-list":{syntax:"#"},"media-type":{syntax:""},"mf-boolean":{syntax:""},"mf-name":{syntax:""},"mf-plain":{syntax:" : "},"mf-range":{syntax:" [ '<' | '>' ]? '='? \n| [ '<' | '>' ]? '='? \n| '<' '='? '<' '='? \n| '>' '='? '>' '='? "},"mf-value":{syntax:" | | | "},"min()":{syntax:"min( # )"},"minmax()":{syntax:"minmax( [ | | min-content | max-content | auto ] , [ | | | min-content | max-content | auto ] )"},"named-color":{syntax:"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{syntax:""},"ns-prefix":{syntax:"[ | '*' ]? '|'"},"number-percentage":{syntax:" | "},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:" | even | odd"},"opacity()":{syntax:"opacity( [ ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:" | "},"page-body":{syntax:"? [ ; ]? | "},"page-margin-box":{syntax:" '{' '}'"},"page-margin-box-type":{syntax:"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{syntax:"[ # ]?"},"page-selector":{syntax:"+ | *"},"path()":{syntax:"path( [ , ]? )"},"paint()":{syntax:"paint( , ? )"},"perspective()":{syntax:"perspective( )"},"polygon()":{syntax:"polygon( ? , [ ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | ] [ top | center | bottom | ]? | [ [ left | right ] ] && [ [ top | bottom ] ] ]"},"pseudo-class-selector":{syntax:"':' | ':' ')'"},"pseudo-element-selector":{syntax:"':' "},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ || ]? [ at ]? , )"},"relative-selector":{syntax:"? "},"relative-selector-list":{syntax:"#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ | to ]? , )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ || ]? [ at ]? , )"},"rgb()":{syntax:"rgb( {3} [ / ]? ) | rgb( {3} [ / ]? ) | rgb( #{3} , ? ) | rgb( #{3} , ? )"},"rgba()":{syntax:"rgba( {3} [ / ]? ) | rgba( {3} [ / ]? ) | rgba( #{3} , ? ) | rgba( #{3} , ? )"},"rotate()":{syntax:"rotate( [ | ] )"},"rotate3d()":{syntax:"rotate3d( , , , [ | ] )"},"rotateX()":{syntax:"rotateX( [ | ] )"},"rotateY()":{syntax:"rotateY( [ | ] )"},"rotateZ()":{syntax:"rotateZ( [ | ] )"},"saturate()":{syntax:"saturate( )"},"scale()":{syntax:"scale( , ? )"},"scale3d()":{syntax:"scale3d( , , )"},"scaleX()":{syntax:"scaleX( )"},"scaleY()":{syntax:"scaleY( )"},"scaleZ()":{syntax:"scaleZ( )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:" | closest-side | farthest-side"},"skew()":{syntax:"skew( [ | ] , [ | ]? )"},"skewX()":{syntax:"skewX( [ | ] )"},"skewY()":{syntax:"skewY( [ | ] )"},"sepia()":{syntax:"sepia( )"},shadow:{syntax:"inset? && {2,4} && ?"},"shadow-t":{syntax:"[ {2,3} && ? ]"},shape:{syntax:"rect(, , , )"},"shape-box":{syntax:" | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"