@eid-easy/eideasy-browser-client 2.107.0 → 2.107.1
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 +1 -6
- package/CHANGELOG.md +4 -0
- 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,N,O,D,M){var U,k=1&n,x=2&n,L=4&n;if(N&&(U=D?N(e,O,D,M):N(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 j=g(e),P=j==_||"[object GeneratorFunction]"==j;if(I(e))return c(e,k);if(j==w||j==A||P&&!D){if(U=x||P?{}:m(e),!k)return x?l(e,s(U,e)):d(e,a(U,e))}else{if(!R[j])return D?e:{};U=y(e,j,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,N,r,e,M))})):S(e)&&e.forEach((function(r,i){U.set(i,t(r,n,N,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,N,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),N=!w&&!R&&h(b);A=b,w||R||N?u(E)?A=E:d(E)?A=a(E):R?(_=!1,A=i(b,!0)):N?(_=!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(N([])));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 N(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:O}}function O(){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=N,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:N(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 du},default:function(){return lu},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",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",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"},u={idCard:"idCard",mobileId:"mobileId",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",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature"},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.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","LU","NL","DK","FI","FR","IR","IT","NO","PT","SE","ES","GB"]},{actionType:c.ITSME_LOGIN_BASIC,handlingModule:u.itsmeBasic,supportedCountries:["BE","LU","NL","DK","FI","FR","IR","IT","NO","PT","SE","ES","GB"]},{actionType:c.ITSME_LOGIN_STANDARD,handlingModule:u.itsmeStandard,supportedCountries:["BE","LU","NL","DK","FI","FR","IR","IT","NO","PT","SE","ES","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","LU","NL","DK","FI","FR","IR","IT","NO","PT","SE","ES","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.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"]}]),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)},N=I("Date"),O=I("File"),D=I("Blob"),M=I("FileList"),U=I("URLSearchParams"),[k,x,L,B]=["ReadableStream","Request","Response","Headers"].map(I);function j(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 P(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=(q="undefined"!=typeof Uint8Array&&y(Uint8Array),t=>q&&t instanceof q);var q;const H=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={};j(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:N,isFile:O,isBlob:D,isRegExp:Q,isFunction:A,isStream:t=>w(t)&&A(t.pipe),isURLSearchParams:U,isTypedArray:V,isFileList:M,forEach:j,merge:function t(){const{caseless:e}=F(this)&&this||{},n={},r=(r,i)=>{const o=e&&P(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]&&j(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(j(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:H,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:P,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 j(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},Nt=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 Ot={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(Nt(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||Ot.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=>{Ot.headers[t]={}}));var Dt=Ot;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 jt=Bt;function Pt(t,e){const n=this||Dt,r=e||n,i=jt.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 qt(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 Ht=(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 jt?{...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=jt.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=jt.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=jt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());qt((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]=Ht(f,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Ht(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,Ht(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,Ht(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)=>{qt(e,n,{data:m,headers:jt.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=jt.from(t.headers),t.data=Pt.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=Pt.call(t,t.transformResponse,e),e.headers=jt.from(e.headers),e}),(function(e){return Gt(e)||(ye(t),e&&e.response&&(e.response.data=Pt.call(t,t.transformResponse,e.response),e.response.headers=jt.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.8] 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=jt.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.8",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=jt,Re.formToJSON=t=>Nt(it.isHTMLForm(t)?new FormData(t):t),Re.getAdapter=he,Re.HttpStatusCode=we,Re.default=Re;var Ne=Re,Oe=Ne.CancelToken,De=Ne.isCancel;Ne.Cancel,Ne.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 Ne(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:Oe})};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 je(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 Pe=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=je({},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:je({},y),signature:je({},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"}},qe=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."}'),He=i.t(qe,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:He,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(){}},v=function(t){m.onCancelByUser=t},I=function(){h.cancel()},S=function(){m.onCancelByUser(),I()},T=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:I,setOnCancelByUser:v,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 T().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:S})}})}};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}}),Nn=function(){var t=on((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return sn().mark((function t(){var i,o;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=on(sn().mark((function t(a,s){var c,u;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:c=t.sent,u=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),c=void 0,u=t.t0;case 12:if(!n({result:c,attempts:i,error:u})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:c,error:u}));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(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),On=Nn;function Dn(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 Mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Un=u.smartId,kn=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,Un);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,Un);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},g=function(t){var e=1e5/t.pollInterval,n=0;return On({fn:function(){return f(Mn(Mn({},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:2e3})},t.next=6,fn(p)(Mn(Mn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=t.sent,r(h),t.next=10,fn(g)({config:e,data:Mn({},h.data),cancelToken:c,pollInterval:a,language:u});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)}}(),xn=bn(Un,kn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ln(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 Bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var jn=u.mobileId,Pn=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,jn,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,jn,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 On({fn:function(){return g(Bn(Bn({},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)(Bn(Bn({},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)}}(),Gn=bn(jn,Pn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Fn=u.eParakstsMobile,Vn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},qn=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(Vn)({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)}}(),Hn=bn(Fn,qn);function Kn(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 Qn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var zn=u.frejaEid,Zn=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,zn);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,zn);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 On({fn:function(){return f(Qn(Qn({},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)(Qn(Qn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=t.sent,r(h),t.next=10,fn(g)({config:e,data:Qn({},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)}}(),Wn=bn(zn,Zn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Jn(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 Yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Xn=u.zealId,$n=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,Xn);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)(Yn(Yn({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,fn(a)(Yn(Yn({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,fn(c)(Yn(Yn({},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)}}(),tr=bn(Xn,$n,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),er=u.mojeId,nr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},rr=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(nr)({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)}}(),ir=bn(er,rr),or=u.edoAppEid,ar=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},sr=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(ar)({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(or,sr),ur=u.finnishTrustNetwork,dr=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})}}},lr=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(dr)({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)}}(),pr=bn(ur,lr),fr=u.atHandy,gr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({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.itsme,vr=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})}}},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.itsmeBasic,Er=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})}}},br=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(Er)({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)}}(),Cr=bn(Tr,br),Ar=u.itsmeStandard,_r=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})}}},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),Nr=u.seBankId,Or=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})}}},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(Or)({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(Nr,Dr),Ur=u.idin,kr=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})}}},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.idinCustomerId,jr=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})}}},Pr=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)}}(),Gr=bn(Br,Pr),Fr=u.verifai,Vr=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})}}},qr=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)}}(),Hr=bn(Fr,qr),Kr=u.yoonik,Qr=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})}}},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.plMojeId,Jr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Yr=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(Jr)({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)}}(),Xr=bn(Wr,Yr),$r=u.mitId,ti=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})}}},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.norwegianBankId,ii=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})}}},oi=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(ii)({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)}}(),ai=bn(ri,oi),si=u.ftn,ci=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})}}},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.gbOneId,pi=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})}}},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.veriff,yi=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})}}},mi=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(yi)({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)}}(),vi=bn(hi,mi),Ii=u.lIdentiteNumerique,Si=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})}}},Ti=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(Si)({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)}}(),Ei=bn(Ii,Ti),bi=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};(bi.prototype=new Error).name="MethodException";var Ci=bi,Ai=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs,s=t.onPoll,c=void 0===s?function(){}:s;i&&(e=i/r);var u=0;return{start:function(){return On({fn:function(){return o.apply(void 0,yn(a))},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=De(t.error),o=t.error&&!t.error.response&&!i;o&&(u+=1);var a,s,d=!1;return a=t.attempts,(!(s=e)||a<s)&&u<3&&(d=o||"RUNNING"===r),d},interval:r})}}},_i={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},wi=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)})}})},Ri=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 Ci({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 Ai({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,N,O,D,M,U;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=wi({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,N=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:O=t.sent,N=O.data.certificate;case 14:if("cscApiAuthorizeCredential"!==E){t.next=19;break}return t.next=17,fn(p)({certificate:N,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:N,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,_i)},Ni=Ri({moduleName:u.idCardSignature,createModuleCreator:bn}),Oi=u.mobileIdSignature,Di=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})},Mi=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})},Ui=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})},ki=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 Ai({pollInterval:2e3,maxPollDuration:12e4,fn:Ui,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},xi=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(Di)({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,Oi,p),a.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(Mi)({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(ki)({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)}}(),Li=bn(Oi,xi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Bi=u.smartIdSignature,ji=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})},Pi=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})},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,c=t.onTryComplete;return Ai({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Pi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Fi=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})},Vi=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;return sn().mark((function t(){var m,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=l(s.SIGNATURE,Bi,p),"cscApiAuthorizeCredential"!==g){t.next=6;break}return t.next=4,fn(Fi)({country:p,idcode:d,cancelToken:i,apiEndpoints:o,apiClient:a});case 4:return I=t.sent,t.abrupt("return",fn(h,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(ji)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,countryCode:p,contractId:r,waitForChallengeCode:v});case 9:return S=t.sent,f(S),t.abrupt("return",fn(Gi)({data:S.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),qi=bn(Bi,Vi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Hi=u.evroTrustSignature,Ki=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})},Qi=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})},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;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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;return Ai({pollInterval:2e3,fn:zi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},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.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,Hi,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(Ki)({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(Qi)({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(Zi)({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)}}(),Ji=bn(Hi,Wi,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Yi=u.otpSignature,Xi=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)}}(),$i=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)}))},to=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})},eo=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,Yi,u),console.log(v),a.dispatch({message:"".concat(v.actionType,": signing started")}),p||d){t.next=13;break}return t.next=6,fn(Xi)({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($i,{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(to)({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)}}(),no=bn(Yi,eo,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),ro={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},io=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})},oo=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(io)({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,ro)},ao=oo({moduleName:u.eParakstsMobileSignature,createModuleCreator:bn}),so=oo({moduleName:u.ftnAdvancedFullSignature,createModuleCreator:bn}),co=oo({moduleName:u.ftnSignature,createModuleCreator:bn}),uo=oo({moduleName:u.atHandySignature,createModuleCreator:bn}),lo=u.zealIdSignature,po=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},fo=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(po)({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)}}(),go=bn(lo,fo),ho=oo({moduleName:u.mojeIdSignature,createModuleCreator:bn}),yo=oo({moduleName:u.serproIdAdvancedSignature,createModuleCreator:bn}),mo=oo({moduleName:u.czBankIDSignature,createModuleCreator:bn}),vo=oo({moduleName:u.abaDoSignature,createModuleCreator:bn}),Io=oo({moduleName:u.googleSignature,createModuleCreator:bn}),So=oo({moduleName:u.seBankIdSignature,createModuleCreator:bn}),To=u.dTrustSignMeSignature,Eo=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})},bo=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,To,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Eo)({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)}}(),Co=bn(To,bo,{username:{type:"string",required:!0}}),Ao=u.dTrustSignMeAdvSignature,_o=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})},wo=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,Ao,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(_o)({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)}}(),Ro=bn(Ao,wo,{username:{type:"string",required:!0}});function No(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Oo(t,e){return t&e}function Do(t,e){return t|e}function Mo(t,e){return t^e}function Uo(t,e){return t&~e}function ko(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 xo(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Lo,Bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function jo(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Bo.charAt(n>>6)+Bo.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Bo.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Bo.charAt(n>>2)+Bo.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Po(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Bo.indexOf(t.charAt(e));o<0||(0==r?(n+=No(o>>2),i=3&o,r=1):1==r?(n+=No(i<<2|o>>4),i=15&o,r=2):2==r?(n+=No(i),n+=No(o>>2),i=3&o,r=3):(n+=No(i<<2|o>>4),n+=No(15&o),r=0))}return 1==r&&(n+=No(i<<2)),n}var Go,Fo={decode:function(t){var e;if(void 0===Go){var n="= \f\n\r\t \u2028\u2029";for(Go=Object.create(null),e=0;e<64;++e)Go["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(Go["-"]=62,Go._=63,e=0;e<n.length;++e)Go[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=Go[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=Fo.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 Fo.decode(t)}},Vo=1e13,qo=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)<Vo?e=0:r-=(e=0|r/Vo)*Vo,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+=Vo,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+=(Vo+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*Vo+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Ho=/^(\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)?)?$/,Ko=/^(\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 Qo(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var zo,Zo=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?Ho:Ko).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 qo(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+Qo(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Qo(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 qo,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 qo)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 Qo(r,n);i=new qo,o=0}}return o>0&&(r+=".incomplete"),r},t}(),Wo=function(){function t(t,e,n,r,i){if(!(r instanceof Jo))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 Qo(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Qo(this.stream.parseStringISO(e,e+n),t);case 30:return Qo(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 Zo?e:new Zo(e,0);var r=new Zo(n),i=new Jo(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}(),Jo=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 qo;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}(),Yo=[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],Xo=(1<<26)/Yo[Yo.length-1],$o=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=No(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+=No(n));return i?o:"0"},t.prototype.negate=function(){var e=ia();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)+pa(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=ia();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 ea(e):new na(e),this.exp(t,n)},t.prototype.clone=function(){var t=ia();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=ia();return this.bitwiseTo(t,Oo,e),e},t.prototype.or=function(t){var e=ia();return this.bitwiseTo(t,Do,e),e},t.prototype.xor=function(t){var e=ia();return this.bitwiseTo(t,Mo,e),e},t.prototype.andNot=function(t){var e=ia();return this.bitwiseTo(t,Uo,e),e},t.prototype.not=function(){for(var t=ia(),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=ia();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=ia();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+ko(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+=xo(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,Do)},t.prototype.clearBit=function(t){return this.changeBit(t,Uo)},t.prototype.flipBit=function(t){return this.changeBit(t,Mo)},t.prototype.add=function(t){var e=ia();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=ia();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=ia();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=ia();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=ia();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=ia(),n=ia();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=la(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ea(e):e.isEven()?new ra(e):new na(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=ia();for(r.sqrTo(a[1],d);s<=u;)a[s]=ia(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,g=!0,h=ia();for(i=pa(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=la(1),a=la(0),s=la(0),c=la(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 ta)},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]<=Yo[Yo.length-1]){for(e=0;e<Yo.length;++e)if(n[0]==Yo[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<Yo.length;){for(var r=Yo[e],i=e+1;i<Yo.length&&r<Xo;)r*=Yo[i++];for(r=n.modInt(r);e<i;)if(r%Yo[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]:da(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=ia());var a=ia(),s=this.s,c=e.s,u=this.DB-pa(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?ia():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=ia(),i=ia(),o=n.convert(this),a=pa(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=la(n),i=ia(),o=ia(),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=da(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),Do,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)>Yo.length&&(e=Yo.length);for(var o=ia(),a=0;a<e;++a){o.fromInt(Yo[Math.floor(Math.random()*Yo.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=ia();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),Do,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}(),ta=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}(),ea=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}(),na=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=ia();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo($o.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=ia();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}(),ra=function(){function t(t){this.m=t,this.r2=ia(),this.q3=ia(),$o.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=ia();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 ia(){return new $o(null)}function oa(t,e){return new $o(t,e)}var aa="undefined"!=typeof navigator;aa&&"Microsoft Internet Explorer"==navigator.appName?($o.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},zo=30):aa&&"Netscape"!=navigator.appName?($o.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},zo=26):($o.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},zo=28),$o.prototype.DB=zo,$o.prototype.DM=(1<<zo)-1,$o.prototype.DV=1<<zo,$o.prototype.FV=Math.pow(2,52),$o.prototype.F1=52-zo,$o.prototype.F2=2*zo-52;var sa,ca,ua=[];for(sa="0".charCodeAt(0),ca=0;ca<=9;++ca)ua[sa++]=ca;for(sa="a".charCodeAt(0),ca=10;ca<36;++ca)ua[sa++]=ca;for(sa="A".charCodeAt(0),ca=10;ca<36;++ca)ua[sa++]=ca;function da(t,e){var n=ua[t.charCodeAt(e)];return null==n?-1:n}function la(t){var e=ia();return e.fromInt(t),e}function pa(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}$o.ZERO=la(0),$o.ONE=la(1);var fa,ga,ha=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}(),ya=null;if(null==ya){ya=[],ga=0;var ma=void 0;if(window.crypto&&window.crypto.getRandomValues){var va=new Uint32Array(256);for(window.crypto.getRandomValues(va),ma=0;ma<va.length;++ma)ya[ga++]=255&va[ma]}var Ia=0,Sa=function(t){if((Ia=Ia||0)>=256||ga>=256)window.removeEventListener?window.removeEventListener("mousemove",Sa,!1):window.detachEvent&&window.detachEvent("onmousemove",Sa);else try{var e=t.x+t.y;ya[ga++]=255&e,Ia+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Sa,!1):window.attachEvent&&window.attachEvent("onmousemove",Sa)}function Ta(){if(null==fa){for(fa=new ha;ga<256;){var t=Math.floor(65536*Math.random());ya[ga++]=255&t}for(fa.init(ya),ga=0;ga<ya.length;++ga)ya[ga]=0;ga=0}return fa.next()}var Ea=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ta()},t}(),ba=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=oa(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 Ea,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 $o(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=oa(t,16),this.e=parseInt(e,16),this.d=oa(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=oa(t,16),this.e=parseInt(e,16),this.d=oa(n,16),this.p=oa(r,16),this.q=oa(i,16),this.dmp1=oa(o,16),this.dmq1=oa(a,16),this.coeff=oa(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Ea,r=t>>1;this.e=parseInt(e,16);for(var i=new $o(e,16);;){for(;this.p=new $o(t-r,1,n),0!=this.p.subtract($o.ONE).gcd(i).compareTo($o.ONE)||!this.p.isProbablePrime(10););for(;this.q=new $o(r,1,n),0!=this.q.subtract($o.ONE).gcd(i).compareTo($o.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($o.ONE),s=this.q.subtract($o.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo($o.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=oa(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 Ea,i=t>>1;this.e=parseInt(e,16);var o=new $o(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($o.ONE),r=a.q.subtract($o.ONE),i=e.multiply(r);0==i.gcd(o).compareTo($o.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=ia(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract($o.ONE).gcda(o,(function(t){0==t.compareTo($o.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=ia(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract($o.ONE).gcda(o,(function(t){0==t.compareTo($o.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 oa("0001"+r+"00"+t,16)}((Ca[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=oa(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ca)if(Ca.hasOwnProperty(e)){var n=Ca[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}(),Ca={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Aa={};Aa.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 _a={};void 0!==_a.asn1&&_a.asn1||(_a.asn1={}),_a.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 $o(r,16).xor(t).add($o.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=_a.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()}},_a.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 $o(r,2).toString(10),r="")}return e},_a.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 $o(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},_a.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""}},_a.asn1.DERAbstractString=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERAbstractString,_a.asn1.ASN1Object),_a.asn1.DERAbstractTime=function(t){_a.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}},Aa.lang.extend(_a.asn1.DERAbstractTime,_a.asn1.ASN1Object),_a.asn1.DERAbstractStructured=function(t){_a.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)},Aa.lang.extend(_a.asn1.DERAbstractStructured,_a.asn1.ASN1Object),_a.asn1.DERBoolean=function(){_a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Aa.lang.extend(_a.asn1.DERBoolean,_a.asn1.ASN1Object),_a.asn1.DERInteger=function(t){_a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new $o(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))},Aa.lang.extend(_a.asn1.DERInteger,_a.asn1.ASN1Object),_a.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_a.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}_a.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))},Aa.lang.extend(_a.asn1.DERBitString,_a.asn1.ASN1Object),_a.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_a.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}_a.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Aa.lang.extend(_a.asn1.DEROctetString,_a.asn1.DERAbstractString),_a.asn1.DERNull=function(){_a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Aa.lang.extend(_a.asn1.DERNull,_a.asn1.ASN1Object),_a.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 $o(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};_a.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=_a.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))},Aa.lang.extend(_a.asn1.DERObjectIdentifier,_a.asn1.ASN1Object),_a.asn1.DEREnumerated=function(t){_a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new $o(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))},Aa.lang.extend(_a.asn1.DEREnumerated,_a.asn1.ASN1Object),_a.asn1.DERUTF8String=function(t){_a.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Aa.lang.extend(_a.asn1.DERUTF8String,_a.asn1.DERAbstractString),_a.asn1.DERNumericString=function(t){_a.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Aa.lang.extend(_a.asn1.DERNumericString,_a.asn1.DERAbstractString),_a.asn1.DERPrintableString=function(t){_a.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Aa.lang.extend(_a.asn1.DERPrintableString,_a.asn1.DERAbstractString),_a.asn1.DERTeletexString=function(t){_a.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Aa.lang.extend(_a.asn1.DERTeletexString,_a.asn1.DERAbstractString),_a.asn1.DERIA5String=function(t){_a.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Aa.lang.extend(_a.asn1.DERIA5String,_a.asn1.DERAbstractString),_a.asn1.DERUTCTime=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERUTCTime,_a.asn1.DERAbstractTime),_a.asn1.DERGeneralizedTime=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERGeneralizedTime,_a.asn1.DERAbstractTime),_a.asn1.DERSequence=function(t){_a.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}},Aa.lang.extend(_a.asn1.DERSequence,_a.asn1.DERAbstractStructured),_a.asn1.DERSet=function(t){_a.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)},Aa.lang.extend(_a.asn1.DERSet,_a.asn1.DERAbstractStructured),_a.asn1.DERTaggedObject=function(t){_a.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)))},Aa.lang.extend(_a.asn1.DERTaggedObject,_a.asn1.ASN1Object);var wa,Ra=(wa=function(t,e){return wa=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])},wa(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}wa(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Na=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 Ra(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===Lo){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Lo={},e=0;e<16;++e)Lo[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Lo[n.charAt(e)]=e;for(e=0;e<r.length;++e)Lo[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=Lo[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):Fo.unarmor(t),i=Wo.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=oa(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=oa(o,16);var a=i.sub[4].getHexStringValue();this.p=oa(a,16);var s=i.sub[5].getHexStringValue();this.q=oa(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=oa(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=oa(u,16);var d=i.sub[8].getHexStringValue();this.coeff=oa(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=oa(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 _a.asn1.DERInteger({int:0}),new _a.asn1.DERInteger({bigint:this.n}),new _a.asn1.DERInteger({int:this.e}),new _a.asn1.DERInteger({bigint:this.d}),new _a.asn1.DERInteger({bigint:this.p}),new _a.asn1.DERInteger({bigint:this.q}),new _a.asn1.DERInteger({bigint:this.dmp1}),new _a.asn1.DERInteger({bigint:this.dmq1}),new _a.asn1.DERInteger({bigint:this.coeff})]};return new _a.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return jo(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new _a.asn1.DERSequence({array:[new _a.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new _a.asn1.DERNull]}),e=new _a.asn1.DERSequence({array:[new _a.asn1.DERInteger({bigint:this.n}),new _a.asn1.DERInteger({int:this.e})]}),n=new _a.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new _a.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return jo(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}(ba),Oa=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 Na(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(Po(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return jo(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return jo(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Po(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Na,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}(),Da=u.chaveMovelSignature,Ma={publicKey:null},Ua=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),Ma.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ka=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,Ua({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Oa).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)}}(),xa=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)}))},La=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 Oa;return u.setPublicKey(Ma.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})},Ba=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,Da,c),a.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,fn(ka)({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(xa,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:p,setOnCancelByUser:h});case 8:return v=t.sent,t.abrupt("return",fn(La)({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)}}(),ja=bn(Da,Ba,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Pa=u.eCertChileSignature,Ga=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})},Fa=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,Pa,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ga)({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)}}(),Va=bn(Pa,Fa,{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),qa=oo({moduleName:u.mitIdSignature,createModuleCreator:bn}),Ha=u.ftnQesSignature,Ka=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})},Qa=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,Ha,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ka)({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)}}(),za=bn(Ha,Qa,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),Za=u.noBankIdAdvSignature,Wa=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})},Ja=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,Za,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Wa)({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)}}(),Ya=bn(Za,Ja,{name:{type:"string",required:!0}}),Xa=oo({moduleName:u.noBankIdAdvLightSignature,createModuleCreator:bn}),$a=Ri({moduleName:u.certEuropeUsbTokenSignature,createModuleCreator:bn}),ts=Ri({moduleName:u.certSignUsbTokenSignature,createModuleCreator:bn}),es=oo({moduleName:u.idinSignature,createModuleCreator:bn}),ns=oo({moduleName:u.verifaiSignature,createModuleCreator:bn}),rs=u.spidQesSignature,is=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})},os=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,rs,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(is)({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)}}(),as=bn(rs,os,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),ss=u.frejaSimpleSignature,cs=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})},us=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})},ds=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 Ai({pollInterval:2e3,fn:us,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ls=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,ss,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(cs)({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(ds)({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)}}(),ps=bn(ss,ls,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),fs=u.audkenniQesSignature,gs=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})},hs=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})},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.completeSignatureAudkenni(),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 Ai({pollInterval:2e3,fn:hs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},vs=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 Ai({pollInterval:2e3,fn:ys,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Is=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,fs,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(gs)({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(ms)({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(vs)({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)}}(),Ss=bn(fs,Is,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ts=oo({moduleName:u.yesComQesSignature,createModuleCreator:bn}),Es=oo({moduleName:u.simplySignQesSignature,createModuleCreator:bn}),bs=u.uanatacaQesSignature,Cs=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})},As=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)}))},_s=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})},ws=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,bs,d),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,fn(Cs)({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(As,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:h,setOnCancelByUser:y});case 8:return S=t.sent,t.abrupt("return",fn(_s)({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)}}(),Rs=bn(bs,ws,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Ns=u.infoCertQesSignature,Os=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})},Ds=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)}))},Ms=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})},Us=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,Ns,u),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Os)({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(Ds,{shouldFormatResult:!1})({startSigningResult:y,otpCodeRequest:p,setOnCancelByUser:f});case 8:return m=t.sent,v=m.otp,I=m.pin,t.abrupt("return",fn(Ms)({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)}}(),ks=bn(Ns,Us,{userId:{type:"string",required:!0}}),xs=oo({moduleName:u.certsignWebapiQesSignature,createModuleCreator:bn}),Ls=u.halcomQesSignature,Bs=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})},js=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})},Ps=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})},Gs=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 Ai({pollInterval:2e3,fn:Ps,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Fs=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,Ls,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(Bs)({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(js)({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(Gs)({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)}}(),Vs=bn(Ls,Fs,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),qs=u.swissIdQesSignature,Hs=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})},Ks=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})},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 Ai({pollInterval:2e3,fn:Ks,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.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,qs,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Hs)({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(Qs)({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)}}(),Zs=bn(qs,zs,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ws=u.swissComQesSignature,Js=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})},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.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},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 Ai({pollInterval:2e3,fn:Ys,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.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,Ws,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Js)({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(Xs)({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)}}(),tc=bn(Ws,$s,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),ec=oo({moduleName:u.mitIdAdvancedSignature,createModuleCreator:bn}),nc=oo({moduleName:u.mitIdQesSignature,createModuleCreator:bn}),rc=oo({moduleName:u.seBankIdAdvancedSignature,createModuleCreator:bn}),ic=oo({moduleName:u.seBankIdQesSignature,createModuleCreator:bn}),oc=u.frejaAdvancedSignature,ac=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})},sc=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,oc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(ac)({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)}}(),cc=bn(oc,sc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),uc=u.frejaQesSignature,dc=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})},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.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,uc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(dc)({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)}}(),pc=bn(uc,lc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),fc=oo({moduleName:u.gbOneIdAdvancedSignature,createModuleCreator:bn}),gc=u.handwrittenSignature,hc=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})},yc=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,gc,u),console.log(h),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.abrupt("return",fn(hc)({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)}}(),mc=bn(gc,yc,{docId:{type:"string",required:!0}}),vc=u.haricaQesSignature,Ic=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})},Sc=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})},Tc=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 Ai({pollInterval:2e3,fn:Sc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Ec=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,vc,f),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ic)({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(Tc)({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)}}(),bc=bn(vc,Ec,{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}}),Cc=oo({moduleName:u.veriffAdvancedSignature,createModuleCreator:bn}),Ac=u.ltIdQesSignature,_c=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})},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;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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;return Ai({pollInterval:2e3,fn:wc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Nc=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,Ac,c),t.next=3,fn(_c)({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(Rc)({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)}}(),Oc=bn(Ac,Nc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Dc=Ri({moduleName:u.certStoreQesSignature,createModuleCreator:bn}),Mc=Ri({moduleName:u.certStoreAdvancedSignature,createModuleCreator:bn}),Uc=oo({moduleName:u.buypassQesSignature,createModuleCreator:bn}),kc=oo({moduleName:u.intesiFtnAdvSignature,createModuleCreator:bn}),xc=oo({moduleName:u.trustAsiaSignature,createModuleCreator:bn}),Lc=oo({moduleName:u.mscTrustGateSignature,createModuleCreator:bn}),Bc=oo({moduleName:u.gseAdvSignature,createModuleCreator:bn}),jc=oo({moduleName:u.certMeQesSignature,createModuleCreator:bn}),Pc=u.esLleidaAdvSignature,Gc=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})},Fc=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})},Vc=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})},qc=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 Ai({pollInterval:2e3,fn:Vc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Hc=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,Pc,d),a.dispatch({message:"".concat(y.actionType,": signing started")}),"cscApiAuthorizeCredential"!==g){t.next=7;break}return t.next=5,fn(Gc)({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(Fc)({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(qc)({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)}}(),Kc=bn(Pc,Hc,{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),Qc=oo({moduleName:u.seBankIdAdvancedHashSignature,createModuleCreator:bn}),zc=oo({moduleName:u.dkMitIdAdvancedHashSignature,createModuleCreator:bn}),Zc=oo({moduleName:u.noBankIdAdvancedHashSignature,createModuleCreator:bn}),Wc=oo({moduleName:u.itSpidQualifiedHashSignature,createModuleCreator:bn}),Jc=oo({moduleName:u.adacomQesSignature,createModuleCreator:bn}),Yc=Object.freeze({sandbox:"sandbox",production:"production"});function Xc(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 $c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xc(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tu=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=$c($c({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},eu=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},nu=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=$c({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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-signature-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")},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={},Yc.production,$c({},tu(r,{baseUrl:n.base?n.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),a(t,Yc.sandbox,$c({},tu(r,{baseUrl:n.base?n.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?Yc.sandbox:Yc.production;return i[t]}}},ru=u.eParakstsSmartCard,iu=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},ou=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(iu)({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)}}(),au=bn(ru,ou),su=oo({moduleName:u.itsmeQesSignature,createModuleCreator:bn}),cu=oo({moduleName:u.frIdentAdvancedSignature,createModuleCreator:bn}),uu=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)}})},du=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Fe({rawSettings:t,schema:Ve}),n=en({currentLanguage:"en"}),r=nu({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=uu(),window.eideasyIframeMessenger=o),Pe({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,iframeMessenger:o,identificationModules:[Rn,xn,Gn,Hn,au,Wn,tr,ir,cr,pr,yr,Sr,Cr,Rr,Mr,Lr,Gr,Hr,Zr,Xr,ni,ai,di,gi,vi,Ei],signingModules:[Ni,Li,qi,Ji,no,ao,so,co,za,uo,go,ho,yo,mo,vo,Io,So,Co,Ro,ja,Va,qa,Ya,Xa,$a,ts,es,ns,as,ps,Ss,Ts,Es,Rs,ks,xs,Vs,Zs,tc,ec,nc,rc,ic,cc,pc,su,cu,fc,mc,bc,Cc,Oc,Dc,Mc,Uc,kc,Qc,zc,Zc,Wc,xc,Lc,Bc,jc,Kc,Jc]})},lu=du}(),o}()}));
|
|
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,N,O,D,M){var U,k=1&n,x=2&n,L=4&n;if(N&&(U=D?N(e,O,D,M):N(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 j=g(e),P=j==_||"[object GeneratorFunction]"==j;if(I(e))return c(e,k);if(j==w||j==A||P&&!D){if(U=x||P?{}:m(e),!k)return x?l(e,s(U,e)):d(e,a(U,e))}else{if(!R[j])return D?e:{};U=y(e,j,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,N,r,e,M))})):S(e)&&e.forEach((function(r,i){U.set(i,t(r,n,N,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,N,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),N=!w&&!R&&h(b);A=b,w||R||N?u(E)?A=E:d(E)?A=a(E):R?(_=!1,A=i(b,!0)):N?(_=!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(N([])));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 N(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:O}}function O(){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=N,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:N(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 du},default:function(){return lu},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",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",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"},u={idCard:"idCard",mobileId:"mobileId",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",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature"},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.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","IR","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_BASIC,handlingModule:u.itsmeBasic,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IR","IT","LU","NO","PT","SE","ES","NL","GB"]},{actionType:c.ITSME_LOGIN_STANDARD,handlingModule:u.itsmeStandard,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IR","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","IR","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.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"]}]),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)},N=I("Date"),O=I("File"),D=I("Blob"),M=I("FileList"),U=I("URLSearchParams"),[k,x,L,B]=["ReadableStream","Request","Response","Headers"].map(I);function j(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 P(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=(q="undefined"!=typeof Uint8Array&&y(Uint8Array),t=>q&&t instanceof q);var q;const H=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={};j(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:N,isFile:O,isBlob:D,isRegExp:Q,isFunction:A,isStream:t=>w(t)&&A(t.pipe),isURLSearchParams:U,isTypedArray:V,isFileList:M,forEach:j,merge:function t(){const{caseless:e}=F(this)&&this||{},n={},r=(r,i)=>{const o=e&&P(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]&&j(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(j(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:H,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:P,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 j(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},Nt=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 Ot={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(Nt(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||Ot.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=>{Ot.headers[t]={}}));var Dt=Ot;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 jt=Bt;function Pt(t,e){const n=this||Dt,r=e||n,i=jt.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 qt(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 Ht=(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 jt?{...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=jt.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=jt.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=jt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());qt((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]=Ht(f,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Ht(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,Ht(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,Ht(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)=>{qt(e,n,{data:m,headers:jt.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=jt.from(t.headers),t.data=Pt.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=Pt.call(t,t.transformResponse,e),e.headers=jt.from(e.headers),e}),(function(e){return Gt(e)||(ye(t),e&&e.response&&(e.response.data=Pt.call(t,t.transformResponse,e.response),e.response.headers=jt.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.8] 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=jt.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.8",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=jt,Re.formToJSON=t=>Nt(it.isHTMLForm(t)?new FormData(t):t),Re.getAdapter=he,Re.HttpStatusCode=we,Re.default=Re;var Ne=Re,Oe=Ne.CancelToken,De=Ne.isCancel;Ne.Cancel,Ne.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 Ne(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:Oe})};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 je(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 Pe=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=je({},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:je({},y),signature:je({},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"}},qe=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."}'),He=i.t(qe,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:He,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(){}},v=function(t){m.onCancelByUser=t},I=function(){h.cancel()},S=function(){m.onCancelByUser(),I()},T=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:I,setOnCancelByUser:v,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 T().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:S})}})}};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}}),Nn=function(){var t=on((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return sn().mark((function t(){var i,o;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=on(sn().mark((function t(a,s){var c,u;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,e();case 4:c=t.sent,u=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),c=void 0,u=t.t0;case 12:if(!n({result:c,attempts:i,error:u})){t.next=14;break}return t.abrupt("return",setTimeout(o,r,a,s));case 14:return t.abrupt("return",a({result:c,error:u}));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(o));case 3:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),On=Nn;function Dn(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 Mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Un=u.smartId,kn=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,Un);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,Un);return d.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},g=function(t){var e=1e5/t.pollInterval,n=0;return On({fn:function(){return f(Mn(Mn({},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:2e3})},t.next=6,fn(p)(Mn(Mn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=t.sent,r(h),t.next=10,fn(g)({config:e,data:Mn({},h.data),cancelToken:c,pollInterval:a,language:u});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)}}(),xn=bn(Un,kn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ln(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 Bn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var jn=u.mobileId,Pn=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,jn,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,jn,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 On({fn:function(){return g(Bn(Bn({},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)(Bn(Bn({},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)}}(),Gn=bn(jn,Pn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Fn=u.eParakstsMobile,Vn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},qn=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(Vn)({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)}}(),Hn=bn(Fn,qn);function Kn(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 Qn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var zn=u.frejaEid,Zn=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,zn);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,zn);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 On({fn:function(){return f(Qn(Qn({},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)(Qn(Qn({},e),{},{cancelToken:c,language:u,idcode:i}));case 6:return h=t.sent,r(h),t.next=10,fn(g)({config:e,data:Qn({},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)}}(),Wn=bn(zn,Zn,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Jn(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 Yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jn(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Xn=u.zealId,$n=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,Xn);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)(Yn(Yn({},e),{},{cancelToken:n}));case 6:return u=t.sent,t.next=9,fn(a)(Yn(Yn({},e),{},{cancelToken:n,iframeUrl:u.data.url}));case 9:return u=t.sent,t.next=12,fn(c)(Yn(Yn({},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)}}(),tr=bn(Xn,$n,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),er=u.mojeId,nr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},rr=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(nr)({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)}}(),ir=bn(er,rr),or=u.edoAppEid,ar=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},sr=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(ar)({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(or,sr),ur=u.finnishTrustNetwork,dr=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})}}},lr=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(dr)({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)}}(),pr=bn(ur,lr),fr=u.atHandy,gr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({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.itsme,vr=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})}}},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.itsmeBasic,Er=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})}}},br=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(Er)({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)}}(),Cr=bn(Tr,br),Ar=u.itsmeStandard,_r=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})}}},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),Nr=u.seBankId,Or=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})}}},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(Or)({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(Nr,Dr),Ur=u.idin,kr=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})}}},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.idinCustomerId,jr=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})}}},Pr=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)}}(),Gr=bn(Br,Pr),Fr=u.verifai,Vr=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})}}},qr=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)}}(),Hr=bn(Fr,qr),Kr=u.yoonik,Qr=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})}}},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.plMojeId,Jr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},Yr=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(Jr)({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)}}(),Xr=bn(Wr,Yr),$r=u.mitId,ti=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})}}},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.norwegianBankId,ii=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})}}},oi=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(ii)({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)}}(),ai=bn(ri,oi),si=u.ftn,ci=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})}}},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.gbOneId,pi=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})}}},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.veriff,yi=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})}}},mi=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(yi)({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)}}(),vi=bn(hi,mi),Ii=u.lIdentiteNumerique,Si=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})}}},Ti=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(Si)({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)}}(),Ei=bn(Ii,Ti),bi=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};(bi.prototype=new Error).name="MethodException";var Ci=bi,Ai=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,i=t.maxPollDuration,o=t.fn,a=t.fnArgs,s=t.onPoll,c=void 0===s?function(){}:s;i&&(e=i/r);var u=0;return{start:function(){return On({fn:function(){return o.apply(void 0,yn(a))},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=De(t.error),o=t.error&&!t.error.response&&!i;o&&(u+=1);var a,s,d=!1;return a=t.attempts,(!(s=e)||a<s)&&u<3&&(d=o||"RUNNING"===r),d},interval:r})}}},_i={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},wi=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)})}})},Ri=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 Ci({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 Ai({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,N,O,D,M,U;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A=wi({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,N=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:O=t.sent,N=O.data.certificate;case 14:if("cscApiAuthorizeCredential"!==E){t.next=19;break}return t.next=17,fn(p)({certificate:N,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:N,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,_i)},Ni=Ri({moduleName:u.idCardSignature,createModuleCreator:bn}),Oi=u.mobileIdSignature,Di=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})},Mi=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})},Ui=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})},ki=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 Ai({pollInterval:2e3,maxPollDuration:12e4,fn:Ui,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},xi=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(Di)({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,Oi,p),a.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(Mi)({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(ki)({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)}}(),Li=bn(Oi,xi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Bi=u.smartIdSignature,ji=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})},Pi=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})},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,c=t.onTryComplete;return Ai({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Pi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Fi=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})},Vi=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;return sn().mark((function t(){var m,I,S;return sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=l(s.SIGNATURE,Bi,p),"cscApiAuthorizeCredential"!==g){t.next=6;break}return t.next=4,fn(Fi)({country:p,idcode:d,cancelToken:i,apiEndpoints:o,apiClient:a});case 4:return I=t.sent,t.abrupt("return",fn(h,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,fn(ji)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:u,idcode:d,countryCode:p,contractId:r,waitForChallengeCode:v});case 9:return S=t.sent,f(S),t.abrupt("return",fn(Gi)({data:S.data,apiClient:a,apiEndpoints:o,language:u,cancelToken:i,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),qi=bn(Bi,Vi,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Hi=u.evroTrustSignature,Ki=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})},Qi=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})},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;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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;return Ai({pollInterval:2e3,fn:zi,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},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.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,Hi,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(Ki)({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(Qi)({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(Zi)({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)}}(),Ji=bn(Hi,Wi,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Yi=u.otpSignature,Xi=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)}}(),$i=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)}))},to=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})},eo=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,Yi,u),console.log(v),a.dispatch({message:"".concat(v.actionType,": signing started")}),p||d){t.next=13;break}return t.next=6,fn(Xi)({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($i,{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(to)({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)}}(),no=bn(Yi,eo,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),ro={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},io=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})},oo=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(io)({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,ro)},ao=oo({moduleName:u.eParakstsMobileSignature,createModuleCreator:bn}),so=oo({moduleName:u.ftnAdvancedFullSignature,createModuleCreator:bn}),co=oo({moduleName:u.ftnSignature,createModuleCreator:bn}),uo=oo({moduleName:u.atHandySignature,createModuleCreator:bn}),lo=u.zealIdSignature,po=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},fo=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(po)({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)}}(),go=bn(lo,fo),ho=oo({moduleName:u.mojeIdSignature,createModuleCreator:bn}),yo=oo({moduleName:u.serproIdAdvancedSignature,createModuleCreator:bn}),mo=oo({moduleName:u.czBankIDSignature,createModuleCreator:bn}),vo=oo({moduleName:u.abaDoSignature,createModuleCreator:bn}),Io=oo({moduleName:u.googleSignature,createModuleCreator:bn}),So=oo({moduleName:u.seBankIdSignature,createModuleCreator:bn}),To=u.dTrustSignMeSignature,Eo=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})},bo=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,To,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Eo)({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)}}(),Co=bn(To,bo,{username:{type:"string",required:!0}}),Ao=u.dTrustSignMeAdvSignature,_o=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})},wo=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,Ao,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(_o)({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)}}(),Ro=bn(Ao,wo,{username:{type:"string",required:!0}});function No(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Oo(t,e){return t&e}function Do(t,e){return t|e}function Mo(t,e){return t^e}function Uo(t,e){return t&~e}function ko(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 xo(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Lo,Bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function jo(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Bo.charAt(n>>6)+Bo.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Bo.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Bo.charAt(n>>2)+Bo.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Po(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Bo.indexOf(t.charAt(e));o<0||(0==r?(n+=No(o>>2),i=3&o,r=1):1==r?(n+=No(i<<2|o>>4),i=15&o,r=2):2==r?(n+=No(i),n+=No(o>>2),i=3&o,r=3):(n+=No(i<<2|o>>4),n+=No(15&o),r=0))}return 1==r&&(n+=No(i<<2)),n}var Go,Fo={decode:function(t){var e;if(void 0===Go){var n="= \f\n\r\t \u2028\u2029";for(Go=Object.create(null),e=0;e<64;++e)Go["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(Go["-"]=62,Go._=63,e=0;e<n.length;++e)Go[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=Go[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=Fo.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 Fo.decode(t)}},Vo=1e13,qo=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)<Vo?e=0:r-=(e=0|r/Vo)*Vo,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+=Vo,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+=(Vo+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*Vo+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Ho=/^(\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)?)?$/,Ko=/^(\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 Qo(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var zo,Zo=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?Ho:Ko).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 qo(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+Qo(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Qo(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 qo,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 qo)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 Qo(r,n);i=new qo,o=0}}return o>0&&(r+=".incomplete"),r},t}(),Wo=function(){function t(t,e,n,r,i){if(!(r instanceof Jo))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 Qo(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Qo(this.stream.parseStringISO(e,e+n),t);case 30:return Qo(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 Zo?e:new Zo(e,0);var r=new Zo(n),i=new Jo(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}(),Jo=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 qo;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}(),Yo=[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],Xo=(1<<26)/Yo[Yo.length-1],$o=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=No(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+=No(n));return i?o:"0"},t.prototype.negate=function(){var e=ia();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)+pa(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=ia();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 ea(e):new na(e),this.exp(t,n)},t.prototype.clone=function(){var t=ia();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=ia();return this.bitwiseTo(t,Oo,e),e},t.prototype.or=function(t){var e=ia();return this.bitwiseTo(t,Do,e),e},t.prototype.xor=function(t){var e=ia();return this.bitwiseTo(t,Mo,e),e},t.prototype.andNot=function(t){var e=ia();return this.bitwiseTo(t,Uo,e),e},t.prototype.not=function(){for(var t=ia(),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=ia();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=ia();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+ko(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+=xo(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,Do)},t.prototype.clearBit=function(t){return this.changeBit(t,Uo)},t.prototype.flipBit=function(t){return this.changeBit(t,Mo)},t.prototype.add=function(t){var e=ia();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=ia();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=ia();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=ia();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=ia();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=ia(),n=ia();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=la(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ea(e):e.isEven()?new ra(e):new na(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=ia();for(r.sqrTo(a[1],d);s<=u;)a[s]=ia(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,g=!0,h=ia();for(i=pa(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=la(1),a=la(0),s=la(0),c=la(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 ta)},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]<=Yo[Yo.length-1]){for(e=0;e<Yo.length;++e)if(n[0]==Yo[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<Yo.length;){for(var r=Yo[e],i=e+1;i<Yo.length&&r<Xo;)r*=Yo[i++];for(r=n.modInt(r);e<i;)if(r%Yo[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]:da(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=ia());var a=ia(),s=this.s,c=e.s,u=this.DB-pa(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?ia():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=ia(),i=ia(),o=n.convert(this),a=pa(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=la(n),i=ia(),o=ia(),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=da(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),Do,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)>Yo.length&&(e=Yo.length);for(var o=ia(),a=0;a<e;++a){o.fromInt(Yo[Math.floor(Math.random()*Yo.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=ia();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),Do,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}(),ta=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}(),ea=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}(),na=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=ia();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo($o.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=ia();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}(),ra=function(){function t(t){this.m=t,this.r2=ia(),this.q3=ia(),$o.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=ia();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 ia(){return new $o(null)}function oa(t,e){return new $o(t,e)}var aa="undefined"!=typeof navigator;aa&&"Microsoft Internet Explorer"==navigator.appName?($o.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},zo=30):aa&&"Netscape"!=navigator.appName?($o.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},zo=26):($o.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},zo=28),$o.prototype.DB=zo,$o.prototype.DM=(1<<zo)-1,$o.prototype.DV=1<<zo,$o.prototype.FV=Math.pow(2,52),$o.prototype.F1=52-zo,$o.prototype.F2=2*zo-52;var sa,ca,ua=[];for(sa="0".charCodeAt(0),ca=0;ca<=9;++ca)ua[sa++]=ca;for(sa="a".charCodeAt(0),ca=10;ca<36;++ca)ua[sa++]=ca;for(sa="A".charCodeAt(0),ca=10;ca<36;++ca)ua[sa++]=ca;function da(t,e){var n=ua[t.charCodeAt(e)];return null==n?-1:n}function la(t){var e=ia();return e.fromInt(t),e}function pa(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}$o.ZERO=la(0),$o.ONE=la(1);var fa,ga,ha=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}(),ya=null;if(null==ya){ya=[],ga=0;var ma=void 0;if(window.crypto&&window.crypto.getRandomValues){var va=new Uint32Array(256);for(window.crypto.getRandomValues(va),ma=0;ma<va.length;++ma)ya[ga++]=255&va[ma]}var Ia=0,Sa=function(t){if((Ia=Ia||0)>=256||ga>=256)window.removeEventListener?window.removeEventListener("mousemove",Sa,!1):window.detachEvent&&window.detachEvent("onmousemove",Sa);else try{var e=t.x+t.y;ya[ga++]=255&e,Ia+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Sa,!1):window.attachEvent&&window.attachEvent("onmousemove",Sa)}function Ta(){if(null==fa){for(fa=new ha;ga<256;){var t=Math.floor(65536*Math.random());ya[ga++]=255&t}for(fa.init(ya),ga=0;ga<ya.length;++ga)ya[ga]=0;ga=0}return fa.next()}var Ea=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ta()},t}(),ba=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=oa(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 Ea,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 $o(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=oa(t,16),this.e=parseInt(e,16),this.d=oa(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=oa(t,16),this.e=parseInt(e,16),this.d=oa(n,16),this.p=oa(r,16),this.q=oa(i,16),this.dmp1=oa(o,16),this.dmq1=oa(a,16),this.coeff=oa(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Ea,r=t>>1;this.e=parseInt(e,16);for(var i=new $o(e,16);;){for(;this.p=new $o(t-r,1,n),0!=this.p.subtract($o.ONE).gcd(i).compareTo($o.ONE)||!this.p.isProbablePrime(10););for(;this.q=new $o(r,1,n),0!=this.q.subtract($o.ONE).gcd(i).compareTo($o.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($o.ONE),s=this.q.subtract($o.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo($o.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=oa(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 Ea,i=t>>1;this.e=parseInt(e,16);var o=new $o(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($o.ONE),r=a.q.subtract($o.ONE),i=e.multiply(r);0==i.gcd(o).compareTo($o.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=ia(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract($o.ONE).gcda(o,(function(t){0==t.compareTo($o.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=ia(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract($o.ONE).gcda(o,(function(t){0==t.compareTo($o.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 oa("0001"+r+"00"+t,16)}((Ca[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=oa(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ca)if(Ca.hasOwnProperty(e)){var n=Ca[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}(),Ca={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Aa={};Aa.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 _a={};void 0!==_a.asn1&&_a.asn1||(_a.asn1={}),_a.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 $o(r,16).xor(t).add($o.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=_a.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()}},_a.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 $o(r,2).toString(10),r="")}return e},_a.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 $o(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},_a.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""}},_a.asn1.DERAbstractString=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERAbstractString,_a.asn1.ASN1Object),_a.asn1.DERAbstractTime=function(t){_a.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}},Aa.lang.extend(_a.asn1.DERAbstractTime,_a.asn1.ASN1Object),_a.asn1.DERAbstractStructured=function(t){_a.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)},Aa.lang.extend(_a.asn1.DERAbstractStructured,_a.asn1.ASN1Object),_a.asn1.DERBoolean=function(){_a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Aa.lang.extend(_a.asn1.DERBoolean,_a.asn1.ASN1Object),_a.asn1.DERInteger=function(t){_a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new $o(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))},Aa.lang.extend(_a.asn1.DERInteger,_a.asn1.ASN1Object),_a.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_a.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}_a.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))},Aa.lang.extend(_a.asn1.DERBitString,_a.asn1.ASN1Object),_a.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_a.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}_a.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Aa.lang.extend(_a.asn1.DEROctetString,_a.asn1.DERAbstractString),_a.asn1.DERNull=function(){_a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Aa.lang.extend(_a.asn1.DERNull,_a.asn1.ASN1Object),_a.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 $o(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};_a.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=_a.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))},Aa.lang.extend(_a.asn1.DERObjectIdentifier,_a.asn1.ASN1Object),_a.asn1.DEREnumerated=function(t){_a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new $o(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))},Aa.lang.extend(_a.asn1.DEREnumerated,_a.asn1.ASN1Object),_a.asn1.DERUTF8String=function(t){_a.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Aa.lang.extend(_a.asn1.DERUTF8String,_a.asn1.DERAbstractString),_a.asn1.DERNumericString=function(t){_a.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Aa.lang.extend(_a.asn1.DERNumericString,_a.asn1.DERAbstractString),_a.asn1.DERPrintableString=function(t){_a.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Aa.lang.extend(_a.asn1.DERPrintableString,_a.asn1.DERAbstractString),_a.asn1.DERTeletexString=function(t){_a.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Aa.lang.extend(_a.asn1.DERTeletexString,_a.asn1.DERAbstractString),_a.asn1.DERIA5String=function(t){_a.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Aa.lang.extend(_a.asn1.DERIA5String,_a.asn1.DERAbstractString),_a.asn1.DERUTCTime=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERUTCTime,_a.asn1.DERAbstractTime),_a.asn1.DERGeneralizedTime=function(t){_a.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))},Aa.lang.extend(_a.asn1.DERGeneralizedTime,_a.asn1.DERAbstractTime),_a.asn1.DERSequence=function(t){_a.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}},Aa.lang.extend(_a.asn1.DERSequence,_a.asn1.DERAbstractStructured),_a.asn1.DERSet=function(t){_a.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)},Aa.lang.extend(_a.asn1.DERSet,_a.asn1.DERAbstractStructured),_a.asn1.DERTaggedObject=function(t){_a.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)))},Aa.lang.extend(_a.asn1.DERTaggedObject,_a.asn1.ASN1Object);var wa,Ra=(wa=function(t,e){return wa=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])},wa(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}wa(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Na=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 Ra(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===Lo){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Lo={},e=0;e<16;++e)Lo[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Lo[n.charAt(e)]=e;for(e=0;e<r.length;++e)Lo[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=Lo[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):Fo.unarmor(t),i=Wo.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=oa(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=oa(o,16);var a=i.sub[4].getHexStringValue();this.p=oa(a,16);var s=i.sub[5].getHexStringValue();this.q=oa(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=oa(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=oa(u,16);var d=i.sub[8].getHexStringValue();this.coeff=oa(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=oa(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 _a.asn1.DERInteger({int:0}),new _a.asn1.DERInteger({bigint:this.n}),new _a.asn1.DERInteger({int:this.e}),new _a.asn1.DERInteger({bigint:this.d}),new _a.asn1.DERInteger({bigint:this.p}),new _a.asn1.DERInteger({bigint:this.q}),new _a.asn1.DERInteger({bigint:this.dmp1}),new _a.asn1.DERInteger({bigint:this.dmq1}),new _a.asn1.DERInteger({bigint:this.coeff})]};return new _a.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return jo(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new _a.asn1.DERSequence({array:[new _a.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new _a.asn1.DERNull]}),e=new _a.asn1.DERSequence({array:[new _a.asn1.DERInteger({bigint:this.n}),new _a.asn1.DERInteger({int:this.e})]}),n=new _a.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new _a.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return jo(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}(ba),Oa=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 Na(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(Po(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return jo(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return jo(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Po(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Na,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}(),Da=u.chaveMovelSignature,Ma={publicKey:null},Ua=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),Ma.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ka=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,Ua({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Oa).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)}}(),xa=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)}))},La=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 Oa;return u.setPublicKey(Ma.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})},Ba=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,Da,c),a.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,fn(ka)({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(xa,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:p,setOnCancelByUser:h});case 8:return v=t.sent,t.abrupt("return",fn(La)({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)}}(),ja=bn(Da,Ba,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Pa=u.eCertChileSignature,Ga=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})},Fa=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,Pa,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ga)({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)}}(),Va=bn(Pa,Fa,{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),qa=oo({moduleName:u.mitIdSignature,createModuleCreator:bn}),Ha=u.ftnQesSignature,Ka=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})},Qa=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,Ha,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ka)({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)}}(),za=bn(Ha,Qa,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),Za=u.noBankIdAdvSignature,Wa=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})},Ja=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,Za,d),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Wa)({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)}}(),Ya=bn(Za,Ja,{name:{type:"string",required:!0}}),Xa=oo({moduleName:u.noBankIdAdvLightSignature,createModuleCreator:bn}),$a=Ri({moduleName:u.certEuropeUsbTokenSignature,createModuleCreator:bn}),ts=Ri({moduleName:u.certSignUsbTokenSignature,createModuleCreator:bn}),es=oo({moduleName:u.idinSignature,createModuleCreator:bn}),ns=oo({moduleName:u.verifaiSignature,createModuleCreator:bn}),rs=u.spidQesSignature,is=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})},os=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,rs,d),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(is)({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)}}(),as=bn(rs,os,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),ss=u.frejaSimpleSignature,cs=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})},us=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})},ds=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 Ai({pollInterval:2e3,fn:us,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ls=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,ss,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(cs)({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(ds)({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)}}(),ps=bn(ss,ls,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),fs=u.audkenniQesSignature,gs=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})},hs=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})},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.completeSignatureAudkenni(),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 Ai({pollInterval:2e3,fn:hs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},vs=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 Ai({pollInterval:2e3,fn:ys,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Is=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,fs,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(gs)({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(ms)({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(vs)({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)}}(),Ss=bn(fs,Is,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ts=oo({moduleName:u.yesComQesSignature,createModuleCreator:bn}),Es=oo({moduleName:u.simplySignQesSignature,createModuleCreator:bn}),bs=u.uanatacaQesSignature,Cs=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})},As=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)}))},_s=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})},ws=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,bs,d),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,fn(Cs)({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(As,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:h,setOnCancelByUser:y});case 8:return S=t.sent,t.abrupt("return",fn(_s)({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)}}(),Rs=bn(bs,ws,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Ns=u.infoCertQesSignature,Os=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})},Ds=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)}))},Ms=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})},Us=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,Ns,u),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Os)({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(Ds,{shouldFormatResult:!1})({startSigningResult:y,otpCodeRequest:p,setOnCancelByUser:f});case 8:return m=t.sent,v=m.otp,I=m.pin,t.abrupt("return",fn(Ms)({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)}}(),ks=bn(Ns,Us,{userId:{type:"string",required:!0}}),xs=oo({moduleName:u.certsignWebapiQesSignature,createModuleCreator:bn}),Ls=u.halcomQesSignature,Bs=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})},js=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})},Ps=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})},Gs=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 Ai({pollInterval:2e3,fn:Ps,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Fs=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,Ls,g),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,fn(Bs)({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(js)({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(Gs)({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)}}(),Vs=bn(Ls,Fs,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),qs=u.swissIdQesSignature,Hs=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})},Ks=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})},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 Ai({pollInterval:2e3,fn:Ks,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.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,qs,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Hs)({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(Qs)({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)}}(),Zs=bn(qs,zs,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ws=u.swissComQesSignature,Js=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})},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.completeSignatureSwissCom(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},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 Ai({pollInterval:2e3,fn:Ys,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.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,Ws,p),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,fn(Js)({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(Xs)({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)}}(),tc=bn(Ws,$s,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),ec=oo({moduleName:u.mitIdAdvancedSignature,createModuleCreator:bn}),nc=oo({moduleName:u.mitIdQesSignature,createModuleCreator:bn}),rc=oo({moduleName:u.seBankIdAdvancedSignature,createModuleCreator:bn}),ic=oo({moduleName:u.seBankIdQesSignature,createModuleCreator:bn}),oc=u.frejaAdvancedSignature,ac=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})},sc=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,oc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(ac)({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)}}(),cc=bn(oc,sc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),uc=u.frejaQesSignature,dc=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})},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.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,uc,u),a.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,fn(dc)({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)}}(),pc=bn(uc,lc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),fc=oo({moduleName:u.gbOneIdAdvancedSignature,createModuleCreator:bn}),gc=u.handwrittenSignature,hc=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})},yc=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,gc,u),console.log(h),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.abrupt("return",fn(hc)({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)}}(),mc=bn(gc,yc,{docId:{type:"string",required:!0}}),vc=u.haricaQesSignature,Ic=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})},Sc=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})},Tc=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 Ai({pollInterval:2e3,fn:Sc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Ec=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,vc,f),a.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,fn(Ic)({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(Tc)({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)}}(),bc=bn(vc,Ec,{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}}),Cc=oo({moduleName:u.veriffAdvancedSignature,createModuleCreator:bn}),Ac=u.ltIdQesSignature,_c=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})},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;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:i,client_id:s},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;return Ai({pollInterval:2e3,fn:wc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Nc=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,Ac,c),t.next=3,fn(_c)({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(Rc)({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)}}(),Oc=bn(Ac,Nc,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Dc=Ri({moduleName:u.certStoreQesSignature,createModuleCreator:bn}),Mc=Ri({moduleName:u.certStoreAdvancedSignature,createModuleCreator:bn}),Uc=oo({moduleName:u.buypassQesSignature,createModuleCreator:bn}),kc=oo({moduleName:u.intesiFtnAdvSignature,createModuleCreator:bn}),xc=oo({moduleName:u.trustAsiaSignature,createModuleCreator:bn}),Lc=oo({moduleName:u.mscTrustGateSignature,createModuleCreator:bn}),Bc=oo({moduleName:u.gseAdvSignature,createModuleCreator:bn}),jc=oo({moduleName:u.certMeQesSignature,createModuleCreator:bn}),Pc=u.esLleidaAdvSignature,Gc=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})},Fc=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})},Vc=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})},qc=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 Ai({pollInterval:2e3,fn:Vc,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Hc=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,Pc,d),a.dispatch({message:"".concat(y.actionType,": signing started")}),"cscApiAuthorizeCredential"!==g){t.next=7;break}return t.next=5,fn(Gc)({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(Fc)({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(qc)({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)}}(),Kc=bn(Pc,Hc,{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),Qc=oo({moduleName:u.seBankIdAdvancedHashSignature,createModuleCreator:bn}),zc=oo({moduleName:u.dkMitIdAdvancedHashSignature,createModuleCreator:bn}),Zc=oo({moduleName:u.noBankIdAdvancedHashSignature,createModuleCreator:bn}),Wc=oo({moduleName:u.itSpidQualifiedHashSignature,createModuleCreator:bn}),Jc=oo({moduleName:u.adacomQesSignature,createModuleCreator:bn}),Yc=Object.freeze({sandbox:"sandbox",production:"production"});function Xc(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 $c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xc(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tu=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=$c($c({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},eu=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},nu=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=$c({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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 eu({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-signature-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")},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={},Yc.production,$c({},tu(r,{baseUrl:n.base?n.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl))),a(t,Yc.sandbox,$c({},tu(r,{baseUrl:n.base?n.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=e.sandbox?Yc.sandbox:Yc.production;return i[t]}}},ru=u.eParakstsSmartCard,iu=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},ou=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(iu)({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)}}(),au=bn(ru,ou),su=oo({moduleName:u.itsmeQesSignature,createModuleCreator:bn}),cu=oo({moduleName:u.frIdentAdvancedSignature,createModuleCreator:bn}),uu=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)}})},du=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Fe({rawSettings:t,schema:Ve}),n=en({currentLanguage:"en"}),r=nu({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=uu(),window.eideasyIframeMessenger=o),Pe({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,iframeMessenger:o,identificationModules:[Rn,xn,Gn,Hn,au,Wn,tr,ir,cr,pr,yr,Sr,Cr,Rr,Mr,Lr,Gr,Hr,Zr,Xr,ni,ai,di,gi,vi,Ei],signingModules:[Ni,Li,qi,Ji,no,ao,so,co,za,uo,go,ho,yo,mo,vo,Io,So,Co,Ro,ja,Va,qa,Ya,Xa,$a,ts,es,ns,as,ps,Ss,Ts,Es,Rs,ks,xs,Vs,Zs,tc,ec,nc,rc,ic,cc,pc,su,cu,fc,mc,bc,Cc,Oc,Dc,Mc,Uc,kc,Qc,zc,Zc,Wc,xc,Lc,Bc,jc,Kc,Jc]})},lu=du}(),o}()}));
|