@eid-easy/eideasy-browser-client 2.145.0 → 2.146.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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eidEasyBrowserClient=t():e.eidEasyBrowserClient=t()}(self,()=>(()=>{var e,t,n={2:(e,t,n)=>{var r=n(2199),i=n(4664),o=n(5950);e.exports=function(e){return r(e,o,i)}},79:(e,t,n)=>{var r=n(3702),i=n(80),o=n(4739),a=n(8655),s=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},80:(e,t,n)=>{var r=n(6025),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},659:(e,t,n)=>{var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},695:(e,t,n)=>{var r=n(8096),i=n(2428),o=n(6449),a=n(3656),s=n(361),c=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&c(e),g=n||l||d||p,f=g?r(e.length,String):[],h=f.length;for(var y in e)!t&&!u.call(e,y)||g&&("length"==y||d&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||f.push(y);return f}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),i=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},999:(e,t,n)=>{var r=n(9302),i=n(6800);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t})}},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},1331:(e,t,n)=>{var r=n(2552),i=n(8879),o=n(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1549:(e,t,n)=>{var r=n(2032),i=n(3862),o=n(6721),a=n(2749),s=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},1791:(e,t,n)=>{var r=n(6547),i=n(3360);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=o?o(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?i(n,u,l):r(n,u,l)}return n}},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),i=n(3805);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2199:(e,t,n)=>{var r=n(4528),i=n(6449);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},2271:(e,t,n)=>{var r=n(1791),i=n(4664);e.exports=function(e,t){return r(e,i(e),t)}},2428:(e,t,n)=>{var r=n(7534),i=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},2552:(e,t,n)=>{var r=n(1873),i=n(659),o=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2749:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2824:(e,t,n)=>{var r=n(7805),i=n(3290),o=n(1961),a=n(3007),s=n(5529),c=n(2428),u=n(6449),l=n(3693),d=n(3656),p=n(1882),g=n(3805),f=n(1331),h=n(7167),y=n(4974),T=n(9884);e.exports=function(e,t,n,S,I,m,E){var C=y(e,n),A=y(t,n),v=E.get(A);if(v)r(e,n,v);else{var b=m?m(C,A,n+"",e,t,E):void 0,N=void 0===b;if(N){var _=u(A),R=!_&&d(A),O=!_&&!R&&h(A);b=A,_||R||O?u(C)?b=C:l(C)?b=a(C):R?(N=!1,b=i(A,!0)):O?(N=!1,b=o(A,!0)):b=[]:f(A)||c(A)?(b=C,c(C)?b=T(C):g(C)&&!p(C)||(b=s(A))):N=!1}N&&(E.set(A,b),I(b,A,S,m,E),E.delete(A)),r(e,n,b)}}},2865:(e,t,n)=>{var r=n(9570),i=n(1811)(r);e.exports=i},2903:(e,t,n)=>{var r=n(3805),i=n(5527),o=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},3040:(e,t,n)=>{var r=n(1549),i=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},3243:(e,t,n)=>{var r=n(6110),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},3345:e=>{e.exports=function(){return[]}},3349:(e,t,n)=>{var r=n(2199),i=n(6375),o=n(7241);e.exports=function(e){return r(e,o,i)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},3661:(e,t,n)=>{var r=n(3040),i=n(7670),o=n(289),a=n(4509),s=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},3693:(e,t,n)=>{var r=n(4894),i=n(346);e.exports=function(e){return i(e)&&r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},3736:(e,t,n)=>{var r=n(1873),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3838:(e,t,n)=>{var r=n(1791),i=n(7241);e.exports=function(e,t){return e&&r(t,i(t),e)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},4664:(e,t,n)=>{var r=n(9770),i=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},4733:(e,t,n)=>{var r=n(1791),i=n(5950);e.exports=function(e,t){return e&&r(t,i(t),e)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4894:(e,t,n)=>{var r=n(1882),i=n(294);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),i=n(294),o=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},5083:(e,t,n)=>{var r=n(1882),i=n(7296),o=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},5250:(e,t,n)=>{var r=n(7217),i=n(7805),o=n(6649),a=n(2824),s=n(3805),c=n(7241),u=n(4974);e.exports=function e(t,n,l,d,p){t!==n&&o(n,function(o,c){if(p||(p=new r),s(o))a(t,n,c,l,e,d,p);else{var g=d?d(u(t,c),o,c+"",t,n,p):void 0;void 0===g&&(g=o),i(t,c,g)}},c)}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5364:(e,t,n)=>{var r=n(5250),i=n(999)(function(e,t,n){r(e,t,n)});e.exports=i},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5529:(e,t,n)=>{var r=n(9344),i=n(8879),o=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5861:(e,t,n)=>{var r=n(5580),i=n(8223),o=n(2804),a=n(6545),s=n(8303),c=n(2552),u=n(7473),l="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",f="[object DataView]",h=u(r),y=u(i),T=u(o),S=u(a),I=u(s),m=c;(r&&m(new r(new ArrayBuffer(1)))!=f||i&&m(new i)!=l||o&&m(o.resolve())!=d||a&&m(new a)!=p||s&&m(new s)!=g)&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case h:return f;case y:return l;case T:return d;case S:return p;case I:return g}return t}),e.exports=m},5950:(e,t,n)=>{var r=n(695),i=n(8984),o=n(4894);e.exports=function(e){return o(e)?r(e):i(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6038:(e,t,n)=>{var r=n(5861),i=n(346);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},6110:(e,t,n)=>{var r=n(5083),i=n(392);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},6375:(e,t,n)=>{var r=n(4528),i=n(8879),o=n(4664),a=n(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6547:(e,t,n)=>{var r=n(3360),i=n(5288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6721:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},6757:(e,t,n)=>{var r=n(1033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(c),r(e,this,u)}}},6800:(e,t,n)=>{var r=n(5288),i=n(4894),o=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},7167:(e,t,n)=>{var r=n(4901),i=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},7199:(e,t,n)=>{var r=n(9653),i=n(6169),o=n(3201),a=n(3736),s=n(1961);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},7217:(e,t,n)=>{var r=n(79),i=n(1420),o=n(938),a=n(3605),s=n(9817),c=n(945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},7241:(e,t,n)=>{var r=n(695),i=n(2903),o=n(4894);e.exports=function(e){return o(e)?r(e,!0):i(e)}},7296:(e,t,n)=>{var r,i=n(5481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7334:e=>{e.exports=function(e){return function(){return e}}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7534:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7730:(e,t,n)=>{var r=n(9172),i=n(7301),o=n(6009),a=o&&o.isMap,s=a?i(a):r;e.exports=s},7805:(e,t,n)=>{var r=n(3360),i=n(5288);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8440:(e,t,n)=>{var r=n(6038),i=n(7301),o=n(6009),a=o&&o.isSet,s=a?i(a):r;e.exports=s},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8948:(e,t,n)=>{var r=n(1791),i=n(6375);e.exports=function(e,t){return r(e,i(e),t)}},8984:(e,t,n)=>{var r=n(5527),i=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9172:(e,t,n)=>{var r=n(5861),i=n(346);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},9302:(e,t,n)=>{var r=n(3488),i=n(6757),o=n(2865);e.exports=function(e,t){return o(i(e,t,r),e+"")}},9325:(e,t,n)=>{var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},9344:(e,t,n)=>{var r=n(3805),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9570:(e,t,n)=>{var r=n(7334),i=n(3243),o=n(3488),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9884:(e,t,n)=>{var r=n(1791),i=n(7241);e.exports=function(e){return r(e,i(e))}},9935:e=>{e.exports=function(){return!1}},9999:(e,t,n)=>{var r=n(7217),i=n(3729),o=n(6547),a=n(4733),s=n(3838),c=n(3290),u=n(3007),l=n(2271),d=n(8948),p=n(2),g=n(3349),f=n(5861),h=n(6189),y=n(7199),T=n(5529),S=n(6449),I=n(3656),m=n(7730),E=n(3805),C=n(8440),A=n(5950),v=n(7241),b="[object Arguments]",N="[object Function]",_="[object Object]",R={};R[b]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[_]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[N]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,O,M,D,U){var w,k=1&n,G=2&n,L=4&n;if(O&&(w=D?O(t,M,D,U):O(t)),void 0!==w)return w;if(!E(t))return t;var B=S(t);if(B){if(w=h(t),!k)return u(t,w)}else{var P=f(t),j=P==N||"[object GeneratorFunction]"==P;if(I(t))return c(t,k);if(P==_||P==b||j&&!D){if(w=G||j?{}:T(t),!k)return G?d(t,s(w,t)):l(t,a(w,t))}else{if(!R[P])return D?t:{};w=y(t,P,k)}}U||(U=new r);var F=U.get(t);if(F)return F;U.set(t,w),C(t)?t.forEach(function(r){w.add(e(r,n,O,r,t,U))}):m(t)&&t.forEach(function(r,i){w.set(i,e(r,n,O,i,t,U))});var x=B?void 0:(L?G?g:p:G?v:A)(t);return i(x||t,function(r,i){x&&(r=t[i=r]),o(w,i,e(r,n,O,i,t,U))}),w}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";i.r(o),i.d(o,{allMethods:()=>c,createClient:()=>lu,default:()=>du,getMethodByHandlingModule:()=>u,logLevels:()=>xt,methodActionTypes:()=>a,methodTypes:()=>r,moduleNames:()=>s});var e={};function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}i.r(e),i.d(e,{hasBrowserEnv:()=>Ee,hasStandardBrowserEnv:()=>Ae,hasStandardBrowserWebWorkerEnv:()=>ve,navigator:()=>Ce,origin:()=>be});const 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",EE_WEB_EID_LOGIN:"ee-web-eid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",MIT_ID_2_LOGIN:"mit-id-2-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",NORWEGIAN_BANKID_2_LOGIN:"norwegian-bankid-2-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-login",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-login",LIDENTITE_NUMERIQUE_LOGIN:"lidentite-numerique-login",GOOGLE_WALLET_LOGIN:"google-wallet-login",AT_EUDI_WALLET_LOGIN:"at-eudi-wallet-login",SPID_LOGIN:"spid-login",EVROTRUST_LOGIN:"evrotrust-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CZ_IDCARD_SIGNATURE:"cz-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",EVROTRUST_GEDA_SIGNATURE:"evrotrust-geda-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",SERPRO_ID_ADVANCED_SIGNATURE:"serpro-id-advanced-signature",CZ_BANKID_ADVANCED_SIGNATURE:"cz-bankid-advanced-signature",ABA_DO_QES_SIGNATURE:"aba-do-qes-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",D_TRUST_SIGN_ME_ADVANCED_SIGNATURE:"d-trust-sign-me-adv-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",CL_ECERT_ADVANCED_SIGNATURE:"cl-ecert-advanced-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",SE_BANK_ID_ADVANCED_HASH_SIGNATURE:"se-bankid-adv-hash-signature",DK_MIT_ID_ADVANCED_HASH_SIGNATURE:"dk-mitid-adv-hash-signature",NO_BANK_ID_ADVANCED_HASH_SIGNATURE:"no-bankid-adv-hash-signature",IT_SPID_QUALIFIED_HASH_SIGNATURE:"it-spid-qes-hash-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE:"no-bankid-adv-light-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",INFOCERT_QUALIFIED_SIGNATURE:"infocert-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-advanced-signature",LT_ID_QES_SIGNATURE:"lt-id-qes-signature",CERT_STORE_QES_SIGNATURE:"cert-store-qes-signature",CERT_STORE_ADVANCED_SIGNATURE:"cert-store-advanced-signature",CERT_STORE_ADV_UNVERIFIED_SIGN:"cert-store-adv-unverified-sign",BUYPASS_QES_SIGNATURE:"buypass-qes-signature",FI_FTN_INTESI_ADS_SIGNATURE:"fi-ftn-intesi-adv-signature",TRUST_ASIA_SIGNATURE:"trust-asia-signature",MSC_TRUST_GATE_SIGNATURE:"msc-trust-gate-signature",GSE_ADV_SIGNATURE:"gse-adv-signature",CERTME_QES_SIGNATURE:"certme-qes-signature",ES_LLEIDA_ADV_SIGNATURE:"es-lleida-advanced-signature",ADACOM_QES_SIGNATURE:"adacom-qes-signature",ADACOM_ONE_SHOT_QES_SIGNATURE:"adacom-one-shot-qes-signature",DIIA_QES_SIGNATURE:"diia-qes-signature",EMUDHRA_QES_SIGNATURE:"emudhra-qes-signature",MX_PSC_WORLD_ADVANCED_SIGNATURE:"mx-psc-world-adv-signature",TRANS_SPED_QES_SIGNATURE:"trans-sped-qes-signature",VIDA_ADVANCED_SIGNATURE:"vida-advanced-signature",VN_BKAV_TOKEN_SIGNATURE:"vn-bkav-token-signature",VN_CA2_TOKEN_SIGNATURE:"vn-ca2-token-signature",VN_FAST_TOKEN_SIGNATURE:"vn-fast-token-signature",VN_FPT_TOKEN_SIGNATURE:"vn-fpt-token-signature",VN_SMART_TOKEN_SIGNATURE:"vn-smart-token-signature",VN_VIETTEL_TOKEN_SIGNATURE:"vn-viettel-token-signature",VN_VNPT_TOKEN_SIGNATURE:"vn-vnpt-token-signature",DIGILOGIX_QES_SIGNATURE:"digilogix-qes-signature",BUYPASS_ADVANCED_SIGNATURE:"buypass-adv-signature",IGNISIGN_ADVANCED_SIGNATURE:"ignisign-advanced-signature",B_TRUST_QES_SIGNATURE:"b-trust-qes-signature",ES_AUTOFIRMA_SIGNATURE:"es-autofirma-signature",LOCAL_ADV_UNVERIFIED_SIGNATURE:"local-adv-unverified-signature"},s={idCard:"idCard",mobileId:"mobileId",webEid:"webEid",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",mitId2:"mitId2",norwegianBankId:"norwegianBankId",norwegianBankId2:"norwegianBankId2",ftn:"ftn",gbOneId:"gbOneId",veriff:"veriff",lIdentiteNumerique:"lIdentiteNumerique",googleWallet:"googleWallet",eudiWallet:"eudiWallet",spid:"spid",evrotrust:"evrotrust",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",evroTrustGedaSignature:"evroTrustGedaSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",seBankIdAdvancedHashSignature:"seBankIdAdvancedHashSignature",dkMitIdAdvancedHashSignature:"dkMitIdAdvancedHashSignature",noBankIdAdvancedHashSignature:"noBankIdAdvancedHashSignature",itSpidQualifiedHashSignature:"itSpidQualifiedHashSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",serproIdAdvancedSignature:"serproIdAdvancedSignature",czBankIDSignature:"czBankIDSignature",abaDoSignature:"abaDoSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",dTrustSignMeAdvSignature:"dTrustSignMeAdvSignature",chaveMovelSignature:"chaveMovelSignature",eCertChileSignature:"eCertChileSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",noBankIdAdvLightSignature:"noBankIdAdvLightSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",infoCertQesSignature:"infoCertQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature",ltIdQesSignature:"ltIdQesSignature",buypassQesSignature:"buypassQesSignature",intesiFtnAdvSignature:"intesiFtnAdvSignature",certStoreQesSignature:"certStoreQesSignature",certStoreAdvancedSignature:"certStoreAdvancedSignature",certStoreAdvancedUnverifiedSignature:"certStoreAdvancedUnverifiedSignature",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature",adacomOneShotQesSignature:"adacomOneShotQesSignature",diiaQesSignature:"diiaQesSignature",emudhraQesSignature:"emudhraQesSignature",mxPscWorldAdvancedSignature:"mxPscWorldAdvancedSignature",transSpedQesSignature:"transSpedQesSignature",vidaAdvancedSignature:"vidaAdvancedSignature",vnBkavTokenSignature:"vnBkavTokenSignature",vnCa2TokenSignature:"vnCa2TokenSignature",vnFastTokenSignature:"vnFastTokenSignature",vnFptTokenSignature:"vnFptTokenSignature",vnSmartTokenSignature:"vnSmartTokenSignature",vnViettelTokenSignature:"vnViettelTokenSignature",vnVnptTokenSignature:"vnVnptTokenSignature",digilogixQesSignature:"digilogixQesSignature",buypassAdvancedSignature:"buypassAdvancedSignature",igniSignAdvancedSignature:"igniSignAdvancedSignature",bTrustQesSignature:"bTrustQesSignature",esAutofirmaSignature:"esAutofirmaSignature",localAdvUnverifiedSignature:"localAdvUnverifiedSignature"},c=Object.freeze({[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.EE_WEB_EID_LOGIN,handlingModule:s.webEid,supportedCountries:["EE"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{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.MIT_ID_2_LOGIN,handlingModule:s.mitId2,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.NORWEGIAN_BANKID_2_LOGIN,handlingModule:s.norwegianBankId2,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"]},{actionType:a.LIDENTITE_NUMERIQUE_LOGIN,handlingModule:s.lIdentiteNumerique,supportedCountries:["FR"]},{actionType:a.GOOGLE_WALLET_LOGIN,handlingModule:s.googleWallet,supportedCountries:["US"]},{actionType:a.AT_EUDI_WALLET_LOGIN,handlingModule:s.eudiWallet,supportedCountries:["AT"]},{actionType:a.SPID_LOGIN,handlingModule:s.spid,supportedCountries:["IT"]},{actionType:a.EVROTRUST_LOGIN,handlingModule:s.evrotrust,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]}],[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.CZ_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["CZ"]},{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","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:a.EVROTRUST_GEDA_SIGNATURE,handlingModule:s.evroTrustGedaSignature,supportedCountries:["KE"]},{actionType:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{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","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.SERPRO_ID_ADVANCED_SIGNATURE,handlingModule:s.serproIdAdvancedSignature,supportedCountries:["BR"]},{actionType:a.MX_PSC_WORLD_ADVANCED_SIGNATURE,handlingModule:s.mxPscWorldAdvancedSignature,supportedCountries:["MX"]},{actionType:a.TRANS_SPED_QES_SIGNATURE,handlingModule:s.transSpedQesSignature,supportedCountries:["AF","AL","DZ","AD","AO","AR","AM","AU","AT","AZ","BH","BD","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","CY","CZ","DK","DJ","DO","EC","EG","SV","GQ","ER","EE","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GT","GN","GY","HT","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MR","MU","MX","MD","MC","MN","ME","MA","MZ","MM","NA","NP","NL","NZ","NI","NE","NG","NO","OM","PK","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","ES","LK","SD","SR","SZ","SE","CH","SY","TJ","TZ","TH","TL","TG","TO","TN","TR","TM","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:a.CZ_BANKID_ADVANCED_SIGNATURE,handlingModule:s.czBankIDSignature,supportedCountries:["CZ"]},{actionType:a.ABA_DO_QES_SIGNATURE,handlingModule:s.abaDoSignature,supportedCountries:["DO"]},{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","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","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.CL_ECERT_ADVANCED_SIGNATURE,handlingModule:s.eCertChileSignature,supportedCountries:["CL"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE,handlingModule:s.noBankIdAdvLightSignature,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:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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.INFOCERT_QUALIFIED_SIGNATURE,handlingModule:s.infoCertQesSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DE","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType: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_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.seBankIdAdvancedHashSignature,supportedCountries:["SE"]},{actionType:a.DK_MIT_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.dkMitIdAdvancedHashSignature,supportedCountries:["DK"]},{actionType:a.NO_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.noBankIdAdvancedHashSignature,supportedCountries:["NO"]},{actionType:a.IT_SPID_QUALIFIED_HASH_SIGNATURE,handlingModule:s.itSpidQualifiedHashSignature,supportedCountries:["IT"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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.LT_ID_QES_SIGNATURE,handlingModule:s.ltIdQesSignature,supportedCountries:["LT"]},{actionType:a.CERT_STORE_QES_SIGNATURE,handlingModule:s.certStoreQesSignature,supportedCountries:["WORLD"]},{actionType:a.CERT_STORE_ADVANCED_SIGNATURE,handlingModule:s.certStoreAdvancedSignature,supportedCountries:["WORLD"]},{actionType:a.CERT_STORE_ADV_UNVERIFIED_SIGN,handlingModule:s.certStoreAdvancedUnverifiedSignature,supportedCountries:["WORLD"]},{actionType:a.BUYPASS_QES_SIGNATURE,handlingModule:s.buypassQesSignature,supportedCountries:["NO"]},{actionType:a.FI_FTN_INTESI_ADS_SIGNATURE,handlingModule:s.intesiFtnAdvSignature,supportedCountries:["FI"]},{actionType:a.TRUST_ASIA_SIGNATURE,handlingModule:s.trustAsiaSignature,supportedCountries:["CN"]},{actionType:a.MSC_TRUST_GATE_SIGNATURE,handlingModule:s.mscTrustGateSignature,supportedCountries:["MY"]},{actionType:a.GSE_ADV_SIGNATURE,handlingModule:s.gseAdvSignature,supportedCountries:["CO"]},{actionType:a.CERTME_QES_SIGNATURE,handlingModule:s.certMeQesSignature,supportedCountries:["RO"]},{actionType:a.ES_LLEIDA_ADV_SIGNATURE,handlingModule:s.esLleidaAdvSignature,supportedCountries:["ES"]},{actionType:a.ADACOM_QES_SIGNATURE,handlingModule:s.adacomQesSignature,supportedCountries:["GR"]},{actionType:a.ADACOM_ONE_SHOT_QES_SIGNATURE,handlingModule:s.adacomOneShotQesSignature,supportedCountries:["AL","AR","AU","AT","BD","BE","BR","BG","CA","CL","CN","CO","CR","HR","CY","CZ","DK","DO","EC","EG","EE","FI","FR","DE","GB","GR","HU","IS","IE","IN","IL","IT","JP","KE","LV","LT","LU","MY","MT","MX","MK","NL","NZ","NO","PK","PA","PE","PL","PT","KR","RO","RS","SG","SK","SI","ZA","ES","SE","CH","TW","TH","TR","UA","AE","UY","US","VE","VN"]},{actionType:a.DIIA_QES_SIGNATURE,handlingModule:s.diiaQesSignature,supportedCountries:["UA"]},{actionType:a.EMUDHRA_QES_SIGNATURE,handlingModule:s.emudhraQesSignature,supportedCountries:["IN"]},{actionType:a.VIDA_ADVANCED_SIGNATURE,handlingModule:s.vidaAdvancedSignature,supportedCountries:["ID"]},{actionType:a.VN_BKAV_TOKEN_SIGNATURE,handlingModule:s.vnBkavTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_CA2_TOKEN_SIGNATURE,handlingModule:s.vnCa2TokenSignature,supportedCountries:["VN"]},{actionType:a.VN_FAST_TOKEN_SIGNATURE,handlingModule:s.vnFastTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_FPT_TOKEN_SIGNATURE,handlingModule:s.vnFptTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_SMART_TOKEN_SIGNATURE,handlingModule:s.vnSmartTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_VIETTEL_TOKEN_SIGNATURE,handlingModule:s.vnViettelTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_VNPT_TOKEN_SIGNATURE,handlingModule:s.vnVnptTokenSignature,supportedCountries:["VN"]},{actionType:a.DIGILOGIX_QES_SIGNATURE,handlingModule:s.digilogixQesSignature,supportedCountries:["AR"]},{actionType:a.BUYPASS_ADVANCED_SIGNATURE,handlingModule:s.buypassAdvancedSignature,supportedCountries:["NO"]},{actionType:a.IGNISIGN_ADVANCED_SIGNATURE,handlingModule:s.igniSignAdvancedSignature,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.B_TRUST_QES_SIGNATURE,handlingModule:s.bTrustQesSignature,supportedCountries:["AF","AL","DZ","AS","AD","AO","AI","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CO","KM","CG","CD","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GI","GR","GL","GD","GU","GT","GN","GW","GY","HT","VA","HN","HK","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","MO","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","FM","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","PR","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","SZ","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","ZM","ZW"]},{actionType:a.ES_AUTOFIRMA_SIGNATURE,handlingModule:s.esAutofirmaSignature,supportedCountries:["ES"]},{actionType:a.LOCAL_ADV_UNVERIFIED_SIGNATURE,handlingModule:s.localAdvUnverifiedSignature,supportedCountries:["WORLD"]}]}),u=function(e,t,n){const r=c[e];if(t&&n){const i=r.find(function(e){return e.handlingModule===t&&(e.supportedCountries.includes(n)||e.supportedCountries.includes("WORLD"))});if(!i){if(0===r.filter(function(e){return e.handlingModule===t}).length)throw new Error("Could not find matching method configuration for ".concat(e,' module "').concat(t,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(e,'\n module "').concat(t,'".'))}return i}return r.find(function(e){return e.handlingModule===t})};var l=i(5364),d=i.n(l);function p(e,t){return function(){return e.apply(t,arguments)}}const{toString:g}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:h,toStringTag:y}=Symbol,T=(S=Object.create(null),e=>{const t=g.call(e);return S[t]||(S[t]=t.slice(8,-1).toLowerCase())});var S;const I=e=>(e=e.toLowerCase(),t=>T(t)===e),m=e=>t=>typeof t===e,{isArray:E}=Array,C=m("undefined");function A(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v=I("ArrayBuffer"),b=m("string"),N=m("function"),_=m("number"),R=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==T(e))return!1;const t=f(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||y in e||h in e)},M=I("Date"),D=I("File"),U=I("Blob"),w=I("FileList"),k=I("URLSearchParams"),[G,L,B,P]=["ReadableStream","Request","Response","Headers"].map(I);function j(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),E(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(A(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function F(e,t){if(A(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!C(e)&&e!==x,K=(H="undefined"!=typeof Uint8Array&&f(Uint8Array),e=>H&&e instanceof H);var H;const q=I("HTMLFormElement"),Q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Z=I("RegExp"),W=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},J=I("AsyncFunction"),Y=(z="function"==typeof setImmediate,X=N(x.postMessage),z?setImmediate:X?($=`axios@${Math.random()}`,ee=[],x.addEventListener("message",({source:e,data:t})=>{e===x&&t===$&&ee.length&&ee.shift()()},!1),e=>{ee.push(e),x.postMessage($,"*")}):e=>setTimeout(e));var z,X,$,ee;const te="undefined"!=typeof queueMicrotask?queueMicrotask.bind(x):"undefined"!=typeof process&&process.nextTick||Y,ne={isArray:E,isArrayBuffer:v,isBuffer:A,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||N(e.append)&&("formdata"===(t=T(e))||"object"===t&&N(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer),t},isString:b,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:O,isEmptyObject:e=>{if(!R(e)||A(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:G,isRequest:L,isResponse:B,isHeaders:P,isUndefined:C,isDate:M,isFile:D,isBlob:U,isRegExp:Z,isFunction:N,isStream:e=>R(e)&&N(e.pipe),isURLSearchParams:k,isTypedArray:K,isFileList:w,forEach:j,merge:function e(){const{caseless:t}=V(this)&&this||{},n={},r=(r,i)=>{const o=t&&F(n,i)||i;O(n[o])&&O(r)?n[o]=e(n[o],r):O(r)?n[o]=e({},r):E(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(j(t,(t,r)=>{n&&N(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&f(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:I,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[h]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:W,freezeMethods:e=>{W(e,(t,n)=>{if(N(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];N(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return E(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:x,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&N(e.append)&&"FormData"===e[y]&&e[h])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(A(e))return e;if(!("toJSON"in e)){t[r]=e;const i=E(e)?[]:{};return j(e,(e,t)=>{const o=n(e,r+1);!C(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:J,isThenable:e=>e&&(R(e)||N(e))&&N(e.then)&&N(e.catch),setImmediate:Y,asap:te,isIterable:e=>null!=e&&N(e[h])};function re(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ne.inherits(re,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:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const ie=re.prototype,oe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oe[e]={value:e}}),Object.defineProperties(re,oe),Object.defineProperty(ie,"isAxiosError",{value:!0}),re.from=(e,t,n,r,i,o)=>{const a=Object.create(ie);return ne.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),re.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ae=re;function se(e){return ne.isPlainObject(e)||ne.isArray(e)}function ce(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ue(e,t,n){return e?e.concat(t).map(function(e,t){return e=ce(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const le=ne.toFlatObject(ne,{},null,function(e){return/^is[A-Z]/.test(e)}),de=function(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ne.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(ne.isBoolean(e))return e.toString();if(!s&&ne.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(ne.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(se)}(e)||(ne.isFileList(e)||ne.endsWith(n,"[]"))&&(s=ne.toArray(e)))return n=ce(n),s.forEach(function(e,r){!ne.isUndefined(e)&&null!==e&&t.append(!0===a?ue([n],r,o):null===a?n:n+"[]",c(e))}),!1;return!!se(e)||(t.append(ue(i,n,o),c(e)),!1)}const l=[],d=Object.assign(le,{defaultVisitor:u,convertValue:c,isVisitable:se});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ne.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ne.forEach(n,function(n,o){!0===(!(ne.isUndefined(n)||null===n)&&i.call(t,n,ne.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),l.pop()}}(e),t};function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ge(e,t){this._pairs=[],e&&de(e,this,t)}const fe=ge.prototype;fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,pe)}:pe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const he=ge;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Te(e,t,n){if(!t)return e;const r=n&&n.encode||ye;ne.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):ne.isURLSearchParams(t)?t.toString():new he(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const Se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ne.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ee="undefined"!=typeof window&&"undefined"!=typeof document,Ce="object"==typeof navigator&&navigator||void 0,Ae=Ee&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,be=Ee&&window.location.href||"http://localhost",Ne={...e,...me},_e=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&ne.isArray(r)?r.length:o,s?(ne.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&ne.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&ne.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(e,r)=>{t(function(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Re={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ne.isObject(e);if(i&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return r?JSON.stringify(_e(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return de(e,new Ne.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ne.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return de(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(ne.isString(e))try{return(0,JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Re.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,Me=ne.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"]),De=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:ne.isArray(e)?e.map(we):String(e)}function ke(e,t,n,r,i){return ne.isFunction(r)?r.call(this,t,n):(i&&(t=n),ne.isString(t)?ne.isString(r)?-1!==t.indexOf(r):ne.isRegExp(r)?r.test(t):void 0:void 0)}class Ge{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Ue(t);if(!i)throw new Error("header name must be a non-empty string");const o=ne.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=we(e))}const o=(e,t)=>ne.forEach(e,(e,n)=>i(e,n,t));if(ne.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Me[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ne.isObject(e)&&ne.isIterable(e)){let n,r,i={};for(const t of e){if(!ne.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?ne.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Ue(e)){const n=ne.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ne.isFunction(t))return t.call(this,e,n);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ue(e)){const n=ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Ue(e)){const i=ne.findKey(n,e);!i||t&&!ke(0,n[i],i,t)||(delete n[i],r=!0)}}return ne.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!ke(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ne.forEach(this,(r,i)=>{const o=ne.findKey(n,i);if(o)return t[o]=we(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete t[i],t[a]=we(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ne.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ue(e);t[r]||(function(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return ne.isArray(e)?e.forEach(r):r(e),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ne.freezeMethods(Ge);const Le=Ge;function Be(e,t){const n=this||Oe,r=t||n,i=Le.from(r.headers);let o=r.data;return ne.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Pe(e){return!(!e||!e.__CANCEL__)}function je(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(je,ae,{__CANCEL__:!0});const Fe=je;function xe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ve=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let l=a,d=0;for(;l!==o;)d+=n[l++],l%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,c=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ke=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},He=e=>(...t)=>ne.asap(()=>e(...t)),qe=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,Qe=Ne.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&a.push("path="+r),ne.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ze(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const We=e=>e instanceof Le?{...e}:e;function Je(e,t){t=t||{};const n={};function r(e,t,n,r){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:r},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function i(e,t,n,i){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!ne.isUndefined(t))return r(void 0,t)}function a(e,t){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(We(e),We(t),0,!0)};return ne.forEach(Object.keys({...e,...t}),function(r){const o=c[r]||i,a=o(e[r],t[r],r);ne.isUndefined(a)&&o!==s||(n[r]=a)}),n}const Ye=e=>{const t=Je({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Le.from(s),t.url=Te(Ze(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ne.isFormData(r))if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ne.hasStandardBrowserEnv&&(i&&ne.isFunction(i)&&(i=i(t)),i||!1!==i&&qe(t.url))){const e=o&&a&&Qe.read(a);e&&s.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ye(e);let i=r.data;const o=Le.from(r.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:g}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function y(){if(!h)return;const r=Le.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());xe(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(new ae("Request aborted",ae.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ie;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ae(t,i.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&ne.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),ne.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),g&&([c,l]=Ve(g,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Ve(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Fe(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const T=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);T&&-1===Ne.protocols.indexOf(T)?n(new ae("Unsupported protocol "+T+":",ae.ERR_BAD_REQUEST,e)):h.send(i||null)})},Xe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ae?t:new Fe(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>ne.asap(a),s}},$e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},et=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*$e(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},tt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nt=tt&&"function"==typeof ReadableStream,rt=tt&&("function"==typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const ot=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},at=nt&&ot(()=>{let e=!1;const t=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),st=nt&&ot(()=>ne.isReadableStream(new Response("").body)),ct={stream:st&&(e=>e.body)};var ut;tt&&(ut=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ct[e]&&(ct[e]=ne.isFunction(ut[e])?t=>t[e]():(t,n)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,n)})}));const lt={http:null,xhr:ze,fetch:tt&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=Ye(e);u=u?(u+"").toLowerCase():"text";let g,f=Xe([i,o&&o.toAbortSignal()],a);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&at&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e)){const t=new Request(Ne.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ne.isArrayBufferView(e)||ne.isArrayBuffer(e)?e.byteLength:(ne.isURLSearchParams(e)&&(e+=""),ne.isString(e)?(await rt(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ne.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ke(y,Ve(He(c)));r=et(n.body,65536,e,t)}}ne.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;g=new Request(t,{...p,signal:f,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(g,p);const a=st&&("stream"===u||"response"===u);if(st&&(s||a&&h)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=ne.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Ke(t,Ve(He(s),!0))||[];o=new Response(et(o.body,65536,n,()=>{r&&r(),h&&h()}),e)}u=u||"text";let T=await ct[ne.findKey(ct,u)||"text"](o,e);return!a&&h&&h(),await new Promise((t,n)=>{xe(t,n,{data:T,headers:Le.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:g})})}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,g),{cause:t.cause||t});throw ae.from(t,t&&t.code,e,g)}})};ne.forEach(lt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>`- ${e}`,pt=e=>ne.isFunction(e)||null===e||!1===e,gt=e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!pt(n)&&(r=lt[(t=String(n)).toLowerCase()],void 0===r))throw new ae(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(dt).join("\n"):" "+dt(e[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ft(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function ht(e){return ft(e),e.headers=Le.from(e.headers),e.data=Be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gt(e.adapter||Oe.adapter)(e).then(function(t){return ft(e),t.data=Be.call(e,e.transformResponse,t),t.headers=Le.from(t.headers),t},function(t){return Pe(t)||(ft(e),t&&t.response&&(t.response.data=Be.call(e,e.transformResponse,t.response),t.response.headers=Le.from(t.response.headers))),Promise.reject(t)})}const yt="1.11.0",Tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const St={};Tt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+yt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ae(r(i," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!St[i]&&(St[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Tt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const It={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ae("option "+o+" must be "+n,ae.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}},validators:Tt},mt=It.validators;class Et{constructor(e){this.defaults=e||{},this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&It.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(ne.isFunction(r)?t.paramsSerializer={serialize:r}:It.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),It.assertOptions(t,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[t.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Le.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[ht.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=ht.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Te(Ze((e=Je(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(e){Et.prototype[e]=function(t,n){return this.request(Je(n||{},{method:e,url:t,data:(n||{}).data}))}}),ne.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(Je(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Et.prototype[e]=t(),Et.prototype[e+"Form"]=t(!0)});const Ct=Et;class At{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Fe(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new At(function(t){e=t}),cancel:e}}}const vt=At,bt={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(bt).forEach(([e,t])=>{bt[t]=e});const Nt=bt,_t=function e(t){const n=new Ct(t),r=p(Ct.prototype.request,n);return ne.extend(r,Ct.prototype,n,{allOwnKeys:!0}),ne.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Je(t,n))},r}(Oe);_t.Axios=Ct,_t.CanceledError=Fe,_t.CancelToken=vt,_t.isCancel=Pe,_t.VERSION=yt,_t.toFormData=de,_t.AxiosError=ae,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Je,_t.AxiosHeaders=Le,_t.formToJSON=e=>_e(ne.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=gt,_t.HttpStatusCode=Nt,_t.default=_t;const Rt=_t,{CancelToken:Ot,isCancel:Mt,Cancel:Dt}=Rt;Rt.interceptors.response.use(function(e){return(t=e.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(t.status)?Promise.reject(function(e){let{message:t,config:n,code:r,request:i,response:o}=e;const a=new Error(t);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(e.status),config:e.config,request:e.request,response:e})):e;var t});const Ut=function(e){return Rt(e)};function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Gt=function(e,t){const{modifyRequestSettings:n}=t;let r,i=e;return"function"==typeof n&&(r=n(i)),r&&(i=d()(i,r)),i},Lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.freeze({get:function(){return Ut(Gt(kt({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e))},post:function(){return Ut(Gt(kt({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e))},CancelToken:Ot})};function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Ft=function(e){let{rawSettings:t,schema:r}=e;const i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t);return Object.keys(r).forEach(function(e){const n=r[e],o=t[e];if(n.required&&void 0===o)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===o&&(i[e]=n.default),void 0!==i[e]&&void 0!==n.type&&n.type!==typeof i[e])throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(typeof i[e],'"'))}),i},xt=Object.freeze({debug:10,info:20,error:30}),Vt={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(e){const t=e.data&&e.data.redirect_uri;return t?(window.location!==window.top.location?window.top.location.href=t:window.location.href=t,new Promise(function(){})):e},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"},consoleLogLevel:{default:xt.error,type:"number"}},Kt=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."}');var Ht=i.t(Kt,2);const qt=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}');var Qt=i.t(qt,2);const Zt=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."}');var Wt=i.t(Zt,2);const Jt=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}');var Yt=i.t(Jt,2);const zt=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."}');var Xt=i.t(zt,2);const $t=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),en={de:Ht,en:Qt,et:Wt,lt:Yt,lv:Xt,ru:i.t($t,2)};function tn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function nn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){tn(o,r,i,a,s,"next",e)}function s(e){tn(o,r,i,a,s,"throw",e)}a(void 0)})}}var rn=i(8055);const on=i.n(rn)(),an=function(e){const t=e;return(Mt(e)||"user_cancel"===e.message)&&(t.isCancel=!0),t.response&&t.response.data&&(t.response.data.message&&(t.userMessage=t.response.data.message),t.response.data.errors&&(t.userDetails=t.response.data.errors)),t},sn=function(e){let{shouldFormatResult:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var n=nn(function*(){const n=yield e(...arguments),r=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).error}(n);if(r)throw an(r);return t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:t,message:n}=e,r=on({message:n});if(t)r.data=t;else{if(!e.result||!e.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=e.result.data}return r}(n):n});return function(){return n.apply(this,arguments)}}()},cn=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),un=new Map(cn);Error;const ln=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],dn=new WeakSet,pn=({from:e,seen:t,to:n,forceEnumerable:r,maxDepth:i,depth:o,useToJSON:a,serialize:s})=>{if(n||(n=Array.isArray(e)?[]:!s&&fn(e)?(e=>{const t=un.get(e)??Error;return t===AggregateError?new t([]):new t})(e.name):{}),t.push(e),o>=i)return n;if(a&&"function"==typeof e.toJSON&&!dn.has(e))return(e=>{dn.add(e);const t=e.toJSON();return dn.delete(e),t})(e);const c=e=>pn({from:e,seen:[...t],forceEnumerable:r,maxDepth:i,depth:o,useToJSON:a,serialize:s});for(const[r,i]of Object.entries(e))if(i&&i instanceof Uint8Array&&"Buffer"===i.constructor.name)n[r]="[object Buffer]";else if(null===i||"object"!=typeof i||"function"!=typeof i.pipe){if("function"!=typeof i)if(i&&"object"==typeof i)t.includes(e[r])?n[r]="[Circular]":(o++,n[r]=c(e[r]));else try{n[r]=i}catch{}}else n[r]="[object Stream]";if(s||n instanceof Error)for(const{property:t,enumerable:i}of ln)void 0!==e[t]&&null!==e[t]&&Object.defineProperty(n,t,{value:fn(e[t])||Array.isArray(e[t])?c(e[t]):e[t],enumerable:!!r||i,configurable:!0,writable:!0});return n};function gn(e,t={}){const{maxDepth:n=Number.POSITIVE_INFINITY,useToJSON:r=!0}=t;return"object"==typeof e&&null!==e?pn({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0,useToJSON:r,serialize:!0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e}function fn(e){return Boolean(e)&&"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.message&&"string"==typeof e.stack}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Tn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){let{coreContext:i,apiClient:o}=r;const{i18n:a,config:s,monitoringService:c,iframeMessenger:u,logger:l}=i;return Object.freeze({MODULE_NAME:e,start:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=yn(yn({},Vt),n),i=yn(yn({},s),e),d=Ft({rawSettings:i,schema:r}),{success:p,fail:g,finished:f}=d,h=e.language||a.getCurrentLanguage(),y=o.CancelToken.source(),T=y.token,S={onCancelByUser:function(){},onRefreshByUser:function(){}},I=function(e){S.onCancelByUser=e},m=function(e){S.onRefreshByUser=e},E=function(){y.cancel()},C=function(){var e=nn(function*(){yield t(yn(yn({},d),{},{language:h,i18n:a,monitoringService:c,cancelToken:T,cancel:E,setOnCancelByUser:I,setOnRefreshByUser:m,apiClient:o,iframeMessenger:u,logger:l})).then(function(e){p(e)}).catch(function(e){l.error(e),c.dispatch({message:JSON.stringify(gn(e))}),g(an(e))}).finally(f)});return function(){return e.apply(this,arguments)}}();return C().catch(function(e){l.error(e),c.dispatch({message:JSON.stringify(gn(e))}),g(an(e)),f(an(e))}),Object.freeze({cancel:function(){S.onCancelByUser(),E()},refresh:function(){S.onRefreshByUser()}})}})}};function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const mn=s.idCard,En=Tn(mn,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,i18n:o}=e;let a;return a=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiEndpoints.inCurrentMode.readCard({countryCode:e.countryCode,clientId:e.clientId});return e.nonce&&(t+="?nonce=".concat(e.nonce)),i.get({url:t,cancelToken:e.cancelToken})})(In(In({},e),{},{language:n,cancelToken:t})).catch(function(e){throw"ECONNABORTED"===e.code&&(e.userMessage=o.t("id-card-read-timeout")),e}),a=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,mn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(In(In({},e),{},{cancelToken:t,language:n,data:a.data})),a});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),Cn=Object.freeze({fnTimeout:"EFNTIMEDOUT"}),An=function(){var e=nn(function(e){let{fn:t,shouldContinue:n,interval:r,fnTimeoutMs:i=864e5}=e;return function*(){let e=0;const o=function(){var a=nn(function*(a,s){let c,u;e+=1;try{c=yield Promise.race([t(),new Promise(function(e,t){setTimeout(function(){const e=new Error("Function did not resolve in defined time");e.code=Cn.fnTimeout,t(e)},i)})]),u=void 0}catch(e){c=void 0,u=e}n({result:c,attempts:e,error:u})?setTimeout(o,r,a,s):a({result:c,error:u})});return function(e,t){return a.apply(this,arguments)}}();return new Promise(o)}()});return function(t){return e.apply(this,arguments)}}(),vn=[],bn=function(e){let{instanceId:t="",consoleLogLevel:n=xt.error}=e;const r=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";const i=["[".concat(t,"]: "),...e];vn.length>1e4&&vn.shift();const o=i.map(function(e){return e instanceof Error?gn(e):e});vn.push(JSON.stringify([r,...o])),xt[r]>=n&&(console[r]?console[r](...i):console.log(...i))};return Object.freeze({debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"debug")},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"info")},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"error")},getLogs:function(){return vn}})},Nn=function(e){let t,{pollInterval:n=2e3,maxPollDuration:r,fn:i,fnTimeoutMs:o,fnArgs:a,onPoll:s=function(){},logger:c=bn({instanceId:"apiPoller"})}=e;r&&(t=r/n);let u=0,l=0;const d=function(){const e=l;function r(){return e===l}return new Promise(function(e,l){An({fn:function(){return i(...a)},fnTimeoutMs:o,shouldContinue:function(e){if(!r())return!1;const{result:n}=e;c.info("Active poller result",n&&n.data),s(e);const o=n&&n.data&&n.data.status;if(e.error&&e.error.code===Cn.fnTimeout)return console.log("Function did not resolve before the provided timeout, trying again",i),!0;const a=Mt(e.error),l=e.error&&!e.error.response&&!a;l&&(u+=1);let d=!1;var p,g;return p=e.attempts,(!(g=t)||p<g)&&u<3&&(d=l||"RUNNING"===o||"IN_PROGRESS"===o),d},interval:n}).then(function(t){r()&&(c.info("Active poller final result",t&&t.data),e(t))}).catch(function(e){r()&&l(e)})})};return{start:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,n){d().then(t).catch(n);const{setOnRefreshByUser:r=function(){}}=e;r(function(){l+=1,c.info("Refresh was called, pollerId: ",l),d().then(t).catch(n)})})}}};function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const On=s.smartId,Mn=Tn(On,function(){var e=nn(function*(e){const{started:t=function(){},idcode:n,pollInterval:i=1e3,cancelToken:o,language:a,apiClient:s,setOnRefreshByUser:c}=e,l=function(e){const t=u(r.IDENTIFICATION,On);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language}})};let d;return d=yield sn(function(e){const t=u(r.IDENTIFICATION,On);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})})(Rn(Rn({},e),{},{cancelToken:o,language:a,idcode:n})),t(d),d=yield sn(function(e){const t=Nn({pollInterval:e.pollInterval,maxPollDuration:12e4,fn:l,fnArgs:[Rn(Rn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language})]});return new Promise(function(e,n){t.start({setOnRefreshByUser:c}).then(e).catch(n)})})({config:e,data:Rn({},d.data),cancelToken:o,pollInterval:i,language:a}),d});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const wn=s.webEid,kn=function(){var e=nn(function*(e){const t=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:e.monitoringService,moduleName:"Web eID"}),{cancelToken:n,language:i,apiClient:o}=e,a=function(){var e=nn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){const{iframeHolder:r}=e,i=document.createElement("iframe"),o=e.iframeUrl;i.setAttribute("src",o),i.setAttribute("referrerpolicy","origin"),i.style.border="0",r.innerHTML="",r.appendChild(i);try{return yield window.eideasyIframeMessenger.send({iframe:i,message:{operation:"ready"},cancelToken:n}),new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to create iframe",e),e}}()});return function(){return e.apply(this,arguments)}}(),s=function(){var e=nn(function*(e){try{const{iframeHolder:t}=e,r=t.querySelector("iframe"),i=yield window.eideasyIframeMessenger.send({iframe:r,message:{operation:"getAuthToken",nonce:e.nonce},cancelToken:n});return new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to start Web eID",e),e}});return function(t){return e.apply(this,arguments)}}(),c=function(){var e=nn(function*(e){const t=u(r.IDENTIFICATION,wn);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.token,auth_token:e.authToken,method:t.actionType,lang:e.language}})});return function(t){return e.apply(this,arguments)}}(),l=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,wn);return{data:{url:e.apiEndpoints.inCurrentMode.integrationIframe({clientId:e.clientId,actionType:t.actionType,docId:""})}}})(Un(Un({},e),{},{cancelToken:n}));yield sn(a,{shouldFormatResult:!1})(Un(Un({},e),{},{cancelToken:n,iframeUrl:l.data.url})).catch(function(e){throw e});const d=yield sn(function(e){const t=u(r.IDENTIFICATION,wn);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language}})})(Un(Un({},e),{},{cancelToken:n,language:i})),p=yield sn(s,{shouldFormatResult:!1})(Un(Un({},e),{},{nonce:d.data.nonce,data:Un({},d.data),cancelToken:n,language:i}));return yield sn(c)(Un(Un({},e),{},{token:p.token,authToken:d.data.token,cancelToken:n}))});return function(t){return e.apply(this,arguments)}}(),Gn=Tn(wn,kn,{countryCode:{type:"string",required:!0}});function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Pn=s.mobileId,jn=Tn(Pn,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},idcode:a,phone:s,pollInterval:c=1e3}=e;let l;return l=yield sn(function(e){const t=u(r.IDENTIFICATION,Pn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(Bn(Bn({},e),{},{cancelToken:t,language:n,idcode:a,phone:s})),o(l),l=yield sn(function(e){const t=12e4/c;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,Pn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(Bn(Bn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})})({config:e,data:l.data,cancelToken:t,language:n,pollInterval:c}),l});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Fn=s.eParakstsMobile,xn=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Vn=Tn(Fn,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(xn)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}());function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const qn=s.frejaEid,Qn=Tn(qn,function(){var e=nn(function*(e){const{started:t=function(){},email:n,pollInterval:i=1e3,cancelToken:o,language:a,apiClient:s}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,qn);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{email:e.email,country:e.countryCode,method:t.actionType,lang:e.language}})})(Hn(Hn({},e),{},{cancelToken:o,language:a,email:n})),t(c),c=yield sn(function(e){const t=1e5/e.pollInterval;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,qn);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,lang:e.language,timeout:2}})}(Hn(Hn({},e.config),{},{data:e.data,language:e.language,cancelToken:e.cancelToken}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})})({config:e,data:Hn({},c.data),cancelToken:o,language:a,pollInterval:i}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},email:{type:"string",required:!0}});function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Jn=s.zealId,Yn=Tn(Jn,function(){var e=nn(function*(e){const{cancelToken:t,apiClient:n,language:i}=e;let o;return o=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.get({withCredentials:!1,cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:e.clientId})})})(Wn(Wn({},e),{},{cancelToken:t})),o=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{iframeHolder:t}=e,n=document.createElement("iframe"),r=e.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",t.innerHTML="";const i=function(e,t,n){const r=new URL(e.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?t({data:{code:o}}):n(e.data)},o=new Promise(function(e,t){window.addEventListener("message",function(n){const o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,e,t))})});return t.appendChild(n),o})(Wn(Wn({},e),{},{cancelToken:t,iframeUrl:o.data.url})),o=yield sn(function(e){const t=u(r.IDENTIFICATION,Jn);return n.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{method:t.actionType,code:e.data.code,lang:e.language}})})(Wn(Wn({},e),{},{cancelToken:t,language:i},o)),o});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),zn=function(){var e=nn(function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i,action:o,apiClient:a,method:s,moduleName:c,country:u}=e;return function*(){let e;if("oidcAuthorize"===o){const r=yield a.post({url:t.inCurrentMode.oidcStart({}),withCredentials:!1,data:{client_id:n,method:s,country:u}});if(!r||!r.data||"string"!=typeof r.data.redirect_url)throw new Error("Invalid API response: redirect_url is missing or not a string");e=r.data.redirect_url}else e=t.inCurrentMode[c]({clientId:n,redirectUri:r,language:i,country:u});return{data:{redirect_uri:e}}}()});return function(t){return e.apply(this,arguments)}}(),Xn=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(){var e=nn(function*(e){const{redirect:n,apiEndpoints:i,clientId:o,redirectUri:a,language:s,action:c,apiClient:l,country:d}=e,p=u(r.IDENTIFICATION,t),g=yield sn(zn)({apiEndpoints:i,clientId:o,redirectUri:a,language:s,action:c,apiClient:l,method:p.actionType,moduleName:t,country:d});return sn(n,{shouldFormatResult:!1})(g)});return function(t){return e.apply(this,arguments)}}();return n(t,i)},$n=Xn({moduleName:s.mojeId,createModuleCreator:Tn}),er=Xn({moduleName:s.edoAppEid,createModuleCreator:Tn}),tr=s.finnishTrustNetwork,nr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},rr=Tn(tr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(nr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),ir=s.atHandy,or=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},ar=Tn(ir,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(or)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),sr=Xn({moduleName:s.itsme,createModuleCreator:Tn}),cr=s.itsmeBasic,ur=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},lr=Tn(cr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(ur)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),dr=s.itsmeStandard,pr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},gr=Tn(dr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(pr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),fr=Xn({moduleName:s.seBankId,createModuleCreator:Tn}),hr=Xn({moduleName:s.idin,createModuleCreator:Tn}),yr=Xn({moduleName:s.idinCustomerId,createModuleCreator:Tn}),Tr=s.verifai,Sr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Ir=Tn(Tr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Sr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),mr=s.yoonik,Er=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},Cr=Tn(mr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Er)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),Ar=Xn({moduleName:s.plMojeId,createModuleCreator:Tn}),vr=Xn({moduleName:s.mitId,createModuleCreator:Tn}),br=Xn({moduleName:s.mitId2,createModuleCreator:Tn}),Nr=Xn({moduleName:s.norwegianBankId,createModuleCreator:Tn}),_r=Xn({moduleName:s.norwegianBankId2,createModuleCreator:Tn}),Rr=Xn({moduleName:s.ftn,createModuleCreator:Tn}),Or=Xn({moduleName:s.gbOneId,createModuleCreator:Tn}),Mr=Xn({moduleName:s.veriff,createModuleCreator:Tn}),Dr=Xn({moduleName:s.lIdentiteNumerique,createModuleCreator:Tn});function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const kr=s.googleWallet,Gr=function(){var e=nn(function*(e){const t=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:e.monitoringService,moduleName:"Google Wallet"}),{cancelToken:n,language:i,apiClient:o}=e,a=function(){var e=nn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){const{iframeHolder:r}=e,i=document.createElement("iframe"),o=e.iframeUrl;i.setAttribute("src",o),i.setAttribute("allow","digital-credentials-get"),i.style.border="0",r.innerHTML="",r.appendChild(i);try{return yield window.eideasyIframeMessenger.send({iframe:i,message:{operation:"ready"},cancelToken:n}),new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to create iframe",e),e}}()});return function(){return e.apply(this,arguments)}}(),s=function(){var e=nn(function*(e){const{iframeHolder:r}=e,i=r.querySelector("iframe");try{const t=window.eideasyIframeMessenger.send({iframe:i,message:{operation:"getAuthToken",payload:e.requestObject},cancelToken:n});return new Promise(function(e){e(t)})}catch(e){throw t.logError("Failed to start Google Wallet",e),e}finally{i.innerHTML=""}});return function(t){return e.apply(this,arguments)}}(),c=function(){var e=nn(function*(e){const t=u(r.IDENTIFICATION,kr);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.token,claim_id:e.claimId,document_type:e.documentType,method:t.actionType,lang:e.language}})});return function(t){return e.apply(this,arguments)}}(),l=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,kr);return{data:{url:e.apiEndpoints.inCurrentMode.integrationIframe({clientId:e.clientId,actionType:t.actionType,docId:""})}}})(wr(wr({},e),{},{cancelToken:n}));yield sn(a,{shouldFormatResult:!1})(wr(wr({},e),{},{cancelToken:n,iframeUrl:l.data.url})).catch(function(e){throw e});const d=yield sn(function(e){const t=u(r.IDENTIFICATION,kr);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language,document_type:e.documentType}})})(wr(wr({},e),{},{cancelToken:n,language:i})),p=yield sn(s,{shouldFormatResult:!1})(wr(wr({},e),{},{requestObject:d.data.object,data:wr({},d.data),cancelToken:n,language:i}));return sn(c)(wr(wr({},e),{},{token:p.token,claimId:d.data.token,cancelToken:n}))});return function(t){return e.apply(this,arguments)}}(),Lr=Tn(kr,Gr,{countryCode:{type:"string",required:!0},documentType:{type:"string",required:!0}});function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const jr=s.eudiWallet,Fr=Tn(jr,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},pollInterval:a=1e3,documentType:s}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,jr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language,document_type:e.documentType},cancelToken:e.cancelToken})})(Pr(Pr({},e),{},{cancelToken:t,language:n,documentType:s})),o(c),c=yield sn(function(e){const t=6e5/a;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,jr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(Pr(Pr({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})})({config:e,data:c.data,cancelToken:t,language:n,pollInterval:a}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},documentType:{type:"string",required:!0}}),xr=s.spid,Vr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.spid({clientId:n,redirectUri:r,language:i})}}},Kr=Tn(xr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Vr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}());function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Qr=s.evrotrust,Zr=Tn(Qr,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},phone:a,pollInterval:s=1e3}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,Qr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(qr(qr({},e),{},{cancelToken:t,language:n,phone:a})),o(c),c=yield sn(function(e){const t=6e5/s;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,Qr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(qr(qr({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})})({config:e,data:c.data,cancelToken:t,language:n,pollInterval:s}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Wr=function(){let{message:e="",userMessage:t="",details:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.message=e,this.userMessage=t,this.details=n,this.stack=(new Error).stack};(Wr.prototype=new Error).name="MethodException";const Jr=Wr,Yr={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},zr=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(e){let{countryCode:n,clientId:i,docId:o,apiEndpoints:a}=e;const s=u(r.SIGNATURE,t,n);return a.inCurrentMode.integrationIframe({clientId:i,docId:o,actionType:s.actionType})},o=function(e,t){if(e instanceof Error)throw e;let n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Jr({userMessage:n,message:e.message,details:e})},a=function(){var e=nn(function(e){let{iframeHolder:t,iframeUrl:n,monitor:r,iframeMessenger:i,cancelToken:o}=e;return function*(){const e=document.createElement("iframe");e.setAttribute("src",n),e.setAttribute("referrerpolicy","origin"),e.setAttribute("allow","clipboard-write;local-network-access"),e.style.width="100%",e.style.height="100%",e.style.position="relative",e.style.border="0",t.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),t.appendChild(e);try{return yield i.send({iframe:e,message:{operation:"ready"},cancelToken:o}),new Promise(function(t){t(e)})}catch(e){throw r.logError("Failed to create iframe",e),e}}()});return function(t){return e.apply(this,arguments)}}(),s=function(){var e=nn(function(e){let{iframeMessenger:t,iframe:n,country:r,cancelToken:i}=e;return function*(){return{data:{certificate:(yield t.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i})).certificate}}}()});return function(t){return e.apply(this,arguments)}}(),c=function(e){let{certificate:t,clientId:n,docId:r,countryCode:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c}=e;const u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:t,base64_certificate:t,country:i},cancelToken:o})},l=function(e){let{iframeMessenger:t,iframe:n,hexDigests:r,signedInfoDigests:i,certificate:o,country:a,monitor:s,cancelToken:c}=e;return s.log("Trying to sign the digests: ".concat(JSON.stringify(r),", ")+"signedInfoDigests: ".concat(JSON.stringify(i))),t.send({iframe:n,message:{operation:"getSignature",hexDigests:r,signedInfoDigests:i,certificate:o,country:a},cancelToken:c})},d=function(e){let{signatures:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,driver:s,actionType:c}=e;const u=o.inCurrentMode.completeSignatureIdCard({actionType:c});return a.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:t[0],signatures:t,driver:s},cancelToken:i})},p=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},g=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}=e;return Nn({pollInterval:2e3,maxPollDuration:36e4,fn:d,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}]}).start()},f=function(){var e=nn(function(e){let{countryCode:n,clientId:d,apiEndpoints:f,iframeHolder:h,i18n:y,iframeMessenger:T,docId:S,cancelToken:I,apiClient:m,monitoringService:E,action:C,redirect:A,signingCertificate:v}=e;return function*(){const e=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:E,moduleName:t}),b=u(r.SIGNATURE,t,n),N=yield sn(i,{shouldFormatResult:!1})({countryCode:n,clientId:d,docId:S,apiEndpoints:f}),_=yield sn(a,{shouldFormatResult:!1})({iframeUrl:N,iframeHolder:h,i18n:y,monitor:e,iframeMessenger:T,cancelToken:I}).catch(function(e){return o(e,y)});let R=v;if(R||(R=(yield sn(s)({iframeMessenger:T,iframe:_,country:n,monitor:e,cancelToken:I}).catch(function(e){return o(e,y)})).data.certificate),"cscApiAuthorizeCredential"===C){const e=yield sn(p)({certificate:R,actionType:b.actionType,country:n,cancelToken:I,apiEndpoints:f,apiClient:m});return sn(A,{shouldFormatResult:!1})(e)}const O=yield sn(c)({certificate:R,clientId:d,docId:S,countryCode:n,cancelToken:I,apiEndpoints:f,apiClient:m,monitor:e,actionType:b.actionType}),M=yield sn(l,{shouldFormatResult:!1})({iframeMessenger:T,iframe:_,hexDigests:[O.data.hexDigest],signedInfoDigests:O.data.signedInfoDigests,certificate:v,monitor:e,cancelToken:I}).catch(function(e){return o(e,y)});return sn(g)({signatures:M.signatures,clientId:d,docId:S,cancelToken:I,apiEndpoints:f,apiClient:m,actionType:b.actionType})}()});return function(t){return e.apply(this,arguments)}}();return n(t,f,Yr)},Xr=zr({moduleName:s.idCardSignature,createModuleCreator:Tn}),$r=s.mobileIdSignature,ei=function(e){let{certificate:t,country:n,phone:r,idcode:i,cancelToken:o,apiEndpoints:a,apiClient:s}=e;const c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:t,country:n,phone:r,idcode:i},cancelToken:o})},ti=function(e){let{phone:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:t,idcode:n,country:c,lang:u},cancelToken:o})},ni=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:t.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},ri=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,maxPollDuration:12e4,fn:ni,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ii=Tn($r,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,idcode:l,phone:d,countryCode:p,started:g,action:f,redirect:h}=e;return function*(){if("cscApiAuthorizeCredential"===f){const e=yield sn(ei)({country:p,idcode:l,phone:d,cancelToken:i,apiEndpoints:o,apiClient:a});return sn(h,{shouldFormatResult:!1})(e)}const e=u(r.SIGNATURE,$r,p);s.dispatch({message:"".concat(e.actionType,": signing started")});const y=yield sn(ti)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:l,phone:d,countryCode:p});return g(y),sn(ri)({data:y.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),oi=s.smartIdSignature,ai=function(e){let{contractId:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,waitForChallengeCode:l}=e;const d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:l},cancelToken:o})},si=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},ci=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,onTryComplete:c,setOnRefreshByUser:u}=e;const l=Nn({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(e){c({data:e&&e.result&&e.result.data||{}})},fn:si,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]});return new Promise(function(e,t){l.start({setOnRefreshByUser:u}).then(e).catch(t)})},ui=function(e){let{country:t,cancelToken:n,apiEndpoints:r,apiClient:i,idcode:o}=e;const a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:t,idcode:o},cancelToken:n})},li=Tn(oi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,idcode:d,countryCode:p,started:g,action:f,redirect:h,onTryComplete:y,waitForChallengeCode:T=!0,setOnRefreshByUser:S}=e;return function*(){const e=u(r.SIGNATURE,oi,p);if("cscApiAuthorizeCredential"===f){const e=yield sn(ui)({country:p,idcode:d,cancelToken:o,apiEndpoints:a,apiClient:s});return sn(h,{shouldFormatResult:!1})(e)}c.dispatch({message:"".concat(e.actionType,": signing started")});const I=yield sn(ai)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:d,countryCode:p,contractId:i,waitForChallengeCode:T});return g(I),sn(ci)({data:I.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t,onTryComplete:y,setOnRefreshByUser:S})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),di={countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}},pi=function(e){let{country:t,phone:n,email:r,idcode:i,cancelToken:o,apiEndpoints:a,apiClient:s,signType:c}=e;const u=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:u,withCredentials:!1,data:{sign_type:c,country:t,phone:n,email:r,idcode:i},cancelToken:o})},gi=function(e){let{contractId:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,email:l,phone:d,actionType:p}=e;const g=a.inCurrentMode.startSigning();return s.post({url:g,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,idcode:n,email:l,phone:d,country:c,lang:u},cancelToken:o})},fi=function(e,t,n){const i=function(e,t,n){return function(){var i=nn(function(i){let{clientId:o,docId:a,contractId:s,cancelToken:c,apiEndpoints:l,apiClient:d,monitoringService:p,language:g,idcode:f,phone:h,email:y,countryCode:T,started:S,action:I,redirect:m,setOnRefreshByUser:E,logger:C}=i;return function*(){const i=u(r.SIGNATURE,e,T);if(p.dispatch({message:"".concat(i.actionType,": signing started")}),C.info("".concat(i.actionType,": signing started")),"cscApiAuthorizeCredential"===I){C.info("".concat(i.actionType,": cscApiAuthorizeCredential called"));const e=yield sn(pi)({country:T,idcode:f,phone:h,email:y,cancelToken:c,apiEndpoints:l,apiClient:d,signType:t});return C.info("".concat(i.actionType,": authorizationResult"),e),sn(m,{shouldFormatResult:!1})(e)}const A=yield sn(gi)({clientId:o,docId:a,cancelToken:c,apiEndpoints:l,apiClient:d,language:g,idcode:f,phone:h,email:y,countryCode:T,contractId:s,actionType:i.actionType});return C.info("".concat(i.actionType,": signing start result"),A),S(A),sn(function(){const e=Nn({pollInterval:2e3,fn:function(){return d.post({url:n(l),withCredentials:!1,data:{token:A.data.token,doc_id:a,lang:g,client_id:o},cancelToken:c})},fnTimeoutMs:15e3,logger:C,fnArgs:[]});return new Promise(function(t,n){e.start({setOnRefreshByUser:E}).then(t).catch(n)})})()}()});return function(e){return i.apply(this,arguments)}}()}(e,t,n);return Tn(e,i,di)},hi=fi(s.evroTrustSignature,"evrotrust-signature",function(e){return e.inCurrentMode.completeSignatureEvrotrust()}),yi=fi(s.evroTrustGedaSignature,"evrotrust-geda-signature",function(e){return e.inCurrentMode.completeSignatureEvrotrustGeda()}),Ti=s.otpSignature,Si=function(){var e=nn(function(e){let{language:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:s}=e;return function*(){const e=o.inCurrentMode.startSigning();return a.post({url:e,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:t},cancelToken:i})}()});return function(t){return e.apply(this,arguments)}}(),Ii=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},mi=function(e){let{apiClient:t,apiEndpoints:n,language:r,cancelToken:i,docId:o,clientId:a,emailToken:s,smsToken:c,handwrittenSignatureData:u,handwrittenSignatureDataUrl:l}=e;return t.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:l},cancelToken:i})},Ei=Tn(Ti,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f,started:h,confirmationCodeRequest:y,setOnCancelByUser:T}=e;return function*(){const e=u(r.SIGNATURE,Ti,l);if(console.log(e),s.dispatch({message:"".concat(e.actionType,": signing started")}),!p&&!d){const r=yield sn(Si)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:e.actionType});h(r);const s=yield sn(Ii,{shouldFormatResult:!1})({startSigningResult:r,confirmationCodeRequest:y,setOnCancelByUser:T});p=s.smsToken,d=s.emailToken}return sn(mi)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f})}()});return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),Ci={docId:{type:"string",required:!0},confirmedBySigner:{validator:e=>[null,!0,!1].includes(e)}},Ai=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},vi=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,confirmedBySigner:u,country:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u,country:l},cancelToken:i})},o=function(){var e=nn(function(e){let{clientId:n,docId:o,contractId:a,cancelToken:s,apiEndpoints:c,apiClient:l,monitoringService:d,language:p,countryCode:g,redirect:f,confirmedBySigner:h,action:y}=e;return function*(){const e=u(r.SIGNATURE,t,g);if("cscApiAuthorizeCredential"===y){const t=yield sn(Ai)({country:g,cancelToken:s,apiEndpoints:c,apiClient:l,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(t)}d.dispatch({message:"".concat(e.actionType,": signing started")});const T=yield sn(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:l,language:p,actionType:e.actionType,confirmedBySigner:h,country:g});return sn(f,{shouldFormatResult:!1})(T)}()});return function(t){return e.apply(this,arguments)}}();return n(t,o,Ci)},bi=vi({moduleName:s.eParakstsMobileSignature,createModuleCreator:Tn}),Ni=vi({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:Tn}),_i=vi({moduleName:s.ftnSignature,createModuleCreator:Tn}),Ri=vi({moduleName:s.atHandySignature,createModuleCreator:Tn}),Oi=s.zealIdSignature,Mi=function(e){let{apiEndpoints:t,clientId:n,docId:r}=e;return{data:{redirect_uri:t.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Di=Tn(Oi,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,docId:i}=e,o=yield sn(Mi)({apiEndpoints:n,clientId:r,docId:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),Ui=vi({moduleName:s.mojeIdSignature,createModuleCreator:Tn}),wi=vi({moduleName:s.serproIdAdvancedSignature,createModuleCreator:Tn}),ki=vi({moduleName:s.czBankIDSignature,createModuleCreator:Tn}),Gi=vi({moduleName:s.abaDoSignature,createModuleCreator:Tn}),Li=vi({moduleName:s.googleSignature,createModuleCreator:Tn}),Bi=vi({moduleName:s.seBankIdSignature,createModuleCreator:Tn}),Pi=s.dTrustSignMeSignature,ji=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Fi=Tn(Pi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,Pi,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ji)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0}}),xi=s.dTrustSignMeAdvSignature,Vi=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Ki=Tn(xi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,xi,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(Vi)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0}});function Hi(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function qi(e,t){return e&t}function Qi(e,t){return e|t}function Zi(e,t){return e^t}function Wi(e,t){return e&~t}function Ji(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function Yi(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var zi,Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function $i(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Xi.charAt(n>>6)+Xi.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Xi.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Xi.charAt(n>>2)+Xi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function eo(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o=Xi.indexOf(e.charAt(t));o<0||(0==r?(n+=Hi(o>>2),i=3&o,r=1):1==r?(n+=Hi(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Hi(i),n+=Hi(o>>2),i=3&o,r=3):(n+=Hi(i<<2|o>>4),n+=Hi(15&o),r=0))}return 1==r&&(n+=Hi(i<<2)),n}var to,no={decode:function(e){var t;if(void 0===to){for(to=Object.create(null),t=0;t<64;++t)to["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(to["-"]=62,to._=63,t=0;t<9;++t)to["= \f\n\r\t \u2028\u2029".charAt(t)]=-1}var n=[],r=0,i=0;for(t=0;t<e.length;++t){var o=e.charAt(t);if("="==o)break;if(-1!=(o=to[o])){if(void 0===o)throw new Error("Illegal character at offset "+t);r|=o,++i>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,i=0):r<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=no.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return no.decode(e)}},ro=1e13,io=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<ro?t=0:r-=(t=0|r/ro)*ro,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=ro,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(ro+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*ro+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),oo=/^(\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)?)?$/,ao=/^(\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 so(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var co,uo=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?oo:ao).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0===(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new io(r),c=e+1;c<t;++c)s.mulAdd(256,this.get(c));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),c=a==t-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+so(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return so(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new io,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof io)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 so(r,n);i=new io,o=0}}return o>0&&(r+=".incomplete"),r},e}(),lo=function(){function e(e,t,n,r,i){if(!(r instanceof po))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return so(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return so(this.stream.parseStringISO(t,t+n),e);case 30:return so(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substring(t,t+n)},e.decode=function(t){var n;n=t instanceof uo?t:new uo(t,0);var r=new uo(n),i=new po(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return t};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,c)},e}(),po=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new io;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),go=[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],fo=(1<<26)/go[go.length-1],ho=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Hi(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Hi(n));return i?o:"0"},e.prototype.negate=function(){var t=mo();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ro(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=mo();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new To(t):new So(t),this.exp(e,n)},e.prototype.clone=function(){var e=mo();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=mo();return this.bitwiseTo(e,qi,t),t},e.prototype.or=function(e){var t=mo();return this.bitwiseTo(e,Qi,t),t},e.prototype.xor=function(e){var t=mo();return this.bitwiseTo(e,Zi,t),t},e.prototype.andNot=function(e){var t=mo();return this.bitwiseTo(e,Wi,t),t},e.prototype.not=function(){for(var e=mo(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=mo();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=mo();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Ji(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Yi(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Qi)},e.prototype.clearBit=function(e){return this.changeBit(e,Wi)},e.prototype.flipBit=function(e){return this.changeBit(e,Zi)},e.prototype.add=function(e){var t=mo();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=mo();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=mo();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=mo();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=mo();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=mo(),n=mo();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=_o(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new To(t):t.isEven()?new Io(t):new So(t);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var l=mo();for(r.sqrTo(a[1],l);s<=u;)a[s]=mo(),r.mulTo(l,a[s-2],a[s]),s+=2}var d,p,g=e.t-1,f=!0,h=mo();for(i=Ro(e[g])-1;g>=0;){for(i>=c?d=e[g]>>i-c&u:(d=(e[g]&(1<<i+1)-1)<<c-i,g>0&&(d|=e[g-1]>>this.DB+i-c)),s=n;!(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--g),f)a[d].copyTo(o),f=!1;else{for(;s>1;)r.sqrTo(o,h),r.sqrTo(h,o),s-=2;s>0?r.sqrTo(o,h):(p=o,o=h,h=p),r.mulTo(h,a[d],o)}for(;g>=0&&!(e[g]&1<<i);)r.sqrTo(o,h),p=o,o=h,h=p,--i<0&&(i=this.DB-1,--g)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=_o(1),a=_o(0),s=_o(0),c=_o(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(t,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(e.ONE)?e.ZERO:c.compareTo(t)>=0?c.subtract(t):c.signum()<0?(c.addTo(t,c),c.signum()<0?c.add(t):c):c},e.prototype.pow=function(e){return this.exp(e,new yo)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=go[go.length-1]){for(t=0;t<go.length;++t)if(n[0]==go[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<go.length;){for(var r=go[t],i=t+1;i<go.length&&r<fo;)r*=go[i++];for(r=n.modInt(r);t<i;)if(r%go[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:No(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&+t[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=mo());var a=mo(),s=this.s,c=t.s,u=this.DB-Ro(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var l=a.t,d=a[l-1];if(0!=d){var p=d*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),g=this.FV/p,f=(1<<this.F1)/p,h=1<<this.F2,y=r.t,T=y-l,S=null==n?mo():n;for(a.dlShiftTo(T,S),r.compareTo(S)>=0&&(r[r.t++]=1,r.subTo(S,r)),e.ONE.dlShiftTo(l,S),S.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--T>=0;){var I=r[--y]==d?this.DM:Math.floor(r[y]*g+(r[y-1]+h)*f);if((r[y]+=a.am(0,I,r,T,0,l))<I)for(a.dlShiftTo(T,S),r.subTo(S,r);r[y]<--I;)r.subTo(S,r)}null!=n&&(r.drShiftTo(l,n),s!=c&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=mo(),i=mo(),o=n.convert(this),a=Ro(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=_o(n),i=mo(),o=mo(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substring(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<t.length;++c){var u=No(t,c);u<0?"-"==t.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Qi,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>go.length&&(t=go.length);for(var o=mo(),a=0;a<t;++a){o.fromInt(go[Math.floor(Math.random()*go.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=mo();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout(function(){t(r)},0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Qi,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&t;s.length=1+(t>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},e}(),yo=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),To=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),So=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=mo();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ho.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=mo();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Io=function(){function e(e){this.m=e,this.r2=mo(),this.q3=mo(),ho.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=mo();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function mo(){return new ho(null)}function Eo(e,t){return new ho(e,t)}var Co="undefined"!=typeof navigator;Co&&"Microsoft Internet Explorer"==navigator.appName?(ho.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var c=32767&this[e],u=this[e++]>>15,l=s*c+u*a;i=((c=a*c+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},co=30):Co&&"Netscape"!=navigator.appName?(ho.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},co=26):(ho.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,l=s*c+u*a;i=((c=a*c+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*u,n[r++]=268435455&c}return i},co=28),ho.prototype.DB=co,ho.prototype.DM=(1<<co)-1,ho.prototype.DV=1<<co,ho.prototype.FV=Math.pow(2,52),ho.prototype.F1=52-co,ho.prototype.F2=2*co-52;var Ao,vo,bo=[];for(Ao="0".charCodeAt(0),vo=0;vo<=9;++vo)bo[Ao++]=vo;for(Ao="a".charCodeAt(0),vo=10;vo<36;++vo)bo[Ao++]=vo;for(Ao="A".charCodeAt(0),vo=10;vo<36;++vo)bo[Ao++]=vo;function No(e,t){var n=bo[e.charCodeAt(t)];return null==n?-1:n}function _o(e){var t=mo();return t.fromInt(e),t}function Ro(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}ho.ZERO=_o(0),ho.ONE=_o(1);var Oo,Mo,Do=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),Uo=null;if(null==Uo){Uo=[],Mo=0;var wo=void 0;if("undefined"!=typeof window&&self.crypto&&self.crypto.getRandomValues){var ko=new Uint32Array(256);for(self.crypto.getRandomValues(ko),wo=0;wo<ko.length;++wo)Uo[Mo++]=255&ko[wo]}var Go=0,Lo=function(e){if((Go=Go||0)>=256||Mo>=256)self.removeEventListener?self.removeEventListener("mousemove",Lo,!1):self.detachEvent&&self.detachEvent("onmousemove",Lo);else try{var t=e.x+e.y;Uo[Mo++]=255&t,Go+=1}catch(e){}};"undefined"!=typeof window&&(self.addEventListener?self.addEventListener("mousemove",Lo,!1):self.attachEvent&&self.attachEvent("onmousemove",Lo))}function Bo(){if(null==Oo){for(Oo=new Do;Mo<256;){var e=Math.floor(65536*Math.random());Uo[Mo++]=255&e}for(Oo.init(Uo),Mo=0;Mo<Uo.length;++Mo)Uo[Mo]=0;Mo=0}return Oo.next()}var Po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Bo()},e}();function jo(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t}(function(e,t){var n,r,i,o,a,s,c,u,l,d,p,g,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),h=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,l=0;l<e.length;l+=16){for(n=f[0],r=f[1],i=f[2],o=f[3],a=f[4],s=f[5],c=f[6],u=f[7],d=0;d<64;d++)h[d]=d<16?e[d+l]:Yo(Yo(Yo(Wo(h[d-2]),h[d-7]),Zo(h[d-15])),h[d-16]),p=Yo(Yo(Yo(Yo(u,Qo(a)),Ko(a,s,c)),Jo[d]),h[d]),g=Yo(qo(n),Ho(n,r,i)),u=c,c=s,s=a,a=Yo(o,p),o=i,i=r,r=n,n=Yo(p,g);f[0]=Yo(n,f[0]),f[1]=Yo(r,f[1]),f[2]=Yo(i,f[2]),f[3]=Yo(o,f[3]),f[4]=Yo(a,f[4]),f[5]=Yo(s,f[5]),f[6]=Yo(c,f[6]),f[7]=Yo(u,f[7])}return f}(function(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}(e),8*e.length))}function Fo(e){for(var t="0123456789abcdef",n="",r=0;r<e.length;r++){var i=e.charCodeAt(r);n+=t.charAt(i>>>4&15)+t.charAt(15&i)}return n}function xo(e,t){return e>>>t|e<<32-t}function Vo(e,t){return e>>>t}function Ko(e,t,n){return e&t^~e&n}function Ho(e,t,n){return e&t^e&n^t&n}function qo(e){return xo(e,2)^xo(e,13)^xo(e,22)}function Qo(e){return xo(e,6)^xo(e,11)^xo(e,25)}function Zo(e){return xo(e,7)^xo(e,18)^Vo(e,3)}function Wo(e){return xo(e,17)^xo(e,19)^Vo(e,10)}var Jo=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function zo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new Po,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new ho(n)}function Xo(e,t,n){for(var r="",i=0;r.length<t;)r+=n(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function $o(e,t){var n=jo;if(e.length+64+2>t)throw"Message too long for RSA";var r,i="";for(r=0;r<t-e.length-64-2;r+=1)i+="\0";var o=n("")+i+""+e,a=new Array(32);(new Po).nextBytes(a);var s=Xo(a,o.length,n),c=[];for(r=0;r<o.length;r+=1)c[r]=o.charCodeAt(r)^s.charCodeAt(r);var u=Xo(c,a.length,n),l=[0];for(r=0;r<a.length;r+=1)l[r+1]=a[r]^u.charCodeAt(r);return new ho(l.concat(c))}var ea=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e,t){void 0===t&&(t=zo);var n=this.n.bitLength()+7>>3,r=t(e,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;for(var o=i.toString(16),a=o.length,s=0;s<2*n-a;s++)o="0"+o;return o},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16),this.d=Eo(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16),this.d=Eo(n,16),this.p=Eo(r,16),this.q=Eo(i,16),this.dmp1=Eo(o,16),this.dmq1=Eo(a,16),this.coeff=Eo(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Po,r=e>>1;this.e=parseInt(t,16);for(var i=new ho(t,16);;){for(;this.p=new ho(e-r,1,n),0!=this.p.subtract(ho.ONE).gcd(i).compareTo(ho.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ho(r,1,n),0!=this.q.subtract(ho.ONE).gcd(i).compareTo(ho.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(ho.ONE),s=this.q.subtract(ho.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(ho.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Eo(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Po,i=e>>1;this.e=parseInt(t,16);var o=new ho(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(ho.ONE),r=a.q.subtract(ho.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(ho.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(s,0)},c=function(){a.q=mo(),a.q.fromNumberAsync(i,1,r,function(){a.q.subtract(ho.ONE).gcda(o,function(e){0==e.compareTo(ho.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(c,0)})})},u=function(){a.p=mo(),a.p.fromNumberAsync(e-i,1,r,function(){a.p.subtract(ho.ONE).gcda(o,function(e){0==e.compareTo(ho.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=(ta[n]||"")+t(e).toString(),i=this.n.bitLength()/4,o=function(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return Eo("0001"+r+"00"+e,16)}(r,i);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;for(var s=a.toString(16),c=s.length,u=0;u<i-c;u++)s="0"+s;return s},e.prototype.verify=function(e,t,n){var r=Eo(t,16),i=this.doPublic(r);return null==i?null:function(e){for(var t in ta)if(ta.hasOwnProperty(t)){var n=ta[t],r=n.length;if(e.substring(0,r)==n)return e.substring(r)}return e}(i.toString(16).replace(/^1f+00/,""))==n(e).toString()},e}(),ta={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function na(e,t,n){if(!t||!e)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}o(e.prototype,n)}}var ra={};void 0!==ra.asn1&&ra.asn1||(ra.asn1={}),ra.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substring(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substring(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new ho(r,16).xor(e).add(ho.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=ra.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,l=t.DERNumericString,d=t.DERPrintableString,p=t.DERTeletexString,g=t.DERIA5String,f=t.DERUTCTime,h=t.DERGeneralizedTime,y=t.DERSequence,T=t.DERSet,S=t.DERTaggedObject,I=t.ASN1Util.newObject,m=Object.keys(e);if(1!=m.length)throw"key of param shall be only one.";var E=m[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(e[E]);if("int"==E)return new r(e[E]);if("bitstr"==E)return new i(e[E]);if("octstr"==E)return new o(e[E]);if("null"==E)return new a(e[E]);if("oid"==E)return new s(e[E]);if("enum"==E)return new c(e[E]);if("utf8str"==E)return new u(e[E]);if("numstr"==E)return new l(e[E]);if("prnstr"==E)return new d(e[E]);if("telstr"==E)return new p(e[E]);if("ia5str"==E)return new g(e[E]);if("utctime"==E)return new f(e[E]);if("gentime"==E)return new h(e[E]);if("seq"==E){for(var C=e[E],A=[],v=0;v<C.length;v++){var b=I(C[v]);A.push(b)}return new y({array:A})}if("set"==E){for(C=e[E],A=[],v=0;v<C.length;v++)b=I(C[v]),A.push(b);return new T({array:A})}if("tag"==E){var N=e[E];if("[object Array]"===Object.prototype.toString.call(N)&&3==N.length){var _=I(N[2]);return new S({tag:N[0],explicit:N[1],obj:_})}var R={};if(void 0!==N.explicit&&(R.explicit=N.explicit),void 0!==N.tag&&(R.tag=N.tag),void 0===N.obj)throw"obj shall be specified for 'tag'.";return R.obj=I(N.obj),new S(R)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},ra.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substring(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substring(i,i+2),16).toString(2)).slice(-8);r+=o.substring(1,8),"0"==o.substring(0,1)&&(t=t+"."+new ho(r,2).toString(10),r="")}return t},ra.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ho(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substring(a,a+7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},ra.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=0,v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ra.asn1.DERAbstractString=function(e){ra.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},na(ra.asn1.DERAbstractString,ra.asn1.ASN1Object),ra.asn1.DERAbstractTime=function(e){ra.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substring(2,4));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},na(ra.asn1.DERAbstractTime,ra.asn1.ASN1Object),ra.asn1.DERAbstractStructured=function(e){ra.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},na(ra.asn1.DERAbstractStructured,ra.asn1.ASN1Object),ra.asn1.DERBoolean=function(){ra.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},na(ra.asn1.DERBoolean,ra.asn1.ASN1Object),ra.asn1.DERInteger=function(e){ra.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ra.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ho(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},na(ra.asn1.DERInteger,ra.asn1.ASN1Object),ra.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ra.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ra.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substring(n,n+8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},na(ra.asn1.DERBitString,ra.asn1.ASN1Object),ra.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ra.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}ra.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},na(ra.asn1.DEROctetString,ra.asn1.DERAbstractString),ra.asn1.DERNull=function(){ra.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},na(ra.asn1.DERNull,ra.asn1.ASN1Object),ra.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ho(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substring(a,a+7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};ra.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=ra.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},na(ra.asn1.DERObjectIdentifier,ra.asn1.ASN1Object),ra.asn1.DEREnumerated=function(e){ra.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ra.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ho(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},na(ra.asn1.DEREnumerated,ra.asn1.ASN1Object),ra.asn1.DERUTF8String=function(e){ra.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},na(ra.asn1.DERUTF8String,ra.asn1.DERAbstractString),ra.asn1.DERNumericString=function(e){ra.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},na(ra.asn1.DERNumericString,ra.asn1.DERAbstractString),ra.asn1.DERPrintableString=function(e){ra.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},na(ra.asn1.DERPrintableString,ra.asn1.DERAbstractString),ra.asn1.DERTeletexString=function(e){ra.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},na(ra.asn1.DERTeletexString,ra.asn1.DERAbstractString),ra.asn1.DERIA5String=function(e){ra.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},na(ra.asn1.DERIA5String,ra.asn1.DERAbstractString),ra.asn1.DERUTCTime=function(e){ra.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},na(ra.asn1.DERUTCTime,ra.asn1.DERAbstractTime),ra.asn1.DERGeneralizedTime=function(e){ra.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},na(ra.asn1.DERGeneralizedTime,ra.asn1.DERAbstractTime),ra.asn1.DERSequence=function(e){ra.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},na(ra.asn1.DERSequence,ra.asn1.DERAbstractStructured),ra.asn1.DERSet=function(e){ra.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},na(ra.asn1.DERSet,ra.asn1.DERAbstractStructured),ra.asn1.DERTaggedObject=function(e){ra.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},na(ra.asn1.DERTaggedObject,ra.asn1.ASN1Object);var ia,oa,aa=(ia=function(e,t){return ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ia(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ia(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),sa=function(e){function t(n){var r=e.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return aa(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(e){var t;if(void 0===zi){var n="0123456789ABCDEF";for(zi={},t=0;t<16;++t)zi[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)zi[n.charAt(t)]=t;for(t=0;t<8;++t)zi[" \f\n\r\t \u2028\u2029".charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=zi[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=2?(r[r.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return r}(e):no.unarmor(e),i=lo.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=Eo(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Eo(o,16);var a=i.sub[4].getHexStringValue();this.p=Eo(a,16);var s=i.sub[5].getHexStringValue();this.q=Eo(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Eo(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Eo(u,16);var l=i.sub[8].getHexStringValue();this.coeff=Eo(l,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var d=i.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=Eo(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else t=i.sub[0].getHexStringValue(),this.n=Eo(t,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new ra.asn1.DERInteger({int:0}),new ra.asn1.DERInteger({bigint:this.n}),new ra.asn1.DERInteger({int:this.e}),new ra.asn1.DERInteger({bigint:this.d}),new ra.asn1.DERInteger({bigint:this.p}),new ra.asn1.DERInteger({bigint:this.q}),new ra.asn1.DERInteger({bigint:this.dmp1}),new ra.asn1.DERInteger({bigint:this.dmq1}),new ra.asn1.DERInteger({bigint:this.coeff})]};return new ra.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return $i(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new ra.asn1.DERSequence({array:[new ra.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ra.asn1.DERNull]}),t=new ra.asn1.DERSequence({array:[new ra.asn1.DERInteger({bigint:this.n}),new ra.asn1.DERInteger({int:this.e})]}),n=new ra.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new ra.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return $i(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return(e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(ea),ca="undefined"!=typeof process?null===(oa={LIB_ENV:"production"})||void 0===oa?void 0:oa.npm_package_version:void 0,ua=function(){function e(e){void 0===e&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return e.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new sa(e)):!this.key&&this.log&&console.error("A key was not set.")},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(eo(e))}catch(e){return!1}},e.prototype.encrypt=function(e){try{return $i(this.getKey().encrypt(e))}catch(e){return!1}},e.prototype.encryptOAEP=function(e){try{return $i(this.getKey().encrypt(e,$o))}catch(e){return!1}},e.prototype.sign=function(e,t,n){void 0===t&&(t=function(e){return e}),void 0===n&&(n="");try{return $i(this.getKey().sign(e,t,n))}catch(e){return!1}},e.prototype.signSha256=function(e){return this.sign(e,function(e){return Fo(jo(e))},"sha256")},e.prototype.verify=function(e,t,n){void 0===n&&(n=function(e){return e});try{return this.getKey().verify(e,eo(t),n)}catch(e){return!1}},e.prototype.verifySha256=function(e,t){return this.verify(e,t,function(e){return Fo(jo(e))})},e.prototype.getKey=function(e){if(!this.key){if(this.key=new sa,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=ca,e}();const la=s.chaveMovelSignature,da={publicKey:null},pa=function(){var e=nn(function(e){let{apiClient:t,apiEndpoints:n,cancelToken:r}=e;return function*(){const e=n.inCurrentMode.getChaveMovelPublicKey(),i=yield t.get({url:e,withCredentials:!1,cancelToken:r});if(!i.data.publicKey)return{};const o=atob(i.data.publicKey);return da.publicKey=o,o}()});return function(t){return e.apply(this,arguments)}}(),ga=function(){var e=nn(function(e){let{signingPin:t,phone:n,language:r,clientId:i,docId:o,cancelToken:a,apiEndpoints:s,apiClient:c,actionType:u}=e;return function*(){const e=s.inCurrentMode.startSigning(),l=yield pa({apiClient:c,apiEndpoints:s,cancelToken:a}),d=new ua;return d.setPublicKey(l),c.post({url:e,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:d.encrypt(t),phone:d.encrypt(n)},cancelToken:a})}()});return function(t){return e.apply(this,arguments)}}(),fa=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},ha=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,confirmationCode:c}=e;const u=new ua;return u.setPublicKey(da.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},ya=Tn(la,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,countryCode:c,language:l,started:d,confirmationCodeRequest:p,signingPin:g,phone:f,setOnCancelByUser:h}=e;return function*(){const e=u(r.SIGNATURE,la,c);s.dispatch({message:"".concat(e.actionType,": signing started")});const y=yield sn(ga)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:l,actionType:e.actionType,signingPin:g,phone:f});d(y);const T=yield sn(fa,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:h});return sn(ha)({token:y.data.token,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:t,confirmationCode:T})}()});return function(t){return e.apply(this,arguments)}}(),{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ta=s.eCertChileSignature,Sa=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,idcode:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,idcode:u,email:l},cancelToken:i})},Ia=Tn(Ta,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,idcode:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ta,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(Sa)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),ma=vi({moduleName:s.mitIdSignature,createModuleCreator:Tn}),Ea=s.ftnQesSignature,Ca=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,phone:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:l},cancelToken:i})},Aa=Tn(Ea,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,phone:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ea,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(Ca)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),va=s.noBankIdAdvSignature,ba=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,name:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},Na=Tn(va,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,name:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,va,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ba)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,name:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{name:{type:"string",required:!0}}),_a=vi({moduleName:s.noBankIdAdvLightSignature,createModuleCreator:Tn}),Ra=zr({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:Tn}),Oa=zr({moduleName:s.certSignUsbTokenSignature,createModuleCreator:Tn}),Ma=vi({moduleName:s.idinSignature,createModuleCreator:Tn}),Da=vi({moduleName:s.verifaiSignature,createModuleCreator:Tn}),Ua=s.spidQesSignature,wa=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,phone:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:l},cancelToken:i})},ka=Tn(Ua,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,phone:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ua,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(wa)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),Ga=s.frejaSimpleSignature,La=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},Ba=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Pa=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Ba,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ja=Tn(Ga,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,Ga,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(La)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return p(g),sn(Pa)({data:g.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Fa=s.audkenniQesSignature,xa=function(e){let{idcode:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Va=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ka=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ha=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Va,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},qa=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Ka,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Qa=Tn(Fa,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,idcode:c,countryCode:l,language:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,Fa,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(xa)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:d,actionType:e.actionType,countryCode:l}),f=yield sn(Ha)({data:g.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t});return p(f),sn(qa)({data:f.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Za=vi({moduleName:s.yesComQesSignature,createModuleCreator:Tn}),Wa=vi({moduleName:s.simplySignQesSignature,createModuleCreator:Tn}),Ja=s.uanatacaQesSignature,Ya=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u,password:l,pin:d}=e;const p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u,password:l,pin:d},cancelToken:i})},za=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},Xa=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,confirmationCode:c}=e;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},$a=Tn(Ja,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,password:g,pin:f,confirmationCodeRequest:h,setOnCancelByUser:y,started:T}=e;return function*(){const e=u(r.SIGNATURE,Ja,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const S=yield sn(Ya)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,password:g,pin:f,actionType:e.actionType});T(S);const I=yield sn(za,{shouldFormatResult:!1})({startSigningResult:S,confirmationCodeRequest:h,setOnCancelByUser:y});return sn(Xa)({token:S.data.token,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t,confirmationCode:I})}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),es=s.infoCertQesSignature,ts=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:a,actionType:s,userId:c}=e;const u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:s,lang:a,user_id:c},cancelToken:r})},ns=function(e){let{startSigningResult:t,otpCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},rs=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,pin:c,otp:u}=e;return n.post({url:r.inCurrentMode.completeSignatureInfoCert(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,pin:c,otp:u},cancelToken:o})},is=function(e){let{country:t,userId:n,cancelToken:r,apiEndpoints:i,apiClient:o}=e;const a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"infocert-qes-signature",user_id:n,country:t},cancelToken:r})},os=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,otp:c,pin:u}=e;return Nn({pollInterval:2e3,fn:rs,fnArgs:[{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,otp:c,pin:u}]}).start()},as=Tn(es,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,userId:d,action:p,otpCodeRequest:g,setOnCancelByUser:f,started:h,logger:y,redirect:T}=e;return function*(){const e=u(r.SIGNATURE,es,l);if(s.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===p){y.info("".concat(e.actionType,": cscApiAuthorizeCredential called"));const t=yield sn(is)({country:l,userId:d,cancelToken:i,apiEndpoints:o,apiClient:a,logger:y});return y.info("".concat(e.actionType,": authorizationResult"),t),sn(T,{shouldFormatResult:!1})(t)}const S=yield sn(ts)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,userId:d,actionType:e.actionType});h(S);const{otp:I,pin:m}=yield sn(ns,{shouldFormatResult:!1})({startSigningResult:S,otpCodeRequest:g,setOnCancelByUser:f});return sn(os)({token:S.data.token,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,otp:I,pin:m})}()});return function(t){return e.apply(this,arguments)}}(),{userId:{type:"string",required:!0}}),ss=vi({moduleName:s.certsignWebapiQesSignature,createModuleCreator:Tn}),cs=s.halcomQesSignature,us=function(e){let{certificate:t,country:n,phone:r,email:i,username:o,cancelToken:a,apiEndpoints:s,apiClient:c}=e;const u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:t,country:n,phone:r,email:i,username:o},cancelToken:a})},ls=function(e){let{contractId:t,username:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,email:l,phone:d,actionType:p}=e;const g=a.inCurrentMode.startSigning();return s.post({url:g,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,username:n,email:l,phone:d,country:c,lang:u},cancelToken:o})},ds=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},ps=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:ds,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},gs=Tn(cs,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,username:d,phone:p,email:g,countryCode:f,started:h,action:y,redirect:T}=e;return function*(){const e=u(r.SIGNATURE,cs,f);if(c.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===y){const e=yield sn(us)({country:f,username:d,phone:p,email:g,cancelToken:o,apiEndpoints:a,apiClient:s});return sn(T,{shouldFormatResult:!1})(e)}const S=yield sn(ls)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:d,phone:p,email:g,countryCode:f,contractId:i,actionType:e.actionType});return h(S),sn(ps)({data:S.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),fs=s.swissIdQesSignature,hs=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,countryCode:s,language:c,email:u,actionType:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:l,email:u,country:s,lang:c},cancelToken:i})},ys=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ts=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:ys,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ss=Tn(fs,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,email:d,countryCode:p,started:g}=e;return function*(){const e=u(r.SIGNATURE,fs,p);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(hs)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,email:d,countryCode:p,contractId:i,actionType:e.actionType});return g(f),sn(Ts)({data:f.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Is=s.swissComQesSignature,ms=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,countryCode:s,language:c,phone:u,actionType:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:l,phone:u,country:s,lang:c},cancelToken:i})},Es=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Cs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Es,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},As=Tn(Is,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,phone:d,countryCode:p,started:g}=e;return function*(){const e=u(r.SIGNATURE,Is,p);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ms)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:d,countryCode:p,contractId:i,actionType:e.actionType});return g(f),sn(Cs)({data:f.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),vs=vi({moduleName:s.mitIdAdvancedSignature,createModuleCreator:Tn}),bs=vi({moduleName:s.mitIdQesSignature,createModuleCreator:Tn}),Ns=vi({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:Tn}),_s=vi({moduleName:s.seBankIdQesSignature,createModuleCreator:Tn}),Rs=s.frejaAdvancedSignature,Os=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},Ms=Tn(Rs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,redirect:p}=e;return function*(){const e=u(r.SIGNATURE,Rs,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Os)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return sn(p,{shouldFormatResult:!1})(g)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ds=s.frejaQesSignature,Us=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},ws=Tn(Ds,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,redirect:p}=e;return function*(){const e=u(r.SIGNATURE,Ds,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Us)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return sn(p,{shouldFormatResult:!1})(g)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ks=vi({moduleName:s.gbOneIdAdvancedSignature,createModuleCreator:Tn}),Gs=s.handwrittenSignature,Ls=function(e){let{apiClient:t,apiEndpoints:n,language:r,cancelToken:i,docId:o,clientId:a,emailToken:s,smsToken:c,handwrittenSignatureData:u,handwrittenSignatureDataUrl:l}=e;return t.post({url:n.inCurrentMode.completeHandwritten(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:l},cancelToken:i})},Bs=Tn(Gs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f}=e;return function*(){const e=u(r.SIGNATURE,Gs,l);return console.log(e),s.dispatch({message:"".concat(e.actionType,": signing started")}),sn(Ls)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f})}()});return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),Ps=s.haricaQesSignature,js=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:a},cancelToken:r})},Fs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}=e;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,otp_code:l,username:c,password:u},cancelToken:o})},xs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}=e;return Nn({pollInterval:2e3,fn:Fs,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}]}).start()},Vs=Tn(Ps,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,username:l,password:d,otpCode:p,countryCode:g,started:f}=e;return function*(){const e=u(r.SIGNATURE,Ps,g);s.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(js)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:e.actionType});return f(h),sn(xs)({data:h.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,username:l,password:d,otpCode:p})}()});return function(t){return e.apply(this,arguments)}}(),{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}}),Ks=vi({moduleName:s.veriffAdvancedSignature,createModuleCreator:Tn}),Hs=s.ltIdQesSignature,qs=function(e){let{idcode:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Qs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Zs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Qs,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ws=Tn(Hs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:s,countryCode:c,language:l,started:d}=e;return function*(){const e=u(r.SIGNATURE,Hs,c),p=yield sn(qs)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:s,language:l,actionType:e.actionType,countryCode:c});return d(p),sn(Zs)({data:p.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Js=zr({moduleName:s.certStoreQesSignature,createModuleCreator:Tn}),Ys=zr({moduleName:s.certStoreAdvancedSignature,createModuleCreator:Tn}),zs=zr({moduleName:s.certStoreAdvancedUnverifiedSignature,createModuleCreator:Tn}),Xs=vi({moduleName:s.buypassQesSignature,createModuleCreator:Tn}),$s=vi({moduleName:s.intesiFtnAdvSignature,createModuleCreator:Tn}),ec=vi({moduleName:s.trustAsiaSignature,createModuleCreator:Tn}),tc=vi({moduleName:s.mscTrustGateSignature,createModuleCreator:Tn}),nc=vi({moduleName:s.gseAdvSignature,createModuleCreator:Tn}),rc=vi({moduleName:s.certMeQesSignature,createModuleCreator:Tn}),ic=s.esLleidaAdvSignature,oc=function(e){let{certificate:t,country:n,pin:r,username:i,cancelToken:o,apiEndpoints:a,apiClient:s}=e;const c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"es-lleida-advanced-signature",certificate:t,country:n,pin:r,username:i},cancelToken:o})},ac=function(e){let{username:t,pin:n,language:r,clientId:i,docId:o,cancelToken:a,apiEndpoints:s,apiClient:c,actionType:u}=e;const l=s.inCurrentMode.startSigning();return c.post({url:l,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,username:t,pin:n},cancelToken:a})},sc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureEsLleida(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},cc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:sc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},uc=Tn(ic,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,username:c,pin:l,countryCode:d,language:p,started:g,action:f,redirect:h}=e;return function*(){const e=u(r.SIGNATURE,ic,d);if(s.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===f){const e=yield sn(oc)({country:d,username:c,pin:l,cancelToken:i,apiEndpoints:o,apiClient:a});return sn(h,{shouldFormatResult:!1})(e)}const y=yield sn(ac)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:p,username:c,pin:l,countryCode:d,actionType:e.actionType});return g(y),sn(cc)({data:y.data,apiClient:a,apiEndpoints:o,language:p,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),lc=vi({moduleName:s.seBankIdAdvancedHashSignature,createModuleCreator:Tn}),dc=vi({moduleName:s.dkMitIdAdvancedHashSignature,createModuleCreator:Tn}),pc=vi({moduleName:s.noBankIdAdvancedHashSignature,createModuleCreator:Tn}),gc=vi({moduleName:s.itSpidQualifiedHashSignature,createModuleCreator:Tn}),fc=vi({moduleName:s.adacomQesSignature,createModuleCreator:Tn}),hc=vi({moduleName:s.adacomOneShotQesSignature,createModuleCreator:Tn}),yc=s.diiaQesSignature,Tc=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,countryCode:a,language:s,actionType:c}=e;const u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:c,country:a,lang:s},cancelToken:r})},Sc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureDiiaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ic=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Sc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},mc=Tn(yc,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,yc,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Tc)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,countryCode:d,contractId:i,actionType:e.actionType});return p(g),sn(Ic)({data:g.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}()),Ec=vi({moduleName:s.emudhraQesSignature,createModuleCreator:Tn}),Cc=vi({moduleName:s.mxPscWorldAdvancedSignature,createModuleCreator:Tn}),Ac=vi({moduleName:s.transSpedQesSignature,createModuleCreator:Tn}),vc=vi({moduleName:s.vidaAdvancedSignature,createModuleCreator:Tn}),bc=zr({moduleName:s.vnBkavTokenSignature,createModuleCreator:Tn}),Nc=zr({moduleName:s.vnCa2TokenSignature,createModuleCreator:Tn}),_c=zr({moduleName:s.vnFastTokenSignature,createModuleCreator:Tn}),Rc=zr({moduleName:s.vnFptTokenSignature,createModuleCreator:Tn}),Oc=zr({moduleName:s.vnSmartTokenSignature,createModuleCreator:Tn}),Mc=zr({moduleName:s.vnViettelTokenSignature,createModuleCreator:Tn}),Dc=zr({moduleName:s.vnVnptTokenSignature,createModuleCreator:Tn}),Uc=s.digilogixQesSignature,wc=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,idcode:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,idcode:u},cancelToken:i})},kc=Tn(Uc,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,idcode:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,Uc,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(wc)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0}}),Gc=vi({moduleName:s.buypassAdvancedSignature,createModuleCreator:Tn}),Lc=vi({moduleName:s.igniSignAdvancedSignature,createModuleCreator:Tn}),Bc=s.bTrustQesSignature,Pc=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,profileId:a,actionType:s}=e;const c=i.inCurrentMode.startSigning();return o.post({url:c,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:s,profile_id:a},cancelToken:r})},jc=function(e){let{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}=e;return n.post({url:r.inCurrentMode.completeSignatureBTrustQes(),withCredentials:!1,data:{token:t.token,doc_id:o,client_id:a},cancelToken:i})},Fc=function(e){let{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}=e;return Nn({pollInterval:2e3,fn:jc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}]}).start()},xc=Tn(Bc,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,countryCode:c,profileId:l,started:d}=e;return function*(){const e=u(r.SIGNATURE,Bc,c);s.dispatch({message:"".concat(e.actionType,": signing started")});const p=yield sn(Pc)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,profileId:l,actionType:e.actionType});return d(p),sn(Fc)({data:p.data,apiClient:a,apiEndpoints:o,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{profileId:{type:"string",required:!0},docId:{type:"string",required:!0}}),Vc=function(e){let{countryCode:t,clientId:n,docId:i,apiEndpoints:o}=e;const a=u(r.SIGNATURE,s.esAutofirmaSignature,t);return o.inCurrentMode.integrationIframe({clientId:n,docId:i,actionType:a.actionType})},Kc=function(e,t){if(e instanceof Error)throw e;let n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Jr({userMessage:n,message:e.message,details:e})},Hc=function(){var e=nn(function(e){let{iframeHolder:t,iframeUrl:n,monitor:r,iframeMessenger:i,cancelToken:o}=e;return function*(){const e=document.createElement("iframe");e.setAttribute("src",n),e.setAttribute("referrerpolicy","origin"),e.setAttribute("allow","clipboard-write"),e.style.width="100%",e.style.height="100%",e.style.position="relative",e.style.border="0",t.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),t.appendChild(e);try{return yield i.send({iframe:e,message:{operation:"ready"},cancelToken:o}),new Promise(function(t){t(e)})}catch(e){throw r.logError("Failed to create iframe",e),e}}()});return function(t){return e.apply(this,arguments)}}(),qc=function(){var e=nn(function(e){let{iframeMessenger:t,iframe:n,country:r,cancelToken:i}=e;return function*(){return{data:{certificate:(yield t.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i})).certificate}}}()});return function(t){return e.apply(this,arguments)}}(),Qc=function(e){let{certificate:t,clientId:n,docId:r,countryCode:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c}=e;const u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:t,base64_certificate:t,country:i},cancelToken:o})},Zc=function(e){let{iframeMessenger:t,iframe:n,certificate:r,fileContent:i,country:o,cancelToken:a}=e;return t.send({iframe:n,message:{operation:"getSignature",certificate:r,fileContent:i,country:o},cancelToken:a})},Wc=function(e){let{signatures:t,certificate:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,driver:c,actionType:u}=e;const l=a.inCurrentMode.completeSignatureIdCard({actionType:u});return s.post({url:l,withCredentials:!1,data:{client_id:r,doc_id:i,signature_value:t[0],certificate:n,driver:c},cancelToken:o})},Jc=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},Yc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,certificate:u,actionType:l}=e;return Nn({pollInterval:2e3,maxPollDuration:36e4,fn:Wc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,certificate:u,actionType:l}]}).start()},zc=function(){var e=nn(function(e){let{countryCode:t,clientId:n,apiEndpoints:i,iframeHolder:o,i18n:a,iframeMessenger:c,docId:l,cancelToken:d,apiClient:p,monitoringService:g,action:f,redirect:h,signingCertificate:y}=e;return function*(){const e=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:g,moduleName:s.esAutofirmaSignature}),T=u(r.SIGNATURE,s.esAutofirmaSignature,t),S=yield sn(Vc,{shouldFormatResult:!1})({countryCode:t,clientId:n,docId:l,apiEndpoints:i}),I=yield sn(Hc,{shouldFormatResult:!1})({iframeUrl:S,iframeHolder:o,i18n:a,monitor:e,iframeMessenger:c,cancelToken:d}).catch(function(e){return Kc(e,a)});let m=y;if(m||(m=(yield sn(qc)({iframeMessenger:c,iframe:I,country:t,monitor:e,cancelToken:d}).catch(function(e){return Kc(e,a)})).data.certificate),"cscApiAuthorizeCredential"===f){const e=yield sn(Jc)({certificate:m,actionType:T.actionType,country:t,cancelToken:d,apiEndpoints:i,apiClient:p});return sn(h,{shouldFormatResult:!1})(e)}const E=yield sn(Qc)({certificate:m,clientId:n,docId:l,countryCode:t,cancelToken:d,apiEndpoints:i,apiClient:p,monitor:e,actionType:T.actionType}),C=yield sn(Zc,{shouldFormatResult:!1})({iframeMessenger:c,iframe:I,certificate:m,fileContent:E.data.fileContent||void 0,country:t,cancelToken:d}).catch(function(e){return Kc(e,a)});return sn(Yc)({signatures:C.signatures,certificate:m,clientId:n,docId:l,cancelToken:d,apiEndpoints:i,apiClient:p,actionType:T.actionType})}()});return function(t){return e.apply(this,arguments)}}(),Xc=Tn(s.esAutofirmaSignature,zc,{iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}}),$c=zr({moduleName:s.localAdvUnverifiedSignature,createModuleCreator:Tn}),eu=Object.freeze({sandbox:"sandbox",production:"production"});function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const ru=function(e,t,n){const r={};return Object.keys(e).forEach(function(i){r[i]=function(e,t,n){return function(r){const i=nu(nu({},t),r);return n?n(e(i)):e(i)}}(e[i],t,n)}),r},iu=function(e){let{method:t,baseUrl:n,clientId:r,redirectUri:i,state:o,language:a,country:s}=e,c="".concat(n,"/oauth/start/").concat(t,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},ou=s.eParakstsSmartCard,au=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},su=Tn(ou,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(au)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),cu=vi({moduleName:s.itsmeQesSignature,createModuleCreator:Tn}),uu=vi({moduleName:s.frIdentAdvancedSignature,createModuleCreator:Tn}),lu=function(){const e=Ft({rawSettings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},schema:Vt}),t=function(){let{currentLanguage:e="en",locales:t=en}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={currentLanguage:e};return Object.freeze({setLanguage:function(e){n.currentLanguage=e},t:function(e){let r=t[n.currentLanguage];r||(r=t.en);let i=r[e]||t.en[e];return i||(i=e),i},getCurrentLanguage:function(){return n.currentLanguage}})}({currentLanguage:"en"}),n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=nu({base:function(e){let{baseUrl:t}=e;return t},oidcStart:function(e){let{baseUrl:t}=e;return function(e){let{baseUrl:t}=e;return"".concat(t,"/oidc/oauth/login")}({baseUrl:t})},readCard:function(t){let{countryCode:n=e.countryCode.toLowerCase(),clientId:r}=t,i="eideasy.com";return e.sandbox&&["EE","BE","LT"].includes(n)&&(i="test.eideasy.com"),"https://".concat(n,".").concat(i,"/api/identity/").concat(r,"/read-card")},zealIdIframeUrl:function(e){let{baseUrl:t,clientId:n}=e;return"".concat(t,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"lv-eparaksts-mobile-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"lv-eparaksts-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mojeid",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"edoapp-eid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login-basic",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login-standard",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"swedish-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"finnish-ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idin:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"idin-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"idin-customer-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"verifai-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"yoonik-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"pl-mojeid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},spid:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"spid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mit-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mitId2:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mit-id-2-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"norwegian-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId2:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"norwegian-bankid-2-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(e){let{baseUrl:t,clientId:n,redirectUri:r,state:i}=e,o="".concat(t,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"gb-one-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a}=e;return iu({method:"veriff-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},lIdentiteNumerique:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a}=e;return iu({method:"lidentite-numerique-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},integrationIframe:function(e){let{baseUrl:t,clientId:n,actionType:r,docId:i}=e;return"".concat(t,"/web-element/os-broker/").concat(n,"/").concat(r,"?doc_id=").concat(i)},startSigning:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/start-signing")},completeSignatureIdCard:function(e){let{baseUrl:t,actionType:n}=e;return"".concat(t,"/api/signatures/").concat(n,"/complete")},completeSignatureMobileId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/sk-smart-id/complete")},completeSignatureDiiaQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/diia-qes-signature/complete")},completeSignatureEvrotrust:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/evrotrust-signature/complete")},completeSignatureEvrotrustGeda:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/evrotrust-geda-signature/complete")},completeSignatureHalcom:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureBTrustQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/b-trust-qes-signature/complete")},completeSignatureEsLleida:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/es-lleida-advanced-signature/complete")},completeSignatureHaricaQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/harica-qes-signature/complete")},completeSignatureDTrustSignMe:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureDTrustSignMeAdv:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/d-trust-sign-me-adv-signature/complete")},completeSignatureFrejaSimple:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/uanataca-qes-signature/complete")},completeSignatureInfoCert:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/infocert-qes-signature/complete")},completeOtp:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/non-qualified/complete")},completeHandwritten:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/handwritten-simple-signature/complete")},completeSignatureLtIdQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/lt-id-qes-signature/complete")},eideasyMonitoring:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/monitor")},startZealIdSignature:function(e){let{baseUrl:t,clientId:n,docId:r}=e;return"".concat(t,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(e){let{baseUrl:t}=e;return"".concat(t,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(e){let{baseUrl:t}=e;return"".concat(t,"/csc/authorize-credential-redirect")}},t),r={[eu.production]:nu({},ru(n,{baseUrl:t.base?t.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl)),[eu.sandbox]:nu({},ru(n,{baseUrl:t.base?t.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))};return{get inCurrentMode(){const t=e.sandbox?eu.sandbox:eu.production;return r[t]}}}({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),r=function(e){let{clientId:t,remoteMonitoringEnabled:n,apiEndpoints:r}=e;return{dispatch:function(e){let{message:i}=e;n&&Ut({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:t,source:"browser-client",message:i}})}}}({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:n}),i=bn({instanceId:Math.floor(1e5+9e5*Math.random()),consoleLogLevel:e.consoleLogLevel});let o=window.eideasyIframeMessenger;return o||(o=function(){let e=null;function t(t){if(e&&(!t.data||"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender)&&e.message.operation===t.data.operation)if(!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message)"OK"===t.data.status?e.resolve(t.data):e.reject(t.data);else{const t={isCancel:!0};e.reject(t)}}return window.addEventListener("message",t,!1),Object.freeze({send:function(t){let{iframe:n,message:r,cancelToken:i}=t;e&&e.reject(new Error("Operation cancelled by new operation"));const o={message:r};e=o,o.promise=new Promise(function(e,t){o.resolve=e,o.reject=t,i&&i.promise.then(function(){const e=new Error("Operation cancelled by user");e.isCancel=!0,t(e)})});const a=new URL(n.src);return n.contentWindow.postMessage(r,a.origin),o.promise},clearPendingMessage:function(){e=null},destroy:function(){window.removeEventListener("message",t,!1)}})}(),window.eideasyIframeMessenger=o),function(){let{identificationModules:e=[],signingModules:t=[],settings:n={},i18n:r,apiEndpoints:i,monitoringService:o,iframeMessenger:a,logger:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=Pt({},n);u.apiEndpoints=i,r.setLanguage(u.language);const l={};e.forEach(function(e){const t=e({coreContext:{config:u,i18n:r,monitoringService:o,logger:s},apiClient:Lt({modifyRequestSettings:u.modifyRequestSettings})});l[t.MODULE_NAME]=t});const d={};return t.forEach(function(e){const t=e({coreContext:{config:u,i18n:r,monitoringService:o,iframeMessenger:a,logger:s},apiClient:Lt({modifyRequestSettings:u.modifyRequestSettings})});d[t.MODULE_NAME]=t}),Object.freeze({identification:Pt({},l),signature:Pt({},d),getAllMethods:function(){return c},setLanguage:r.setLanguage,setCountryCode:function(e){u.countryCode=e},getCountryCode:function(){return u.countryCode},getLogs:s.getLogs})}({settings:e,i18n:t,monitoringService:r,apiEndpoints:n,iframeMessenger:o,logger:i,identificationModules:[En,Mn,Gn,jn,Vn,su,Qn,Yn,$n,er,rr,ar,sr,lr,gr,fr,hr,yr,Ir,Cr,Ar,vr,br,Nr,_r,Rr,Or,Mr,Dr,Lr,Fr,Kr,Zr],signingModules:[Xr,ii,li,hi,yi,Ei,bi,Ni,_i,Aa,Ri,Di,Ui,wi,ki,Gi,Li,Bi,Fi,Ki,ya,Ia,ma,Na,_a,Ra,Oa,Ma,Da,ka,ja,Qa,Za,Wa,$a,as,ss,gs,Ss,As,vs,bs,Ns,_s,Ms,ws,cu,uu,ks,Bs,Vs,Ks,Ws,Js,Ys,zs,Xs,$s,lc,dc,pc,gc,ec,tc,nc,rc,uc,fc,hc,mc,Ec,Cc,Ac,vc,bc,Nc,_c,Rc,Oc,Mc,Dc,kc,Gc,Lc,xc,Xc,$c]})},du=lu})(),o})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eidEasyBrowserClient=t():e.eidEasyBrowserClient=t()}(self,()=>(()=>{var e,t,n={2:(e,t,n)=>{var r=n(2199),i=n(4664),o=n(5950);e.exports=function(e){return r(e,o,i)}},79:(e,t,n)=>{var r=n(3702),i=n(80),o=n(4739),a=n(8655),s=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},80:(e,t,n)=>{var r=n(6025),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},659:(e,t,n)=>{var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},695:(e,t,n)=>{var r=n(8096),i=n(2428),o=n(6449),a=n(3656),s=n(361),c=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&c(e),g=n||l||d||p,f=g?r(e.length,String):[],h=f.length;for(var y in e)!t&&!u.call(e,y)||g&&("length"==y||d&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||f.push(y);return f}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},945:(e,t,n)=>{var r=n(79),i=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},999:(e,t,n)=>{var r=n(9302),i=n(6800);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,a)}return t})}},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},1331:(e,t,n)=>{var r=n(2552),i=n(8879),o=n(346),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},1549:(e,t,n)=>{var r=n(2032),i=n(3862),o=n(6721),a=n(2749),s=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},1791:(e,t,n)=>{var r=n(6547),i=n(3360);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=o?o(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?i(n,u,l):r(n,u,l)}return n}},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},1882:(e,t,n)=>{var r=n(2552),i=n(3805);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2199:(e,t,n)=>{var r=n(4528),i=n(6449);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},2271:(e,t,n)=>{var r=n(1791),i=n(4664);e.exports=function(e,t){return r(e,i(e),t)}},2428:(e,t,n)=>{var r=n(7534),i=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},2552:(e,t,n)=>{var r=n(1873),i=n(659),o=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},2749:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},2824:(e,t,n)=>{var r=n(7805),i=n(3290),o=n(1961),a=n(3007),s=n(5529),c=n(2428),u=n(6449),l=n(3693),d=n(3656),p=n(1882),g=n(3805),f=n(1331),h=n(7167),y=n(4974),T=n(9884);e.exports=function(e,t,n,S,I,m,E){var C=y(e,n),A=y(t,n),v=E.get(A);if(v)r(e,n,v);else{var b=m?m(C,A,n+"",e,t,E):void 0,N=void 0===b;if(N){var _=u(A),R=!_&&d(A),O=!_&&!R&&h(A);b=A,_||R||O?u(C)?b=C:l(C)?b=a(C):R?(N=!1,b=i(A,!0)):O?(N=!1,b=o(A,!0)):b=[]:f(A)||c(A)?(b=C,c(C)?b=T(C):g(C)&&!p(C)||(b=s(A))):N=!1}N&&(E.set(A,b),I(b,A,S,m,E),E.delete(A)),r(e,n,b)}}},2865:(e,t,n)=>{var r=n(9570),i=n(1811)(r);e.exports=i},2903:(e,t,n)=>{var r=n(3805),i=n(5527),o=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},3040:(e,t,n)=>{var r=n(1549),i=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},3201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}},3243:(e,t,n)=>{var r=n(6110),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},3345:e=>{e.exports=function(){return[]}},3349:(e,t,n)=>{var r=n(2199),i=n(6375),o=n(7241);e.exports=function(e){return r(e,o,i)}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3488:e=>{e.exports=function(e){return e}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},3661:(e,t,n)=>{var r=n(3040),i=n(7670),o=n(289),a=n(4509),s=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},3693:(e,t,n)=>{var r=n(4894),i=n(346);e.exports=function(e){return i(e)&&r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},3736:(e,t,n)=>{var r=n(1873),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3838:(e,t,n)=>{var r=n(1791),i=n(7241);e.exports=function(e,t){return e&&r(t,i(t),e)}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},4664:(e,t,n)=>{var r=n(9770),i=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},4733:(e,t,n)=>{var r=n(1791),i=n(5950);e.exports=function(e,t){return e&&r(t,i(t),e)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},4894:(e,t,n)=>{var r=n(1882),i=n(294);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},4901:(e,t,n)=>{var r=n(2552),i=n(294),o=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},5083:(e,t,n)=>{var r=n(1882),i=n(7296),o=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:s).test(a(e))}},5250:(e,t,n)=>{var r=n(7217),i=n(7805),o=n(6649),a=n(2824),s=n(3805),c=n(7241),u=n(4974);e.exports=function e(t,n,l,d,p){t!==n&&o(n,function(o,c){if(p||(p=new r),s(o))a(t,n,c,l,e,d,p);else{var g=d?d(u(t,c),o,c+"",t,n,p):void 0;void 0===g&&(g=o),i(t,c,g)}},c)}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5364:(e,t,n)=>{var r=n(5250),i=n(999)(function(e,t,n){r(e,t,n)});e.exports=i},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5529:(e,t,n)=>{var r=n(9344),i=n(8879),o=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5861:(e,t,n)=>{var r=n(5580),i=n(8223),o=n(2804),a=n(6545),s=n(8303),c=n(2552),u=n(7473),l="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",f="[object DataView]",h=u(r),y=u(i),T=u(o),S=u(a),I=u(s),m=c;(r&&m(new r(new ArrayBuffer(1)))!=f||i&&m(new i)!=l||o&&m(o.resolve())!=d||a&&m(new a)!=p||s&&m(new s)!=g)&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case h:return f;case y:return l;case T:return d;case S:return p;case I:return g}return t}),e.exports=m},5950:(e,t,n)=>{var r=n(695),i=n(8984),o=n(4894);e.exports=function(e){return o(e)?r(e):i(e)}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},6038:(e,t,n)=>{var r=n(5861),i=n(346);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},6110:(e,t,n)=>{var r=n(5083),i=n(392);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},6169:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},6189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},6375:(e,t,n)=>{var r=n(4528),i=n(8879),o=n(4664),a=n(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},6449:e=>{var t=Array.isArray;e.exports=t},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},6547:(e,t,n)=>{var r=n(3360),i=n(5288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},6721:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},6757:(e,t,n)=>{var r=n(1033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(c),r(e,this,u)}}},6800:(e,t,n)=>{var r=n(5288),i=n(4894),o=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},7167:(e,t,n)=>{var r=n(4901),i=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},7199:(e,t,n)=>{var r=n(9653),i=n(6169),o=n(3201),a=n(3736),s=n(1961);e.exports=function(e,t,n){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},7217:(e,t,n)=>{var r=n(79),i=n(1420),o=n(938),a=n(3605),s=n(9817),c=n(945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},7241:(e,t,n)=>{var r=n(695),i=n(2903),o=n(4894);e.exports=function(e){return o(e)?r(e,!0):i(e)}},7296:(e,t,n)=>{var r,i=n(5481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7334:e=>{e.exports=function(e){return function(){return e}}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7534:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7730:(e,t,n)=>{var r=n(9172),i=n(7301),o=n(6009),a=o&&o.isMap,s=a?i(a):r;e.exports=s},7805:(e,t,n)=>{var r=n(3360),i=n(5288);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},8440:(e,t,n)=>{var r=n(6038),i=n(7301),o=n(6009),a=o&&o.isSet,s=a?i(a):r;e.exports=s},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},8948:(e,t,n)=>{var r=n(1791),i=n(6375);e.exports=function(e,t){return r(e,i(e),t)}},8984:(e,t,n)=>{var r=n(5527),i=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9172:(e,t,n)=>{var r=n(5861),i=n(346);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},9302:(e,t,n)=>{var r=n(3488),i=n(6757),o=n(2865);e.exports=function(e,t){return o(i(e,t,r),e+"")}},9325:(e,t,n)=>{var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},9344:(e,t,n)=>{var r=n(3805),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9570:(e,t,n)=>{var r=n(7334),i=n(3243),o=n(3488),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9884:(e,t,n)=>{var r=n(1791),i=n(7241);e.exports=function(e){return r(e,i(e))}},9935:e=>{e.exports=function(){return!1}},9999:(e,t,n)=>{var r=n(7217),i=n(3729),o=n(6547),a=n(4733),s=n(3838),c=n(3290),u=n(3007),l=n(2271),d=n(8948),p=n(2),g=n(3349),f=n(5861),h=n(6189),y=n(7199),T=n(5529),S=n(6449),I=n(3656),m=n(7730),E=n(3805),C=n(8440),A=n(5950),v=n(7241),b="[object Arguments]",N="[object Function]",_="[object Object]",R={};R[b]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[_]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[N]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,O,M,D,U){var w,k=1&n,G=2&n,L=4&n;if(O&&(w=D?O(t,M,D,U):O(t)),void 0!==w)return w;if(!E(t))return t;var B=S(t);if(B){if(w=h(t),!k)return u(t,w)}else{var P=f(t),j=P==N||"[object GeneratorFunction]"==P;if(I(t))return c(t,k);if(P==_||P==b||j&&!D){if(w=G||j?{}:T(t),!k)return G?d(t,s(w,t)):l(t,a(w,t))}else{if(!R[P])return D?t:{};w=y(t,P,k)}}U||(U=new r);var F=U.get(t);if(F)return F;U.set(t,w),C(t)?t.forEach(function(r){w.add(e(r,n,O,r,t,U))}):m(t)&&t.forEach(function(r,i){w.set(i,e(r,n,O,i,t,U))});var x=B?void 0:(L?G?g:p:G?v:A)(t);return i(x||t,function(r,i){x&&(r=t[i=r]),o(w,i,e(r,n,O,i,t,U))}),w}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e](o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";i.r(o),i.d(o,{allMethods:()=>c,createClient:()=>lu,default:()=>du,getMethodByHandlingModule:()=>u,logLevels:()=>xt,methodActionTypes:()=>a,methodTypes:()=>r,moduleNames:()=>s});var e={};function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}i.r(e),i.d(e,{hasBrowserEnv:()=>Ee,hasStandardBrowserEnv:()=>Ae,hasStandardBrowserWebWorkerEnv:()=>ve,navigator:()=>Ce,origin:()=>be});const 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",EE_WEB_EID_LOGIN:"ee-web-eid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LV_EPARAKSTS_ID_LOGIN:"lv-eparaksts-id-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",EDOAPP_EID_LOGIN:"edoapp-eid-login",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-login",ITSME_LOGIN:"itsme-login",ITSME_LOGIN_BASIC:"itsme-login-basic",ITSME_LOGIN_STANDARD:"itsme-login-standard",SE_BANKID_LOGIN:"swedish-bankid-login",IDIN_LOGIN:"idin-login",VERIFAI_LOGIN:"verifai-login",YOONIK_LOGIN:"yoonik-login",PL_MOJEID_LOGIN:"pl-mojeid-login",MIT_ID_LOGIN:"mit-id-login",MIT_ID_2_LOGIN:"mit-id-2-login",NORWEGIAN_BANKID_LOGIN:"norwegian-bankid-login",NORWEGIAN_BANKID_2_LOGIN:"norwegian-bankid-2-login",FTN_LOGIN:"ftn-login",IDIN_CUSTOMER_ID_LOGIN:"idin-customer-id-login",GB_ONE_ID_LOGIN:"gb-one-id-login",VERIFF_LOGIN:"veriff-login",LIDENTITE_NUMERIQUE_LOGIN:"lidentite-numerique-login",GOOGLE_WALLET_LOGIN:"google-wallet-login",AT_EUDI_WALLET_LOGIN:"at-eudi-wallet-login",SPID_LOGIN:"spid-login",EVROTRUST_LOGIN:"evrotrust-login",ZEAL_ID_SIGNATURE:"zealid-signature",EE_IDCARD_SIGNATURE:"id-signature",EE_MOBILEID_SIGNATURE:"mid-signature",LT_MOBILEID_SIGNATURE:"lt-mid-signature",SMARTID_SIGNATURE:"smart-id-signature",BE_IDCARD_SIGNATURE:"be-id-signature",LV_IDCARD_SIGNATURE:"lv-id-signature",LT_IDCARD_SIGNATURE:"lt-id-signature",FI_IDCARD_SIGNATURE:"fi-id-signature",LU_IDCARD_SIGNATURE:"lu-id-signature",PT_IDCARD_SIGNATURE:"pt-id-signature",HR_IDCARD_SIGNATURE:"hr-id-signature",CZ_IDCARD_SIGNATURE:"cz-id-signature",CERTEUROPE_USB_TOKEN_SIGNATURE:"certeurope-usb-token-signature",CERTSIGN_USB_TOKEN_SIGNATURE:"certsign-usb-token-signature",LV_EPARAKSTS_MOBILE_SIGNATURE:"lv-eparaksts-mobile-signature",AT_HANDY_SIGNATUR_SIGNATURE:"at-handy-signatur-signature",REGISTRU_CENTRAS_SIGNATURE:"registru-centras-signature",OTP_EMAIL:"otp-email-non-qualified",FI_FTN_ADVANCED_FULL_SIGNATURE:"fi-ftn-advanced-full-signature",FI_FTN_ADVANCED_SIGNATURE:"fi-ftn-advanced-signature",FI_FTN_QUALIFIED_SIGNATURE:"fi-ftn-qes-signature",EVROTRUST_SIGNATURE:"evrotrust-signature",EVROTRUST_GEDA_SIGNATURE:"evrotrust-geda-signature",CZ_MOJEID_ADVANCED_SIGNATURE:"cz-mojeid-advanced-signature",SERPRO_ID_ADVANCED_SIGNATURE:"serpro-id-advanced-signature",CZ_BANKID_ADVANCED_SIGNATURE:"cz-bankid-advanced-signature",ABA_DO_QES_SIGNATURE:"aba-do-qes-signature",GOOGLE_SIGNATURE:"google-signature",SE_BANKID_SIGNATURE:"swedish-bankid-signature",D_TRUST_SIGN_ME_QUALIFIED_SIGNATURE:"d-trust-sign-me-qes-signature",D_TRUST_SIGN_ME_ADVANCED_SIGNATURE:"d-trust-sign-me-adv-signature",CHAVE_MOVEL_QUALIFIED_SIGNATURE:"chave-movel-qes-signature",CL_ECERT_ADVANCED_SIGNATURE:"cl-ecert-advanced-signature",MIT_ID_SIMPLE_SIGNATURE:"mit-id-simple-signature",DK_MITID_ADVANCED_SIGNATURE:"dk-mitid-advanced-signature",DK_MITID_QES_SIGNATURE:"dk-mitid-qes-signature",SE_BANK_ID_ADVANCED_SIGNATURE:"se-bankid-advanced-signature",SE_BANK_ID_QES_SIGNATURE:"se-bankid-qes-signature",SE_BANK_ID_ADVANCED_HASH_SIGNATURE:"se-bankid-adv-hash-signature",DK_MIT_ID_ADVANCED_HASH_SIGNATURE:"dk-mitid-adv-hash-signature",NO_BANK_ID_ADVANCED_HASH_SIGNATURE:"no-bankid-adv-hash-signature",IT_SPID_QUALIFIED_HASH_SIGNATURE:"it-spid-qes-hash-signature",NORWEGIAN_BANKID_ADVANCED_SIGNATURE:"norwegian-bankid-adv-signature",NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE:"no-bankid-adv-light-signature",IDIN_SIMPLE_SIGNATURE:"idin-simple-signature",VERIFAI_SIMPLE_SIGNATURE:"verifai-simple-signature",SPID_QUALIFIED_SIGNATURE:"spid-qes-signature",FREJA_SIMPLE_SIGNATURE:"freja-simple-signature",AUDKENNI_QUALIFIED_SIGNATURE:"audkenni-qes-signature",YES_COM_QUALIFIED_SIGNATURE:"yes-com-qes-signature",SIMPLY_SIGN_QES_SIGNATURE:"simply-sign-qes-signature",UANATACA_QUALIFIED_SIGNATURE:"uanataca-qes-signature",INFOCERT_QUALIFIED_SIGNATURE:"infocert-qes-signature",CERTSIGN_WEBAPI_QUALIFIED_SIGNATURE:"certsign-webapi-qes-signature",HALCOM_QUALIFIED_SIGNATURE:"halcom-qes-signature",SWISS_ID_QUALIFIED_SIGNATURE:"swiss-id-qes-signature",SWISS_COM_QUALIFIED_SIGNATURE:"swiss-com-qes-signature",SE_FREJA_EID_ADVANCED_SIGNATURE:"se-frejaeid-advanced-signature",SE_FREJA_EID_QES_SIGNATURE:"se-frejaeid-qes-signature",ITSME_QES_SIGNATURE:"itsme-qes-signature",FR_IDENT_ADVANCED_SIGNATURE:"fr-ident-advanced-signature",GB_ONE_ID_ADVANCED_SIGNATURE:"gb-one-id-advanced-signature",HANDWRITTEN_SIMPLE_SIGNATURE:"handwritten-simple-signature",HARICA_QES_SIGNATURE:"harica-qes-signature",VERIFF_ADVANCED_SIGNATURE:"veriff-advanced-signature",LT_ID_QES_SIGNATURE:"lt-id-qes-signature",CERT_STORE_QES_SIGNATURE:"cert-store-qes-signature",CERT_STORE_ADVANCED_SIGNATURE:"cert-store-advanced-signature",CERT_STORE_ADV_UNVERIFIED_SIGN:"cert-store-adv-unverified-sign",BUYPASS_QES_SIGNATURE:"buypass-qes-signature",FI_FTN_INTESI_ADS_SIGNATURE:"fi-ftn-intesi-adv-signature",TRUST_ASIA_SIGNATURE:"trust-asia-signature",MSC_TRUST_GATE_SIGNATURE:"msc-trust-gate-signature",GSE_ADV_SIGNATURE:"gse-adv-signature",CERTME_QES_SIGNATURE:"certme-qes-signature",ES_LLEIDA_ADV_SIGNATURE:"es-lleida-advanced-signature",ADACOM_QES_SIGNATURE:"adacom-qes-signature",ADACOM_ONE_SHOT_QES_SIGNATURE:"adacom-one-shot-qes-signature",DIIA_QES_SIGNATURE:"diia-qes-signature",EMUDHRA_QES_SIGNATURE:"emudhra-qes-signature",MX_PSC_WORLD_ADVANCED_SIGNATURE:"mx-psc-world-adv-signature",TRANS_SPED_QES_SIGNATURE:"trans-sped-qes-signature",VIDA_ADVANCED_SIGNATURE:"vida-advanced-signature",VN_BKAV_TOKEN_SIGNATURE:"vn-bkav-token-signature",VN_CA2_TOKEN_SIGNATURE:"vn-ca2-token-signature",VN_FAST_TOKEN_SIGNATURE:"vn-fast-token-signature",VN_FPT_TOKEN_SIGNATURE:"vn-fpt-token-signature",VN_SMART_TOKEN_SIGNATURE:"vn-smart-token-signature",VN_VIETTEL_TOKEN_SIGNATURE:"vn-viettel-token-signature",VN_VNPT_TOKEN_SIGNATURE:"vn-vnpt-token-signature",DIGILOGIX_QES_SIGNATURE:"digilogix-qes-signature",BUYPASS_ADVANCED_SIGNATURE:"buypass-adv-signature",IGNISIGN_ADVANCED_SIGNATURE:"ignisign-advanced-signature",B_TRUST_QES_SIGNATURE:"b-trust-qes-signature",ES_AUTOFIRMA_SIGNATURE:"es-autofirma-signature",LOCAL_ADV_UNVERIFIED_SIGNATURE:"local-adv-unverified-signature"},s={idCard:"idCard",mobileId:"mobileId",webEid:"webEid",eParakstsMobile:"eParakstsMobile",eParakstsSmartCard:"eParakstsSmartCard",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",edoAppEid:"edoAppEid",atHandy:"atHandy",itsme:"itsme",itsmeBasic:"itsmeBasic",itsmeStandard:"itsmeStandard",seBankId:"seBankId",idin:"idin",idinCustomerId:"idinCustomerId",verifai:"verifai",yoonik:"yoonik",plMojeId:"plMojeId",mitId:"mitId",mitId2:"mitId2",norwegianBankId:"norwegianBankId",norwegianBankId2:"norwegianBankId2",ftn:"ftn",gbOneId:"gbOneId",veriff:"veriff",lIdentiteNumerique:"lIdentiteNumerique",googleWallet:"googleWallet",eudiWallet:"eudiWallet",spid:"spid",evrotrust:"evrotrust",idCardSignature:"idCardSignature",certEuropeUsbTokenSignature:"certEuropeUsbTokenSignature",certSignUsbTokenSignature:"certSignUsbTokenSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",evroTrustGedaSignature:"evroTrustGedaSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnAdvancedFullSignature:"ftnAdvancedFullSignature",mitIdAdvancedSignature:"mitIdAdvancedSignature",mitIdQesSignature:"mitIdQesSignature",seBankIdAdvancedSignature:"seBankIdAdvancedSignature",seBankIdQesSignature:"seBankIdQesSignature",seBankIdAdvancedHashSignature:"seBankIdAdvancedHashSignature",dkMitIdAdvancedHashSignature:"dkMitIdAdvancedHashSignature",noBankIdAdvancedHashSignature:"noBankIdAdvancedHashSignature",itSpidQualifiedHashSignature:"itSpidQualifiedHashSignature",ftnSignature:"ftnSignature",ftnQesSignature:"ftnQesSignature",atHandySignature:"atHandySignature",zealIdSignature:"zealIdSignature",mojeIdSignature:"mojeIdSignature",serproIdAdvancedSignature:"serproIdAdvancedSignature",czBankIDSignature:"czBankIDSignature",abaDoSignature:"abaDoSignature",googleSignature:"googleSignature",seBankIdSignature:"seBankIdSignature",dTrustSignMeSignature:"dTrustSignMeSignature",dTrustSignMeAdvSignature:"dTrustSignMeAdvSignature",chaveMovelSignature:"chaveMovelSignature",eCertChileSignature:"eCertChileSignature",mitIdSignature:"mitIdSignature",noBankIdAdvSignature:"noBankIdAdvSignature",noBankIdAdvLightSignature:"noBankIdAdvLightSignature",idinSignature:"idinSignature",verifaiSignature:"verifaiSignature",spidQesSignature:"spidQesSignature",frejaSimpleSignature:"frejaSimpleSignature",audkenniQesSignature:"audkenniQesSignature",yesComQesSignature:"yesComQesSignature",simplySignQesSignature:"simplySignQesSignature",uanatacaQesSignature:"uanatacaQesSignature",infoCertQesSignature:"infoCertQesSignature",certsignWebapiQesSignature:"certsignWebapiQesSignature",halcomQesSignature:"halcomQesSignature",swissIdQesSignature:"swissIdQesSignature",swissComQesSignature:"swissComQesSignature",frejaAdvancedSignature:"frejaAdvancedSignature",frejaQesSignature:"frejaQesSignature",itsmeQesSignature:"itsmeQesSignature",frIdentAdvancedSignature:"frIdentAdvancedSignature",gbOneIdAdvancedSignature:"gbOneIdAdvancedSignature",handwrittenSignature:"handwrittenSignature",haricaQesSignature:"haricaQesSignature",veriffAdvancedSignature:"veriffAdvancedSignature",ltIdQesSignature:"ltIdQesSignature",buypassQesSignature:"buypassQesSignature",intesiFtnAdvSignature:"intesiFtnAdvSignature",certStoreQesSignature:"certStoreQesSignature",certStoreAdvancedSignature:"certStoreAdvancedSignature",certStoreAdvancedUnverifiedSignature:"certStoreAdvancedUnverifiedSignature",trustAsiaSignature:"trustAsiaSignature",mscTrustGateSignature:"mscTrustGateSignature",gseAdvSignature:"gseAdvSignature",certMeQesSignature:"certMeQesSignature",esLleidaAdvSignature:"esLleidaAdvSignature",adacomQesSignature:"adacomQesSignature",adacomOneShotQesSignature:"adacomOneShotQesSignature",diiaQesSignature:"diiaQesSignature",emudhraQesSignature:"emudhraQesSignature",mxPscWorldAdvancedSignature:"mxPscWorldAdvancedSignature",transSpedQesSignature:"transSpedQesSignature",vidaAdvancedSignature:"vidaAdvancedSignature",vnBkavTokenSignature:"vnBkavTokenSignature",vnCa2TokenSignature:"vnCa2TokenSignature",vnFastTokenSignature:"vnFastTokenSignature",vnFptTokenSignature:"vnFptTokenSignature",vnSmartTokenSignature:"vnSmartTokenSignature",vnViettelTokenSignature:"vnViettelTokenSignature",vnVnptTokenSignature:"vnVnptTokenSignature",digilogixQesSignature:"digilogixQesSignature",buypassAdvancedSignature:"buypassAdvancedSignature",igniSignAdvancedSignature:"igniSignAdvancedSignature",bTrustQesSignature:"bTrustQesSignature",esAutofirmaSignature:"esAutofirmaSignature",localAdvUnverifiedSignature:"localAdvUnverifiedSignature"},c=Object.freeze({[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.EE_WEB_EID_LOGIN,handlingModule:s.webEid,supportedCountries:["EE"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:s.frejaEid,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{actionType:a.ITSME_LOGIN_BASIC,handlingModule:s.itsmeBasic,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{actionType:a.ITSME_LOGIN_STANDARD,handlingModule:s.itsmeStandard,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{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.MIT_ID_2_LOGIN,handlingModule:s.mitId2,supportedCountries:["DK"]},{actionType:a.NORWEGIAN_BANKID_LOGIN,handlingModule:s.norwegianBankId,supportedCountries:["NO"]},{actionType:a.NORWEGIAN_BANKID_2_LOGIN,handlingModule:s.norwegianBankId2,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"]},{actionType:a.LIDENTITE_NUMERIQUE_LOGIN,handlingModule:s.lIdentiteNumerique,supportedCountries:["FR"]},{actionType:a.GOOGLE_WALLET_LOGIN,handlingModule:s.googleWallet,supportedCountries:["US"]},{actionType:a.AT_EUDI_WALLET_LOGIN,handlingModule:s.eudiWallet,supportedCountries:["AT"]},{actionType:a.SPID_LOGIN,handlingModule:s.spid,supportedCountries:["IT"]},{actionType:a.EVROTRUST_LOGIN,handlingModule:s.evrotrust,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]}],[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.CZ_IDCARD_SIGNATURE,handlingModule:s.idCardSignature,supportedCountries:["CZ"]},{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","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA","AX"]},{actionType:a.EVROTRUST_GEDA_SIGNATURE,handlingModule:s.evroTrustGedaSignature,supportedCountries:["KE"]},{actionType:a.ITSME_QES_SIGNATURE,handlingModule:s.itsmeQesSignature,supportedCountries:["BE","DK","EE","FI","FR","DE","IS","IE","IT","LU","NO","PT","RO","SE","ES","NL","GB","AT","BG","CZ","GR","HU","PL","SK","HR","CY","LT","LV","MT","SI"]},{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","RS","SE","SI","SK"]},{actionType:a.CZ_MOJEID_ADVANCED_SIGNATURE,handlingModule:s.mojeIdSignature,supportedCountries:["CZ"]},{actionType:a.SERPRO_ID_ADVANCED_SIGNATURE,handlingModule:s.serproIdAdvancedSignature,supportedCountries:["BR"]},{actionType:a.MX_PSC_WORLD_ADVANCED_SIGNATURE,handlingModule:s.mxPscWorldAdvancedSignature,supportedCountries:["MX"]},{actionType:a.TRANS_SPED_QES_SIGNATURE,handlingModule:s.transSpedQesSignature,supportedCountries:["AF","AL","DZ","AD","AO","AR","AM","AU","AT","AZ","BH","BD","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","CY","CZ","DK","DJ","DO","EC","EG","SV","GQ","ER","EE","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GR","GT","GN","GY","HT","HN","HU","IS","IN","ID","IR","IQ","IE","IL","IT","JM","JP","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MR","MU","MX","MD","MC","MN","ME","MA","MZ","MM","NA","NP","NL","NZ","NI","NE","NG","NO","OM","PK","PA","PG","PY","PE","PH","PL","PT","QA","RO","RU","RW","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","KR","ES","LK","SD","SR","SZ","SE","CH","SY","TJ","TZ","TH","TL","TG","TO","TN","TR","TM","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","YE","ZM","ZW"]},{actionType:a.CZ_BANKID_ADVANCED_SIGNATURE,handlingModule:s.czBankIDSignature,supportedCountries:["CZ"]},{actionType:a.ABA_DO_QES_SIGNATURE,handlingModule:s.abaDoSignature,supportedCountries:["DO"]},{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","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","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.CL_ECERT_ADVANCED_SIGNATURE,handlingModule:s.eCertChileSignature,supportedCountries:["CL"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_SIGNATURE,handlingModule:s.noBankIdAdvSignature,supportedCountries:["NO"]},{actionType:a.NORWEGIAN_BANKID_ADVANCED_LIGHT_SIGNATURE,handlingModule:s.noBankIdAdvLightSignature,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:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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.INFOCERT_QUALIFIED_SIGNATURE,handlingModule:s.infoCertQesSignature,supportedCountries:["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DE","DJ","DM","DO","EC","EG","ER","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GR","GL","GD","GP","GU","GT","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","GS","KR","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","UM","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"]},{actionType: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_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.seBankIdAdvancedHashSignature,supportedCountries:["SE"]},{actionType:a.DK_MIT_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.dkMitIdAdvancedHashSignature,supportedCountries:["DK"]},{actionType:a.NO_BANK_ID_ADVANCED_HASH_SIGNATURE,handlingModule:s.noBankIdAdvancedHashSignature,supportedCountries:["NO"]},{actionType:a.IT_SPID_QUALIFIED_HASH_SIGNATURE,handlingModule:s.itSpidQualifiedHashSignature,supportedCountries:["IT"]},{actionType:a.SE_FREJA_EID_ADVANCED_SIGNATURE,handlingModule:s.frejaAdvancedSignature,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{actionType:a.SE_FREJA_EID_QES_SIGNATURE,handlingModule:s.frejaQesSignature,supportedCountries:["AD","AF","AG","AO","AL","AM","AR","AU","AS","AT","AZ","BS","BH","BD","BB","BY","BE","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","DZ","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","BZ"]},{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.LT_ID_QES_SIGNATURE,handlingModule:s.ltIdQesSignature,supportedCountries:["LT"]},{actionType:a.CERT_STORE_QES_SIGNATURE,handlingModule:s.certStoreQesSignature,supportedCountries:["WORLD"]},{actionType:a.CERT_STORE_ADVANCED_SIGNATURE,handlingModule:s.certStoreAdvancedSignature,supportedCountries:["WORLD"]},{actionType:a.CERT_STORE_ADV_UNVERIFIED_SIGN,handlingModule:s.certStoreAdvancedUnverifiedSignature,supportedCountries:["WORLD"]},{actionType:a.BUYPASS_QES_SIGNATURE,handlingModule:s.buypassQesSignature,supportedCountries:["NO"]},{actionType:a.FI_FTN_INTESI_ADS_SIGNATURE,handlingModule:s.intesiFtnAdvSignature,supportedCountries:["FI"]},{actionType:a.TRUST_ASIA_SIGNATURE,handlingModule:s.trustAsiaSignature,supportedCountries:["CN"]},{actionType:a.MSC_TRUST_GATE_SIGNATURE,handlingModule:s.mscTrustGateSignature,supportedCountries:["MY"]},{actionType:a.GSE_ADV_SIGNATURE,handlingModule:s.gseAdvSignature,supportedCountries:["CO"]},{actionType:a.CERTME_QES_SIGNATURE,handlingModule:s.certMeQesSignature,supportedCountries:["RO"]},{actionType:a.ES_LLEIDA_ADV_SIGNATURE,handlingModule:s.esLleidaAdvSignature,supportedCountries:["ES"]},{actionType:a.ADACOM_QES_SIGNATURE,handlingModule:s.adacomQesSignature,supportedCountries:["GR"]},{actionType:a.ADACOM_ONE_SHOT_QES_SIGNATURE,handlingModule:s.adacomOneShotQesSignature,supportedCountries:["AL","AR","AU","AT","BD","BE","BR","BG","CA","CL","CN","CO","CR","HR","CY","CZ","DK","DO","EC","EG","EE","FI","FR","DE","GB","GR","HU","IS","IE","IN","IL","IT","JP","KE","LV","LT","LU","MY","MT","MX","MK","NL","NZ","NO","PK","PA","PE","PL","PT","KR","RO","RS","SG","SK","SI","ZA","ES","SE","CH","TW","TH","TR","UA","AE","UY","US","VE","VN"]},{actionType:a.DIIA_QES_SIGNATURE,handlingModule:s.diiaQesSignature,supportedCountries:["UA"]},{actionType:a.EMUDHRA_QES_SIGNATURE,handlingModule:s.emudhraQesSignature,supportedCountries:["IN"]},{actionType:a.VIDA_ADVANCED_SIGNATURE,handlingModule:s.vidaAdvancedSignature,supportedCountries:["ID"]},{actionType:a.VN_BKAV_TOKEN_SIGNATURE,handlingModule:s.vnBkavTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_CA2_TOKEN_SIGNATURE,handlingModule:s.vnCa2TokenSignature,supportedCountries:["VN"]},{actionType:a.VN_FAST_TOKEN_SIGNATURE,handlingModule:s.vnFastTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_FPT_TOKEN_SIGNATURE,handlingModule:s.vnFptTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_SMART_TOKEN_SIGNATURE,handlingModule:s.vnSmartTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_VIETTEL_TOKEN_SIGNATURE,handlingModule:s.vnViettelTokenSignature,supportedCountries:["VN"]},{actionType:a.VN_VNPT_TOKEN_SIGNATURE,handlingModule:s.vnVnptTokenSignature,supportedCountries:["VN"]},{actionType:a.DIGILOGIX_QES_SIGNATURE,handlingModule:s.digilogixQesSignature,supportedCountries:["AR"]},{actionType:a.BUYPASS_ADVANCED_SIGNATURE,handlingModule:s.buypassAdvancedSignature,supportedCountries:["NO"]},{actionType:a.IGNISIGN_ADVANCED_SIGNATURE,handlingModule:s.igniSignAdvancedSignature,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.B_TRUST_QES_SIGNATURE,handlingModule:s.bTrustQesSignature,supportedCountries:["AF","AL","DZ","AS","AD","AO","AI","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BR","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CO","KM","CG","CD","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FJ","FI","FR","GA","GM","GE","DE","GH","GI","GR","GL","GD","GU","GT","GN","GW","GY","HT","VA","HN","HK","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","MO","MG","MW","MY","MV","ML","MT","MH","MR","MU","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NZ","NI","NE","NG","KP","MK","FM","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","PR","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","SZ","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","ZM","ZW"]},{actionType:a.ES_AUTOFIRMA_SIGNATURE,handlingModule:s.esAutofirmaSignature,supportedCountries:["ES"]},{actionType:a.LOCAL_ADV_UNVERIFIED_SIGNATURE,handlingModule:s.localAdvUnverifiedSignature,supportedCountries:["WORLD"]}]}),u=function(e,t,n){const r=c[e];if(t&&n){const i=r.find(function(e){return e.handlingModule===t&&(e.supportedCountries.includes(n)||e.supportedCountries.includes("WORLD"))});if(!i){if(0===r.filter(function(e){return e.handlingModule===t}).length)throw new Error("Could not find matching method configuration for ".concat(e,' module "').concat(t,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(e,'\n module "').concat(t,'".'))}return i}return r.find(function(e){return e.handlingModule===t})};var l=i(5364),d=i.n(l);function p(e,t){return function(){return e.apply(t,arguments)}}const{toString:g}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:h,toStringTag:y}=Symbol,T=(S=Object.create(null),e=>{const t=g.call(e);return S[t]||(S[t]=t.slice(8,-1).toLowerCase())});var S;const I=e=>(e=e.toLowerCase(),t=>T(t)===e),m=e=>t=>typeof t===e,{isArray:E}=Array,C=m("undefined");function A(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v=I("ArrayBuffer"),b=m("string"),N=m("function"),_=m("number"),R=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==T(e))return!1;const t=f(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||y in e||h in e)},M=I("Date"),D=I("File"),U=I("Blob"),w=I("FileList"),k=I("URLSearchParams"),[G,L,B,P]=["ReadableStream","Request","Response","Headers"].map(I);function j(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),E(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(A(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function F(e,t){if(A(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,V=e=>!C(e)&&e!==x,K=(H="undefined"!=typeof Uint8Array&&f(Uint8Array),e=>H&&e instanceof H);var H;const q=I("HTMLFormElement"),Q=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Z=I("RegExp"),W=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},J=I("AsyncFunction"),Y=(z="function"==typeof setImmediate,X=N(x.postMessage),z?setImmediate:X?($=`axios@${Math.random()}`,ee=[],x.addEventListener("message",({source:e,data:t})=>{e===x&&t===$&&ee.length&&ee.shift()()},!1),e=>{ee.push(e),x.postMessage($,"*")}):e=>setTimeout(e));var z,X,$,ee;const te="undefined"!=typeof queueMicrotask?queueMicrotask.bind(x):"undefined"!=typeof process&&process.nextTick||Y,ne={isArray:E,isArrayBuffer:v,isBuffer:A,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||N(e.append)&&("formdata"===(t=T(e))||"object"===t&&N(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer),t},isString:b,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:O,isEmptyObject:e=>{if(!R(e)||A(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:G,isRequest:L,isResponse:B,isHeaders:P,isUndefined:C,isDate:M,isFile:D,isBlob:U,isRegExp:Z,isFunction:N,isStream:e=>R(e)&&N(e.pipe),isURLSearchParams:k,isTypedArray:K,isFileList:w,forEach:j,merge:function e(){const{caseless:t}=V(this)&&this||{},n={},r=(r,i)=>{const o=t&&F(n,i)||i;O(n[o])&&O(r)?n[o]=e(n[o],r):O(r)?n[o]=e({},r):E(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(j(t,(t,r)=>{n&&N(t)?e[r]=p(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&f(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:I,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[h]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:Q,hasOwnProp:Q,reduceDescriptors:W,freezeMethods:e=>{W(e,(t,n)=>{if(N(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];N(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return E(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:x,isContextDefined:V,isSpecCompliantForm:function(e){return!!(e&&N(e.append)&&"FormData"===e[y]&&e[h])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(A(e))return e;if(!("toJSON"in e)){t[r]=e;const i=E(e)?[]:{};return j(e,(e,t)=>{const o=n(e,r+1);!C(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:J,isThenable:e=>e&&(R(e)||N(e))&&N(e.then)&&N(e.catch),setImmediate:Y,asap:te,isIterable:e=>null!=e&&N(e[h])};function re(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ne.inherits(re,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:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const ie=re.prototype,oe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oe[e]={value:e}}),Object.defineProperties(re,oe),Object.defineProperty(ie,"isAxiosError",{value:!0}),re.from=(e,t,n,r,i,o)=>{const a=Object.create(ie);return ne.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),re.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ae=re;function se(e){return ne.isPlainObject(e)||ne.isArray(e)}function ce(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ue(e,t,n){return e?e.concat(t).map(function(e,t){return e=ce(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const le=ne.toFlatObject(ne,{},null,function(e){return/^is[A-Z]/.test(e)}),de=function(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ne.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(ne.isBoolean(e))return e.toString();if(!s&&ne.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(ne.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(se)}(e)||(ne.isFileList(e)||ne.endsWith(n,"[]"))&&(s=ne.toArray(e)))return n=ce(n),s.forEach(function(e,r){!ne.isUndefined(e)&&null!==e&&t.append(!0===a?ue([n],r,o):null===a?n:n+"[]",c(e))}),!1;return!!se(e)||(t.append(ue(i,n,o),c(e)),!1)}const l=[],d=Object.assign(le,{defaultVisitor:u,convertValue:c,isVisitable:se});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ne.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ne.forEach(n,function(n,o){!0===(!(ne.isUndefined(n)||null===n)&&i.call(t,n,ne.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),l.pop()}}(e),t};function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ge(e,t){this._pairs=[],e&&de(e,this,t)}const fe=ge.prototype;fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,pe)}:pe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const he=ge;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Te(e,t,n){if(!t)return e;const r=n&&n.encode||ye;ne.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):ne.isURLSearchParams(t)?t.toString():new he(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const Se=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ne.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ee="undefined"!=typeof window&&"undefined"!=typeof document,Ce="object"==typeof navigator&&navigator||void 0,Ae=Ee&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,be=Ee&&window.location.href||"http://localhost",Ne={...e,...me},_e=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&ne.isArray(r)?r.length:o,s?(ne.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&ne.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&ne.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(e,r)=>{t(function(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Re={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ne.isObject(e);if(i&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return r?JSON.stringify(_e(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return de(e,new Ne.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ne.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return de(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(ne.isString(e))try{return(0,JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Re.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{Re.headers[e]={}});const Oe=Re,Me=ne.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"]),De=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:ne.isArray(e)?e.map(we):String(e)}function ke(e,t,n,r,i){return ne.isFunction(r)?r.call(this,t,n):(i&&(t=n),ne.isString(t)?ne.isString(r)?-1!==t.indexOf(r):ne.isRegExp(r)?r.test(t):void 0:void 0)}class Ge{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Ue(t);if(!i)throw new Error("header name must be a non-empty string");const o=ne.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=we(e))}const o=(e,t)=>ne.forEach(e,(e,n)=>i(e,n,t));if(ne.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Me[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ne.isObject(e)&&ne.isIterable(e)){let n,r,i={};for(const t of e){if(!ne.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?ne.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=Ue(e)){const n=ne.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ne.isFunction(t))return t.call(this,e,n);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ue(e)){const n=ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!ke(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Ue(e)){const i=ne.findKey(n,e);!i||t&&!ke(0,n[i],i,t)||(delete n[i],r=!0)}}return ne.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!ke(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ne.forEach(this,(r,i)=>{const o=ne.findKey(n,i);if(o)return t[o]=we(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete t[i],t[a]=we(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ne.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ue(e);t[r]||(function(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return ne.isArray(e)?e.forEach(r):r(e),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ne.freezeMethods(Ge);const Le=Ge;function Be(e,t){const n=this||Oe,r=t||n,i=Le.from(r.headers);let o=r.data;return ne.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Pe(e){return!(!e||!e.__CANCEL__)}function je(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(je,ae,{__CANCEL__:!0});const Fe=je;function xe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ve=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[a];i||(i=c),n[o]=s,r[o]=c;let l=a,d=0;for(;l!==o;)d+=n[l++],l%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]}(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,c=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ke=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},He=e=>(...t)=>ne.asap(()=>e(...t)),qe=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,Qe=Ne.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&a.push("path="+r),ne.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ze(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const We=e=>e instanceof Le?{...e}:e;function Je(e,t){t=t||{};const n={};function r(e,t,n,r){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:r},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function i(e,t,n,i){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!ne.isUndefined(t))return r(void 0,t)}function a(e,t){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(We(e),We(t),0,!0)};return ne.forEach(Object.keys({...e,...t}),function(r){const o=c[r]||i,a=o(e[r],t[r],r);ne.isUndefined(a)&&o!==s||(n[r]=a)}),n}const Ye=e=>{const t=Je({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Le.from(s),t.url=Te(Ze(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),ne.isFormData(r))if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ne.hasStandardBrowserEnv&&(i&&ne.isFunction(i)&&(i=i(t)),i||!1!==i&&qe(t.url))){const e=o&&a&&Qe.read(a);e&&s.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ye(e);let i=r.data;const o=Le.from(r.headers).normalize();let a,s,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:g}=r;function f(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function y(){if(!h)return;const r=Le.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());xe(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(new ae("Request aborted",ae.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ie;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ae(t,i.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&ne.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),ne.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),g&&([c,l]=Ve(g,!0),h.addEventListener("progress",c)),p&&h.upload&&([s,u]=Ve(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Fe(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const T=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);T&&-1===Ne.protocols.indexOf(T)?n(new ae("Unsupported protocol "+T+":",ae.ERR_BAD_REQUEST,e)):h.send(i||null)})},Xe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ae?t:new Fe(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=()=>ne.asap(a),s}},$e=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},et=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*$e(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},tt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,nt=tt&&"function"==typeof ReadableStream,rt=tt&&("function"==typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const ot=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},at=nt&&ot(()=>{let e=!1;const t=new Request(Ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),st=nt&&ot(()=>ne.isReadableStream(new Response("").body)),ct={stream:st&&(e=>e.body)};var ut;tt&&(ut=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ct[e]&&(ct[e]=ne.isFunction(ut[e])?t=>t[e]():(t,n)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,n)})}));const lt={http:null,xhr:ze,fetch:tt&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:p}=Ye(e);u=u?(u+"").toLowerCase():"text";let g,f=Xe([i,o&&o.toAbortSignal()],a);const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let y;try{if(c&&at&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e)){const t=new Request(Ne.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ne.isArrayBufferView(e)||ne.isArrayBuffer(e)?e.byteLength:(ne.isURLSearchParams(e)&&(e+=""),ne.isString(e)?(await rt(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ne.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Ke(y,Ve(He(c)));r=et(n.body,65536,e,t)}}ne.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;g=new Request(t,{...p,signal:f,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(g,p);const a=st&&("stream"===u||"response"===u);if(st&&(s||a&&h)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});const t=ne.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Ke(t,Ve(He(s),!0))||[];o=new Response(et(o.body,65536,n,()=>{r&&r(),h&&h()}),e)}u=u||"text";let T=await ct[ne.findKey(ct,u)||"text"](o,e);return!a&&h&&h(),await new Promise((t,n)=>{xe(t,n,{data:T,headers:Le.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:g})})}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,g),{cause:t.cause||t});throw ae.from(t,t&&t.code,e,g)}})};ne.forEach(lt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>`- ${e}`,pt=e=>ne.isFunction(e)||null===e||!1===e,gt=e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!pt(n)&&(r=lt[(t=String(n)).toLowerCase()],void 0===r))throw new ae(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(dt).join("\n"):" "+dt(e[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ft(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function ht(e){return ft(e),e.headers=Le.from(e.headers),e.data=Be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gt(e.adapter||Oe.adapter)(e).then(function(t){return ft(e),t.data=Be.call(e,e.transformResponse,t),t.headers=Le.from(t.headers),t},function(t){return Pe(t)||(ft(e),t&&t.response&&(t.response.data=Be.call(e,e.transformResponse,t.response),t.response.headers=Le.from(t.response.headers))),Promise.reject(t)})}const yt="1.11.0",Tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const St={};Tt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+yt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ae(r(i," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!St[i]&&(St[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},Tt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const It={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new ae("option "+o+" must be "+n,ae.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}},validators:Tt},mt=It.validators;class Et{constructor(e){this.defaults=e||{},this.interceptors={request:new Se,response:new Se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&It.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(ne.isFunction(r)?t.paramsSerializer={serialize:r}:It.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),It.assertOptions(t,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[t.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Le.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!s){const e=[ht.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=a.length;let p=t;for(d=0;d<l;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=ht.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Te(Ze((e=Je(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(e){Et.prototype[e]=function(t,n){return this.request(Je(n||{},{method:e,url:t,data:(n||{}).data}))}}),ne.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(Je(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Et.prototype[e]=t(),Et.prototype[e+"Form"]=t(!0)});const Ct=Et;class At{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Fe(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new At(function(t){e=t}),cancel:e}}}const vt=At,bt={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(bt).forEach(([e,t])=>{bt[t]=e});const Nt=bt,_t=function e(t){const n=new Ct(t),r=p(Ct.prototype.request,n);return ne.extend(r,Ct.prototype,n,{allOwnKeys:!0}),ne.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Je(t,n))},r}(Oe);_t.Axios=Ct,_t.CanceledError=Fe,_t.CancelToken=vt,_t.isCancel=Pe,_t.VERSION=yt,_t.toFormData=de,_t.AxiosError=ae,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Je,_t.AxiosHeaders=Le,_t.formToJSON=e=>_e(ne.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=gt,_t.HttpStatusCode=Nt,_t.default=_t;const Rt=_t,{CancelToken:Ot,isCancel:Mt,Cancel:Dt}=Rt;Rt.interceptors.response.use(function(e){return(t=e.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT","ERROR"].includes(t.status)?Promise.reject(function(e){let{message:t,config:n,code:r,request:i,response:o}=e;const a=new Error(t);return a.config=n,r&&(a.code=r),a.request=i,a.response=o,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(e.status),config:e.config,request:e.request,response:e})):e;var t});const Ut=function(e){return Rt(e)};function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Gt=function(e,t){const{modifyRequestSettings:n}=t;let r,i=e;return"function"==typeof n&&(r=n(i)),r&&(i=d()(i,r)),i},Lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.freeze({get:function(){return Ut(Gt(kt({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e))},post:function(){return Ut(Gt(kt({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e))},CancelToken:Ot})};function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Ft=function(e){let{rawSettings:t,schema:r}=e;const i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t);return Object.keys(r).forEach(function(e){const n=r[e],o=t[e];if(n.required&&void 0===o)throw new Error('Missing required setting "'.concat(e,'"'));if(void 0===o&&(i[e]=n.default),void 0!==i[e]&&void 0!==n.type&&n.type!==typeof i[e])throw new Error('Expected "'.concat(e,'" to be type of "').concat(n.type,'", but received "').concat(typeof i[e],'"'))}),i},xt=Object.freeze({debug:10,info:20,error:30}),Vt={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(e){const t=e.data&&e.data.redirect_uri;return t?(window.location!==window.top.location?window.top.location.href=t:window.location.href=t,new Promise(function(){})):e},type:"function"},remoteMonitoringEnabled:{default:!1},oauthParamState:{type:"string"},consoleLogLevel:{default:xt.error,type:"number"}},Kt=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."}');var Ht=i.t(Kt,2);const qt=JSON.parse('{"id-card-read-timeout":"Reading the ID card took too long. Please close all the open browser windows and then try again.","no_certificates":"Could not read certificates. Make sure that the card is in the reader and the reader is working properly."}');var Qt=i.t(qt,2);const Zt=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."}');var Wt=i.t(Zt,2);const Jt=JSON.parse('{"id-card-read-timeout":"Perskaityti asmens tapatybės kortelę užtruko per ilgai. Uždarykite visus atidarytus naršyklės langus ir bandykite dar kartą.","no_certificates":"Nepavyko perskaityti sertifikatų. Įsitikinkite, kad kortelė yra skaitytuve ir skaitytuvas veikia tinkamai."}');var Yt=i.t(Jt,2);const zt=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."}');var Xt=i.t(zt,2);const $t=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),en={de:Ht,en:Qt,et:Wt,lt:Yt,lv:Xt,ru:i.t($t,2)};function tn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function nn(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){tn(o,r,i,a,s,"next",e)}function s(e){tn(o,r,i,a,s,"throw",e)}a(void 0)})}}var rn=i(8055);const on=i.n(rn)(),an=function(e){const t=e;return(Mt(e)||"user_cancel"===e.message)&&(t.isCancel=!0),t.response&&t.response.data&&(t.response.data.message&&(t.userMessage=t.response.data.message),t.response.data.errors&&(t.userDetails=t.response.data.errors)),t},sn=function(e){let{shouldFormatResult:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){var n=nn(function*(){const n=yield e(...arguments),r=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).error}(n);if(r)throw an(r);return t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:t,message:n}=e,r=on({message:n});if(t)r.data=t;else{if(!e.result||!e.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=e.result.data}return r}(n):n});return function(){return n.apply(this,arguments)}}()},cn=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),un=new Map(cn);Error;const ln=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],dn=new WeakSet,pn=({from:e,seen:t,to:n,forceEnumerable:r,maxDepth:i,depth:o,useToJSON:a,serialize:s})=>{if(n||(n=Array.isArray(e)?[]:!s&&fn(e)?(e=>{const t=un.get(e)??Error;return t===AggregateError?new t([]):new t})(e.name):{}),t.push(e),o>=i)return n;if(a&&"function"==typeof e.toJSON&&!dn.has(e))return(e=>{dn.add(e);const t=e.toJSON();return dn.delete(e),t})(e);const c=e=>pn({from:e,seen:[...t],forceEnumerable:r,maxDepth:i,depth:o,useToJSON:a,serialize:s});for(const[r,i]of Object.entries(e))if(i&&i instanceof Uint8Array&&"Buffer"===i.constructor.name)n[r]="[object Buffer]";else if(null===i||"object"!=typeof i||"function"!=typeof i.pipe){if("function"!=typeof i)if(i&&"object"==typeof i)t.includes(e[r])?n[r]="[Circular]":(o++,n[r]=c(e[r]));else try{n[r]=i}catch{}}else n[r]="[object Stream]";if(s||n instanceof Error)for(const{property:t,enumerable:i}of ln)void 0!==e[t]&&null!==e[t]&&Object.defineProperty(n,t,{value:fn(e[t])||Array.isArray(e[t])?c(e[t]):e[t],enumerable:!!r||i,configurable:!0,writable:!0});return n};function gn(e,t={}){const{maxDepth:n=Number.POSITIVE_INFINITY,useToJSON:r=!0}=t;return"object"==typeof e&&null!==e?pn({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0,useToJSON:r,serialize:!0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e}function fn(e){return Boolean(e)&&"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.message&&"string"==typeof e.stack}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Tn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){let{coreContext:i,apiClient:o}=r;const{i18n:a,config:s,monitoringService:c,iframeMessenger:u,logger:l}=i;return Object.freeze({MODULE_NAME:e,start:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=yn(yn({},Vt),n),i=yn(yn({},s),e),d=Ft({rawSettings:i,schema:r}),{success:p,fail:g,finished:f}=d,h=e.language||a.getCurrentLanguage(),y=o.CancelToken.source(),T=y.token,S={onCancelByUser:function(){},onRefreshByUser:function(){}},I=function(e){S.onCancelByUser=e},m=function(e){S.onRefreshByUser=e},E=function(){y.cancel()},C=function(){var e=nn(function*(){yield t(yn(yn({},d),{},{language:h,i18n:a,monitoringService:c,cancelToken:T,cancel:E,setOnCancelByUser:I,setOnRefreshByUser:m,apiClient:o,iframeMessenger:u,logger:l})).then(function(e){p(e)}).catch(function(e){l.error(e),c.dispatch({message:JSON.stringify(gn(e))}),g(an(e))}).finally(f)});return function(){return e.apply(this,arguments)}}();return C().catch(function(e){l.error(e),c.dispatch({message:JSON.stringify(gn(e))}),g(an(e)),f(an(e))}),Object.freeze({cancel:function(){S.onCancelByUser(),E()},refresh:function(){S.onRefreshByUser()}})}})}};function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const mn=s.idCard,En=Tn(mn,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,i18n:o}=e;let a;return a=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.apiEndpoints.inCurrentMode.readCard({countryCode:e.countryCode,clientId:e.clientId});return e.nonce&&(t+="?nonce=".concat(e.nonce)),i.get({url:t,cancelToken:e.cancelToken})})(In(In({},e),{},{language:n,cancelToken:t})).catch(function(e){throw"ECONNABORTED"===e.code&&(e.userMessage=o.t("id-card-read-timeout")),e}),a=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,mn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(In(In({},e),{},{cancelToken:t,language:n,data:a.data})),a});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),Cn=Object.freeze({fnTimeout:"EFNTIMEDOUT"}),An=function(){var e=nn(function(e){let{fn:t,shouldContinue:n,interval:r,fnTimeoutMs:i=864e5}=e;return function*(){let e=0;const o=function(){var a=nn(function*(a,s){let c,u;e+=1;try{c=yield Promise.race([t(),new Promise(function(e,t){setTimeout(function(){const e=new Error("Function did not resolve in defined time");e.code=Cn.fnTimeout,t(e)},i)})]),u=void 0}catch(e){c=void 0,u=e}n({result:c,attempts:e,error:u})?setTimeout(o,r,a,s):a({result:c,error:u})});return function(e,t){return a.apply(this,arguments)}}();return new Promise(o)}()});return function(t){return e.apply(this,arguments)}}(),vn=[],bn=function(e){let{instanceId:t="",consoleLogLevel:n=xt.error}=e;const r=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";const i=["[".concat(t,"]: "),...e];vn.length>1e4&&vn.shift();const o=i.map(function(e){return e instanceof Error?gn(e):e});vn.push(JSON.stringify([r,...o])),xt[r]>=n&&(console[r]?console[r](...i):console.log(...i))};return Object.freeze({debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"debug")},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"info")},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t,"error")},getLogs:function(){return vn}})},Nn=function(e){let t,{pollInterval:n=2e3,maxPollDuration:r,fn:i,fnTimeoutMs:o,fnArgs:a,onPoll:s=function(){},logger:c=bn({instanceId:"apiPoller"})}=e;r&&(t=r/n);let u=0,l=0;const d=function(){const e=l;function r(){return e===l}return new Promise(function(e,l){An({fn:function(){return i(...a)},fnTimeoutMs:o,shouldContinue:function(e){if(!r())return!1;const{result:n}=e;c.info("Active poller result",n&&n.data),s(e);const o=n&&n.data&&n.data.status;if(e.error&&e.error.code===Cn.fnTimeout)return console.log("Function did not resolve before the provided timeout, trying again",i),!0;const a=Mt(e.error),l=e.error&&!e.error.response&&!a;l&&(u+=1);let d=!1;var p,g;return p=e.attempts,(!(g=t)||p<g)&&u<3&&(d=l||"RUNNING"===o||"IN_PROGRESS"===o),d},interval:n}).then(function(t){r()&&(c.info("Active poller final result",t&&t.data),e(t))}).catch(function(e){r()&&l(e)})})};return{start:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,n){d().then(t).catch(n);const{setOnRefreshByUser:r=function(){}}=e;r(function(){l+=1,c.info("Refresh was called, pollerId: ",l),d().then(t).catch(n)})})}}};function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const On=s.smartId,Mn=Tn(On,function(){var e=nn(function*(e){const{started:t=function(){},idcode:n,pollInterval:i=1e3,cancelToken:o,language:a,apiClient:s,setOnRefreshByUser:c}=e,l=function(e){const t=u(r.IDENTIFICATION,On);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language}})};let d;return d=yield sn(function(e){const t=u(r.IDENTIFICATION,On);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,country:e.countryCode,method:t.actionType,lang:e.language}})})(Rn(Rn({},e),{},{cancelToken:o,language:a,idcode:n})),t(d),d=yield sn(function(e){const t=Nn({pollInterval:e.pollInterval,maxPollDuration:12e4,fn:l,fnArgs:[Rn(Rn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language})]});return new Promise(function(e,n){t.start({setOnRefreshByUser:c}).then(e).catch(n)})})({config:e,data:Rn({},d.data),cancelToken:o,pollInterval:i,language:a}),d});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const wn=s.webEid,kn=function(){var e=nn(function*(e){const t=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:e.monitoringService,moduleName:"Web eID"}),{cancelToken:n,language:i,apiClient:o}=e,a=function(){var e=nn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){const{iframeHolder:r}=e,i=document.createElement("iframe"),o=e.iframeUrl;i.setAttribute("src",o),i.setAttribute("referrerpolicy","origin"),i.style.border="0",r.innerHTML="",r.appendChild(i);try{return yield window.eideasyIframeMessenger.send({iframe:i,message:{operation:"ready"},cancelToken:n}),new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to create iframe",e),e}}()});return function(){return e.apply(this,arguments)}}(),s=function(){var e=nn(function*(e){try{const{iframeHolder:t}=e,r=t.querySelector("iframe"),i=yield window.eideasyIframeMessenger.send({iframe:r,message:{operation:"getAuthToken",nonce:e.nonce},cancelToken:n});return new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to start Web eID",e),e}});return function(t){return e.apply(this,arguments)}}(),c=function(){var e=nn(function*(e){const t=u(r.IDENTIFICATION,wn);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.token,auth_token:e.authToken,method:t.actionType,lang:e.language}})});return function(t){return e.apply(this,arguments)}}(),l=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,wn);return{data:{url:e.apiEndpoints.inCurrentMode.integrationIframe({clientId:e.clientId,actionType:t.actionType,docId:""})}}})(Un(Un({},e),{},{cancelToken:n}));yield sn(a,{shouldFormatResult:!1})(Un(Un({},e),{},{cancelToken:n,iframeUrl:l.data.url})).catch(function(e){throw e});const d=yield sn(function(e){const t=u(r.IDENTIFICATION,wn);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language}})})(Un(Un({},e),{},{cancelToken:n,language:i})),p=yield sn(s,{shouldFormatResult:!1})(Un(Un({},e),{},{nonce:d.data.nonce,data:Un({},d.data),cancelToken:n,language:i}));return yield sn(c)(Un(Un({},e),{},{token:p.token,authToken:d.data.token,cancelToken:n}))});return function(t){return e.apply(this,arguments)}}(),Gn=Tn(wn,kn,{countryCode:{type:"string",required:!0}});function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Pn=s.mobileId,jn=Tn(Pn,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},idcode:a,phone:s,pollInterval:c=1e3}=e;let l;return l=yield sn(function(e){const t=u(r.IDENTIFICATION,Pn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:e.idcode,phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(Bn(Bn({},e),{},{cancelToken:t,language:n,idcode:a,phone:s})),o(l),l=yield sn(function(e){const t=12e4/c;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,Pn,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(Bn(Bn({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})})({config:e,data:l.data,cancelToken:t,language:n,pollInterval:c}),l});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Fn=s.eParakstsMobile,xn=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},Vn=Tn(Fn,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(xn)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}());function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const qn=s.frejaEid,Qn=Tn(qn,function(){var e=nn(function*(e){const{started:t=function(){},email:n,pollInterval:i=1e3,cancelToken:o,language:a,apiClient:s}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,qn);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{email:e.email,country:e.countryCode,method:t.actionType,lang:e.language}})})(Hn(Hn({},e),{},{cancelToken:o,language:a,email:n})),t(c),c=yield sn(function(e){const t=1e5/e.pollInterval;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,qn);return s.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,lang:e.language,timeout:2}})}(Hn(Hn({},e.config),{},{data:e.data,language:e.language,cancelToken:e.cancelToken}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})})({config:e,data:Hn({},c.data),cancelToken:o,language:a,pollInterval:i}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},email:{type:"string",required:!0}});function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Jn=s.zealId,Yn=Tn(Jn,function(){var e=nn(function*(e){const{cancelToken:t,apiClient:n,language:i}=e;let o;return o=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.get({withCredentials:!1,cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:e.clientId})})})(Wn(Wn({},e),{},{cancelToken:t})),o=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{iframeHolder:t}=e,n=document.createElement("iframe"),r=e.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",t.innerHTML="";const i=function(e,t,n){const r=new URL(e.data),i=r.searchParams.get("error"),o=r.searchParams.get("code");i?n(i):o?t({data:{code:o}}):n(e.data)},o=new Promise(function(e,t){window.addEventListener("message",function(n){const o=new URL(r);n.origin===o.origin&&(window.removeEventListener("message",i),i(n,e,t))})});return t.appendChild(n),o})(Wn(Wn({},e),{},{cancelToken:t,iframeUrl:o.data.url})),o=yield sn(function(e){const t=u(r.IDENTIFICATION,Jn);return n.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{method:t.actionType,code:e.data.code,lang:e.language}})})(Wn(Wn({},e),{},{cancelToken:t,language:i},o)),o});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),zn=function(){var e=nn(function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i,action:o,apiClient:a,method:s,moduleName:c,country:u}=e;return function*(){let e;if("oidcAuthorize"===o){const r=yield a.post({url:t.inCurrentMode.oidcStart({}),withCredentials:!1,data:{client_id:n,method:s,country:u}});if(!r||!r.data||"string"!=typeof r.data.redirect_url)throw new Error("Invalid API response: redirect_url is missing or not a string");e=r.data.redirect_url}else e=t.inCurrentMode[c]({clientId:n,redirectUri:r,language:i,country:u});return{data:{redirect_uri:e}}}()});return function(t){return e.apply(this,arguments)}}(),Xn=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(){var e=nn(function*(e){const{redirect:n,apiEndpoints:i,clientId:o,redirectUri:a,language:s,action:c,apiClient:l,country:d}=e,p=u(r.IDENTIFICATION,t),g=yield sn(zn)({apiEndpoints:i,clientId:o,redirectUri:a,language:s,action:c,apiClient:l,method:p.actionType,moduleName:t,country:d});return sn(n,{shouldFormatResult:!1})(g)});return function(t){return e.apply(this,arguments)}}();return n(t,i)},$n=Xn({moduleName:s.mojeId,createModuleCreator:Tn}),er=Xn({moduleName:s.edoAppEid,createModuleCreator:Tn}),tr=s.finnishTrustNetwork,nr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:i})}}},rr=Tn(tr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(nr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),ir=s.atHandy,or=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},ar=Tn(ir,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(or)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),sr=Xn({moduleName:s.itsme,createModuleCreator:Tn}),cr=s.itsmeBasic,ur=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.itsmeBasic({clientId:n,redirectUri:r,language:i})}}},lr=Tn(cr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(ur)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),dr=s.itsmeStandard,pr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.itsmeStandard({clientId:n,redirectUri:r,language:i})}}},gr=Tn(dr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(pr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),fr=Xn({moduleName:s.seBankId,createModuleCreator:Tn}),hr=Xn({moduleName:s.idin,createModuleCreator:Tn}),yr=Xn({moduleName:s.idinCustomerId,createModuleCreator:Tn}),Tr=s.verifai,Sr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.verifai({clientId:n,redirectUri:r,language:i})}}},Ir=Tn(Tr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Sr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),mr=s.yoonik,Er=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.yoonik({clientId:n,redirectUri:r,language:i})}}},Cr=Tn(mr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Er)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}()),Ar=Xn({moduleName:s.plMojeId,createModuleCreator:Tn}),vr=Xn({moduleName:s.mitId,createModuleCreator:Tn}),br=Xn({moduleName:s.mitId2,createModuleCreator:Tn}),Nr=Xn({moduleName:s.norwegianBankId,createModuleCreator:Tn}),_r=Xn({moduleName:s.norwegianBankId2,createModuleCreator:Tn}),Rr=Xn({moduleName:s.ftn,createModuleCreator:Tn}),Or=Xn({moduleName:s.gbOneId,createModuleCreator:Tn}),Mr=Xn({moduleName:s.veriff,createModuleCreator:Tn}),Dr=Xn({moduleName:s.lIdentiteNumerique,createModuleCreator:Tn});function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const kr=s.googleWallet,Gr=function(){var e=nn(function*(e){const t=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:e.monitoringService,moduleName:"Google Wallet"}),{cancelToken:n,language:i,apiClient:o}=e,a=function(){var e=nn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){const{iframeHolder:r}=e,i=document.createElement("iframe"),o=e.iframeUrl;i.setAttribute("src",o),i.setAttribute("allow","digital-credentials-get"),i.style.border="0",r.innerHTML="",r.appendChild(i);try{return yield window.eideasyIframeMessenger.send({iframe:i,message:{operation:"ready"},cancelToken:n}),new Promise(function(e){e(i)})}catch(e){throw t.logError("Failed to create iframe",e),e}}()});return function(){return e.apply(this,arguments)}}(),s=function(){var e=nn(function*(e){const{iframeHolder:r}=e,i=r.querySelector("iframe");try{const t=window.eideasyIframeMessenger.send({iframe:i,message:{operation:"getAuthToken",payload:e.requestObject},cancelToken:n});return new Promise(function(e){e(t)})}catch(e){throw t.logError("Failed to start Google Wallet",e),e}finally{i.innerHTML=""}});return function(t){return e.apply(this,arguments)}}(),c=function(){var e=nn(function*(e){const t=u(r.IDENTIFICATION,kr);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.token,claim_id:e.claimId,document_type:e.documentType,method:t.actionType,lang:e.language}})});return function(t){return e.apply(this,arguments)}}(),l=yield sn(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=u(r.IDENTIFICATION,kr);return{data:{url:e.apiEndpoints.inCurrentMode.integrationIframe({clientId:e.clientId,actionType:t.actionType,docId:""})}}})(wr(wr({},e),{},{cancelToken:n}));yield sn(a,{shouldFormatResult:!1})(wr(wr({},e),{},{cancelToken:n,iframeUrl:l.data.url})).catch(function(e){throw e});const d=yield sn(function(e){const t=u(r.IDENTIFICATION,kr);return o.post({cancelToken:e.cancelToken,url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language,document_type:e.documentType}})})(wr(wr({},e),{},{cancelToken:n,language:i})),p=yield sn(s,{shouldFormatResult:!1})(wr(wr({},e),{},{requestObject:d.data.object,data:wr({},d.data),cancelToken:n,language:i}));return sn(c)(wr(wr({},e),{},{token:p.token,claimId:d.data.token,cancelToken:n}))});return function(t){return e.apply(this,arguments)}}(),Lr=Tn(kr,Gr,{countryCode:{type:"string",required:!0},documentType:{type:"string",required:!0}});function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const jr=s.eudiWallet,Fr=Tn(jr,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},pollInterval:a=1e3,documentType:s}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,jr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{country:e.countryCode,method:t.actionType,lang:e.language,document_type:e.documentType},cancelToken:e.cancelToken})})(Pr(Pr({},e),{},{cancelToken:t,language:n,documentType:s})),o(c),c=yield sn(function(e){const t=6e5/a;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,jr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(Pr(Pr({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:2e3})})({config:e,data:c.data,cancelToken:t,language:n,pollInterval:a}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},documentType:{type:"string",required:!0}}),xr=s.spid,Vr=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r,language:i}=e;return{data:{redirect_uri:t.inCurrentMode.spid({clientId:n,redirectUri:r,language:i})}}},Kr=Tn(xr,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i,language:o}=e,a=yield sn(Vr)({apiEndpoints:n,clientId:r,redirectUri:i,language:o});return sn(t,{shouldFormatResult:!1})(a)});return function(t){return e.apply(this,arguments)}}());function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const Qr=s.evrotrust,Zr=Tn(Qr,function(){var e=nn(function*(e){const{cancelToken:t,language:n,apiClient:i,started:o=function(){},phone:a,pollInterval:s=1e3}=e;let c;return c=yield sn(function(e){const t=u(r.IDENTIFICATION,Qr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityStart(),data:{phone:e.phone,country:e.countryCode,method:t.actionType,lang:e.language},cancelToken:e.cancelToken})})(qr(qr({},e),{},{cancelToken:t,language:n,phone:a})),o(c),c=yield sn(function(e){const t=6e5/s;let n=0;return An({fn:function(){return function(e){const t=u(r.IDENTIFICATION,Qr,e.countryCode);return i.post({url:e.apiEndpoints.inCurrentMode.identityFinish(),data:{token:e.data.token,method:t.actionType,timeout:2,lang:e.language},cancelToken:e.cancelToken})}(qr(qr({},e.config),{},{data:e.data,cancelToken:e.cancelToken,language:e.language}))},shouldContinue:function(e){const{result:r}=e,i=r&&r.data&&r.data.status,o=Mt(e.error),a=e.error&&!e.error.response&&!o;a&&(n+=1);let s=!1;return e.attempts<t&&n<3&&(s=a||"RUNNING"===i),s},interval:1e3})})({config:e,data:c.data,cancelToken:t,language:n,pollInterval:s}),c});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0}}),Wr=function(){let{message:e="",userMessage:t="",details:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.message=e,this.userMessage=t,this.details=n,this.stack=(new Error).stack};(Wr.prototype=new Error).name="MethodException";const Jr=Wr,Yr={iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}},zr=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(e){let{countryCode:n,clientId:i,docId:o,apiEndpoints:a}=e;const s=u(r.SIGNATURE,t,n);return a.inCurrentMode.integrationIframe({clientId:i,docId:o,actionType:s.actionType})},o=function(e,t){if(e instanceof Error)throw e;let n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Jr({userMessage:n,message:e.message,details:e})},a=function(){var e=nn(function(e){let{iframeHolder:t,iframeUrl:n,monitor:r,iframeMessenger:i,cancelToken:o}=e;return function*(){const e=document.createElement("iframe");e.setAttribute("src",n),e.setAttribute("referrerpolicy","origin"),e.setAttribute("allow","clipboard-write;local-network-access"),e.style.width="100%",e.style.height="100%",e.style.position="relative",e.style.border="0",t.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),t.appendChild(e);try{return yield i.send({iframe:e,message:{operation:"ready"},cancelToken:o}),new Promise(function(t){t(e)})}catch(e){throw r.logError("Failed to create iframe",e),e}}()});return function(t){return e.apply(this,arguments)}}(),s=function(){var e=nn(function(e){let{iframeMessenger:t,iframe:n,country:r,cancelToken:i}=e;return function*(){return{data:{certificate:(yield t.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i})).certificate}}}()});return function(t){return e.apply(this,arguments)}}(),c=function(e){let{certificate:t,clientId:n,docId:r,countryCode:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c}=e;const u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:t,base64_certificate:t,country:i},cancelToken:o})},l=function(e){let{iframeMessenger:t,iframe:n,hexDigests:r,signedInfoDigests:i,certificate:o,country:a,monitor:s,cancelToken:c}=e;return s.log("Trying to sign the digests: ".concat(JSON.stringify(r),", ")+"signedInfoDigests: ".concat(JSON.stringify(i))),t.send({iframe:n,message:{operation:"getSignature",hexDigests:r,signedInfoDigests:i,certificate:o,country:a},cancelToken:c})},d=function(e){let{signatures:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,driver:s,actionType:c}=e;const u=o.inCurrentMode.completeSignatureIdCard({actionType:c});return a.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:t[0],signatures:t,driver:s},cancelToken:i})},p=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},g=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}=e;return Nn({pollInterval:2e3,maxPollDuration:36e4,fn:d,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,actionType:u}]}).start()},f=function(){var e=nn(function(e){let{countryCode:n,clientId:d,apiEndpoints:f,iframeHolder:h,i18n:y,iframeMessenger:T,docId:S,cancelToken:I,apiClient:m,monitoringService:E,action:C,redirect:A,signingCertificate:v}=e;return function*(){const e=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:E,moduleName:t}),b=u(r.SIGNATURE,t,n),N=yield sn(i,{shouldFormatResult:!1})({countryCode:n,clientId:d,docId:S,apiEndpoints:f}),_=yield sn(a,{shouldFormatResult:!1})({iframeUrl:N,iframeHolder:h,i18n:y,monitor:e,iframeMessenger:T,cancelToken:I}).catch(function(e){return o(e,y)});let R=v;if(R||(R=(yield sn(s)({iframeMessenger:T,iframe:_,country:n,monitor:e,cancelToken:I}).catch(function(e){return o(e,y)})).data.certificate),"cscApiAuthorizeCredential"===C){const e=yield sn(p)({certificate:R,actionType:b.actionType,country:n,cancelToken:I,apiEndpoints:f,apiClient:m});return sn(A,{shouldFormatResult:!1})(e)}const O=yield sn(c)({certificate:R,clientId:d,docId:S,countryCode:n,cancelToken:I,apiEndpoints:f,apiClient:m,monitor:e,actionType:b.actionType}),M=yield sn(l,{shouldFormatResult:!1})({iframeMessenger:T,iframe:_,hexDigests:[O.data.hexDigest],signedInfoDigests:O.data.signedInfoDigests,certificate:v,monitor:e,cancelToken:I}).catch(function(e){return o(e,y)});return sn(g)({signatures:M.signatures,clientId:d,docId:S,cancelToken:I,apiEndpoints:f,apiClient:m,actionType:b.actionType})}()});return function(t){return e.apply(this,arguments)}}();return n(t,f,Yr)},Xr=zr({moduleName:s.idCardSignature,createModuleCreator:Tn}),$r=s.mobileIdSignature,ei=function(e){let{certificate:t,country:n,phone:r,idcode:i,cancelToken:o,apiEndpoints:a,apiClient:s}=e;const c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"mid-signature",certificate:t,country:n,phone:r,idcode:i},cancelToken:o})},ti=function(e){let{phone:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:"mobile-id",phone:t,idcode:n,country:c,lang:u},cancelToken:o})},ni=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:t.token,doc_id:a,timeout:2,lang:i,client_id:s},cancelToken:o})},ri=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,maxPollDuration:12e4,fn:ni,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ii=Tn($r,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,idcode:l,phone:d,countryCode:p,started:g,action:f,redirect:h}=e;return function*(){if("cscApiAuthorizeCredential"===f){const e=yield sn(ei)({country:p,idcode:l,phone:d,cancelToken:i,apiEndpoints:o,apiClient:a});return sn(h,{shouldFormatResult:!1})(e)}const e=u(r.SIGNATURE,$r,p);s.dispatch({message:"".concat(e.actionType,": signing started")});const y=yield sn(ti)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,idcode:l,phone:d,countryCode:p});return g(y),sn(ri)({data:y.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),oi=s.smartIdSignature,ai=function(e){let{contractId:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,waitForChallengeCode:l}=e;const d=a.inCurrentMode.startSigning();return s.post({url:d,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:"smart-id",idcode:n,country:c,lang:u,wait_for_challenge_code:l},cancelToken:o})},si=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,timeout:2},cancelToken:o})},ci=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,onTryComplete:c,setOnRefreshByUser:u}=e;const l=Nn({pollInterval:2e3,maxPollDuration:12e4,onPoll:function(e){c({data:e&&e.result&&e.result.data||{}})},fn:si,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]});return new Promise(function(e,t){l.start({setOnRefreshByUser:u}).then(e).catch(t)})},ui=function(e){let{country:t,cancelToken:n,apiEndpoints:r,apiClient:i,idcode:o}=e;const a=r.inCurrentMode.cscApiAuthorizeCredential();return i.post({url:a,withCredentials:!1,data:{sign_type:"smart-id-signature",country:t,idcode:o},cancelToken:n})},li=Tn(oi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,idcode:d,countryCode:p,started:g,action:f,redirect:h,onTryComplete:y,waitForChallengeCode:T=!0,setOnRefreshByUser:S}=e;return function*(){const e=u(r.SIGNATURE,oi,p);if("cscApiAuthorizeCredential"===f){const e=yield sn(ui)({country:p,idcode:d,cancelToken:o,apiEndpoints:a,apiClient:s});return sn(h,{shouldFormatResult:!1})(e)}c.dispatch({message:"".concat(e.actionType,": signing started")});const I=yield sn(ai)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:d,countryCode:p,contractId:i,waitForChallengeCode:T});return g(I),sn(ci)({data:I.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t,onTryComplete:y,setOnRefreshByUser:S})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),di={countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}},pi=function(e){let{country:t,phone:n,email:r,idcode:i,cancelToken:o,apiEndpoints:a,apiClient:s,signType:c}=e;const u=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:u,withCredentials:!1,data:{sign_type:c,country:t,phone:n,email:r,idcode:i},cancelToken:o})},gi=function(e){let{contractId:t,idcode:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,email:l,phone:d,actionType:p}=e;const g=a.inCurrentMode.startSigning();return s.post({url:g,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,idcode:n,email:l,phone:d,country:c,lang:u},cancelToken:o})},fi=function(e,t,n){const i=function(e,t,n){return function(){var i=nn(function(i){let{clientId:o,docId:a,contractId:s,cancelToken:c,apiEndpoints:l,apiClient:d,monitoringService:p,language:g,idcode:f,phone:h,email:y,countryCode:T,started:S,action:I,redirect:m,setOnRefreshByUser:E,logger:C}=i;return function*(){const i=u(r.SIGNATURE,e,T);if(p.dispatch({message:"".concat(i.actionType,": signing started")}),C.info("".concat(i.actionType,": signing started")),"cscApiAuthorizeCredential"===I){C.info("".concat(i.actionType,": cscApiAuthorizeCredential called"));const e=yield sn(pi)({country:T,idcode:f,phone:h,email:y,cancelToken:c,apiEndpoints:l,apiClient:d,signType:t});return C.info("".concat(i.actionType,": authorizationResult"),e),sn(m,{shouldFormatResult:!1})(e)}const A=yield sn(gi)({clientId:o,docId:a,cancelToken:c,apiEndpoints:l,apiClient:d,language:g,idcode:f,phone:h,email:y,countryCode:T,contractId:s,actionType:i.actionType});return C.info("".concat(i.actionType,": signing start result"),A),S(A),sn(function(){const e=Nn({pollInterval:2e3,fn:function(){return d.post({url:n(l),withCredentials:!1,data:{token:A.data.token,doc_id:a,lang:g,client_id:o},cancelToken:c})},fnTimeoutMs:15e3,logger:C,fnArgs:[]});return new Promise(function(t,n){e.start({setOnRefreshByUser:E}).then(t).catch(n)})})()}()});return function(e){return i.apply(this,arguments)}}()}(e,t,n);return Tn(e,i,di)},hi=fi(s.evroTrustSignature,"evrotrust-signature",function(e){return e.inCurrentMode.completeSignatureEvrotrust()}),yi=fi(s.evroTrustGedaSignature,"evrotrust-geda-signature",function(e){return e.inCurrentMode.completeSignatureEvrotrustGeda()}),Ti=s.otpSignature,Si=function(){var e=nn(function(e){let{language:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:s}=e;return function*(){const e=o.inCurrentMode.startSigning();return a.post({url:e,withCredentials:!1,data:{doc_id:r,client_id:n,sign_type:s,lang:t},cancelToken:i})}()});return function(t){return e.apply(this,arguments)}}(),Ii=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},mi=function(e){let{apiClient:t,apiEndpoints:n,language:r,cancelToken:i,docId:o,clientId:a,emailToken:s,smsToken:c,handwrittenSignatureData:u,handwrittenSignatureDataUrl:l}=e;return t.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:l},cancelToken:i})},Ei=Tn(Ti,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f,started:h,confirmationCodeRequest:y,setOnCancelByUser:T}=e;return function*(){const e=u(r.SIGNATURE,Ti,l);if(console.log(e),s.dispatch({message:"".concat(e.actionType,": signing started")}),!p&&!d){const r=yield sn(Si)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,actionType:e.actionType});h(r);const s=yield sn(Ii,{shouldFormatResult:!1})({startSigningResult:r,confirmationCodeRequest:y,setOnCancelByUser:T});p=s.smsToken,d=s.emailToken}return sn(mi)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f})}()});return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),Ci={docId:{type:"string",required:!0},confirmedBySigner:{validator:e=>[null,!0,!1].includes(e)}},Ai=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredentialRedirect();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},vi=function(e){let{moduleName:t,createModuleCreator:n}=e;const i=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,confirmedBySigner:u,country:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,confirmed_by_signer:u,country:l},cancelToken:i})},o=function(){var e=nn(function(e){let{clientId:n,docId:o,contractId:a,cancelToken:s,apiEndpoints:c,apiClient:l,monitoringService:d,language:p,countryCode:g,redirect:f,confirmedBySigner:h,action:y}=e;return function*(){const e=u(r.SIGNATURE,t,g);if("cscApiAuthorizeCredential"===y){const t=yield sn(Ai)({country:g,cancelToken:s,apiEndpoints:c,apiClient:l,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(t)}d.dispatch({message:"".concat(e.actionType,": signing started")});const T=yield sn(i)({contractId:a,clientId:n,docId:o,cancelToken:s,apiEndpoints:c,apiClient:l,language:p,actionType:e.actionType,confirmedBySigner:h,country:g});return sn(f,{shouldFormatResult:!1})(T)}()});return function(t){return e.apply(this,arguments)}}();return n(t,o,Ci)},bi=vi({moduleName:s.eParakstsMobileSignature,createModuleCreator:Tn}),Ni=vi({moduleName:s.ftnAdvancedFullSignature,createModuleCreator:Tn}),_i=vi({moduleName:s.ftnSignature,createModuleCreator:Tn}),Ri=vi({moduleName:s.atHandySignature,createModuleCreator:Tn}),Oi=s.zealIdSignature,Mi=function(e){let{apiEndpoints:t,clientId:n,docId:r}=e;return{data:{redirect_uri:t.inCurrentMode.startZealIdSignature({clientId:n,docId:r})}}},Di=Tn(Oi,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,docId:i}=e,o=yield sn(Mi)({apiEndpoints:n,clientId:r,docId:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),Ui=vi({moduleName:s.mojeIdSignature,createModuleCreator:Tn}),wi=vi({moduleName:s.serproIdAdvancedSignature,createModuleCreator:Tn}),ki=vi({moduleName:s.czBankIDSignature,createModuleCreator:Tn}),Gi=vi({moduleName:s.abaDoSignature,createModuleCreator:Tn}),Li=vi({moduleName:s.googleSignature,createModuleCreator:Tn}),Bi=vi({moduleName:s.seBankIdSignature,createModuleCreator:Tn}),Pi=s.dTrustSignMeSignature,ji=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Fi=Tn(Pi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,Pi,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ji)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0}}),xi=s.dTrustSignMeAdvSignature,Vi=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u},cancelToken:i})},Ki=Tn(xi,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,xi,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(Vi)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0}});function Hi(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function qi(e,t){return e&t}function Qi(e,t){return e|t}function Zi(e,t){return e^t}function Wi(e,t){return e&~t}function Ji(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function Yi(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var zi,Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function $i(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Xi.charAt(n>>6)+Xi.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Xi.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Xi.charAt(n>>2)+Xi.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function eo(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o=Xi.indexOf(e.charAt(t));o<0||(0==r?(n+=Hi(o>>2),i=3&o,r=1):1==r?(n+=Hi(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Hi(i),n+=Hi(o>>2),i=3&o,r=3):(n+=Hi(i<<2|o>>4),n+=Hi(15&o),r=0))}return 1==r&&(n+=Hi(i<<2)),n}var to,no={decode:function(e){var t;if(void 0===to){for(to=Object.create(null),t=0;t<64;++t)to["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(to["-"]=62,to._=63,t=0;t<9;++t)to["= \f\n\r\t \u2028\u2029".charAt(t)]=-1}var n=[],r=0,i=0;for(t=0;t<e.length;++t){var o=e.charAt(t);if("="==o)break;if(-1!=(o=to[o])){if(void 0===o)throw new Error("Illegal character at offset "+t);r|=o,++i>=4?(n[n.length]=r>>16,n[n.length]=r>>8&255,n[n.length]=255&r,r=0,i=0):r<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=r>>10;break;case 3:n[n.length]=r>>16,n[n.length]=r>>8&255}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=no.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return no.decode(e)}},ro=1e13,io=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<ro?t=0:r-=(t=0|r/ro)*ro,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=ro,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(ro+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*ro+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),oo=/^(\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)?)?$/,ao=/^(\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 so(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var co,uo=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?oo:ao).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0===(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new io(r),c=e+1;c<t;++c)s.mulAdd(256,this.get(c));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),c=a==t-1?r:0,u=7;u>=c;--u)o+=s>>u&1?"1":"0";if(o.length>n)return i+so(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return so(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new io,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof io)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 so(r,n);i=new io,o=0}}return o>0&&(r+=".incomplete"),r},e}(),lo=function(){function e(e,t,n,r,i){if(!(r instanceof po))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return so(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return so(this.stream.parseStringISO(t,t+n),e);case 30:return so(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substring(t,t+n)},e.decode=function(t){var n;n=t instanceof uo?t:new uo(t,0);var r=new uo(n),i=new po(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,c=null,u=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return t};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){c=null}if(null===c){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,c)},e}(),po=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new io;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),go=[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],fo=(1<<26)/go[go.length-1],ho=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Hi(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Hi(n));return i?o:"0"},e.prototype.negate=function(){var t=mo();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ro(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=mo();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new To(t):new So(t),this.exp(e,n)},e.prototype.clone=function(){var e=mo();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=mo();return this.bitwiseTo(e,qi,t),t},e.prototype.or=function(e){var t=mo();return this.bitwiseTo(e,Qi,t),t},e.prototype.xor=function(e){var t=mo();return this.bitwiseTo(e,Zi,t),t},e.prototype.andNot=function(e){var t=mo();return this.bitwiseTo(e,Wi,t),t},e.prototype.not=function(){for(var e=mo(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=mo();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=mo();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Ji(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Yi(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Qi)},e.prototype.clearBit=function(e){return this.changeBit(e,Wi)},e.prototype.flipBit=function(e){return this.changeBit(e,Zi)},e.prototype.add=function(e){var t=mo();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=mo();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=mo();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=mo();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=mo();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=mo(),n=mo();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=_o(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new To(t):t.isEven()?new Io(t):new So(t);var a=[],s=3,c=n-1,u=(1<<n)-1;if(a[1]=r.convert(this),n>1){var l=mo();for(r.sqrTo(a[1],l);s<=u;)a[s]=mo(),r.mulTo(l,a[s-2],a[s]),s+=2}var d,p,g=e.t-1,f=!0,h=mo();for(i=Ro(e[g])-1;g>=0;){for(i>=c?d=e[g]>>i-c&u:(d=(e[g]&(1<<i+1)-1)<<c-i,g>0&&(d|=e[g-1]>>this.DB+i-c)),s=n;!(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--g),f)a[d].copyTo(o),f=!1;else{for(;s>1;)r.sqrTo(o,h),r.sqrTo(h,o),s-=2;s>0?r.sqrTo(o,h):(p=o,o=h,h=p),r.mulTo(h,a[d],o)}for(;g>=0&&!(e[g]&1<<i);)r.sqrTo(o,h),p=o,o=h,h=p,--i<0&&(i=this.DB-1,--g)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=_o(1),a=_o(0),s=_o(0),c=_o(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&c.isEven()||(s.addTo(this,s),c.subTo(t,c)),s.rShiftTo(1,s)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(c,a)):(i.subTo(r,i),n&&s.subTo(o,s),c.subTo(a,c))}return 0!=i.compareTo(e.ONE)?e.ZERO:c.compareTo(t)>=0?c.subtract(t):c.signum()<0?(c.addTo(t,c),c.signum()<0?c.add(t):c):c},e.prototype.pow=function(e){return this.exp(e,new yo)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=go[go.length-1]){for(t=0;t<go.length;++t)if(n[0]==go[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<go.length;){for(var r=go[t],i=t+1;i<go.length&&r<fo;)r*=go[i++];for(r=n.modInt(r);t<i;)if(r%go[t++]==0)return!1}return n.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:No(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&+t[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=mo());var a=mo(),s=this.s,c=t.s,u=this.DB-Ro(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var l=a.t,d=a[l-1];if(0!=d){var p=d*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),g=this.FV/p,f=(1<<this.F1)/p,h=1<<this.F2,y=r.t,T=y-l,S=null==n?mo():n;for(a.dlShiftTo(T,S),r.compareTo(S)>=0&&(r[r.t++]=1,r.subTo(S,r)),e.ONE.dlShiftTo(l,S),S.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--T>=0;){var I=r[--y]==d?this.DM:Math.floor(r[y]*g+(r[y-1]+h)*f);if((r[y]+=a.am(0,I,r,T,0,l))<I)for(a.dlShiftTo(T,S),r.subTo(S,r);r[y]<--I;)r.subTo(S,r)}null!=n&&(r.drShiftTo(l,n),s!=c&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=mo(),i=mo(),o=n.convert(this),a=Ro(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=_o(n),i=mo(),o=mo(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substring(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,c=0;c<t.length;++c){var u=No(t,c);u<0?"-"==t.charAt(c)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Qi,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>go.length&&(t=go.length);for(var o=mo(),a=0;a<t;++a){o.fromInt(go[Math.floor(Math.random()*go.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var c=1;c++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=mo();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout(function(){t(r)},0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Qi,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],c=7&t;s.length=1+(t>>3),n.nextBytes(s),c>0?s[0]&=(1<<c)-1:s[0]=0,this.fromString(s,256)}},e}(),yo=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),To=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),So=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=mo();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ho.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=mo();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Io=function(){function e(e){this.m=e,this.r2=mo(),this.q3=mo(),ho.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=mo();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function mo(){return new ho(null)}function Eo(e,t){return new ho(e,t)}var Co="undefined"!=typeof navigator;Co&&"Microsoft Internet Explorer"==navigator.appName?(ho.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var c=32767&this[e],u=this[e++]>>15,l=s*c+u*a;i=((c=a*c+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},co=30):Co&&"Netscape"!=navigator.appName?(ho.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},co=26):(ho.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,l=s*c+u*a;i=((c=a*c+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*u,n[r++]=268435455&c}return i},co=28),ho.prototype.DB=co,ho.prototype.DM=(1<<co)-1,ho.prototype.DV=1<<co,ho.prototype.FV=Math.pow(2,52),ho.prototype.F1=52-co,ho.prototype.F2=2*co-52;var Ao,vo,bo=[];for(Ao="0".charCodeAt(0),vo=0;vo<=9;++vo)bo[Ao++]=vo;for(Ao="a".charCodeAt(0),vo=10;vo<36;++vo)bo[Ao++]=vo;for(Ao="A".charCodeAt(0),vo=10;vo<36;++vo)bo[Ao++]=vo;function No(e,t){var n=bo[e.charCodeAt(t)];return null==n?-1:n}function _o(e){var t=mo();return t.fromInt(e),t}function Ro(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}ho.ZERO=_o(0),ho.ONE=_o(1);var Oo,Mo,Do=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),Uo=null;if(null==Uo){Uo=[],Mo=0;var wo=void 0;if("undefined"!=typeof window&&self.crypto&&self.crypto.getRandomValues){var ko=new Uint32Array(256);for(self.crypto.getRandomValues(ko),wo=0;wo<ko.length;++wo)Uo[Mo++]=255&ko[wo]}var Go=0,Lo=function(e){if((Go=Go||0)>=256||Mo>=256)self.removeEventListener?self.removeEventListener("mousemove",Lo,!1):self.detachEvent&&self.detachEvent("onmousemove",Lo);else try{var t=e.x+e.y;Uo[Mo++]=255&t,Go+=1}catch(e){}};"undefined"!=typeof window&&(self.addEventListener?self.addEventListener("mousemove",Lo,!1):self.attachEvent&&self.attachEvent("onmousemove",Lo))}function Bo(){if(null==Oo){for(Oo=new Do;Mo<256;){var e=Math.floor(65536*Math.random());Uo[Mo++]=255&e}for(Oo.init(Uo),Mo=0;Mo<Uo.length;++Mo)Uo[Mo]=0;Mo=0}return Oo.next()}var Po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Bo()},e}();function jo(e){return function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t}(function(e,t){var n,r,i,o,a,s,c,u,l,d,p,g,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),h=new Array(64);for(e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t,l=0;l<e.length;l+=16){for(n=f[0],r=f[1],i=f[2],o=f[3],a=f[4],s=f[5],c=f[6],u=f[7],d=0;d<64;d++)h[d]=d<16?e[d+l]:Yo(Yo(Yo(Wo(h[d-2]),h[d-7]),Zo(h[d-15])),h[d-16]),p=Yo(Yo(Yo(Yo(u,Qo(a)),Ko(a,s,c)),Jo[d]),h[d]),g=Yo(qo(n),Ho(n,r,i)),u=c,c=s,s=a,a=Yo(o,p),o=i,i=r,r=n,n=Yo(p,g);f[0]=Yo(n,f[0]),f[1]=Yo(r,f[1]),f[2]=Yo(i,f[2]),f[3]=Yo(o,f[3]),f[4]=Yo(a,f[4]),f[5]=Yo(s,f[5]),f[6]=Yo(c,f[6]),f[7]=Yo(u,f[7])}return f}(function(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<24-n%32;return t}(e),8*e.length))}function Fo(e){for(var t="0123456789abcdef",n="",r=0;r<e.length;r++){var i=e.charCodeAt(r);n+=t.charAt(i>>>4&15)+t.charAt(15&i)}return n}function xo(e,t){return e>>>t|e<<32-t}function Vo(e,t){return e>>>t}function Ko(e,t,n){return e&t^~e&n}function Ho(e,t,n){return e&t^e&n^t&n}function qo(e){return xo(e,2)^xo(e,13)^xo(e,22)}function Qo(e){return xo(e,6)^xo(e,11)^xo(e,25)}function Zo(e){return xo(e,7)^xo(e,18)^Vo(e,3)}function Wo(e){return xo(e,17)^xo(e,19)^Vo(e,10)}var Jo=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yo(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function zo(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new Po,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new ho(n)}function Xo(e,t,n){for(var r="",i=0;r.length<t;)r+=n(String.fromCharCode.apply(String,e.concat([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i]))),i+=1;return r}function $o(e,t){var n=jo;if(e.length+64+2>t)throw"Message too long for RSA";var r,i="";for(r=0;r<t-e.length-64-2;r+=1)i+="\0";var o=n("")+i+""+e,a=new Array(32);(new Po).nextBytes(a);var s=Xo(a,o.length,n),c=[];for(r=0;r<o.length;r+=1)c[r]=o.charCodeAt(r)^s.charCodeAt(r);var u=Xo(c,a.length,n),l=[0];for(r=0;r<a.length;r+=1)l[r+1]=a[r]^u.charCodeAt(r);return new ho(l.concat(c))}var ea=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e,t){void 0===t&&(t=zo);var n=this.n.bitLength()+7>>3,r=t(e,n);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;for(var o=i.toString(16),a=o.length,s=0;s<2*n-a;s++)o="0"+o;return o},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16),this.d=Eo(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Eo(e,16),this.e=parseInt(t,16),this.d=Eo(n,16),this.p=Eo(r,16),this.q=Eo(i,16),this.dmp1=Eo(o,16),this.dmq1=Eo(a,16),this.coeff=Eo(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new Po,r=e>>1;this.e=parseInt(t,16);for(var i=new ho(t,16);;){for(;this.p=new ho(e-r,1,n),0!=this.p.subtract(ho.ONE).gcd(i).compareTo(ho.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ho(r,1,n),0!=this.q.subtract(ho.ONE).gcd(i).compareTo(ho.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(ho.ONE),s=this.q.subtract(ho.ONE),c=a.multiply(s);if(0==c.gcd(i).compareTo(ho.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Eo(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;for(++r;0!=n[r];)if(++r>=n.length)return null;for(var i="";++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new Po,i=e>>1;this.e=parseInt(t,16);var o=new ho(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(ho.ONE),r=a.q.subtract(ho.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(ho.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(s,0)},c=function(){a.q=mo(),a.q.fromNumberAsync(i,1,r,function(){a.q.subtract(ho.ONE).gcda(o,function(e){0==e.compareTo(ho.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(c,0)})})},u=function(){a.p=mo(),a.p.fromNumberAsync(e-i,1,r,function(){a.p.subtract(ho.ONE).gcda(o,function(e){0==e.compareTo(ho.ONE)&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})};setTimeout(u,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=(ta[n]||"")+t(e).toString(),i=this.n.bitLength()/4,o=function(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return Eo("0001"+r+"00"+e,16)}(r,i);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;for(var s=a.toString(16),c=s.length,u=0;u<i-c;u++)s="0"+s;return s},e.prototype.verify=function(e,t,n){var r=Eo(t,16),i=this.doPublic(r);return null==i?null:function(e){for(var t in ta)if(ta.hasOwnProperty(t)){var n=ta[t],r=n.length;if(e.substring(0,r)==n)return e.substring(r)}return e}(i.toString(16).replace(/^1f+00/,""))==n(e).toString()},e}(),ta={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function na(e,t,n){if(!t||!e)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}o(e.prototype,n)}}var ra={};void 0!==ra.asn1&&ra.asn1||(ra.asn1={}),ra.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substring(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substring(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new ho(r,16).xor(e).add(ho.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=ra.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,l=t.DERNumericString,d=t.DERPrintableString,p=t.DERTeletexString,g=t.DERIA5String,f=t.DERUTCTime,h=t.DERGeneralizedTime,y=t.DERSequence,T=t.DERSet,S=t.DERTaggedObject,I=t.ASN1Util.newObject,m=Object.keys(e);if(1!=m.length)throw"key of param shall be only one.";var E=m[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(e[E]);if("int"==E)return new r(e[E]);if("bitstr"==E)return new i(e[E]);if("octstr"==E)return new o(e[E]);if("null"==E)return new a(e[E]);if("oid"==E)return new s(e[E]);if("enum"==E)return new c(e[E]);if("utf8str"==E)return new u(e[E]);if("numstr"==E)return new l(e[E]);if("prnstr"==E)return new d(e[E]);if("telstr"==E)return new p(e[E]);if("ia5str"==E)return new g(e[E]);if("utctime"==E)return new f(e[E]);if("gentime"==E)return new h(e[E]);if("seq"==E){for(var C=e[E],A=[],v=0;v<C.length;v++){var b=I(C[v]);A.push(b)}return new y({array:A})}if("set"==E){for(C=e[E],A=[],v=0;v<C.length;v++)b=I(C[v]),A.push(b);return new T({array:A})}if("tag"==E){var N=e[E];if("[object Array]"===Object.prototype.toString.call(N)&&3==N.length){var _=I(N[2]);return new S({tag:N[0],explicit:N[1],obj:_})}var R={};if(void 0!==N.explicit&&(R.explicit=N.explicit),void 0!==N.tag&&(R.tag=N.tag),void 0===N.obj)throw"obj shall be specified for 'tag'.";return R.obj=I(N.obj),new S(R)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},ra.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substring(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substring(i,i+2),16).toString(2)).slice(-8);r+=o.substring(1,8),"0"==o.substring(0,1)&&(t=t+"."+new ho(r,2).toString(10),r="")}return t},ra.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ho(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substring(a,a+7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},ra.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=0,v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ra.asn1.DERAbstractString=function(e){ra.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},na(ra.asn1.DERAbstractString,ra.asn1.ASN1Object),ra.asn1.DERAbstractTime=function(e){ra.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substring(2,4));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var c=r(String(s),3);a=a+"."+(c=c.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},na(ra.asn1.DERAbstractTime,ra.asn1.ASN1Object),ra.asn1.DERAbstractStructured=function(e){ra.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},na(ra.asn1.DERAbstractStructured,ra.asn1.ASN1Object),ra.asn1.DERBoolean=function(){ra.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},na(ra.asn1.DERBoolean,ra.asn1.ASN1Object),ra.asn1.DERInteger=function(e){ra.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ra.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ho(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},na(ra.asn1.DERInteger,ra.asn1.ASN1Object),ra.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ra.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ra.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substring(n,n+8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},na(ra.asn1.DERBitString,ra.asn1.ASN1Object),ra.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ra.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}ra.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},na(ra.asn1.DEROctetString,ra.asn1.DERAbstractString),ra.asn1.DERNull=function(){ra.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},na(ra.asn1.DERNull,ra.asn1.ASN1Object),ra.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new ho(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";for(r=o+r,a=0;a<r.length-1;a+=7){var s=r.substring(a,a+7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};ra.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=ra.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},na(ra.asn1.DERObjectIdentifier,ra.asn1.ASN1Object),ra.asn1.DEREnumerated=function(e){ra.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=ra.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ho(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},na(ra.asn1.DEREnumerated,ra.asn1.ASN1Object),ra.asn1.DERUTF8String=function(e){ra.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},na(ra.asn1.DERUTF8String,ra.asn1.DERAbstractString),ra.asn1.DERNumericString=function(e){ra.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},na(ra.asn1.DERNumericString,ra.asn1.DERAbstractString),ra.asn1.DERPrintableString=function(e){ra.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},na(ra.asn1.DERPrintableString,ra.asn1.DERAbstractString),ra.asn1.DERTeletexString=function(e){ra.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},na(ra.asn1.DERTeletexString,ra.asn1.DERAbstractString),ra.asn1.DERIA5String=function(e){ra.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},na(ra.asn1.DERIA5String,ra.asn1.DERAbstractString),ra.asn1.DERUTCTime=function(e){ra.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},na(ra.asn1.DERUTCTime,ra.asn1.DERAbstractTime),ra.asn1.DERGeneralizedTime=function(e){ra.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},na(ra.asn1.DERGeneralizedTime,ra.asn1.DERAbstractTime),ra.asn1.DERSequence=function(e){ra.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++)e+=this.asn1Array[t].getEncodedHex();return this.hV=e,this.hV}},na(ra.asn1.DERSequence,ra.asn1.DERAbstractStructured),ra.asn1.DERSet=function(e){ra.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},na(ra.asn1.DERSet,ra.asn1.DERAbstractStructured),ra.asn1.DERTaggedObject=function(e){ra.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},na(ra.asn1.DERTaggedObject,ra.asn1.ASN1Object);var ia,oa,aa=(ia=function(e,t){return ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ia(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ia(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),sa=function(e){function t(n){var r=e.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return aa(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?function(e){var t;if(void 0===zi){var n="0123456789ABCDEF";for(zi={},t=0;t<16;++t)zi[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)zi[n.charAt(t)]=t;for(t=0;t<8;++t)zi[" \f\n\r\t \u2028\u2029".charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=zi[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=2?(r[r.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return r}(e):no.unarmor(e),i=lo.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=Eo(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Eo(o,16);var a=i.sub[4].getHexStringValue();this.p=Eo(a,16);var s=i.sub[5].getHexStringValue();this.q=Eo(s,16);var c=i.sub[6].getHexStringValue();this.dmp1=Eo(c,16);var u=i.sub[7].getHexStringValue();this.dmq1=Eo(u,16);var l=i.sub[8].getHexStringValue();this.coeff=Eo(l,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var d=i.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=Eo(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else t=i.sub[0].getHexStringValue(),this.n=Eo(t,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new ra.asn1.DERInteger({int:0}),new ra.asn1.DERInteger({bigint:this.n}),new ra.asn1.DERInteger({int:this.e}),new ra.asn1.DERInteger({bigint:this.d}),new ra.asn1.DERInteger({bigint:this.p}),new ra.asn1.DERInteger({bigint:this.q}),new ra.asn1.DERInteger({bigint:this.dmp1}),new ra.asn1.DERInteger({bigint:this.dmq1}),new ra.asn1.DERInteger({bigint:this.coeff})]};return new ra.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return $i(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new ra.asn1.DERSequence({array:[new ra.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ra.asn1.DERNull]}),t=new ra.asn1.DERSequence({array:[new ra.asn1.DERInteger({bigint:this.n}),new ra.asn1.DERInteger({int:this.e})]}),n=new ra.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new ra.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return $i(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return(e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return(e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(ea),ca="undefined"!=typeof process?null===(oa={LIB_ENV:"production"})||void 0===oa?void 0:oa.npm_package_version:void 0,ua=function(){function e(e){void 0===e&&(e={}),this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=e.key||null}return e.prototype.setKey=function(e){e?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new sa(e)):!this.key&&this.log&&console.error("A key was not set.")},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(eo(e))}catch(e){return!1}},e.prototype.encrypt=function(e){try{return $i(this.getKey().encrypt(e))}catch(e){return!1}},e.prototype.encryptOAEP=function(e){try{return $i(this.getKey().encrypt(e,$o))}catch(e){return!1}},e.prototype.sign=function(e,t,n){void 0===t&&(t=function(e){return e}),void 0===n&&(n="");try{return $i(this.getKey().sign(e,t,n))}catch(e){return!1}},e.prototype.signSha256=function(e){return this.sign(e,function(e){return Fo(jo(e))},"sha256")},e.prototype.verify=function(e,t,n){void 0===n&&(n=function(e){return e});try{return this.getKey().verify(e,eo(t),n)}catch(e){return!1}},e.prototype.verifySha256=function(e,t){return this.verify(e,t,function(e){return Fo(jo(e))})},e.prototype.getKey=function(e){if(!this.key){if(this.key=new sa,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=ca,e}();const la=s.chaveMovelSignature,da={publicKey:null},pa=function(){var e=nn(function(e){let{apiClient:t,apiEndpoints:n,cancelToken:r}=e;return function*(){const e=n.inCurrentMode.getChaveMovelPublicKey(),i=yield t.get({url:e,withCredentials:!1,cancelToken:r});if(!i.data.publicKey)return{};const o=atob(i.data.publicKey);return da.publicKey=o,o}()});return function(t){return e.apply(this,arguments)}}(),ga=function(){var e=nn(function(e){let{signingPin:t,phone:n,language:r,clientId:i,docId:o,cancelToken:a,apiEndpoints:s,apiClient:c,actionType:u}=e;return function*(){const e=s.inCurrentMode.startSigning(),l=yield pa({apiClient:c,apiEndpoints:s,cancelToken:a}),d=new ua;return d.setPublicKey(l),c.post({url:e,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,signing_pin:d.encrypt(t),phone:d.encrypt(n)},cancelToken:a})}()});return function(t){return e.apply(this,arguments)}}(),fa=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},ha=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,confirmationCode:c}=e;const u=new ua;return u.setPublicKey(da.publicKey),n.post({url:r.inCurrentMode.completeSignatureChaveMovel(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:u.encrypt(c)},cancelToken:o})},ya=Tn(la,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,countryCode:c,language:l,started:d,confirmationCodeRequest:p,signingPin:g,phone:f,setOnCancelByUser:h}=e;return function*(){const e=u(r.SIGNATURE,la,c);s.dispatch({message:"".concat(e.actionType,": signing started")});const y=yield sn(ga)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:l,actionType:e.actionType,signingPin:g,phone:f});d(y);const T=yield sn(fa,{shouldFormatResult:!1})({startSigningResult:y,confirmationCodeRequest:p,setOnCancelByUser:h});return sn(ha)({token:y.data.token,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:t,confirmationCode:T})}()});return function(t){return e.apply(this,arguments)}}(),{pin:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),Ta=s.eCertChileSignature,Sa=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,idcode:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,idcode:u,email:l},cancelToken:i})},Ia=Tn(Ta,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,idcode:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ta,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(Sa)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},email:{type:"string",required:!0}}),ma=vi({moduleName:s.mitIdSignature,createModuleCreator:Tn}),Ea=s.ftnQesSignature,Ca=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,phone:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:l},cancelToken:i})},Aa=Tn(Ea,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,phone:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ea,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(Ca)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{phone:{type:"string",required:!0},email:{type:"string",required:!0}}),va=s.noBankIdAdvSignature,ba=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,name:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,name:u},cancelToken:i})},Na=Tn(va,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,name:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,va,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ba)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,name:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{name:{type:"string",required:!0}}),_a=vi({moduleName:s.noBankIdAdvLightSignature,createModuleCreator:Tn}),Ra=zr({moduleName:s.certEuropeUsbTokenSignature,createModuleCreator:Tn}),Oa=zr({moduleName:s.certSignUsbTokenSignature,createModuleCreator:Tn}),Ma=vi({moduleName:s.idinSignature,createModuleCreator:Tn}),Da=vi({moduleName:s.verifaiSignature,createModuleCreator:Tn}),Ua=s.spidQesSignature,wa=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,phone:u,email:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,phone:u,email:l},cancelToken:i})},ka=Tn(Ua,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,phone:p,email:g,redirect:f}=e;return function*(){const e=u(r.SIGNATURE,Ua,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(wa)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:p,email:g,actionType:e.actionType});return sn(f,{shouldFormatResult:!1})(h)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},phone:{type:"string",required:!0}}),Ga=s.frejaSimpleSignature,La=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},Ba=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureFrejaSimple(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Pa=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Ba,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},ja=Tn(Ga,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,Ga,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(La)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return p(g),sn(Pa)({data:g.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Fa=s.audkenniQesSignature,xa=function(e){let{idcode:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Va=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.continueSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ka=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureAudkenni(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ha=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Va,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},qa=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Ka,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Qa=Tn(Fa,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,idcode:c,countryCode:l,language:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,Fa,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(xa)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:c,language:d,actionType:e.actionType,countryCode:l}),f=yield sn(Ha)({data:g.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t});return p(f),sn(qa)({data:f.data,apiClient:a,apiEndpoints:o,language:d,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Za=vi({moduleName:s.yesComQesSignature,createModuleCreator:Tn}),Wa=vi({moduleName:s.simplySignQesSignature,createModuleCreator:Tn}),Ja=s.uanatacaQesSignature,Ya=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,username:u,password:l,pin:d}=e;const p=o.inCurrentMode.startSigning();return a.post({url:p,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,username:u,password:l,pin:d},cancelToken:i})},za=function(e){let{startSigningResult:t,confirmationCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},Xa=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,confirmationCode:c}=e;return n.post({url:r.inCurrentMode.completeSignatureUanataca(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,confirmation_code:c},cancelToken:o})},$a=Tn(Ja,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,username:p,password:g,pin:f,confirmationCodeRequest:h,setOnCancelByUser:y,started:T}=e;return function*(){const e=u(r.SIGNATURE,Ja,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const S=yield sn(Ya)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:p,password:g,pin:f,actionType:e.actionType});T(S);const I=yield sn(za,{shouldFormatResult:!1})({startSigningResult:S,confirmationCodeRequest:h,setOnCancelByUser:y});return sn(Xa)({token:S.data.token,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t,confirmationCode:I})}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0},password:{type:"string",required:!0},pin:{type:"string",required:!0}}),es=s.infoCertQesSignature,ts=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,language:a,actionType:s,userId:c}=e;const u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:s,lang:a,user_id:c},cancelToken:r})},ns=function(e){let{startSigningResult:t,otpCodeRequest:n,setOnCancelByUser:r}=e;return new Promise(function(e,i){r(function(){const e=new Error("USER_REFUSED");e.isCancel=!0,i(e)}),n({data:t.data},e,i)})},rs=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,pin:c,otp:u}=e;return n.post({url:r.inCurrentMode.completeSignatureInfoCert(),withCredentials:!1,data:{token:t,doc_id:a,lang:i,client_id:s,pin:c,otp:u},cancelToken:o})},is=function(e){let{country:t,userId:n,cancelToken:r,apiEndpoints:i,apiClient:o}=e;const a=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:a,withCredentials:!1,data:{sign_type:"infocert-qes-signature",user_id:n,country:t},cancelToken:r})},os=function(e){let{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,otp:c,pin:u}=e;return Nn({pollInterval:2e3,fn:rs,fnArgs:[{token:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,otp:c,pin:u}]}).start()},as=Tn(es,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,userId:d,action:p,otpCodeRequest:g,setOnCancelByUser:f,started:h,logger:y,redirect:T}=e;return function*(){const e=u(r.SIGNATURE,es,l);if(s.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===p){y.info("".concat(e.actionType,": cscApiAuthorizeCredential called"));const t=yield sn(is)({country:l,userId:d,cancelToken:i,apiEndpoints:o,apiClient:a,logger:y});return y.info("".concat(e.actionType,": authorizationResult"),t),sn(T,{shouldFormatResult:!1})(t)}const S=yield sn(ts)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:c,userId:d,actionType:e.actionType});h(S);const{otp:I,pin:m}=yield sn(ns,{shouldFormatResult:!1})({startSigningResult:S,otpCodeRequest:g,setOnCancelByUser:f});return sn(os)({token:S.data.token,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,otp:I,pin:m})}()});return function(t){return e.apply(this,arguments)}}(),{userId:{type:"string",required:!0}}),ss=vi({moduleName:s.certsignWebapiQesSignature,createModuleCreator:Tn}),cs=s.halcomQesSignature,us=function(e){let{certificate:t,country:n,phone:r,email:i,username:o,cancelToken:a,apiEndpoints:s,apiClient:c}=e;const u=s.inCurrentMode.cscApiAuthorizeCredential();return c.post({url:u,withCredentials:!1,data:{sign_type:"halcom-qes-signature",certificate:t,country:n,phone:r,email:i,username:o},cancelToken:a})},ls=function(e){let{contractId:t,username:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,countryCode:c,language:u,email:l,phone:d,actionType:p}=e;const g=a.inCurrentMode.startSigning();return s.post({url:g,withCredentials:!1,data:{doc_id:i,contract_id:t,client_id:r,sign_type:p,username:n,email:l,phone:d,country:c,lang:u},cancelToken:o})},ds=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureHalcom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},ps=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:ds,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},gs=Tn(cs,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,username:d,phone:p,email:g,countryCode:f,started:h,action:y,redirect:T}=e;return function*(){const e=u(r.SIGNATURE,cs,f);if(c.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===y){const e=yield sn(us)({country:f,username:d,phone:p,email:g,cancelToken:o,apiEndpoints:a,apiClient:s});return sn(T,{shouldFormatResult:!1})(e)}const S=yield sn(ls)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,username:d,phone:p,email:g,countryCode:f,contractId:i,actionType:e.actionType});return h(S),sn(ps)({data:S.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},username:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),fs=s.swissIdQesSignature,hs=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,countryCode:s,language:c,email:u,actionType:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:l,email:u,country:s,lang:c},cancelToken:i})},ys=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSwissId(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ts=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:ys,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ss=Tn(fs,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,email:d,countryCode:p,started:g}=e;return function*(){const e=u(r.SIGNATURE,fs,p);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(hs)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,email:d,countryCode:p,contractId:i,actionType:e.actionType});return g(f),sn(Ts)({data:f.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},email:{type:"string",required:!0},docId:{type:"string",required:!0}}),Is=s.swissComQesSignature,ms=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,countryCode:s,language:c,phone:u,actionType:l}=e;const d=o.inCurrentMode.startSigning();return a.post({url:d,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:l,phone:u,country:s,lang:c},cancelToken:i})},Es=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureSwissCom(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Cs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Es,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},As=Tn(Is,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,phone:d,countryCode:p,started:g}=e;return function*(){const e=u(r.SIGNATURE,Is,p);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(ms)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,phone:d,countryCode:p,contractId:i,actionType:e.actionType});return g(f),sn(Cs)({data:f.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),vs=vi({moduleName:s.mitIdAdvancedSignature,createModuleCreator:Tn}),bs=vi({moduleName:s.mitIdQesSignature,createModuleCreator:Tn}),Ns=vi({moduleName:s.seBankIdAdvancedSignature,createModuleCreator:Tn}),_s=vi({moduleName:s.seBankIdQesSignature,createModuleCreator:Tn}),Rs=s.frejaAdvancedSignature,Os=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},Ms=Tn(Rs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,redirect:p}=e;return function*(){const e=u(r.SIGNATURE,Rs,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Os)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return sn(p,{shouldFormatResult:!1})(g)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Ds=s.frejaQesSignature,Us=function(e){let{email:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,email:t},cancelToken:o})},ws=Tn(Ds,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,email:c,countryCode:l,language:d,redirect:p}=e;return function*(){const e=u(r.SIGNATURE,Ds,l);s.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Us)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,email:c,language:d,actionType:e.actionType,countryCode:l});return sn(p,{shouldFormatResult:!1})(g)}()});return function(t){return e.apply(this,arguments)}}(),{email:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ks=vi({moduleName:s.gbOneIdAdvancedSignature,createModuleCreator:Tn}),Gs=s.handwrittenSignature,Ls=function(e){let{apiClient:t,apiEndpoints:n,language:r,cancelToken:i,docId:o,clientId:a,emailToken:s,smsToken:c,handwrittenSignatureData:u,handwrittenSignatureDataUrl:l}=e;return t.post({url:n.inCurrentMode.completeHandwritten(),withCredentials:!1,data:{doc_id:o,timeout:2,lang:r,client_id:a,email_token:s,sms_token:c,handwritten_signature_data:u,handwritten_signature_data_url:l},cancelToken:i})},Bs=Tn(Gs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,countryCode:l,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f}=e;return function*(){const e=u(r.SIGNATURE,Gs,l);return console.log(e),s.dispatch({message:"".concat(e.actionType,": signing started")}),sn(Ls)({apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,emailToken:d,smsToken:p,handwrittenSignatureData:g,handwrittenSignatureDataUrl:f})}()});return function(t){return e.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),Ps=s.haricaQesSignature,js=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.startSigning();return o.post({url:s,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:a},cancelToken:r})},Fs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}=e;return n.post({url:r.inCurrentMode.completeSignatureHaricaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s,otp_code:l,username:c,password:u},cancelToken:o})},xs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}=e;return Nn({pollInterval:2e3,fn:Fs,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,username:c,password:u,otpCode:l}]}).start()},Vs=Tn(Ps,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,language:c,username:l,password:d,otpCode:p,countryCode:g,started:f}=e;return function*(){const e=u(r.SIGNATURE,Ps,g);s.dispatch({message:"".concat(e.actionType,": signing started")});const h=yield sn(js)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,actionType:e.actionType});return f(h),sn(xs)({data:h.data,apiClient:a,apiEndpoints:o,language:c,cancelToken:i,docId:n,clientId:t,username:l,password:d,otpCode:p})}()});return function(t){return e.apply(this,arguments)}}(),{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}}),Ks=vi({moduleName:s.veriffAdvancedSignature,createModuleCreator:Tn}),Hs=s.ltIdQesSignature,qs=function(e){let{idcode:t,language:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c,countryCode:u}=e;const l=a.inCurrentMode.startSigning();return s.post({url:l,withCredentials:!1,data:{doc_id:i,client_id:r,sign_type:c,lang:n,country:u,idcode:t},cancelToken:o})},Qs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureLtIdQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Zs=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Qs,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},Ws=Tn(Hs,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:s,countryCode:c,language:l,started:d}=e;return function*(){const e=u(r.SIGNATURE,Hs,c),p=yield sn(qs)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,idcode:s,language:l,actionType:e.actionType,countryCode:c});return d(p),sn(Zs)({data:p.data,apiClient:a,apiEndpoints:o,language:l,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0},countryCode:{type:"string",required:!0},docId:{type:"string",required:!0}}),Js=zr({moduleName:s.certStoreQesSignature,createModuleCreator:Tn}),Ys=zr({moduleName:s.certStoreAdvancedSignature,createModuleCreator:Tn}),zs=zr({moduleName:s.certStoreAdvancedUnverifiedSignature,createModuleCreator:Tn}),Xs=vi({moduleName:s.buypassQesSignature,createModuleCreator:Tn}),$s=vi({moduleName:s.intesiFtnAdvSignature,createModuleCreator:Tn}),ec=vi({moduleName:s.trustAsiaSignature,createModuleCreator:Tn}),tc=vi({moduleName:s.mscTrustGateSignature,createModuleCreator:Tn}),nc=vi({moduleName:s.gseAdvSignature,createModuleCreator:Tn}),rc=vi({moduleName:s.certMeQesSignature,createModuleCreator:Tn}),ic=s.esLleidaAdvSignature,oc=function(e){let{certificate:t,country:n,pin:r,username:i,cancelToken:o,apiEndpoints:a,apiClient:s}=e;const c=a.inCurrentMode.cscApiAuthorizeCredential();return s.post({url:c,withCredentials:!1,data:{sign_type:"es-lleida-advanced-signature",certificate:t,country:n,pin:r,username:i},cancelToken:o})},ac=function(e){let{username:t,pin:n,language:r,clientId:i,docId:o,cancelToken:a,apiEndpoints:s,apiClient:c,actionType:u}=e;const l=s.inCurrentMode.startSigning();return c.post({url:l,withCredentials:!1,data:{doc_id:o,client_id:i,sign_type:u,lang:r,username:t,pin:n},cancelToken:a})},sc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureEsLleida(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},cc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:sc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},uc=Tn(ic,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,username:c,pin:l,countryCode:d,language:p,started:g,action:f,redirect:h}=e;return function*(){const e=u(r.SIGNATURE,ic,d);if(s.dispatch({message:"".concat(e.actionType,": signing started")}),"cscApiAuthorizeCredential"===f){const e=yield sn(oc)({country:d,username:c,pin:l,cancelToken:i,apiEndpoints:o,apiClient:a});return sn(h,{shouldFormatResult:!1})(e)}const y=yield sn(ac)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,language:p,username:c,pin:l,countryCode:d,actionType:e.actionType});return g(y),sn(cc)({data:y.data,apiClient:a,apiEndpoints:o,language:p,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{username:{type:"string",required:!0},pin:{type:"string",required:!0},docId:{type:"string",required:!0}}),lc=vi({moduleName:s.seBankIdAdvancedHashSignature,createModuleCreator:Tn}),dc=vi({moduleName:s.dkMitIdAdvancedHashSignature,createModuleCreator:Tn}),pc=vi({moduleName:s.noBankIdAdvancedHashSignature,createModuleCreator:Tn}),gc=vi({moduleName:s.itSpidQualifiedHashSignature,createModuleCreator:Tn}),fc=vi({moduleName:s.adacomQesSignature,createModuleCreator:Tn}),hc=vi({moduleName:s.adacomOneShotQesSignature,createModuleCreator:Tn}),yc=s.diiaQesSignature,Tc=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,countryCode:a,language:s,actionType:c}=e;const u=i.inCurrentMode.startSigning();return o.post({url:u,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:c,country:a,lang:s},cancelToken:r})},Sc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return n.post({url:r.inCurrentMode.completeSignatureDiiaQes(),withCredentials:!1,data:{token:t.token,doc_id:a,lang:i,client_id:s},cancelToken:o})},Ic=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}=e;return Nn({pollInterval:2e3,fn:Sc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s}]}).start()},mc=Tn(yc,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,started:p}=e;return function*(){const e=u(r.SIGNATURE,yc,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const g=yield sn(Tc)({clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,countryCode:d,contractId:i,actionType:e.actionType});return p(g),sn(Ic)({data:g.data,apiClient:s,apiEndpoints:a,language:l,cancelToken:o,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}()),Ec=vi({moduleName:s.emudhraQesSignature,createModuleCreator:Tn}),Cc=vi({moduleName:s.mxPscWorldAdvancedSignature,createModuleCreator:Tn}),Ac=vi({moduleName:s.transSpedQesSignature,createModuleCreator:Tn}),vc=vi({moduleName:s.vidaAdvancedSignature,createModuleCreator:Tn}),bc=zr({moduleName:s.vnBkavTokenSignature,createModuleCreator:Tn}),Nc=zr({moduleName:s.vnCa2TokenSignature,createModuleCreator:Tn}),_c=zr({moduleName:s.vnFastTokenSignature,createModuleCreator:Tn}),Rc=zr({moduleName:s.vnFptTokenSignature,createModuleCreator:Tn}),Oc=zr({moduleName:s.vnSmartTokenSignature,createModuleCreator:Tn}),Mc=zr({moduleName:s.vnViettelTokenSignature,createModuleCreator:Tn}),Dc=zr({moduleName:s.vnVnptTokenSignature,createModuleCreator:Tn}),Uc=s.digilogixQesSignature,wc=function(e){let{contractId:t,clientId:n,docId:r,cancelToken:i,apiEndpoints:o,apiClient:a,language:s,actionType:c,idcode:u}=e;const l=o.inCurrentMode.startSigning();return a.post({url:l,withCredentials:!1,data:{doc_id:r,contract_id:t,client_id:n,sign_type:c,lang:s,idcode:u},cancelToken:i})},kc=Tn(Uc,function(){var e=nn(function(e){let{clientId:t,docId:n,contractId:i,cancelToken:o,apiEndpoints:a,apiClient:s,monitoringService:c,language:l,countryCode:d,idcode:p,redirect:g}=e;return function*(){const e=u(r.SIGNATURE,Uc,d);c.dispatch({message:"".concat(e.actionType,": signing started")});const f=yield sn(wc)({contractId:i,clientId:t,docId:n,cancelToken:o,apiEndpoints:a,apiClient:s,language:l,idcode:p,actionType:e.actionType});return sn(g,{shouldFormatResult:!1})(f)}()});return function(t){return e.apply(this,arguments)}}(),{idcode:{type:"string",required:!0}}),Gc=vi({moduleName:s.buypassAdvancedSignature,createModuleCreator:Tn}),Lc=vi({moduleName:s.igniSignAdvancedSignature,createModuleCreator:Tn}),Bc=s.bTrustQesSignature,Pc=function(e){let{clientId:t,docId:n,cancelToken:r,apiEndpoints:i,apiClient:o,profileId:a,actionType:s}=e;const c=i.inCurrentMode.startSigning();return o.post({url:c,withCredentials:!1,data:{doc_id:n,client_id:t,sign_type:s,profile_id:a},cancelToken:r})},jc=function(e){let{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}=e;return n.post({url:r.inCurrentMode.completeSignatureBTrustQes(),withCredentials:!1,data:{token:t.token,doc_id:o,client_id:a},cancelToken:i})},Fc=function(e){let{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}=e;return Nn({pollInterval:2e3,fn:jc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,cancelToken:i,docId:o,clientId:a}]}).start()},xc=Tn(Bc,function(){var e=nn(function(e){let{clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,monitoringService:s,countryCode:c,profileId:l,started:d}=e;return function*(){const e=u(r.SIGNATURE,Bc,c);s.dispatch({message:"".concat(e.actionType,": signing started")});const p=yield sn(Pc)({clientId:t,docId:n,cancelToken:i,apiEndpoints:o,apiClient:a,profileId:l,actionType:e.actionType});return d(p),sn(Fc)({data:p.data,apiClient:a,apiEndpoints:o,cancelToken:i,docId:n,clientId:t})}()});return function(t){return e.apply(this,arguments)}}(),{profileId:{type:"string",required:!0},docId:{type:"string",required:!0}}),Vc=function(e){let{countryCode:t,clientId:n,docId:i,apiEndpoints:o}=e;const a=u(r.SIGNATURE,s.esAutofirmaSignature,t);return o.inCurrentMode.integrationIframe({clientId:n,docId:i,actionType:a.actionType})},Kc=function(e,t){if(e instanceof Error)throw e;let n;throw"no_certificates"===e.result&&(n=t.t("no_certificates")),new Jr({userMessage:n,message:e.message,details:e})},Hc=function(){var e=nn(function(e){let{iframeHolder:t,iframeUrl:n,monitor:r,iframeMessenger:i,cancelToken:o}=e;return function*(){const e=document.createElement("iframe");e.setAttribute("src",n),e.setAttribute("referrerpolicy","origin"),e.setAttribute("allow","clipboard-write"),e.style.width="100%",e.style.height="100%",e.style.position="relative",e.style.border="0",t.innerHTML="",r.log("Trying to create iframe with src: ".concat(n)),t.appendChild(e);try{return yield i.send({iframe:e,message:{operation:"ready"},cancelToken:o}),new Promise(function(t){t(e)})}catch(e){throw r.logError("Failed to create iframe",e),e}}()});return function(t){return e.apply(this,arguments)}}(),qc=function(){var e=nn(function(e){let{iframeMessenger:t,iframe:n,country:r,cancelToken:i}=e;return function*(){return{data:{certificate:(yield t.send({iframe:n,message:{operation:"getCertificate",country:r},cancelToken:i})).certificate}}}()});return function(t){return e.apply(this,arguments)}}(),Qc=function(e){let{certificate:t,clientId:n,docId:r,countryCode:i,cancelToken:o,apiEndpoints:a,apiClient:s,actionType:c}=e;const u=a.inCurrentMode.startSigning();return s.post({url:u,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:c,certificate:t,base64_certificate:t,country:i},cancelToken:o})},Zc=function(e){let{iframeMessenger:t,iframe:n,certificate:r,fileContent:i,country:o,cancelToken:a}=e;return t.send({iframe:n,message:{operation:"getSignature",certificate:r,fileContent:i,country:o},cancelToken:a})},Wc=function(e){let{signatures:t,certificate:n,clientId:r,docId:i,cancelToken:o,apiEndpoints:a,apiClient:s,driver:c,actionType:u}=e;const l=a.inCurrentMode.completeSignatureIdCard({actionType:u});return s.post({url:l,withCredentials:!1,data:{client_id:r,doc_id:i,signature_value:t[0],certificate:n,driver:c},cancelToken:o})},Jc=function(e){let{certificate:t,country:n,cancelToken:r,apiEndpoints:i,apiClient:o,actionType:a}=e;const s=i.inCurrentMode.cscApiAuthorizeCredential();return o.post({url:s,withCredentials:!1,data:{sign_type:a,certificate:t,country:n},cancelToken:r})},Yc=function(e){let{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,certificate:u,actionType:l}=e;return Nn({pollInterval:2e3,maxPollDuration:36e4,fn:Wc,fnArgs:[{data:t,apiClient:n,apiEndpoints:r,language:i,cancelToken:o,docId:a,clientId:s,signatures:c,certificate:u,actionType:l}]}).start()},zc=function(){var e=nn(function(e){let{countryCode:t,clientId:n,apiEndpoints:i,iframeHolder:o,i18n:a,iframeMessenger:c,docId:l,cancelToken:d,apiClient:p,monitoringService:g,action:f,redirect:h,signingCertificate:y}=e;return function*(){const e=function(e){let{monitoringService:t,moduleName:n}=e;return Object.freeze({log:function(e){t.dispatch({message:"".concat(n,": ").concat(e)})},logError:function(e,r){const i=JSON.stringify(gn(r));t.dispatch({message:"".concat(n,": ").concat(e,", reason: ").concat(i)})}})}({monitoringService:g,moduleName:s.esAutofirmaSignature}),T=u(r.SIGNATURE,s.esAutofirmaSignature,t),S=yield sn(Vc,{shouldFormatResult:!1})({countryCode:t,clientId:n,docId:l,apiEndpoints:i}),I=yield sn(Hc,{shouldFormatResult:!1})({iframeUrl:S,iframeHolder:o,i18n:a,monitor:e,iframeMessenger:c,cancelToken:d}).catch(function(e){return Kc(e,a)});let m=y;if(m||(m=(yield sn(qc)({iframeMessenger:c,iframe:I,country:t,monitor:e,cancelToken:d}).catch(function(e){return Kc(e,a)})).data.certificate),"cscApiAuthorizeCredential"===f){const e=yield sn(Jc)({certificate:m,actionType:T.actionType,country:t,cancelToken:d,apiEndpoints:i,apiClient:p});return sn(h,{shouldFormatResult:!1})(e)}const E=yield sn(Qc)({certificate:m,clientId:n,docId:l,countryCode:t,cancelToken:d,apiEndpoints:i,apiClient:p,monitor:e,actionType:T.actionType}),C=yield sn(Zc,{shouldFormatResult:!1})({iframeMessenger:c,iframe:I,certificate:m,fileContent:E.data.fileContent||void 0,country:t,cancelToken:d}).catch(function(e){return Kc(e,a)});return sn(Yc)({signatures:C.signatures,certificate:m,clientId:n,docId:l,cancelToken:d,apiEndpoints:i,apiClient:p,actionType:T.actionType})}()});return function(t){return e.apply(this,arguments)}}(),Xc=Tn(s.esAutofirmaSignature,zc,{iframeHolder:{type:"object"},docId:{type:"string",required:!0},signingCertificate:{type:"string",required:!1}}),$c=zr({moduleName:s.localAdvUnverifiedSignature,createModuleCreator:Tn}),eu=Object.freeze({sandbox:"sandbox",production:"production"});function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const ru=function(e,t,n){const r={};return Object.keys(e).forEach(function(i){r[i]=function(e,t,n){return function(r){const i=nu(nu({},t),r);return n?n(e(i)):e(i)}}(e[i],t,n)}),r},iu=function(e){let{method:t,baseUrl:n,clientId:r,redirectUri:i,state:o,language:a,country:s}=e,c="".concat(n,"/oauth/start/").concat(t,"?client_id=").concat(r,"&redirect_uri=").concat(i,"&response_type=code");return a&&(c+="&lang=".concat(a)),o&&(c+="&state=".concat(o)),s&&(c+="&country=".concat(s)),c},ou=s.eParakstsSmartCard,au=function(e){let{apiEndpoints:t,clientId:n,redirectUri:r}=e;return{data:{redirect_uri:t.inCurrentMode.eParakstsSmartCard({clientId:n,redirectUri:r})}}},su=Tn(ou,function(){var e=nn(function*(e){const{redirect:t,apiEndpoints:n,clientId:r,redirectUri:i}=e,o=yield sn(au)({apiEndpoints:n,clientId:r,redirectUri:i});return sn(t,{shouldFormatResult:!1})(o)});return function(t){return e.apply(this,arguments)}}()),cu=vi({moduleName:s.itsmeQesSignature,createModuleCreator:Tn}),uu=vi({moduleName:s.frIdentAdvancedSignature,createModuleCreator:Tn}),lu=function(){const e=Ft({rawSettings:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},schema:Vt}),t=function(){let{currentLanguage:e="en",locales:t=en}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={currentLanguage:e};return Object.freeze({setLanguage:function(e){n.currentLanguage=e},t:function(e){let r=t[n.currentLanguage];r||(r=t.en);let i=r[e]||t.en[e];return i||(i=e),i},getCurrentLanguage:function(){return n.currentLanguage}})}({currentLanguage:"en"}),n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=nu({base:function(e){let{baseUrl:t}=e;return t},oidcStart:function(e){let{baseUrl:t}=e;return function(e){let{baseUrl:t}=e;return"".concat(t,"/oidc/oauth/login")}({baseUrl:t})},readCard:function(t){let{countryCode:n=e.countryCode.toLowerCase(),clientId:r}=t,i="eideasy.com";return e.sandbox&&["EE","BE","LT"].includes(n)&&(i="test.eideasy.com"),"https://".concat(n,".").concat(i,"/api/identity/").concat(r,"/read-card")},zealIdIframeUrl:function(e){let{baseUrl:t,clientId:n}=e;return"".concat(t,"/api/identity/").concat(n,"/zealid/get_iframe_url")},eParakstsMobile:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"lv-eparaksts-mobile-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},eParakstsSmartCard:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"lv-eparaksts-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mojeId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mojeid",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},edoAppEid:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"edoapp-eid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsme:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeBasic:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login-basic",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},itsmeStandard:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"itsme-login-standard",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},seBankId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"swedish-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},finnishTrustNetwork:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"finnish-ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idin:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"idin-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},idinCustomerId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"idin-customer-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},verifai:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"verifai-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},yoonik:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"yoonik-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},plMojeId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"pl-mojeid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},spid:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"spid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mitId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mit-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},mitId2:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"mit-id-2-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"norwegian-bankid-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},norwegianBankId2:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"norwegian-bankid-2-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},atHandy:function(e){let{baseUrl:t,clientId:n,redirectUri:r,state:i}=e,o="".concat(t,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login");return i&&(o+="&state=".concat(i)),o},ftn:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"ftn-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},gbOneId:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o}=e;return iu({method:"gb-one-id-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o})},veriff:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a}=e;return iu({method:"veriff-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},lIdentiteNumerique:function(e){let{baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a}=e;return iu({method:"lidentite-numerique-login",baseUrl:t,state:n,clientId:r,redirectUri:i,language:o,country:a})},integrationIframe:function(e){let{baseUrl:t,clientId:n,actionType:r,docId:i}=e;return"".concat(t,"/web-element/os-broker/").concat(n,"/").concat(r,"?doc_id=").concat(i)},startSigning:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/start-signing")},completeSignatureIdCard:function(e){let{baseUrl:t,actionType:n}=e;return"".concat(t,"/api/signatures/").concat(n,"/complete")},completeSignatureMobileId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/sk-smart-id/complete")},completeSignatureDiiaQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/diia-qes-signature/complete")},completeSignatureEvrotrust:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/evrotrust-signature/complete")},completeSignatureEvrotrustGeda:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/evrotrust-geda-signature/complete")},completeSignatureHalcom:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/halcom-qes-signature/complete")},completeSignatureSwissId:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/swiss-id-qes-signature/complete")},completeSignatureSwissCom:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/swiss-com-qes-signature/complete")},completeSignatureBTrustQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/b-trust-qes-signature/complete")},completeSignatureEsLleida:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/es-lleida-advanced-signature/complete")},completeSignatureHaricaQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/harica-qes-signature/complete")},completeSignatureDTrustSignMe:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/d-trust-sign-me-qes-signature/complete")},completeSignatureDTrustSignMeAdv:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/d-trust-sign-me-adv-signature/complete")},completeSignatureFrejaSimple:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/freja-simple-signature/complete")},continueSignatureAudkenni:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/audkenni-qes-signature/continue")},completeSignatureAudkenni:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/audkenni-qes-signature/complete")},completeSignatureChaveMovel:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/chave-movel-qes-signature/complete")},completeSignatureUanataca:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/uanataca-qes-signature/complete")},completeSignatureInfoCert:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/infocert-qes-signature/complete")},completeOtp:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/non-qualified/complete")},completeHandwritten:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/handwritten-simple-signature/complete")},completeSignatureLtIdQes:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/lt-id-qes-signature/complete")},eideasyMonitoring:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/monitor")},signingSessionStatus:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/signing-session/status")},acceptSigningReason:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/signatures/signing-session/reason/accept")},startZealIdSignature:function(e){let{baseUrl:t,clientId:n,docId:r}=e;return"".concat(t,"/zealid/signature/start?client_id=").concat(n,"&doc_id=").concat(r)},getChaveMovelPublicKey:function(e){let{baseUrl:t}=e;return"".concat(t,"/api/chave-movel-public-key")},cscApiAuthorizeCredential:function(e){let{baseUrl:t}=e;return"".concat(t,"/csc/authorize-credential")},cscApiAuthorizeCredentialRedirect:function(e){let{baseUrl:t}=e;return"".concat(t,"/csc/authorize-credential-redirect")}},t),r={[eu.production]:nu({},ru(n,{baseUrl:t.base?t.base():"https://id.eideasy.com",state:e.state},e.modifyEndpointUrl)),[eu.sandbox]:nu({},ru(n,{baseUrl:t.base?t.base():"https://test.eideasy.com",state:e.state},e.modifyEndpointUrl))};return{get inCurrentMode(){const t=e.sandbox?eu.sandbox:eu.production;return r[t]}}}({countryCode:e.countryCode,sandbox:e.sandbox,modifyEndpointUrl:e.modifyEndpointUrl,state:e.oauthParamState},e.apiEndpoints),r=function(e){let{clientId:t,remoteMonitoringEnabled:n,apiEndpoints:r}=e;return{dispatch:function(e){let{message:i}=e;n&&Ut({url:r.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,data:{client_id:t,source:"browser-client",message:i}})}}}({clientId:e.clientId,remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:n}),i=bn({instanceId:Math.floor(1e5+9e5*Math.random()),consoleLogLevel:e.consoleLogLevel});let o=window.eideasyIframeMessenger;return o||(o=function(){let e=null;function t(t){if(e&&(!t.data||"EIDEASY_ID_CARD_INTEGRATION"===t.data.sender)&&e.message.operation===t.data.operation)if(!t.data||"user_cancel"!==t.data.result&&"user_cancel"!==t.data.message)"OK"===t.data.status?e.resolve(t.data):e.reject(t.data);else{const t={isCancel:!0};e.reject(t)}}return window.addEventListener("message",t,!1),Object.freeze({send:function(t){let{iframe:n,message:r,cancelToken:i}=t;e&&e.reject(new Error("Operation cancelled by new operation"));const o={message:r};e=o,o.promise=new Promise(function(e,t){o.resolve=e,o.reject=t,i&&i.promise.then(function(){const e=new Error("Operation cancelled by user");e.isCancel=!0,t(e)})});const a=new URL(n.src);return n.contentWindow.postMessage(r,a.origin),o.promise},clearPendingMessage:function(){e=null},destroy:function(){window.removeEventListener("message",t,!1)}})}(),window.eideasyIframeMessenger=o),function(){let{identificationModules:e=[],signingModules:t=[],settings:n={},i18n:r,apiEndpoints:i,monitoringService:o,iframeMessenger:a,logger:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=Pt({},n);u.apiEndpoints=i,r.setLanguage(u.language);const l=Lt({modifyRequestSettings:u.modifyRequestSettings}),d={};e.forEach(function(e){const t=e({coreContext:{config:u,i18n:r,monitoringService:o,logger:s},apiClient:Lt({modifyRequestSettings:u.modifyRequestSettings})});d[t.MODULE_NAME]=t});const p={};return t.forEach(function(e){const t=e({coreContext:{config:u,i18n:r,monitoringService:o,iframeMessenger:a,logger:s},apiClient:Lt({modifyRequestSettings:u.modifyRequestSettings})});p[t.MODULE_NAME]=t}),Object.freeze({identification:Pt({},d),signature:Pt({},p),getSigningSessionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){let{apiClient:t,apiEndpoints:n,docId:r,clientId:i}=e;const o=n.inCurrentMode.signingSessionStatus();return t.post({url:o,withCredentials:!1,data:{doc_id:r,client_id:i}})}(Pt({apiClient:l,apiEndpoints:i,clientId:u.clientId,docId:u.docId},e))},acceptSigningReason:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){let{apiClient:t,apiEndpoints:n,docId:r,clientId:i,reasonText:o}=e;const a=n.inCurrentMode.acceptSigningReason();return t.post({url:a,withCredentials:!1,data:{doc_id:r,client_id:i,reason_text:o}})}(Pt({apiClient:l,apiEndpoints:i,clientId:u.clientId,docId:u.docId},e))},getAllMethods:function(){return c},setLanguage:r.setLanguage,setCountryCode:function(e){u.countryCode=e},getCountryCode:function(){return u.countryCode},getLogs:s.getLogs,docId:u.docId})}({settings:e,i18n:t,monitoringService:r,apiEndpoints:n,iframeMessenger:o,logger:i,identificationModules:[En,Mn,Gn,jn,Vn,su,Qn,Yn,$n,er,rr,ar,sr,lr,gr,fr,hr,yr,Ir,Cr,Ar,vr,br,Nr,_r,Rr,Or,Mr,Dr,Lr,Fr,Kr,Zr],signingModules:[Xr,ii,li,hi,yi,Ei,bi,Ni,_i,Aa,Ri,Di,Ui,wi,ki,Gi,Li,Bi,Fi,Ki,ya,Ia,ma,Na,_a,Ra,Oa,Ma,Da,ka,ja,Qa,Za,Wa,$a,as,ss,gs,Ss,As,vs,bs,Ns,_s,Ms,ws,cu,uu,ks,Bs,Vs,Ks,Ws,Js,Ys,zs,Xs,$s,lc,dc,pc,gc,ec,tc,nc,rc,uc,fc,hc,mc,Ec,Cc,Ac,vc,bc,Nc,_c,Rc,Oc,Mc,Dc,kc,Gc,Lc,xc,Xc,$c]})},du=lu})(),o})());
|