@eid-easy/eideasy-browser-client 2.114.2 → 2.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-LATEST.md +2 -2
- package/CHANGELOG.md +30 -12
- package/dist/eideasy-browser-client.js +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see eideasy-browser-client.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},8407:function(t,e,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),c=n(4309);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),d=!n&&i(t),l=!n&&!d&&a(t),p=!n&&!d&&!l&&c(t),f=n||d||l||p,g=f?r(t.length,String):[],h=g.length;for(var y in t)!e&&!u.call(t,y)||f&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||g.push(y);return g}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),c=n(4626),u=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),g=n(4160),h=n(3824),y=n(9148),m=n(8517),v=n(1469),I=n(4144),S=n(6688),T=n(3218),E=n(2928),b=n(3674),C=n(1704),A="[object Arguments]",_="[object Function]",w="[object Object]",R={};R[A]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[w]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[_]=R["[object WeakMap]"]=!1,t.exports=function t(e,n,O,N,D,M){var U,k=1&n,x=2&n,L=4&n;if(O&&(U=D?O(e,N,D,M):O(e)),void 0!==U)return U;if(!T(e))return e;var B=v(e);if(B){if(U=h(e),!k)return u(e,U)}else{var P=g(e),j=P==_||"[object GeneratorFunction]"==P;if(I(e))return c(e,k);if(P==w||P==A||j&&!D){if(U=x||j?{}:m(e),!k)return x?l(e,s(U,e)):d(e,a(U,e))}else{if(!R[P])return D?e:{};U=y(e,P,k)}}M||(M=new r);var G=M.get(e);if(G)return G;M.set(e,U),E(e)?e.forEach((function(r){U.add(t(r,n,O,r,e,M))})):S(e)&&e.forEach((function(r,i){U.set(i,t(r,n,O,i,e,M))}));var F=B?void 0:(L?x?f:p:x?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(U,i,t(r,n,O,i,e,M))})),U}},3118:function(t,e,n){var r=n(3218),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),i=n(1469);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?p:s).test(a(t))}},9221:function(t,e,n){var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},2980:function(t,e,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),c=n(1704),u=n(6390);t.exports=function t(e,n,d,l,p){e!==n&&o(n,(function(o,c){if(p||(p=new r),s(o))a(e,n,c,d,t,l,p);else{var f=l?l(u(e,c),o,c+"",e,n,p):void 0;void 0===f&&(f=o),i(e,c,f)}}),c)}},9783:function(t,e,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),c=n(5694),u=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),g=n(8630),h=n(6719),y=n(6390),m=n(9881);t.exports=function(t,e,n,v,I,S,T){var E=y(t,n),b=y(e,n),C=T.get(b);if(C)r(t,n,C);else{var A=S?S(E,b,n+"",t,e,T):void 0,_=void 0===A;if(_){var w=u(b),R=!w&&l(b),O=!w&&!R&&h(b);A=b,w||R||O?u(E)?A=E:d(E)?A=a(E):R?(_=!1,A=i(b,!0)):O?(_=!1,A=o(b,!0)):A=[]:g(b)||c(b)?(A=E,c(E)?A=m(E):f(E)&&!p(E)||(A=s(b))):_=!1}_&&(T.set(b,A),I(A,b,v,S,T),T.delete(b)),r(t,n,A)}}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],d=o?o(n[u],t[u],u,n,t):void 0;void 0===d&&(d=t[u]),a?i(n,u,d):r(n,u,d)}return n}},8805:function(t,e,n){var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:function(t,e,n){var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),i=n(9551),o=n(3674);t.exports=function(t){return r(t,o,i)}},6904:function(t,e,n){var r=n(8866),i=n(1442),o=n(1704);t.exports=function(t){return r(t,o,i)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:function(t,e,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:function(t,e,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:function(t,e,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),c=n(4239),u=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",h=u(r),y=u(i),m=u(o),v=u(a),I=u(s),S=c;(r&&S(new r(new ArrayBuffer(1)))!=g||i&&S(new i)!=d||o&&S(o.resolve())!=l||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case h:return g;case y:return d;case m:return l;case v:return p;case I:return f}return e}),t.exports=S},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),i=n(5924),o=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:function(t,e,n){var r=n(1989),i=n(8407),o=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),c=Array(s);++a<s;)c[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(c),r(t,this,u)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),i=n(7071),o=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;t.exports=s},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},2928:function(t,e,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;t.exports=s},6719:function(t,e,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},1704:function(t,e,n){var r=n(4636),i=n(313),o=n(8612);t.exports=function(t){return o(t)?r(t,!0):i(t)}},2492:function(t,e,n){var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.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 p(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),s=new R(r||[]);return a(o,"_invoke",{value:C(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var g={};function h(){}function y(){}function m(){}var v={};l(v,c,(function(){return this}));var I=Object.getPrototypeOf,S=I&&I(I(O([])));S&&S!==n&&o.call(S,c)&&(v=S);var T=m.prototype=h.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,a,s,c){var u=f(t[i],t,a);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==r(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(l).then((function(t){d.value=t,s(d)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function C(t,e,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{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function A(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,A(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function _(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 w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(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,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return y.prototype=m,a(T,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=l(m,d,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,d,"GeneratorFunction")),t.prototype=Object.create(T),t},e.awrap=function(t){return{__await:t}},E(b.prototype),l(b.prototype,u,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(p(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=O,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),g}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var o={};return function(){"use strict";i.r(o),i.d(o,{allMethods:function(){return d},createClient:function(){return _u},default:function(){return wu},getMethodByHandlingModule:function(){return l},methodActionTypes:function(){return c},methodTypes:function(){return s},moduleNames:function(){return u}});var t,e={};function n(t){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},n(t)}function r(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(e)?e:String(e)}function a(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}i.r(e),i.d(e,{hasBrowserEnv:function(){return bt},hasStandardBrowserEnv:function(){return At},hasStandardBrowserWebWorkerEnv:function(){return _t},navigator:function(){return Ct},origin:function(){return wt}});var s={IDENTIFICATION:"identification",SIGNATURE:"signature"},c={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",EE_WEB_EID_LOGIN:"ee-web-eid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-login",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-login",LIDENTITE_NUMERIQUE_LOGIN:"lidentite-numerique-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CZ_IDCARD_SIGNATURE:"cz-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",SERPRO_ID_ADVANCED_SIGNATURE:"serpro-id-advanced-signature",CZ_BANKID_ADVANCED_SIGNATURE:"cz-bankid-advanced-signature",ABA_DO_QES_SIGNATURE:"aba-do-qes-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",D_TRUST_SIGN_ME_ADVANCED_SIGNATURE:"d-trust-sign-me-adv-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",CL_ECERT_ADVANCED_SIGNATURE:"cl-ecert-advanced-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",SE_BANK_ID_ADVANCED_HASH_SIGNATURE:"se-bankid-adv-hash-signature",DK_MIT_ID_ADVANCED_HASH_SIGNATURE:"dk-mitid-adv-hash-signature",NO_BANK_ID_ADVANCED_HASH_SIGNATURE:"no-bankid-adv-hash-signature",IT_SPID_QUALIFIED_HASH_SIGNATURE:"it-spid-qes-hash-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE:"no-bankid-adv-light-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",INFOCERT_QUALIFIED_SIGNATURE:"infocert-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-advanced-signature",LT_ID_QES_SIGNATURE:"lt-id-qes-signature",CERT_STORE_QES_SIGNATURE:"cert-store-qes-signature",CERT_STORE_ADVANCED_SIGNATURE:"cert-store-advanced-signature",CERT_STORE_ADV_UNVERIFIED_SIGN:"cert-store-adv-unverified-sign",BUYPASS_QES_SIGNATURE:"buypass-qes-signature",FI_FTN_INTESI_ADS_SIGNATURE:"fi-ftn-intesi-adv-signature",TRUST_ASIA_SIGNATURE:"trust-asia-signature",MSC_TRUST_GATE_SIGNATURE:"msc-trust-gate-signature",GSE_ADV_SIGNATURE:"gse-adv-signature",CERTME_QES_SIGNATURE:"certme-qes-signature",ES_LLEIDA_ADV_SIGNATURE:"es-lleida-advanced-signature",ADACOM_QES_SIGNATURE:"adacom-qes-signature",ADACOM_ONE_SHOT_QES_SIGNATURE:"adacom-one-shot-qes-signature",DIIA_QES_SIGNATURE:"diia-qes-signature",EMUDHRA_QES_SIGNATURE:"emudhra-qes-signature"},u={idCard:"idCard",mobileId:"mobileId",webEid:"webEid",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",gbOneId:"gbOneId",veriff:"veriff",lIdentiteNumerique:"lIdentiteNumerique",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",seBankIdAdvancedHashSignature:"seBankIdAdvancedHashSignature",dkMitIdAdvancedHashSignature:"dkMitIdAdvancedHashSignature",noBankIdAdvancedHashSignature:"noBankIdAdvancedHashSignature",itSpidQualifiedHashSignature:"itSpidQualifiedHashSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",serproIdAdvancedSignature:"serproIdAdvancedSignature",czBankIDSignature:"czBankIDSignature",abaDoSignature:"abaDoSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",dTrustSignMeAdvSignature:"dTrustSignMeAdvSignature",chaveMovelSignature:"chaveMovelSignature",eCertChileSignature:"eCertChileSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",noBankIdAdvLightSignature:"noBankIdAdvLightSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",infoCertQesSignature:"infoCertQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature",ltIdQesSignature:"ltIdQesSignature",buypassQesSignature:"buypassQesSignature",intesiFtnAdvSignature:"intesiFtnAdvSignature",certStoreQesSignature:"certStoreQesSignature",certStoreAdvancedSignature:"certStoreAdvancedSignature",certStoreAdvancedUnverifiedSignature:"certStoreAdvancedUnverifiedSignature",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature",adacomOneShotQesSignature:"adacomOneShotQesSignature",diiaQesSignature:"diiaQesSignature",emudhraQesSignature:"emudhraQesSignature"},d=Object.freeze((a(t={},s.IDENTIFICATION,[{actionType:c.BE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["BE"]},{actionType:c.EE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["EE"]},{actionType:c.FI_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["FI"]},{actionType:c.LV_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LV"]},{actionType:c.LT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LT"]},{actionType:c.PT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["PT"]},{actionType:c.RS_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["RS"]},{actionType:c.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:u.eParakstsMobile,supportedCountries:["LV"]},{actionType:c.LV_EPARAKSTS_ID_LOGIN,handlingModule:u.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:c.LT_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["LT"]},{actionType:c.EE_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["EE"]},{actionType:c.SMART_ID,handlingModule:u.smartId,supportedCountries:["EE","LV","LT","BE"]},{actionType:c.EE_WEB_EID_LOGIN,handlingModule:u.webEid,supportedCountries:["EE"]},{actionType:c.FREJA_EID_LOGIN,handlingModule:u.frejaEid,supportedCountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","AL","BA","GE","MK","RS","GB","UA","AR","BR","CL","CO","CA","MX","PE","US","AU","HK","JP","NZ","SG","KR","TW","GL","AX"]},{actionType:c.ZEALID_LOGIN,handlingModule:u.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:c.CZ_MOJEID,handlingModule:u.mojeId,supportedCountries:["CZ"]},{actionType:c.EDOAPP_EID_LOGIN,handlingModule:u.edoAppEid,supportedCountries:["PL"]},{actionType:c.FI_FTN_LOGIN,handlingModule:u.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:c.AT_HANDY_SIGNATUR_LOGIN,handlingModule:u.atHandy,supportedCountries:["AT"]},{actionType:c.ITSME_LOGIN,handlingModule:u.itsme,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_BASIC,handlingModule:u.itsmeBasic,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_STANDARD,handlingModule:u.itsmeStandard,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.SE_BANKID_LOGIN,handlingModule:u.seBankId,supportedCountries:["SE"]},{actionType:c.IDIN_LOGIN,handlingModule:u.idin,supportedCountries:["NL"]},{actionType:c.IDIN_CUSTOMER_ID_LOGIN,handlingModule:u.idinCustomerId,supportedCountries:["NL"]},{actionType:c.VERIFAI_LOGIN,handlingModule:u.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.YOONIK_LOGIN,handlingModule:u.yoonik,supportedCountries:["WORLD"]},{actionType:c.PL_MOJEID_LOGIN,handlingModule:u.plMojeId,supportedCountries:["PL"]},{actionType:c.MIT_ID_LOGIN,handlingModule:u.mitId,supportedCountries:["DK"]},{actionType:c.NORWEGIAN_BANKID_LOGIN,handlingModule:u.norwegianBankId,supportedCountries:["NO"]},{actionType:c.FTN_LOGIN,handlingModule:u.ftn,supportedCountries:["FI"]},{actionType:c.GB_ONE_ID_LOGIN,handlingModule:u.gbOneId,supportedCountries:["GB"]},{actionType:c.VERIFF_LOGIN,handlingModule:u.veriff,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:c.LIDENTITE_NUMERIQUE_LOGIN,handlingModule:u.lIdentiteNumerique,supportedCountries:["FR"]}]),a(t,s.SIGNATURE,[{actionType:c.EE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["EE"]},{actionType:c.LV_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LV"]},{actionType:c.LT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LT"]},{actionType:c.FI_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["FI","AX"]},{actionType:c.PT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["PT"]},{actionType:c.BE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["BE"]},{actionType:c.HR_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["HR"]},{actionType:c.CZ_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["CZ"]},{actionType:c.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:u.certEuropeUsbTokenSignature,supportedCountries:["FR","PL"]},{actionType:c.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:u.certSignUsbTokenSignature,supportedCountries:["RO","PL"]},{actionType:c.EE_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["EE"]},{actionType:c.LT_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["LT"]},{actionType:c.SMARTID_SIGNATURE,handlingModule:u.smartIdSignature,supportedCountries:["EE","LV","LT","BE"]},{actionType:c.EVROTRUST_SIGNATURE,handlingModule:u.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:c.ITSME_QES_SIGNATURE,handlingModule:u.itsmeQesSignature,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.OTP_EMAIL,handlingModule:u.otpSignature,supportedCountries:["WORLD"]},{actionType:c.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:u.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:c.FI_FTN_ADVANCED_SIGNATURE,handlingModule:u.ftnSignature,supportedCountries:["FI","AX"]},{actionType:c.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:u.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:c.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:u.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:c.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:u.atHandySignature,supportedCountries:["AT","DE"]},{actionType:c.ZEAL_ID_SIGNATURE,handlingModule:u.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RS","SE","SI","SK"]},{actionType:c.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:u.mojeIdSignature,supportedCountries:["CZ"]},{actionType:c.SERPRO_ID_ADVANCED_SIGNATURE,handlingModule:u.serproIdAdvancedSignature,supportedCountries:["BR"]},{actionType:c.CZ_BANKID_ADVANCED_SIGNATURE,handlingModule:u.czBankIDSignature,supportedCountries:["CZ"]},{actionType:c.ABA_DO_QES_SIGNATURE,handlingModule:u.abaDoSignature,supportedCountries:["DO"]},{actionType:c.GOOGLE_SIGNATURE,handlingModule:u.googleSignature,supportedCountries:["WORLD"]},{actionType:c.SE_BANKID_SIGNATURE,handlingModule:u.seBankIdSignature,supportedCountries:["SE"]},{actionType:c.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:u.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:c.D_TRUST_SIGN_ME_ADVANCED_SIGNATURE,handlingModule:u.dTrustSignMeAdvSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:c.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:u.chaveMovelSignature,supportedCountries:["PT"]},{actionType:c.CL_ECERT_ADVANCED_SIGNATURE,handlingModule:u.eCertChileSignature,supportedCountries:["CL"]},{actionType:c.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:u.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:c.NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE,handlingModule:u.noBankIdAdvLightSignature,supportedCountries:["NO"]},{actionType:c.MIT_ID_SIMPLE_SIGNATURE,handlingModule:u.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:c.IDIN_SIMPLE_SIGNATURE,handlingModule:u.idinSignature,supportedCountries:["NL"]},{actionType:c.SPID_QUALIFIED_SIGNATURE,handlingModule:u.spidQesSignature,supportedCountries:["IT"]},{actionType:c.VERIFAI_SIMPLE_SIGNATURE,handlingModule:u.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.FREJA_SIMPLE_SIGNATURE,handlingModule:u.frejaSimpleSignature,supportedCountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","AL","BA","GE","MK","RS","GB","UA","AR","BR","CL","CO","CA","MX","PE","US","AU","HK","JP","NZ","SG","KR","TW","GL","AX"]},{actionType:c.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:u.audkenniQesSignature,supportedCountries:["IS"]},{actionType:c.YES_COM_QUALIFIED_SIGNATURE,handlingModule:u.yesComQesSignature,supportedCountries:["DE"]},{actionType:c.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:u.simplySignQesSignature,supportedCountries:["PL"]},{actionType:c.UANATACA_QUALIFIED_SIGNATURE,handlingModule:u.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:c.INFOCERT_QUALIFIED_SIGNATURE,handlingModule:u.infoCertQesSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DE","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:u.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:c.HALCOM_QUALIFIED_SIGNATURE,handlingModule:u.halcomQesSignature,supportedCountries:["SI"]},{actionType:c.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:u.swissIdQesSignature,supportedCountries:["CH"]},{actionType:c.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:u.swissComQesSignature,supportedCountries:["CH"]},{actionType:c.DK_MITID_ADVANCED_SIGNATURE,handlingModule:u.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:c.DK_MITID_QES_SIGNATURE,handlingModule:u.mitIdQesSignature,supportedCountries:["DK"]},{actionType:c.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:u.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:c.SE_BANK_ID_QES_SIGNATURE,handlingModule:u.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:c.SE_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.seBankIdAdvancedHashSignature,supportedCountries:["SE"]},{actionType:c.DK_MIT_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.dkMitIdAdvancedHashSignature,supportedCountries:["DK"]},{actionType:c.NO_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.noBankIdAdvancedHashSignature,supportedCountries:["NO"]},{actionType:c.IT_SPID_QUALIFIED_HASH_SIGNATURE,handlingModule:u.itSpidQualifiedHashSignature,supportedCountries:["IT"]},{actionType:c.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:u.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:c.SE_FREJA_EID_QES_SIGNATURE,handlingModule:u.frejaQesSignature,supportedCountries:["SE"]},{actionType:c.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:u.frIdentAdvancedSignature,supportedCountries:["FR"]},{actionType:c.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:u.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:c.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:u.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:c.HARICA_QES_SIGNATURE,handlingModule:u.haricaQesSignature,supportedCountries:["GR"]},{actionType:c.VERIFF_ADVANCED_SIGNATURE,handlingModule:u.veriffAdvancedSignature,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:c.LT_ID_QES_SIGNATURE,handlingModule:u.ltIdQesSignature,supportedCountries:["LT"]},{actionType:c.CERT_STORE_QES_SIGNATURE,handlingModule:u.certStoreQesSignature,supportedCountries:["WORLD"]},{actionType:c.CERT_STORE_ADVANCED_SIGNATURE,handlingModule:u.certStoreAdvancedSignature,supportedCountries:["WORLD"]},{actionType:c.CERT_STORE_ADV_UNVERIFIED_SIGN,handlingModule:u.certStoreAdvancedUnverifiedSignature,supportedCountries:["WORLD"]},{actionType:c.BUYPASS_QES_SIGNATURE,handlingModule:u.buypassQesSignature,supportedCountries:["NO"]},{actionType:c.FI_FTN_INTESI_ADS_SIGNATURE,handlingModule:u.intesiFtnAdvSignature,supportedCountries:["FI"]},{actionType:c.TRUST_ASIA_SIGNATURE,handlingModule:u.trustAsiaSignature,supportedCountries:["CN"]},{actionType:c.MSC_TRUST_GATE_SIGNATURE,handlingModule:u.mscTrustGateSignature,supportedCountries:["MY"]},{actionType:c.GSE_ADV_SIGNATURE,handlingModule:u.gseAdvSignature,supportedCountries:["CO"]},{actionType:c.CERTME_QES_SIGNATURE,handlingModule:u.certMeQesSignature,supportedCountries:["RO"]},{actionType:c.ES_LLEIDA_ADV_SIGNATURE,handlingModule:u.esLleidaAdvSignature,supportedCountries:["ES"]},{actionType:c.ADACOM_QES_SIGNATURE,handlingModule:u.adacomQesSignature,supportedCountries:["GR"]},{actionType:c.ADACOM_ONE_SHOT_QES_SIGNATURE,handlingModule:u.adacomOneShotQesSignature,supportedCountries:["AD","AE","AF","AG","AI","AL","AM","AO","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FM","FO","FR","GA","GB","GD","GE","GF","GH","GI","GL","GM","GN","GP","GQ","GR","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","PR","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","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},{actionType:c.DIIA_QES_SIGNATURE,handlingModule:u.diiaQesSignature,supportedCountries:["UA"]},{actionType:c.EMUDHRA_QES_SIGNATURE,handlingModule:u.emudhraQesSignature,supportedCountries:["IN"]}]),t)),l=function(t,e,n){var r=d[t];if(e&&n){var i=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return i}return r.find((function(t){return t.handlingModule===e}))},p=i(2492),f=i.n(p);function g(t,e){return function(){return t.apply(e,arguments)}}const{toString:h}=Object.prototype,{getPrototypeOf:y}=Object,m=(v=Object.create(null),t=>{const e=h.call(t);return v[e]||(v[e]=e.slice(8,-1).toLowerCase())});var v;const I=t=>(t=t.toLowerCase(),e=>m(e)===t),S=t=>e=>typeof e===t,{isArray:T}=Array,E=S("undefined"),b=I("ArrayBuffer"),C=S("string"),A=S("function"),_=S("number"),w=t=>null!==t&&"object"==typeof t,R=t=>{if("object"!==m(t))return!1;const e=y(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},O=I("Date"),N=I("File"),D=I("Blob"),M=I("FileList"),U=I("URLSearchParams"),[k,x,L,B]=["ReadableStream","Request","Response","Headers"].map(I);function P(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),T(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function j(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,F=t=>!E(t)&&t!==G,V=(H="undefined"!=typeof Uint8Array&&y(Uint8Array),t=>H&&t instanceof H);var H;const q=I("HTMLFormElement"),K=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Q=I("RegExp"),z=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};P(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},Z="abcdefghijklmnopqrstuvwxyz",W="0123456789",J={DIGIT:W,ALPHA:Z,ALPHA_DIGIT:Z+Z.toUpperCase()+W},Y=I("AsyncFunction"),X=($="function"==typeof setImmediate,tt=A(G.postMessage),$?setImmediate:tt?(et=`axios@${Math.random()}`,nt=[],G.addEventListener("message",(({source:t,data:e})=>{t===G&&e===et&&nt.length&&nt.shift()()}),!1),t=>{nt.push(t),G.postMessage(et,"*")}):t=>setTimeout(t));var $,tt,et,nt;const rt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(G):"undefined"!=typeof process&&process.nextTick||X;var it={isArray:T,isArrayBuffer:b,isBuffer:function(t){return null!==t&&!E(t)&&null!==t.constructor&&!E(t.constructor)&&A(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||A(t.append)&&("formdata"===(e=m(t))||"object"===e&&A(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&b(t.buffer),e},isString:C,isNumber:_,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:R,isReadableStream:k,isRequest:x,isResponse:L,isHeaders:B,isUndefined:E,isDate:O,isFile:N,isBlob:D,isRegExp:Q,isFunction:A,isStream:t=>w(t)&&A(t.pipe),isURLSearchParams:U,isTypedArray:V,isFileList:M,forEach:P,merge:function t(){const{caseless:e}=F(this)&&this||{},n={},r=(r,i)=>{const o=e&&j(n,i)||i;R(n[o])&&R(r)?n[o]=t(n[o],r):R(r)?n[o]=t({},r):T(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&P(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(P(e,((e,r)=>{n&&A(e)?t[r]=g(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&y(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:m,kindOfTest:I,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(T(t))return t;let e=t.length;if(!_(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:z,freezeMethods:t=>{z(t,((e,n)=>{if(A(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];A(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return T(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:j,global:G,isContextDefined:F,ALPHABET:J,generateString:(t=16,e=J.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&A(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=T(t)?[]:{};return P(t,((t,e)=>{const o=n(t,r+1);!E(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:Y,isThenable:t=>t&&(w(t)||A(t))&&A(t.then)&&A(t.catch),setImmediate:X,asap:rt};function ot(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}it.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:it.toJSONObject(this.config),code:this.code,status:this.status}}});const at=ot.prototype,st={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{st[t]={value:t}})),Object.defineProperties(ot,st),Object.defineProperty(at,"isAxiosError",{value:!0}),ot.from=(t,e,n,r,i,o)=>{const a=Object.create(at);return it.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),ot.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var ct=ot;function ut(t){return it.isPlainObject(t)||it.isArray(t)}function dt(t){return it.endsWith(t,"[]")?t.slice(0,-2):t}function lt(t,e,n){return t?t.concat(e).map((function(t,e){return t=dt(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const pt=it.toFlatObject(it,{},null,(function(t){return/^is[A-Z]/.test(t)}));var ft=function(t,e,n){if(!it.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=it.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!it.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&it.isSpecCompliantForm(e);if(!it.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(it.isDate(t))return t.toISOString();if(!s&&it.isBlob(t))throw new ct("Blob is not supported. Use a Buffer instead.");return it.isArrayBuffer(t)||it.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(it.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(it.isArray(t)&&function(t){return it.isArray(t)&&!t.some(ut)}(t)||(it.isFileList(t)||it.endsWith(n,"[]"))&&(s=it.toArray(t)))return n=dt(n),s.forEach((function(t,r){!it.isUndefined(t)&&null!==t&&e.append(!0===a?lt([n],r,o):null===a?n:n+"[]",c(t))})),!1;return!!ut(t)||(e.append(lt(i,n,o),c(t)),!1)}const d=[],l=Object.assign(pt,{defaultVisitor:u,convertValue:c,isVisitable:ut});if(!it.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!it.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),it.forEach(n,(function(n,o){!0===(!(it.isUndefined(n)||null===n)&&i.call(e,n,it.isString(o)?o.trim():o,r,l))&&t(n,r?r.concat(o):[o])})),d.pop()}}(t),e};function gt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ht(t,e){this._pairs=[],t&&ft(t,this,e)}const yt=ht.prototype;yt.append=function(t,e){this._pairs.push([t,e])},yt.toString=function(t){const e=t?function(e){return t.call(this,e,gt)}:gt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var mt=ht;function vt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function It(t,e,n){if(!e)return t;const r=n&&n.encode||vt;it.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(e,n):it.isURLSearchParams(e)?e.toString():new mt(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var St=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){it.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Tt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Et={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const bt="undefined"!=typeof window&&"undefined"!=typeof document,Ct="object"==typeof navigator&&navigator||void 0,At=bt&&(!Ct||["ReactNative","NativeScript","NS"].indexOf(Ct.product)<0),_t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,wt=bt&&window.location.href||"http://localhost";var Rt={...e,...Et},Ot=function(t){function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&it.isArray(r)?r.length:o,s?(it.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&it.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&it.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a)}if(it.isFormData(t)&&it.isFunction(t.entries)){const n={};return it.forEachEntry(t,((t,r)=>{e(function(t){return it.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const Nt={transitional:Tt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=it.isObject(t);if(i&&it.isHTMLForm(t)&&(t=new FormData(t)),it.isFormData(t))return r?JSON.stringify(Ot(t)):t;if(it.isArrayBuffer(t)||it.isBuffer(t)||it.isStream(t)||it.isFile(t)||it.isBlob(t)||it.isReadableStream(t))return t;if(it.isArrayBufferView(t))return t.buffer;if(it.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return ft(t,new Rt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return Rt.isNode&&it.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=it.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ft(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(it.isString(t))try{return(0,JSON.parse)(t),it.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Nt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(it.isResponse(t)||it.isReadableStream(t))return t;if(t&&it.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw ct.from(t,ct.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rt.classes.FormData,Blob:Rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};it.forEach(["delete","get","head","post","put","patch"],(t=>{Nt.headers[t]={}}));var Dt=Nt;const Mt=it.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ut=Symbol("internals");function kt(t){return t&&String(t).trim().toLowerCase()}function xt(t){return!1===t||null==t?t:it.isArray(t)?t.map(xt):String(t)}function Lt(t,e,n,r,i){return it.isFunction(r)?r.call(this,e,n):(i&&(e=n),it.isString(e)?it.isString(r)?-1!==e.indexOf(r):it.isRegExp(r)?r.test(e):void 0:void 0)}class Bt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=kt(e);if(!i)throw new Error("header name must be a non-empty string");const o=it.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=xt(t))}const o=(t,e)=>it.forEach(t,((t,n)=>i(t,n,e)));if(it.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(it.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&Mt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(it.isHeaders(t))for(const[e,r]of t.entries())i(r,e,n);else null!=t&&i(e,t,n);return this}get(t,e){if(t=kt(t)){const n=it.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(it.isFunction(e))return e.call(this,t,n);if(it.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=kt(t)){const n=it.findKey(this,t);return!(!n||void 0===this[n]||e&&!Lt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=kt(t)){const i=it.findKey(n,t);!i||e&&!Lt(0,n[i],i,e)||(delete n[i],r=!0)}}return it.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!Lt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return it.forEach(this,((r,i)=>{const o=it.findKey(n,i);if(o)return e[o]=xt(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=xt(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return it.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&it.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[Ut]=this[Ut]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=kt(t);e[r]||(function(t,e){const n=it.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return it.isArray(t)?t.forEach(r):r(t),this}}Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),it.reduceDescriptors(Bt.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),it.freezeMethods(Bt);var Pt=Bt;function jt(t,e){const n=this||Dt,r=e||n,i=Pt.from(r.headers);let o=r.data;return it.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Gt(t){return!(!t||!t.__CANCEL__)}function Ft(t,e,n){ct.call(this,null==t?"canceled":t,ct.ERR_CANCELED,e,n),this.name="CanceledError"}it.inherits(Ft,ct,{__CANCEL__:!0});var Vt=Ft;function Ht(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new ct("Request failed with status code "+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const qt=(t,e,n=3)=>{let r=0;const i=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let d=a,l=0;for(;d!==o;)l+=n[d++],d%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),c-i<e)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(t,e){let n,r,i=0,o=1e3/e;const a=(e,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),s=e-i;s>=o?a(t,e):(n=t,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,c=i(s);r=o,t({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})}),n)},Kt=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Qt=t=>(...e)=>it.asap((()=>t(...e)));var zt=Rt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Rt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Rt.origin),Rt.navigator&&/(msie|trident)/i.test(Rt.navigator.userAgent)):()=>!0,Zt=Rt.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];it.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),it.isString(r)&&a.push("path="+r),it.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Wt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Jt=t=>t instanceof Pt?{...t}:t;function Yt(t,e){e=e||{};const n={};function r(t,e,n,r){return it.isPlainObject(t)&&it.isPlainObject(e)?it.merge.call({caseless:r},t,e):it.isPlainObject(e)?it.merge({},e):it.isArray(e)?e.slice():e}function i(t,e,n,i){return it.isUndefined(e)?it.isUndefined(t)?void 0:r(void 0,t,0,i):r(t,e,0,i)}function o(t,e){if(!it.isUndefined(e))return r(void 0,e)}function a(t,e){return it.isUndefined(e)?it.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>i(Jt(t),Jt(e),0,!0)};return it.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,a=o(t[r],e[r],r);it.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Xt=t=>{const e=Yt({},t);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=e;if(e.headers=s=Pt.from(s),e.url=It(Wt(e.baseURL,e.url),t.params,t.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),it.isFormData(r))if(Rt.hasStandardBrowserEnv||Rt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];s.setContentType([t||"multipart/form-data",...e].join("; "))}if(Rt.hasStandardBrowserEnv&&(i&&it.isFunction(i)&&(i=i(e)),i||!1!==i&&zt(e.url))){const t=o&&a&&Zt.read(a);t&&s.set(o,t)}return e},$t="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=Xt(t);let i=r.data;const o=Pt.from(r.headers).normalize();let a,s,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:f}=r;function g(){u&&u(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function y(){if(!h)return;const r=Pt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ht((function(t){e(t),g()}),(function(t){n(t),g()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(new ct("Request aborted",ct.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new ct("Network Error",ct.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Tt;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new ct(e,i.clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,t,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&it.forEach(o.toJSON(),(function(t,e){h.setRequestHeader(e,t)})),it.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),l&&"json"!==l&&(h.responseType=r.responseType),f&&([c,d]=qt(f,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=qt(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=e=>{h&&(n(!e||e.type?new Vt(null,t,h):e),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);m&&-1===Rt.protocols.indexOf(m)?n(new ct("Unsupported protocol "+m+":",ct.ERR_BAD_REQUEST,t)):h.send(i||null)}))},te=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const i=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;r.abort(e instanceof ct?e:new Vt(e instanceof Error?e.message:e))}};let o=e&&setTimeout((()=>{o=null,i(new ct(`timeout ${e} of ms exceeded`,ct.ETIMEDOUT))}),e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(i):t.removeEventListener("abort",i)})),t=null)};t.forEach((t=>t.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>it.asap(a),s}};const ee=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},ne=(t,e,n,r)=>{const i=async function*(t,e){for await(const n of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}}(t))yield*ee(n,e)}(t,e);let o,a=0,s=t=>{o||(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await i.next();if(e)return s(),void t.close();let o=r.byteLength;if(n){let t=a+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel(t){return s(t),i.return()}},{highWaterMark:2})},re="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ie=re&&"function"==typeof ReadableStream,oe=re&&("function"==typeof TextEncoder?(ae=new TextEncoder,t=>ae.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var ae;const se=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},ce=ie&&se((()=>{let t=!1;const e=new Request(Rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),ue=ie&&se((()=>it.isReadableStream(new Response("").body))),de={stream:ue&&(t=>t.body)};var le;re&&(le=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!de[t]&&(de[t]=it.isFunction(le[t])?e=>e[t]():(e,n)=>{throw new ct(`Response type '${t}' is not supported`,ct.ERR_NOT_SUPPORT,n)})})));const pe={http:null,xhr:$t,fetch:re&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Xt(t);u=u?(u+"").toLowerCase():"text";let f,g=te([i,o&&o.toAbortSignal()],a);const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&ce&&"get"!==n&&"head"!==n&&0!==(y=await(async(t,e)=>{const n=it.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(it.isBlob(t))return t.size;if(it.isSpecCompliantForm(t)){const e=new Request(Rt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return it.isArrayBufferView(t)||it.isArrayBuffer(t)?t.byteLength:(it.isURLSearchParams(t)&&(t+=""),it.isString(t)?(await oe(t)).byteLength:void 0)})(e):n})(d,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(it.isFormData(r)&&(t=n.headers.get("content-type"))&&d.setContentType(t),n.body){const[t,e]=Kt(y,qt(Qt(c)));r=ne(n.body,65536,t,e)}}it.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;f=new Request(e,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:i?l:void 0});let o=await fetch(f);const a=ue&&("stream"===u||"response"===u);if(ue&&(s||a&&h)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=o[e]}));const e=it.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Kt(e,qt(Qt(s),!0))||[];o=new Response(ne(o.body,65536,n,(()=>{r&&r(),h&&h()})),t)}u=u||"text";let m=await de[it.findKey(de,u)||"text"](o,t);return!a&&h&&h(),await new Promise(((e,n)=>{Ht(e,n,{data:m,headers:Pt.from(o.headers),status:o.status,statusText:o.statusText,config:t,request:f})}))}catch(e){if(h&&h(),e&&"TypeError"===e.name&&/fetch/i.test(e.message))throw Object.assign(new ct("Network Error",ct.ERR_NETWORK,t,f),{cause:e.cause||e});throw ct.from(e,e&&e.code,t,f)}})};it.forEach(pe,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const fe=t=>`- ${t}`,ge=t=>it.isFunction(t)||null===t||!1===t;var he=t=>{t=it.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!ge(n)&&(r=pe[(e=String(n)).toLowerCase()],void 0===r))throw new ct(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(fe).join("\n"):" "+fe(t[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Vt(null,t)}function me(t){return ye(t),t.headers=Pt.from(t.headers),t.data=jt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),he(t.adapter||Dt.adapter)(t).then((function(e){return ye(t),e.data=jt.call(t,t.transformResponse,e),e.headers=Pt.from(e.headers),e}),(function(e){return Gt(e)||(ye(t),e&&e.response&&(e.response.data=jt.call(t,t.transformResponse,e.response),e.response.headers=Pt.from(e.response.headers))),Promise.reject(e)}))}const ve={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{ve[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Ie={};ve.transitional=function(t,e,n){function r(t,e){return"[Axios v1.7.9] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new ct(r(i," has been removed"+(e?" in "+e:"")),ct.ERR_DEPRECATED);return e&&!Ie[i]&&(Ie[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}},ve.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};var Se={assertOptions:function(t,e,n){if("object"!=typeof t)throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new ct("option "+o+" must be "+n,ct.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ct("Unknown option "+o,ct.ERR_BAD_OPTION)}},validators:ve};const Te=Se.validators;class Ee{constructor(t){this.defaults=t,this.interceptors={request:new St,response:new St}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Yt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Se.assertOptions(n,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1),null!=r&&(it.isFunction(r)?e.paramsSerializer={serialize:r}:Se.assertOptions(r,{encode:Te.function,serialize:Te.function},!0)),Se.assertOptions(e,{baseUrl:Te.spelling("baseURL"),withXsrfToken:Te.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&it.merge(i.common,i[e.method]);i&&it.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Pt.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let d,l=0;if(!s){const t=[me.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),d=t.length,u=Promise.resolve(e);l<d;)u=u.then(t[l++],t[l++]);return u}d=a.length;let p=e;for(l=0;l<d;){const t=a[l++],e=a[l++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=me.call(this,p)}catch(t){return Promise.reject(t)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(t){return It(Wt((t=Yt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}it.forEach(["delete","get","head","options"],(function(t){Ee.prototype[t]=function(e,n){return this.request(Yt(n||{},{method:t,url:e,data:(n||{}).data}))}})),it.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(Yt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ee.prototype[t]=e(),Ee.prototype[t+"Form"]=e(!0)}));var be=Ee;class Ce{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Vt(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Ce((function(e){t=e})),cancel:t}}}var Ae=Ce;const _e={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_e).forEach((([t,e])=>{_e[e]=t}));var we=_e;const Re=function t(e){const n=new be(e),r=g(be.prototype.request,n);return it.extend(r,be.prototype,n,{allOwnKeys:!0}),it.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Yt(e,n))},r}(Dt);Re.Axios=be,Re.CanceledError=Vt,Re.CancelToken=Ae,Re.isCancel=Gt,Re.VERSION="1.7.9",Re.toFormData=ft,Re.AxiosError=ct,Re.Cancel=Re.CanceledError,Re.all=function(t){return Promise.all(t)},Re.spread=function(t){return function(e){return t.apply(null,e)}},Re.isAxiosError=function(t){return it.isObject(t)&&!0===t.isAxiosError},Re.mergeConfig=Yt,Re.AxiosHeaders=Pt,Re.formToJSON=t=>Ot(it.isHTMLForm(t)?new FormData(t):t),Re.getAdapter=he,Re.HttpStatusCode=we,Re.default=Re;var Oe=Re,Ne=Oe.CancelToken,De=Oe.isCancel;Oe.Cancel,Oe.interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,i=t.request,o=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var Me=function(t){return Oe(t)};function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var xe=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=f()(i,n)),i},Le=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me(xe(ke({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Me(xe(ke({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:Ne})};function Be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,i=void 0===r?[]:r,o=t.settings,a=void 0===o?{}:o,s=t.i18n,c=t.apiEndpoints,u=t.monitoringService,l=t.iframeMessenger,p=Pe({},a);p.apiEndpoints=c,s.setLanguage(p.language);var f=function(t){p.countryCode=t},g=function(){return p.countryCode},h=function(){return d},y={};n.forEach((function(t){var e=t({coreContext:{config:p,i18n:s,monitoringService:u},apiClient:Le({modifyRequestSettings:p.modifyRequestSettings})});y[e.MODULE_NAME]=e}));var m={};return i.forEach((function(t){var e=t({coreContext:{config:p,i18n:s,monitoringService:u,iframeMessenger:l},apiClient:Le({modifyRequestSettings:p.modifyRequestSettings})});m[e.MODULE_NAME]=e})),Object.freeze({identification:Pe({},y),signature:Pe({},m),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:f,getCountryCode:g})};function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Fe=function(t){var e=t.rawSettings,r=t.schema,i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e);return Object.keys(r).forEach((function(t){var o=r[t],a=e[t];if(o.required&&void 0===a)throw new Error('Missing required setting "'.concat(t,'"'));if(void 0===a&&(i[t]=o.default),void 0!==i[t]&&void 0!==o.type&&o.type!==n(i[t]))throw new Error('Expected "'.concat(t,'" to be type of "').concat(o.type,'", but received "').concat(n(i[t]),'"'))})),i},Ve={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(t){var e=t.data&&t.data.redirect_uri;return e?(window.location!==window.top.location?window.top.location.href=e:window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"}},He=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),qe=i.t(He,2),Ke=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),Qe=i.t(Ke,2),ze=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),Ze=i.t(ze,2),We=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),Je=i.t(We,2),Ye=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),Xe=i.t(Ye,2),$e=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),tn={de:qe,en:Qe,et:Ze,lt:Je,lv:Xe,ru:i.t($e,2)},en=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,i=void 0===r?tn:r,o={currentLanguage:n},a="en",s=function(t){o.currentLanguage=t},c=function(){return o.currentLanguage},u=function(t){var e=i[o.currentLanguage];e||(e=i[a]);var n=e[t]||i[a][t];return n||(n=t),n};return Object.freeze({setLanguage:s,t:u,getCurrentLanguage:c})},nn=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&Me({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function rn(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function on(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){rn(o,r,i,a,s,"next",t)}function s(t){rn(o,r,i,a,s,"throw",t)}a(void 0)}))}}var an=i(4687),sn=i.n(an),cn=i(361),un=i.n(cn)(),dn=function(t){var e=t;return(De(t)||"user_cancel"===t.message)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},ln=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=un({message:n});if(e)r.data=e;else{if(!t.result||!t.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=t.result.data}return r},pn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},fn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=on(sn().mark((function e(){var n,i,o=arguments;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:if(n=e.sent,!(i=pn(n))){e.next=6;break}throw dn(i);case 6:return e.abrupt("return",r?ln(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hn(t,e){if(t){if("string"==typeof t)return gn(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)?gn(t,e):void 0}}function yn(t){return function(t){if(Array.isArray(t))return gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Error;var mn=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],vn=Symbol(".toJSON was called"),In=function t(e){var r,i,o=e.from,a=e.seen,s=e.to_,c=e.forceEnumerable,u=e.maxDepth,d=e.depth,l=s||(Array.isArray(o)?[]:{});if(a.push(o),d>=u)return l;if("function"==typeof o.toJSON&&!0!==o[vn])return function(t){t[vn]=!0;var e=t.toJSON();return delete t[vn],e}(o);for(var p=0,f=Object.entries(o);p<f.length;p++){var g=(r=f[p],i=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,i)||hn(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[0],y=g[1];"function"==typeof Buffer&&Buffer.isBuffer(y)?l[h]="[object Buffer]":null===y||"object"!==n(y)||"function"!=typeof y.pipe?"function"!=typeof y&&(y&&"object"===n(y)?a.includes(o[h])?l[h]="[Circular]":(d++,l[h]=t({from:o[h],seen:yn(a),forceEnumerable:c,maxDepth:u,depth:d})):l[h]=y):l[h]="[object Stream]"}for(var m=0,v=mn;m<v.length;m++){var I=v[m],S=I.property,T=I.enumerable;"string"==typeof o[S]&&Object.defineProperty(l,S,{value:o[S],enumerable:!!c||T,configurable:!0,writable:!0})}return l};function Sn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.maxDepth,i=void 0===r?Number.POSITIVE_INFINITY:r;return"object"===n(t)&&null!==t?In({from:t,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof t?"[Function: ".concat(t.name||"anonymous","]"):t}function Tn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function En(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bn=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,c=i.monitoringService,u=i.iframeMessenger;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=En(En({},Ve),n),i=En(En({},s),t),d=Fe({rawSettings:i,schema:r}),l=d.success,p=d.fail,f=d.finished,g=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),y=h.token,m={onCancelByUser:function(){},onRefreshByUser:function(){}},v=function(t){m.onCancelByUser=t},I=function(t){m.onRefreshByUser=t},S=function(){h.cancel()},T=function(){m.onCancelByUser(),S()},E=function(){m.onRefreshByUser()},b=function(){var t=on(sn().mark((function t(){return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(En(En({},d),{},{language:g,i18n:a,monitoringService:c,cancelToken:y,cancel:S,setOnCancelByUser:v,setOnRefreshByUser:I,apiClient:o,iframeMessenger:u})).then((function(t){l(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(Sn(t))}),p(dn(t))})).finally(f);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return b().catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(Sn(t))}),p(dn(t)),f(dn(t))})),Object.freeze({cancel:T,refresh:E})}})}};function Cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function An(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _n=u.idCard,wn=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.i18n,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),i.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=l(s.IDENTIFICATION,_n,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,fn(a)(An(An({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=o.t("id-card-read-timeout")),t}));case 5:return u=t.sent,t.next=8,fn(c)(An(An({},e),{},{cancelToken:n,language:r,data:u.data}));case 8:return u=t.sent,t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rn=bn(_n,wn,{countryCode:{type:"string",required:!0}}),On=Object.freeze({fnTimeout:"EFNTIMEDOUT"}),Nn=function(){var t=on((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval,i=t.fnTimeoutMs,o=void 0===i?864e5:i;return sn().mark((function t(){var i,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,a=function(){var t=on(sn().mark((function t(s,c){var u,d;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,Promise.race([e(),new Promise((function(t,e){return setTimeout((function(){var t=new Error("Function did not resolve in defined time");t.code=On.fnTimeout,e(t)}),o)}))]);case 4:u=t.sent,d=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,d=t.t0;case 12:if(!n({result:u,attempts:i,error:d})){t.next=14;break}return t.abrupt("return",setTimeout(a,r,s,c));case 14:return t.abrupt("return",s({result:u,error:d}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(a));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Dn=Nn,Mn=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnTimeoutMs,s=t.fnArgs,c=t.onPoll,u=void 0===c?function(){}:c;i&&(e=i/r);var d=0,l=0,p=function(){var t=l;function n(){return t===l}return new Promise((function(t,i){Dn({fn:function(){return o.apply(void 0,yn(s))},fnTimeoutMs:a,shouldContinue:function(t){if(!n())return!1;var r=t.result;u(t);var i=r&&r.data&&r.data.status;if(t.error&&t.error.code===On.fnTimeout)return console.log("Function did not resolve before the provided timeout, trying again",o),!0;var a=De(t.error),s=t.error&&!t.error.response&&!a;s&&(d+=1);var c,l,p=!1;return c=t.attempts,(!(l=e)||c<l)&&d<3&&(p=s||"RUNNING"===i||"IN_PROGRESS"===i),p},interval:r}).then((function(e){n()&&t(e)})).catch((function(t){n()&&i(t)}))}))};return{start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(e,n){p().then(e).catch(n);var r=t.setOnRefreshByUser;(void 0===r?function(){}:r)((function(){l+=1,p().then(e).catch(n)}))}))}}};function Un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Un(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var xn=u.smartId,Ln=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u,d,p,f,g,h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,a=void 0===o?1e3:o,c=e.cancelToken,u=e.language,d=e.apiClient,p=e.setOnRefreshByUser,f=function(t){var e=l(s.IDENTIFICATION,xn);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},g=function(t){var e=l(s.IDENTIFICATION,xn);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=Mn({pollInterval:t.pollInterval,maxPollDuration:12e4,fn:g,fnArgs:[kn(kn({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language})]});return new Promise((function(t,n){e.start({setOnRefreshByUser:p}).then(t).catch(n)}))},t.next=6,fn(f)(kn(kn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return y=t.sent,r(y),t.next=10,fn(h)({config:e,data:kn({},y.data),cancelToken:c,pollInterval:a,language:u});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Bn=bn(xn,Ln,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Gn=u.webEid,Fn=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(Sn(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Vn=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u,d,p,f,g,h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Fn({monitoringService:e.monitoringService,moduleName:"Web eID"}),r=e.cancelToken,i=e.language,o=e.apiClient,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=l(s.IDENTIFICATION,Gn);return{data:{url:t.apiEndpoints.inCurrentMode.integrationIframe({clientId:t.clientId,actionType:e.actionType,docId:""})}}},c=function(){var t=on((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return sn().mark((function e(){var i,o,a;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.iframeHolder,o=document.createElement("iframe"),a=t.iframeUrl,o.setAttribute("src",a),o.setAttribute("referrerpolicy","origin"),o.style.border="0",i.innerHTML="",i.appendChild(o),e.prev=8,e.next=11,window.eideasyIframeMessenger.send({iframe:o,message:{operation:"ready"},cancelToken:r});case 11:return e.abrupt("return",new Promise((function(t){t(o)})));case 14:throw e.prev=14,e.t0=e.catch(8),n.logError("Failed to create iframe",e.t0),e.t0;case 18:case"end":return e.stop()}}),e,null,[[8,14]])}))()}));return function(){return t.apply(this,arguments)}}(),u=function(){var t=on(sn().mark((function t(e){var i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=e.iframeHolder,o=i.querySelector("iframe"),t.next=5,window.eideasyIframeMessenger.send({iframe:o,message:{operation:"getAuthToken",nonce:e.nonce},cancelToken:r});case 5:return a=t.sent,t.abrupt("return",new Promise((function(t){t(a)})));case 9:throw t.prev=9,t.t0=t.catch(0),n.logError("Failed to start Web eID",t.t0),t.t0;case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e){return t.apply(this,arguments)}}(),d=function(t){var e=l(s.IDENTIFICATION,Gn);return o.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{country:t.countryCode,method:e.actionType,lang:t.language}})},p=function(){var t=on(sn().mark((function t(e){var n;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=l(s.IDENTIFICATION,Gn),t.abrupt("return",o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.token,auth_token:e.authToken,method:n.actionType,lang:e.language}}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.next=9,fn(a)(jn(jn({},e),{},{cancelToken:r}));case 9:return f=t.sent,t.next=12,fn(c,{shouldFormatResult:!1})(jn(jn({},e),{},{cancelToken:r,iframeUrl:f.data.url})).catch((function(t){throw t}));case 12:return t.next=14,fn(d)(jn(jn({},e),{},{cancelToken:r,language:i}));case 14:return g=t.sent,t.next=17,fn(u,{shouldFormatResult:!1})(jn(jn({},e),{},{nonce:g.data.nonce,data:jn({},g.data),cancelToken:r,language:i}));case 17:return h=t.sent,t.next=20,fn(p)(jn(jn({},e),{},{token:h.token,authToken:g.data.token,cancelToken:r}));case 20:return y=t.sent,t.abrupt("return",y);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Hn=bn(Gn,Vn,{countryCode:{type:"string",required:!0}});function qn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Qn=u.mobileId,zn=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u,d,p,f,g,h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,i=e.apiClient,o=e.started,a=void 0===o?function(){}:o,c=e.idcode,u=e.phone,d=e.pollInterval,p=void 0===d?1e3:d,f=function(t){var e=l(s.IDENTIFICATION,Qn,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=l(s.IDENTIFICATION,Qn,t.countryCode);return i.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},h=function(t){var e=12e4/p,n=0;return Dn({fn:function(){return g(Kn(Kn({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=De(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},t.next=6,fn(f)(Kn(Kn({},e),{},{cancelToken:n,language:r,idcode:c,phone:u}));case 6:return y=t.sent,a(y),t.next=10,fn(h)({config:e,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Zn=bn(Qn,zn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Wn=u.eParakstsMobile,Jn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Yn=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(Jn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xn=bn(Wn,Yn);function $n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$n(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var er=u.frejaEid,nr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u,d,p,f,g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,i=e.idcode,o=e.pollInterval,a=void 0===o?1e3:o,c=e.cancelToken,u=e.language,d=e.apiClient,p=function(t){var e=l(s.IDENTIFICATION,er);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=l(s.IDENTIFICATION,er);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},g=function(t){var e=1e5/t.pollInterval,n=0;return Dn({fn:function(){return f(tr(tr({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,i=r&&r.data&&r.data.status,o=De(t.error),a=t.error&&!t.error.response&&!o;a&&(n+=1);var s=!1;return t.attempts<e&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},t.next=6,fn(p)(tr(tr({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=t.sent,r(h),t.next=10,fn(g)({config:e,data:tr({},h.data),cancelToken:c,language:u,pollInterval:a});case 10:return h=t.sent,t.abrupt("return",h);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rr=bn(er,nr,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ir(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ar=u.zealId,sr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,c,u;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,i=e.language,o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var i=function(t,e,n){var r=new URL(t.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?e({data:{code:o}}):n(t.data)},o=new Promise((function(t,e){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,t,e))}))}));return e.appendChild(n),o},c=function(t){var e=l(s.IDENTIFICATION,ar);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,fn(o)(or(or({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,fn(a)(or(or({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,fn(c)(or(or({},e),{},{cancelToken:n,language:i},u));case 12:return u=t.sent,t.abrupt("return",u);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),cr=bn(ar,sr,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),ur=u.mojeId,dr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},lr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(dr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pr=bn(ur,lr),fr=u.edoAppEid,gr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},hr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(gr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),yr=bn(fr,hr),mr=u.finnishTrustNetwork,vr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Ir=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(vr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Sr=bn(mr,Ir),Tr=u.atHandy,Er=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},br=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(Er)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Cr=bn(Tr,br),Ar=u.itsme,_r=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},wr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(_r)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rr=bn(Ar,wr),Or=u.itsmeBasic,Nr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},Dr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Nr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Mr=bn(Or,Dr),Ur=u.itsmeStandard,kr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},xr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(kr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Lr=bn(Ur,xr),Br=u.seBankId,Pr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},jr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Pr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Gr=bn(Br,jr),Fr=u.idin,Vr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},Hr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Vr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),qr=bn(Fr,Hr),Kr=u.idinCustomerId,Qr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.idinCustomerId({clientId:n,redirectUri:r,language:i})}}},zr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Qr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Zr=bn(Kr,zr),Wr=u.verifai,Jr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Yr=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Jr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xr=bn(Wr,Yr),$r=u.yoonik,ti=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},ei=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(ti)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ni=bn($r,ei),ri=u.plMojeId,ii=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},oi=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(ii)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ai=bn(ri,oi),si=u.mitId,ci=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},ui=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(ci)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),di=bn(si,ui),li=u.norwegianBankId,pi=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},fi=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(pi)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),gi=bn(li,fi),hi=u.ftn,yi=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},mi=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(yi)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),vi=bn(hi,mi),Ii=u.gbOneId,Si=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language;return{data:{redirect_uri:e.inCurrentMode.gbOneId({clientId:n,redirectUri:r,language:i})}}},Ti=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,t.next=3,fn(Si)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ei=bn(Ii,Ti),bi=u.veriff,Ci=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language,o=t.country;return{data:{redirect_uri:e.inCurrentMode.veriff({clientId:n,redirectUri:r,language:i,country:o})}}},Ai=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s,c;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,s=e.country,t.next=3,fn(Ci)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_i=bn(bi,Ai),wi=u.lIdentiteNumerique,Ri=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,i=t.language,o=t.country;return{data:{redirect_uri:e.inCurrentMode.lIdentiteNumerique({clientId:n,redirectUri:r,language:i,country:o})}}},Oi=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a,s,c;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,a=e.language,s=e.country,t.next=3,fn(Ri)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ni=bn(wi,Oi),Di=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,i=void 0===r?"":r,o=t.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(Di.prototype=new Error).name="MethodException";var Mi=Di,Ui={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},ki=function(t){var e=t.monitoringService,n=t.moduleName;return Object.freeze({log:function(t){e.dispatch({message:"".concat(n,": ").concat(t)})},logError:function(t,r){var i=JSON.stringify(Sn(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},xi=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var n=t.countryCode,r=t.clientId,i=t.docId,o=t.apiEndpoints,a=l(s.SIGNATURE,e,n);return o.inCurrentMode.integrationIframe({clientId:r,docId:i,actionType:a.actionType})},i=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Mi({userMessage:n,message:t.message,details:t})},o=function(){var t=on((function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.monitor,i=t.iframeMessenger,o=t.cancelToken;return sn().mark((function t(){var a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(a=document.createElement("iframe")).setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.setAttribute("allow","clipboard-write"),a.style.width="100%",a.style.height="100%",a.style.position="relative",a.style.border="0",e.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),e.appendChild(a),t.prev=11,t.next=14,i.send({iframe:a,message:{operation:"ready"},cancelToken:o});case 14:return t.abrupt("return",new Promise((function(t){t(a)})));case 17:throw t.prev=17,t.t0=t.catch(11),r.logError("Failed to create iframe",t.t0),t.t0;case 21:case"end":return t.stop()}}),t,null,[[11,17]])}))()}));return function(e){return t.apply(this,arguments)}}(),a=function(){var t=on((function(t){var e=t.iframeMessenger,n=t.iframe,r=t.country,i=t.cancelToken;return sn().mark((function t(){var o;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i});case 2:return o=t.sent,t.abrupt("return",{data:{certificate:o.certificate}});case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),c=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.countryCode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:e,base64_certificate:e,country:i},cancelToken:o})},u=function(t){var e=t.iframeMessenger,n=t.iframe,r=t.hexDigests,i=t.signedInfoDigests,o=t.certificate,a=t.country,s=t.monitor,c=t.cancelToken;return s.log("Trying to sign the digests: ".concat(JSON.stringify(r),", ")+"signedInfoDigests: ".concat(JSON.stringify(i))),e.send({iframe:n,message:{operation:"getSignature",hexDigests:r,signedInfoDigests:i,certificate:o,country:a},cancelToken:c})},d=function(t){var e=t.signatures,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.driver,c=t.actionType,u=o.inCurrentMode.completeSignatureIdCard({actionType:c});return a.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e[0],signatures:e,driver:s},cancelToken:i})},p=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},f=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.signatures,u=t.actionType;return Mn({pollInterval:2e3,maxPollDuration:36e4,fn:d,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}]}).start()},g=function(){var t=on((function(t){var n=t.countryCode,d=t.clientId,g=t.apiEndpoints,h=t.iframeHolder,y=t.i18n,m=t.iframeMessenger,v=t.docId,I=t.cancelToken,S=t.apiClient,T=t.monitoringService,E=t.action,b=t.redirect,C=t.signingCertificate;return sn().mark((function t(){var A,_,w,R,O,N,D,M,U;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=ki({monitoringService:T,moduleName:e}),_=l(s.SIGNATURE,e,n),t.next=4,fn(r,{shouldFormatResult:!1})({countryCode:n,clientId:d,docId:v,apiEndpoints:g});case 4:return w=t.sent,t.next=7,fn(o,{shouldFormatResult:!1})({iframeUrl:w,iframeHolder:h,i18n:y,monitor:A,iframeMessenger:m,cancelToken:I}).catch((function(t){return i(t,y)}));case 7:if(R=t.sent,O=C){t.next=14;break}return t.next=12,fn(a)({iframeMessenger:m,iframe:R,country:n,monitor:A,cancelToken:I}).catch((function(t){return i(t,y)}));case 12:N=t.sent,O=N.data.certificate;case 14:if("cscApiAuthorizeCredential"!==E){t.next=19;break}return t.next=17,fn(p)({certificate:O,actionType:_.actionType,country:n,cancelToken:I,apiEndpoints:g,apiClient:S});case 17:return D=t.sent,t.abrupt("return",fn(b,{shouldFormatResult:!1})(D));case 19:return t.next=21,fn(c)({certificate:O,clientId:d,docId:v,countryCode:n,cancelToken:I,apiEndpoints:g,apiClient:S,monitor:A,actionType:_.actionType});case 21:return M=t.sent,t.next=24,fn(u,{shouldFormatResult:!1})({iframeMessenger:m,iframe:R,hexDigests:[M.data.hexDigest],signedInfoDigests:M.data.signedInfoDigests,certificate:C,monitor:A,cancelToken:I}).catch((function(t){return i(t,y)}));case 24:return U=t.sent,t.abrupt("return",fn(f)({signatures:U.signatures,clientId:d,docId:v,cancelToken:I,apiEndpoints:g,apiClient:S,actionType:_.actionType}));case 26:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Ui)},Li=xi({moduleName:u.idCardSignature,createModuleCreator:bn}),Bi=u.mobileIdSignature,Pi=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:e,country:n,phone:r,idcode:i},cancelToken:o})},ji=function(t){var e=t.phone,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:c,lang:u},cancelToken:o})},Gi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},Fi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,maxPollDuration:12e4,fn:Gi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Vi=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.language,u=t.idcode,d=t.phone,p=t.countryCode,f=t.started,g=t.action,h=t.redirect;return sn().mark((function t(){var y,m,v;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==g){t.next=5;break}return t.next=3,fn(Pi)({country:p,idcode:u,phone:d,cancelToken:r,apiEndpoints:i,apiClient:o});case 3:return y=t.sent,t.abrupt("return",fn(h,{shouldFormatResult:!1})(y));case 5:return m=l(s.SIGNATURE,Bi,p),a.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(ji)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,idcode:u,phone:d,countryCode:p});case 9:return v=t.sent,f(v),t.abrupt("return",fn(Fi)({data:v.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Hi=bn(Bi,Vi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),qi=u.smartIdSignature,Ki=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.waitForChallengeCode,l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:d},cancelToken:o})},Qi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},zi=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.onTryComplete,u=t.setOnRefreshByUser,d=Mn({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Qi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]});return new Promise((function(t,e){d.start({setOnRefreshByUser:u}).then(t).catch(e)}))},Zi=function(t){var e=t.country,n=t.cancelToken,r=t.apiEndpoints,i=t.apiClient,o=t.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:e,idcode:o},cancelToken:n})},Wi=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.idcode,p=t.countryCode,f=t.started,g=t.action,h=t.redirect,y=t.onTryComplete,m=t.waitForChallengeCode,v=void 0===m||m,I=t.setOnRefreshByUser;return sn().mark((function t(){var m,S,T;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=l(s.SIGNATURE,qi,p),"cscApiAuthorizeCredential"!==g){t.next=6;break}return t.next=4,fn(Zi)({country:p,idcode:d,cancelToken:i,apiEndpoints:o,apiClient:a});case 4:return S=t.sent,t.abrupt("return",fn(h,{shouldFormatResult:!1})(S));case 6:return c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(Ki)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,countryCode:p,contractId:r,waitForChallengeCode:v});case 9:return T=t.sent,f(T),t.abrupt("return",fn(zi)({data:T.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:y,setOnRefreshByUser:I}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ji=bn(qi,Wi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yi=u.evroTrustSignature,Xi=function(t){var e=t.country,n=t.phone,r=t.email,i=t.idcode,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"evrotrust-signature",country:e,phone:n,email:r,idcode:i},cancelToken:o})},$i=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},to=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},eo=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:to,fnTimeoutMs:15e3,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},no=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.idcode,p=t.phone,f=t.email,g=t.countryCode,h=t.started,y=t.action,m=t.redirect;return sn().mark((function t(){var v,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=l(s.SIGNATURE,Yi,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(Xi)({country:g,idcode:d,phone:p,email:f,cancelToken:i,apiEndpoints:o,apiClient:a});case 5:return I=t.sent,t.abrupt("return",fn(m,{shouldFormatResult:!1})(I));case 7:return t.next=9,fn($i)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,phone:p,email:f,countryCode:g,contractId:r,actionType:v.actionType});case 9:return S=t.sent,h(S),t.abrupt("return",fn(eo)({data:S.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ro=bn(Yi,no,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),io=u.otpSignature,oo=function(){var t=on((function(t){var e=t.language,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.actionType;return sn().mark((function t(){var c;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=o.inCurrentMode.startSigning(),t.abrupt("return",a.post({url:c,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:e},cancelToken:i}));case 2:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ao=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},so=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,c=t.smsToken,u=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},co=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.language,u=t.countryCode,d=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,g=t.handwrittenSignatureDataUrl,h=t.started,y=t.confirmationCodeRequest,m=t.setOnCancelByUser;return sn().mark((function t(){var v,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=l(s.SIGNATURE,io,u),console.log(v),a.dispatch({message:"".concat(v.actionType,": signing started")}),p||d){t.next=13;break}return t.next=6,fn(oo)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,actionType:v.actionType});case 6:return I=t.sent,h(I),t.next=10,fn(ao,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:m});case 10:S=t.sent,p=S.smsToken,d=S.emailToken;case 13:return t.abrupt("return",fn(so)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,emailToken:d,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:g}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),uo=bn(io,co,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),lo={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},po=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:e,country:n},cancelToken:r})},fo=function(t){var e=t.moduleName,n=t.createModuleCreator,r=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.confirmedBySigner,d=t.country,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u,country:d},cancelToken:i})},i=function(){var t=on((function(t){var n=t.clientId,i=t.docId,o=t.contractId,a=t.cancelToken,c=t.apiEndpoints,u=t.apiClient,d=t.monitoringService,p=t.language,f=t.countryCode,g=t.redirect,h=t.confirmedBySigner,y=t.action;return sn().mark((function t(){var m,v,I;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=l(s.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==y){t.next=6;break}return t.next=4,fn(po)({country:f,cancelToken:a,apiEndpoints:c,apiClient:u,actionType:m.actionType});case 4:return v=t.sent,t.abrupt("return",fn(g,{shouldFormatResult:!1})(v));case 6:return d.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(r)({contractId:o,clientId:n,docId:i,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:m.actionType,confirmedBySigner:h,country:f});case 9:return I=t.sent,t.abrupt("return",fn(g,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,i,lo)},go=fo({moduleName:u.eParakstsMobileSignature,createModuleCreator:bn}),ho=fo({moduleName:u.ftnAdvancedFullSignature,createModuleCreator:bn}),yo=fo({moduleName:u.ftnSignature,createModuleCreator:bn}),mo=fo({moduleName:u.atHandySignature,createModuleCreator:bn}),vo=u.zealIdSignature,Io=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},So=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.docId,t.next=3,fn(Io)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),To=bn(vo,So),Eo=fo({moduleName:u.mojeIdSignature,createModuleCreator:bn}),bo=fo({moduleName:u.serproIdAdvancedSignature,createModuleCreator:bn}),Co=fo({moduleName:u.czBankIDSignature,createModuleCreator:bn}),Ao=fo({moduleName:u.abaDoSignature,createModuleCreator:bn}),_o=fo({moduleName:u.googleSignature,createModuleCreator:bn}),wo=fo({moduleName:u.seBankIdSignature,createModuleCreator:bn}),Ro=u.dTrustSignMeSignature,Oo=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},No=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.username,f=t.redirect;return sn().mark((function t(){var g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=l(s.SIGNATURE,Ro,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Oo)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,actionType:g.actionType});case 4:return h=t.sent,t.abrupt("return",fn(f,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Do=bn(Ro,No,{username:{type:"string",required:!0}}),Mo=u.dTrustSignMeAdvSignature,Uo=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},ko=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.username,f=t.redirect;return sn().mark((function t(){var g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=l(s.SIGNATURE,Mo,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Uo)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,actionType:g.actionType});case 4:return h=t.sent,t.abrupt("return",fn(f,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xo=bn(Mo,ko,{username:{type:"string",required:!0}});function Lo(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Bo(t,e){return t&e}function Po(t,e){return t|e}function jo(t,e){return t^e}function Go(t,e){return t&~e}function Fo(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function Vo(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Ho,qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ko(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=qo.charAt(n>>6)+qo.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=qo.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=qo.charAt(n>>2)+qo.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Qo(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=qo.indexOf(t.charAt(e));o<0||(0==r?(n+=Lo(o>>2),i=3&o,r=1):1==r?(n+=Lo(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Lo(i),n+=Lo(o>>2),i=3&o,r=3):(n+=Lo(i<<2|o>>4),n+=Lo(15&o),r=0))}return 1==r&&(n+=Lo(i<<2)),n}var zo,Zo={decode:function(t){var e;if(void 0===zo){var n="= \f\n\r\t \u2028\u2029";for(zo=Object.create(null),e=0;e<64;++e)zo["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(zo["-"]=62,zo._=63,e=0;e<n.length;++e)zo[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=zo[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=Zo.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return Zo.decode(t)}},Wo=1e13,Jo=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<Wo?e=0:r-=(e=0|r/Wo)*Wo,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=Wo,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(Wo+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*Wo+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Yo=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Xo=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function $o(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ta,ea=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?Yo:Xo).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0==(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new Jo(r),c=t+1;c<e;++c)s.mulAdd(256,this.get(c));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),c=a==e-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+$o(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return $o(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new Jo,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof Jo)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return $o(r,n);i=new Jo,o=0}}return o>0&&(r+=".incomplete"),r},t}(),na=function(){function t(t,e,n,r,i){if(!(r instanceof ra))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return $o(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return $o(this.stream.parseStringISO(e,e+n),t);case 30:return $o(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof ea?e:new ea(e,0);var r=new ea(n),i=new ra(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var e=[];if(null!==o){for(var r=a+o;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var d=0;d<c.length;++d)if(c[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,c)},t}(),ra=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new Jo;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),ia=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],oa=(1<<26)/ia[ia.length-1],aa=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Lo(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Lo(n));return i?o:"0"},t.prototype.negate=function(){var e=la();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ia(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=la();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new ca(e):new ua(e),this.exp(t,n)},t.prototype.clone=function(){var t=la();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=la();return this.bitwiseTo(t,Bo,e),e},t.prototype.or=function(t){var e=la();return this.bitwiseTo(t,Po,e),e},t.prototype.xor=function(t){var e=la();return this.bitwiseTo(t,jo,e),e},t.prototype.andNot=function(t){var e=la();return this.bitwiseTo(t,Go,e),e},t.prototype.not=function(){for(var t=la(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=la();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=la();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Fo(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Vo(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Po)},t.prototype.clearBit=function(t){return this.changeBit(t,Go)},t.prototype.flipBit=function(t){return this.changeBit(t,jo)},t.prototype.add=function(t){var e=la();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=la();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=la();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=la();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=la();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=la(),n=la();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=va(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ca(e):e.isEven()?new da(e):new ua(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=la();for(r.sqrTo(a[1],d);s<=u;)a[s]=la(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,g=!0,h=la();for(i=Ia(t[f])-1;f>=0;){for(i>=c?l=t[f]>>i-c&u:(l=(t[f]&(1<<i+1)-1)<<c-i,f>0&&(l|=t[f-1]>>this.DB+i-c)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),g)a[l].copyTo(o),g=!1;else{for(;s>1;)r.sqrTo(o,h),r.sqrTo(h,o),s-=2;s>0?r.sqrTo(o,h):(p=o,o=h,h=p),r.mulTo(h,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,h),p=o,o=h,h=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),o=va(1),a=va(0),s=va(0),c=va(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(e,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(e,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(t.ONE)?t.ZERO:c.compareTo(e)>=0?c.subtract(e):c.signum()<0?(c.addTo(e,c),c.signum()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new sa)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=ia[ia.length-1]){for(e=0;e<ia.length;++e)if(n[0]==ia[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<ia.length;){for(var r=ia[e],i=e+1;i<ia.length&&r<oa;)r*=ia[i++];for(r=n.modInt(r);e<i;)if(r%ia[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:ma(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=la());var a=la(),s=this.s,c=e.s,u=this.DB-Ia(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,g=(1<<this.F1)/p,h=1<<this.F2,y=r.t,m=y-d,v=null==n?la():n;for(a.dlShiftTo(m,v),r.compareTo(v)>=0&&(r[r.t++]=1,r.subTo(v,r)),t.ONE.dlShiftTo(d,v),v.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--m>=0;){var I=r[--y]==l?this.DM:Math.floor(r[y]*f+(r[y-1]+h)*g);if((r[y]+=a.am(0,I,r,m,0,d))<I)for(a.dlShiftTo(m,v),r.subTo(v,r);r[y]<--I;)r.subTo(v,r)}null!=n&&(r.drShiftTo(d,n),s!=c&&t.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=la(),i=la(),o=n.convert(this),a=Ia(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=va(n),i=la(),o=la(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<e.length;++c){var u=ma(e,c);u<0?"-"==e.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Po,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>ia.length&&(e=ia.length);for(var o=la(),a=0;a<e;++a){o.fromInt(ia[Math.floor(Math.random()*ia.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=la();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Po,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&e;s.length=1+(e>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},t}(),sa=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),ca=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),ua=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=la();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(aa.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=la();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),da=function(){function t(t){this.m=t,this.r2=la(),this.q3=la(),aa.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=la();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function la(){return new aa(null)}function pa(t,e){return new aa(t,e)}var fa="undefined"!=typeof navigator;fa&&"Microsoft Internet Explorer"==navigator.appName?(aa.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var c=32767&this[t],u=this[t++]>>15,d=s*c+u*a;i=((c=a*c+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},ta=30):fa&&"Netscape"!=navigator.appName?(aa.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},ta=26):(aa.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var c=16383&this[t],u=this[t++]>>14,d=s*c+u*a;i=((c=a*c+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*u,n[r++]=268435455&c}return i},ta=28),aa.prototype.DB=ta,aa.prototype.DM=(1<<ta)-1,aa.prototype.DV=1<<ta,aa.prototype.FV=Math.pow(2,52),aa.prototype.F1=52-ta,aa.prototype.F2=2*ta-52;var ga,ha,ya=[];for(ga="0".charCodeAt(0),ha=0;ha<=9;++ha)ya[ga++]=ha;for(ga="a".charCodeAt(0),ha=10;ha<36;++ha)ya[ga++]=ha;for(ga="A".charCodeAt(0),ha=10;ha<36;++ha)ya[ga++]=ha;function ma(t,e){var n=ya[t.charCodeAt(e)];return null==n?-1:n}function va(t){var e=la();return e.fromInt(t),e}function Ia(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}aa.ZERO=va(0),aa.ONE=va(1);var Sa,Ta,Ea=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}(),ba=null;if(null==ba){ba=[],Ta=0;var Ca=void 0;if(window.crypto&&window.crypto.getRandomValues){var Aa=new Uint32Array(256);for(window.crypto.getRandomValues(Aa),Ca=0;Ca<Aa.length;++Ca)ba[Ta++]=255&Aa[Ca]}var _a=0,wa=function(t){if((_a=_a||0)>=256||Ta>=256)window.removeEventListener?window.removeEventListener("mousemove",wa,!1):window.detachEvent&&window.detachEvent("onmousemove",wa);else try{var e=t.x+t.y;ba[Ta++]=255&e,_a+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",wa,!1):window.attachEvent&&window.attachEvent("onmousemove",wa)}function Ra(){if(null==Sa){for(Sa=new Ea;Ta<256;){var t=Math.floor(65536*Math.random());ba[Ta++]=255&t}for(Sa.init(ba),Ta=0;Ta<ba.length;++Ta)ba[Ta]=0;Ta=0}return Sa.next()}var Oa=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ra()},t}(),Na=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=pa(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var o=new Oa,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new aa(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=pa(t,16),this.e=parseInt(e,16),this.d=pa(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=pa(t,16),this.e=parseInt(e,16),this.d=pa(n,16),this.p=pa(r,16),this.q=pa(i,16),this.dmp1=pa(o,16),this.dmq1=pa(a,16),this.coeff=pa(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Oa,r=t>>1;this.e=parseInt(e,16);for(var i=new aa(e,16);;){for(;this.p=new aa(t-r,1,n),0!=this.p.subtract(aa.ONE).gcd(i).compareTo(aa.ONE)||!this.p.isProbablePrime(10););for(;this.q=new aa(r,1,n),0!=this.q.subtract(aa.ONE).gcd(i).compareTo(aa.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(aa.ONE),s=this.q.subtract(aa.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(aa.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=pa(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Oa,i=t>>1;this.e=parseInt(e,16);var o=new aa(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(aa.ONE),r=a.q.subtract(aa.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(aa.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},c=function(){a.q=la(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(aa.ONE).gcda(o,(function(t){0==t.compareTo(aa.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=la(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(aa.ONE).gcda(o,(function(t){0==t.compareTo(aa.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return pa("0001"+r+"00"+t,16)}((Da[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},t.prototype.verify=function(t,e,n){var r=pa(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Da)if(Da.hasOwnProperty(e)){var n=Da[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}(),Da={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Ma={};Ma.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(i=0;i<a.length;i+=1){var n=a[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}o(t.prototype,n)}}};var Ua={};void 0!==Ua.asn1&&Ua.asn1||(Ua.asn1={}),Ua.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new aa(r,16).xor(t).add(aa.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Ua.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,c=e.DEREnumerated,u=e.DERUTF8String,d=e.DERNumericString,l=e.DERPrintableString,p=e.DERTeletexString,f=e.DERIA5String,g=e.DERUTCTime,h=e.DERGeneralizedTime,y=e.DERSequence,m=e.DERSet,v=e.DERTaggedObject,I=e.ASN1Util.newObject,S=Object.keys(t);if(1!=S.length)throw"key of param shall be only one.";var T=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(t[T]);if("int"==T)return new r(t[T]);if("bitstr"==T)return new i(t[T]);if("octstr"==T)return new o(t[T]);if("null"==T)return new a(t[T]);if("oid"==T)return new s(t[T]);if("enum"==T)return new c(t[T]);if("utf8str"==T)return new u(t[T]);if("numstr"==T)return new d(t[T]);if("prnstr"==T)return new l(t[T]);if("telstr"==T)return new p(t[T]);if("ia5str"==T)return new f(t[T]);if("utctime"==T)return new g(t[T]);if("gentime"==T)return new h(t[T]);if("seq"==T){for(var E=t[T],b=[],C=0;C<E.length;C++){var A=I(E[C]);b.push(A)}return new y({array:b})}if("set"==T){for(E=t[T],b=[],C=0;C<E.length;C++)A=I(E[C]),b.push(A);return new m({array:b})}if("tag"==T){var _=t[T];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var w=I(_[2]);return new v({tag:_[0],explicit:_[1],obj:w})}var R={};if(void 0!==_.explicit&&(R.explicit=_.explicit),void 0!==_.tag&&(R.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return R.obj=I(_.obj),new v(R)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Ua.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new aa(r,2).toString(10),r="")}return e},Ua.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new aa(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},Ua.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Ua.asn1.DERAbstractString=function(t){Ua.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Ma.lang.extend(Ua.asn1.DERAbstractString,Ua.asn1.ASN1Object),Ua.asn1.DERAbstractTime=function(t){Ua.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Ma.lang.extend(Ua.asn1.DERAbstractTime,Ua.asn1.ASN1Object),Ua.asn1.DERAbstractStructured=function(t){Ua.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Ma.lang.extend(Ua.asn1.DERAbstractStructured,Ua.asn1.ASN1Object),Ua.asn1.DERBoolean=function(){Ua.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ma.lang.extend(Ua.asn1.DERBoolean,Ua.asn1.ASN1Object),Ua.asn1.DERInteger=function(t){Ua.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Ua.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new aa(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ma.lang.extend(Ua.asn1.DERInteger,Ua.asn1.ASN1Object),Ua.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Ua.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Ua.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Ma.lang.extend(Ua.asn1.DERBitString,Ua.asn1.ASN1Object),Ua.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Ua.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Ua.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Ma.lang.extend(Ua.asn1.DEROctetString,Ua.asn1.DERAbstractString),Ua.asn1.DERNull=function(){Ua.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ma.lang.extend(Ua.asn1.DERNull,Ua.asn1.ASN1Object),Ua.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new aa(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Ua.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Ua.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Ma.lang.extend(Ua.asn1.DERObjectIdentifier,Ua.asn1.ASN1Object),Ua.asn1.DEREnumerated=function(t){Ua.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Ua.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new aa(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ma.lang.extend(Ua.asn1.DEREnumerated,Ua.asn1.ASN1Object),Ua.asn1.DERUTF8String=function(t){Ua.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Ma.lang.extend(Ua.asn1.DERUTF8String,Ua.asn1.DERAbstractString),Ua.asn1.DERNumericString=function(t){Ua.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Ma.lang.extend(Ua.asn1.DERNumericString,Ua.asn1.DERAbstractString),Ua.asn1.DERPrintableString=function(t){Ua.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Ma.lang.extend(Ua.asn1.DERPrintableString,Ua.asn1.DERAbstractString),Ua.asn1.DERTeletexString=function(t){Ua.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Ma.lang.extend(Ua.asn1.DERTeletexString,Ua.asn1.DERAbstractString),Ua.asn1.DERIA5String=function(t){Ua.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Ma.lang.extend(Ua.asn1.DERIA5String,Ua.asn1.DERAbstractString),Ua.asn1.DERUTCTime=function(t){Ua.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Ma.lang.extend(Ua.asn1.DERUTCTime,Ua.asn1.DERAbstractTime),Ua.asn1.DERGeneralizedTime=function(t){Ua.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Ma.lang.extend(Ua.asn1.DERGeneralizedTime,Ua.asn1.DERAbstractTime),Ua.asn1.DERSequence=function(t){Ua.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},Ma.lang.extend(Ua.asn1.DERSequence,Ua.asn1.DERAbstractStructured),Ua.asn1.DERSet=function(t){Ua.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Ma.lang.extend(Ua.asn1.DERSet,Ua.asn1.DERAbstractStructured),Ua.asn1.DERTaggedObject=function(t){Ua.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ma.lang.extend(Ua.asn1.DERTaggedObject,Ua.asn1.ASN1Object);var ka,xa=(ka=function(t,e){return ka=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ka(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ka(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),La=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return xa(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(t){var e;if(void 0===Ho){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Ho={},e=0;e<16;++e)Ho[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Ho[n.charAt(e)]=e;for(e=0;e<r.length;++e)Ho[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=Ho[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):Zo.unarmor(t),i=na.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=pa(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=pa(o,16);var a=i.sub[4].getHexStringValue();this.p=pa(a,16);var s=i.sub[5].getHexStringValue();this.q=pa(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=pa(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=pa(u,16);var d=i.sub[8].getHexStringValue();this.coeff=pa(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=pa(e,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Ua.asn1.DERInteger({int:0}),new Ua.asn1.DERInteger({bigint:this.n}),new Ua.asn1.DERInteger({int:this.e}),new Ua.asn1.DERInteger({bigint:this.d}),new Ua.asn1.DERInteger({bigint:this.p}),new Ua.asn1.DERInteger({bigint:this.q}),new Ua.asn1.DERInteger({bigint:this.dmp1}),new Ua.asn1.DERInteger({bigint:this.dmq1}),new Ua.asn1.DERInteger({bigint:this.coeff})]};return new Ua.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Ko(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Ua.asn1.DERSequence({array:[new Ua.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Ua.asn1.DERNull]}),e=new Ua.asn1.DERSequence({array:[new Ua.asn1.DERInteger({bigint:this.n}),new Ua.asn1.DERInteger({int:this.e})]}),n=new Ua.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Ua.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Ko(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Na),Ba=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new La(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Qo(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return Ko(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return Ko(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Qo(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new La,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version="3.2.1",t}(),Pa=u.chaveMovelSignature,ja={publicKey:null},Ga=function(){var t=on((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return sn().mark((function t(){var i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),t.next=3,e.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=t.sent).data.publicKey){t.next=6;break}return t.abrupt("return",{});case 6:return a=atob(o.data.publicKey),ja.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Fa=function(){var t=on((function(t){var e=t.signingPin,n=t.phone,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=t.actionType;return sn().mark((function t(){var d,l,p;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Ga({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Ba).setPublicKey(l),t.abrupt("return",c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:p.encrypt(e),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Va=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Ha=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode,u=new Ba;return u.setPublicKey(ja.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},qa=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.countryCode,u=t.language,d=t.started,p=t.confirmationCodeRequest,f=t.signingPin,g=t.phone,h=t.setOnCancelByUser;return sn().mark((function t(){var y,m,v;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=l(s.SIGNATURE,Pa,c),a.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,fn(Fa)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:y.actionType,signingPin:f,phone:g});case 4:return m=t.sent,d(m),t.next=8,fn(Va,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:p,setOnCancelByUser:h});case 8:return v=t.sent,t.abrupt("return",fn(Ha)({token:m.data.token,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e,confirmationCode:v}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ka=bn(Pa,qa,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Qa=u.eCertChileSignature,za=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.idcode,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,idcode:u,email:d},cancelToken:i})},Za=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.idcode,f=t.email,g=t.redirect;return sn().mark((function t(){var h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,Qa,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(za)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:p,email:f,actionType:h.actionType});case 4:return y=t.sent,t.abrupt("return",fn(g,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wa=bn(Qa,Za,{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),Ja=fo({moduleName:u.mitIdSignature,createModuleCreator:bn}),Ya=u.ftnQesSignature,Xa=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},$a=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.phone,f=t.email,g=t.redirect;return sn().mark((function t(){var h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,Ya,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Xa)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:p,email:f,actionType:h.actionType});case 4:return y=t.sent,t.abrupt("return",fn(g,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ts=bn(Ya,$a,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),es=u.noBankIdAdvSignature,ns=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},rs=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.name,f=t.redirect;return sn().mark((function t(){var g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=l(s.SIGNATURE,es,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(ns)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,name:p,actionType:g.actionType});case 4:return h=t.sent,t.abrupt("return",fn(f,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),is=bn(es,rs,{name:{type:"string",required:!0}}),os=fo({moduleName:u.noBankIdAdvLightSignature,createModuleCreator:bn}),as=xi({moduleName:u.certEuropeUsbTokenSignature,createModuleCreator:bn}),ss=xi({moduleName:u.certSignUsbTokenSignature,createModuleCreator:bn}),cs=fo({moduleName:u.idinSignature,createModuleCreator:bn}),us=fo({moduleName:u.verifaiSignature,createModuleCreator:bn}),ds=u.spidQesSignature,ls=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.phone,d=t.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},ps=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.phone,f=t.email,g=t.redirect;return sn().mark((function t(){var h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,ds,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(ls)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:p,email:f,actionType:h.actionType});case 4:return y=t.sent,t.abrupt("return",fn(g,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fs=bn(ds,ps,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),gs=u.frejaSimpleSignature,hs=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},ys=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},ms=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:ys,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},vs=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.idcode,u=t.countryCode,d=t.language,p=t.started;return sn().mark((function t(){var f,g;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=l(s.SIGNATURE,gs,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(hs)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=t.sent,p(g),t.abrupt("return",fn(ms)({data:g.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Is=bn(gs,vs,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ss=u.audkenniQesSignature,Ts=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},Es=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},bs=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Cs=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:Es,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},As=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:bs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},_s=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.idcode,u=t.countryCode,d=t.language,p=t.started;return sn().mark((function t(){var f,g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=l(s.SIGNATURE,Ss,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(Ts)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=t.sent,t.next=7,fn(Cs)({data:g.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:e});case 7:return h=t.sent,p(h),t.abrupt("return",fn(As)({data:h.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ws=bn(Ss,_s,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Rs=fo({moduleName:u.yesComQesSignature,createModuleCreator:bn}),Os=fo({moduleName:u.simplySignQesSignature,createModuleCreator:bn}),Ns=u.uanatacaQesSignature,Ds=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.language,c=t.actionType,u=t.username,d=t.password,l=t.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:c,lang:s,username:u,password:d,pin:l},cancelToken:i})},Ms=function(t){var e=t.startSigningResult,n=t.confirmationCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},Us=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},ks=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.username,f=t.password,g=t.pin,h=t.confirmationCodeRequest,y=t.setOnCancelByUser,m=t.started;return sn().mark((function t(){var v,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=l(s.SIGNATURE,Ns,d),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,fn(Ds)({contractId:r,clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,password:f,pin:g,actionType:v.actionType});case 4:return I=t.sent,m(I),t.next=8,fn(Ms,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:h,setOnCancelByUser:y});case 8:return S=t.sent,t.abrupt("return",fn(Us)({token:I.data.token,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,confirmationCode:S}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xs=bn(Ns,ks,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Ls=u.infoCertQesSignature,Bs=function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.language,s=t.actionType,c=t.userId,u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:e,sign_type:s,lang:a,user_id:c},cancelToken:r})},Ps=function(t){var e=t.startSigningResult,n=t.otpCodeRequest,r=t.setOnCancelByUser;return new Promise((function(t,i){r((function(){var t=new Error("USER_REFUSED");t.isCancel=!0,i(t)})),n({data:e.data},t,i)}))},js=function(t){var e=t.token,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.pin,u=t.otp;return n.post({url:r.inCurrentMode.completeSignatureInfoCert(),withCredentials:!1,data:{token:e,doc_id:a,lang:i,client_id:s,pin:c,otp:u},cancelToken:o})},Gs=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.language,u=t.countryCode,d=t.userId,p=t.otpCodeRequest,f=t.setOnCancelByUser,g=t.started;return sn().mark((function t(){var h,y,m,v,I;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,Ls,u),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Bs)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,userId:d,actionType:h.actionType});case 4:return y=t.sent,g(y),t.next=8,fn(Ps,{shouldFormatResult:!1})({startSigningResult:y,otpCodeRequest:p,setOnCancelByUser:f});case 8:return m=t.sent,v=m.otp,I=m.pin,t.abrupt("return",fn(js)({token:y.data.token,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,otp:v,pin:I}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Fs=bn(Ls,Gs,{userId:{type:"string",required:!0}}),Vs=fo({moduleName:u.certsignWebapiQesSignature,createModuleCreator:bn}),Hs=u.halcomQesSignature,qs=function(t){var e=t.certificate,n=t.country,r=t.phone,i=t.email,o=t.username,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:e,country:n,phone:r,email:i,username:o},cancelToken:a})},Ks=function(t){var e=t.contractId,n=t.username,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.countryCode,u=t.language,d=t.email,l=t.phone,p=t.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:e,client_id:r,sign_type:p,username:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},Qs=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},zs=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:Qs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Zs=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.username,p=t.phone,f=t.email,g=t.countryCode,h=t.started,y=t.action,m=t.redirect;return sn().mark((function t(){var v,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=l(s.SIGNATURE,Hs,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(qs)({country:g,username:d,phone:p,email:f,cancelToken:i,apiEndpoints:o,apiClient:a});case 5:return I=t.sent,t.abrupt("return",fn(m,{shouldFormatResult:!1})(I));case 7:return t.next=9,fn(Ks)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:d,phone:p,email:f,countryCode:g,contractId:r,actionType:v.actionType});case 9:return S=t.sent,h(S),t.abrupt("return",fn(zs)({data:S.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ws=bn(Hs,Zs,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Js=u.swissIdQesSignature,Ys=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.email,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,email:u,country:s,lang:c},cancelToken:i})},Xs=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},$s=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:Xs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},tc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.email,p=t.countryCode,f=t.started;return sn().mark((function t(){var g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=l(s.SIGNATURE,Js,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Ys)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,email:d,countryCode:p,contractId:r,actionType:g.actionType});case 4:return h=t.sent,f(h),t.abrupt("return",fn($s)({data:h.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ec=bn(Js,tc,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),nc=u.swissComQesSignature,rc=function(t){var e=t.contractId,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.countryCode,c=t.language,u=t.phone,d=t.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:d,phone:u,country:s,lang:c},cancelToken:i})},ic=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},oc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:ic,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ac=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.phone,p=t.countryCode,f=t.started;return sn().mark((function t(){var g,h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=l(s.SIGNATURE,nc,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(rc)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:d,countryCode:p,contractId:r,actionType:g.actionType});case 4:return h=t.sent,f(h),t.abrupt("return",fn(oc)({data:h.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),sc=bn(nc,ac,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),cc=fo({moduleName:u.mitIdAdvancedSignature,createModuleCreator:bn}),uc=fo({moduleName:u.mitIdQesSignature,createModuleCreator:bn}),dc=fo({moduleName:u.seBankIdAdvancedSignature,createModuleCreator:bn}),lc=fo({moduleName:u.seBankIdQesSignature,createModuleCreator:bn}),pc=u.frejaAdvancedSignature,fc=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},gc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.idcode,u=t.countryCode,d=t.language,p=t.redirect;return sn().mark((function t(){var f,g;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=l(s.SIGNATURE,pc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(fc)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=t.sent,t.abrupt("return",fn(p,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),hc=bn(pc,gc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),yc=u.frejaQesSignature,mc=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},vc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.idcode,u=t.countryCode,d=t.language,p=t.redirect;return sn().mark((function t(){var f,g;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=l(s.SIGNATURE,yc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(mc)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=t.sent,t.abrupt("return",fn(p,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ic=bn(yc,vc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Sc=fo({moduleName:u.gbOneIdAdvancedSignature,createModuleCreator:bn}),Tc=u.handwrittenSignature,Ec=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,i=t.cancelToken,o=t.docId,a=t.clientId,s=t.emailToken,c=t.smsToken,u=t.handwrittenSignatureData,d=t.handwrittenSignatureDataUrl;return e.post({url:n.inCurrentMode.completeHandwritten(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},bc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.language,u=t.countryCode,d=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,g=t.handwrittenSignatureDataUrl;return sn().mark((function t(){var h;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,Tc,u),console.log(h),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.abrupt("return",fn(Ec)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,emailToken:d,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:g}));case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Cc=bn(Tc,bc,{docId:{type:"string",required:!0}}),Ac=u.haricaQesSignature,_c=function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.actionType,s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:e,sign_type:a},cancelToken:r})},wc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.username,u=t.password,d=t.otpCode;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s,otp_code:d,username:c,password:u},cancelToken:o})},Rc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId,c=t.username,u=t.password,d=t.otpCode;return Mn({pollInterval:2e3,fn:wc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Oc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.language,u=t.username,d=t.password,p=t.otpCode,f=t.countryCode,g=t.started;return sn().mark((function t(){var h,y;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l(s.SIGNATURE,Ac,f),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(_c)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:h.actionType});case 4:return y=t.sent,g(y),t.abrupt("return",fn(Rc)({data:y.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:e,username:u,password:d,otpCode:p}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Nc=bn(Ac,Oc,{countryCode:{type:"string",required:!0},username:{type:"string",required:!0},password:{type:"string",required:!0},otpCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Dc=fo({moduleName:u.veriffAdvancedSignature,createModuleCreator:bn}),Mc=u.ltIdQesSignature,Uc=function(t){var e=t.idcode,n=t.language,r=t.clientId,i=t.docId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.actionType,u=t.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:e},cancelToken:o})},kc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},xc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:kc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Lc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.idcode,c=t.countryCode,u=t.language,d=t.started;return sn().mark((function t(){var p,f;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p=l(s.SIGNATURE,Mc,c),t.next=3,fn(Uc)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:a,language:u,actionType:p.actionType,countryCode:c});case 3:return f=t.sent,d(f),t.abrupt("return",fn(xc)({data:f.data,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:e}));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Bc=bn(Mc,Lc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Pc=xi({moduleName:u.certStoreQesSignature,createModuleCreator:bn}),jc=xi({moduleName:u.certStoreAdvancedSignature,createModuleCreator:bn}),Gc=xi({moduleName:u.certStoreAdvancedUnverifiedSignature,createModuleCreator:bn}),Fc=fo({moduleName:u.buypassQesSignature,createModuleCreator:bn}),Vc=fo({moduleName:u.intesiFtnAdvSignature,createModuleCreator:bn}),Hc=fo({moduleName:u.trustAsiaSignature,createModuleCreator:bn}),qc=fo({moduleName:u.mscTrustGateSignature,createModuleCreator:bn}),Kc=fo({moduleName:u.gseAdvSignature,createModuleCreator:bn}),Qc=fo({moduleName:u.certMeQesSignature,createModuleCreator:bn}),zc=u.esLleidaAdvSignature,Zc=function(t){var e=t.certificate,n=t.country,r=t.pin,i=t.username,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"es-lleida-advanced-signature",certificate:e,country:n,pin:r,username:i},cancelToken:o})},Wc=function(t){var e=t.username,n=t.pin,r=t.language,i=t.clientId,o=t.docId,a=t.cancelToken,s=t.apiEndpoints,c=t.apiClient,u=t.actionType,d=s.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,username:e,pin:n},cancelToken:a})},Jc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEsLleida(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Yc=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:Jc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Xc=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.monitoringService,c=t.username,u=t.pin,d=t.countryCode,p=t.language,f=t.started,g=t.action,h=t.redirect;return sn().mark((function t(){var y,m,v;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y=l(s.SIGNATURE,zc,d),a.dispatch({message:"".concat(y.actionType,": signing started")}),"cscApiAuthorizeCredential"!==g){t.next=7;break}return t.next=5,fn(Zc)({country:d,username:c,pin:u,cancelToken:r,apiEndpoints:i,apiClient:o});case 5:return m=t.sent,t.abrupt("return",fn(h,{shouldFormatResult:!1})(m));case 7:return t.next=9,fn(Wc)({clientId:e,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:p,username:c,pin:u,countryCode:d,actionType:y.actionType});case 9:return v=t.sent,f(v),t.abrupt("return",fn(Yc)({data:v.data,apiClient:o,apiEndpoints:i,language:p,cancelToken:r,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),$c=bn(zc,Xc,{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),tu=fo({moduleName:u.seBankIdAdvancedHashSignature,createModuleCreator:bn}),eu=fo({moduleName:u.dkMitIdAdvancedHashSignature,createModuleCreator:bn}),nu=fo({moduleName:u.noBankIdAdvancedHashSignature,createModuleCreator:bn}),ru=fo({moduleName:u.itSpidQualifiedHashSignature,createModuleCreator:bn}),iu=fo({moduleName:u.adacomQesSignature,createModuleCreator:bn}),ou=fo({moduleName:u.adacomOneShotQesSignature,createModuleCreator:bn}),au=u.diiaQesSignature,su=function(t){var e=t.clientId,n=t.docId,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=t.countryCode,s=t.language,c=t.actionType,u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:e,sign_type:c,country:a,lang:s},cancelToken:r})},cu=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureDiiaQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},uu=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,i=t.language,o=t.cancelToken,a=t.docId,s=t.clientId;return Mn({pollInterval:2e3,fn:cu,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},du=function(){var t=on((function(t){var e=t.clientId,n=t.docId,r=t.contractId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,c=t.monitoringService,u=t.language,d=t.countryCode,p=t.started;return sn().mark((function t(){var f,g;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=l(s.SIGNATURE,au,d),c.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(su)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,countryCode:d,contractId:r,actionType:f.actionType});case 4:return g=t.sent,p(g),t.abrupt("return",fn(uu)({data:g.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),lu=bn(au,du),pu=fo({moduleName:u.emudhraQesSignature,createModuleCreator:bn}),fu=Object.freeze({sandbox:"sandbox",production:"production"});function gu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gu(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var yu=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=hu(hu({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},mu=function(t){var e=t.method,n=t.baseUrl,r=t.clientId,i=t.redirectUri,o=t.state,a=t.language,s=t.country,c="".concat(n,"/oauth/start/").concat(e,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},vu=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=hu({base:function(t){return t.baseUrl},readCard:function(t){var n=t.countryCode,r=void 0===n?e.countryCode.toLowerCase():n,i=t.clientId,o="eideasy.com";return e.sandbox&&["EE","BE","LT"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"lv-eparaksts-mobile-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"lv-eparaksts-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"mojeid",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"edoapp-eid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"itsme-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"itsme-login-basic",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"itsme-login-standard",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"swedish-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"finnish-ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idin:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"idin-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"idin-customer-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"verifai-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"yoonik-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"pl-mojeid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"mit-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"norwegian-bankid-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,i=t.state,o="".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"ftn-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language;return mu({method:"gb-one-id-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language,a=t.country;return mu({method:"veriff-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},lIdentiteNumerique:function(t){var e=t.baseUrl,n=t.state,r=t.clientId,i=t.redirectUri,o=t.language,a=t.country;return mu({method:"lidentite-numerique-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},integrationIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType,i=t.docId;return"".concat(e,"/web-element/os-broker/").concat(n,"/").concat(r,"?doc_id=").concat(i)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl,n=t.actionType;return"".concat(e,"/api/signatures/").concat(n,"/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureDiiaQes:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/diia-qes-signature/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureEsLleida:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/es-lleida-advanced-signature/complete")},completeSignatureHaricaQes:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/harica-qes-signature/complete")},completeSignatureDTrustSignMe:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureDTrustSignMeAdv:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/d-trust-sign-me-adv-signature/complete")},completeSignatureFrejaSimple:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/uanataca-qes-signature/complete")},completeSignatureInfoCert:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/infocert-qes-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},completeHandwritten:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/handwritten-simple-signature/complete")},completeSignatureLtIdQes:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/lt-id-qes-signature/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/api/monitor")},startZealIdSignature:function(t){var e=t.baseUrl,n=t.clientId,r=t.docId;return"".concat(e,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(t){var e=t.baseUrl;return"".concat(e,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(t){var e=t.baseUrl;return"".concat(e,"/csc/authorize-credential-redirect")}},n),i=(a(t={},fu.production,hu({},yu(r,{baseUrl:n.base?n.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),a(t,fu.sandbox,hu({},yu(r,{baseUrl:n.base?n.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?fu.sandbox:fu.production;return i[t]}}},Iu=u.eParakstsSmartCard,Su=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Tu=function(){var t=on(sn().mark((function t(e){var n,r,i,o,a;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,i=e.clientId,o=e.redirectUri,t.next=3,fn(Su)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",fn(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Eu=bn(Iu,Tu),bu=fo({moduleName:u.itsmeQesSignature,createModuleCreator:bn}),Cu=fo({moduleName:u.frIdentAdvancedSignature,createModuleCreator:bn}),Au=function(){var t=null;function e(e){if(t&&(!e.data||"EIDEASY_ID_CARD_INTEGRATION"===e.data.sender)&&t.message.operation===e.data.operation)if(!e.data||"user_cancel"!==e.data.result&&"user_cancel"!==e.data.message)"OK"===e.data.status?t.resolve(e.data):t.reject(e.data);else{t.reject({isCancel:!0})}}return window.addEventListener("message",e,!1),Object.freeze({send:function(e){var n=e.iframe,r=e.message,i=e.cancelToken;t&&t.reject(new Error("Operation cancelled by new operation"));var o={message:r};t=o,o.promise=new Promise((function(t,e){o.resolve=t,o.reject=e,i&&i.promise.then((function(){var t=new Error("Operation cancelled by user");t.isCancel=!0,e(t)}))}));var a=new URL(n.src);return n.contentWindow.postMessage(r,a.origin),o.promise},clearPendingMessage:function(){t=null},destroy:function(){window.removeEventListener("message",e,!1)}})},_u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Fe({rawSettings:t,schema:Ve}),n=en({currentLanguage:"en"}),r=vu({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=nn({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r}),o=window.eideasyIframeMessenger;return o||(o=Au(),window.eideasyIframeMessenger=o),je({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,iframeMessenger:o,identificationModules:[Rn,Bn,Hn,Zn,Xn,Eu,rr,cr,pr,yr,Sr,Cr,Rr,Mr,Lr,Gr,qr,Zr,Xr,ni,ai,di,gi,vi,Ei,_i,Ni],signingModules:[Li,Hi,Ji,ro,uo,go,ho,yo,ts,mo,To,Eo,bo,Co,Ao,_o,wo,Do,xo,Ka,Wa,Ja,is,os,as,ss,cs,us,fs,Is,ws,Rs,Os,xs,Fs,Vs,Ws,ec,sc,cc,uc,dc,lc,hc,Ic,bu,Cu,Sc,Cc,Nc,Dc,Bc,Pc,jc,Gc,Fc,Vc,tu,eu,nu,ru,Hc,qc,Kc,Qc,$c,iu,ou,lu,pu]})},wu=_u}(),o}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eidEasyBrowserClient=t():e.eidEasyBrowserClient=t()}(self,(function(){return function(){var e,t,n={8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),i=n(401),o=n(7667),a=n(1327),s=n(1866);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},8407:function(e,t,n){var r=n(7040),i=n(4125),o=n(2117),a=n(7518),s=n(4705);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},7071:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(e,t,n){var r=n(4785),i=n(1285),o=n(6e3),a=n(9916),s=n(5265);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},3818:function(e,t,n){var r=n(852)(n(5639),"Promise");e.exports=r},8525:function(e,t,n){var r=n(852)(n(5639),"Set");e.exports=r},6384:function(e,t,n){var r=n(8407),i=n(7465),o=n(3779),a=n(7599),s=n(4758),c=n(4309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},2705:function(e,t,n){var r=n(5639).Symbol;e.exports=r},1149:function(e,t,n){var r=n(5639).Uint8Array;e.exports=r},577:function(e,t,n){var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},4636:function(e,t,n){var r=n(2545),i=n(5694),o=n(1469),a=n(4144),s=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&i(e),l=!n&&!d&&a(e),p=!n&&!d&&!l&&c(e),f=n||d||l||p,g=f?r(e.length,String):[],h=g.length;for(var y in e)!t&&!u.call(e,y)||f&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||g.push(y);return g}},2488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},6556:function(e,t,n){var r=n(9465),i=n(7813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:function(e,t,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:function(e,t,n){var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:function(e,t,n){var r=n(8363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},3886:function(e,t,n){var r=n(8363),i=n(1704);e.exports=function(e,t){return e&&r(t,i(t),e)}},9465:function(e,t,n){var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},5990:function(e,t,n){var r=n(6384),i=n(7412),o=n(4865),a=n(4037),s=n(3886),c=n(4626),u=n(278),d=n(8805),l=n(1911),p=n(8234),f=n(6904),g=n(4160),h=n(3824),y=n(9148),m=n(8517),v=n(1469),I=n(4144),S=n(6688),T=n(3218),E=n(2928),b=n(3674),C=n(1704),A="[object Arguments]",_="[object Function]",w="[object Object]",R={};R[A]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[w]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[_]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,O,N,D,M){var U,k=1&n,x=2&n,L=4&n;if(O&&(U=D?O(t,N,D,M):O(t)),void 0!==U)return U;if(!T(t))return t;var B=v(t);if(B){if(U=h(t),!k)return u(t,U)}else{var P=g(t),j=P==_||"[object GeneratorFunction]"==P;if(I(t))return c(t,k);if(P==w||P==A||j&&!D){if(U=x||j?{}:m(t),!k)return x?l(t,s(U,t)):d(t,a(U,t))}else{if(!R[P])return D?t:{};U=y(t,P,k)}}M||(M=new r);var G=M.get(t);if(G)return G;M.set(t,U),E(t)?t.forEach((function(r){U.add(e(r,n,O,r,t,M))})):S(t)&&t.forEach((function(r,i){U.set(i,e(r,n,O,i,t,M))}));var F=B?void 0:(L?x?f:p:x?C:b)(t);return i(F||t,(function(r,i){F&&(r=t[i=r]),o(U,i,e(r,n,O,i,t,M))})),U}},3118:function(e,t,n){var r=n(3218),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},8483:function(e,t,n){var r=n(5063)();e.exports=r},8866:function(e,t,n){var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:function(e,t,n){var r=n(2705),i=n(9607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},9454:function(e,t,n){var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},5588:function(e,t,n){var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},8458:function(e,t,n){var r=n(3560),i=n(5346),o=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,l=u.hasOwnProperty,p=RegExp("^"+d.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},9221:function(e,t,n){var r=n(4160),i=n(7005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},8749:function(e,t,n){var r=n(4239),i=n(1780),o=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:function(e,t,n){var r=n(3218),i=n(5726),o=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},2980:function(e,t,n){var r=n(6384),i=n(6556),o=n(8483),a=n(9783),s=n(3218),c=n(1704),u=n(6390);e.exports=function e(t,n,d,l,p){t!==n&&o(n,(function(o,c){if(p||(p=new r),s(o))a(t,n,c,d,e,l,p);else{var f=l?l(u(t,c),o,c+"",t,n,p):void 0;void 0===f&&(f=o),i(t,c,f)}}),c)}},9783:function(e,t,n){var r=n(6556),i=n(4626),o=n(7133),a=n(278),s=n(8517),c=n(5694),u=n(1469),d=n(9246),l=n(4144),p=n(3560),f=n(3218),g=n(8630),h=n(6719),y=n(6390),m=n(9881);e.exports=function(e,t,n,v,I,S,T){var E=y(e,n),b=y(t,n),C=T.get(b);if(C)r(e,n,C);else{var A=S?S(E,b,n+"",e,t,T):void 0,_=void 0===A;if(_){var w=u(b),R=!w&&l(b),O=!w&&!R&&h(b);A=b,w||R||O?u(E)?A=E:d(E)?A=a(E):R?(_=!1,A=i(b,!0)):O?(_=!1,A=o(b,!0)):A=[]:g(b)||c(b)?(A=E,c(E)?A=m(E):f(E)&&!p(E)||(A=s(b))):_=!1}_&&(T.set(b,A),I(A,b,v,S,T),T.delete(b)),r(e,n,A)}}},5976:function(e,t,n){var r=n(6557),i=n(5357),o=n(61);e.exports=function(e,t){return o(i(e,t,r),e+"")}},6560:function(e,t,n){var r=n(5703),i=n(8777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},2545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:function(e){e.exports=function(e){return function(t){return e(t)}}},4318:function(e,t,n){var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:function(e,t,n){e=n.nmd(e);var r=n(5639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:function(e,t,n){var r=n(2705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},7133:function(e,t,n){var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:function(e,t,n){var r=n(4865),i=n(9465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],d=o?o(n[u],e[u],u,n,e):void 0;void 0===d&&(d=e[u]),a?i(n,u,d):r(n,u,d)}return n}},8805:function(e,t,n){var r=n(8363),i=n(9551);e.exports=function(e,t){return r(e,i(e),t)}},1911:function(e,t,n){var r=n(8363),i=n(1442);e.exports=function(e,t){return r(e,i(e),t)}},4429:function(e,t,n){var r=n(5639)["__core-js_shared__"];e.exports=r},1463:function(e,t,n){var r=n(5976),i=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t}))}},5063:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},8777:function(e,t,n){var r=n(852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},1957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:function(e,t,n){var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},6904:function(e,t,n){var r=n(8866),i=n(1442),o=n(1704);e.exports=function(e){return r(e,o,i)}},5050:function(e,t,n){var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:function(e,t,n){var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},5924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:function(e,t,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},9551:function(e,t,n){var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},1442:function(e,t,n){var r=n(2488),i=n(5924),o=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},4160:function(e,t,n){var r=n(8552),i=n(7071),o=n(3818),a=n(8525),s=n(577),c=n(4239),u=n(346),d="[object Map]",l="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",h=u(r),y=u(i),m=u(o),v=u(a),I=u(s),S=c;(r&&S(new r(new ArrayBuffer(1)))!=g||i&&S(new i)!=d||o&&S(o.resolve())!=l||a&&S(new a)!=p||s&&S(new s)!=f)&&(S=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case h:return g;case y:return d;case m:return l;case v:return p;case I:return f}return t}),e.exports=S},7801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},1789:function(e,t,n){var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:function(e,t,n){var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:function(e,t,n){var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:function(e,t,n){var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:function(e,t,n){var r=n(4318),i=n(7157),o=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},8517:function(e,t,n){var r=n(3118),i=n(5924),o=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:function(e,t,n){var r=n(7813),i=n(8612),o=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},7019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:function(e,t,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:function(e){e.exports=function(){this.__data__=[],this.size=0}},4125:function(e,t,n){var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},2117:function(e,t,n){var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:function(e,t,n){var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:function(e,t,n){var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:function(e,t,n){var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:function(e,t,n){var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:function(e,t,n){var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:function(e,t,n){var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},4536:function(e,t,n){var r=n(852)(Object,"create");e.exports=r},6916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},3498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:function(e,t,n){e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},5357:function(e,t,n){var r=n(6874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(c),r(e,this,u)}}},5639:function(e,t,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},6390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61:function(e,t,n){var r=n(6560),i=n(1275)(r);e.exports=i},1275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:function(e,t,n){var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:function(e){e.exports=function(e){return this.__data__.get(e)}},4758:function(e){e.exports=function(e){return this.__data__.has(e)}},4309:function(e,t,n){var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:function(e,t,n){var r=n(5990);e.exports=function(e){return r(e,5)}},5703:function(e){e.exports=function(e){return function(){return e}}},7813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:function(e){e.exports=function(e){return e}},5694:function(e,t,n){var r=n(9454),i=n(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},1469:function(e){var t=Array.isArray;e.exports=t},8612:function(e,t,n){var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},9246:function(e,t,n){var r=n(8612),i=n(7005);e.exports=function(e){return i(e)&&r(e)}},4144:function(e,t,n){e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},3560:function(e,t,n){var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:function(e,t,n){var r=n(5588),i=n(1717),o=n(1167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8630:function(e,t,n){var r=n(4239),i=n(5924),o=n(7005),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},2928:function(e,t,n){var r=n(9221),i=n(1717),o=n(1167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},6719:function(e,t,n){var r=n(8749),i=n(1717),o=n(1167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:function(e,t,n){var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},1704:function(e,t,n){var r=n(4636),i=n(313),o=n(8612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},2492:function(e,t,n){var r=n(2980),i=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=i},479:function(e){e.exports=function(){return[]}},5062:function(e){e.exports=function(){return!1}},9881:function(e,t,n){var r=n(8363),i=n(1704);e.exports=function(e){return r(e,i(e))}},7061:function(e,t,n){var r=n(8698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.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 i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),s=new R(r||[]);return a(o,"_invoke",{value:C(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var g={};function h(){}function y(){}function m(){}var v={};l(v,c,(function(){return this}));var I=Object.getPrototypeOf,S=I&&I(I(O([])));S&&S!==n&&o.call(S,c)&&(v=S);var T=m.prototype=h.prototype=Object.create(v);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var d=u.arg,l=d.value;return l&&"object"==r(l)&&o.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 i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}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{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function A(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,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;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,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(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,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return y.prototype=m,a(T,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=l(m,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,d,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},E(b.prototype),l(b.prototype,u,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(p(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(T),l(T,d,"Generator"),l(T,c,(function(){return this})),l(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),g}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,n){var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,i),o.loaded=!0,o.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},i.d(o,a),o},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var o={};return function(){"use strict";i.r(o),i.d(o,{allMethods:function(){return d},createClient:function(){return Nu},default:function(){return Du},getMethodByHandlingModule:function(){return l},logLevels:function(){return Vt},methodActionTypes:function(){return c},methodTypes:function(){return s},moduleNames:function(){return u}});var e,t={};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}function a(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i.r(t),i.d(t,{hasBrowserEnv:function(){return be},hasStandardBrowserEnv:function(){return Ae},hasStandardBrowserWebWorkerEnv:function(){return _e},navigator:function(){return Ce},origin:function(){return we}});var s={IDENTIFICATION:"identification",SIGNATURE:"signature"},c={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",EE_WEB_EID_LOGIN:"ee-web-eid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-login",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-login",LIDENTITE_NUMERIQUE_LOGIN:"lidentite-numerique-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CZ_IDCARD_SIGNATURE:"cz-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",SERPRO_ID_ADVANCED_SIGNATURE:"serpro-id-advanced-signature",CZ_BANKID_ADVANCED_SIGNATURE:"cz-bankid-advanced-signature",ABA_DO_QES_SIGNATURE:"aba-do-qes-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",D_TRUST_SIGN_ME_ADVANCED_SIGNATURE:"d-trust-sign-me-adv-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",CL_ECERT_ADVANCED_SIGNATURE:"cl-ecert-advanced-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",SE_BANK_ID_ADVANCED_HASH_SIGNATURE:"se-bankid-adv-hash-signature",DK_MIT_ID_ADVANCED_HASH_SIGNATURE:"dk-mitid-adv-hash-signature",NO_BANK_ID_ADVANCED_HASH_SIGNATURE:"no-bankid-adv-hash-signature",IT_SPID_QUALIFIED_HASH_SIGNATURE:"it-spid-qes-hash-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE:"no-bankid-adv-light-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",INFOCERT_QUALIFIED_SIGNATURE:"infocert-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-advanced-signature",LT_ID_QES_SIGNATURE:"lt-id-qes-signature",CERT_STORE_QES_SIGNATURE:"cert-store-qes-signature",CERT_STORE_ADVANCED_SIGNATURE:"cert-store-advanced-signature",CERT_STORE_ADV_UNVERIFIED_SIGN:"cert-store-adv-unverified-sign",BUYPASS_QES_SIGNATURE:"buypass-qes-signature",FI_FTN_INTESI_ADS_SIGNATURE:"fi-ftn-intesi-adv-signature",TRUST_ASIA_SIGNATURE:"trust-asia-signature",MSC_TRUST_GATE_SIGNATURE:"msc-trust-gate-signature",GSE_ADV_SIGNATURE:"gse-adv-signature",CERTME_QES_SIGNATURE:"certme-qes-signature",ES_LLEIDA_ADV_SIGNATURE:"es-lleida-advanced-signature",ADACOM_QES_SIGNATURE:"adacom-qes-signature",ADACOM_ONE_SHOT_QES_SIGNATURE:"adacom-one-shot-qes-signature",DIIA_QES_SIGNATURE:"diia-qes-signature",EMUDHRA_QES_SIGNATURE:"emudhra-qes-signature",MX_PSC_WORLD_ADVANCED_SIGNATURE:"mx-psc-world-adv-signature"},u={idCard:"idCard",mobileId:"mobileId",webEid:"webEid",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",norwegianBankId:"norwegianBankId",ftn:"ftn",gbOneId:"gbOneId",veriff:"veriff",lIdentiteNumerique:"lIdentiteNumerique",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",seBankIdAdvancedHashSignature:"seBankIdAdvancedHashSignature",dkMitIdAdvancedHashSignature:"dkMitIdAdvancedHashSignature",noBankIdAdvancedHashSignature:"noBankIdAdvancedHashSignature",itSpidQualifiedHashSignature:"itSpidQualifiedHashSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",serproIdAdvancedSignature:"serproIdAdvancedSignature",czBankIDSignature:"czBankIDSignature",abaDoSignature:"abaDoSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",dTrustSignMeAdvSignature:"dTrustSignMeAdvSignature",chaveMovelSignature:"chaveMovelSignature",eCertChileSignature:"eCertChileSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",noBankIdAdvLightSignature:"noBankIdAdvLightSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",infoCertQesSignature:"infoCertQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature",ltIdQesSignature:"ltIdQesSignature",buypassQesSignature:"buypassQesSignature",intesiFtnAdvSignature:"intesiFtnAdvSignature",certStoreQesSignature:"certStoreQesSignature",certStoreAdvancedSignature:"certStoreAdvancedSignature",certStoreAdvancedUnverifiedSignature:"certStoreAdvancedUnverifiedSignature",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature",adacomOneShotQesSignature:"adacomOneShotQesSignature",diiaQesSignature:"diiaQesSignature",emudhraQesSignature:"emudhraQesSignature",mxPscWorldAdvancedSignature:"mxPscWorldAdvancedSignature"},d=Object.freeze((a(e={},s.IDENTIFICATION,[{actionType:c.BE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["BE"]},{actionType:c.EE_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["EE"]},{actionType:c.FI_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["FI"]},{actionType:c.LV_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LV"]},{actionType:c.LT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["LT"]},{actionType:c.PT_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["PT"]},{actionType:c.RS_ID_LOGIN,handlingModule:u.idCard,supportedCountries:["RS"]},{actionType:c.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:u.eParakstsMobile,supportedCountries:["LV"]},{actionType:c.LV_EPARAKSTS_ID_LOGIN,handlingModule:u.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:c.LT_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["LT"]},{actionType:c.EE_MOBILE_ID,handlingModule:u.mobileId,supportedCountries:["EE"]},{actionType:c.SMART_ID,handlingModule:u.smartId,supportedCountries:["EE","LV","LT","BE"]},{actionType:c.EE_WEB_EID_LOGIN,handlingModule:u.webEid,supportedCountries:["EE"]},{actionType:c.FREJA_EID_LOGIN,handlingModule:u.frejaEid,supportedCountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","AL","BA","GE","MK","RS","GB","UA","AR","BR","CL","CO","CA","MX","PE","US","AU","HK","JP","NZ","SG","KR","TW","GL","AX"]},{actionType:c.ZEALID_LOGIN,handlingModule:u.zealId,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RO","RS","SE","SI","SK"]},{actionType:c.CZ_MOJEID,handlingModule:u.mojeId,supportedCountries:["CZ"]},{actionType:c.EDOAPP_EID_LOGIN,handlingModule:u.edoAppEid,supportedCountries:["PL"]},{actionType:c.FI_FTN_LOGIN,handlingModule:u.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:c.AT_HANDY_SIGNATUR_LOGIN,handlingModule:u.atHandy,supportedCountries:["AT"]},{actionType:c.ITSME_LOGIN,handlingModule:u.itsme,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_BASIC,handlingModule:u.itsmeBasic,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_STANDARD,handlingModule:u.itsmeStandard,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.SE_BANKID_LOGIN,handlingModule:u.seBankId,supportedCountries:["SE"]},{actionType:c.IDIN_LOGIN,handlingModule:u.idin,supportedCountries:["NL"]},{actionType:c.IDIN_CUSTOMER_ID_LOGIN,handlingModule:u.idinCustomerId,supportedCountries:["NL"]},{actionType:c.VERIFAI_LOGIN,handlingModule:u.verifai,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.YOONIK_LOGIN,handlingModule:u.yoonik,supportedCountries:["WORLD"]},{actionType:c.PL_MOJEID_LOGIN,handlingModule:u.plMojeId,supportedCountries:["PL"]},{actionType:c.MIT_ID_LOGIN,handlingModule:u.mitId,supportedCountries:["DK"]},{actionType:c.NORWEGIAN_BANKID_LOGIN,handlingModule:u.norwegianBankId,supportedCountries:["NO"]},{actionType:c.FTN_LOGIN,handlingModule:u.ftn,supportedCountries:["FI"]},{actionType:c.GB_ONE_ID_LOGIN,handlingModule:u.gbOneId,supportedCountries:["GB"]},{actionType:c.VERIFF_LOGIN,handlingModule:u.veriff,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:c.LIDENTITE_NUMERIQUE_LOGIN,handlingModule:u.lIdentiteNumerique,supportedCountries:["FR"]}]),a(e,s.SIGNATURE,[{actionType:c.EE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["EE"]},{actionType:c.LV_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LV"]},{actionType:c.LT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["LT"]},{actionType:c.FI_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["FI","AX"]},{actionType:c.PT_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["PT"]},{actionType:c.BE_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["BE"]},{actionType:c.HR_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["HR"]},{actionType:c.CZ_IDCARD_SIGNATURE,handlingModule:u.idCardSignature,supportedCountries:["CZ"]},{actionType:c.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:u.certEuropeUsbTokenSignature,supportedCountries:["FR","PL"]},{actionType:c.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:u.certSignUsbTokenSignature,supportedCountries:["RO","PL"]},{actionType:c.EE_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["EE"]},{actionType:c.LT_MOBILEID_SIGNATURE,handlingModule:u.mobileIdSignature,supportedCountries:["LT"]},{actionType:c.SMARTID_SIGNATURE,handlingModule:u.smartIdSignature,supportedCountries:["EE","LV","LT","BE"]},{actionType:c.EVROTRUST_SIGNATURE,handlingModule:u.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:c.ITSME_QES_SIGNATURE,handlingModule:u.itsmeQesSignature,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.OTP_EMAIL,handlingModule:u.otpSignature,supportedCountries:["WORLD"]},{actionType:c.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:u.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:c.FI_FTN_ADVANCED_SIGNATURE,handlingModule:u.ftnSignature,supportedCountries:["FI","AX"]},{actionType:c.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:u.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:c.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:u.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:c.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:u.atHandySignature,supportedCountries:["AT","DE"]},{actionType:c.ZEAL_ID_SIGNATURE,handlingModule:u.zealIdSignature,supportedCountries:["AT","BE","BG","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LV","LT","NL","NO","PL","PT","RS","SE","SI","SK"]},{actionType:c.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:u.mojeIdSignature,supportedCountries:["CZ"]},{actionType:c.SERPRO_ID_ADVANCED_SIGNATURE,handlingModule:u.serproIdAdvancedSignature,supportedCountries:["BR"]},{actionType:c.MX_PSC_WORLD_ADVANCED_SIGNATURE,handlingModule:u.mxPscWorldAdvancedSignature,supportedCountries:["MX"]},{actionType:c.CZ_BANKID_ADVANCED_SIGNATURE,handlingModule:u.czBankIDSignature,supportedCountries:["CZ"]},{actionType:c.ABA_DO_QES_SIGNATURE,handlingModule:u.abaDoSignature,supportedCountries:["DO"]},{actionType:c.GOOGLE_SIGNATURE,handlingModule:u.googleSignature,supportedCountries:["WORLD"]},{actionType:c.SE_BANKID_SIGNATURE,handlingModule:u.seBankIdSignature,supportedCountries:["SE"]},{actionType:c.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:u.dTrustSignMeSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:c.D_TRUST_SIGN_ME_ADVANCED_SIGNATURE,handlingModule:u.dTrustSignMeAdvSignature,supportedCountries:["DE","CA","ZA","GR","NL","BE","FR","ES","PT","LU","IE","IS","MT","CY","AX","FI","US","BG","HU","LT","LV","EE","HR","SI","IT","CH","CZ","SK","LI","AT","GG","DK","SE","NO","PL","MX","AR","BR","CL","AU","ID","PH","SG","RU","JP","KR","CN","TR","IN","SA","AE","QA"]},{actionType:c.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:u.chaveMovelSignature,supportedCountries:["PT"]},{actionType:c.CL_ECERT_ADVANCED_SIGNATURE,handlingModule:u.eCertChileSignature,supportedCountries:["CL"]},{actionType:c.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:u.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:c.NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE,handlingModule:u.noBankIdAdvLightSignature,supportedCountries:["NO"]},{actionType:c.MIT_ID_SIMPLE_SIGNATURE,handlingModule:u.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:c.IDIN_SIMPLE_SIGNATURE,handlingModule:u.idinSignature,supportedCountries:["NL"]},{actionType:c.SPID_QUALIFIED_SIGNATURE,handlingModule:u.spidQesSignature,supportedCountries:["IT"]},{actionType:c.VERIFAI_SIMPLE_SIGNATURE,handlingModule:u.verifaiSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","KP","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.FREJA_SIMPLE_SIGNATURE,handlingModule:u.frejaSimpleSignature,supportedCountries:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","AL","BA","GE","MK","RS","GB","UA","AR","BR","CL","CO","CA","MX","PE","US","AU","HK","JP","NZ","SG","KR","TW","GL","AX"]},{actionType:c.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:u.audkenniQesSignature,supportedCountries:["IS"]},{actionType:c.YES_COM_QUALIFIED_SIGNATURE,handlingModule:u.yesComQesSignature,supportedCountries:["DE"]},{actionType:c.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:u.simplySignQesSignature,supportedCountries:["PL"]},{actionType:c.UANATACA_QUALIFIED_SIGNATURE,handlingModule:u.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:c.INFOCERT_QUALIFIED_SIGNATURE,handlingModule:u.infoCertQesSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DE","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType:c.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:u.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:c.HALCOM_QUALIFIED_SIGNATURE,handlingModule:u.halcomQesSignature,supportedCountries:["SI"]},{actionType:c.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:u.swissIdQesSignature,supportedCountries:["CH"]},{actionType:c.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:u.swissComQesSignature,supportedCountries:["CH"]},{actionType:c.DK_MITID_ADVANCED_SIGNATURE,handlingModule:u.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:c.DK_MITID_QES_SIGNATURE,handlingModule:u.mitIdQesSignature,supportedCountries:["DK"]},{actionType:c.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:u.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:c.SE_BANK_ID_QES_SIGNATURE,handlingModule:u.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:c.SE_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.seBankIdAdvancedHashSignature,supportedCountries:["SE"]},{actionType:c.DK_MIT_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.dkMitIdAdvancedHashSignature,supportedCountries:["DK"]},{actionType:c.NO_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:u.noBankIdAdvancedHashSignature,supportedCountries:["NO"]},{actionType:c.IT_SPID_QUALIFIED_HASH_SIGNATURE,handlingModule:u.itSpidQualifiedHashSignature,supportedCountries:["IT"]},{actionType:c.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:u.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:c.SE_FREJA_EID_QES_SIGNATURE,handlingModule:u.frejaQesSignature,supportedCountries:["SE"]},{actionType:c.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:u.frIdentAdvancedSignature,supportedCountries:["FR"]},{actionType:c.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:u.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:c.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:u.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:c.HARICA_QES_SIGNATURE,handlingModule:u.haricaQesSignature,supportedCountries:["GR"]},{actionType:c.VERIFF_ADVANCED_SIGNATURE,handlingModule:u.veriffAdvancedSignature,supportedCountries:["AD","AO","AR","AM","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BT","BO","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","CF","TD","CL","CN","CO","KM","CG","CD","CR","HR","CU","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GD","GT","GN","GW","GY","HT","VA","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","XK","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TO","TT","TN","TR","TM","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:c.LT_ID_QES_SIGNATURE,handlingModule:u.ltIdQesSignature,supportedCountries:["LT"]},{actionType:c.CERT_STORE_QES_SIGNATURE,handlingModule:u.certStoreQesSignature,supportedCountries:["WORLD"]},{actionType:c.CERT_STORE_ADVANCED_SIGNATURE,handlingModule:u.certStoreAdvancedSignature,supportedCountries:["WORLD"]},{actionType:c.CERT_STORE_ADV_UNVERIFIED_SIGN,handlingModule:u.certStoreAdvancedUnverifiedSignature,supportedCountries:["WORLD"]},{actionType:c.BUYPASS_QES_SIGNATURE,handlingModule:u.buypassQesSignature,supportedCountries:["NO"]},{actionType:c.FI_FTN_INTESI_ADS_SIGNATURE,handlingModule:u.intesiFtnAdvSignature,supportedCountries:["FI"]},{actionType:c.TRUST_ASIA_SIGNATURE,handlingModule:u.trustAsiaSignature,supportedCountries:["CN"]},{actionType:c.MSC_TRUST_GATE_SIGNATURE,handlingModule:u.mscTrustGateSignature,supportedCountries:["MY"]},{actionType:c.GSE_ADV_SIGNATURE,handlingModule:u.gseAdvSignature,supportedCountries:["CO"]},{actionType:c.CERTME_QES_SIGNATURE,handlingModule:u.certMeQesSignature,supportedCountries:["RO"]},{actionType:c.ES_LLEIDA_ADV_SIGNATURE,handlingModule:u.esLleidaAdvSignature,supportedCountries:["ES"]},{actionType:c.ADACOM_QES_SIGNATURE,handlingModule:u.adacomQesSignature,supportedCountries:["GR"]},{actionType:c.ADACOM_ONE_SHOT_QES_SIGNATURE,handlingModule:u.adacomOneShotQesSignature,supportedCountries:["AD","AE","AF","AG","AI","AL","AM","AO","AR","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CW","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FM","FO","FR","GA","GB","GD","GE","GF","GH","GI","GL","GM","GN","GP","GQ","GR","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","PR","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","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},{actionType:c.DIIA_QES_SIGNATURE,handlingModule:u.diiaQesSignature,supportedCountries:["UA"]},{actionType:c.EMUDHRA_QES_SIGNATURE,handlingModule:u.emudhraQesSignature,supportedCountries:["IN"]}]),e)),l=function(e,t,n){var r=d[e];if(t&&n){var i=r.find((function(e){return e.handlingModule===t&&(e.supportedCountries.includes(n)||e.supportedCountries.includes("WORLD"))}));if(!i){if(0===r.filter((function(e){return e.handlingModule===t})).length)throw new Error("Could not find matching method configuration for ".concat(e,' module "').concat(t,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(e,'\n module "').concat(t,'".'))}return i}return r.find((function(e){return e.handlingModule===t}))},p=i(2492),f=i.n(p);function g(e,t){return function(){return e.apply(t,arguments)}}const{toString:h}=Object.prototype,{getPrototypeOf:y}=Object,m=(v=Object.create(null),e=>{const t=h.call(e);return v[t]||(v[t]=t.slice(8,-1).toLowerCase())});var v;const I=e=>(e=e.toLowerCase(),t=>m(t)===e),S=e=>t=>typeof t===e,{isArray:T}=Array,E=S("undefined"),b=I("ArrayBuffer"),C=S("string"),A=S("function"),_=S("number"),w=e=>null!==e&&"object"==typeof e,R=e=>{if("object"!==m(e))return!1;const t=y(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},O=I("Date"),N=I("File"),D=I("Blob"),M=I("FileList"),U=I("URLSearchParams"),[k,x,L,B]=["ReadableStream","Request","Response","Headers"].map(I);function P(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),T(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function j(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,F=e=>!E(e)&&e!==G,V=(H="undefined"!=typeof Uint8Array&&y(Uint8Array),e=>H&&e instanceof H);var H;const q=I("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q=I("RegExp"),z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};P(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},W="abcdefghijklmnopqrstuvwxyz",Z="0123456789",J={DIGIT:Z,ALPHA:W,ALPHA_DIGIT:W+W.toUpperCase()+Z},Y=I("AsyncFunction"),X=($="function"==typeof setImmediate,ee=A(G.postMessage),$?setImmediate:ee?(te=`axios@${Math.random()}`,ne=[],G.addEventListener("message",(({source:e,data:t})=>{e===G&&t===te&&ne.length&&ne.shift()()}),!1),e=>{ne.push(e),G.postMessage(te,"*")}):e=>setTimeout(e));var $,ee,te,ne;const re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(G):"undefined"!=typeof process&&process.nextTick||X;var ie={isArray:T,isArrayBuffer:b,isBuffer:function(e){return null!==e&&!E(e)&&null!==e.constructor&&!E(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(t=m(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t},isString:C,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:R,isReadableStream:k,isRequest:x,isResponse:L,isHeaders:B,isUndefined:E,isDate:O,isFile:N,isBlob:D,isRegExp:Q,isFunction:A,isStream:e=>w(e)&&A(e.pipe),isURLSearchParams:U,isTypedArray:V,isFileList:M,forEach:P,merge:function e(){const{caseless:t}=F(this)&&this||{},n={},r=(r,i)=>{const o=t&&j(n,i)||i;R(n[o])&&R(r)?n[o]=e(n[o],r):R(r)?n[o]=e({},r):T(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&P(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(P(t,((t,r)=>{n&&A(t)?e[r]=g(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:m,kindOfTest:I,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(T(e))return e;let t=e.length;if(!_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:z,freezeMethods:e=>{z(e,((t,n)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];A(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return T(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:j,global:G,isContextDefined:F,ALPHABET:J,generateString:(e=16,t=J.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=T(e)?[]:{};return P(e,((e,t)=>{const o=n(e,r+1);!E(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Y,isThenable:e=>e&&(w(e)||A(e))&&A(e.then)&&A(e.catch),setImmediate:X,asap:re};function oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ie.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const ae=oe.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{se[e]={value:e}})),Object.defineProperties(oe,se),Object.defineProperty(ae,"isAxiosError",{value:!0}),oe.from=(e,t,n,r,i,o)=>{const a=Object.create(ae);return ie.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var ce=oe;function ue(e){return ie.isPlainObject(e)||ie.isArray(e)}function de(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function le(e,t,n){return e?e.concat(t).map((function(e,t){return e=de(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const pe=ie.toFlatObject(ie,{},null,(function(e){return/^is[A-Z]/.test(e)}));var fe=function(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ie.isUndefined(t[e])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ie.isDate(e))return e.toISOString();if(!s&&ie.isBlob(e))throw new ce("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(e)||ie.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(ie.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ie.isArray(e)&&function(e){return ie.isArray(e)&&!e.some(ue)}(e)||(ie.isFileList(e)||ie.endsWith(n,"[]"))&&(s=ie.toArray(e)))return n=de(n),s.forEach((function(e,r){!ie.isUndefined(e)&&null!==e&&t.append(!0===a?le([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!ue(e)||(t.append(le(i,n,o),c(e)),!1)}const d=[],l=Object.assign(pe,{defaultVisitor:u,convertValue:c,isVisitable:ue});if(!ie.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ie.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),ie.forEach(n,(function(n,o){!0===(!(ie.isUndefined(n)||null===n)&&i.call(t,n,ie.isString(o)?o.trim():o,r,l))&&e(n,r?r.concat(o):[o])})),d.pop()}}(e),t};function ge(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function he(e,t){this._pairs=[],e&&fe(e,this,t)}const ye=he.prototype;ye.append=function(e,t){this._pairs.push([e,t])},ye.toString=function(e){const t=e?function(t){return e.call(this,t,ge)}:ge;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var me=he;function ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ie(e,t,n){if(!t)return e;const r=n&&n.encode||ve;ie.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):ie.isURLSearchParams(t)?t.toString():new me(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var Se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ie.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:me,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const be="undefined"!=typeof window&&"undefined"!=typeof document,Ce="object"==typeof navigator&&navigator||void 0,Ae=be&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),_e="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,we=be&&window.location.href||"http://localhost";var Re={...t,...Ee},Oe=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&ie.isArray(r)?r.length:o,s?(ie.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&ie.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&ie.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,((e,r)=>{t(function(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Ne={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ie.isObject(e);if(i&&ie.isHTMLForm(e)&&(e=new FormData(e)),ie.isFormData(e))return r?JSON.stringify(Oe(e)):e;if(ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)||ie.isReadableStream(e))return e;if(ie.isArrayBufferView(e))return e.buffer;if(ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return fe(e,new Re.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Re.isNode&&ie.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=ie.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return fe(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(ie.isString(e))try{return(0,JSON.parse)(e),ie.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ne.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ie.isResponse(e)||ie.isReadableStream(e))return e;if(e&&ie.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ce.from(e,ce.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Re.classes.FormData,Blob:Re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],(e=>{Ne.headers[e]={}}));var De=Ne;const Me=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ue=Symbol("internals");function ke(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:ie.isArray(e)?e.map(xe):String(e)}function Le(e,t,n,r,i){return ie.isFunction(r)?r.call(this,t,n):(i&&(t=n),ie.isString(t)?ie.isString(r)?-1!==t.indexOf(r):ie.isRegExp(r)?r.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=ke(t);if(!i)throw new Error("header name must be a non-empty string");const o=ie.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=xe(e))}const o=(e,t)=>ie.forEach(e,((e,n)=>i(e,n,t)));if(ie.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ie.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Me[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(ie.isHeaders(e))for(const[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=ke(e)){const n=ie.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ie.isFunction(t))return t.call(this,e,n);if(ie.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ke(e)){const n=ie.findKey(this,e);return!(!n||void 0===this[n]||t&&!Le(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=ke(e)){const i=ie.findKey(n,e);!i||t&&!Le(0,n[i],i,t)||(delete n[i],r=!0)}}return ie.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Le(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ie.forEach(this,((r,i)=>{const o=ie.findKey(n,i);if(o)return t[o]=xe(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=xe(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ie.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ie.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ue]=this[Ue]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ke(e);t[r]||(function(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return ie.isArray(e)?e.forEach(r):r(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.reduceDescriptors(Be.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ie.freezeMethods(Be);var Pe=Be;function je(e,t){const n=this||De,r=t||n,i=Pe.from(r.headers);let o=r.data;return ie.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Ge(e){return!(!e||!e.__CANCEL__)}function Fe(e,t,n){ce.call(this,null==e?"canceled":e,ce.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(Fe,ce,{__CANCEL__:!0});var Ve=Fe;function He(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const qe=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let d=a,l=0;for(;d!==o;)l+=n[d++],d%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,c=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Ke=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>ie.asap((()=>e(...t)));var ze=Re.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Re.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Re.origin),Re.navigator&&/(msie|trident)/i.test(Re.navigator.userAgent)):()=>!0,We=Re.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ie.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&a.push("path="+r),ie.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ze(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Je=e=>e instanceof Pe?{...e}:e;function Ye(e,t){t=t||{};const n={};function r(e,t,n,r){return ie.isPlainObject(e)&&ie.isPlainObject(t)?ie.merge.call({caseless:r},e,t):ie.isPlainObject(t)?ie.merge({},t):ie.isArray(t)?t.slice():t}function i(e,t,n,i){return ie.isUndefined(t)?ie.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!ie.isUndefined(t))return r(void 0,t)}function a(e,t){return ie.isUndefined(t)?ie.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Je(e),Je(t),0,!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=c[r]||i,a=o(e[r],t[r],r);ie.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Xe=e=>{const t=Ye({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Pe.from(s),t.url=Ie(Ze(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ie.isFormData(r))if(Re.hasStandardBrowserEnv||Re.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Re.hasStandardBrowserEnv&&(i&&ie.isFunction(i)&&(i=i(t)),i||!1!==i&&ze(t.url))){const e=o&&a&&We.read(a);e&&s.set(o,e)}return t},$e="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Xe(e);let i=r.data;const o=Pe.from(r.headers).normalize();let a,s,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:f}=r;function g(){u&&u(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function y(){if(!h)return;const r=Pe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());He((function(e){t(e),g()}),(function(e){n(e),g()}),{data:l&&"text"!==l&&"json"!==l?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(new ce("Request aborted",ce.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new ce("Network Error",ce.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Te;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ce(t,i.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&ie.forEach(o.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),ie.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),l&&"json"!==l&&(h.responseType=r.responseType),f&&([c,d]=qe(f,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=qe(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Ve(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===Re.protocols.indexOf(m)?n(new ce("Unsupported protocol "+m+":",ce.ERR_BAD_REQUEST,e)):h.send(i||null)}))},et=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ce?t:new Ve(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>ie.asap(a),s}};const tt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},nt=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*tt(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},rt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,it=rt&&"function"==typeof ReadableStream,ot=rt&&("function"==typeof TextEncoder?(at=new TextEncoder,e=>at.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var at;const st=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ct=it&&st((()=>{let e=!1;const t=new Request(Re.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ut=it&&st((()=>ie.isReadableStream(new Response("").body))),dt={stream:ut&&(e=>e.body)};var lt;rt&&(lt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!dt[e]&&(dt[e]=ie.isFunction(lt[e])?t=>t[e]():(t,n)=>{throw new ce(`Response type '${e}' is not supported`,ce.ERR_NOT_SUPPORT,n)})})));const pt={http:null,xhr:$e,fetch:rt&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Xe(e);u=u?(u+"").toLowerCase():"text";let f,g=et([i,o&&o.toAbortSignal()],a);const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&ct&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=ie.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ie.isBlob(e))return e.size;if(ie.isSpecCompliantForm(e)){const t=new Request(Re.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ie.isArrayBufferView(e)||ie.isArrayBuffer(e)?e.byteLength:(ie.isURLSearchParams(e)&&(e+=""),ie.isString(e)?(await ot(e)).byteLength:void 0)})(t):n})(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ie.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Ke(y,qe(Qe(c)));r=nt(n.body,65536,e,t)}}ie.isString(l)||(l=l?"include":"omit");const i="credentials"in Request.prototype;f=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:i?l:void 0});let o=await fetch(f);const a=ut&&("stream"===u||"response"===u);if(ut&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=ie.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Ke(t,qe(Qe(s),!0))||[];o=new Response(nt(o.body,65536,n,(()=>{r&&r(),h&&h()})),e)}u=u||"text";let m=await dt[ie.findKey(dt,u)||"text"](o,e);return!a&&h&&h(),await new Promise(((t,n)=>{He(t,n,{data:m,headers:Pe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,f),{cause:t.cause||t});throw ce.from(t,t&&t.code,e,f)}})};ie.forEach(pt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ft=e=>`- ${e}`,gt=e=>ie.isFunction(e)||null===e||!1===e;var ht=e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!gt(n)&&(r=pt[(t=String(n)).toLowerCase()],void 0===r))throw new ce(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ft).join("\n"):" "+ft(e[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function yt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ve(null,e)}function mt(e){return yt(e),e.headers=Pe.from(e.headers),e.data=je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht(e.adapter||De.adapter)(e).then((function(t){return yt(e),t.data=je.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t}),(function(t){return Ge(t)||(yt(e),t&&t.response&&(t.response.data=je.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)}))}const vt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const It={};vt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ce(r(i," has been removed"+(t?" in "+t:"")),ce.ERR_DEPRECATED);return t&&!It[i]&&(It[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},vt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var St={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ce("option "+o+" must be "+n,ce.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ce("Unknown option "+o,ce.ERR_BAD_OPTION)}},validators:vt};const Tt=St.validators;class Et{constructor(e){this.defaults=e,this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ye(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&St.assertOptions(n,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),null!=r&&(ie.isFunction(r)?t.paramsSerializer={serialize:r}:St.assertOptions(r,{encode:Tt.function,serialize:Tt.function},!0)),St.assertOptions(t,{baseUrl:Tt.spelling("baseURL"),withXsrfToken:Tt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&ie.merge(i.common,i[t.method]);i&&ie.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Pe.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,l=0;if(!s){const e=[mt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=a.length;let p=t;for(l=0;l<d;){const e=a[l++],t=a[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=mt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return Ie(Ze((e=Ye(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ie.forEach(["delete","get","head","options"],(function(e){Et.prototype[e]=function(t,n){return this.request(Ye(n||{},{method:e,url:t,data:(n||{}).data}))}})),ie.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ye(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Et.prototype[e]=t(),Et.prototype[e+"Form"]=t(!0)}));var bt=Et;class Ct{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ve(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ct((function(t){e=t})),cancel:e}}}var At=Ct;const _t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_t).forEach((([e,t])=>{_t[t]=e}));var wt=_t;const Rt=function e(t){const n=new bt(t),r=g(bt.prototype.request,n);return ie.extend(r,bt.prototype,n,{allOwnKeys:!0}),ie.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ye(t,n))},r}(De);Rt.Axios=bt,Rt.CanceledError=Ve,Rt.CancelToken=At,Rt.isCancel=Ge,Rt.VERSION="1.7.9",Rt.toFormData=fe,Rt.AxiosError=ce,Rt.Cancel=Rt.CanceledError,Rt.all=function(e){return Promise.all(e)},Rt.spread=function(e){return function(t){return e.apply(null,t)}},Rt.isAxiosError=function(e){return ie.isObject(e)&&!0===e.isAxiosError},Rt.mergeConfig=Ye,Rt.AxiosHeaders=Pe,Rt.formToJSON=e=>Oe(ie.isHTMLForm(e)?new FormData(e):e),Rt.getAdapter=ht,Rt.HttpStatusCode=wt,Rt.default=Rt;var Ot=Rt,Nt=Ot.CancelToken,Dt=Ot.isCancel;Ot.Cancel,Ot.interceptors.response.use((function(e){return(t=e.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(t.status)?Promise.reject(function(e){var t=e.message,n=e.config,r=e.code,i=e.request,o=e.response,a=new Error(t);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(e.status),config:e.config,request:e.request,response:e})):e;var t}));var Mt=function(e){return Ot(e)};function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt=function(e,t){var n,r=t.modifyRequestSettings,i=e;return"function"==typeof r&&(n=r(i)),n&&(i=f()(i,n)),i},Lt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Mt(xt(kt({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))},n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Mt(xt(kt({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},t),e))};return Object.freeze({get:t,post:n,CancelToken:Nt})};function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.identificationModules,n=void 0===t?[]:t,r=e.signingModules,i=void 0===r?[]:r,o=e.settings,a=void 0===o?{}:o,s=e.i18n,c=e.apiEndpoints,u=e.monitoringService,l=e.iframeMessenger,p=e.logger,f=Pt({},a);f.apiEndpoints=c,s.setLanguage(f.language);var g=function(e){f.countryCode=e},h=function(){return f.countryCode},y=function(){return d},m={};n.forEach((function(e){var t=e({coreContext:{config:f,i18n:s,monitoringService:u,logger:p},apiClient:Lt({modifyRequestSettings:f.modifyRequestSettings})});m[t.MODULE_NAME]=t}));var v={};return i.forEach((function(e){var t=e({coreContext:{config:f,i18n:s,monitoringService:u,iframeMessenger:l,logger:p},apiClient:Lt({modifyRequestSettings:f.modifyRequestSettings})});v[t.MODULE_NAME]=t})),Object.freeze({identification:Pt({},m),signature:Pt({},v),getAllMethods:y,setLanguage:s.setLanguage,setCountryCode:g,getCountryCode:h,getLogs:p.getLogs})};function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ft=function(e){var t=e.rawSettings,r=e.schema,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t);return Object.keys(r).forEach((function(e){var o=r[e],a=t[e];if(o.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(i[e]=o.default),void 0!==i[e]&&void 0!==o.type&&o.type!==n(i[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(o.type,'", but received "').concat(n(i[e]),'"'))})),i},Vt=Object.freeze({debug:10,info:20,error:30}),Ht={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(e){var t=e.data&&e.data.redirect_uri;return t?(window.location!==window.top.location?window.top.location.href=t:window.location.href=t,new Promise((function(){}))):e},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"},consoleLogLevel:{default:Vt.error,type:"number"}},qt=JSON.parse('{"id-card-read-timeout":"Das Auslesen des Ausweises hat zu lange gedauert. Bitte schließen Sie alle geöffneten Browserfenster und versuchen Sie es erneut.","no_certificates":"Zertifikate konnten nicht gelesen werden. Stellen Sie sicher, dass sich die Karte im Lesegerät befindet und das Lesegerät richtig funktioniert."}'),Kt=i.t(qt,2),Qt=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}'),zt=i.t(Qt,2),Wt=JSON.parse('{"id-card-read-timeout":"ID kaardi lugemine võttis liiga kaua aega. Palun sulge kõik brauseri aknad ja proovi uuesti.","no_certificates":"Sertfikaatide lugemine ebaõnnestus. Veendu, et ID kaart on lugejas ning lugeja on arvutiga ühendatud."}'),Zt=i.t(Wt,2),Jt=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}'),Yt=i.t(Jt,2),Xt=JSON.parse('{"id-card-read-timeout":"ID kartes lasīšana aizņēma pārāk ilgu laiku. Lūdzu, aizveriet visus atvērtos pārlūkprogrammas logus un pēc tam mēģiniet vēlreiz.","no_certificates":"Nevarēja nolasīt sertifikātus. Pārliecinieties, vai karte ir lasītājā un lasītājs darbojas pareizi."}'),$t=i.t(Xt,2),en=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),tn={de:Kt,en:zt,et:Zt,lt:Yt,lv:$t,ru:i.t(en,2)},nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.currentLanguage,n=void 0===t?"en":t,r=e.locales,i=void 0===r?tn:r,o={currentLanguage:n},a="en",s=function(e){o.currentLanguage=e},c=function(){return o.currentLanguage},u=function(e){var t=i[o.currentLanguage];t||(t=i[a]);var n=t[e]||i[a][e];return n||(n=e),n};return Object.freeze({setLanguage:s,t:u,getCurrentLanguage:c})},rn=function(e){var t=e.clientId,n=e.remoteMonitoringEnabled,r=e.apiEndpoints;return{dispatch:function(e){var i=e.message;n&&Mt({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:t,source:"browser-client",message:i}})}}};function on(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function an(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){on(o,r,i,a,s,"next",e)}function s(e){on(o,r,i,a,s,"throw",e)}a(void 0)}))}}var sn=i(4687),cn=i.n(sn),un=i(361),dn=i.n(un)(),ln=function(e){var t=e;return(Dt(e)||"user_cancel"===e.message)&&(t.isCancel=!0),t.response&&t.response.data&&(t.response.data.message&&(t.userMessage=t.response.data.message),t.response.data.errors&&(t.userDetails=t.response.data.errors)),t},pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.message,r=dn({message:n});if(t)r.data=t;else{if(!e.result||!e.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=e.result.data}return r},fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.error},gn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.shouldFormatResult,r=void 0===n||n;return function(){var t=an(cn().mark((function t(){var n,i,o=arguments;return cn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.apply(void 0,o);case 2:if(n=t.sent,!(i=fn(n))){t.next=6;break}throw ln(i);case 6:return t.abrupt("return",r?pn(n):n);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()};function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yn(e,t){if(e){if("string"==typeof e)return hn(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)?hn(e,t):void 0}}function mn(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Error;var vn=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],In=Symbol(".toJSON was called"),Sn=function e(t){var r,i,o=t.from,a=t.seen,s=t.to_,c=t.forceEnumerable,u=t.maxDepth,d=t.depth,l=s||(Array.isArray(o)?[]:{});if(a.push(o),d>=u)return l;if("function"==typeof o.toJSON&&!0!==o[In])return function(e){e[In]=!0;var t=e.toJSON();return delete e[In],t}(o);for(var p=0,f=Object.entries(o);p<f.length;p++){var g=(r=f[p],i=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,i)||yn(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[0],y=g[1];"function"==typeof Buffer&&Buffer.isBuffer(y)?l[h]="[object Buffer]":null===y||"object"!==n(y)||"function"!=typeof y.pipe?"function"!=typeof y&&(y&&"object"===n(y)?a.includes(o[h])?l[h]="[Circular]":(d++,l[h]=e({from:o[h],seen:mn(a),forceEnumerable:c,maxDepth:u,depth:d})):l[h]=y):l[h]="[object Stream]"}for(var m=0,v=vn;m<v.length;m++){var I=v[m],S=I.property,T=I.enumerable;"string"==typeof o[S]&&Object.defineProperty(l,S,{value:o[S],enumerable:!!c||T,configurable:!0,writable:!0})}return l};function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.maxDepth,i=void 0===r?Number.POSITIVE_INFINITY:r;return"object"===n(e)&&null!==e?Sn({from:e,seen:[],forceEnumerable:!0,maxDepth:i,depth:0}):"function"==typeof e?"[Function: ".concat(e.name||"anonymous","]"):e}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var i=r.coreContext,o=r.apiClient,a=i.i18n,s=i.config,c=i.monitoringService,u=i.iframeMessenger,d=i.logger;return Object.freeze({MODULE_NAME:e,start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=bn(bn({},Ht),n),i=bn(bn({},s),e),l=Ft({rawSettings:i,schema:r}),p=l.success,f=l.fail,g=l.finished,h=e.language||a.getCurrentLanguage(),y=o.CancelToken.source(),m=y.token,v={onCancelByUser:function(){},onRefreshByUser:function(){}},I=function(e){v.onCancelByUser=e},S=function(e){v.onRefreshByUser=e},T=function(){y.cancel()},E=function(){v.onCancelByUser(),T()},b=function(){v.onRefreshByUser()},C=function(){var e=an(cn().mark((function e(){return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(bn(bn({},l),{},{language:h,i18n:a,monitoringService:c,cancelToken:m,cancel:T,setOnCancelByUser:I,setOnRefreshByUser:S,apiClient:o,iframeMessenger:u,logger:d})).then((function(e){p(e)})).catch((function(e){d.error(e),c.dispatch({message:JSON.stringify(Tn(e))}),f(ln(e))})).finally(g);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return C().catch((function(e){d.error(e),c.dispatch({message:JSON.stringify(Tn(e))}),f(ln(e)),g(ln(e))})),Object.freeze({cancel:E,refresh:b})}})}};function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wn=u.idCard,Rn=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,i=t.apiClient,o=t.i18n,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiEndpoints.inCurrentMode.readCard({countryCode:e.countryCode,clientId:e.clientId});return e.nonce&&(t+="?nonce=".concat(e.nonce)),i.get({url:t,cancelToken:e.cancelToken})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(s.IDENTIFICATION,wn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},e.next=5,gn(a)(_n(_n({},t),{},{language:r,cancelToken:n})).catch((function(e){throw"ECONNABORTED"===e.code&&(e.userMessage=o.t("id-card-read-timeout")),e}));case 5:return u=e.sent,e.next=8,gn(c)(_n(_n({},t),{},{cancelToken:n,language:r,data:u.data}));case 8:return u=e.sent,e.abrupt("return",u);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),On=Cn(wn,Rn,{countryCode:{type:"string",required:!0}}),Nn=Object.freeze({fnTimeout:"EFNTIMEDOUT"}),Dn=function(){var e=an((function(e){var t=e.fn,n=e.shouldContinue,r=e.interval,i=e.fnTimeoutMs,o=void 0===i?864e5:i;return cn().mark((function e(){var i,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=0,a=function(){var e=an(cn().mark((function e(s,c){var u,d;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i+=1,e.prev=1,e.next=4,Promise.race([t(),new Promise((function(e,t){return setTimeout((function(){var e=new Error("Function did not resolve in defined time");e.code=Nn.fnTimeout,t(e)}),o)}))]);case 4:u=e.sent,d=void 0,e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),u=void 0,d=e.t0;case 12:if(!n({result:u,attempts:i,error:d})){e.next=14;break}return e.abrupt("return",setTimeout(a,r,s,c));case 14:return e.abrupt("return",s({result:u,error:d}));case 15:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t,n){return e.apply(this,arguments)}}(),e.abrupt("return",new Promise(a));case 3:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Mn=Dn,Un=[],kn=function(e){var t=e.instanceId,n=void 0===t?"":t,r=e.consoleLogLevel,i=void 0===r?Vt.error:r,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"log",t=arguments.length>1?arguments[1]:void 0,r=["[".concat(n,"]: ")].concat(mn(t));Un.length>1e4&&Un.shift();var o,a,s=r.map((function(e){return e instanceof Error?Tn(e):e}));Un.push(JSON.stringify([e].concat(mn(s)))),Vt[e]>=i&&(console[e]?(o=console)[e].apply(o,mn(r)):(a=console).log.apply(a,mn(r)))};return Object.freeze({debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o("debug",t)},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o("info",t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o("error",t)},getLogs:function(){return Un}})},xn=function(e){var t,n=e.pollInterval,r=void 0===n?2e3:n,i=e.maxPollDuration,o=e.fn,a=e.fnTimeoutMs,s=e.fnArgs,c=e.onPoll,u=void 0===c?function(){}:c,d=e.logger,l=void 0===d?kn({instanceId:"apiPoller"}):d;i&&(t=i/r);var p=0,f=0,g=function(){var e=f;function n(){return e===f}return new Promise((function(e,i){Mn({fn:function(){return o.apply(void 0,mn(s))},fnTimeoutMs:a,shouldContinue:function(e){if(!n())return!1;var r=e.result;l.info("Active poller result",r&&r.data),u(e);var i=r&&r.data&&r.data.status;if(e.error&&e.error.code===Nn.fnTimeout)return console.log("Function did not resolve before the provided timeout, trying again",o),!0;var a=Dt(e.error),s=e.error&&!e.error.response&&!a;s&&(p+=1);var c,d,f=!1;return c=e.attempts,(!(d=t)||c<d)&&p<3&&(f=s||"RUNNING"===i||"IN_PROGRESS"===i),f},interval:r}).then((function(t){n()&&(l.info("Active poller final result",t&&t.data),e(t))})).catch((function(e){n()&&i(e)}))}))};return{start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,n){g().then(t).catch(n);var r=e.setOnRefreshByUser;(void 0===r?function(){}:r)((function(){f+=1,l.info("Refresh was called, pollerId: ",f),g().then(t).catch(n)}))}))}}};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pn=u.smartId,jn=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u,d,p,f,g,h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,i=t.idcode,o=t.pollInterval,a=void 0===o?1e3:o,c=t.cancelToken,u=t.language,d=t.apiClient,p=t.setOnRefreshByUser,f=function(e){var t=l(s.IDENTIFICATION,Pn);return d.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},g=function(e){var t=l(s.IDENTIFICATION,Pn);return d.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language}})},h=function(e){var t=xn({pollInterval:e.pollInterval,maxPollDuration:12e4,fn:g,fnArgs:[Bn(Bn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language})]});return new Promise((function(e,n){t.start({setOnRefreshByUser:p}).then(e).catch(n)}))},e.next=6,gn(f)(Bn(Bn({},t),{},{cancelToken:c,language:u,idcode:i}));case 6:return y=e.sent,r(y),e.next=10,gn(h)({config:t,data:Bn({},y.data),cancelToken:c,pollInterval:a,language:u});case 10:return y=e.sent,e.abrupt("return",y);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Gn=Cn(Pn,jn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hn=u.webEid,qn=function(e){var t=e.monitoringService,n=e.moduleName;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){var i=JSON.stringify(Tn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})},Kn=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u,d,p,f,g,h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=qn({monitoringService:t.monitoringService,moduleName:"Web eID"}),r=t.cancelToken,i=t.language,o=t.apiClient,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(s.IDENTIFICATION,Hn);return{data:{url:e.apiEndpoints.inCurrentMode.integrationIframe({clientId:e.clientId,actionType:t.actionType,docId:""})}}},c=function(){var e=an((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cn().mark((function t(){var i,o,a;return cn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.iframeHolder,o=document.createElement("iframe"),a=e.iframeUrl,o.setAttribute("src",a),o.setAttribute("referrerpolicy","origin"),o.style.border="0",i.innerHTML="",i.appendChild(o),t.prev=8,t.next=11,window.eideasyIframeMessenger.send({iframe:o,message:{operation:"ready"},cancelToken:r});case 11:return t.abrupt("return",new Promise((function(e){e(o)})));case 14:throw t.prev=14,t.t0=t.catch(8),n.logError("Failed to create iframe",t.t0),t.t0;case 18:case"end":return t.stop()}}),t,null,[[8,14]])}))()}));return function(){return e.apply(this,arguments)}}(),u=function(){var e=an(cn().mark((function e(t){var i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=t.iframeHolder,o=i.querySelector("iframe"),e.next=5,window.eideasyIframeMessenger.send({iframe:o,message:{operation:"getAuthToken",nonce:t.nonce},cancelToken:r});case 5:return a=e.sent,e.abrupt("return",new Promise((function(e){e(a)})));case 9:throw e.prev=9,e.t0=e.catch(0),n.logError("Failed to start Web eID",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),d=function(e){var t=l(s.IDENTIFICATION,Hn);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language}})},p=function(){var e=an(cn().mark((function e(t){var n;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l(s.IDENTIFICATION,Hn),e.abrupt("return",o.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.token,auth_token:t.authToken,method:n.actionType,lang:t.language}}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e.next=9,gn(a)(Vn(Vn({},t),{},{cancelToken:r}));case 9:return f=e.sent,e.next=12,gn(c,{shouldFormatResult:!1})(Vn(Vn({},t),{},{cancelToken:r,iframeUrl:f.data.url})).catch((function(e){throw e}));case 12:return e.next=14,gn(d)(Vn(Vn({},t),{},{cancelToken:r,language:i}));case 14:return g=e.sent,e.next=17,gn(u,{shouldFormatResult:!1})(Vn(Vn({},t),{},{nonce:g.data.nonce,data:Vn({},g.data),cancelToken:r,language:i}));case 17:return h=e.sent,e.next=20,gn(p)(Vn(Vn({},t),{},{token:h.token,authToken:g.data.token,cancelToken:r}));case 20:return y=e.sent,e.abrupt("return",y);case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Qn=Cn(Hn,Kn,{countryCode:{type:"string",required:!0}});function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn=u.mobileId,Jn=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u,d,p,f,g,h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.language,i=t.apiClient,o=t.started,a=void 0===o?function(){}:o,c=t.idcode,u=t.phone,d=t.pollInterval,p=void 0===d?1e3:d,f=function(e){var t=l(s.IDENTIFICATION,Zn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})},g=function(e){var t=l(s.IDENTIFICATION,Zn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})},h=function(e){var t=12e4/p,n=0;return Mn({fn:function(){return g(Wn(Wn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){var r=e.result,i=r&&r.data&&r.data.status,o=Dt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);var s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})},e.next=6,gn(f)(Wn(Wn({},t),{},{cancelToken:n,language:r,idcode:c,phone:u}));case 6:return y=e.sent,a(y),e.next=10,gn(h)({config:t,data:y.data,cancelToken:n,language:r,pollInterval:p});case 10:return y=e.sent,e.abrupt("return",y);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Yn=Cn(Zn,Jn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Xn=u.eParakstsMobile,$n=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},er=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn($n)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),tr=Cn(Xn,er);function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=u.frejaEid,or=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u,d,p,f,g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.started,r=void 0===n?function(){}:n,i=t.idcode,o=t.pollInterval,a=void 0===o?1e3:o,c=t.cancelToken,u=t.language,d=t.apiClient,p=function(e){var t=l(s.IDENTIFICATION,ir);return d.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})},f=function(e){var t=l(s.IDENTIFICATION,ir);return d.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,lang:e.language,timeout:2}})},g=function(e){var t=1e5/e.pollInterval,n=0;return Mn({fn:function(){return f(rr(rr({},e.config),{},{data:e.data,language:e.language,cancelToken:e.cancelToken}))},shouldContinue:function(e){var r=e.result,i=r&&r.data&&r.data.status,o=Dt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);var s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})},e.next=6,gn(p)(rr(rr({},t),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=e.sent,r(h),e.next=10,gn(g)({config:t,data:rr({},h.data),cancelToken:c,language:u,pollInterval:a});case 10:return h=e.sent,e.abrupt("return",h);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ar=Cn(ir,or,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=u.zealId,dr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,c,u;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cancelToken,r=t.apiClient,i=t.language,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:e.clientId})})},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.iframeHolder,n=document.createElement("iframe"),r=e.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",t.innerHTML="";var i=function(e,t,n){var r=new URL(e.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?t({data:{code:o}}):n(e.data)},o=new Promise((function(e,t){window.addEventListener("message",(function(n){var o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,e,t))}))}));return t.appendChild(n),o},c=function(e){var t=l(s.IDENTIFICATION,ur);return r.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{method:t.actionType,code:e.data.code,lang:e.language}})},e.next=6,gn(o)(cr(cr({},t),{},{cancelToken:n}));case 6:return u=e.sent,e.next=9,gn(a)(cr(cr({},t),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=e.sent,e.next=12,gn(c)(cr(cr({},t),{},{cancelToken:n,language:i},u));case 12:return u=e.sent,e.abrupt("return",u);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lr=Cn(ur,dr,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),pr=u.mojeId,fr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},gr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn(fr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hr=Cn(pr,gr),yr=u.edoAppEid,mr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},vr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn(mr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ir=Cn(yr,vr),Sr=u.finnishTrustNetwork,Tr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},Er=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Tr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),br=Cn(Sr,Er),Cr=u.atHandy,Ar=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},_r=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn(Ar)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),wr=Cn(Cr,_r),Rr=u.itsme,Or=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.itsme({clientId:n,redirectUri:r,language:i})}}},Nr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Or)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Dr=Cn(Rr,Nr),Mr=u.itsmeBasic,Ur=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},kr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Ur)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xr=Cn(Mr,kr),Lr=u.itsmeStandard,Br=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},Pr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Br)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),jr=Cn(Lr,Pr),Gr=u.seBankId,Fr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.seBankId({clientId:n,redirectUri:r,language:i})}}},Vr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Fr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Hr=Cn(Gr,Vr),qr=u.idin,Kr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.idin({clientId:n,redirectUri:r,language:i})}}},Qr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Kr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),zr=Cn(qr,Qr),Wr=u.idinCustomerId,Zr=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.idinCustomerId({clientId:n,redirectUri:r,language:i})}}},Jr=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Zr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Yr=Cn(Wr,Jr),Xr=u.verifai,$r=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},ei=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn($r)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ti=Cn(Xr,ei),ni=u.yoonik,ri=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},ii=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(ri)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oi=Cn(ni,ii),ai=u.plMojeId,si=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},ci=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn(si)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ui=Cn(ai,ci),di=u.mitId,li=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.mitId({clientId:n,redirectUri:r,language:i})}}},pi=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(li)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fi=Cn(di,pi),gi=u.norwegianBankId,hi=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.norwegianBankId({clientId:n,redirectUri:r,language:i})}}},yi=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(hi)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mi=Cn(gi,yi),vi=u.ftn,Ii=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.ftn({clientId:n,redirectUri:r,language:i})}}},Si=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(Ii)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ti=Cn(vi,Si),Ei=u.gbOneId,bi=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language;return{data:{redirect_uri:t.inCurrentMode.gbOneId({clientId:n,redirectUri:r,language:i})}}},Ci=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,e.next=3,gn(bi)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(s));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ai=Cn(Ei,Ci),_i=u.veriff,wi=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language,o=e.country;return{data:{redirect_uri:t.inCurrentMode.veriff({clientId:n,redirectUri:r,language:i,country:o})}}},Ri=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s,c;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,s=t.country,e.next=3,gn(wi)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(c));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Oi=Cn(_i,Ri),Ni=u.lIdentiteNumerique,Di=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri,i=e.language,o=e.country;return{data:{redirect_uri:t.inCurrentMode.lIdentiteNumerique({clientId:n,redirectUri:r,language:i,country:o})}}},Mi=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a,s,c;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,a=t.language,s=t.country,e.next=3,gn(Di)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(c));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ui=Cn(Ni,Mi),ki=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.userMessage,i=void 0===r?"":r,o=e.details,a=void 0===o?{}:o;this.message=n,this.userMessage=i,this.details=a,this.stack=(new Error).stack};(ki.prototype=new Error).name="MethodException";var xi=ki,Li={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},Bi=function(e){var t=e.monitoringService,n=e.moduleName;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){var i=JSON.stringify(Tn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})},Pi=function(e){var t=e.moduleName,n=e.createModuleCreator,r=function(e){var n=e.countryCode,r=e.clientId,i=e.docId,o=e.apiEndpoints,a=l(s.SIGNATURE,t,n);return o.inCurrentMode.integrationIframe({clientId:r,docId:i,actionType:a.actionType})},i=function(e,t){if(e instanceof Error)throw e;var n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new xi({userMessage:n,message:e.message,details:e})},o=function(){var e=an((function(e){var t=e.iframeHolder,n=e.iframeUrl,r=e.monitor,i=e.iframeMessenger,o=e.cancelToken;return cn().mark((function e(){var a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=document.createElement("iframe")).setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.setAttribute("allow","clipboard-write"),a.style.width="100%",a.style.height="100%",a.style.position="relative",a.style.border="0",t.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),t.appendChild(a),e.prev=11,e.next=14,i.send({iframe:a,message:{operation:"ready"},cancelToken:o});case 14:return e.abrupt("return",new Promise((function(e){e(a)})));case 17:throw e.prev=17,e.t0=e.catch(11),r.logError("Failed to create iframe",e.t0),e.t0;case 21:case"end":return e.stop()}}),e,null,[[11,17]])}))()}));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=an((function(e){var t=e.iframeMessenger,n=e.iframe,r=e.country,i=e.cancelToken;return cn().mark((function e(){var o;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i});case 2:return o=e.sent,e.abrupt("return",{data:{certificate:o.certificate}});case 4:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),c=function(e){var t=e.certificate,n=e.clientId,r=e.docId,i=e.countryCode,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:t,base64_certificate:t,country:i},cancelToken:o})},u=function(e){var t=e.iframeMessenger,n=e.iframe,r=e.hexDigests,i=e.signedInfoDigests,o=e.certificate,a=e.country,s=e.monitor,c=e.cancelToken;return s.log("Trying to sign the digests: ".concat(JSON.stringify(r),", ")+"signedInfoDigests: ".concat(JSON.stringify(i))),t.send({iframe:n,message:{operation:"getSignature",hexDigests:r,signedInfoDigests:i,certificate:o,country:a},cancelToken:c})},d=function(e){var t=e.signatures,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.driver,c=e.actionType,u=o.inCurrentMode.completeSignatureIdCard({actionType:c});return a.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:t[0],signatures:t,driver:s},cancelToken:i})},p=function(e){var t=e.certificate,n=e.country,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.actionType,s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},f=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.signatures,u=e.actionType;return xn({pollInterval:2e3,maxPollDuration:36e4,fn:d,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}]}).start()},g=function(){var e=an((function(e){var n=e.countryCode,d=e.clientId,g=e.apiEndpoints,h=e.iframeHolder,y=e.i18n,m=e.iframeMessenger,v=e.docId,I=e.cancelToken,S=e.apiClient,T=e.monitoringService,E=e.action,b=e.redirect,C=e.signingCertificate;return cn().mark((function e(){var A,_,w,R,O,N,D,M,U;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A=Bi({monitoringService:T,moduleName:t}),_=l(s.SIGNATURE,t,n),e.next=4,gn(r,{shouldFormatResult:!1})({countryCode:n,clientId:d,docId:v,apiEndpoints:g});case 4:return w=e.sent,e.next=7,gn(o,{shouldFormatResult:!1})({iframeUrl:w,iframeHolder:h,i18n:y,monitor:A,iframeMessenger:m,cancelToken:I}).catch((function(e){return i(e,y)}));case 7:if(R=e.sent,O=C){e.next=14;break}return e.next=12,gn(a)({iframeMessenger:m,iframe:R,country:n,monitor:A,cancelToken:I}).catch((function(e){return i(e,y)}));case 12:N=e.sent,O=N.data.certificate;case 14:if("cscApiAuthorizeCredential"!==E){e.next=19;break}return e.next=17,gn(p)({certificate:O,actionType:_.actionType,country:n,cancelToken:I,apiEndpoints:g,apiClient:S});case 17:return D=e.sent,e.abrupt("return",gn(b,{shouldFormatResult:!1})(D));case 19:return e.next=21,gn(c)({certificate:O,clientId:d,docId:v,countryCode:n,cancelToken:I,apiEndpoints:g,apiClient:S,monitor:A,actionType:_.actionType});case 21:return M=e.sent,e.next=24,gn(u,{shouldFormatResult:!1})({iframeMessenger:m,iframe:R,hexDigests:[M.data.hexDigest],signedInfoDigests:M.data.signedInfoDigests,certificate:C,monitor:A,cancelToken:I}).catch((function(e){return i(e,y)}));case 24:return U=e.sent,e.abrupt("return",gn(f)({signatures:U.signatures,clientId:d,docId:v,cancelToken:I,apiEndpoints:g,apiClient:S,actionType:_.actionType}));case 26:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}();return n(t,g,Li)},ji=Pi({moduleName:u.idCardSignature,createModuleCreator:Cn}),Gi=u.mobileIdSignature,Fi=function(e){var t=e.certificate,n=e.country,r=e.phone,i=e.idcode,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:t,country:n,phone:r,idcode:i},cancelToken:o})},Vi=function(e){var t=e.phone,n=e.idcode,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.countryCode,u=e.language,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:t,idcode:n,country:c,lang:u},cancelToken:o})},Hi=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:t.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},qi=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,maxPollDuration:12e4,fn:Hi,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ki=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.language,u=e.idcode,d=e.phone,p=e.countryCode,f=e.started,g=e.action,h=e.redirect;return cn().mark((function e(){var y,m,v;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("cscApiAuthorizeCredential"!==g){e.next=5;break}return e.next=3,gn(Fi)({country:p,idcode:u,phone:d,cancelToken:r,apiEndpoints:i,apiClient:o});case 3:return y=e.sent,e.abrupt("return",gn(h,{shouldFormatResult:!1})(y));case 5:return m=l(s.SIGNATURE,Gi,p),a.dispatch({message:"".concat(m.actionType,": signing started")}),e.next=9,gn(Vi)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,idcode:u,phone:d,countryCode:p});case 9:return v=e.sent,f(v),e.abrupt("return",gn(qi)({data:v.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:t}));case 12:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Qi=Cn(Gi,Ki,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),zi=u.smartIdSignature,Wi=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.countryCode,u=e.language,d=e.waitForChallengeCode,l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:d},cancelToken:o})},Zi=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},Ji=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.onTryComplete,u=e.setOnRefreshByUser,d=xn({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(e){c({data:e&&e.result&&e.result.data||{}})},fn:Zi,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]});return new Promise((function(e,t){d.start({setOnRefreshByUser:u}).then(e).catch(t)}))},Yi=function(e){var t=e.country,n=e.cancelToken,r=e.apiEndpoints,i=e.apiClient,o=e.idcode,a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:t,idcode:o},cancelToken:n})},Xi=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.idcode,p=e.countryCode,f=e.started,g=e.action,h=e.redirect,y=e.onTryComplete,m=e.waitForChallengeCode,v=void 0===m||m,I=e.setOnRefreshByUser;return cn().mark((function e(){var m,S,T;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m=l(s.SIGNATURE,zi,p),"cscApiAuthorizeCredential"!==g){e.next=6;break}return e.next=4,gn(Yi)({country:p,idcode:d,cancelToken:i,apiEndpoints:o,apiClient:a});case 4:return S=e.sent,e.abrupt("return",gn(h,{shouldFormatResult:!1})(S));case 6:return c.dispatch({message:"".concat(m.actionType,": signing started")}),e.next=9,gn(Wi)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,countryCode:p,contractId:r,waitForChallengeCode:v});case 9:return T=e.sent,f(T),e.abrupt("return",gn(Ji)({data:T.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t,onTryComplete:y,setOnRefreshByUser:I}));case 12:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),$i=Cn(zi,Xi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),eo=u.evroTrustSignature,to=function(e){var t=e.country,n=e.phone,r=e.email,i=e.idcode,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"evrotrust-signature",country:t,phone:n,email:r,idcode:i},cancelToken:o})},no=function(e){var t=e.contractId,n=e.idcode,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.countryCode,u=e.language,d=e.email,l=e.phone,p=e.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,idcode:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},ro=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},io=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.setOnRefreshByUser,u=e.logger,d=xn({pollInterval:2e3,fn:ro,fnTimeoutMs:15e3,logger:u,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]});return new Promise((function(e,t){d.start({setOnRefreshByUser:c}).then(e).catch(t)}))},oo=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.idcode,p=e.phone,f=e.email,g=e.countryCode,h=e.started,y=e.action,m=e.redirect,v=e.setOnRefreshByUser,I=e.logger;return cn().mark((function e(){var S,T,E;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S=l(s.SIGNATURE,eo,g),c.dispatch({message:"".concat(S.actionType,": signing started")}),I.info("".concat(S.actionType,": signing started")),"cscApiAuthorizeCredential"!==y){e.next=10;break}return I.info("".concat(S.actionType,": cscApiAuthorizeCredential called")),e.next=7,gn(to)({country:g,idcode:d,phone:p,email:f,cancelToken:i,apiEndpoints:o,apiClient:a});case 7:return T=e.sent,I.info("".concat(S.actionType,": authorizationResult"),T),e.abrupt("return",gn(m,{shouldFormatResult:!1})(T));case 10:return e.next=12,gn(no)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,phone:p,email:f,countryCode:g,contractId:r,actionType:S.actionType});case 12:return E=e.sent,I.info("".concat(S.actionType,": signing start result"),E),h(E),e.abrupt("return",gn(io)({data:E.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t,setOnRefreshByUser:v,logger:I}));case 16:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),ao=Cn(eo,oo,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),so=u.otpSignature,co=function(){var e=an((function(e){var t=e.language,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.actionType;return cn().mark((function e(){var c;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=o.inCurrentMode.startSigning(),e.abrupt("return",a.post({url:c,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:t},cancelToken:i}));case 2:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),uo=function(e){var t=e.startSigningResult,n=e.confirmationCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,i){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,i(e)})),n({data:t.data},e,i)}))},lo=function(e){var t=e.apiClient,n=e.apiEndpoints,r=e.language,i=e.cancelToken,o=e.docId,a=e.clientId,s=e.emailToken,c=e.smsToken,u=e.handwrittenSignatureData,d=e.handwrittenSignatureDataUrl;return t.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},po=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.language,u=e.countryCode,d=e.emailToken,p=e.smsToken,f=e.handwrittenSignatureData,g=e.handwrittenSignatureDataUrl,h=e.started,y=e.confirmationCodeRequest,m=e.setOnCancelByUser;return cn().mark((function e(){var v,I,S;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=l(s.SIGNATURE,so,u),console.log(v),a.dispatch({message:"".concat(v.actionType,": signing started")}),p||d){e.next=13;break}return e.next=6,gn(co)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,actionType:v.actionType});case 6:return I=e.sent,h(I),e.next=10,gn(uo,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:m});case 10:S=e.sent,p=S.smsToken,d=S.emailToken;case 13:return e.abrupt("return",gn(lo)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:g}));case 14:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),fo=Cn(so,po,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),go={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(e){return[null,!0,!1].includes(e)}}},ho=function(e){var t=e.certificate,n=e.country,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.actionType,s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},yo=function(e){var t=e.moduleName,n=e.createModuleCreator,r=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.confirmedBySigner,d=e.country,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u,country:d},cancelToken:i})},i=function(){var e=an((function(e){var n=e.clientId,i=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,f=e.countryCode,g=e.redirect,h=e.confirmedBySigner,y=e.action;return cn().mark((function e(){var m,v,I;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m=l(s.SIGNATURE,t,f),"cscApiAuthorizeCredential"!==y){e.next=6;break}return e.next=4,gn(ho)({country:f,cancelToken:a,apiEndpoints:c,apiClient:u,actionType:m.actionType});case 4:return v=e.sent,e.abrupt("return",gn(g,{shouldFormatResult:!1})(v));case 6:return d.dispatch({message:"".concat(m.actionType,": signing started")}),e.next=9,gn(r)({contractId:o,clientId:n,docId:i,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:m.actionType,confirmedBySigner:h,country:f});case 9:return I=e.sent,e.abrupt("return",gn(g,{shouldFormatResult:!1})(I));case 11:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}();return n(t,i,go)},mo=yo({moduleName:u.eParakstsMobileSignature,createModuleCreator:Cn}),vo=yo({moduleName:u.ftnAdvancedFullSignature,createModuleCreator:Cn}),Io=yo({moduleName:u.ftnSignature,createModuleCreator:Cn}),So=yo({moduleName:u.atHandySignature,createModuleCreator:Cn}),To=u.zealIdSignature,Eo=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.docId;return{data:{redirect_uri:t.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},bo=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.docId,e.next=3,gn(Eo)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Co=Cn(To,bo),Ao=yo({moduleName:u.mojeIdSignature,createModuleCreator:Cn}),_o=yo({moduleName:u.serproIdAdvancedSignature,createModuleCreator:Cn}),wo=yo({moduleName:u.czBankIDSignature,createModuleCreator:Cn}),Ro=yo({moduleName:u.abaDoSignature,createModuleCreator:Cn}),Oo=yo({moduleName:u.googleSignature,createModuleCreator:Cn}),No=yo({moduleName:u.seBankIdSignature,createModuleCreator:Cn}),Do=u.dTrustSignMeSignature,Mo=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Uo=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.username,f=e.redirect;return cn().mark((function e(){var g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=l(s.SIGNATURE,Do,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),e.next=4,gn(Mo)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,actionType:g.actionType});case 4:return h=e.sent,e.abrupt("return",gn(f,{shouldFormatResult:!1})(h));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),ko=Cn(Do,Uo,{username:{type:"string",required:!0}}),xo=u.dTrustSignMeAdvSignature,Lo=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.username,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Bo=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.username,f=e.redirect;return cn().mark((function e(){var g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=l(s.SIGNATURE,xo,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),e.next=4,gn(Lo)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,actionType:g.actionType});case 4:return h=e.sent,e.abrupt("return",gn(f,{shouldFormatResult:!1})(h));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Po=Cn(xo,Bo,{username:{type:"string",required:!0}});function jo(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function Go(e,t){return e&t}function Fo(e,t){return e|t}function Vo(e,t){return e^t}function Ho(e,t){return e&~t}function qo(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Ko(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Qo,zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Wo(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=zo.charAt(n>>6)+zo.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=zo.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=zo.charAt(n>>2)+zo.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Zo(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o=zo.indexOf(e.charAt(t));o<0||(0==r?(n+=jo(o>>2),i=3&o,r=1):1==r?(n+=jo(i<<2|o>>4),i=15&o,r=2):2==r?(n+=jo(i),n+=jo(o>>2),i=3&o,r=3):(n+=jo(i<<2|o>>4),n+=jo(15&o),r=0))}return 1==r&&(n+=jo(i<<2)),n}var Jo,Yo={decode:function(e){var t;if(void 0===Jo){var n="= \f\n\r\t \u2028\u2029";for(Jo=Object.create(null),t=0;t<64;++t)Jo["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(Jo["-"]=62,Jo._=63,t=0;t<n.length;++t)Jo[n.charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=Jo[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Yo.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Yo.decode(e)}},Xo=1e13,$o=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<Xo?t=0:r-=(t=0|r/Xo)*Xo,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=Xo,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(Xo+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Xo+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),ea=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,ta=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function na(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var ra,ia=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?ea:ta).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0==(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new $o(r),c=e+1;c<t;++c)s.mulAdd(256,this.get(c));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),c=a==t-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+na(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return na(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new $o,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof $o)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-40*c)}else r+="."+i.toString();if(r.length>n)return na(r,n);i=new $o,o=0}}return o>0&&(r+=".incomplete"),r},e}(),oa=function(){function e(e,t,n,r,i){if(!(r instanceof aa))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return na(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return na(this.stream.parseStringISO(t,t+n),e);case 30:return na(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof ia?t:new ia(t,0);var r=new ia(n),i=new aa(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return t};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var d=0;d<c.length;++d)if(c[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,c)},e}(),aa=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new $o;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),sa=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ca=(1<<26)/sa[sa.length-1],ua=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=jo(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=jo(n));return i?o:"0"},e.prototype.negate=function(){var t=ga();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ea(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=ga();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new la(t):new pa(t),this.exp(e,n)},e.prototype.clone=function(){var e=ga();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=ga();return this.bitwiseTo(e,Go,t),t},e.prototype.or=function(e){var t=ga();return this.bitwiseTo(e,Fo,t),t},e.prototype.xor=function(e){var t=ga();return this.bitwiseTo(e,Vo,t),t},e.prototype.andNot=function(e){var t=ga();return this.bitwiseTo(e,Ho,t),t},e.prototype.not=function(){for(var e=ga(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=ga();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=ga();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+qo(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Ko(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Fo)},e.prototype.clearBit=function(e){return this.changeBit(e,Ho)},e.prototype.flipBit=function(e){return this.changeBit(e,Vo)},e.prototype.add=function(e){var t=ga();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=ga();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=ga();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=ga();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=ga();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=ga(),n=ga();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=Ta(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new la(t):t.isEven()?new fa(t):new pa(t);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=ga();for(r.sqrTo(a[1],d);s<=u;)a[s]=ga(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=e.t-1,g=!0,h=ga();for(i=Ea(e[f])-1;f>=0;){for(i>=c?l=e[f]>>i-c&u:(l=(e[f]&(1<<i+1)-1)<<c-i,f>0&&(l|=e[f-1]>>this.DB+i-c)),s=n;0==(1&l);)l>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),g)a[l].copyTo(o),g=!1;else{for(;s>1;)r.sqrTo(o,h),r.sqrTo(h,o),s-=2;s>0?r.sqrTo(o,h):(p=o,o=h,h=p),r.mulTo(h,a[l],o)}for(;f>=0&&0==(e[f]&1<<i);)r.sqrTo(o,h),p=o,o=h,h=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=Ta(1),a=Ta(0),s=Ta(0),c=Ta(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(t,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(e.ONE)?e.ZERO:c.compareTo(t)>=0?c.subtract(t):c.signum()<0?(c.addTo(t,c),c.signum()<0?c.add(t):c):c},e.prototype.pow=function(e){return this.exp(e,new da)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=sa[sa.length-1]){for(t=0;t<sa.length;++t)if(n[0]==sa[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<sa.length;){for(var r=sa[t],i=t+1;i<sa.length&&r<ca;)r*=sa[i++];for(r=n.modInt(r);t<i;)if(r%sa[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:Sa(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=ga());var a=ga(),s=this.s,c=t.s,u=this.DB-Ea(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var d=a.t,l=a[d-1];if(0!=l){var p=l*(1<<this.F1)+(d>1?a[d-2]>>this.F2:0),f=this.FV/p,g=(1<<this.F1)/p,h=1<<this.F2,y=r.t,m=y-d,v=null==n?ga():n;for(a.dlShiftTo(m,v),r.compareTo(v)>=0&&(r[r.t++]=1,r.subTo(v,r)),e.ONE.dlShiftTo(d,v),v.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--m>=0;){var I=r[--y]==l?this.DM:Math.floor(r[y]*f+(r[y-1]+h)*g);if((r[y]+=a.am(0,I,r,m,0,d))<I)for(a.dlShiftTo(m,v),r.subTo(v,r);r[y]<--I;)r.subTo(v,r)}null!=n&&(r.drShiftTo(d,n),s!=c&&e.ZERO.subTo(n,n)),r.t=d,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=ga(),i=ga(),o=n.convert(this),a=Ea(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=Ta(n),i=ga(),o=ga(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<t.length;++c){var u=Sa(t,c);u<0?"-"==t.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Fo,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>sa.length&&(t=sa.length);for(var o=ga(),a=0;a<t;++a){o.fromInt(sa[Math.floor(Math.random()*sa.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=ga();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Fo,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&t;s.length=1+(t>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},e}(),da=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),la=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),pa=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=ga();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ua.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=ga();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),fa=function(){function e(e){this.m=e,this.r2=ga(),this.q3=ga(),ua.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=ga();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function ga(){return new ua(null)}function ha(e,t){return new ua(e,t)}var ya="undefined"!=typeof navigator;ya&&"Microsoft Internet Explorer"==navigator.appName?(ua.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var c=32767&this[e],u=this[e++]>>15,d=s*c+u*a;i=((c=a*c+((32767&d)<<15)+n[r]+(1073741823&i))>>>30)+(d>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},ra=30):ya&&"Netscape"!=navigator.appName?(ua.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},ra=26):(ua.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,d=s*c+u*a;i=((c=a*c+((16383&d)<<14)+n[r]+i)>>28)+(d>>14)+s*u,n[r++]=268435455&c}return i},ra=28),ua.prototype.DB=ra,ua.prototype.DM=(1<<ra)-1,ua.prototype.DV=1<<ra,ua.prototype.FV=Math.pow(2,52),ua.prototype.F1=52-ra,ua.prototype.F2=2*ra-52;var ma,va,Ia=[];for(ma="0".charCodeAt(0),va=0;va<=9;++va)Ia[ma++]=va;for(ma="a".charCodeAt(0),va=10;va<36;++va)Ia[ma++]=va;for(ma="A".charCodeAt(0),va=10;va<36;++va)Ia[ma++]=va;function Sa(e,t){var n=Ia[e.charCodeAt(t)];return null==n?-1:n}function Ta(e){var t=ga();return t.fromInt(e),t}function Ea(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}ua.ZERO=Ta(0),ua.ONE=Ta(1);var ba,Ca,Aa=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),_a=null;if(null==_a){_a=[],Ca=0;var wa=void 0;if(window.crypto&&window.crypto.getRandomValues){var Ra=new Uint32Array(256);for(window.crypto.getRandomValues(Ra),wa=0;wa<Ra.length;++wa)_a[Ca++]=255&Ra[wa]}var Oa=0,Na=function(e){if((Oa=Oa||0)>=256||Ca>=256)window.removeEventListener?window.removeEventListener("mousemove",Na,!1):window.detachEvent&&window.detachEvent("onmousemove",Na);else try{var t=e.x+e.y;_a[Ca++]=255&t,Oa+=1}catch(e){}};window.addEventListener?window.addEventListener("mousemove",Na,!1):window.attachEvent&&window.attachEvent("onmousemove",Na)}function Da(){if(null==ba){for(ba=new Aa;Ca<256;){var e=Math.floor(65536*Math.random());_a[Ca++]=255&e}for(ba.init(_a),Ca=0;Ca<_a.length;++Ca)_a[Ca]=0;Ca=0}return ba.next()}var Ma=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Da()},e}(),Ua=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=ha(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new Ma,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new ua(n)}(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*t-o;a++)i="0"+i;return i},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=ha(e,16),this.e=parseInt(t,16),this.d=ha(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=ha(e,16),this.e=parseInt(t,16),this.d=ha(n,16),this.p=ha(r,16),this.q=ha(i,16),this.dmp1=ha(o,16),this.dmq1=ha(a,16),this.coeff=ha(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Ma,r=e>>1;this.e=parseInt(t,16);for(var i=new ua(t,16);;){for(;this.p=new ua(e-r,1,n),0!=this.p.subtract(ua.ONE).gcd(i).compareTo(ua.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ua(r,1,n),0!=this.q.subtract(ua.ONE).gcd(i).compareTo(ua.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(ua.ONE),s=this.q.subtract(ua.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(ua.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=ha(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Ma,i=e>>1;this.e=parseInt(t,16);var o=new ua(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(ua.ONE),r=a.q.subtract(ua.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(ua.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},c=function(){a.q=ga(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(ua.ONE).gcda(o,(function(e){0==e.compareTo(ua.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(c,0)}))}))},u=function(){a.p=ga(),a.p.fromNumberAsync(e-i,1,r,(function(){a.p.subtract(ua.ONE).gcda(o,(function(e){0==e.compareTo(ua.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=function(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return ha("0001"+r+"00"+e,16)}((ka[n]||"")+t(e).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},e.prototype.verify=function(e,t,n){var r=ha(t,16),i=this.doPublic(r);return null==i?null:function(e){for(var t in ka)if(ka.hasOwnProperty(t)){var n=ka[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}(i.toString(16).replace(/^1f+00/,""))==n(e).toString()},e}(),ka={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},xa={};xa.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}o(e.prototype,n)}}};var La={};void 0!==La.asn1&&La.asn1||(La.asn1={}),La.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new ua(r,16).xor(e).add(ua.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=La.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,d=t.DERNumericString,l=t.DERPrintableString,p=t.DERTeletexString,f=t.DERIA5String,g=t.DERUTCTime,h=t.DERGeneralizedTime,y=t.DERSequence,m=t.DERSet,v=t.DERTaggedObject,I=t.ASN1Util.newObject,S=Object.keys(e);if(1!=S.length)throw"key of param shall be only one.";var T=S[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":"))throw"undefined key: "+T;if("bool"==T)return new n(e[T]);if("int"==T)return new r(e[T]);if("bitstr"==T)return new i(e[T]);if("octstr"==T)return new o(e[T]);if("null"==T)return new a(e[T]);if("oid"==T)return new s(e[T]);if("enum"==T)return new c(e[T]);if("utf8str"==T)return new u(e[T]);if("numstr"==T)return new d(e[T]);if("prnstr"==T)return new l(e[T]);if("telstr"==T)return new p(e[T]);if("ia5str"==T)return new f(e[T]);if("utctime"==T)return new g(e[T]);if("gentime"==T)return new h(e[T]);if("seq"==T){for(var E=e[T],b=[],C=0;C<E.length;C++){var A=I(E[C]);b.push(A)}return new y({array:b})}if("set"==T){for(E=e[T],b=[],C=0;C<E.length;C++)A=I(E[C]),b.push(A);return new m({array:b})}if("tag"==T){var _=e[T];if("[object Array]"===Object.prototype.toString.call(_)&&3==_.length){var w=I(_[2]);return new v({tag:_[0],explicit:_[1],obj:w})}var R={};if(void 0!==_.explicit&&(R.explicit=_.explicit),void 0!==_.tag&&(R.tag=_.tag),void 0===_.obj)throw"obj shall be specified for 'tag'.";return R.obj=I(_.obj),new v(R)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},La.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);r+=o.substr(1,7),"0"==o.substr(0,1)&&(t=t+"."+new ua(r,2).toString(10),r="")}return t},La.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ua(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},La.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},La.asn1.DERAbstractString=function(e){La.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},xa.lang.extend(La.asn1.DERAbstractString,La.asn1.ASN1Object),La.asn1.DERAbstractTime=function(e){La.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},xa.lang.extend(La.asn1.DERAbstractTime,La.asn1.ASN1Object),La.asn1.DERAbstractStructured=function(e){La.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},xa.lang.extend(La.asn1.DERAbstractStructured,La.asn1.ASN1Object),La.asn1.DERBoolean=function(){La.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},xa.lang.extend(La.asn1.DERBoolean,La.asn1.ASN1Object),La.asn1.DERInteger=function(e){La.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=La.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ua(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},xa.lang.extend(La.asn1.DERInteger,La.asn1.ASN1Object),La.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=La.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}La.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},xa.lang.extend(La.asn1.DERBitString,La.asn1.ASN1Object),La.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=La.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}La.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},xa.lang.extend(La.asn1.DEROctetString,La.asn1.DERAbstractString),La.asn1.DERNull=function(){La.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},xa.lang.extend(La.asn1.DERNull,La.asn1.ASN1Object),La.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ua(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};La.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=La.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},xa.lang.extend(La.asn1.DERObjectIdentifier,La.asn1.ASN1Object),La.asn1.DEREnumerated=function(e){La.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=La.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ua(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},xa.lang.extend(La.asn1.DEREnumerated,La.asn1.ASN1Object),La.asn1.DERUTF8String=function(e){La.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},xa.lang.extend(La.asn1.DERUTF8String,La.asn1.DERAbstractString),La.asn1.DERNumericString=function(e){La.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},xa.lang.extend(La.asn1.DERNumericString,La.asn1.DERAbstractString),La.asn1.DERPrintableString=function(e){La.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},xa.lang.extend(La.asn1.DERPrintableString,La.asn1.DERAbstractString),La.asn1.DERTeletexString=function(e){La.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},xa.lang.extend(La.asn1.DERTeletexString,La.asn1.DERAbstractString),La.asn1.DERIA5String=function(e){La.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},xa.lang.extend(La.asn1.DERIA5String,La.asn1.DERAbstractString),La.asn1.DERUTCTime=function(e){La.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},xa.lang.extend(La.asn1.DERUTCTime,La.asn1.DERAbstractTime),La.asn1.DERGeneralizedTime=function(e){La.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},xa.lang.extend(La.asn1.DERGeneralizedTime,La.asn1.DERAbstractTime),La.asn1.DERSequence=function(e){La.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},xa.lang.extend(La.asn1.DERSequence,La.asn1.DERAbstractStructured),La.asn1.DERSet=function(e){La.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},xa.lang.extend(La.asn1.DERSet,La.asn1.DERAbstractStructured),La.asn1.DERTaggedObject=function(e){La.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},xa.lang.extend(La.asn1.DERTaggedObject,La.asn1.ASN1Object);var Ba,Pa=(Ba=function(e,t){return Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ba(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ba(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ja=function(e){function t(n){var r=e.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Pa(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(e){var t;if(void 0===Qo){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Qo={},t=0;t<16;++t)Qo[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Qo[n.charAt(t)]=t;for(t=0;t<r.length;++t)Qo[r.charAt(t)]=-1}var i=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(-1!=(s=Qo[s])){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(e):Yo.unarmor(e),i=oa.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=ha(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=ha(o,16);var a=i.sub[4].getHexStringValue();this.p=ha(a,16);var s=i.sub[5].getHexStringValue();this.q=ha(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=ha(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=ha(u,16);var d=i.sub[8].getHexStringValue();this.coeff=ha(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];t=l.sub[0].getHexStringValue(),this.n=ha(t,16),n=l.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new La.asn1.DERInteger({int:0}),new La.asn1.DERInteger({bigint:this.n}),new La.asn1.DERInteger({int:this.e}),new La.asn1.DERInteger({bigint:this.d}),new La.asn1.DERInteger({bigint:this.p}),new La.asn1.DERInteger({bigint:this.q}),new La.asn1.DERInteger({bigint:this.dmp1}),new La.asn1.DERInteger({bigint:this.dmq1}),new La.asn1.DERInteger({bigint:this.coeff})]};return new La.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Wo(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new La.asn1.DERSequence({array:[new La.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new La.asn1.DERNull]}),t=new La.asn1.DERSequence({array:[new La.asn1.DERInteger({bigint:this.n}),new La.asn1.DERInteger({int:this.e})]}),n=new La.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new La.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Wo(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return(e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Ua),Ga=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ja(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(Zo(e))}catch(e){return!1}},e.prototype.encrypt=function(e){try{return Wo(this.getKey().encrypt(e))}catch(e){return!1}},e.prototype.sign=function(e,t,n){try{return Wo(this.getKey().sign(e,t,n))}catch(e){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,Zo(t),n)}catch(e){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new ja,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version="3.2.1",e}(),Fa=u.chaveMovelSignature,Va={publicKey:null},Ha=function(){var e=an((function(e){var t=e.apiClient,n=e.apiEndpoints,r=e.cancelToken;return cn().mark((function e(){var i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.inCurrentMode.getChaveMovelPublicKey(),e.next=3,t.get({url:i,withCredentials:!1,cancelToken:r});case 3:if((o=e.sent).data.publicKey){e.next=6;break}return e.abrupt("return",{});case 6:return a=atob(o.data.publicKey),Va.publicKey=a,e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),qa=function(){var e=an((function(e){var t=e.signingPin,n=e.phone,r=e.language,i=e.clientId,o=e.docId,a=e.cancelToken,s=e.apiEndpoints,c=e.apiClient,u=e.actionType;return cn().mark((function e(){var d,l,p;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=s.inCurrentMode.startSigning(),e.next=3,Ha({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=e.sent,(p=new Ga).setPublicKey(l),e.abrupt("return",c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:p.encrypt(t),phone:p.encrypt(n)},cancelToken:a}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Ka=function(e){var t=e.startSigningResult,n=e.confirmationCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,i){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,i(e)})),n({data:t.data},e,i)}))},Qa=function(e){var t=e.token,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.confirmationCode,u=new Ga;return u.setPublicKey(Va.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},za=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.countryCode,u=e.language,d=e.started,p=e.confirmationCodeRequest,f=e.signingPin,g=e.phone,h=e.setOnCancelByUser;return cn().mark((function e(){var y,m,v;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y=l(s.SIGNATURE,Fa,c),a.dispatch({message:"".concat(y.actionType,": signing started")}),e.next=4,gn(qa)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:u,actionType:y.actionType,signingPin:f,phone:g});case 4:return m=e.sent,d(m),e.next=8,gn(Ka,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:p,setOnCancelByUser:h});case 8:return v=e.sent,e.abrupt("return",gn(Qa)({token:m.data.token,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:t,confirmationCode:v}));case 10:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Wa=Cn(Fa,za,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Za=u.eCertChileSignature,Ja=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.idcode,d=e.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,idcode:u,email:d},cancelToken:i})},Ya=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.idcode,f=e.email,g=e.redirect;return cn().mark((function e(){var h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,Za,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=4,gn(Ja)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:p,email:f,actionType:h.actionType});case 4:return y=e.sent,e.abrupt("return",gn(g,{shouldFormatResult:!1})(y));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Xa=Cn(Za,Ya,{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),$a=yo({moduleName:u.mitIdSignature,createModuleCreator:Cn}),es=u.ftnQesSignature,ts=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.phone,d=e.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},ns=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.phone,f=e.email,g=e.redirect;return cn().mark((function e(){var h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,es,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=4,gn(ts)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:p,email:f,actionType:h.actionType});case 4:return y=e.sent,e.abrupt("return",gn(g,{shouldFormatResult:!1})(y));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),rs=Cn(es,ns,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),is=u.noBankIdAdvSignature,os=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.name,d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},as=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.name,f=e.redirect;return cn().mark((function e(){var g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=l(s.SIGNATURE,is,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),e.next=4,gn(os)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,name:p,actionType:g.actionType});case 4:return h=e.sent,e.abrupt("return",gn(f,{shouldFormatResult:!1})(h));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),ss=Cn(is,as,{name:{type:"string",required:!0}}),cs=yo({moduleName:u.noBankIdAdvLightSignature,createModuleCreator:Cn}),us=Pi({moduleName:u.certEuropeUsbTokenSignature,createModuleCreator:Cn}),ds=Pi({moduleName:u.certSignUsbTokenSignature,createModuleCreator:Cn}),ls=yo({moduleName:u.idinSignature,createModuleCreator:Cn}),ps=yo({moduleName:u.verifaiSignature,createModuleCreator:Cn}),fs=u.spidQesSignature,gs=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.phone,d=e.email,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:d},cancelToken:i})},hs=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.phone,f=e.email,g=e.redirect;return cn().mark((function e(){var h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,fs,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=4,gn(gs)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:p,email:f,actionType:h.actionType});case 4:return y=e.sent,e.abrupt("return",gn(g,{shouldFormatResult:!1})(y));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),ys=Cn(fs,hs,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),ms=u.frejaSimpleSignature,vs=function(e){var t=e.idcode,n=e.language,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=e.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Is=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ss=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:Is,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ts=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.idcode,u=e.countryCode,d=e.language,p=e.started;return cn().mark((function e(){var f,g;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=l(s.SIGNATURE,ms,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),e.next=4,gn(vs)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=e.sent,p(g),e.abrupt("return",gn(Ss)({data:g.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:t}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Es=Cn(ms,Ts,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),bs=u.audkenniQesSignature,Cs=function(e){var t=e.idcode,n=e.language,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=e.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},As=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},_s=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},ws=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:As,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Rs=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:_s,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Os=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.idcode,u=e.countryCode,d=e.language,p=e.started;return cn().mark((function e(){var f,g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=l(s.SIGNATURE,bs,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),e.next=4,gn(Cs)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=e.sent,e.next=7,gn(ws)({data:g.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:t});case 7:return h=e.sent,p(h),e.abrupt("return",gn(Rs)({data:h.data,apiClient:o,apiEndpoints:i,language:d,cancelToken:r,docId:n,clientId:t}));case 10:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Ns=Cn(bs,Os,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ds=yo({moduleName:u.yesComQesSignature,createModuleCreator:Cn}),Ms=yo({moduleName:u.simplySignQesSignature,createModuleCreator:Cn}),Us=u.uanatacaQesSignature,ks=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.language,c=e.actionType,u=e.username,d=e.password,l=e.pin,p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u,password:d,pin:l},cancelToken:i})},xs=function(e){var t=e.startSigningResult,n=e.confirmationCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,i){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,i(e)})),n({data:t.data},e,i)}))},Ls=function(e){var t=e.token,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.confirmationCode;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},Bs=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.username,f=e.password,g=e.pin,h=e.confirmationCodeRequest,y=e.setOnCancelByUser,m=e.started;return cn().mark((function e(){var v,I,S;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v=l(s.SIGNATURE,Us,d),c.dispatch({message:"".concat(v.actionType,": signing started")}),e.next=4,gn(ks)({contractId:r,clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:p,password:f,pin:g,actionType:v.actionType});case 4:return I=e.sent,m(I),e.next=8,gn(xs,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:h,setOnCancelByUser:y});case 8:return S=e.sent,e.abrupt("return",gn(Ls)({token:I.data.token,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t,confirmationCode:S}));case 10:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Ps=Cn(Us,Bs,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),js=u.infoCertQesSignature,Gs=function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.language,s=e.actionType,c=e.userId,u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:s,lang:a,user_id:c},cancelToken:r})},Fs=function(e){var t=e.startSigningResult,n=e.otpCodeRequest,r=e.setOnCancelByUser;return new Promise((function(e,i){r((function(){var e=new Error("USER_REFUSED");e.isCancel=!0,i(e)})),n({data:t.data},e,i)}))},Vs=function(e){var t=e.token,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.pin,u=e.otp;return n.post({url:r.inCurrentMode.completeSignatureInfoCert(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,pin:c,otp:u},cancelToken:o})},Hs=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.language,u=e.countryCode,d=e.userId,p=e.otpCodeRequest,f=e.setOnCancelByUser,g=e.started;return cn().mark((function e(){var h,y,m,v,I;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,js,u),a.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=4,gn(Gs)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:c,userId:d,actionType:h.actionType});case 4:return y=e.sent,g(y),e.next=8,gn(Fs,{shouldFormatResult:!1})({startSigningResult:y,otpCodeRequest:p,setOnCancelByUser:f});case 8:return m=e.sent,v=m.otp,I=m.pin,e.abrupt("return",gn(Vs)({token:y.data.token,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:t,otp:v,pin:I}));case 12:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),qs=Cn(js,Hs,{userId:{type:"string",required:!0}}),Ks=yo({moduleName:u.certsignWebapiQesSignature,createModuleCreator:Cn}),Qs=u.halcomQesSignature,zs=function(e){var t=e.certificate,n=e.country,r=e.phone,i=e.email,o=e.username,a=e.cancelToken,s=e.apiEndpoints,c=e.apiClient,u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:t,country:n,phone:r,email:i,username:o},cancelToken:a})},Ws=function(e){var t=e.contractId,n=e.username,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.countryCode,u=e.language,d=e.email,l=e.phone,p=e.actionType,f=a.inCurrentMode.startSigning();return s.post({url:f,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,username:n,email:d,phone:l,country:c,lang:u},cancelToken:o})},Zs=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Js=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:Zs,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ys=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.username,p=e.phone,f=e.email,g=e.countryCode,h=e.started,y=e.action,m=e.redirect;return cn().mark((function e(){var v,I,S;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=l(s.SIGNATURE,Qs,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){e.next=7;break}return e.next=5,gn(zs)({country:g,username:d,phone:p,email:f,cancelToken:i,apiEndpoints:o,apiClient:a});case 5:return I=e.sent,e.abrupt("return",gn(m,{shouldFormatResult:!1})(I));case 7:return e.next=9,gn(Ws)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,username:d,phone:p,email:f,countryCode:g,contractId:r,actionType:v.actionType});case 9:return S=e.sent,h(S),e.abrupt("return",gn(Js)({data:S.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t}));case 12:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Xs=Cn(Qs,Ys,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),$s=u.swissIdQesSignature,ec=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.countryCode,c=e.language,u=e.email,d=e.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:d,email:u,country:s,lang:c},cancelToken:i})},tc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},nc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:tc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},rc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.email,p=e.countryCode,f=e.started;return cn().mark((function e(){var g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=l(s.SIGNATURE,$s,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),e.next=4,gn(ec)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,email:d,countryCode:p,contractId:r,actionType:g.actionType});case 4:return h=e.sent,f(h),e.abrupt("return",gn(nc)({data:h.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),ic=Cn($s,rc,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),oc=u.swissComQesSignature,ac=function(e){var t=e.contractId,n=e.clientId,r=e.docId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,s=e.countryCode,c=e.language,u=e.phone,d=e.actionType,l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:d,phone:u,country:s,lang:c},cancelToken:i})},sc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},cc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:sc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},uc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.phone,p=e.countryCode,f=e.started;return cn().mark((function e(){var g,h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=l(s.SIGNATURE,oc,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),e.next=4,gn(ac)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,phone:d,countryCode:p,contractId:r,actionType:g.actionType});case 4:return h=e.sent,f(h),e.abrupt("return",gn(cc)({data:h.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),dc=Cn(oc,uc,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),lc=yo({moduleName:u.mitIdAdvancedSignature,createModuleCreator:Cn}),pc=yo({moduleName:u.mitIdQesSignature,createModuleCreator:Cn}),fc=yo({moduleName:u.seBankIdAdvancedSignature,createModuleCreator:Cn}),gc=yo({moduleName:u.seBankIdQesSignature,createModuleCreator:Cn}),hc=u.frejaAdvancedSignature,yc=function(e){var t=e.idcode,n=e.language,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=e.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},mc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.idcode,u=e.countryCode,d=e.language,p=e.redirect;return cn().mark((function e(){var f,g;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=l(s.SIGNATURE,hc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),e.next=4,gn(yc)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=e.sent,e.abrupt("return",gn(p,{shouldFormatResult:!1})(g));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),vc=Cn(hc,mc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ic=u.frejaQesSignature,Sc=function(e){var t=e.idcode,n=e.language,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=e.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Tc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.idcode,u=e.countryCode,d=e.language,p=e.redirect;return cn().mark((function e(){var f,g;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=l(s.SIGNATURE,Ic,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),e.next=4,gn(Sc)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:c,language:d,actionType:f.actionType,countryCode:u});case 4:return g=e.sent,e.abrupt("return",gn(p,{shouldFormatResult:!1})(g));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Ec=Cn(Ic,Tc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),bc=yo({moduleName:u.gbOneIdAdvancedSignature,createModuleCreator:Cn}),Cc=u.handwrittenSignature,Ac=function(e){var t=e.apiClient,n=e.apiEndpoints,r=e.language,i=e.cancelToken,o=e.docId,a=e.clientId,s=e.emailToken,c=e.smsToken,u=e.handwrittenSignatureData,d=e.handwrittenSignatureDataUrl;return t.post({url:n.inCurrentMode.completeHandwritten(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:d},cancelToken:i})},_c=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.language,u=e.countryCode,d=e.emailToken,p=e.smsToken,f=e.handwrittenSignatureData,g=e.handwrittenSignatureDataUrl;return cn().mark((function e(){var h;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,Cc,u),console.log(h),a.dispatch({message:"".concat(h.actionType,": signing started")}),e.abrupt("return",gn(Ac)({apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:g}));case 4:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),wc=Cn(Cc,_c,{docId:{type:"string",required:!0}}),Rc=u.haricaQesSignature,Oc=function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.actionType,s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:a},cancelToken:r})},Nc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.username,u=e.password,d=e.otpCode;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,otp_code:d,username:c,password:u},cancelToken:o})},Dc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId,c=e.username,u=e.password,d=e.otpCode;return xn({pollInterval:2e3,fn:Nc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Mc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.language,u=e.username,d=e.password,p=e.otpCode,f=e.countryCode,g=e.started;return cn().mark((function e(){var h,y;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=l(s.SIGNATURE,Rc,f),a.dispatch({message:"".concat(h.actionType,": signing started")}),e.next=4,gn(Oc)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:h.actionType});case 4:return y=e.sent,g(y),e.abrupt("return",gn(Dc)({data:y.data,apiClient:o,apiEndpoints:i,language:c,cancelToken:r,docId:n,clientId:t,username:u,password:d,otpCode:p}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Uc=Cn(Rc,Mc,{countryCode:{type:"string",required:!0},username:{type:"string",required:!0},password:{type:"string",required:!0},otpCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),kc=yo({moduleName:u.veriffAdvancedSignature,createModuleCreator:Cn}),xc=u.ltIdQesSignature,Lc=function(e){var t=e.idcode,n=e.language,r=e.clientId,i=e.docId,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=e.actionType,u=e.countryCode,d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Bc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Pc=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:Bc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},jc=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.idcode,c=e.countryCode,u=e.language,d=e.started;return cn().mark((function e(){var p,f;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p=l(s.SIGNATURE,xc,c),e.next=3,gn(Lc)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,idcode:a,language:u,actionType:p.actionType,countryCode:c});case 3:return f=e.sent,d(f),e.abrupt("return",gn(Pc)({data:f.data,apiClient:o,apiEndpoints:i,language:u,cancelToken:r,docId:n,clientId:t}));case 6:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),Gc=Cn(xc,jc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Fc=Pi({moduleName:u.certStoreQesSignature,createModuleCreator:Cn}),Vc=Pi({moduleName:u.certStoreAdvancedSignature,createModuleCreator:Cn}),Hc=Pi({moduleName:u.certStoreAdvancedUnverifiedSignature,createModuleCreator:Cn}),qc=yo({moduleName:u.buypassQesSignature,createModuleCreator:Cn}),Kc=yo({moduleName:u.intesiFtnAdvSignature,createModuleCreator:Cn}),Qc=yo({moduleName:u.trustAsiaSignature,createModuleCreator:Cn}),zc=yo({moduleName:u.mscTrustGateSignature,createModuleCreator:Cn}),Wc=yo({moduleName:u.gseAdvSignature,createModuleCreator:Cn}),Zc=yo({moduleName:u.certMeQesSignature,createModuleCreator:Cn}),Jc=u.esLleidaAdvSignature,Yc=function(e){var t=e.certificate,n=e.country,r=e.pin,i=e.username,o=e.cancelToken,a=e.apiEndpoints,s=e.apiClient,c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"es-lleida-advanced-signature",certificate:t,country:n,pin:r,username:i},cancelToken:o})},Xc=function(e){var t=e.username,n=e.pin,r=e.language,i=e.clientId,o=e.docId,a=e.cancelToken,s=e.apiEndpoints,c=e.apiClient,u=e.actionType,d=s.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,username:t,pin:n},cancelToken:a})},$c=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureEsLleida(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},eu=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:$c,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},tu=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.monitoringService,c=e.username,u=e.pin,d=e.countryCode,p=e.language,f=e.started,g=e.action,h=e.redirect;return cn().mark((function e(){var y,m,v;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y=l(s.SIGNATURE,Jc,d),a.dispatch({message:"".concat(y.actionType,": signing started")}),"cscApiAuthorizeCredential"!==g){e.next=7;break}return e.next=5,gn(Yc)({country:d,username:c,pin:u,cancelToken:r,apiEndpoints:i,apiClient:o});case 5:return m=e.sent,e.abrupt("return",gn(h,{shouldFormatResult:!1})(m));case 7:return e.next=9,gn(Xc)({clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:p,username:c,pin:u,countryCode:d,actionType:y.actionType});case 9:return v=e.sent,f(v),e.abrupt("return",gn(eu)({data:v.data,apiClient:o,apiEndpoints:i,language:p,cancelToken:r,docId:n,clientId:t}));case 12:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),nu=Cn(Jc,tu,{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),ru=yo({moduleName:u.seBankIdAdvancedHashSignature,createModuleCreator:Cn}),iu=yo({moduleName:u.dkMitIdAdvancedHashSignature,createModuleCreator:Cn}),ou=yo({moduleName:u.noBankIdAdvancedHashSignature,createModuleCreator:Cn}),au=yo({moduleName:u.itSpidQualifiedHashSignature,createModuleCreator:Cn}),su=yo({moduleName:u.adacomQesSignature,createModuleCreator:Cn}),cu=yo({moduleName:u.adacomOneShotQesSignature,createModuleCreator:Cn}),uu=u.diiaQesSignature,du=function(e){var t=e.clientId,n=e.docId,r=e.cancelToken,i=e.apiEndpoints,o=e.apiClient,a=e.countryCode,s=e.language,c=e.actionType,u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:c,country:a,lang:s},cancelToken:r})},lu=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return n.post({url:r.inCurrentMode.completeSignatureDiiaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},pu=function(e){var t=e.data,n=e.apiClient,r=e.apiEndpoints,i=e.language,o=e.cancelToken,a=e.docId,s=e.clientId;return xn({pollInterval:2e3,fn:lu,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},fu=function(){var e=an((function(e){var t=e.clientId,n=e.docId,r=e.contractId,i=e.cancelToken,o=e.apiEndpoints,a=e.apiClient,c=e.monitoringService,u=e.language,d=e.countryCode,p=e.started;return cn().mark((function e(){var f,g;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f=l(s.SIGNATURE,uu,d),c.dispatch({message:"".concat(f.actionType,": signing started")}),e.next=4,gn(du)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,countryCode:d,contractId:r,actionType:f.actionType});case 4:return g=e.sent,p(g),e.abrupt("return",gn(pu)({data:g.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:t}));case 7:case"end":return e.stop()}}),e)}))()}));return function(t){return e.apply(this,arguments)}}(),gu=Cn(uu,fu),hu=yo({moduleName:u.emudhraQesSignature,createModuleCreator:Cn}),yu=yo({moduleName:u.mxPscWorldAdvancedSignature,createModuleCreator:Cn}),mu=Object.freeze({sandbox:"sandbox",production:"production"});function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Su=function(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=function(e,t,n){return function(r){var i=Iu(Iu({},t),r);return n?n(e(i)):e(i)}}(e[i],t,n)})),r},Tu=function(e){var t=e.method,n=e.baseUrl,r=e.clientId,i=e.redirectUri,o=e.state,a=e.language,s=e.country,c="".concat(n,"/oauth/start/").concat(t,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},Eu=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Iu({base:function(e){return e.baseUrl},readCard:function(e){var n=e.countryCode,r=void 0===n?t.countryCode.toLowerCase():n,i=e.clientId,o="eideasy.com";return t.sandbox&&["EE","BE","LT"].includes(r)&&(o="test.eideasy.com"),"https://".concat(r,".").concat(o,"/api/identity/").concat(i,"/read-card")},zealIdIframeUrl:function(e){var t=e.baseUrl,n=e.clientId;return"".concat(t,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"lv-eparaksts-mobile-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"lv-eparaksts-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"mojeid",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"edoapp-eid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"itsme-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"itsme-login-basic",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"itsme-login-standard",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"swedish-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"finnish-ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idin:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"idin-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"idin-customer-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"verifai-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"yoonik-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"pl-mojeid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"mit-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"norwegian-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(e){var t=e.baseUrl,n=e.clientId,r=e.redirectUri,i=e.state,o="".concat(t,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language;return Tu({method:"gb-one-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language,a=e.country;return Tu({method:"veriff-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},lIdentiteNumerique:function(e){var t=e.baseUrl,n=e.state,r=e.clientId,i=e.redirectUri,o=e.language,a=e.country;return Tu({method:"lidentite-numerique-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},integrationIframe:function(e){var t=e.baseUrl,n=e.clientId,r=e.actionType,i=e.docId;return"".concat(t,"/web-element/os-broker/").concat(n,"/").concat(r,"?doc_id=").concat(i)},startSigning:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/start-signing")},completeSignatureIdCard:function(e){var t=e.baseUrl,n=e.actionType;return"".concat(t,"/api/signatures/").concat(n,"/complete")},completeSignatureMobileId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/sk-smart-id/complete")},completeSignatureDiiaQes:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/diia-qes-signature/complete")},completeSignatureEvrotrust:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/evrotrust-signature/complete")},completeSignatureHalcom:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureEsLleida:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/es-lleida-advanced-signature/complete")},completeSignatureHaricaQes:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/harica-qes-signature/complete")},completeSignatureDTrustSignMe:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureDTrustSignMeAdv:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/d-trust-sign-me-adv-signature/complete")},completeSignatureFrejaSimple:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/uanataca-qes-signature/complete")},completeSignatureInfoCert:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/infocert-qes-signature/complete")},completeOtp:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/non-qualified/complete")},completeHandwritten:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/handwritten-simple-signature/complete")},completeSignatureLtIdQes:function(e){var t=e.baseUrl;return"".concat(t,"/api/signatures/lt-id-qes-signature/complete")},eideasyMonitoring:function(e){var t=e.baseUrl;return"".concat(t,"/api/monitor")},startZealIdSignature:function(e){var t=e.baseUrl,n=e.clientId,r=e.docId;return"".concat(t,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(e){var t=e.baseUrl;return"".concat(t,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(e){var t=e.baseUrl;return"".concat(t,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(e){var t=e.baseUrl;return"".concat(t,"/csc/authorize-credential-redirect")}},n),i=(a(e={},mu.production,Iu({},Su(r,{baseUrl:n.base?n.base():"https://id.eideasy.com",state:t.state},t.modifyEndpointUrl))),a(e,mu.sandbox,Iu({},Su(r,{baseUrl:n.base?n.base():"https://test.eideasy.com",state:t.state},t.modifyEndpointUrl))),e);return{get inCurrentMode(){var e=t.sandbox?mu.sandbox:mu.production;return i[e]}}},bu=u.eParakstsSmartCard,Cu=function(e){var t=e.apiEndpoints,n=e.clientId,r=e.redirectUri;return{data:{redirect_uri:t.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Au=function(){var e=an(cn().mark((function e(t){var n,r,i,o,a;return cn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.redirect,r=t.apiEndpoints,i=t.clientId,o=t.redirectUri,e.next=3,gn(Cu)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=e.sent,e.abrupt("return",gn(n,{shouldFormatResult:!1})(a));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_u=Cn(bu,Au),wu=yo({moduleName:u.itsmeQesSignature,createModuleCreator:Cn}),Ru=yo({moduleName:u.frIdentAdvancedSignature,createModuleCreator:Cn}),Ou=function(){var e=null;function t(t){if(e&&(!t.data||"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender)&&e.message.operation===t.data.operation)if(!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message)"OK"===t.data.status?e.resolve(t.data):e.reject(t.data);else{e.reject({isCancel:!0})}}return window.addEventListener("message",t,!1),Object.freeze({send:function(t){var n=t.iframe,r=t.message,i=t.cancelToken;e&&e.reject(new Error("Operation cancelled by new operation"));var o={message:r};e=o,o.promise=new Promise((function(e,t){o.resolve=e,o.reject=t,i&&i.promise.then((function(){var e=new Error("Operation cancelled by user");e.isCancel=!0,t(e)}))}));var a=new URL(n.src);return n.contentWindow.postMessage(r,a.origin),o.promise},clearPendingMessage:function(){e=null},destroy:function(){window.removeEventListener("message",t,!1)}})},Nu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ft({rawSettings:e,schema:Ht}),n=nn({currentLanguage:"en"}),r=Eu({countryCode:t.countryCode,sandbox:t.sandbox,modifyEndpointUrl:t.modifyEndpointUrl,state:t.oauthParamState},t.apiEndpoints),i=rn({clientId:t.clientId,remoteMonitoringEnabled:t.remoteMonitoringEnabled,apiEndpoints:r}),o=kn({instanceId:Math.floor(1e5+9e5*Math.random()),consoleLogLevel:t.consoleLogLevel}),a=window.eideasyIframeMessenger;return a||(a=Ou(),window.eideasyIframeMessenger=a),jt({settings:t,i18n:n,monitoringService:i,apiEndpoints:r,iframeMessenger:a,logger:o,identificationModules:[On,Gn,Qn,Yn,tr,_u,ar,lr,hr,Ir,br,wr,Dr,xr,jr,Hr,zr,Yr,ti,oi,ui,fi,mi,Ti,Ai,Oi,Ui],signingModules:[ji,Qi,$i,ao,fo,mo,vo,Io,rs,So,Co,Ao,_o,wo,Ro,Oo,No,ko,Po,Wa,Xa,$a,ss,cs,us,ds,ls,ps,ys,Es,Ns,Ds,Ms,Ps,qs,Ks,Xs,ic,dc,lc,pc,fc,gc,vc,Ec,wu,Ru,bc,wc,Uc,kc,Gc,Fc,Vc,Hc,qc,Kc,ru,iu,ou,au,Qc,zc,Wc,Zc,nu,su,cu,gu,hu,yu]})},Du=Nu}(),o}()}));
|