@eid-easy/eideasy-browser-client 2.78.2 → 2.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,h=f?r(t.length,String):[],g=h.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,g))||h.push(y);return h}},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),h=n(4160),g=n(3824),y=n(9148),v=n(8517),m=n(1469),I=n(4144),E=n(6688),S=n(3218),T=n(2928),b=n(3674),C=n(1704),w="[object Arguments]",A="[object Function]",_="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[A]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,R,N,D,U){var x,M=1&n,k=2&n,j=4&n;if(R&&(x=D?R(e,N,D,U):R(e)),void 0!==x)return x;if(!S(e))return e;var L=m(e);if(L){if(x=g(e),!M)return u(e,x)}else{var P=h(e),B=P==A||"[object GeneratorFunction]"==P;if(I(e))return c(e,M);if(P==_||P==w||B&&!D){if(x=k||B?{}:v(e),!M)return k?l(e,s(x,e)):d(e,a(x,e))}else{if(!O[P])return D?e:{};x=y(e,P,M)}}U||(U=new r);var G=U.get(e);if(G)return G;U.set(e,x),T(e)?e.forEach((function(r){x.add(t(r,n,R,r,e,U))})):E(e)&&e.forEach((function(r,i){x.set(i,t(r,n,R,i,e,U))}));var F=L?void 0:(j?k?f:p:k?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(x,i,t(r,n,R,i,e,U))})),x}},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),h=n(8630),g=n(6719),y=n(6390),v=n(9881);t.exports=function(t,e,n,m,I,E,S){var T=y(t,n),b=y(e,n),C=S.get(b);if(C)r(t,n,C);else{var w=E?E(T,b,n+"",t,e,S):void 0,A=void 0===w;if(A){var _=u(b),O=!_&&l(b),R=!_&&!O&&g(b);w=b,_||O||R?u(T)?w=T:d(T)?w=a(T):O?(A=!1,w=i(b,!0)):R?(A=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=T,c(T)?w=v(T):f(T)&&!p(T)||(w=s(b))):A=!1}A&&(S.set(b,w),I(w,b,m,E,S),S.delete(b)),r(t,n,w)}}},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]",h="[object DataView]",g=u(r),y=u(i),v=u(o),m=u(a),I=u(s),E=c;(r&&E(new r(new ArrayBuffer(1)))!=h||i&&E(new i)!=d||o&&E(o.resolve())!=l||a&&E(new a)!=p||s&&E(new s)!=f)&&(E=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case y:return d;case v:return l;case m:return p;case I:return f}return e}),t.exports=E},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 g?e:g,o=Object.create(i.prototype),s=new O(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 h={};function g(){}function y(){}function v(){}var m={};l(m,c,(function(){return this}));var I=Object.getPrototypeOf,E=I&&I(I(R([])));E&&E!==n&&o.call(E,c)&&(m=E);var S=v.prototype=g.prototype=Object.create(m);function T(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=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===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===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(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,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;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,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return y.prototype=v,a(S,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,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,v):(t.__proto__=v,l(t,d,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},T(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()}))},T(S),l(S,d,"Generator"),l(S,c,(function(){return this})),l(S,"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=R,O.prototype={constructor:O,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(_),!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,h):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),h},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),_(n),h}},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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},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";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var n;i.r(o),i.d(o,{allMethods:function(){return c},createClient:function(){return Us},default:function(){return xs},getMethodByHandlingModule:function(){return u},methodActionTypes:function(){return a},methodTypes:function(){return r},moduleNames:function(){return s}});var r={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={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",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",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",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-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",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-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",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"},s={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",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",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",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature"},c=Object.freeze((e(n={},r.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:s.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LV_EPARAKSTS_ID_LOGIN,handlingModule:s.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:s.smartId,supportedCountries:["EE","LV","LT","BE"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:s.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:a.CZ_MOJEID,handlingModule:s.mojeId,supportedCountries:["CZ"]},{actionType:a.EDOAPP_EID_LOGIN,handlingModule:s.edoAppEid,supportedCountries:["PL"]},{actionType:a.FI_FTN_LOGIN,handlingModule:s.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:s.atHandy,supportedCountries:["AT"]},{actionType:a.ITSME_LOGIN,handlingModule:s.itsme,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:a.SE_BANKID_LOGIN,handlingModule:s.seBankId,supportedCountries:["SE"]},{actionType:a.IDIN_LOGIN,handlingModule:s.idin,supportedCountries:["NL"]},{actionType:a.IDIN_CUSTOMER_ID_LOGIN,handlingModule:s.idinCustomerId,supportedCountries:["NL"]},{actionType:a.VERIFAI_LOGIN,handlingModule:s.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:a.YOONIK_LOGIN,handlingModule:s.yoonik,supportedCountries:["WORLD"]},{actionType:a.PL_MOJEID_LOGIN,handlingModule:s.plMojeId,supportedCountries:["PL"]},{actionType:a.MIT_ID_LOGIN,handlingModule:s.mitId,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.FTN_LOGIN,handlingModule:s.ftn,supportedCountries:["FI"]},{actionType:a.GB_ONE_ID_LOGIN,handlingModule:s.gbOneId,supportedCountries:["GB"]},{actionType:a.VERIFF_LOGIN,handlingModule:s.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"]}]),e(n,r.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["FI","AX"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["BE"]},{actionType:a.HR_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["HR"]},{actionType:a.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:s.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:a.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:s.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:s.smartIdSignature,supportedCountries:["EE","LV","LT","BE"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:s.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","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","LU","NL"]},{actionType:a.OTP_EMAIL,handlingModule:s.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:s.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:s.ftnSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:s.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:s.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:s.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:s.zealIdSignature,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:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:s.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:s.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:s.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","RO","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:a.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:s.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.MIT_ID_SIMPLE_SIGNATURE,handlingModule:s.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:a.IDIN_SIMPLE_SIGNATURE,handlingModule:s.idinSignature,supportedCountries:["NL"]},{actionType:a.SPID_QUALIFIED_SIGNATURE,handlingModule:s.spidQesSignature,supportedCountries:["IT"]},{actionType:a.VERIFAI_SIMPLE_SIGNATURE,handlingModule:s.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:a.FREJA_SIMPLE_SIGNATURE,handlingModule:s.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:a.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:s.audkenniQesSignature,supportedCountries:["IS"]},{actionType:a.YES_COM_QUALIFIED_SIGNATURE,handlingModule:s.yesComQesSignature,supportedCountries:["DE"]},{actionType:a.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:s.simplySignQesSignature,supportedCountries:["PL"]},{actionType:a.UANATACA_QUALIFIED_SIGNATURE,handlingModule:s.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:a.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:s.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:a.HALCOM_QUALIFIED_SIGNATURE,handlingModule:s.halcomQesSignature,supportedCountries:["SI"]},{actionType:a.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:s.swissIdQesSignature,supportedCountries:["CH"]},{actionType:a.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:s.swissComQesSignature,supportedCountries:["CH"]},{actionType:a.DK_MITID_ADVANCED_SIGNATURE,handlingModule:s.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:a.DK_MITID_QES_SIGNATURE,handlingModule:s.mitIdQesSignature,supportedCountries:["DK"]},{actionType:a.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:s.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_BANK_ID_QES_SIGNATURE,handlingModule:s.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["SE"]},{actionType:a.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:s.frIdentAdvancedSignature,supportedCountries:["FR"]},{actionType:a.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:s.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:a.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:s.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:a.HARICA_QES_SIGNATURE,handlingModule:s.haricaQesSignature,supportedCountries:["GR"]},{actionType:a.VERIFF_ADVANCED_SIGNATURE,handlingModule:s.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"]}]),n)),u=function(t,e,n){var r=c[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}))},d=i(2492),l=i.n(d);function p(t,e){return function(){return t.apply(e,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:h}=Object,g=(y=Object.create(null),t=>{const e=f.call(t);return y[e]||(y[e]=e.slice(8,-1).toLowerCase())});var y;const v=t=>(t=t.toLowerCase(),e=>g(e)===t),m=t=>e=>typeof e===t,{isArray:I}=Array,E=m("undefined"),S=v("ArrayBuffer"),T=m("string"),b=m("function"),C=m("number"),w=t=>null!==t&&"object"==typeof t,A=t=>{if("object"!==g(t))return!1;const e=h(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=v("Date"),O=v("File"),R=v("Blob"),N=v("FileList"),D=v("URLSearchParams");function U(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),I(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 x(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 M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=t=>!E(t)&&t!==M,j=(L="undefined"!=typeof Uint8Array&&h(Uint8Array),t=>L&&t instanceof L);var L;const P=v("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G=v("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};U(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},V="abcdefghijklmnopqrstuvwxyz",q="0123456789",H={DIGIT:q,ALPHA:V,ALPHA_DIGIT:V+V.toUpperCase()+q},K=v("AsyncFunction");var Q={isArray:I,isArrayBuffer:S,isBuffer:function(t){return null!==t&&!E(t)&&null!==t.constructor&&!E(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||b(t.append)&&("formdata"===(e=g(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&S(t.buffer),e},isString:T,isNumber:C,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:A,isUndefined:E,isDate:_,isFile:O,isBlob:R,isRegExp:G,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:D,isTypedArray:j,isFileList:N,forEach:U,merge:function t(){const{caseless:e}=k(this)&&this||{},n={},r=(r,i)=>{const o=e&&x(n,i)||i;A(n[o])&&A(r)?n[o]=t(n[o],r):A(r)?n[o]=t({},r):I(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&U(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(U(e,((e,r)=>{n&&b(e)?t[r]=p(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&&h(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:g,kindOfTest:v,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(I(t))return t;let e=t.length;if(!C(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:P,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:t=>{F(t,((e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];b(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 I(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)=>(t=+t,Number.isFinite(t)?t:e),findKey:x,global:M,isContextDefined:k,ALPHABET:H,generateString:(t=16,e=H.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&b(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=I(t)?[]:{};return U(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:K,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch)};function z(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)}Q.inherits(z,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:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Z=z.prototype,W={};["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=>{W[t]={value:t}})),Object.defineProperties(z,W),Object.defineProperty(Z,"isAxiosError",{value:!0}),z.from=(t,e,n,r,i,o)=>{const a=Object.create(Z);return Q.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),z.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var J=z;function Y(t){return Q.isPlainObject(t)||Q.isArray(t)}function $(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,n){return t?t.concat(e).map((function(t,e){return t=$(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const tt=Q.toFlatObject(Q,{},null,(function(t){return/^is[A-Z]/.test(t)}));var et=function(t,e,n){if(!Q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Q.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Q.isDate(t))return t.toISOString();if(!s&&Q.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(t)||Q.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(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Q.isArray(t)&&function(t){return Q.isArray(t)&&!t.some(Y)}(t)||(Q.isFileList(t)||Q.endsWith(n,"[]"))&&(s=Q.toArray(t)))return n=$(n),s.forEach((function(t,r){!Q.isUndefined(t)&&null!==t&&e.append(!0===a?X([n],r,o):null===a?n:n+"[]",c(t))})),!1;return!!Y(t)||(e.append(X(i,n,o),c(t)),!1)}const d=[],l=Object.assign(tt,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!Q.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Q.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Q.forEach(n,(function(n,o){!0===(!(Q.isUndefined(n)||null===n)&&i.call(e,n,Q.isString(o)?o.trim():o,r,l))&&t(n,r?r.concat(o):[o])})),d.pop()}}(t),e};function nt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function rt(t,e){this._pairs=[],t&&et(t,this,e)}const it=rt.prototype;it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,nt)}:nt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot=rt;function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(t,e,n){if(!e)return t;const r=n&&n.encode||at,i=n&&n.serialize;let o;if(o=i?i(e,n):Q.isURLSearchParams(e)?e.toString():new ot(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var ct=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){Q.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},lt=function(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&Q.isArray(r)?r.length:o,s?(Q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Q.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Q.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(Q.isFormData(t)&&Q.isFunction(t.entries)){const n={};return Q.forEachEntry(t,((t,r)=>{e(function(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const pt={transitional:ut,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.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 et(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&Q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(Q.isString(t))try{return(0,JSON.parse)(t),Q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Q.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 J.from(t,J.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:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(t=>{pt.headers[t]={}}));var ft=pt;const ht=Q.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"]),gt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function vt(t){return!1===t||null==t?t:Q.isArray(t)?t.map(vt):String(t)}function mt(t,e,n,r,i){return Q.isFunction(r)?r.call(this,e,n):(i&&(e=n),Q.isString(e)?Q.isString(r)?-1!==e.indexOf(r):Q.isRegExp(r)?r.test(e):void 0:void 0)}class It{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=yt(e);if(!i)throw new Error("header name must be a non-empty string");const o=Q.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=vt(t))}const o=(t,e)=>Q.forEach(t,((t,n)=>i(t,n,e)));return Q.isPlainObject(t)||t instanceof this.constructor?o(t,e):Q.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]&&ht[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=yt(t)){const n=Q.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(Q.isFunction(e))return e.call(this,t,n);if(Q.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=Q.findKey(this,t);return!(!n||void 0===this[n]||e&&!mt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=yt(t)){const i=Q.findKey(n,t);!i||e&&!mt(0,n[i],i,e)||(delete n[i],r=!0)}}return Q.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&&!mt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return Q.forEach(this,((r,i)=>{const o=Q.findKey(n,i);if(o)return e[o]=vt(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]=vt(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Q.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[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(function(t,e){const n=Q.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 Q.isArray(t)?t.forEach(r):r(t),this}}It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(It.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Q.freezeMethods(It);var Et=It;function St(t,e){const n=this||ft,r=e||n,i=Et.from(r.headers);let o=r.data;return Q.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Tt(t){return!(!t||!t.__CANCEL__)}function bt(t,e,n){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,n),this.name="CanceledError"}Q.inherits(bt,J,{__CANCEL__:!0});var Ct=bt,wt=dt.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function At(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}var _t=dt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Q.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Ot(t,e){let n=0;const r=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 i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const u={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:i};u[e?"download":"upload"]=!0,t(u)}}const Rt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=Et.from(t.headers).normalize(),o=t.responseType;let a,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Q.isFormData(r)&&(dt.isStandardBrowserEnv||dt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Q.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const d=At(t.baseURL,t.url);function l(){if(!u)return;const r=Et.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),c()}),(function(t){n(t),c()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),st(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new J("Request aborted",J.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ut;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new J(e,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,u)),u=null},dt.isStandardBrowserEnv){const e=(t.withCredentials||_t(d))&&t.xsrfCookieName&&wt.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Q.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Q.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Ot(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ot(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(n(!e||e.type?new Ct(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);p&&-1===dt.protocols.indexOf(p)?n(new J("Unsupported protocol "+p+":",J.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};Q.forEach(Rt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Nt=t=>`- ${t}`,Dt=t=>Q.isFunction(t)||null===t||!1===t;var Ut=t=>{t=Q.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,!Dt(n)&&(r=Rt[(e=String(n)).toLowerCase()],void 0===r))throw new J(`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(Nt).join("\n"):" "+Nt(t[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function Mt(t){return xt(t),t.headers=Et.from(t.headers),t.data=St.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ut(t.adapter||ft.adapter)(t).then((function(e){return xt(t),e.data=St.call(t,t.transformResponse,e),e.headers=Et.from(e.headers),e}),(function(e){return Tt(e)||(xt(t),e&&e.response&&(e.response.data=St.call(t,t.transformResponse,e.response),e.response.headers=Et.from(e.response.headers))),Promise.reject(e)}))}const kt=t=>t instanceof Et?t.toJSON():t;function jt(t,e){e=e||{};const n={};function r(t,e,n){return Q.isPlainObject(t)&&Q.isPlainObject(e)?Q.merge.call({caseless:n},t,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function i(t,e,n){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!Q.isUndefined(e))return r(void 0,e)}function a(t,e){return Q.isUndefined(e)?Q.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,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)=>i(kt(t),kt(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,a=o(t[r],e[r],r);Q.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Lt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Lt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Lt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new J(r(i," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!Pt[i]&&(Pt[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)}};var Bt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new J("options must be an object",J.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 J("option "+o+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+o,J.ERR_BAD_OPTION)}},validators:Lt};const Gt=Bt.validators;class Ft{constructor(t){this.defaults=t,this.interceptors={request:new ct,response:new ct}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=jt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Bt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),null!=r&&(Q.isFunction(r)?e.paramsSerializer={serialize:r}:Bt.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Q.merge(i.common,i[e.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Et.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=[Mt.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=Mt.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 st(At((t=jt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],(function(t){Ft.prototype[t]=function(e,n){return this.request(jt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Q.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(jt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ft.prototype[t]=e(),Ft.prototype[t+"Form"]=e(!0)}));var Vt=Ft;class qt{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 Ct(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)}static source(){let t;return{token:new qt((function(e){t=e})),cancel:t}}}var Ht=qt;const Kt={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(Kt).forEach((([t,e])=>{Kt[e]=t}));var Qt=Kt;const zt=function t(e){const n=new Vt(e),r=p(Vt.prototype.request,n);return Q.extend(r,Vt.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(jt(e,n))},r}(ft);zt.Axios=Vt,zt.CanceledError=Ct,zt.CancelToken=Ht,zt.isCancel=Tt,zt.VERSION="1.5.1",zt.toFormData=et,zt.AxiosError=J,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Q.isObject(t)&&!0===t.isAxiosError},zt.mergeConfig=jt,zt.AxiosHeaders=Et,zt.formToJSON=t=>lt(Q.isHTMLForm(t)?new FormData(t):t),zt.getAdapter=Ut,zt.HttpStatusCode=Qt,zt.default=zt;var Zt=zt,Wt=Zt.CancelToken,Jt=Zt.isCancel;Zt.Cancel,Zt.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 Yt=function(t){return Zt(t)};function $t(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 Xt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$t(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var te=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=l()(i,n)),i},ee=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 Yt(te(Xt({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 Yt(te(Xt({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:Wt})};function ne(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 re(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ie=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,u=t.apiEndpoints,d=t.monitoringService,l=re({},a);l.apiEndpoints=u,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return c},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ee({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var y={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ee({modifyRequestSettings:l.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:re({},g),signature:re({},y),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function oe(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 ae=function(n){var r=n.rawSettings,i=n.schema,o=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},se={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"}},ce=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."}'),ue=i.t(ce,2),de=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."}'),le=i.t(de,2),pe=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."}'),fe=i.t(pe,2),he=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."}'),ge=i.t(he,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."}'),ve=i.t(ye,2),me=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),Ie={de:ue,en:le,et:fe,lt:ge,lv:ve,ru:i.t(me,2)},Ee=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?Ie: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})},Se=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&Yt({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function Te(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 be(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Te(o,r,i,a,s,"next",t)}function s(t){Te(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ce=i(4687),we=i.n(Ce),Ae=i(361),_e=i.n(Ae)(),Oe=function(t){var e=t;return Jt(t)&&(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},Re=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=_e({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},Ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},De=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=be(we().mark((function e(){var n,i,o=arguments;return we().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=Ne(n))){e.next=6;break}throw Oe(i);case 6:return e.abrupt("return",r?Re(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};class Ue extends Error{name="NonError";constructor(t){super(Ue._prepareSuperMessage(t))}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const xe=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Me=Symbol(".toJSON was called"),ke=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:i,depth:o})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),o>=i)return a;if("function"==typeof t.toJSON&&!0!==t[Me])return(t=>{t[Me]=!0;const e=t.toJSON();return delete t[Me],e})(t);for(const[n,s]of Object.entries(t))"function"==typeof Buffer&&Buffer.isBuffer(s)?a[n]="[object Buffer]":null===s||"object"!=typeof s||"function"!=typeof s.pipe?"function"!=typeof s&&(s&&"object"==typeof s?e.includes(t[n])?a[n]="[Circular]":(o++,a[n]=ke({from:t[n],seen:[...e],forceEnumerable:r,maxDepth:i,depth:o})):a[n]=s):a[n]="[object Stream]";for(const{property:e,enumerable:n}of xe)"string"==typeof t[e]&&Object.defineProperty(a,e,{value:t[e],enumerable:!!r||n,configurable:!0,writable:!0});return a};function je(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return"object"==typeof t&&null!==t?ke({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof t?`[Function: ${t.name||"anonymous"}]`:t}function Le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Be=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;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Pe(Pe({},se),n),i=Pe(Pe({},s),t),u=ae({rawSettings:i,schema:r}),d=u.success,l=u.fail,p=u.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,y={onCancelByUser:function(){}},v=function(t){y.onCancelByUser=t},m=function(){h.cancel()},I=function(){y.onCancelByUser(),m()},E=function(){var t=be(we().mark((function t(){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Pe(Pe({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:m,setOnCancelByUser:v,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(je(t))}),l(Oe(t))})).finally(p);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return E().catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(je(t))}),l(Oe(t)),p(Oe(t))})),Object.freeze({cancel:I})}})}};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}function Fe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ve=s.idCard,qe=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.i18n,s=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)),o.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(r.IDENTIFICATION,Ve,t.countryCode);return o.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,De(s)(Fe(Fe({},e),{},{language:i,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,De(c)(Fe(Fe({},e),{},{cancelToken:n,language:i,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),He=Be(Ve,qe,{countryCode:{type:"string",required:!0}}),Ke=function(){var t=be((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return we().mark((function t(){var i,o;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=be(we().mark((function t(a,s){var c,u;return we().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)}}(),Qe=Ke;function ze(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 Ze(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ze(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var We=s.smartId,Je=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,We);return l.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=u(r.IDENTIFICATION,We);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return Qe({fn:function(){return f(Ze(Ze({},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=Jt(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,De(p)(Ze(Ze({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:Ze({},g.data),cancelToken:c,pollInterval:s,language:d});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ye=Be(We,Je,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function $e(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 Xe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$e(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tn=s.mobileId,en=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.started,s=void 0===a?function(){}:a,c=e.idcode,d=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=u(r.IDENTIFICATION,tn,t.countryCode);return o.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})},h=function(t){var e=u(r.IDENTIFICATION,tn,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=12e4/p,n=0;return Qe({fn:function(){return h(Xe(Xe({},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=Jt(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,De(f)(Xe(Xe({},e),{},{cancelToken:n,language:i,idcode:c,phone:d}));case 6:return y=t.sent,s(y),t.next=10,De(g)({config:e,data:y.data,cancelToken:n,language:i,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)}}(),nn=Be(tn,en,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),rn=s.eParakstsMobile,on=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},an=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(on)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sn=Be(rn,an);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 un(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dn=s.frejaEid,ln=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,dn);return l.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=u(r.IDENTIFICATION,dn);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return Qe({fn:function(){return f(un(un({},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=Jt(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,De(p)(un(un({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:un({},g.data),cancelToken:c,language:d,pollInterval:s});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pn=Be(dn,ln,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function fn(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 hn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?fn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var gn=s.zealId,yn=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=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=u(r.IDENTIFICATION,gn);return i.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,De(a)(hn(hn({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,De(s)(hn(hn({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,De(c)(hn(hn({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),vn=Be(gn,yn,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),mn=s.mojeId,In=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},En=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(In)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Sn=Be(mn,En),Tn=s.edoAppEid,bn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Cn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(bn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wn=Be(Tn,Cn),An=s.finnishTrustNetwork,_n=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})}}},On=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(_n)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rn=Be(An,On),Nn=s.atHandy,Dn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Un=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Dn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xn=Be(Nn,Un),Mn=s.itsme,kn=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})}}},jn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(kn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=Be(Mn,jn),Pn=s.itsmeBasic,Bn=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})}}},Gn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Bn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Fn=Be(Pn,Gn),Vn=s.itsmeStandard,qn=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})}}},Hn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(qn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Kn=Be(Vn,Hn),Qn=s.seBankId,zn=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})}}},Zn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(zn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Wn=Be(Qn,Zn),Jn=s.idin,Yn=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})}}},$n=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Yn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xn=Be(Jn,$n),tr=s.idinCustomerId,er=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})}}},nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(er)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rr=Be(tr,nr),ir=s.verifai,or=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})}}},ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(or)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sr=Be(ir,ar),cr=s.yoonik,ur=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})}}},dr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(ur)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),lr=Be(cr,dr),pr=s.plMojeId,fr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},hr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(fr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),gr=Be(pr,hr),yr=s.mitId,vr=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})}}},mr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(vr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ir=Be(yr,mr),Er=s.norwegianBankId,Sr=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})}}},Tr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Sr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),br=Be(Er,Tr),Cr=s.ftn,wr=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})}}},Ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(wr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_r=Be(Cr,Ar),Or=s.gbOneId,Rr=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})}}},Nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Rr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Dr=Be(Or,Nr),Ur=s.veriff,xr=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})}}},Mr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s,c;return we().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,De(xr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kr=Be(Ur,Mr),jr=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};(jr.prototype=new Error).name="MethodException";var Lr=jr,Pr={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Br=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(je(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Gr=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},o=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},a=function(t){var n=t.countryCode,i=t.clientId,o=t.apiEndpoints,a=u(r.SIGNATURE,e,n);return o.inCurrentMode.idCardIframe({clientId:i,actionType:a.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Lr({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,i=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!o(t))return!1;var e=t.data,n=e.operation,r=e.error,i=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==i?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}i.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),i.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},d=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function i(t){if(!o(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",i,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",i,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,i={resolve:null,reject:null};function a(t){if(!o(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)i.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,i.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){i.resolve=t,i.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=be((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,g=t.i18n,y=t.docId,v=t.cancelToken,m=t.apiClient,I=t.monitoringService,E=t.action,S=t.redirect;return we().mark((function t(){var T,b,C,w,A,_,O,R;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T=Br({monitoringService:I,moduleName:e}),t.next=3,De(a,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return b=t.sent,t.next=6,De(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:u,i18n:g,monitor:T}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,De(i,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,De(d)({messenger:w,monitor:T}).catch((function(t){return s(t,g)}));case 12:if(A=t.sent,"cscApiAuthorizeCredential"!==E){t.next=18;break}return t.next=16,De(h)({certificate:A.data.certificate,actionType:"id-card",country:n,cancelToken:v,apiEndpoints:o,apiClient:m});case 16:return _=t.sent,t.abrupt("return",De(S,{shouldFormatResult:!1})(_));case 18:return t.next=20,De(l)({certificate:A.data.certificate,clientId:r,docId:y,cancelToken:v,apiEndpoints:o,apiClient:m,monitor:T});case 20:return O=t.sent,t.next=23,De(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:T}).catch((function(t){return s(t,g)}));case 23:return R=t.sent,t.abrupt("return",De(f)({signature:R.signature,clientId:r,docId:y,cancelToken:v,apiEndpoints:o,apiClient:m}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Pr)},Fr=Gr({moduleName:s.idCardSignature,createModuleCreator:Be});function Vr(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}var qr=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 Qe({fn:function(){return o.apply(void 0,function(t){if(Array.isArray(t))return Vr(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Vr(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)?Vr(t,e):void 0}}(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.")}());var t},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=Jt(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})}}},Hr=s.mobileIdSignature,Kr=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})},Qr=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})},zr=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})},Zr=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 qr({pollInterval:2e3,maxPollDuration:12e4,fn:zr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Wr=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.idcode,l=t.phone,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return we().mark((function t(){var y,v,m;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,De(Kr)({country:p,idcode:d,phone:l,cancelToken:i,apiEndpoints:o,apiClient:a});case 3:return y=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(y));case 5:return v=u(r.SIGNATURE,Hr,p),s.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De(Qr)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:d,phone:l,countryCode:p});case 9:return m=t.sent,f(m),t.abrupt("return",De(Zr)({data:m.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Jr=Be(Hr,Wr,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yr=s.smartIdSignature,$r=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})},Xr=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})},ti=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 qr({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Xr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ei=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})},ni=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect,y=t.onTryComplete,v=t.waitForChallengeCode,m=void 0===v||v;return we().mark((function t(){var v,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,Yr,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,De(ei)({country:p,idcode:l,cancelToken:o,apiEndpoints:a,apiClient:s});case 4:return I=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De($r)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,countryCode:p,contractId:i,waitForChallengeCode:m});case 9:return E=t.sent,f(E),t.abrupt("return",De(ti)({data:E.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ri=Be(Yr,ni,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ii=s.evroTrustSignature,oi=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})},ai=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})},si=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 qr({pollInterval:2e3,fn:ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ci=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return we().mark((function t(){var y,v;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,ii,h),c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(oi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,phone:p,email:f,countryCode:h,contractId:i,actionType:y.actionType});case 4:return v=t.sent,g(v),t.abrupt("return",De(si)({data:v.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ui=Be(ii,ci,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),di=s.otpSignature,li=function(){var t=be((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 we().mark((function t(){var c;return we().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)}}(),pi=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)}))},fi=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})},hi=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,y=t.confirmationCodeRequest,v=t.setOnCancelByUser;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,di,d),console.log(m),s.dispatch({message:"".concat(m.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,De(li)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:m.actionType});case 6:return I=t.sent,g(I),t.next=10,De(pi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:v});case 10:E=t.sent,p=E.smsToken,l=E.emailToken;case 13:return t.abrupt("return",De(fi)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),gi=Be(di,hi,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),yi={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},vi=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})},mi=function(t){var e=t.moduleName,n=t.createModuleCreator,i=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})},o=function(){var t=be((function(t){var n=t.clientId,o=t.docId,a=t.contractId,s=t.cancelToken,c=t.apiEndpoints,d=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner,y=t.action;return we().mark((function t(){var v,m,I;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==y){t.next=6;break}return t.next=4,De(vi)({country:f,cancelToken:s,apiEndpoints:c,apiClient:d,actionType:v.actionType});case 4:return m=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(m));case 6:return l.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=9,De(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:d,language:p,actionType:v.actionType,confirmedBySigner:g,country:f});case 9:return I=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,o,yi)},Ii=mi({moduleName:s.eParakstsMobileSignature,createModuleCreator:Be}),Ei=mi({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:Be}),Si=mi({moduleName:s.ftnSignature,createModuleCreator:Be}),Ti=mi({moduleName:s.atHandySignature,createModuleCreator:Be}),bi=s.zealIdSignature,Ci=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},wi=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Ci)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ai=Be(bi,wi),_i=mi({moduleName:s.mojeIdSignature,createModuleCreator:Be}),Oi=mi({moduleName:s.googleSignature,createModuleCreator:Be}),Ri=mi({moduleName:s.seBankIdSignature,createModuleCreator:Be}),Ni=s.dTrustSignMeSignature,Di=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})},Ui=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.redirect;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Ni,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Di)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xi=Be(Ni,Ui,{username:{type:"string",required:!0}});function Mi(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function ki(t,e){return t&e}function ji(t,e){return t|e}function Li(t,e){return t^e}function Pi(t,e){return t&~e}function Bi(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 Gi(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Fi,Vi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function qi(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Vi.charAt(n>>6)+Vi.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Vi.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Vi.charAt(n>>2)+Vi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Hi(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Vi.indexOf(t.charAt(e));o<0||(0==r?(n+=Mi(o>>2),i=3&o,r=1):1==r?(n+=Mi(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Mi(i),n+=Mi(o>>2),i=3&o,r=3):(n+=Mi(i<<2|o>>4),n+=Mi(15&o),r=0))}return 1==r&&(n+=Mi(i<<2)),n}var Ki,Qi={decode:function(t){var e;if(void 0===Ki){var n="= \f\n\r\t \u2028\u2029";for(Ki=Object.create(null),e=0;e<64;++e)Ki["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(Ki["-"]=62,Ki._=63,e=0;e<n.length;++e)Ki[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=Ki[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=Qi.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 Qi.decode(t)}},zi=1e13,Zi=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)<zi?e=0:r-=(e=0|r/zi)*zi,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+=zi,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+=(zi+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*zi+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Wi=/^(\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)?)?$/,Ji=/^(\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 Yi(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var $i,Xi=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?Wi:Ji).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 Zi(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+Yi(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return Yi(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 Zi,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 Zi)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 Yi(r,n);i=new Zi,o=0}}return o>0&&(r+=".incomplete"),r},t}(),to=function(){function t(t,e,n,r,i){if(!(r instanceof eo))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 Yi(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Yi(this.stream.parseStringISO(e,e+n),t);case 30:return Yi(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 Xi?e:new Xi(e,0);var r=new Xi(n),i=new eo(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}(),eo=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 Zi;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}(),no=[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],ro=(1<<26)/no[no.length-1],io=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=Mi(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+=Mi(n));return i?o:"0"},t.prototype.negate=function(){var e=uo();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)+mo(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=uo();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 ao(e):new so(e),this.exp(t,n)},t.prototype.clone=function(){var t=uo();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=uo();return this.bitwiseTo(t,ki,e),e},t.prototype.or=function(t){var e=uo();return this.bitwiseTo(t,ji,e),e},t.prototype.xor=function(t){var e=uo();return this.bitwiseTo(t,Li,e),e},t.prototype.andNot=function(t){var e=uo();return this.bitwiseTo(t,Pi,e),e},t.prototype.not=function(){for(var t=uo(),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=uo();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=uo();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+Bi(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+=Gi(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,ji)},t.prototype.clearBit=function(t){return this.changeBit(t,Pi)},t.prototype.flipBit=function(t){return this.changeBit(t,Li)},t.prototype.add=function(t){var e=uo();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=uo();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=uo();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=uo();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=uo();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=uo(),n=uo();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=vo(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ao(e):e.isEven()?new co(e):new so(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=uo();for(r.sqrTo(a[1],d);s<=u;)a[s]=uo(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=uo();for(i=mo(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),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=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=vo(1),a=vo(0),s=vo(0),c=vo(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 oo)},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]<=no[no.length-1]){for(e=0;e<no.length;++e)if(n[0]==no[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<no.length;){for(var r=no[e],i=e+1;i<no.length&&r<ro;)r*=no[i++];for(r=n.modInt(r);e<i;)if(r%no[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]:yo(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=uo());var a=uo(),s=this.s,c=e.s,u=this.DB-mo(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,h=(1<<this.F1)/p,g=1<<this.F2,y=r.t,v=y-d,m=null==n?uo():n;for(a.dlShiftTo(v,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(d,m),m.subTo(a,a);a.t<d;)a[a.t++]=0;for(;--v>=0;){var I=r[--y]==l?this.DM:Math.floor(r[y]*f+(r[y-1]+g)*h);if((r[y]+=a.am(0,I,r,v,0,d))<I)for(a.dlShiftTo(v,m),r.subTo(m,r);r[y]<--I;)r.subTo(m,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=uo(),i=uo(),o=n.convert(this),a=mo(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=vo(n),i=uo(),o=uo(),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=yo(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),ji,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)>no.length&&(e=no.length);for(var o=uo(),a=0;a<e;++a){o.fromInt(no[Math.floor(Math.random()*no.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=uo();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),ji,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}(),oo=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}(),ao=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}(),so=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=uo();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(io.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=uo();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}(),co=function(){function t(t){this.m=t,this.r2=uo(),this.q3=uo(),io.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=uo();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 uo(){return new io(null)}function lo(t,e){return new io(t,e)}var po="undefined"!=typeof navigator;po&&"Microsoft Internet Explorer"==navigator.appName?(io.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},$i=30):po&&"Netscape"!=navigator.appName?(io.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},$i=26):(io.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},$i=28),io.prototype.DB=$i,io.prototype.DM=(1<<$i)-1,io.prototype.DV=1<<$i,io.prototype.FV=Math.pow(2,52),io.prototype.F1=52-$i,io.prototype.F2=2*$i-52;var fo,ho,go=[];for(fo="0".charCodeAt(0),ho=0;ho<=9;++ho)go[fo++]=ho;for(fo="a".charCodeAt(0),ho=10;ho<36;++ho)go[fo++]=ho;for(fo="A".charCodeAt(0),ho=10;ho<36;++ho)go[fo++]=ho;function yo(t,e){var n=go[t.charCodeAt(e)];return null==n?-1:n}function vo(t){var e=uo();return e.fromInt(t),e}function mo(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}io.ZERO=vo(0),io.ONE=vo(1);var Io,Eo,So=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}(),To=null;if(null==To){To=[],Eo=0;var bo=void 0;if(window.crypto&&window.crypto.getRandomValues){var Co=new Uint32Array(256);for(window.crypto.getRandomValues(Co),bo=0;bo<Co.length;++bo)To[Eo++]=255&Co[bo]}var wo=0,Ao=function(t){if((wo=wo||0)>=256||Eo>=256)window.removeEventListener?window.removeEventListener("mousemove",Ao,!1):window.detachEvent&&window.detachEvent("onmousemove",Ao);else try{var e=t.x+t.y;To[Eo++]=255&e,wo+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",Ao,!1):window.attachEvent&&window.attachEvent("onmousemove",Ao)}function _o(){if(null==Io){for(Io=new So;Eo<256;){var t=Math.floor(65536*Math.random());To[Eo++]=255&t}for(Io.init(To),Eo=0;Eo<To.length;++Eo)To[Eo]=0;Eo=0}return Io.next()}var Oo=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=_o()},t}(),Ro=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=lo(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 Oo,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 io(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=lo(t,16),this.e=parseInt(e,16),this.d=lo(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=lo(t,16),this.e=parseInt(e,16),this.d=lo(n,16),this.p=lo(r,16),this.q=lo(i,16),this.dmp1=lo(o,16),this.dmq1=lo(a,16),this.coeff=lo(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Oo,r=t>>1;this.e=parseInt(e,16);for(var i=new io(e,16);;){for(;this.p=new io(t-r,1,n),0!=this.p.subtract(io.ONE).gcd(i).compareTo(io.ONE)||!this.p.isProbablePrime(10););for(;this.q=new io(r,1,n),0!=this.q.subtract(io.ONE).gcd(i).compareTo(io.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(io.ONE),s=this.q.subtract(io.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(io.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=lo(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 Oo,i=t>>1;this.e=parseInt(e,16);var o=new io(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(io.ONE),r=a.q.subtract(io.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(io.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=uo(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(io.ONE).gcda(o,(function(t){0==t.compareTo(io.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=uo(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(io.ONE).gcda(o,(function(t){0==t.compareTo(io.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 lo("0001"+r+"00"+t,16)}((No[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=lo(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in No)if(No.hasOwnProperty(e)){var n=No[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}(),No={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Do={};Do.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 Uo={};void 0!==Uo.asn1&&Uo.asn1||(Uo.asn1={}),Uo.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 io(r,16).xor(t).add(io.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Uo.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,h=e.DERUTCTime,g=e.DERGeneralizedTime,y=e.DERSequence,v=e.DERSet,m=e.DERTaggedObject,I=e.ASN1Util.newObject,E=Object.keys(t);if(1!=E.length)throw"key of param shall be only one.";var S=E[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new n(t[S]);if("int"==S)return new r(t[S]);if("bitstr"==S)return new i(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new a(t[S]);if("oid"==S)return new s(t[S]);if("enum"==S)return new c(t[S]);if("utf8str"==S)return new u(t[S]);if("numstr"==S)return new d(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new f(t[S]);if("utctime"==S)return new h(t[S]);if("gentime"==S)return new g(t[S]);if("seq"==S){for(var T=t[S],b=[],C=0;C<T.length;C++){var w=I(T[C]);b.push(w)}return new y({array:b})}if("set"==S){for(T=t[S],b=[],C=0;C<T.length;C++)w=I(T[C]),b.push(w);return new v({array:b})}if("tag"==S){var A=t[S];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var _=I(A[2]);return new m({tag:A[0],explicit:A[1],obj:_})}var O={};if(void 0!==A.explicit&&(O.explicit=A.explicit),void 0!==A.tag&&(O.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(A.obj),new m(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Uo.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 io(r,2).toString(10),r="")}return e},Uo.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 io(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},Uo.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""}},Uo.asn1.DERAbstractString=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERAbstractString,Uo.asn1.ASN1Object),Uo.asn1.DERAbstractTime=function(t){Uo.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}},Do.lang.extend(Uo.asn1.DERAbstractTime,Uo.asn1.ASN1Object),Uo.asn1.DERAbstractStructured=function(t){Uo.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)},Do.lang.extend(Uo.asn1.DERAbstractStructured,Uo.asn1.ASN1Object),Uo.asn1.DERBoolean=function(){Uo.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Do.lang.extend(Uo.asn1.DERBoolean,Uo.asn1.ASN1Object),Uo.asn1.DERInteger=function(t){Uo.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Uo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new io(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))},Do.lang.extend(Uo.asn1.DERInteger,Uo.asn1.ASN1Object),Uo.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Uo.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Uo.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))},Do.lang.extend(Uo.asn1.DERBitString,Uo.asn1.ASN1Object),Uo.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Uo.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Uo.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Do.lang.extend(Uo.asn1.DEROctetString,Uo.asn1.DERAbstractString),Uo.asn1.DERNull=function(){Uo.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Do.lang.extend(Uo.asn1.DERNull,Uo.asn1.ASN1Object),Uo.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 io(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};Uo.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=Uo.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))},Do.lang.extend(Uo.asn1.DERObjectIdentifier,Uo.asn1.ASN1Object),Uo.asn1.DEREnumerated=function(t){Uo.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Uo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new io(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))},Do.lang.extend(Uo.asn1.DEREnumerated,Uo.asn1.ASN1Object),Uo.asn1.DERUTF8String=function(t){Uo.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Do.lang.extend(Uo.asn1.DERUTF8String,Uo.asn1.DERAbstractString),Uo.asn1.DERNumericString=function(t){Uo.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Do.lang.extend(Uo.asn1.DERNumericString,Uo.asn1.DERAbstractString),Uo.asn1.DERPrintableString=function(t){Uo.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Do.lang.extend(Uo.asn1.DERPrintableString,Uo.asn1.DERAbstractString),Uo.asn1.DERTeletexString=function(t){Uo.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Do.lang.extend(Uo.asn1.DERTeletexString,Uo.asn1.DERAbstractString),Uo.asn1.DERIA5String=function(t){Uo.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Do.lang.extend(Uo.asn1.DERIA5String,Uo.asn1.DERAbstractString),Uo.asn1.DERUTCTime=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERUTCTime,Uo.asn1.DERAbstractTime),Uo.asn1.DERGeneralizedTime=function(t){Uo.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))},Do.lang.extend(Uo.asn1.DERGeneralizedTime,Uo.asn1.DERAbstractTime),Uo.asn1.DERSequence=function(t){Uo.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}},Do.lang.extend(Uo.asn1.DERSequence,Uo.asn1.DERAbstractStructured),Uo.asn1.DERSet=function(t){Uo.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)},Do.lang.extend(Uo.asn1.DERSet,Uo.asn1.DERAbstractStructured),Uo.asn1.DERTaggedObject=function(t){Uo.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)))},Do.lang.extend(Uo.asn1.DERTaggedObject,Uo.asn1.ASN1Object);var xo,Mo=(xo=function(t,e){return xo=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])},xo(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}xo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ko=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 Mo(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===Fi){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Fi={},e=0;e<16;++e)Fi[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Fi[n.charAt(e)]=e;for(e=0;e<r.length;++e)Fi[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=Fi[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):Qi.unarmor(t),i=to.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=lo(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=lo(o,16);var a=i.sub[4].getHexStringValue();this.p=lo(a,16);var s=i.sub[5].getHexStringValue();this.q=lo(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=lo(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=lo(u,16);var d=i.sub[8].getHexStringValue();this.coeff=lo(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=lo(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 Uo.asn1.DERInteger({int:0}),new Uo.asn1.DERInteger({bigint:this.n}),new Uo.asn1.DERInteger({int:this.e}),new Uo.asn1.DERInteger({bigint:this.d}),new Uo.asn1.DERInteger({bigint:this.p}),new Uo.asn1.DERInteger({bigint:this.q}),new Uo.asn1.DERInteger({bigint:this.dmp1}),new Uo.asn1.DERInteger({bigint:this.dmq1}),new Uo.asn1.DERInteger({bigint:this.coeff})]};return new Uo.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return qi(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Uo.asn1.DERSequence({array:[new Uo.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Uo.asn1.DERNull]}),e=new Uo.asn1.DERSequence({array:[new Uo.asn1.DERInteger({bigint:this.n}),new Uo.asn1.DERInteger({int:this.e})]}),n=new Uo.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Uo.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return qi(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}(Ro),jo=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 ko(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(Hi(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return qi(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return qi(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Hi(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new ko,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}(),Lo=s.chaveMovelSignature,Po={publicKey:null},Bo=function(){var t=be((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return we().mark((function t(){var i,o,a;return we().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),Po.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Go=function(){var t=be((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 we().mark((function t(){var d,l,p;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,Bo({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new jo).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)}}(),Fo=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)}))},Vo=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 jo;return u.setPublicKey(Po.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})},qo=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.countryCode,d=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return we().mark((function t(){var y,v,m;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,Lo,c),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(Go)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:d,actionType:y.actionType,signingPin:f,phone:h});case 4:return v=t.sent,l(v),t.next=8,De(Fo,{shouldFormatResult:!1})({startSigningResult:v,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return m=t.sent,t.abrupt("return",De(Vo)({token:v.data.token,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:e,confirmationCode:m}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ho=Be(Lo,qo,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ko=mi({moduleName:s.mitIdSignature,createModuleCreator:Be}),Qo=s.ftnQesSignature,zo=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})},Zo=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,Qo,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(zo)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wo=Be(Qo,Zo,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),Jo=s.noBankIdAdvSignature,Yo=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})},$o=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.name,f=t.redirect;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Jo,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Yo)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Xo=Be(Jo,$o,{name:{type:"string",required:!0}}),ta=Gr({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:Be}),ea=Gr({moduleName:s.certSignUsbTokenSignature,createModuleCreator:Be}),na=mi({moduleName:s.idinSignature,createModuleCreator:Be}),ra=mi({moduleName:s.verifaiSignature,createModuleCreator:Be}),ia=s.spidQesSignature,oa=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})},aa=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ia,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(oa)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),sa=Be(ia,aa,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),ca=s.frejaSimpleSignature,ua=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})},da=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})},la=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 qr({pollInterval:2e3,fn:da,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},pa=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ca,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(ua)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,p(h),t.abrupt("return",De(la)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),fa=Be(ca,pa,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ha=s.audkenniQesSignature,ga=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})},ya=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})},va=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})},ma=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 qr({pollInterval:2e3,fn:ya,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ia=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 qr({pollInterval:2e3,fn:va,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ea=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return we().mark((function t(){var f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ha,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(ga)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.next=7,De(ma)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",De(Ia)({data:g.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Sa=Be(ha,Ea,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ta=mi({moduleName:s.yesComQesSignature,createModuleCreator:Be}),ba=mi({moduleName:s.simplySignQesSignature,createModuleCreator:Be}),Ca=s.uanatacaQesSignature,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.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})},Aa=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)}))},_a=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})},Oa=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,y=t.setOnCancelByUser,v=t.started;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m=u(r.SIGNATURE,Ca,l),c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=4,De(wa)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,password:f,pin:h,actionType:m.actionType});case 4:return I=t.sent,v(I),t.next=8,De(Aa,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:y});case 8:return E=t.sent,t.abrupt("return",De(_a)({token:I.data.token,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,confirmationCode:E}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ra=Be(Ca,Oa,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Na=mi({moduleName:s.certsignWebapiQesSignature,createModuleCreator:Be}),Da=s.halcomQesSignature,Ua=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})},xa=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})},Ma=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})},ka=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 qr({pollInterval:2e3,fn:Ma,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ja=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started,y=t.action,v=t.redirect;return we().mark((function t(){var m,I,E;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,Da,h),c.dispatch({message:"".concat(m.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,De(Ua)({country:h,username:l,phone:p,email:f,cancelToken:o,apiEndpoints:a,apiClient:s});case 5:return I=t.sent,t.abrupt("return",De(v,{shouldFormatResult:!1})(I));case 7:return t.next=9,De(xa)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:l,phone:p,email:f,countryCode:h,contractId:i,actionType:m.actionType});case 9:return E=t.sent,g(E),t.abrupt("return",De(ka)({data:E.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),La=Be(Da,ja,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Pa=s.swissIdQesSignature,Ba=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})},Ga=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})},Fa=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 qr({pollInterval:2e3,fn:Ga,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Va=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.email,p=t.countryCode,f=t.started;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Pa,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Ba)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,email:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",De(Fa)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),qa=Be(Pa,Va,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ha=s.swissComQesSignature,Ka=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})},Qa=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})},za=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 qr({pollInterval:2e3,fn:Qa,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Za=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.phone,p=t.countryCode,f=t.started;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Ha,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Ka)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",De(za)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wa=Be(Ha,Za,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ja=mi({moduleName:s.mitIdAdvancedSignature,createModuleCreator:Be}),Ya=mi({moduleName:s.mitIdQesSignature,createModuleCreator:Be}),$a=mi({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:Be}),Xa=mi({moduleName:s.seBankIdQesSignature,createModuleCreator:Be}),ts=s.frejaAdvancedSignature,es=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})},ns=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,ts,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(es)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),rs=Be(ts,ns,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),is=s.frejaQesSignature,os=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})},as=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,is,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(os)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ss=Be(is,as,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),cs=mi({moduleName:s.gbOneIdAdvancedSignature,createModuleCreator:Be}),us=s.handwrittenSignature,ds=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})},ls=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl;return we().mark((function t(){var g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,us,d),console.log(g),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",De(ds)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ps=Be(us,ls,{docId:{type:"string",required:!0}}),fs=s.haricaQesSignature,hs=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})},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,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})},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,c=t.username,u=t.password,d=t.otpCode;return qr({pollInterval:2e3,fn:gs,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},vs=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.username,l=t.password,p=t.otpCode,f=t.countryCode,h=t.started;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,fs,f),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(hs)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:g.actionType});case 4:return y=t.sent,h(y),t.abrupt("return",De(ys)({data:y.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,username:d,password:l,otpCode:p}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ms=Be(fs,vs,{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}}),Is=mi({moduleName:s.veriffAdvancedSignature,createModuleCreator:Be}),Es=Object.freeze({sandbox:"sandbox",production:"production"});function Ss(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 Ts(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ss(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var bs=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=Ts(Ts({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Cs=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},ws=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Ts({base:function(t){return t.baseUrl},readCard:function(t){var e=t.countryCode,r=void 0===e?n.countryCode.toLowerCase():e,i=t.clientId,o="eideasy.com";return n.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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({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 Cs({method:"veriff-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/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")},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")},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")},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")},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")}},r),o=(e(t={},Es.production,Ts({},bs(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:n.state},n.modifyEndpointUrl))),e(t,Es.sandbox,Ts({},bs(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:n.state},n.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=n.sandbox?Es.sandbox:Es.production;return o[t]}}},As=s.eParakstsSmartCard,_s=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},Os=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(_s)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rs=Be(As,Os),Ns=mi({moduleName:s.itsmeQesSignature,createModuleCreator:Be}),Ds=mi({moduleName:s.frIdentAdvancedSignature,createModuleCreator:Be}),Us=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ae({rawSettings:t,schema:se}),n=Ee({currentLanguage:"en"}),r=ws({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=Se({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return ie({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[He,Ye,nn,sn,Rs,pn,vn,Sn,wn,Rn,xn,Ln,Fn,Kn,Wn,Xn,rr,sr,lr,gr,Ir,br,_r,Dr,kr],signingModules:[Fr,Jr,ri,ui,gi,Ii,Ei,Si,Wo,Ti,Ai,_i,Oi,Ri,xi,Ho,Ko,Xo,ta,ea,na,ra,sa,fa,Sa,Ta,ba,Ra,Na,La,qa,Wa,Ja,Ya,$a,Xa,rs,ss,Ns,Ds,cs,ps,ms,Is]})},xs=Us}(),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,h=f?r(t.length,String):[],g=h.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,g))||h.push(y);return h}},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),h=n(4160),g=n(3824),y=n(9148),m=n(8517),v=n(1469),I=n(4144),T=n(6688),E=n(3218),S=n(2928),b=n(3674),C=n(1704),w="[object Arguments]",A="[object Function]",_="[object Object]",O={};O[w]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[A]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,R,N,D,U){var x,M=1&n,k=2&n,j=4&n;if(R&&(x=D?R(e,N,D,U):R(e)),void 0!==x)return x;if(!E(e))return e;var L=v(e);if(L){if(x=g(e),!M)return u(e,x)}else{var P=h(e),B=P==A||"[object GeneratorFunction]"==P;if(I(e))return c(e,M);if(P==_||P==w||B&&!D){if(x=k||B?{}:m(e),!M)return k?l(e,s(x,e)):d(e,a(x,e))}else{if(!O[P])return D?e:{};x=y(e,P,M)}}U||(U=new r);var G=U.get(e);if(G)return G;U.set(e,x),S(e)?e.forEach((function(r){x.add(t(r,n,R,r,e,U))})):T(e)&&e.forEach((function(r,i){x.set(i,t(r,n,R,i,e,U))}));var F=L?void 0:(j?k?f:p:k?C:b)(e);return i(F||e,(function(r,i){F&&(r=e[i=r]),o(x,i,t(r,n,R,i,e,U))})),x}},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),h=n(8630),g=n(6719),y=n(6390),m=n(9881);t.exports=function(t,e,n,v,I,T,E){var S=y(t,n),b=y(e,n),C=E.get(b);if(C)r(t,n,C);else{var w=T?T(S,b,n+"",t,e,E):void 0,A=void 0===w;if(A){var _=u(b),O=!_&&l(b),R=!_&&!O&&g(b);w=b,_||O||R?u(S)?w=S:d(S)?w=a(S):O?(A=!1,w=i(b,!0)):R?(A=!1,w=o(b,!0)):w=[]:h(b)||c(b)?(w=S,c(S)?w=m(S):f(S)&&!p(S)||(w=s(b))):A=!1}A&&(E.set(b,w),I(w,b,v,T,E),E.delete(b)),r(t,n,w)}}},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]",h="[object DataView]",g=u(r),y=u(i),m=u(o),v=u(a),I=u(s),T=c;(r&&T(new r(new ArrayBuffer(1)))!=h||i&&T(new i)!=d||o&&T(o.resolve())!=l||a&&T(new a)!=p||s&&T(new s)!=f)&&(T=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case y:return d;case m:return l;case v:return p;case I:return f}return e}),t.exports=T},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 g?e:g,o=Object.create(i.prototype),s=new O(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 h={};function g(){}function y(){}function m(){}var v={};l(v,c,(function(){return this}));var I=Object.getPrototypeOf,T=I&&I(I(R([])));T&&T!==n&&o.call(T,c)&&(v=T);var E=m.prototype=g.prototype=Object.create(v);function S(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=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===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===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(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,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;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,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function R(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:N}}function N(){return{value:void 0,done:!0}}return y.prototype=m,a(E,"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(E),t},e.awrap=function(t){return{__await:t}},S(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()}))},S(E),l(E,d,"Generator"),l(E,c,(function(){return this})),l(E,"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=R,O.prototype={constructor:O,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(_),!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,h):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),h},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),_(n),h}},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;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},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";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var n;i.r(o),i.d(o,{allMethods:function(){return c},createClient:function(){return Bs},default:function(){return Gs},getMethodByHandlingModule:function(){return u},methodActionTypes:function(){return a},methodTypes:function(){return r},moduleNames:function(){return s}});var r={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={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",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",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",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",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",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-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",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",TRUST1CONNECTOR_ID_SIGNATURE:"trust1connector-signature"},s={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",finnishTrustNetwork:"finnishTrustNetwork",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",idCardSignature:"idCardSignature",trust1ConnectorIdCardSignature:"trust1ConnectorIdCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",dTrustSignMeAdvSignature:"dTrustSignMeAdvSignature",chaveMovelSignature:"chaveMovelSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature"},c=Object.freeze((e(n={},r.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:s.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:s.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LV_EPARAKSTS_ID_LOGIN,handlingModule:s.eParakstsSmartCard,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:s.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:s.smartId,supportedCountries:["EE","LV","LT","BE"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:s.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:a.CZ_MOJEID,handlingModule:s.mojeId,supportedCountries:["CZ"]},{actionType:a.EDOAPP_EID_LOGIN,handlingModule:s.edoAppEid,supportedCountries:["PL"]},{actionType:a.FI_FTN_LOGIN,handlingModule:s.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:s.atHandy,supportedCountries:["AT"]},{actionType:a.ITSME_LOGIN,handlingModule:s.itsme,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","LU","NL"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","LU","NL"]},{actionType:a.SE_BANKID_LOGIN,handlingModule:s.seBankId,supportedCountries:["SE"]},{actionType:a.IDIN_LOGIN,handlingModule:s.idin,supportedCountries:["NL"]},{actionType:a.IDIN_CUSTOMER_ID_LOGIN,handlingModule:s.idinCustomerId,supportedCountries:["NL"]},{actionType:a.VERIFAI_LOGIN,handlingModule:s.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:a.YOONIK_LOGIN,handlingModule:s.yoonik,supportedCountries:["WORLD"]},{actionType:a.PL_MOJEID_LOGIN,handlingModule:s.plMojeId,supportedCountries:["PL"]},{actionType:a.MIT_ID_LOGIN,handlingModule:s.mitId,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.FTN_LOGIN,handlingModule:s.ftn,supportedCountries:["FI"]},{actionType:a.GB_ONE_ID_LOGIN,handlingModule:s.gbOneId,supportedCountries:["GB"]},{actionType:a.VERIFF_LOGIN,handlingModule:s.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"]}]),e(n,r.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["FI","AX"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["BE"]},{actionType:a.HR_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["HR"]},{actionType:a.CERTEUROPE_USB_TOKEN_SIGNATURE,handlingModule:s.certEuropeUsbTokenSignature,supportedCountries:["FR"]},{actionType:a.CERTSIGN_USB_TOKEN_SIGNATURE,handlingModule:s.certSignUsbTokenSignature,supportedCountries:["RO"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:s.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:s.smartIdSignature,supportedCountries:["EE","LV","LT","BE"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:s.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","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","LU","NL"]},{actionType:a.OTP_EMAIL,handlingModule:s.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:s.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:s.ftnSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_ADVANCED_FULL_SIGNATURE,handlingModule:s.ftnAdvancedFullSignature,supportedCountries:["FI","AX"]},{actionType:a.FI_FTN_QUALIFIED_SIGNATURE,handlingModule:s.ftnQesSignature,supportedCountries:["FI","AX"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:s.atHandySignature,supportedCountries:["AT"]},{actionType:a.ZEAL_ID_SIGNATURE,handlingModule:s.zealIdSignature,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:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.GOOGLE_SIGNATURE,handlingModule:s.googleSignature,supportedCountries:["WORLD"]},{actionType:a.SE_BANKID_SIGNATURE,handlingModule:s.seBankIdSignature,supportedCountries:["SE"]},{actionType:a.D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE,handlingModule:s.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","RO","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:a.D_TRUST_SIGN_ME_ADVANCED_SIGNATURE,handlingModule:s.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","RO","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:a.CHAVE_MOVEL_QUALIFIED_SIGNATURE,handlingModule:s.chaveMovelSignature,supportedCountries:["PT"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.MIT_ID_SIMPLE_SIGNATURE,handlingModule:s.mitIdSignature,supportedCountries:["DK","GL"]},{actionType:a.IDIN_SIMPLE_SIGNATURE,handlingModule:s.idinSignature,supportedCountries:["NL"]},{actionType:a.SPID_QUALIFIED_SIGNATURE,handlingModule:s.spidQesSignature,supportedCountries:["IT"]},{actionType:a.VERIFAI_SIMPLE_SIGNATURE,handlingModule:s.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:a.FREJA_SIMPLE_SIGNATURE,handlingModule:s.frejaSimpleSignature,supportedCountries:["DK","EE","FI","LV","LT","NO","PL","RO","SK","SE","GL","AX"]},{actionType:a.AUDKENNI_QUALIFIED_SIGNATURE,handlingModule:s.audkenniQesSignature,supportedCountries:["IS"]},{actionType:a.YES_COM_QUALIFIED_SIGNATURE,handlingModule:s.yesComQesSignature,supportedCountries:["DE"]},{actionType:a.SIMPLY_SIGN_QES_SIGNATURE,handlingModule:s.simplySignQesSignature,supportedCountries:["PL"]},{actionType:a.UANATACA_QUALIFIED_SIGNATURE,handlingModule:s.uanatacaQesSignature,supportedCountries:["ES"]},{actionType:a.CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE,handlingModule:s.certsignWebapiQesSignature,supportedCountries:["RO"]},{actionType:a.HALCOM_QUALIFIED_SIGNATURE,handlingModule:s.halcomQesSignature,supportedCountries:["SI"]},{actionType:a.SWISS_ID_QUALIFIED_SIGNATURE,handlingModule:s.swissIdQesSignature,supportedCountries:["CH"]},{actionType:a.SWISS_COM_QUALIFIED_SIGNATURE,handlingModule:s.swissComQesSignature,supportedCountries:["CH"]},{actionType:a.DK_MITID_ADVANCED_SIGNATURE,handlingModule:s.mitIdAdvancedSignature,supportedCountries:["DK"]},{actionType:a.DK_MITID_QES_SIGNATURE,handlingModule:s.mitIdQesSignature,supportedCountries:["DK"]},{actionType:a.SE_BANK_ID_ADVANCED_SIGNATURE,handlingModule:s.seBankIdAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_BANK_ID_QES_SIGNATURE,handlingModule:s.seBankIdQesSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["SE"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["SE"]},{actionType:a.FR_IDENT_ADVANCED_SIGNATURE,handlingModule:s.frIdentAdvancedSignature,supportedCountries:["FR"]},{actionType:a.GB_ONE_ID_ADVANCED_SIGNATURE,handlingModule:s.gbOneIdAdvancedSignature,supportedCountries:["GB"]},{actionType:a.HANDWRITTEN_SIMPLE_SIGNATURE,handlingModule:s.handwrittenSignature,supportedCountries:["WORLD"]},{actionType:a.HARICA_QES_SIGNATURE,handlingModule:s.haricaQesSignature,supportedCountries:["GR"]},{actionType:a.VERIFF_ADVANCED_SIGNATURE,handlingModule:s.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:a.TRUST1CONNECTOR_ID_SIGNATURE,handlingModule:s.trust1ConnectorIdCardSignature,supportedCountries:["BE","LT"]}]),n)),u=function(t,e,n){var r=c[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}))},d=i(2492),l=i.n(d);function p(t,e){return function(){return t.apply(e,arguments)}}const{toString:f}=Object.prototype,{getPrototypeOf:h}=Object,g=(y=Object.create(null),t=>{const e=f.call(t);return y[e]||(y[e]=e.slice(8,-1).toLowerCase())});var y;const m=t=>(t=t.toLowerCase(),e=>g(e)===t),v=t=>e=>typeof e===t,{isArray:I}=Array,T=v("undefined"),E=m("ArrayBuffer"),S=v("string"),b=v("function"),C=v("number"),w=t=>null!==t&&"object"==typeof t,A=t=>{if("object"!==g(t))return!1;const e=h(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=m("Date"),O=m("File"),R=m("Blob"),N=m("FileList"),D=m("URLSearchParams");function U(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),I(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 x(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 M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=t=>!T(t)&&t!==M,j=(L="undefined"!=typeof Uint8Array&&h(Uint8Array),t=>L&&t instanceof L);var L;const P=m("HTMLFormElement"),B=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G=m("RegExp"),F=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};U(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},V="abcdefghijklmnopqrstuvwxyz",q="0123456789",H={DIGIT:q,ALPHA:V,ALPHA_DIGIT:V+V.toUpperCase()+q},K=m("AsyncFunction");var Q={isArray:I,isArrayBuffer:E,isBuffer:function(t){return null!==t&&!T(t)&&null!==t.constructor&&!T(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||b(t.append)&&("formdata"===(e=g(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&E(t.buffer),e},isString:S,isNumber:C,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:A,isUndefined:T,isDate:_,isFile:O,isBlob:R,isRegExp:G,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:D,isTypedArray:j,isFileList:N,forEach:U,merge:function t(){const{caseless:e}=k(this)&&this||{},n={},r=(r,i)=>{const o=e&&x(n,i)||i;A(n[o])&&A(r)?n[o]=t(n[o],r):A(r)?n[o]=t({},r):I(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&U(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(U(e,((e,r)=>{n&&b(e)?t[r]=p(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&&h(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:g,kindOfTest:m,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(I(t))return t;let e=t.length;if(!C(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:P,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:t=>{F(t,((e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];b(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 I(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)=>(t=+t,Number.isFinite(t)?t:e),findKey:x,global:M,isContextDefined:k,ALPHABET:H,generateString:(t=16,e=H.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&b(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=I(t)?[]:{};return U(t,((t,e)=>{const o=n(t,r+1);!T(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:K,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch)};function z(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)}Q.inherits(z,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:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Z=z.prototype,J={};["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=>{J[t]={value:t}})),Object.defineProperties(z,J),Object.defineProperty(Z,"isAxiosError",{value:!0}),z.from=(t,e,n,r,i,o)=>{const a=Object.create(Z);return Q.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),z.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var W=z;function Y(t){return Q.isPlainObject(t)||Q.isArray(t)}function $(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,n){return t?t.concat(e).map((function(t,e){return t=$(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const tt=Q.toFlatObject(Q,{},null,(function(t){return/^is[A-Z]/.test(t)}));var et=function(t,e,n){if(!Q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Q.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(Q.isDate(t))return t.toISOString();if(!s&&Q.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(t)||Q.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(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Q.isArray(t)&&function(t){return Q.isArray(t)&&!t.some(Y)}(t)||(Q.isFileList(t)||Q.endsWith(n,"[]"))&&(s=Q.toArray(t)))return n=$(n),s.forEach((function(t,r){!Q.isUndefined(t)&&null!==t&&e.append(!0===a?X([n],r,o):null===a?n:n+"[]",c(t))})),!1;return!!Y(t)||(e.append(X(i,n,o),c(t)),!1)}const d=[],l=Object.assign(tt,{defaultVisitor:u,convertValue:c,isVisitable:Y});if(!Q.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Q.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Q.forEach(n,(function(n,o){!0===(!(Q.isUndefined(n)||null===n)&&i.call(e,n,Q.isString(o)?o.trim():o,r,l))&&t(n,r?r.concat(o):[o])})),d.pop()}}(t),e};function nt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function rt(t,e){this._pairs=[],t&&et(t,this,e)}const it=rt.prototype;it.append=function(t,e){this._pairs.push([t,e])},it.toString=function(t){const e=t?function(e){return t.call(this,e,nt)}:nt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot=rt;function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(t,e,n){if(!e)return t;const r=n&&n.encode||at,i=n&&n.serialize;let o;if(o=i?i(e,n):Q.isURLSearchParams(e)?e.toString():new ot(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var ct=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){Q.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},lt=function(t){function e(t,n,r,i){let o=t[i++];const a=Number.isFinite(+o),s=i>=t.length;return o=!o&&Q.isArray(r)?r.length:o,s?(Q.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&Q.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&Q.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(Q.isFormData(t)&&Q.isFunction(t.entries)){const n={};return Q.forEachEntry(t,((t,r)=>{e(function(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null};const pt={transitional:ut,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=Q.isObject(t);if(i&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return r&&r?JSON.stringify(lt(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.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 et(t,new dt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return dt.isNode&&Q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Q.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return et(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(Q.isString(t))try{return(0,JSON.parse)(t),Q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Q.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 W.from(t,W.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:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],(t=>{pt.headers[t]={}}));var ft=pt;const ht=Q.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"]),gt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function mt(t){return!1===t||null==t?t:Q.isArray(t)?t.map(mt):String(t)}function vt(t,e,n,r,i){return Q.isFunction(r)?r.call(this,e,n):(i&&(e=n),Q.isString(e)?Q.isString(r)?-1!==e.indexOf(r):Q.isRegExp(r)?r.test(e):void 0:void 0)}class It{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=yt(e);if(!i)throw new Error("header name must be a non-empty string");const o=Q.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=mt(t))}const o=(t,e)=>Q.forEach(t,((t,n)=>i(t,n,e)));return Q.isPlainObject(t)||t instanceof this.constructor?o(t,e):Q.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]&&ht[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=yt(t)){const n=Q.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(Q.isFunction(e))return e.call(this,t,n);if(Q.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=Q.findKey(this,t);return!(!n||void 0===this[n]||e&&!vt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=yt(t)){const i=Q.findKey(n,t);!i||e&&!vt(0,n[i],i,e)||(delete n[i],r=!0)}}return Q.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&&!vt(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return Q.forEach(this,((r,i)=>{const o=Q.findKey(n,i);if(o)return e[o]=mt(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]=mt(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Q.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Q.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[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(function(t,e){const n=Q.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 Q.isArray(t)?t.forEach(r):r(t),this}}It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(It.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Q.freezeMethods(It);var Tt=It;function Et(t,e){const n=this||ft,r=e||n,i=Tt.from(r.headers);let o=r.data;return Q.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function St(t){return!(!t||!t.__CANCEL__)}function bt(t,e,n){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,n),this.name="CanceledError"}Q.inherits(bt,W,{__CANCEL__:!0});var Ct=bt,wt=dt.isStandardBrowserEnv?{write:function(t,e,n,r,i,o){const a=[];a.push(t+"="+encodeURIComponent(e)),Q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Q.isString(r)&&a.push("path="+r),Q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function At(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}var _t=dt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Q.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Ot(t,e){let n=0;const r=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 i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,c=r(s);n=o;const u={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:i};u[e?"download":"upload"]=!0,t(u)}}const Rt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=Tt.from(t.headers).normalize(),o=t.responseType;let a,s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Q.isFormData(r)&&(dt.isStandardBrowserEnv||dt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Q.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const d=At(t.baseURL,t.url);function l(){if(!u)return;const r=Tt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),c()}),(function(t){n(t),c()}),{data:o&&"text"!==o&&"json"!==o?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),st(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(n(new W("Request aborted",W.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||ut;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new W(e,r.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,u)),u=null},dt.isStandardBrowserEnv){const e=(t.withCredentials||_t(d))&&t.xsrfCookieName&&wt.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in u&&Q.forEach(i.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Q.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Ot(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Ot(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(n(!e||e.type?new Ct(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);p&&-1===dt.protocols.indexOf(p)?n(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,t)):u.send(r||null)}))}};Q.forEach(Rt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Nt=t=>`- ${t}`,Dt=t=>Q.isFunction(t)||null===t||!1===t;var Ut=t=>{t=Q.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,!Dt(n)&&(r=Rt[(e=String(n)).toLowerCase()],void 0===r))throw new W(`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(Nt).join("\n"):" "+Nt(t[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function Mt(t){return xt(t),t.headers=Tt.from(t.headers),t.data=Et.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ut(t.adapter||ft.adapter)(t).then((function(e){return xt(t),e.data=Et.call(t,t.transformResponse,e),e.headers=Tt.from(e.headers),e}),(function(e){return St(e)||(xt(t),e&&e.response&&(e.response.data=Et.call(t,t.transformResponse,e.response),e.response.headers=Tt.from(e.response.headers))),Promise.reject(e)}))}const kt=t=>t instanceof Tt?t.toJSON():t;function jt(t,e){e=e||{};const n={};function r(t,e,n){return Q.isPlainObject(t)&&Q.isPlainObject(e)?Q.merge.call({caseless:n},t,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function i(t,e,n){return Q.isUndefined(e)?Q.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!Q.isUndefined(e))return r(void 0,e)}function a(t,e){return Q.isUndefined(e)?Q.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,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)=>i(kt(t),kt(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=c[r]||i,a=o(t[r],e[r],r);Q.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Lt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Lt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Pt={};Lt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new W(r(i," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!Pt[i]&&(Pt[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)}};var Bt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new W("options must be an object",W.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 W("option "+o+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}},validators:Lt};const Gt=Bt.validators;class Ft{constructor(t){this.defaults=t,this.interceptors={request:new ct,response:new ct}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=jt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Bt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),null!=r&&(Q.isFunction(r)?e.paramsSerializer={serialize:r}:Bt.assertOptions(r,{encode:Gt.function,serialize:Gt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Q.merge(i.common,i[e.method]);i&&Q.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=Tt.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=[Mt.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=Mt.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 st(At((t=jt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Q.forEach(["delete","get","head","options"],(function(t){Ft.prototype[t]=function(e,n){return this.request(jt(n||{},{method:t,url:e,data:(n||{}).data}))}})),Q.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(jt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ft.prototype[t]=e(),Ft.prototype[t+"Form"]=e(!0)}));var Vt=Ft;class qt{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 Ct(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)}static source(){let t;return{token:new qt((function(e){t=e})),cancel:t}}}var Ht=qt;const Kt={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(Kt).forEach((([t,e])=>{Kt[e]=t}));var Qt=Kt;const zt=function t(e){const n=new Vt(e),r=p(Vt.prototype.request,n);return Q.extend(r,Vt.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(jt(e,n))},r}(ft);zt.Axios=Vt,zt.CanceledError=Ct,zt.CancelToken=Ht,zt.isCancel=St,zt.VERSION="1.5.1",zt.toFormData=et,zt.AxiosError=W,zt.Cancel=zt.CanceledError,zt.all=function(t){return Promise.all(t)},zt.spread=function(t){return function(e){return t.apply(null,e)}},zt.isAxiosError=function(t){return Q.isObject(t)&&!0===t.isAxiosError},zt.mergeConfig=jt,zt.AxiosHeaders=Tt,zt.formToJSON=t=>lt(Q.isHTMLForm(t)?new FormData(t):t),zt.getAdapter=Ut,zt.HttpStatusCode=Qt,zt.default=zt;var Zt=zt,Jt=Zt.CancelToken,Wt=Zt.isCancel;Zt.Cancel,Zt.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 Yt=function(t){return Zt(t)};function $t(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 Xt(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$t(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var te=function(t,e){var n,r=e.modifyRequestSettings,i=t;return"function"==typeof r&&(n=r(i)),n&&(i=l()(i,n)),i},ee=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 Yt(te(Xt({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 Yt(te(Xt({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:Jt})};function ne(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 re(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ie=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,u=t.apiEndpoints,d=t.monitoringService,l=re({},a);l.apiEndpoints=u,s.setLanguage(l.language);var p=function(t){l.countryCode=t},f=function(){return l.countryCode},h=function(){return c},g={};n.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ee({modifyRequestSettings:l.modifyRequestSettings})});g[e.MODULE_NAME]=e}));var y={};return i.forEach((function(t){var e=t({coreContext:{config:l,i18n:s,monitoringService:d},apiClient:ee({modifyRequestSettings:l.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:re({},g),signature:re({},y),getAllMethods:h,setLanguage:s.setLanguage,setCountryCode:p,getCountryCode:f})};function oe(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 ae=function(n){var r=n.rawSettings,i=n.schema,o=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r);return Object.keys(i).forEach((function(e){var n=i[e],a=r[e];if(n.required&&void 0===a)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===a&&(o[e]=n.default),void 0!==o[e]&&void 0!==n.type&&n.type!==t(o[e]))throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(t(o[e]),'"'))})),o},se={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"}},ce=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."}'),ue=i.t(ce,2),de=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."}'),le=i.t(de,2),pe=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."}'),fe=i.t(pe,2),he=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."}'),ge=i.t(he,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."}'),me=i.t(ye,2),ve=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),Ie={de:ue,en:le,et:fe,lt:ge,lv:me,ru:i.t(ve,2)},Te=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?Ie: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})},Ee=function(t){var e=t.clientId,n=t.remoteMonitoringEnabled,r=t.apiEndpoints;return{dispatch:function(t){var i=t.message;n&&Yt({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:e,source:"browser-client",message:i}})}}};function Se(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 be(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Se(o,r,i,a,s,"next",t)}function s(t){Se(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Ce=i(4687),we=i.n(Ce),Ae=i(361),_e=i.n(Ae)(),Oe=function(t){var e=t;return Wt(t)&&(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},Re=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=_e({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},Ne=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.error},De=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=be(we().mark((function e(){var n,i,o=arguments;return we().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=Ne(n))){e.next=6;break}throw Oe(i);case 6:return e.abrupt("return",r?Re(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};class Ue extends Error{name="NonError";constructor(t){super(Ue._prepareSuperMessage(t))}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const xe=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Me=Symbol(".toJSON was called"),ke=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:i,depth:o})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),o>=i)return a;if("function"==typeof t.toJSON&&!0!==t[Me])return(t=>{t[Me]=!0;const e=t.toJSON();return delete t[Me],e})(t);for(const[n,s]of Object.entries(t))"function"==typeof Buffer&&Buffer.isBuffer(s)?a[n]="[object Buffer]":null===s||"object"!=typeof s||"function"!=typeof s.pipe?"function"!=typeof s&&(s&&"object"==typeof s?e.includes(t[n])?a[n]="[Circular]":(o++,a[n]=ke({from:t[n],seen:[...e],forceEnumerable:r,maxDepth:i,depth:o})):a[n]=s):a[n]="[object Stream]";for(const{property:e,enumerable:n}of xe)"string"==typeof t[e]&&Object.defineProperty(a,e,{value:t[e],enumerable:!!r||n,configurable:!0,writable:!0});return a};function je(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return"object"==typeof t&&null!==t?ke({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):"function"==typeof t?`[Function: ${t.name||"anonymous"}]`:t}function Le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Be=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;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Pe(Pe({},se),n),i=Pe(Pe({},s),t),u=ae({rawSettings:i,schema:r}),d=u.success,l=u.fail,p=u.finished,f=t.language||a.getCurrentLanguage(),h=o.CancelToken.source(),g=h.token,y={onCancelByUser:function(){}},m=function(t){y.onCancelByUser=t},v=function(){h.cancel()},I=function(){y.onCancelByUser(),v()},T=function(){var t=be(we().mark((function t(){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Pe(Pe({},u),{},{language:f,i18n:a,monitoringService:c,cancelToken:g,cancel:v,setOnCancelByUser:m,apiClient:o})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),c.dispatch({message:JSON.stringify(je(t))}),l(Oe(t))})).finally(p);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(je(t))}),l(Oe(t)),p(Oe(t))})),Object.freeze({cancel:I})}})}};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}function Fe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ge(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ve=s.idCard,qe=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.i18n,s=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)),o.get({url:e,cancelToken:t.cancelToken})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=u(r.IDENTIFICATION,Ve,t.countryCode);return o.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,De(s)(Fe(Fe({},e),{},{language:i,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,De(c)(Fe(Fe({},e),{},{cancelToken:n,language:i,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),He=Be(Ve,qe,{countryCode:{type:"string",required:!0}}),Ke=function(){var t=be((function(t){var e=t.fn,n=t.shouldContinue,r=t.interval;return we().mark((function t(){var i,o;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=0,o=function(){var t=be(we().mark((function t(a,s){var c,u;return we().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)}}(),Qe=Ke;function ze(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 Ze(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ze(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Je=s.smartId,We=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,Je);return l.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=u(r.IDENTIFICATION,Je);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},h=function(t){var e=1e5/t.pollInterval,n=0;return Qe({fn:function(){return f(Ze(Ze({},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=Wt(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,De(p)(Ze(Ze({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:Ze({},g.data),cancelToken:c,pollInterval:s,language:d});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ye=Be(Je,We,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function $e(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 Xe(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?$e(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tn=s.mobileId,en=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.language,o=e.apiClient,a=e.started,s=void 0===a?function(){}:a,c=e.idcode,d=e.phone,l=e.pollInterval,p=void 0===l?1e3:l,f=function(t){var e=u(r.IDENTIFICATION,tn,t.countryCode);return o.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})},h=function(t){var e=u(r.IDENTIFICATION,tn,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=12e4/p,n=0;return Qe({fn:function(){return h(Xe(Xe({},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=Wt(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,De(f)(Xe(Xe({},e),{},{cancelToken:n,language:i,idcode:c,phone:d}));case 6:return y=t.sent,s(y),t.next=10,De(g)({config:e,data:y.data,cancelToken:n,language:i,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)}}(),nn=Be(tn,en,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),rn=s.eParakstsMobile,on=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},an=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(on)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sn=Be(rn,an);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 un(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?cn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var dn=s.frejaEid,ln=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d,l,p,f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,i=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,s=void 0===a?1e3:a,c=e.cancelToken,d=e.language,l=e.apiClient,p=function(t){var e=u(r.IDENTIFICATION,dn);return l.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=u(r.IDENTIFICATION,dn);return l.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},h=function(t){var e=1e5/t.pollInterval,n=0;return Qe({fn:function(){return f(un(un({},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=Wt(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,De(p)(un(un({},e),{},{cancelToken:c,language:d,idcode:o}));case 6:return g=t.sent,i(g),t.next=10,De(h)({config:e,data:un({},g.data),cancelToken:c,language:d,pollInterval:s});case 10:return g=t.sent,t.abrupt("return",g);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),pn=Be(dn,ln,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function fn(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 hn(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?fn(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var gn=s.zealId,yn=function(){var t=be(we().mark((function t(e){var n,i,o,a,s,c,d;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,i=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},s=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=u(r.IDENTIFICATION,gn);return i.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,De(a)(hn(hn({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,De(s)(hn(hn({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,De(c)(hn(hn({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),mn=Be(gn,yn,{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),vn=s.mojeId,In=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},Tn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(In)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),En=Be(vn,Tn),Sn=s.edoAppEid,bn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.edoAppEid({clientId:n,redirectUri:r})}}},Cn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(bn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),wn=Be(Sn,Cn),An=s.finnishTrustNetwork,_n=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})}}},On=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(_n)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Rn=Be(An,On),Nn=s.atHandy,Dn=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Un=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Dn)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),xn=Be(Nn,Un),Mn=s.itsme,kn=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})}}},jn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(kn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ln=Be(Mn,jn),Pn=s.itsmeBasic,Bn=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})}}},Gn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Bn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Fn=Be(Pn,Gn),Vn=s.itsmeStandard,qn=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})}}},Hn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(qn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Kn=Be(Vn,Hn),Qn=s.seBankId,zn=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})}}},Zn=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(zn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Jn=Be(Qn,Zn),Wn=s.idin,Yn=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})}}},$n=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Yn)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Xn=Be(Wn,$n),tr=s.idinCustomerId,er=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})}}},nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(er)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rr=Be(tr,nr),ir=s.verifai,or=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})}}},ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(or)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),sr=Be(ir,ar),cr=s.yoonik,ur=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})}}},dr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(ur)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),lr=Be(cr,dr),pr=s.plMojeId,fr=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.plMojeId({clientId:n,redirectUri:r})}}},hr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(fr)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),gr=Be(pr,hr),yr=s.mitId,mr=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})}}},vr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(mr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ir=Be(yr,vr),Tr=s.norwegianBankId,Er=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})}}},Sr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Er)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),br=Be(Tr,Sr),Cr=s.ftn,wr=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})}}},Ar=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(wr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_r=Be(Cr,Ar),Or=s.gbOneId,Rr=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})}}},Nr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s;return we().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,De(Rr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a});case 3:return s=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(s));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Dr=Be(Or,Nr),Ur=s.veriff,xr=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})}}},Mr=function(){var t=be(we().mark((function t(e){var n,r,i,o,a,s,c;return we().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,De(xr)({apiEndpoints:r,clientId:i,redirectUri:o,language:a,country:s});case 3:return c=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),kr=Be(Ur,Mr),jr=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};(jr.prototype=new Error).name="MethodException";var Lr=jr,Pr={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},Br=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(je(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},Gr=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},o=function(t){return t.data&&"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender},a=function(t){var n=t.countryCode,i=t.clientId,o=t.apiEndpoints,a=u(r.SIGNATURE,e,n);return o.inCurrentMode.idCardIframe({clientId:i,actionType:a.actionType})},s=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Lr({userMessage:n,message:t.message,details:t})},c=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,i=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.style.width="0",a.style.height="0",a.style.position="absolute",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!o(t))return!1;var e=t.data,n=e.operation,r=e.error,i=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==i?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}i.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),i.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},d=function(t){var e=t.messenger,n=t.monitor,r={resolve:null,reject:null};function i(t){if(!o(t))return!1;var e=t.data.certificate||t.data.cert;if(e)r.resolve({data:{certificate:e}}),n.log("Got certificate: ".concat(e));else{var a={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?a=t.data:a.isCancel=!0,r.reject(a)}window.removeEventListener("message",i,!1)}var a=new Promise((function(t,e){r.resolve=t,r.reject=function(t){e(t),n.logError("Failed to get the certificate",t)},window.addEventListener("message",i,!1)}));return e.post({operation:"getCertificate"}),a},l=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:i})},p=function(t){var e=t.messenger,n=t.hexDigest,r=t.monitor,i={resolve:null,reject:null};function a(t){if(!o(t))return!1;var e=t.data.signature_value||t.data.signature;if(e)i.resolve({signature:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,i.reject(n)}window.removeEventListener("message",a,!1)}r.log("Trying to sign the hexDigest: ".concat(n));var s=new Promise((function(t,e){i.resolve=t,i.reject=function(t){e(t),r.logError("Failed to sign the hexdigest",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getSignature",hexDigest:n}),s},f=function(t){var e=t.signature,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureIdCard();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:i})},h=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"id-card",certificate:e,country:n},cancelToken:r})},g=function(){var t=be((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,g=t.i18n,y=t.docId,m=t.cancelToken,v=t.apiClient,I=t.monitoringService,T=t.action,E=t.redirect;return we().mark((function t(){var S,b,C,w,A,_,O,R;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return S=Br({monitoringService:I,moduleName:e}),t.next=3,De(a,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return b=t.sent,t.next=6,De(c,{shouldFormatResult:!1})({iframeUrl:b,iframeHolder:u,i18n:g,monitor:S}).catch((function(t){return s(t,g)}));case 6:return C=t.sent,t.next=9,De(i,{shouldFormatResult:!1})({iframe:C});case 9:return w=t.sent,t.next=12,De(d)({messenger:w,monitor:S}).catch((function(t){return s(t,g)}));case 12:if(A=t.sent,"cscApiAuthorizeCredential"!==T){t.next=18;break}return t.next=16,De(h)({certificate:A.data.certificate,actionType:"id-card",country:n,cancelToken:m,apiEndpoints:o,apiClient:v});case 16:return _=t.sent,t.abrupt("return",De(E,{shouldFormatResult:!1})(_));case 18:return t.next=20,De(l)({certificate:A.data.certificate,clientId:r,docId:y,cancelToken:m,apiEndpoints:o,apiClient:v,monitor:S});case 20:return O=t.sent,t.next=23,De(p,{shouldFormatResult:!1})({messenger:w,hexDigest:O.data.hexDigest,monitor:S}).catch((function(t){return s(t,g)}));case 23:return R=t.sent,t.abrupt("return",De(f)({signature:R.signature,clientId:r,docId:y,cancelToken:m,apiEndpoints:o,apiClient:v}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,g,Pr)},Fr=Gr({moduleName:s.idCardSignature,createModuleCreator:Be});function Vr(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}var qr=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 Qe({fn:function(){return o.apply(void 0,function(t){if(Array.isArray(t))return Vr(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Vr(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)?Vr(t,e):void 0}}(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.")}());var t},shouldContinue:function(t){var n=t.result;c(t);var r=n&&n.data&&n.data.status,i=Wt(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})}}},Hr=s.mobileIdSignature,Kr=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})},Qr=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})},zr=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})},Zr=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 qr({pollInterval:2e3,maxPollDuration:12e4,fn:zr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Jr=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.idcode,l=t.phone,p=t.countryCode,f=t.started,h=t.action,g=t.redirect;return we().mark((function t(){var y,m,v;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("cscApiAuthorizeCredential"!==h){t.next=5;break}return t.next=3,De(Kr)({country:p,idcode:d,phone:l,cancelToken:i,apiEndpoints:o,apiClient:a});case 3:return y=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(y));case 5:return m=u(r.SIGNATURE,Hr,p),s.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,De(Qr)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:d,phone:l,countryCode:p});case 9:return v=t.sent,f(v),t.abrupt("return",De(Zr)({data:v.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Wr=Be(Hr,Jr,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yr=s.smartIdSignature,$r=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})},Xr=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})},ti=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 qr({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(t){c({data:t&&t.result&&t.result.data||{}})},fn:Xr,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ei=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})},ni=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.countryCode,f=t.started,h=t.action,g=t.redirect,y=t.onTryComplete,m=t.waitForChallengeCode,v=void 0===m||m;return we().mark((function t(){var m,I,T;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,Yr,p),"cscApiAuthorizeCredential"!==h){t.next=6;break}return t.next=4,De(ei)({country:p,idcode:l,cancelToken:o,apiEndpoints:a,apiClient:s});case 4:return I=t.sent,t.abrupt("return",De(g,{shouldFormatResult:!1})(I));case 6:return c.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,De($r)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,countryCode:p,contractId:i,waitForChallengeCode:v});case 9:return T=t.sent,f(T),t.abrupt("return",De(ti)({data:T.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,onTryComplete:y}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ri=Be(Yr,ni,{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ii=s.evroTrustSignature,oi=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})},ai=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})},si=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 qr({pollInterval:2e3,fn:ai,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ci=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.idcode,p=t.phone,f=t.email,h=t.countryCode,g=t.started;return we().mark((function t(){var y,m;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,ii,h),c.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(oi)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,idcode:l,phone:p,email:f,countryCode:h,contractId:i,actionType:y.actionType});case 4:return m=t.sent,g(m),t.abrupt("return",De(si)({data:m.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ui=Be(ii,ci,{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),di=s.otpSignature,li=function(){var t=be((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 we().mark((function t(){var c;return we().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)}}(),pi=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)}))},fi=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})},hi=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl,g=t.started,y=t.confirmationCodeRequest,m=t.setOnCancelByUser;return we().mark((function t(){var v,I,T;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,di,d),console.log(v),s.dispatch({message:"".concat(v.actionType,": signing started")}),p||l){t.next=13;break}return t.next=6,De(li)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:v.actionType});case 6:return I=t.sent,g(I),t.next=10,De(pi,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:y,setOnCancelByUser:m});case 10:T=t.sent,p=T.smsToken,l=T.emailToken;case 13:return t.abrupt("return",De(fi)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 14:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),gi=Be(di,hi,{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),yi={docId:{type:"string",required:!0},confirmedBySigner:{validator:function(t){return[null,!0,!1].includes(t)}}},mi=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})},vi=function(t){var e=t.moduleName,n=t.createModuleCreator,i=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})},o=function(){var t=be((function(t){var n=t.clientId,o=t.docId,a=t.contractId,s=t.cancelToken,c=t.apiEndpoints,d=t.apiClient,l=t.monitoringService,p=t.language,f=t.countryCode,h=t.redirect,g=t.confirmedBySigner,y=t.action;return we().mark((function t(){var m,v,I;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=u(r.SIGNATURE,e,f),"cscApiAuthorizeCredential"!==y){t.next=6;break}return t.next=4,De(mi)({country:f,cancelToken:s,apiEndpoints:c,apiClient:d,actionType:m.actionType});case 4:return v=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(v));case 6:return l.dispatch({message:"".concat(m.actionType,": signing started")}),t.next=9,De(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:d,language:p,actionType:m.actionType,confirmedBySigner:g,country:f});case 9:return I=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(I));case 11:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,o,yi)},Ii=vi({moduleName:s.eParakstsMobileSignature,createModuleCreator:Be}),Ti=vi({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:Be}),Ei=vi({moduleName:s.ftnSignature,createModuleCreator:Be}),Si=vi({moduleName:s.atHandySignature,createModuleCreator:Be}),bi=s.zealIdSignature,Ci=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.docId;return{data:{redirect_uri:e.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},wi=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Ci)({apiEndpoints:r,clientId:i,docId:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ai=Be(bi,wi),_i=vi({moduleName:s.mojeIdSignature,createModuleCreator:Be}),Oi=vi({moduleName:s.googleSignature,createModuleCreator:Be}),Ri=vi({moduleName:s.seBankIdSignature,createModuleCreator:Be}),Ni=s.dTrustSignMeSignature,Di=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})},Ui=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.redirect;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Ni,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Di)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xi=Be(Ni,Ui,{username:{type:"string",required:!0}}),Mi=s.dTrustSignMeAdvSignature,ki=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})},ji=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.redirect;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Mi,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(ki)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Li=Be(Mi,ji,{username:{type:"string",required:!0}});function Pi(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function Bi(t,e){return t&e}function Gi(t,e){return t|e}function Fi(t,e){return t^e}function Vi(t,e){return t&~e}function qi(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 Hi(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Ki,Qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function zi(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Qi.charAt(n>>6)+Qi.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Qi.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Qi.charAt(n>>2)+Qi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Zi(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Qi.indexOf(t.charAt(e));o<0||(0==r?(n+=Pi(o>>2),i=3&o,r=1):1==r?(n+=Pi(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Pi(i),n+=Pi(o>>2),i=3&o,r=3):(n+=Pi(i<<2|o>>4),n+=Pi(15&o),r=0))}return 1==r&&(n+=Pi(i<<2)),n}var Ji,Wi={decode:function(t){var e;if(void 0===Ji){var n="= \f\n\r\t \u2028\u2029";for(Ji=Object.create(null),e=0;e<64;++e)Ji["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(Ji["-"]=62,Ji._=63,e=0;e<n.length;++e)Ji[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=Ji[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=Wi.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 Wi.decode(t)}},Yi=1e13,$i=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)<Yi?e=0:r-=(e=0|r/Yi)*Yi,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+=Yi,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+=(Yi+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*Yi+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Xi=/^(\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)?)?$/,to=/^(\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 eo(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var no,ro=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?Xi:to).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 $i(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+eo(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return eo(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 $i,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 $i)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 eo(r,n);i=new $i,o=0}}return o>0&&(r+=".incomplete"),r},t}(),io=function(){function t(t,e,n,r,i){if(!(r instanceof oo))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 eo(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return eo(this.stream.parseStringISO(e,e+n),t);case 30:return eo(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 ro?e:new ro(e,0);var r=new ro(n),i=new oo(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}(),oo=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 $i;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}(),ao=[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],so=(1<<26)/ao[ao.length-1],co=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=Pi(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+=Pi(n));return i?o:"0"},t.prototype.negate=function(){var e=ho();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)+So(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=ho();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 lo(e):new po(e),this.exp(t,n)},t.prototype.clone=function(){var t=ho();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=ho();return this.bitwiseTo(t,Bi,e),e},t.prototype.or=function(t){var e=ho();return this.bitwiseTo(t,Gi,e),e},t.prototype.xor=function(t){var e=ho();return this.bitwiseTo(t,Fi,e),e},t.prototype.andNot=function(t){var e=ho();return this.bitwiseTo(t,Vi,e),e},t.prototype.not=function(){for(var t=ho(),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=ho();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=ho();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+qi(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+=Hi(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,Gi)},t.prototype.clearBit=function(t){return this.changeBit(t,Vi)},t.prototype.flipBit=function(t){return this.changeBit(t,Fi)},t.prototype.add=function(t){var e=ho();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=ho();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=ho();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=ho();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=ho();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=ho(),n=ho();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=Eo(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new lo(e):e.isEven()?new fo(e):new po(e);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var d=ho();for(r.sqrTo(a[1],d);s<=u;)a[s]=ho(),r.mulTo(d,a[s-2],a[s]),s+=2}var l,p,f=t.t-1,h=!0,g=ho();for(i=So(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),h)a[l].copyTo(o),h=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[l],o)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=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=Eo(1),a=Eo(0),s=Eo(0),c=Eo(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 uo)},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]<=ao[ao.length-1]){for(e=0;e<ao.length;++e)if(n[0]==ao[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<ao.length;){for(var r=ao[e],i=e+1;i<ao.length&&r<so;)r*=ao[i++];for(r=n.modInt(r);e<i;)if(r%ao[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]:To(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=ho());var a=ho(),s=this.s,c=e.s,u=this.DB-So(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,h=(1<<this.F1)/p,g=1<<this.F2,y=r.t,m=y-d,v=null==n?ho():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]+g)*h);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=ho(),i=ho(),o=n.convert(this),a=So(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=Eo(n),i=ho(),o=ho(),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=To(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),Gi,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)>ao.length&&(e=ao.length);for(var o=ho(),a=0;a<e;++a){o.fromInt(ao[Math.floor(Math.random()*ao.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=ho();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),Gi,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}(),uo=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}(),lo=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}(),po=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=ho();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(co.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=ho();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}(),fo=function(){function t(t){this.m=t,this.r2=ho(),this.q3=ho(),co.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=ho();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 ho(){return new co(null)}function go(t,e){return new co(t,e)}var yo="undefined"!=typeof navigator;yo&&"Microsoft Internet Explorer"==navigator.appName?(co.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},no=30):yo&&"Netscape"!=navigator.appName?(co.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},no=26):(co.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},no=28),co.prototype.DB=no,co.prototype.DM=(1<<no)-1,co.prototype.DV=1<<no,co.prototype.FV=Math.pow(2,52),co.prototype.F1=52-no,co.prototype.F2=2*no-52;var mo,vo,Io=[];for(mo="0".charCodeAt(0),vo=0;vo<=9;++vo)Io[mo++]=vo;for(mo="a".charCodeAt(0),vo=10;vo<36;++vo)Io[mo++]=vo;for(mo="A".charCodeAt(0),vo=10;vo<36;++vo)Io[mo++]=vo;function To(t,e){var n=Io[t.charCodeAt(e)];return null==n?-1:n}function Eo(t){var e=ho();return e.fromInt(t),e}function So(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}co.ZERO=Eo(0),co.ONE=Eo(1);var bo,Co,wo=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}(),Ao=null;if(null==Ao){Ao=[],Co=0;var _o=void 0;if(window.crypto&&window.crypto.getRandomValues){var Oo=new Uint32Array(256);for(window.crypto.getRandomValues(Oo),_o=0;_o<Oo.length;++_o)Ao[Co++]=255&Oo[_o]}var Ro=0,No=function(t){if((Ro=Ro||0)>=256||Co>=256)window.removeEventListener?window.removeEventListener("mousemove",No,!1):window.detachEvent&&window.detachEvent("onmousemove",No);else try{var e=t.x+t.y;Ao[Co++]=255&e,Ro+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",No,!1):window.attachEvent&&window.attachEvent("onmousemove",No)}function Do(){if(null==bo){for(bo=new wo;Co<256;){var t=Math.floor(65536*Math.random());Ao[Co++]=255&t}for(bo.init(Ao),Co=0;Co<Ao.length;++Co)Ao[Co]=0;Co=0}return bo.next()}var Uo=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Do()},t}(),xo=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=go(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 Uo,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 co(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=go(t,16),this.e=parseInt(e,16),this.d=go(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=go(t,16),this.e=parseInt(e,16),this.d=go(n,16),this.p=go(r,16),this.q=go(i,16),this.dmp1=go(o,16),this.dmq1=go(a,16),this.coeff=go(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Uo,r=t>>1;this.e=parseInt(e,16);for(var i=new co(e,16);;){for(;this.p=new co(t-r,1,n),0!=this.p.subtract(co.ONE).gcd(i).compareTo(co.ONE)||!this.p.isProbablePrime(10););for(;this.q=new co(r,1,n),0!=this.q.subtract(co.ONE).gcd(i).compareTo(co.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(co.ONE),s=this.q.subtract(co.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(co.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=go(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 Uo,i=t>>1;this.e=parseInt(e,16);var o=new co(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(co.ONE),r=a.q.subtract(co.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(co.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=ho(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(co.ONE).gcda(o,(function(t){0==t.compareTo(co.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(c,0)}))}))},u=function(){a.p=ho(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(co.ONE).gcda(o,(function(t){0==t.compareTo(co.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 go("0001"+r+"00"+t,16)}((Mo[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=go(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Mo)if(Mo.hasOwnProperty(e)){var n=Mo[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}(),Mo={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},ko={};ko.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 jo={};void 0!==jo.asn1&&jo.asn1||(jo.asn1={}),jo.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 co(r,16).xor(t).add(co.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=jo.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,h=e.DERUTCTime,g=e.DERGeneralizedTime,y=e.DERSequence,m=e.DERSet,v=e.DERTaggedObject,I=e.ASN1Util.newObject,T=Object.keys(t);if(1!=T.length)throw"key of param shall be only one.";var E=T[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":"))throw"undefined key: "+E;if("bool"==E)return new n(t[E]);if("int"==E)return new r(t[E]);if("bitstr"==E)return new i(t[E]);if("octstr"==E)return new o(t[E]);if("null"==E)return new a(t[E]);if("oid"==E)return new s(t[E]);if("enum"==E)return new c(t[E]);if("utf8str"==E)return new u(t[E]);if("numstr"==E)return new d(t[E]);if("prnstr"==E)return new l(t[E]);if("telstr"==E)return new p(t[E]);if("ia5str"==E)return new f(t[E]);if("utctime"==E)return new h(t[E]);if("gentime"==E)return new g(t[E]);if("seq"==E){for(var S=t[E],b=[],C=0;C<S.length;C++){var w=I(S[C]);b.push(w)}return new y({array:b})}if("set"==E){for(S=t[E],b=[],C=0;C<S.length;C++)w=I(S[C]),b.push(w);return new m({array:b})}if("tag"==E){var A=t[E];if("[object Array]"===Object.prototype.toString.call(A)&&3==A.length){var _=I(A[2]);return new v({tag:A[0],explicit:A[1],obj:_})}var O={};if(void 0!==A.explicit&&(O.explicit=A.explicit),void 0!==A.tag&&(O.tag=A.tag),void 0===A.obj)throw"obj shall be specified for 'tag'.";return O.obj=I(A.obj),new v(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},jo.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 co(r,2).toString(10),r="")}return e},jo.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 co(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},jo.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""}},jo.asn1.DERAbstractString=function(t){jo.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))},ko.lang.extend(jo.asn1.DERAbstractString,jo.asn1.ASN1Object),jo.asn1.DERAbstractTime=function(t){jo.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}},ko.lang.extend(jo.asn1.DERAbstractTime,jo.asn1.ASN1Object),jo.asn1.DERAbstractStructured=function(t){jo.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)},ko.lang.extend(jo.asn1.DERAbstractStructured,jo.asn1.ASN1Object),jo.asn1.DERBoolean=function(){jo.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},ko.lang.extend(jo.asn1.DERBoolean,jo.asn1.ASN1Object),jo.asn1.DERInteger=function(t){jo.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=jo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new co(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))},ko.lang.extend(jo.asn1.DERInteger,jo.asn1.ASN1Object),jo.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=jo.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}jo.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))},ko.lang.extend(jo.asn1.DERBitString,jo.asn1.ASN1Object),jo.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=jo.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}jo.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},ko.lang.extend(jo.asn1.DEROctetString,jo.asn1.DERAbstractString),jo.asn1.DERNull=function(){jo.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},ko.lang.extend(jo.asn1.DERNull,jo.asn1.ASN1Object),jo.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 co(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};jo.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=jo.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))},ko.lang.extend(jo.asn1.DERObjectIdentifier,jo.asn1.ASN1Object),jo.asn1.DEREnumerated=function(t){jo.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=jo.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new co(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))},ko.lang.extend(jo.asn1.DEREnumerated,jo.asn1.ASN1Object),jo.asn1.DERUTF8String=function(t){jo.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},ko.lang.extend(jo.asn1.DERUTF8String,jo.asn1.DERAbstractString),jo.asn1.DERNumericString=function(t){jo.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},ko.lang.extend(jo.asn1.DERNumericString,jo.asn1.DERAbstractString),jo.asn1.DERPrintableString=function(t){jo.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},ko.lang.extend(jo.asn1.DERPrintableString,jo.asn1.DERAbstractString),jo.asn1.DERTeletexString=function(t){jo.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},ko.lang.extend(jo.asn1.DERTeletexString,jo.asn1.DERAbstractString),jo.asn1.DERIA5String=function(t){jo.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},ko.lang.extend(jo.asn1.DERIA5String,jo.asn1.DERAbstractString),jo.asn1.DERUTCTime=function(t){jo.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))},ko.lang.extend(jo.asn1.DERUTCTime,jo.asn1.DERAbstractTime),jo.asn1.DERGeneralizedTime=function(t){jo.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))},ko.lang.extend(jo.asn1.DERGeneralizedTime,jo.asn1.DERAbstractTime),jo.asn1.DERSequence=function(t){jo.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}},ko.lang.extend(jo.asn1.DERSequence,jo.asn1.DERAbstractStructured),jo.asn1.DERSet=function(t){jo.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)},ko.lang.extend(jo.asn1.DERSet,jo.asn1.DERAbstractStructured),jo.asn1.DERTaggedObject=function(t){jo.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)))},ko.lang.extend(jo.asn1.DERTaggedObject,jo.asn1.ASN1Object);var Lo,Po=(Lo=function(t,e){return Lo=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])},Lo(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}Lo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Bo=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 Po(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===Ki){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Ki={},e=0;e<16;++e)Ki[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Ki[n.charAt(e)]=e;for(e=0;e<r.length;++e)Ki[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=Ki[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):Wi.unarmor(t),i=io.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=go(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=go(o,16);var a=i.sub[4].getHexStringValue();this.p=go(a,16);var s=i.sub[5].getHexStringValue();this.q=go(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=go(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=go(u,16);var d=i.sub[8].getHexStringValue();this.coeff=go(d,16)}else{if(2!==i.sub.length)return!1;var l=i.sub[1].sub[0];e=l.sub[0].getHexStringValue(),this.n=go(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 jo.asn1.DERInteger({int:0}),new jo.asn1.DERInteger({bigint:this.n}),new jo.asn1.DERInteger({int:this.e}),new jo.asn1.DERInteger({bigint:this.d}),new jo.asn1.DERInteger({bigint:this.p}),new jo.asn1.DERInteger({bigint:this.q}),new jo.asn1.DERInteger({bigint:this.dmp1}),new jo.asn1.DERInteger({bigint:this.dmq1}),new jo.asn1.DERInteger({bigint:this.coeff})]};return new jo.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return zi(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new jo.asn1.DERSequence({array:[new jo.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new jo.asn1.DERNull]}),e=new jo.asn1.DERSequence({array:[new jo.asn1.DERInteger({bigint:this.n}),new jo.asn1.DERInteger({int:this.e})]}),n=new jo.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new jo.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return zi(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}(xo),Go=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 Bo(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(Zi(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return zi(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return zi(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Zi(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Bo,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}(),Fo=s.chaveMovelSignature,Vo={publicKey:null},qo=function(){var t=be((function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.cancelToken;return we().mark((function t(){var i,o,a;return we().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),Vo.publicKey=a,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ho=function(){var t=be((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 we().mark((function t(){var d,l,p;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return d=s.inCurrentMode.startSigning(),t.next=3,qo({apiClient:c,apiEndpoints:s,cancelToken:a});case 3:return l=t.sent,(p=new Go).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)}}(),Ko=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)}))},Qo=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 Go;return u.setPublicKey(Vo.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})},zo=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.countryCode,d=t.language,l=t.started,p=t.confirmationCodeRequest,f=t.signingPin,h=t.phone,g=t.setOnCancelByUser;return we().mark((function t(){var y,m,v;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return y=u(r.SIGNATURE,Fo,c),s.dispatch({message:"".concat(y.actionType,": signing started")}),t.next=4,De(Ho)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:d,actionType:y.actionType,signingPin:f,phone:h});case 4:return m=t.sent,l(m),t.next=8,De(Ko,{shouldFormatResult:!1})({startSigningResult:m,confirmationCodeRequest:p,setOnCancelByUser:g});case 8:return v=t.sent,t.abrupt("return",De(Qo)({token:m.data.token,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:e,confirmationCode:v}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Zo=Be(Fo,zo,{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Jo=vi({moduleName:s.mitIdSignature,createModuleCreator:Be}),Wo=s.ftnQesSignature,Yo=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})},$o=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,Wo,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(Yo)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Xo=Be(Wo,$o,{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),ta=s.noBankIdAdvSignature,ea=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})},na=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.name,f=t.redirect;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,ta,l),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(ea)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,name:p,actionType:h.actionType});case 4:return g=t.sent,t.abrupt("return",De(f,{shouldFormatResult:!1})(g));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ra=Be(ta,na,{name:{type:"string",required:!0}}),ia=Gr({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:Be}),oa=Gr({moduleName:s.certSignUsbTokenSignature,createModuleCreator:Be}),aa=vi({moduleName:s.idinSignature,createModuleCreator:Be}),sa=vi({moduleName:s.verifaiSignature,createModuleCreator:Be}),ca=s.spidQesSignature,ua=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})},da=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.phone,f=t.email,h=t.redirect;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ca,l),c.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(ua)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:p,email:f,actionType:g.actionType});case 4:return y=t.sent,t.abrupt("return",De(h,{shouldFormatResult:!1})(y));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),la=Be(ca,da,{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),pa=s.frejaSimpleSignature,fa=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})},ha=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})},ga=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 qr({pollInterval:2e3,fn:ha,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ya=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,pa,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(fa)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,p(h),t.abrupt("return",De(ga)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ma=Be(pa,ya,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),va=s.audkenniQesSignature,Ia=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})},Ta=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})},Ea=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})},Sa=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 qr({pollInterval:2e3,fn:Ta,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ba=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 qr({pollInterval:2e3,fn:Ea,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ca=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.started;return we().mark((function t(){var f,h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,va,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(Ia)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.next=7,De(Sa)({data:h.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e});case 7:return g=t.sent,p(g),t.abrupt("return",De(ba)({data:g.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:e}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),wa=Be(va,Ca,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Aa=vi({moduleName:s.yesComQesSignature,createModuleCreator:Be}),_a=vi({moduleName:s.simplySignQesSignature,createModuleCreator:Be}),Oa=s.uanatacaQesSignature,Ra=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})},Na=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)}))},Da=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})},Ua=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.countryCode,p=t.username,f=t.password,h=t.pin,g=t.confirmationCodeRequest,y=t.setOnCancelByUser,m=t.started;return we().mark((function t(){var v,I,T;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=u(r.SIGNATURE,Oa,l),c.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=4,De(Ra)({contractId:i,clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:p,password:f,pin:h,actionType:v.actionType});case 4:return I=t.sent,m(I),t.next=8,De(Na,{shouldFormatResult:!1})({startSigningResult:I,confirmationCodeRequest:g,setOnCancelByUser:y});case 8:return T=t.sent,t.abrupt("return",De(Da)({token:I.data.token,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e,confirmationCode:T}));case 10:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),xa=Be(Oa,Ua,{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),Ma=vi({moduleName:s.certsignWebapiQesSignature,createModuleCreator:Be}),ka=s.halcomQesSignature,ja=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})},La=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})},Pa=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})},Ba=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 qr({pollInterval:2e3,fn:Pa,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ga=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.username,p=t.phone,f=t.email,h=t.countryCode,g=t.started,y=t.action,m=t.redirect;return we().mark((function t(){var v,I,T;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=u(r.SIGNATURE,ka,h),c.dispatch({message:"".concat(v.actionType,": signing started")}),"cscApiAuthorizeCredential"!==y){t.next=7;break}return t.next=5,De(ja)({country:h,username:l,phone:p,email:f,cancelToken:o,apiEndpoints:a,apiClient:s});case 5:return I=t.sent,t.abrupt("return",De(m,{shouldFormatResult:!1})(I));case 7:return t.next=9,De(La)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,username:l,phone:p,email:f,countryCode:h,contractId:i,actionType:v.actionType});case 9:return T=t.sent,g(T),t.abrupt("return",De(Ba)({data:T.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 12:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Fa=Be(ka,Ga,{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Va=s.swissIdQesSignature,qa=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})},Ha=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})},Ka=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 qr({pollInterval:2e3,fn:Ha,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Qa=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.email,p=t.countryCode,f=t.started;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Va,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(qa)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,email:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",De(Ka)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),za=Be(Va,Qa,{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Za=s.swissComQesSignature,Ja=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})},Wa=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})},Ya=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 qr({pollInterval:2e3,fn:Wa,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},$a=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.contractId,o=t.cancelToken,a=t.apiEndpoints,s=t.apiClient,c=t.monitoringService,d=t.language,l=t.phone,p=t.countryCode,f=t.started;return we().mark((function t(){var h,g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=u(r.SIGNATURE,Za,p),c.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=4,De(Ja)({clientId:e,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:d,phone:l,countryCode:p,contractId:i,actionType:h.actionType});case 4:return g=t.sent,f(g),t.abrupt("return",De(Ya)({data:g.data,apiClient:s,apiEndpoints:a,language:d,cancelToken:o,docId:n,clientId:e}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Xa=Be(Za,$a,{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),ts=vi({moduleName:s.mitIdAdvancedSignature,createModuleCreator:Be}),es=vi({moduleName:s.mitIdQesSignature,createModuleCreator:Be}),ns=vi({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:Be}),rs=vi({moduleName:s.seBankIdQesSignature,createModuleCreator:Be}),is=s.frejaAdvancedSignature,os=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})},as=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,is,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(os)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ss=Be(is,as,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),cs=s.frejaQesSignature,us=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})},ds=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.idcode,d=t.countryCode,l=t.language,p=t.redirect;return we().mark((function t(){var f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f=u(r.SIGNATURE,cs,d),s.dispatch({message:"".concat(f.actionType,": signing started")}),t.next=4,De(us)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:l,actionType:f.actionType,countryCode:d});case 4:return h=t.sent,t.abrupt("return",De(p,{shouldFormatResult:!1})(h));case 6:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ls=Be(cs,ds,{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ps=vi({moduleName:s.gbOneIdAdvancedSignature,createModuleCreator:Be}),fs=s.handwrittenSignature,hs=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})},gs=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.countryCode,l=t.emailToken,p=t.smsToken,f=t.handwrittenSignatureData,h=t.handwrittenSignatureDataUrl;return we().mark((function t(){var g;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,fs,d),console.log(g),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",De(hs)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,emailToken:l,smsToken:p,handwrittenSignatureData:f,handwrittenSignatureDataUrl:h}));case 4:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),ys=Be(fs,gs,{docId:{type:"string",required:!0}}),ms=s.haricaQesSignature,vs=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})},Is=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})},Ts=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 qr({pollInterval:2e3,fn:Is,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:d}]}).start()},Es=function(){var t=be((function(t){var e=t.clientId,n=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=t.monitoringService,c=t.language,d=t.username,l=t.password,p=t.otpCode,f=t.countryCode,h=t.started;return we().mark((function t(){var g,y;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g=u(r.SIGNATURE,ms,f),s.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=4,De(vs)({clientId:e,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:g.actionType});case 4:return y=t.sent,h(y),t.abrupt("return",De(Ts)({data:y.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:e,username:d,password:l,otpCode:p}));case 7:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}(),Ss=Be(ms,Es,{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}}),bs=vi({moduleName:s.veriffAdvancedSignature,createModuleCreator:Be}),Cs={iframeHolder:{type:"object"},docId:{type:"string",required:!0}},ws=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(je(r));e.dispatch({message:"".concat(n,": ").concat(t,", reason: ").concat(i)})}})},As=function(t){var e=t.moduleName,n=t.createModuleCreator,i=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},o=function(t){return t.data&&"EIDEASY_TRUST1CONNECTOR_INTEGRATION"===t.data.sender},s=function(t){var n=t.countryCode,i=t.clientId,o=t.apiEndpoints,a=u(r.SIGNATURE,e,n);return o.inCurrentMode.idCardIframe({clientId:i,actionType:a.actionType})},c=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Lr({userMessage:n,message:t.message,details:t})},d=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,i=t.monitor,a=document.createElement("iframe");a.setAttribute("src",n),a.setAttribute("referrerpolicy","origin"),a.setAttribute("allow","clipboard-write"),a.style.width="100%",a.style.height="100px",a.style.position="relative",a.style.border="0",e.innerHTML="";var s={resolve:null,reject:null};function c(t){if(!o(t))return!1;var e=t.data,n=e.operation,r=e.error,i=e.status;r||"ready"!==n&&"welcome"!==n||"OK"!==i?s.reject(t.data):s.resolve(a),window.removeEventListener("message",c,!1)}i.log("Trying to create iframe with src: ".concat(n));var u=new Promise((function(t,e){s.resolve=t,s.reject=function(t){e(t),i.logError("Iframe creation failed",t)},window.addEventListener("message",c,!1),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(a),u},l=function(t){var e=t.messenger,n=t.country,r=t.monitor,i={resolve:null,reject:null};function a(t){if(!o(t))return!1;var e=t.data.certificate;if(e)i.resolve({data:{certificate:e}}),r.log("Got certificate: ".concat(e));else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,i.reject(n)}window.removeEventListener("message",a,!1)}var s=new Promise((function(t,e){i.resolve=t,i.reject=function(t){e(t),r.logError("Failed to get the certificate",t)},window.addEventListener("message",a,!1)}));return e.post({operation:"getCertificate",country:n}),s},p=function(t){var e=t.certificate,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,s=t.apiClient,c=o.inCurrentMode.startSigning();return s.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:a.TRUST1CONNECTOR_ID_SIGNATURE,base64_certificate:e},cancelToken:i})},f=function(t){var e=t.messenger,n=t.signedInfoDigests,r=t.country,i=t.monitor,a={resolve:null,reject:null};function s(t){if(!o(t))return!1;var e=t.data.signatures;if(e)a.resolve({signatures:e});else{var n={};!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message?n=t.data:n.isCancel=!0,a.reject(n)}window.removeEventListener("message",s,!1)}i.log("Trying to sign the signedInfoDigests: ".concat(JSON.stringify(n)));var c=new Promise((function(t,e){a.resolve=t,a.reject=function(t){e(t),i.logError("Failed to sign the signedInfoDigests",t)},window.addEventListener("message",s,!1)}));return e.post({operation:"getSignature",signedInfoDigests:n,country:r}),c},h=function(t){var e=t.signatures,n=t.clientId,r=t.docId,i=t.cancelToken,o=t.apiEndpoints,a=t.apiClient,s=o.inCurrentMode.completeSignatureTrust1Connector();return a.post({url:s,withCredentials:!1,data:{client_id:n,doc_id:r,signatures:e},cancelToken:i})},g=function(t){var e=t.certificate,n=t.country,r=t.cancelToken,i=t.apiEndpoints,o=t.apiClient,s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a.TRUST1CONNECTOR_ID_SIGNATURE,certificate:e,country:n},cancelToken:r})},y=function(){var t=be((function(t){var n=t.countryCode,r=t.clientId,o=t.apiEndpoints,u=t.iframeHolder,y=t.i18n,m=t.docId,v=t.cancelToken,I=t.apiClient,T=t.monitoringService,E=t.action,S=t.redirect;return we().mark((function t(){var b,C,w,A,_,O,R,N;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b=ws({monitoringService:T,moduleName:e}),t.next=3,De(s,{shouldFormatResult:!1})({countryCode:n,clientId:r,apiEndpoints:o});case 3:return C=t.sent,t.next=6,De(d,{shouldFormatResult:!1})({iframeUrl:C,iframeHolder:u,i18n:y,monitor:b}).catch((function(t){return c(t,y)}));case 6:return w=t.sent,t.next=9,De(i,{shouldFormatResult:!1})({iframe:w});case 9:return A=t.sent,t.next=12,De(l)({messenger:A,country:n,monitor:b}).catch((function(t){return c(t,y)}));case 12:if(_=t.sent,"cscApiAuthorizeCredential"!==E){t.next=18;break}return t.next=16,De(g)({certificate:_.data.certificate,actionType:a.TRUST1CONNECTOR_ID_SIGNATURE,country:n,cancelToken:v,apiEndpoints:o,apiClient:I});case 16:return O=t.sent,t.abrupt("return",De(S,{shouldFormatResult:!1})(O));case 18:return t.next=20,De(p)({certificate:_.data.certificate,clientId:r,docId:m,cancelToken:v,apiEndpoints:o,apiClient:I,monitor:b});case 20:return R=t.sent,t.next=23,De(f,{shouldFormatResult:!1})({messenger:A,signedInfoDigests:R.data.signedInfoDigests,country:n,monitor:b}).catch((function(t){return c(t,y)}));case 23:return N=t.sent,t.abrupt("return",De(h)({signatures:N.signatures,clientId:r,docId:m,cancelToken:v,apiEndpoints:o,apiClient:I}));case 25:case"end":return t.stop()}}),t)}))()}));return function(e){return t.apply(this,arguments)}}();return n(e,y,Cs)}({moduleName:s.trust1ConnectorIdCardSignature,createModuleCreator:Be}),_s=Object.freeze({sandbox:"sandbox",production:"production"});function Os(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 Rs(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Os(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Ns=function(t,e,n){var r={};return Object.keys(t).forEach((function(i){r[i]=function(t,e,n){return function(r){var i=Rs(Rs({},e),r);return n?n(t(i)):t(i)}}(t[i],e,n)})),r},Ds=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},Us=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Rs({base:function(t){return t.baseUrl},readCard:function(t){var e=t.countryCode,r=void 0===e?n.countryCode.toLowerCase():e,i=t.clientId,o="eideasy.com";return n.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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({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 Ds({method:"veriff-login",baseUrl:e,state:n,clientId:r,redirectUri:i,language:o,country:a})},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureTrust1Connector:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/trust1connector-signature/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")},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")},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")},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")}},r),o=(e(t={},_s.production,Rs({},Ns(i,{baseUrl:r.base?r.base():"https://id.eideasy.com",state:n.state},n.modifyEndpointUrl))),e(t,_s.sandbox,Rs({},Ns(i,{baseUrl:r.base?r.base():"https://test.eideasy.com",state:n.state},n.modifyEndpointUrl))),t);return{get inCurrentMode(){var t=n.sandbox?_s.sandbox:_s.production;return o[t]}}},xs=s.eParakstsSmartCard,Ms=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},ks=function(){var t=be(we().mark((function t(e){var n,r,i,o,a;return we().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,De(Ms)({apiEndpoints:r,clientId:i,redirectUri:o});case 3:return a=t.sent,t.abrupt("return",De(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),js=Be(xs,ks),Ls=vi({moduleName:s.itsmeQesSignature,createModuleCreator:Be}),Ps=vi({moduleName:s.frIdentAdvancedSignature,createModuleCreator:Be}),Bs=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ae({rawSettings:t,schema:se}),n=Te({currentLanguage:"en"}),r=Us({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),i=Ee({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return ie({settings:e,i18n:n,monitoringService:i,apiEndpoints:r,identificationModules:[He,Ye,nn,sn,js,pn,mn,En,wn,Rn,xn,Ln,Fn,Kn,Jn,Xn,rr,sr,lr,gr,Ir,br,_r,Dr,kr],signingModules:[Fr,Wr,ri,ui,gi,Ii,Ti,Ei,Xo,Si,Ai,_i,Oi,Ri,xi,Li,Zo,Jo,ra,ia,oa,aa,sa,la,ma,wa,Aa,_a,xa,Ma,Fa,za,Xa,ts,es,ns,rs,ss,ls,Ls,Ps,ps,ys,Ss,bs,As]})},Gs=Bs}(),o}()}));