@eid-easy/eideasy-browser-client 2.1.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ # [2.5.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.4.0...v2.5.0) (2021-10-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * improve api endpoints config ([519749f](https://github.com/eideasy/eideasy-browser-client/commit/519749f116d72fac684b65eeea047bc4f7c3002e))
7
+
8
+
9
+
10
+ # [2.4.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.3.0...v2.4.0) (2021-10-27)
11
+
12
+
13
+ ### Features
14
+
15
+ * add Austrian Handy Signatur signing ([7ef67be](https://github.com/eideasy/eideasy-browser-client/commit/7ef67bec1100876598b5f64fef51424274caede6))
16
+
17
+
18
+
19
+ # [2.3.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.2.0...v2.3.0) (2021-10-27)
20
+
21
+
22
+
23
+ # [2.2.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.1.0...v2.2.0) (2021-10-26)
24
+
25
+
26
+ ### Features
27
+
28
+ * improve error handling for createIdCardSignature ([6bc597f](https://github.com/eideasy/eideasy-browser-client/commit/6bc597f16d08623218755b7beb5307f7a2434fc4))
29
+
30
+
31
+
1
32
  # [2.1.0](https://github.com/eideasy/eideasy-browser-client/compare/v2.0.1...v2.1.0) (2021-10-26)
2
33
 
3
34
 
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={7757:function(t,e,n){t.exports=n(5666)},9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),u=n(4109),s=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var p=t.data,l=t.headers;r.isFormData(p)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(g+":"+h)}var y=c(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?u(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};o(e,n,i),f=null}},f.onabort=function(){f&&(n(d("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(d("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||s(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:f.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),p||(p=null),f.send(p)}))}},1609:function(t,e,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);function c(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var u=c(n(5655));u.Axios=i,u.create=function(t){return c(a(u.defaults,t))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(t){return Promise.all(t)},u.spread=n(8713),u.isAxiosError=n(6268),t.exports=u,t.exports.default=u},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=u},782:function(t,e,n){"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},4097:function(t,e,n){"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:function(t,e,n){"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function s(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(void 0,e[o])})),r.forEach(c,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var d=o.concat(i).concat(a).concat(c),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(p,s),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),o=n(6016),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(i)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),o=["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"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4867:function(t,e,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return c(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},9702:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o;n.r(e),n.d(e,{allMethods:function(){return u},createClient:function(){return be},default:function(){return Ie},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-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",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_SIGNATURE:"fi-ftn-advanced-signature",EVROTRUST_SIGNATURE:"evrotrust-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",idCardSignature:"idCardSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnSignature:"ftnSignature"},u=Object.freeze((r(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:c.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:c.mojeId,supportedCountries:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]}]),r(o,i.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:c.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA"]},{actionType:a.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["allCountries"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI"]}]),o)),s=function(t,e,n){var r=u[t];if(e&&n){var o=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("allCountries"))}));if(!o){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return o}return r.find((function(t){return t.handlingModule===e}))},d=n(2492),p=n.n(d),l=n(9669),f=n.n(l),g=f().CancelToken,h=f().isCancel;f().Cancel,f().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,o=t.request,i=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=o,a.response=i,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var y=function(t){return f()(t)};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=function(t,e){var n,r=e.modifyRequestSettings,o=t;return"function"==typeof r&&(n=r(o)),n&&(o=p()(o,n)),o},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(m({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(b(m({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:g})};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,o=void 0===r?[]:r,i=t.settings,a=void 0===i?{}:i,c=t.i18n,s=t.apiEndpoints,d=t.monitoringService,p=_({},a);p.apiEndpoints=s,c.setLanguage(p.language);var l=function(t){p.countryCode=t},f=function(){return p.countryCode},g=function(){return u},h={};n.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});h[e.MODULE_NAME]=e}));var y={};return o.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:_({},h),signature:_({},y),getAllMethods:g,setLanguage:c.setLanguage,setCountryCode:l,getCountryCode:f})};function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var j=function(t){var e=t.rawSettings,n=t.schema,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e);return Object.keys(n).forEach((function(t){var r=n[t],i=e[t];if(r.required&&void 0===i)throw new Error('Missing required setting "'.concat(t,'"'));if(void 0===i&&(o[t]=r.default),void 0!==o[t]&&void 0!==r.type&&r.type!==E(o[t]))throw new Error('Expected "'.concat(t,'" to be type of "').concat(r.type,'", but received "').concat(E(o[t]),'"'))})),o},x={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(t){var e=t.data&&t.data.redirect_uri;return e?(window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1}},C=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 ordnungsgemäß funktioniert."}'),S=n.t(C,2),k=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."}'),A=n.t(k,2),P=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."}'),N=n.t(P,2),L=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."}'),D=n.t(L,2),R=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."}'),M=n.t(R,2),U=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),F={de:S,en:A,et:N,lt:D,lv:M,ru:n.t(U,2)},G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,o=void 0===r?F:r,i={currentLanguage:n},a="en",c=function(t){i.currentLanguage=t},u=function(){return i.currentLanguage},s=function(t){var e=o[i.currentLanguage];e||(e=o[a]);var n=e[t]||o[a][t];return n||(n=t),n};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},B=function(t){var e=t.remoteMonitoringEnabled,n=t.apiEndpoints;return{dispatch:function(t){var r=t.message;if(t.data,e){var o=new URLSearchParams;o.append("message",r),y({url:n.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded"},data:o})}}}};function q(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){q(i,r,o,a,c,"next",t)}function c(t){q(i,r,o,a,c,"throw",t)}a(void 0)}))}}var H=n(7757),V=n.n(H),K=n(361),J=n.n(K)(),$=function(t){var e=t;return h(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=J({message:n});if(e)r.data=e;else{if(!t.result||!t.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=t.result.data}return r},Y=function(t){return t.error},W=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=z(V().mark((function e(){var n,o,i=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,i);case 2:if(n=e.sent,!(o=Y(n))){e.next=6;break}throw $(o);case 6:return e.abrupt("return",r?Z(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.coreContext,i=r.apiClient,a=o.i18n,c=o.config,u=o.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Q(Q({},x),n),o=Q(Q({},c),t),s=j({rawSettings:o,schema:r}),d=s.success,p=s.fail,l=s.finished,f=t.language||a.getCurrentLanguage(),g=i.CancelToken.source(),h=g.token,y=function(){var t=z(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Q(Q({},s),{},{language:f,i18n:a,monitoringService:u,cancelToken:h,apiClient:i})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),p($(t))})).finally(l);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return y().catch(console.error),Object.freeze({cancel:function(){g.cancel()}})}})}};function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var rt=c.idCard,ot=tt(rt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.i18n,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="".concat(t.apiEndpoints.inCurrentMode.card(t.countryCode),"/api/identity/").concat(t.clientId,"/read-card");return t.nonce&&(e+="?nonce=".concat(t.nonce)),o.get({url:e,cancelToken:t.cancelToken})},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s(i.IDENTIFICATION,rt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,W(c)(nt(nt({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,W(u)(nt(nt({},e),{},{cancelToken:n,language:r,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),it=function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.fn,r=e.shouldContinue,o=e.interval,i=0,a=function(){var t=z(V().mark((function t(e,c){var u,s;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,n();case 4:u=t.sent,s=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,s=t.t0;case 12:if(!r({result:u,attempts:i,error:s})){t.next=14;break}return t.abrupt("return",setTimeout(a,o,e,c));case 14:return t.abrupt("return",e({result:u,error:s}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(a));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ut=c.smartId,st=tt(ut,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(ct(ct({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(ct(ct({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:ct({},y.data),cancelToken:u,pollInterval:c,language:d});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lt=c.mobileId,ft=tt(lt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.started,c=void 0===a?function(){}:a,u=e.idcode,d=e.phone,p=e.pollInterval,l=void 0===p?1e3:p,f=function(t){var e=s(i.IDENTIFICATION,lt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=s(i.IDENTIFICATION,lt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},y=function(t){var e=12e4/l,n=0;return it({fn:function(){return g(pt(pt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:1e3})},t.next=6,W(f)(pt(pt({},e),{},{cancelToken:n,language:r,idcode:u,phone:d}));case 6:return v=t.sent,c(v),t.next=10,W(y)({config:e,data:v.data,cancelToken:n,language:r,pollInterval:l});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),gt=c.eParakstsMobile,ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},yt=tt(gt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(ht)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bt=c.frejaEid,It=tt(bt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,bt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=s(i.IDENTIFICATION,bt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(mt(mt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(mt(mt({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:mt({},y.data),cancelToken:u,language:d,pollInterval:c});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var wt=c.zealId,Et=tt(wt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var o=function(t,e,n){var r=new URL(t.data),o=r.searchParams.get("error"),i=r.searchParams.get("code");o?n(o):i?e({data:{code:i}}):n(t.data)},i=new Promise((function(t,e){window.addEventListener("message",(function(n){var i=new URL(r);n.origin===i.origin&&(window.removeEventListener("message",o),o(n,t,e))}))}));return e.appendChild(n),i},u=function(t){var e=s(i.IDENTIFICATION,wt);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,W(a)(_t(_t({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,W(c)(_t(_t({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,W(u)(_t(_t({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),Tt=c.mojeId,jt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},xt=tt(Tt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(jt)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Ct=c.finnishTrustNetwork,St=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,o=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:o})}}},kt=tt(Ct,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,a=e.language,t.next=3,W(St)({apiEndpoints:r,clientId:o,redirectUri:i,language:a});case 3:return c=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),At=c.atHandy,Pt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Nt=tt(At,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(Pt)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Lt=c.idCardSignature,Dt=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},Rt=function(t){var e=t.countryCode,n=t.clientId,r=t.apiEndpoints,o=s(i.SIGNATURE,Lt,e);return r.inCurrentMode.idCardIframe({clientId:n,actionType:o.actionType})},Mt=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=document.createElement("iframe");o.setAttribute("src",n),o.setAttribute("referrerpolicy","origin"),o.style.width="0",o.style.height="0",o.style.position="absolute",o.style.border="0",e.innerHTML="";var i=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,i=r.operation,a=r.error,c=r.status;a||"ready"!==i&&"welcome"!==i||"OK"!==c?e(n.data):t(o)}),{once:!0}),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(o),i},Ut=function(t){var e=t.messenger,n=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.cert;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getCertificate"}),n},Ft=function(t){var e=t.certificate,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.startSigning();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:o})},Gt=function(t){var e=t.messenger,n=t.hexDigest,r=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.signature;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getSignature",hexDigest:n}),r},Bt=function(t){var e=t.signature,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.completeSignatureIdCard();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:o})},qt=tt(Lt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(Rt,{shouldFormatResult:!1})({countryCode:e.countryCode,clientId:e.clientId,apiEndpoints:e.apiEndpoints});case 2:return n=t.sent,t.next=5,W(Mt,{shouldFormatResult:!1})({iframeUrl:n,iframeHolder:e.iframeHolder,i18n:e.i18n});case 5:return r=t.sent,t.next=8,W(Dt,{shouldFormatResult:!1})({iframe:r});case 8:return o=t.sent,t.next=11,W(Ut,{shouldFormatResult:!1})({messenger:o}).catch((function(t){if(!t.result)throw t;throw"no_certificates"===t.result&&(t.userMessage=e.i18n.t("no_certificates")),t}));case 11:return i=t.sent,t.next=14,W(Ft)({certificate:i.cert,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient});case 14:return a=t.sent,t.next=17,W(Gt,{shouldFormatResult:!1})({messenger:o,hexDigest:a.data.hexDigest});case 17:return c=t.sent,t.abrupt("return",W(Bt)({signature:c.signature,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient}));case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{iframeHolder:{type:"object"},docId:{type:"string",required:!0}});function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ht=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,o=t.maxPollDuration,i=t.fn,a=t.fnArgs;o&&(e=o/r);var c=0;return{start:function(){return it({fn:function(){return i.apply(void 0,function(t){if(Array.isArray(t))return zt(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,o=h(t.error),i=t.error&&!t.error.response&&!o;i&&(c+=1);var a,u,s=!1;return a=t.attempts,(!(u=e)||a<u)&&c<3&&(s=i||"RUNNING"===r),s},interval:r})}}},Vt=c.mobileIdSignature,Kt=function(t){var e=t.phone,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:u,lang:s},cancelToken:i})},Jt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:o,client_id:c},cancelToken:i})},$t=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,maxPollDuration:12e4,fn:Jt,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},Zt=tt(Vt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.idcode,l=e.phone,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,Vt,f),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(Kt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:d,idcode:p,phone:l,countryCode:f});case 5:return y=t.sent,g(y),t.abrupt("return",W($t)({data:y.data,apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Yt=c.smartIdSignature,Wt=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:s},cancelToken:i})},Xt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},Qt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,maxPollDuration:12e4,fn:Xt,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},te=tt(Yt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,Yt,f),d.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(Wt)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,countryCode:f,contractId:o});case 5:return y=t.sent,g(y),t.abrupt("return",W(Qt)({data:y.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),ee=c.evroTrustSignature,ne=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=t.email,p=t.phone,l=t.actionType,f=a.inCurrentMode.startSigning();return c.post({url:f,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:l,idcode:n,email:d,phone:p,country:u,lang:s},cancelToken:i})},re=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},oe=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Ht({pollInterval:2e3,fn:re,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ie=tt(ee,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y,v,m;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.phone,g=e.email,h=e.countryCode,y=e.started,v=s(i.SIGNATURE,ee,h),d.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=5,W(ne)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,phone:f,email:g,countryCode:h,contractId:o,actionType:v.actionType});case 5:return m=t.sent,y(m),t.abrupt("return",W(oe)({data:m.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),ae=c.otpSignature,ce=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,o=t.cancelToken,i=t.docId,a=t.clientId,c=t.emailToken,u=t.smsToken;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:i,timeout:2,lang:r,client_id:a,email_token:c,sms_token:u},cancelToken:o})},ue=tt(ae,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.countryCode,l=e.emailToken,f=e.smsToken,g=s(i.SIGNATURE,ae,p),console.log(g),u.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",W(ce)({apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n,emailToken:l,smsToken:f}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),se=c.eParakstsMobileSignature,de=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},pe=tt(se,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,se,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(de)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),le=c.ftnSignature,fe=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},ge=tt(le,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,le,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(fe)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),he=Object.freeze({sandbox:"sandbox",production:"production"});function ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ve(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var me=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=(r(t={},he.production,{base:function(){return"https://id.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://id.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,n=t.redirectUri,r=t.language;return"https://id.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&lang=").concat(r)},atHandy:function(t){var e=t.clientId,n=t.redirectUri;return"https://id.eideasy.com/oauth/authorize?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(t){var e=t.clientId,n=t.actionType;return"https://id.eideasy.com/signatures/integration/".concat(e,"/").concat(n)},startSigning:function(){return"https://id.eideasy.com/api/signatures/start-signing"},completeSignatureIdCard:function(){return"https://id.eideasy.com/api/signatures/id-card/complete"},completeSignatureMobileId:function(){return"https://id.eideasy.com/api/signatures/sk-mobile-id/complete"},completeSignatureSmartId:function(){return"https://id.eideasy.com/api/signatures/sk-smart-id/complete"},completeSignatureEvrotrust:function(){return"https://id.eideasy.com/api/signatures/evrotrust-signature/complete"},completeOtp:function(){return"https://id.eideasy.com/api/signatures/non-qualified/complete"},eideasyMonitoring:function(){return"https://id.eideasy.com/confirm_progress"}}),r(t,he.sandbox,{base:function(){return"https://test.eideasy.com"},card:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.countryCode.toLowerCase();return"https://".concat(t,".test.eideasy.com")},eParakstsMobile:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.clientId;return"https://test.eideasy.com/api/identity/".concat(e,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/start/mojeid?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.clientId,n=t.redirectUri,r=t.language;return"https://test.eideasy.com/oauth/start/finnish-ftn-login?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&lang=").concat(r)},atHandy:function(t){var e=t.clientId,n=t.redirectUri;return"https://test.eideasy.com/oauth/authorize?client_id=".concat(e,"&redirect_uri=").concat(n,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(t){var e=t.clientId,n=t.actionType;return"https://test.eideasy.com/signatures/integration/".concat(e,"/").concat(n)},startSigning:function(){return"https://test.eideasy.com/api/signatures/start-signing"},completeSignatureIdCard:function(){return"https://test.eideasy.com/api/signatures/id-card/complete"},completeSignatureMobileId:function(){return"https://test.eideasy.com/api/signatures/sk-mobile-id/complete"},completeSignatureSmartId:function(){return"https://test.eideasy.com/api/signatures/sk-smart-id/complete"},completeSignatureEvrotrust:function(){return"https://test.eideasy.com/api/signatures/evrotrust-signature/complete"},completeOtp:function(){return"https://test.eideasy.com/api/signatures/non-qualified/complete"},eideasyMonitoring:function(){return"https://test.eideasy.com/confirm_progress"}}),t);return n&&(o[he.production]=ve(ve({},o[he.production]),n),o[he.sandbox]=ve(ve({},o[he.sandbox]),n)),{get inCurrentMode(){var t=e.sandbox?he.sandbox:he.production;return o[t]}}},be=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=j({rawSettings:t,schema:x}),n=G({currentLanguage:"en"}),r=me({countryCode:e.countryCode,sandbox:e.sandbox},e.apiEndpoints),o=B({remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return w({settings:e,i18n:n,monitoringService:o,apiEndpoints:r,identificationModules:[ot,st,ft,yt,It,Et,xt,kt,Nt],signingModules:[qt,Zt,te,ie,ue,pe,ge]})},Ie=be},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8407:function(t,e,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),o=n(7465),i=n(3779),a=n(7599),c=n(4758),u=n(4309);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},4636:function(t,e,n){var r=n(2545),o=n(5694),i=n(1469),a=n(4144),c=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),d=!n&&o(t),p=!n&&!d&&a(t),l=!n&&!d&&!p&&u(t),f=n||d||p||l,g=f?r(t.length,String):[],h=g.length;for(var y in t)!e&&!s.call(t,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,h))||g.push(y);return g}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),o=n(7813);t.exports=function(t,e,n){(void 0!==n&&!o(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),o=n(3674);t.exports=function(t,e){return t&&r(e,o(e),t)}},3886:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t,e){return t&&r(e,o(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),o=n(7412),i=n(4865),a=n(4037),c=n(3886),u=n(4626),s=n(278),d=n(8805),p=n(1911),l=n(8234),f=n(6904),g=n(4160),h=n(3824),y=n(9148),v=n(8517),m=n(1469),b=n(4144),I=n(6688),O=n(3218),_=n(2928),w=n(3674),E=n(1704),T="[object Arguments]",j="[object Function]",x="[object Object]",C={};C[T]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[x]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[j]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,S,k,A,P){var N,L=1&n,D=2&n,R=4&n;if(S&&(N=A?S(e,k,A,P):S(e)),void 0!==N)return N;if(!O(e))return e;var M=m(e);if(M){if(N=h(e),!L)return s(e,N)}else{var U=g(e),F=U==j||"[object GeneratorFunction]"==U;if(b(e))return u(e,L);if(U==x||U==T||F&&!A){if(N=D||F?{}:v(e),!L)return D?p(e,c(N,e)):d(e,a(N,e))}else{if(!C[U])return A?e:{};N=y(e,U,L)}}P||(P=new r);var G=P.get(e);if(G)return G;P.set(e,N),_(e)?e.forEach((function(r){N.add(t(r,n,S,r,e,P))})):I(e)&&e.forEach((function(r,o){N.set(o,t(r,n,S,o,e,P))}));var B=M?void 0:(R?D?f:l:D?E:w)(e);return o(B||e,(function(r,o){B&&(r=e[o=r]),i(N,o,t(r,n,S,o,e,P))})),N}},3118:function(t,e,n){var r=n(3218),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),o=n(1469);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},4239:function(t,e,n){var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},9454:function(t,e,n){var r=n(4239),o=n(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,d=u.toString,p=s.hasOwnProperty,l=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?l:c).test(a(t))}},9221:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&n.push(c);return n}},2980:function(t,e,n){var r=n(6384),o=n(6556),i=n(8483),a=n(9783),c=n(3218),u=n(1704),s=n(6390);t.exports=function t(e,n,d,p,l){e!==n&&i(n,(function(i,u){if(l||(l=new r),c(i))a(e,n,u,d,t,p,l);else{var f=p?p(s(e,u),i,u+"",e,n,l):void 0;void 0===f&&(f=i),o(e,u,f)}}),u)}},9783:function(t,e,n){var r=n(6556),o=n(4626),i=n(7133),a=n(278),c=n(8517),u=n(5694),s=n(1469),d=n(9246),p=n(4144),l=n(3560),f=n(3218),g=n(8630),h=n(6719),y=n(6390),v=n(9881);t.exports=function(t,e,n,m,b,I,O){var _=y(t,n),w=y(e,n),E=O.get(w);if(E)r(t,n,E);else{var T=I?I(_,w,n+"",t,e,O):void 0,j=void 0===T;if(j){var x=s(w),C=!x&&p(w),S=!x&&!C&&h(w);T=w,x||C||S?s(_)?T=_:d(_)?T=a(_):C?(j=!1,T=o(w,!0)):S?(j=!1,T=i(w,!0)):T=[]:g(w)||u(w)?(T=_,u(_)?T=v(_):f(_)&&!l(_)||(T=c(w))):j=!1}j&&(O.set(w,T),b(T,w,m,I,O),O.delete(w)),r(t,n,T)}}},5976:function(t,e,n){var r=n(6557),o=n(5357),i=n(61);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),o=n(8777),i=n(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),o=n(9465);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var c=-1,u=e.length;++c<u;){var s=e[c],d=i?i(n[s],t[s],s,n,t):void 0;void 0===d&&(d=t[s]),a?o(n,s,d):r(n,s,d)}return n}},8805:function(t,e,n){var r=n(8363),o=n(9551);t.exports=function(t,e){return r(t,o(t),e)}},1911:function(t,e,n){var r=n(8363),o=n(1442);t.exports=function(t,e){return r(t,o(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),o=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}},8777:function(t,e,n){var r=n(852),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),o=n(9551),i=n(3674);t.exports=function(t){return r(t,i,o)}},6904:function(t,e,n){var r=n(8866),o=n(1442),i=n(1704);t.exports=function(t){return r(t,i,o)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),o=n(7801);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},9551:function(t,e,n){var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1442:function(t,e,n){var r=n(2488),o=n(5924),i=n(9551),a=n(479),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=c},4160:function(t,e,n){var r=n(8552),o=n(7071),i=n(3818),a=n(8525),c=n(577),u=n(4239),s=n(346),d="[object Map]",p="[object Promise]",l="[object Set]",f="[object WeakMap]",g="[object DataView]",h=s(r),y=s(o),v=s(i),m=s(a),b=s(c),I=u;(r&&I(new r(new ArrayBuffer(1)))!=g||o&&I(new o)!=d||i&&I(i.resolve())!=p||a&&I(new a)!=l||c&&I(new c)!=f)&&(I=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return g;case y:return d;case v:return p;case m:return l;case b:return f}return e}),t.exports=I},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),o=n(7157),i=n(3147),a=n(419),c=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),o=n(5924),i=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),o=n(8612),i=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?o(n)&&i(e,n.length):"string"==c&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},4785:function(t,e,n){var r=n(1989),o=n(8407),i=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},5639:function(t,e,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),o=n(1275)(r);t.exports=o},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),o=n(7071),i=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),o=n(1780);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),o=n(7005);t.exports=function(t){return o(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),o=n(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3560:function(t,e,n){var r=n(4239),o=n(3218);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),o=n(1717),i=n(1167),a=i&&i.isMap,c=a?o(a):r;t.exports=c},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),o=n(5924),i=n(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,d=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(t,e,n){var r=n(9221),o=n(1717),i=n(1167),a=i&&i.isSet,c=a?o(a):r;t.exports=c},6719:function(t,e,n){var r=n(8749),o=n(1717),i=n(1167),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},3674:function(t,e,n){var r=n(4636),o=n(280),i=n(8612);t.exports=function(t){return i(t)?r(t):o(t)}},1704:function(t,e,n){var r=n(4636),o=n(313),i=n(8612);t.exports=function(t){return i(t)?r(t,!0):o(t)}},2492:function(t,e,n){var r=n(2980),o=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=o},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t){return r(t,o(t))}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=d(t,e,n);if("normal"===u.type){if(r=n.done?g:l,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",l="suspendedYield",f="executing",g="completed",h={};function y(){}function v(){}function m(){}var b={};b[i]=function(){return this};var I=Object.getPrototypeOf,O=I&&I(I(S([])));O&&O!==n&&r.call(O,i)&&(b=O);var _=m.prototype=y.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return v.prototype=_.constructor=m,m.constructor=v,v.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(_),u(_,c,"Generator"),_[i]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.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 i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&r&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o(9702)}()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eidEasyBrowserClient=e():t.eidEasyBrowserClient=e()}(self,(function(){return function(){var t,e,n={7757:function(t,e,n){t.exports=n(5666)},9669:function(t,e,n){t.exports=n(1609)},5448:function(t,e,n){"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),c=n(4097),u=n(4109),s=n(7985),d=n(5061);t.exports=function(t){return new Promise((function(e,n){var p=t.data,l=t.headers;r.isFormData(p)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(g+":"+h)}var y=c(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),a(y,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?u(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};o(e,n,i),f=null}},f.onabort=function(){f&&(n(d("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(d("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(d(e,t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||s(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:f.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),p||(p=null),f.send(p)}))}},1609:function(t,e,n){"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);function c(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var u=c(n(5655));u.Axios=i,u.create=function(t){return c(a(u.defaults,t))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(t){return Promise.all(t)},u.spread=n(8713),u.isAxiosError=n(6268),t.exports=u,t.exports.default=u},5263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:function(t,e,n){"use strict";var r=n(5263);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},6502:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:function(t,e,n){"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),c=n(7185);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=c(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=u},782:function(t,e,n){"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},4097:function(t,e,n){"use strict";var r=n(1793),o=n(7303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},5061:function(t,e,n){"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},3572:function(t,e,n){"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5655);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code}},t}},7185:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function s(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=u(void 0,t[o])):n[o]=u(void 0,e[o])})),r.forEach(c,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var d=o.concat(i).concat(a).concat(c),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===d.indexOf(t)}));return r.forEach(p,s),n}},6026:function(t,e,n){"use strict";var r=n(5061);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},8527:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},5655:function(t,e,n){"use strict";var r=n(4867),o=n(6016),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(5448)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(i)})),t.exports=u},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},5327:function(t,e,n){"use strict";var r=n(4867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:function(t,e,n){"use strict";var r=n(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},6016:function(t,e,n){"use strict";var r=n(4867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},4109:function(t,e,n){"use strict";var r=n(4867),o=["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"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4867:function(t,e,n){"use strict";var r=n(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function d(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return c(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return e},extend:function(t,e,n){return d(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6728:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o;n.r(e),n.d(e,{allMethods:function(){return u},createClient:function(){return _e},default:function(){return xe},getMethodByHandlingModule:function(){return s},methodActionTypes:function(){return a},methodTypes:function(){return i},moduleNames:function(){return c}});var i={IDENTIFICATION:"identification",SIGNATURE:"signature"},a={BE_ID_LOGIN:"be-id-login",EE_ID_LOGIN:"ee-id-login",FI_ID_LOGIN:"fi-id-login",PT_ID_LOGIN:"pt-id-login",LV_ID_LOGIN:"lv-id-login",LT_ID_LOGIN:"lt-id-login",RS_ID_LOGIN:"rs-id-login",EE_MOBILE_ID:"mid-login",LV_EPARAKSTS_MOBILE_LOGIN:"lv-eparaksts-mobile-login",LT_MOBILE_ID:"lt-mobile-id",SMART_ID:"smartid",FREJA_EID_LOGIN:"freja-eid-login",ZEALID_LOGIN:"zealid-login",CZ_MOJEID:"mojeid",AT_HANDY_SIGNATUR_LOGIN:"at-handy-signatur-login",FI_FTN_LOGIN:"finnish-ftn-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",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_SIGNATURE:"fi-ftn-advanced-signature",EVROTRUST_SIGNATURE:"evrotrust-signature"},c={idCard:"idCard",mobileId:"mobileId",eParakstsMobile:"eParakstsMobile",smartId:"smartId",frejaEid:"frejaEid",zealId:"zealId",mojeId:"mojeId",finnishTrustNetwork:"finnishTrustNetwork",atHandy:"atHandy",idCardSignature:"idCardSignature",mobileIdSignature:"mobileIdSignature",smartIdSignature:"smartIdSignature",evroTrustSignature:"evroTrustSignature",otpSignature:"otpSignature",eParakstsMobileSignature:"eParakstsMobileSignature",ftnSignature:"ftnSignature",atHandySignature:"atHandySignature"},u=Object.freeze((r(o={},i.IDENTIFICATION,[{actionType:a.BE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["BE"]},{actionType:a.EE_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["EE"]},{actionType:a.FI_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["FI"]},{actionType:a.LV_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LV"]},{actionType:a.LT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["LT"]},{actionType:a.PT_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["PT"]},{actionType:a.RS_ID_LOGIN,handlingModule:c.idCard,supportedCountries:["RS"]},{actionType:a.LV_EPARAKSTS_MOBILE_LOGIN,handlingModule:c.eParakstsMobile,supportedCountries:["LV"]},{actionType:a.LT_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["LT"]},{actionType:a.EE_MOBILE_ID,handlingModule:c.mobileId,supportedCountries:["EE"]},{actionType:a.SMART_ID,handlingModule:c.smartId,supportedCountries:["EE","LV","LT"]},{actionType:a.FREJA_EID_LOGIN,handlingModule:c.frejaEid,supportedCountries:["FI","SE","NO","DK"]},{actionType:a.ZEALID_LOGIN,handlingModule:c.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:c.mojeId,supportedCountries:["CZ"]},{actionType:a.FI_FTN_LOGIN,handlingModule:c.finnishTrustNetwork,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_LOGIN,handlingModule:c.atHandy,supportedCountries:["AT"]}]),r(o,i.SIGNATURE,[{actionType:a.EE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["EE"]},{actionType:a.LV_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LV"]},{actionType:a.LT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["LT"]},{actionType:a.FI_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["FI"]},{actionType:a.PT_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["PT"]},{actionType:a.BE_IDCARD_SIGNATURE,handlingModule:c.idCardSignature,supportedCountries:["BE"]},{actionType:a.EE_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["EE"]},{actionType:a.LT_MOBILEID_SIGNATURE,handlingModule:c.mobileIdSignature,supportedCountries:["LT"]},{actionType:a.SMARTID_SIGNATURE,handlingModule:c.smartIdSignature,supportedCountries:["EE","LV","LT"]},{actionType:a.EVROTRUST_SIGNATURE,handlingModule:c.evroTrustSignature,supportedCountries:["AL","AD","AM","AU","AT","AZ","BY","BE","BA","BG","CA","HR","CY","CZ","DK","EE","FI","FR","GE","DE","GR","HU","IS","IE","IT","IL","KZ","KE","XK","LV","LI","LT","LU","MT","MD","MC","ME","NL","NZ","NO","MK","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","TW","TR","UA","GB","US","VA"]},{actionType:a.OTP_EMAIL,handlingModule:c.otpSignature,supportedCountries:["WORLD"]},{actionType:a.LV_EPARAKSTS_MOBILE_SIGNATURE,handlingModule:c.eParakstsMobileSignature,supportedCountries:["LV"]},{actionType:a.FI_FTN_ADVANCED_SIGNATURE,handlingModule:c.ftnSignature,supportedCountries:["FI"]},{actionType:a.AT_HANDY_SIGNATUR_SIGNATURE,handlingModule:c.atHandySignature,supportedCountries:["AT"]}]),o)),s=function(t,e,n){var r=u[t];if(e&&n){var o=r.find((function(t){return t.handlingModule===e&&(t.supportedCountries.includes(n)||t.supportedCountries.includes("WORLD"))}));if(!o){if(0===r.filter((function(t){return t.handlingModule===e})).length)throw new Error("Could not find matching method configuration for ".concat(t,' module "').concat(e,'"'));throw new Error('Country "'.concat(n,'" is not supported for ').concat(t,'\n module "').concat(e,'".'))}return o}return r.find((function(t){return t.handlingModule===e}))},d=n(2492),p=n.n(d),l=n(9669),f=n.n(l),g=f().CancelToken,h=f().isCancel;f().Cancel,f().interceptors.response.use((function(t){return(e=t.data)&&["error","No ID or basic level only","USER_CANCELLED","USER_REFUSED","refused","TIMEOUT","NOT_MID_CLIENT"].includes(e.status)?Promise.reject(function(t){var e=t.message,n=t.config,r=t.code,o=t.request,i=t.response,a=new Error(e);return a.config=n,r&&(a.code=r),a.request=o,a.response=i,a.isRequestError=!0,a}({message:"Request failed with status code ".concat(t.status),config:t.config,request:t.request,response:t})):t;var e}));var y=function(t){return f()(t)};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m=function(t,e){var n,r=e.modifyRequestSettings,o=t;return"function"==typeof r&&(n=r(o)),n&&(o=p()(o,n)),o},I=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(m(b({method:"get",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(m(b({method:"post",cache:"no-cache",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json","Cache-Control":"no-cache"}},e),t))};return Object.freeze({get:e,post:n,CancelToken:g})};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.identificationModules,n=void 0===e?[]:e,r=t.signingModules,o=void 0===r?[]:r,i=t.settings,a=void 0===i?{}:i,c=t.i18n,s=t.apiEndpoints,d=t.monitoringService,p=T({},a);p.apiEndpoints=s,c.setLanguage(p.language);var l=function(t){p.countryCode=t},f=function(){return p.countryCode},g=function(){return u},h={};n.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});h[e.MODULE_NAME]=e}));var y={};return o.forEach((function(t){var e=t({coreContext:{config:p,i18n:c,monitoringService:d},apiClient:I({modifyRequestSettings:p.modifyRequestSettings})});y[e.MODULE_NAME]=e})),Object.freeze({identification:T({},h),signature:T({},y),getAllMethods:g,setLanguage:c.setLanguage,setCountryCode:l,getCountryCode:f})};function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var _=function(t){var e=t.rawSettings,n=t.schema,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e);return Object.keys(n).forEach((function(t){var r=n[t],i=e[t];if(r.required&&void 0===i)throw new Error('Missing required setting "'.concat(t,'"'));if(void 0===i&&(o[t]=r.default),void 0!==o[t]&&void 0!==r.type&&r.type!==w(o[t]))throw new Error('Expected "'.concat(t,'" to be type of "').concat(r.type,'", but received "').concat(w(o[t]),'"'))})),o},x={countryCode:{type:"string"},sandbox:{default:!1,type:"boolean"},clientId:{required:!0,type:"string"},redirectUri:{type:"string"},docId:{type:"string"},contractId:{type:"string"},apiEndpoints:{type:"object"},modifyRequestSettings:{type:"function"},language:{default:"en",type:"string"},success:{default:function(){},type:"function"},fail:{default:function(){},type:"function"},finished:{default:function(){},type:"function"},started:{default:function(){},type:"function"},redirect:{default:function(t){var e=t.data&&t.data.redirect_uri;return e?(window.location.href=e,new Promise((function(){}))):t},type:"function"},remoteMonitoringEnabled:{default:!1}},C=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 ordnungsgemäß funktioniert."}'),S=n.t(C,2),k=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."}'),A=n.t(k,2),N=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."}'),P=n.t(N,2),D=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."}'),L=n.t(D,2),R=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."}'),M=n.t(R,2),U=JSON.parse('{"id-card-read-timeout":"Чтение удостоверения личности заняло слишком много времени. Закройте все открытые окна браузера и повторите попытку.","no_certificates":"Не удалось прочитать сертификаты. Убедитесь, что карта находится в считывателе и считыватель работает исправно."}'),G={de:S,en:A,et:P,lt:L,lv:M,ru:n.t(U,2)},F=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.currentLanguage,n=void 0===e?"en":e,r=t.locales,o=void 0===r?G:r,i={currentLanguage:n},a="en",c=function(t){i.currentLanguage=t},u=function(){return i.currentLanguage},s=function(t){var e=o[i.currentLanguage];e||(e=o[a]);var n=e[t]||o[a][t];return n||(n=t),n};return Object.freeze({setLanguage:c,t:s,getCurrentLanguage:u})},B=function(t){var e=t.remoteMonitoringEnabled,n=t.apiEndpoints;return{dispatch:function(t){var r=t.message;if(t.data,e){var o=new URLSearchParams;o.append("message",r),y({url:n.inCurrentMode.eideasyMonitoring(),method:"post",cache:"no-cache",withCredentials:!1,headers:{Accept:"*/*","Content-Type":"application/x-www-form-urlencoded"},data:o})}}}};function q(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){q(i,r,o,a,c,"next",t)}function c(t){q(i,r,o,a,c,"throw",t)}a(void 0)}))}}var H=n(7757),V=n.n(H),K=n(361),J=n.n(K)(),$=function(t){var e=t;return h(t)&&(e.isCancel=!0),e.response&&e.response.data&&(e.response.data.message&&(e.userMessage=e.response.data.message),e.response.data.errors&&(e.userDetails=e.response.data.errors)),e},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,n=t.message,r=J({message:n});if(e)r.data=e;else{if(!t.result||!t.result.data)throw new Error('Formatting the result failed.\n The function provided to createStep must return an object that has a "data" property.\n You provided: '.concat(JSON.stringify(r),"\n Set shouldFormatResult to false if you wish to disable autoformatting"));r.data=t.result.data}return r},Y=function(t){return t.error},W=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.shouldFormatResult,r=void 0===n||n;return function(){var e=z(V().mark((function e(){var n,o,i=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,i);case 2:if(n=e.sent,!(o=Y(n))){e.next=6;break}throw $(o);case 6:return e.abrupt("return",r?Z(n):n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var tt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){var o=r.coreContext,i=r.apiClient,a=o.i18n,c=o.config,u=o.monitoringService;return Object.freeze({MODULE_NAME:t,start:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Q(Q({},x),n),o=Q(Q({},c),t),s=_({rawSettings:o,schema:r}),d=s.success,p=s.fail,l=s.finished,f=t.language||a.getCurrentLanguage(),g=i.CancelToken.source(),h=g.token,y=function(){var t=z(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(Q(Q({},s),{},{language:f,i18n:a,monitoringService:u,cancelToken:h,apiClient:i})).then((function(t){d(t)})).catch((function(t){console&&console.error&&console.error(t),p($(t))})).finally(l);case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return y().catch(console.error),Object.freeze({cancel:function(){g.cancel()}})}})}};function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var rt=c.idCard,ot=tt(rt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.i18n,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.apiEndpoints.inCurrentMode.readCard({countryCode:t.countryCode,clientId:t.clientId});return t.nonce&&(e+="?nonce=".concat(t.nonce)),o.get({url:e,cancelToken:t.cancelToken})},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s(i.IDENTIFICATION,rt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},t.next=5,W(c)(nt(nt({},e),{},{language:r,cancelToken:n})).catch((function(t){throw"ECONNABORTED"===t.code&&(t.userMessage=a.t("id-card-read-timeout")),t}));case 5:return d=t.sent,t.next=8,W(u)(nt(nt({},e),{},{cancelToken:n,language:r,data:d.data}));case 8:return d=t.sent,t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0}}),it=function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.fn,r=e.shouldContinue,o=e.interval,i=0,a=function(){var t=z(V().mark((function t(e,c){var u,s;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i+=1,t.prev=1,t.next=4,n();case 4:u=t.sent,s=void 0,t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),u=void 0,s=t.t0;case 12:if(!r({result:u,attempts:i,error:s})){t.next=14;break}return t.abrupt("return",setTimeout(a,o,e,c));case 14:return t.abrupt("return",e({result:u,error:s}));case 15:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}(),t.abrupt("return",new Promise(a));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ut=c.smartId,st=tt(ut,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=s(i.IDENTIFICATION,ut);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(ct(ct({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(ct(ct({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:ct({},y.data),cancelToken:u,pollInterval:c,language:d});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var lt=c.mobileId,ft=tt(lt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.language,o=e.apiClient,a=e.started,c=void 0===a?function(){}:a,u=e.idcode,d=e.phone,p=e.pollInterval,l=void 0===p?1e3:p,f=function(t){var e=s(i.IDENTIFICATION,lt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,phone:t.phone,country:t.countryCode,method:e.actionType,lang:t.language},cancelToken:t.cancelToken})},g=function(t){var e=s(i.IDENTIFICATION,lt,t.countryCode);return o.post({url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,timeout:2,lang:t.language},cancelToken:t.cancelToken})},y=function(t){var e=12e4/l,n=0;return it({fn:function(){return g(pt(pt({},t.config),{},{data:t.data,cancelToken:t.cancelToken,language:t.language}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:1e3})},t.next=6,W(f)(pt(pt({},e),{},{cancelToken:n,language:r,idcode:u,phone:d}));case 6:return v=t.sent,c(v),t.next=10,W(y)({config:e,data:v.data,cancelToken:n,language:r,pollInterval:l});case 10:return v=t.sent,t.abrupt("return",v);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0}}),gt=c.eParakstsMobile,ht=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.eParakstsMobile({clientId:n,redirectUri:r})}}},yt=tt(gt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(ht)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var mt=c.frejaEid,It=tt(mt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.started,r=void 0===n?function(){}:n,o=e.idcode,a=e.pollInterval,c=void 0===a?1e3:a,u=e.cancelToken,d=e.language,p=e.apiClient,l=function(t){var e=s(i.IDENTIFICATION,mt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityStart(),data:{idcode:t.idcode,country:t.countryCode,method:e.actionType,lang:t.language}})},f=function(t){var e=s(i.IDENTIFICATION,mt);return p.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{token:t.data.token,method:e.actionType,lang:t.language,timeout:2}})},g=function(t){var e=1e5/t.pollInterval,n=0;return it({fn:function(){return f(bt(bt({},t.config),{},{data:t.data,language:t.language,cancelToken:t.cancelToken}))},shouldContinue:function(t){var r=t.result,o=r&&r.data&&r.data.status,i=h(t.error),a=t.error&&!t.error.response&&!i;a&&(n+=1);var c=!1;return t.attempts<e&&n<3&&(c=a||"RUNNING"===o),c},interval:2e3})},t.next=6,W(l)(bt(bt({},e),{},{cancelToken:u,language:d,idcode:o}));case 6:return y=t.sent,r(y),t.next=10,W(g)({config:e,data:bt({},y.data),cancelToken:u,language:d,pollInterval:c});case 10:return y=t.sent,t.abrupt("return",y);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0}});function Ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Et=c.zealId,wt=tt(Et,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.cancelToken,r=e.apiClient,o=e.language,a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.get({withCredentials:!1,cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.zealIdIframeUrl({clientId:t.clientId})})},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.iframeHolder,n=document.createElement("iframe"),r=t.iframeUrl;n.setAttribute("src",r),n.setAttribute("referrerpolicy","origin"),n.style.border="0",e.innerHTML="";var o=function(t,e,n){var r=new URL(t.data),o=r.searchParams.get("error"),i=r.searchParams.get("code");o?n(o):i?e({data:{code:i}}):n(t.data)},i=new Promise((function(t,e){window.addEventListener("message",(function(n){var i=new URL(r);n.origin===i.origin&&(window.removeEventListener("message",o),o(n,t,e))}))}));return e.appendChild(n),i},u=function(t){var e=s(i.IDENTIFICATION,Et);return r.post({cancelToken:t.cancelToken,url:t.apiEndpoints.inCurrentMode.identityFinish(),data:{method:e.actionType,code:t.data.code,lang:t.language}})},t.next=6,W(a)(Tt(Tt({},e),{},{cancelToken:n}));case 6:return d=t.sent,t.next=9,W(c)(Tt(Tt({},e),{},{cancelToken:n,iframeUrl:d.data.url}));case 9:return d=t.sent,t.next=12,W(u)(Tt(Tt({},e),{},{cancelToken:n,language:o},d));case 12:return d=t.sent,t.abrupt("return",d);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},iframeHolder:{type:"object",required:!0}}),jt=c.mojeId,_t=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.mojeId({clientId:n,redirectUri:r})}}},xt=tt(jt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(_t)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Ct=c.finnishTrustNetwork,St=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri,o=t.language;return{data:{redirect_uri:e.inCurrentMode.finnishTrustNetwork({clientId:n,redirectUri:r,language:o})}}},kt=tt(Ct,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,a=e.language,t.next=3,W(St)({apiEndpoints:r,clientId:o,redirectUri:i,language:a});case 3:return c=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(c));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),At=c.atHandy,Nt=function(t){var e=t.apiEndpoints,n=t.clientId,r=t.redirectUri;return{data:{redirect_uri:e.inCurrentMode.atHandy({clientId:n,redirectUri:r})}}},Pt=tt(At,function(){var t=z(V().mark((function t(e){var n,r,o,i,a;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.redirect,r=e.apiEndpoints,o=e.clientId,i=e.redirectUri,t.next=3,W(Nt)({apiEndpoints:r,clientId:o,redirectUri:i});case 3:return a=t.sent,t.abrupt("return",W(n,{shouldFormatResult:!1})(a));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,n=void 0===e?"":e,r=t.userMessage,o=void 0===r?"":r,i=t.details,a=void 0===i?{}:i;this.message=n,this.userMessage=o,this.details=a,this.stack=(new Error).stack};(Dt.prototype=new Error).name="MethodException";var Lt=Dt,Rt=c.idCardSignature,Mt=function(t){var e=t.iframe,n=new URL(e.src);return{post:function(t){e.contentWindow.postMessage(t,n.origin)}}},Ut=function(t){var e=t.countryCode,n=t.clientId,r=t.apiEndpoints,o=s(i.SIGNATURE,Rt,e);return r.inCurrentMode.idCardIframe({clientId:n,actionType:o.actionType})},Gt=function(t,e){if(t instanceof Error)throw t;var n;throw"no_certificates"===t.result&&(n=e.t("no_certificates")),new Lt({userMessage:n,message:t.message,details:t})},Ft=function(t){var e=t.iframeHolder,n=t.iframeUrl,r=t.i18n,o=document.createElement("iframe");o.setAttribute("src",n),o.setAttribute("referrerpolicy","origin"),o.style.width="0",o.style.height="0",o.style.position="absolute",o.style.border="0",e.innerHTML="";var i=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,i=r.operation,a=r.error,c=r.status;a||"ready"!==i&&"welcome"!==i||"OK"!==c?e(n.data):t(o)}),{once:!0}),window.setTimeout((function(){return e({message:r.t("createIframeTimeout")})}),3e4)}));return e.appendChild(o),i},Bt=function(t){var e=t.messenger,n=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.cert;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getCertificate"}),n},qt=function(t){var e=t.certificate,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.startSigning();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,sign_type:"id-card",certificate:e},cancelToken:o})},zt=function(t){var e=t.messenger,n=t.hexDigest,r=new Promise((function(t,e){window.addEventListener("message",(function(n){var r=n.data,o=r.result,i=r.signature;if("ok"===o&&i)t(n.data);else{var a={};n.data&&"user_cancel"===n.data.result?a.isCancel=!0:a=n.data,e(a)}}),{once:!0})}));return e.post({operation:"getSignature",hexDigest:n}),r},Ht=function(t){var e=t.signature,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=i.inCurrentMode.completeSignatureIdCard();return a.post({url:c,withCredentials:!1,data:{client_id:n,doc_id:r,signature_value:e},cancelToken:o})},Vt=tt(Rt,function(){var t=z(V().mark((function t(e){var n,r,o,i,a,c;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(Ut,{shouldFormatResult:!1})({countryCode:e.countryCode,clientId:e.clientId,apiEndpoints:e.apiEndpoints});case 2:return n=t.sent,t.next=5,W(Ft,{shouldFormatResult:!1})({iframeUrl:n,iframeHolder:e.iframeHolder,i18n:e.i18n}).catch((function(t){return Gt(t,e.i18n)}));case 5:return r=t.sent,t.next=8,W(Mt,{shouldFormatResult:!1})({iframe:r});case 8:return o=t.sent,t.next=11,W(Bt,{shouldFormatResult:!1})({messenger:o}).catch((function(t){return Gt(t,e.i18n)}));case 11:return i=t.sent,t.next=14,W(qt)({certificate:i.cert,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient});case 14:return a=t.sent,t.next=17,W(zt,{shouldFormatResult:!1})({messenger:o,hexDigest:a.data.hexDigest});case 17:return c=t.sent,t.abrupt("return",W(Ht)({signature:c.signature,clientId:e.clientId,docId:e.docId,cancelToken:e.cancelToken,apiEndpoints:e.apiEndpoints,apiClient:e.apiClient}));case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{iframeHolder:{type:"object"},docId:{type:"string",required:!0}});function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Jt=function(t){var e,n=t.pollInterval,r=void 0===n?2e3:n,o=t.maxPollDuration,i=t.fn,a=t.fnArgs;o&&(e=o/r);var c=0;return{start:function(){return it({fn:function(){return i.apply(void 0,function(t){if(Array.isArray(t))return Kt(t)}(t=a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t},shouldContinue:function(t){var n=t.result,r=n&&n.data&&n.data.status,o=h(t.error),i=t.error&&!t.error.response&&!o;i&&(c+=1);var a,u,s=!1;return a=t.attempts,(!(u=e)||a<u)&&c<3&&(s=i||"RUNNING"===r),s},interval:r})}}},$t=c.mobileIdSignature,Zt=function(t){var e=t.phone,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,client_id:r,sign_type:"mobile-id",phone:e,idcode:n,country:u,lang:s},cancelToken:i})},Yt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureMobileId(),withCredentials:!1,data:{token:e.token,doc_id:a,timeout:2,lang:o,client_id:c},cancelToken:i})},Wt=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Jt({pollInterval:2e3,maxPollDuration:12e4,fn:Yt,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},Xt=tt($t,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.idcode,l=e.phone,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,$t,f),u.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(Zt)({clientId:n,docId:r,cancelToken:o,apiEndpoints:a,apiClient:c,language:d,idcode:p,phone:l,countryCode:f});case 5:return y=t.sent,g(y),t.abrupt("return",W(Wt)({data:y.data,apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},phone:{type:"string",required:!0},docId:{type:"string",required:!0}}),Qt=c.smartIdSignature,te=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=a.inCurrentMode.startSigning();return c.post({url:d,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:"smart-id",idcode:n,country:u,lang:s},cancelToken:i})},ee=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureSmartId(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},ne=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Jt({pollInterval:2e3,maxPollDuration:12e4,fn:ee,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},re=tt(Qt,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.countryCode,g=e.started,h=s(i.SIGNATURE,Qt,f),d.dispatch({message:"".concat(h.actionType,": signing started")}),t.next=5,W(te)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,countryCode:f,contractId:o});case 5:return y=t.sent,g(y),t.abrupt("return",W(ne)({data:y.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string",required:!0},docId:{type:"string",required:!0}}),oe=c.evroTrustSignature,ie=function(t){var e=t.contractId,n=t.idcode,r=t.clientId,o=t.docId,i=t.cancelToken,a=t.apiEndpoints,c=t.apiClient,u=t.countryCode,s=t.language,d=t.email,p=t.phone,l=t.actionType,f=a.inCurrentMode.startSigning();return c.post({url:f,withCredentials:!1,data:{doc_id:o,contract_id:e,client_id:r,sign_type:l,idcode:n,email:d,phone:p,country:u,lang:s},cancelToken:i})},ae=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return n.post({url:r.inCurrentMode.completeSignatureEvrotrust(),withCredentials:!1,data:{token:e.token,doc_id:a,lang:o,client_id:c},cancelToken:i})},ce=function(t){var e=t.data,n=t.apiClient,r=t.apiEndpoints,o=t.language,i=t.cancelToken,a=t.docId,c=t.clientId;return Jt({pollInterval:2e3,fn:ae,fnArgs:[{data:e,apiClient:n,apiEndpoints:r,language:o,cancelToken:i,docId:a,clientId:c}]}).start()},ue=tt(oe,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h,y,v,b;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.idcode,f=e.phone,g=e.email,h=e.countryCode,y=e.started,v=s(i.SIGNATURE,oe,h),d.dispatch({message:"".concat(v.actionType,": signing started")}),t.next=5,W(ie)({clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,idcode:l,phone:f,email:g,countryCode:h,contractId:o,actionType:v.actionType});case 5:return b=t.sent,y(b),t.abrupt("return",W(ce)({data:b.data,apiClient:u,apiEndpoints:c,language:p,cancelToken:a,docId:r,clientId:n}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{countryCode:{type:"string",required:!0},idcode:{type:"string"},email:{type:"string"},phone:{type:"string"},docId:{type:"string",required:!0}}),se=c.otpSignature,de=function(t){var e=t.apiClient,n=t.apiEndpoints,r=t.language,o=t.cancelToken,i=t.docId,a=t.clientId,c=t.emailToken,u=t.smsToken;return e.post({url:n.inCurrentMode.completeOtp(),withCredentials:!1,data:{doc_id:i,timeout:2,lang:r,client_id:a,email_token:c,sms_token:u},cancelToken:o})},pe=tt(se,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.cancelToken,a=e.apiEndpoints,c=e.apiClient,u=e.monitoringService,d=e.language,p=e.countryCode,l=e.emailToken,f=e.smsToken,g=s(i.SIGNATURE,se,p),console.log(g),u.dispatch({message:"".concat(g.actionType,": signing started")}),t.abrupt("return",W(de)({apiClient:c,apiEndpoints:a,language:d,cancelToken:o,docId:r,clientId:n,emailToken:l,smsToken:f}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0},emailToken:{type:"string"},smsToken:{type:"string"}}),le=c.eParakstsMobileSignature,fe=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},ge=tt(le,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,le,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(fe)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),he=c.ftnSignature,ye=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},ve=tt(he,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,he,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(ye)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),be=c.atHandySignature,me=function(t){var e=t.contractId,n=t.clientId,r=t.docId,o=t.cancelToken,i=t.apiEndpoints,a=t.apiClient,c=t.language,u=t.actionType,s=i.inCurrentMode.startSigning();return a.post({url:s,withCredentials:!1,data:{doc_id:r,contract_id:e,client_id:n,sign_type:u,lang:c},cancelToken:o})},Ie=tt(be,function(){var t=z(V().mark((function t(e){var n,r,o,a,c,u,d,p,l,f,g,h;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.clientId,r=e.docId,o=e.contractId,a=e.cancelToken,c=e.apiEndpoints,u=e.apiClient,d=e.monitoringService,p=e.language,l=e.countryCode,f=e.redirect,g=s(i.SIGNATURE,be,l),d.dispatch({message:"".concat(g.actionType,": signing started")}),t.next=5,W(me)({contractId:o,clientId:n,docId:r,cancelToken:a,apiEndpoints:c,apiClient:u,language:p,actionType:g.actionType});case 5:return h=t.sent,t.abrupt("return",W(f,{shouldFormatResult:!1})(h));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),{docId:{type:"string",required:!0}}),Oe=Object.freeze({sandbox:"sandbox",production:"production"});function Te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var we=function(t,e){var n={};return Object.keys(t).forEach((function(r){n[r]=function(t,e){return function(n){var r=Ee(Ee({},e),n);return t(r)}}(t[r],e)})),n},je=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Ee({base:function(t){return t.baseUrl},readCard:function(t){var n=t.countryCode,r=void 0===n?e.countryCode.toLowerCase():n,o=t.clientId;return"https://".concat(r,".eideasy.com/api/identity/").concat(o,"/read-card")},eParakstsMobile:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri;return"".concat(e,"/oauth/start/lv-eparaksts-mobile-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},zealIdIframeUrl:function(t){var e=t.baseUrl,n=t.clientId;return"".concat(e,"/api/identity/").concat(n,"/zealid/get_iframe_url")},mojeId:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri;return"".concat(e,"/oauth/start/mojeid?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code")},finnishTrustNetwork:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri,o=t.language;return"".concat(e,"/oauth/start/finnish-ftn-login?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&lang=").concat(o)},atHandy:function(t){var e=t.baseUrl,n=t.clientId,r=t.redirectUri;return"".concat(e,"/oauth/authorize?client_id=").concat(n,"&redirect_uri=").concat(r,"&response_type=code&method=at-handy-signatur-login")},idCardIframe:function(t){var e=t.baseUrl,n=t.clientId,r=t.actionType;return"".concat(e,"/signatures/integration/").concat(n,"/").concat(r)},startSigning:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/start-signing")},completeSignatureIdCard:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/id-card/complete")},completeSignatureMobileId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-mobile-id/complete")},completeSignatureSmartId:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/sk-smart-id/complete")},completeSignatureEvrotrust:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/evrotrust-signature/complete")},completeOtp:function(t){var e=t.baseUrl;return"".concat(e,"/api/signatures/non-qualified/complete")},eideasyMonitoring:function(t){var e=t.baseUrl;return"".concat(e,"/confirm_progress")}},n),i=(r(t={},Oe.production,Ee({},we(o,{baseUrl:n.base?n.base():"https://id.eideasy.com"}))),r(t,Oe.sandbox,Ee({},we(o,{baseUrl:n.base?n.base():"https://test.eideasy.com"}))),t);return{get inCurrentMode(){var t=e.sandbox?Oe.sandbox:Oe.production;return i[t]}}},_e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=_({rawSettings:t,schema:x}),n=F({currentLanguage:"en"}),r=je({countryCode:e.countryCode,sandbox:e.sandbox},e.apiEndpoints),o=B({remoteMonitoringEnabled:e.remoteMonitoringEnabled,apiEndpoints:r});return E({settings:e,i18n:n,monitoringService:o,apiEndpoints:r,identificationModules:[ot,st,ft,yt,It,wt,xt,kt,Pt],signingModules:[Vt,Xt,re,ue,pe,ge,ve,Ie]})},xe=_e},8552:function(t,e,n){var r=n(852)(n(5639),"DataView");t.exports=r},1989:function(t,e,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},8407:function(t,e,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},7071:function(t,e,n){var r=n(852)(n(5639),"Map");t.exports=r},3369:function(t,e,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3818:function(t,e,n){var r=n(852)(n(5639),"Promise");t.exports=r},8525:function(t,e,n){var r=n(852)(n(5639),"Set");t.exports=r},6384:function(t,e,n){var r=n(8407),o=n(7465),i=n(3779),a=n(7599),c=n(4758),u=n(4309);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=c,s.prototype.set=u,t.exports=s},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},1149:function(t,e,n){var r=n(5639).Uint8Array;t.exports=r},577:function(t,e,n){var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},4636:function(t,e,n){var r=n(2545),o=n(5694),i=n(1469),a=n(4144),c=n(5776),u=n(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),d=!n&&o(t),p=!n&&!d&&a(t),l=!n&&!d&&!p&&u(t),f=n||d||p||l,g=f?r(t.length,String):[],h=g.length;for(var y in t)!e&&!s.call(t,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||l&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,h))||g.push(y);return g}},2488:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},6556:function(t,e,n){var r=n(9465),o=n(7813);t.exports=function(t,e,n){(void 0!==n&&!o(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:function(t,e,n){var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:function(t,e,n){var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:function(t,e,n){var r=n(8363),o=n(3674);t.exports=function(t,e){return t&&r(e,o(e),t)}},3886:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t,e){return t&&r(e,o(e),t)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:function(t,e,n){var r=n(6384),o=n(7412),i=n(4865),a=n(4037),c=n(3886),u=n(4626),s=n(278),d=n(8805),p=n(1911),l=n(8234),f=n(6904),g=n(4160),h=n(3824),y=n(9148),v=n(8517),b=n(1469),m=n(4144),I=n(6688),O=n(3218),T=n(2928),E=n(3674),w=n(1704),j="[object Arguments]",_="[object Function]",x="[object Object]",C={};C[j]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[x]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[_]=C["[object WeakMap]"]=!1,t.exports=function t(e,n,S,k,A,N){var P,D=1&n,L=2&n,R=4&n;if(S&&(P=A?S(e,k,A,N):S(e)),void 0!==P)return P;if(!O(e))return e;var M=b(e);if(M){if(P=h(e),!D)return s(e,P)}else{var U=g(e),G=U==_||"[object GeneratorFunction]"==U;if(m(e))return u(e,D);if(U==x||U==j||G&&!A){if(P=L||G?{}:v(e),!D)return L?p(e,c(P,e)):d(e,a(P,e))}else{if(!C[U])return A?e:{};P=y(e,U,D)}}N||(N=new r);var F=N.get(e);if(F)return F;N.set(e,P),T(e)?e.forEach((function(r){P.add(t(r,n,S,r,e,N))})):I(e)&&e.forEach((function(r,o){P.set(o,t(r,n,S,o,e,N))}));var B=M?void 0:(R?L?f:l:L?w:E)(e);return o(B||e,(function(r,o){B&&(r=e[o=r]),i(P,o,t(r,n,S,o,e,N))})),P}},3118:function(t,e,n){var r=n(3218),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},8483:function(t,e,n){var r=n(5063)();t.exports=r},8866:function(t,e,n){var r=n(2488),o=n(1469);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},4239:function(t,e,n){var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},9454:function(t,e,n){var r=n(4239),o=n(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},5588:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},8458:function(t,e,n){var r=n(3560),o=n(5346),i=n(3218),a=n(346),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,d=u.toString,p=s.hasOwnProperty,l=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?l:c).test(a(t))}},9221:function(t,e,n){var r=n(4160),o=n(7005);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},8749:function(t,e,n){var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},280:function(t,e,n){var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:function(t,e,n){var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&n.push(c);return n}},2980:function(t,e,n){var r=n(6384),o=n(6556),i=n(8483),a=n(9783),c=n(3218),u=n(1704),s=n(6390);t.exports=function t(e,n,d,p,l){e!==n&&i(n,(function(i,u){if(l||(l=new r),c(i))a(e,n,u,d,t,p,l);else{var f=p?p(s(e,u),i,u+"",e,n,l):void 0;void 0===f&&(f=i),o(e,u,f)}}),u)}},9783:function(t,e,n){var r=n(6556),o=n(4626),i=n(7133),a=n(278),c=n(8517),u=n(5694),s=n(1469),d=n(9246),p=n(4144),l=n(3560),f=n(3218),g=n(8630),h=n(6719),y=n(6390),v=n(9881);t.exports=function(t,e,n,b,m,I,O){var T=y(t,n),E=y(e,n),w=O.get(E);if(w)r(t,n,w);else{var j=I?I(T,E,n+"",t,e,O):void 0,_=void 0===j;if(_){var x=s(E),C=!x&&p(E),S=!x&&!C&&h(E);j=E,x||C||S?s(T)?j=T:d(T)?j=a(T):C?(_=!1,j=o(E,!0)):S?(_=!1,j=i(E,!0)):j=[]:g(E)||u(E)?(j=T,u(T)?j=v(T):f(T)&&!l(T)||(j=c(E))):_=!1}_&&(O.set(E,j),m(j,E,b,I,O),O.delete(E)),r(t,n,j)}}},5976:function(t,e,n){var r=n(6557),o=n(5357),i=n(61);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),o=n(8777),i=n(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},1717:function(t){t.exports=function(t){return function(e){return t(e)}}},4318:function(t,e,n){var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:function(t,e,n){t=n.nmd(t);var r=n(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}},7157:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:function(t){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:function(t,e,n){var r=n(2705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:function(t,e,n){var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},278:function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:function(t,e,n){var r=n(4865),o=n(9465);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var c=-1,u=e.length;++c<u;){var s=e[c],d=i?i(n[s],t[s],s,n,t):void 0;void 0===d&&(d=t[s]),a?o(n,s,d):r(n,s,d)}return n}},8805:function(t,e,n){var r=n(8363),o=n(9551);t.exports=function(t,e){return r(t,o(t),e)}},1911:function(t,e,n){var r=n(8363),o=n(1442);t.exports=function(t,e){return r(t,o(t),e)}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),o=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,c=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(n[0],n[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},5063:function(t){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}},8777:function(t,e,n){var r=n(852),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:function(t,e,n){var r=n(8866),o=n(9551),i=n(3674);t.exports=function(t){return r(t,i,o)}},6904:function(t,e,n){var r=n(8866),o=n(1442),i=n(1704);t.exports=function(t){return r(t,i,o)}},5050:function(t,e,n){var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},852:function(t,e,n){var r=n(8458),o=n(7801);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},5924:function(t,e,n){var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:function(t,e,n){var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}},9551:function(t,e,n){var r=n(4963),o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1442:function(t,e,n){var r=n(2488),o=n(5924),i=n(9551),a=n(479),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=c},4160:function(t,e,n){var r=n(8552),o=n(7071),i=n(3818),a=n(8525),c=n(577),u=n(4239),s=n(346),d="[object Map]",p="[object Promise]",l="[object Set]",f="[object WeakMap]",g="[object DataView]",h=s(r),y=s(o),v=s(i),b=s(a),m=s(c),I=u;(r&&I(new r(new ArrayBuffer(1)))!=g||o&&I(new o)!=d||i&&I(i.resolve())!=p||a&&I(new a)!=l||c&&I(new c)!=f)&&(I=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return g;case y:return d;case v:return p;case b:return l;case m:return f}return e}),t.exports=I},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,n){var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,n){var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},1327:function(t,e,n){var r=n(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},1866:function(t,e,n){var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:function(t,e,n){var r=n(4318),o=n(7157),i=n(3147),a=n(419),c=n(7133);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},8517:function(t,e,n){var r=n(3118),o=n(5924),i=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),o=n(8612),i=n(5776),a=n(3218);t.exports=function(t,e,n){if(!a(n))return!1;var c=typeof e;return!!("number"==c?o(n)&&i(e,n.length):"string"==c&&e in n)&&r(n[e],t)}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,n){var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,n){var r=n(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},2117:function(t,e,n){var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:function(t,e,n){var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:function(t,e,n){var r=n(8470);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},4785:function(t,e,n){var r=n(1989),o=n(8407),i=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},1285:function(t,e,n){var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:function(t,e,n){var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:function(t,e,n){var r=n(5050);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},4536:function(t,e,n){var r=n(852)(Object,"create");t.exports=r},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},3498:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,c=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},5639:function(t,e,n){var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6390:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},61:function(t,e,n){var r=n(6560),o=n(1275)(r);t.exports=o},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:function(t,e,n){var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:function(t){t.exports=function(t){return this.__data__.get(t)}},4758:function(t){t.exports=function(t){return this.__data__.has(t)}},4309:function(t,e,n){var r=n(8407),o=n(7071),i=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:function(t,e,n){var r=n(5990);t.exports=function(t){return r(t,5)}},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),o=n(7005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),o=n(1780);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},9246:function(t,e,n){var r=n(8612),o=n(7005);t.exports=function(t){return o(t)&&r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),o=n(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3560:function(t,e,n){var r=n(4239),o=n(3218);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:function(t,e,n){var r=n(5588),o=n(1717),i=n(1167),a=i&&i.isMap,c=a?o(a):r;t.exports=c},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},8630:function(t,e,n){var r=n(4239),o=n(5924),i=n(7005),a=Function.prototype,c=Object.prototype,u=a.toString,s=c.hasOwnProperty,d=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},2928:function(t,e,n){var r=n(9221),o=n(1717),i=n(1167),a=i&&i.isSet,c=a?o(a):r;t.exports=c},6719:function(t,e,n){var r=n(8749),o=n(1717),i=n(1167),a=i&&i.isTypedArray,c=a?o(a):r;t.exports=c},3674:function(t,e,n){var r=n(4636),o=n(280),i=n(8612);t.exports=function(t){return i(t)?r(t):o(t)}},1704:function(t,e,n){var r=n(4636),o=n(313),i=n(8612);t.exports=function(t){return i(t)?r(t,!0):o(t)}},2492:function(t,e,n){var r=n(2980),o=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=o},479:function(t){t.exports=function(){return[]}},5062:function(t){t.exports=function(){return!1}},9881:function(t,e,n){var r=n(8363),o=n(1704);t.exports=function(t){return r(t,o(t))}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=d(t,e,n);if("normal"===u.type){if(r=n.done?g:l,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=g,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",l="suspendedYield",f="executing",g="completed",h={};function y(){}function v(){}function b(){}var m={};m[i]=function(){return this};var I=Object.getPrototypeOf,O=I&&I(I(S([])));O&&O!==n&&r.call(O,i)&&(m=O);var T=b.prototype=y.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(p).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return v.prototype=T.constructor=b,b.constructor=v,v.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(T),t},t.awrap=function(t){return{__await:t}},E(w.prototype),w.prototype[a]=function(){return this},t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(T),u(T,c,"Generator"),T[i]=function(){return this},T.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:S(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,o),i.loaded=!0,i.exports}return o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.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 i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var c=2&r&&n;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},o(6728)}()}));
@@ -41,7 +41,7 @@ const methodsByCountry = {};
41
41
  availableCountries.forEach(countryCode => {
42
42
  methodsByCountry[countryCode] = [];
43
43
  methods.forEach(method => {
44
- if (method.supportedCountries.includes(countryCode) || method.supportedCountries.includes('allCountries')) {
44
+ if (method.supportedCountries.includes(countryCode) || method.supportedCountries.includes('WORLD')) {
45
45
  methodsByCountry[countryCode].push(method.component);
46
46
  }
47
47
  })
@@ -83,8 +83,8 @@ export default {
83
83
  console.log('cancel click');
84
84
  },
85
85
  getCountryNameByCode(countryCode) {
86
- if (countryCode === 'allCountries') {
87
- return 'World'
86
+ if (countryCode === 'WORLD') {
87
+ return 'All World'
88
88
  }
89
89
  return countries.getName(countryCode, 'en', {select: "official"});
90
90
  },
@@ -9,6 +9,7 @@ import SignEvrotrust from './SignEvrotrust';
9
9
  import SignOtp from './SignOtp';
10
10
  import SignEParakstsMobile from './SignEParakstsMobile';
11
11
  import SignFtn from './SignFtn';
12
+ import SignAtHandy from './SignAtHandy';
12
13
  countries.registerLocale(require("i18n-iso-countries/langs/en.json"));
13
14
 
14
15
  const componentsByHandlingModule = {
@@ -19,6 +20,7 @@ const componentsByHandlingModule = {
19
20
  [moduleNames.otpSignature]: SignOtp,
20
21
  [moduleNames.eParakstsMobileSignature]: SignEParakstsMobile,
21
22
  [moduleNames.ftnSignature]: SignFtn,
23
+ [moduleNames.atHandySignature]: SignAtHandy,
22
24
  };
23
25
 
24
26
  // map vue components to methods
@@ -37,7 +39,7 @@ const methodsByCountry = {};
37
39
  availableCountries.forEach(countryCode => {
38
40
  methodsByCountry[countryCode] = [];
39
41
  methods.forEach(method => {
40
- if (method.supportedCountries.includes(countryCode) || method.supportedCountries.includes('allCountries')) {
42
+ if (method.supportedCountries.includes(countryCode) || method.supportedCountries.includes('WORLD')) {
41
43
  methodsByCountry[countryCode].push(method.component);
42
44
  }
43
45
  })
@@ -61,7 +63,7 @@ export default {
61
63
  selectedLanguage: 'en',
62
64
  methodsByCountry,
63
65
  countries,
64
- selectedCountry: 'FI',
66
+ selectedCountry: 'AT',
65
67
  eidEasyDemoClient,
66
68
  }
67
69
  },
@@ -73,8 +75,8 @@ export default {
73
75
  console.log('cancel click');
74
76
  },
75
77
  getCountryNameByCode(countryCode) {
76
- if (countryCode === 'allCountries') {
77
- return 'World'
78
+ if (countryCode === 'WORLD') {
79
+ return 'All World'
78
80
  }
79
81
  return countries.getName(countryCode, 'en', {select: "official"});
80
82
  },
@@ -0,0 +1,103 @@
1
+ <script>
2
+ import MethodCard from './MethodCard';
3
+ import logResult from './logResult';
4
+
5
+ export default {
6
+ name: 'SignAtHandy',
7
+ components: {
8
+ MethodCard,
9
+ },
10
+ data() {
11
+ return {
12
+ isLoading: false,
13
+ challenge: null,
14
+ signingProcess: null,
15
+ customInsteadOfRedirect: 'none',
16
+ }
17
+ },
18
+ props: {
19
+ eidEasyClient: {
20
+ default: null,
21
+ required: true,
22
+ },
23
+ countryCode: {
24
+ default: null,
25
+ required: true,
26
+ },
27
+ },
28
+ methods: {
29
+ getFieldId(id) {
30
+ return this.$options.name + '-' + id;
31
+ },
32
+ handleStartClick({
33
+ addErrors,
34
+ addSuccess,
35
+ startLoading,
36
+ endLoading,
37
+ }) {
38
+ startLoading();
39
+ const config = {
40
+ countryCode: this.countryCode,
41
+ fail: (result) => {
42
+ logResult(result, 'fail');
43
+ addErrors(result);
44
+ },
45
+ success: (result) => {
46
+ logResult(result, 'success');
47
+ addSuccess(result);
48
+ },
49
+ finished: (result) => {
50
+ logResult(result, 'finished');
51
+ endLoading();
52
+ },
53
+ };
54
+
55
+ if (this.customInsteadOfRedirect === 'error') {
56
+ config.redirect = () => ({
57
+ data: 'Some data',
58
+ error: new Error('A mock error'),
59
+ });
60
+ } else if (this.customInsteadOfRedirect === 'data') {
61
+ config.redirect = () => new Promise((resolve) => {
62
+ setTimeout(() => {
63
+ resolve({
64
+ data: 'Some data',
65
+ });
66
+ }, 2000);
67
+ });
68
+ }
69
+ this.signingProcess = this.eidEasyClient.signature.atHandySignature.start(config);
70
+ },
71
+ handleCancelClick() {
72
+ this.signingProcess && this.signingProcess.cancel();
73
+ },
74
+ },
75
+ }
76
+ </script>
77
+
78
+ <template>
79
+ <MethodCard
80
+ title="Austrian Handy Signatur signing"
81
+ :on-start-click="handleStartClick"
82
+ :on-cancel-click="handleCancelClick"
83
+ >
84
+ <div class="form-check">
85
+ <input v-model="customInsteadOfRedirect" class="form-check-input" value="none" type="radio" :id="getFieldId('redirectOption1')">
86
+ <label class="form-check-label" :for="getFieldId('redirectOption1')">
87
+ No custom redirect
88
+ </label>
89
+ </div>
90
+ <div class="form-check">
91
+ <input v-model="customInsteadOfRedirect" class="form-check-input" type="radio" value="error" :id="getFieldId('redirectOption2')">
92
+ <label class="form-check-label" :for="getFieldId('redirectOption2')">
93
+ Custom redirect function that has an error in the result object
94
+ </label>
95
+ </div>
96
+ <div class="form-check">
97
+ <input v-model="customInsteadOfRedirect" class="form-check-input" type="radio" value="data" :id="getFieldId('redirectOption3')">
98
+ <label class="form-check-label" :for="getFieldId('redirectOption3')">
99
+ Custom redirect function that has data in the result object
100
+ </label>
101
+ </div>
102
+ </MethodCard>
103
+ </template>
@@ -11,18 +11,6 @@ const eidEasyDemoClient = createClient({
11
11
  base: () => 'https://id.eideasy.test',
12
12
  identityStart: () => 'https://eid-sample-app.test/api/identity/start',
13
13
  identityFinish: () => 'https://eid-sample-app.test/api/identity/finish',
14
- zealIdIframeUrl: ({ clientId }) => `https://id.eideasy.test/api/identity/${clientId}/zealid/get_iframe_url`,
15
- mojeId: ({ clientId, redirectUri }) => `https://id.eideasy.test/oauth/start/mojeid?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
16
- finnishTrustNetwork: ({ clientId, redirectUri, language }) => `https://id.eideasy.test/oauth/start/finnish-ftn-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&lang=${language}`,
17
- atHandy: ({ clientId, redirectUri }) => `https://id.eideasy.test/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&method=at-handy-signatur-login`,
18
- idCardIframe: ({ clientId, actionType }) => `https://id.eideasy.test/signatures/integration/${clientId}/${actionType}`,
19
- startSigning: () => 'https://id.eideasy.test/api/signatures/start-signing',
20
- completeSignatureIdCard: () => 'https://id.eideasy.test/api/signatures/id-card/complete',
21
- eideasyMonitoring: () => 'https://id.eideasy.test/confirm_progress',
22
- completeSignatureMobileId: () => 'https://id.eideasy.test/api/signatures/sk-mobile-id/complete',
23
- completeSignatureSmartId: () => 'https://id.eideasy.test/api/signatures/sk-smart-id/complete',
24
- completeSignatureEvrotrust: () => 'https://id.eideasy.test/api/signatures/evrotrust-signature/complete',
25
- completeOtp: () => 'https://id.eideasy.test/api/signatures/non-qualified/complete',
26
14
  },
27
15
  modifyRequestSettings: () => {
28
16
  return {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@eid-easy/eideasy-browser-client",
3
- "version": "2.1.0",
3
+ "version": "2.5.0",
4
4
  "description": "eID Easy Browser Client allows to consume eID Easy API's in web browsers",
5
5
  "main": "dist/eideasy-browser-client.js",
6
- "sri": "sha256-3tQ+NQjEEABdqyKNgU4UJX7qhOfPNXYRKfX9rL11SVs=",
7
- "productionReleaseVersion": "2.1.0",
8
- "productionReleaseSri": "sha256-3tQ+NQjEEABdqyKNgU4UJX7qhOfPNXYRKfX9rL11SVs=",
6
+ "sri": "sha256-tI57uwkbA6h7a65GlRoBCdE36nevDkqUkP4GzBzT5zg=",
7
+ "productionReleaseVersion": "2.5.0",
8
+ "productionReleaseSri": "sha256-tI57uwkbA6h7a65GlRoBCdE36nevDkqUkP4GzBzT5zg=",
9
9
  "scripts": {
10
10
  "webpack": "webpack",
11
11
  "env-cmd": "env-cmd",
@@ -0,0 +1,10 @@
1
+ const MethodException = function MethodException({ message = '', userMessage = '', details = {} } = {}) {
2
+ this.message = message;
3
+ this.userMessage = userMessage;
4
+ this.details = details;
5
+ this.stack = (new Error()).stack;
6
+ };
7
+ MethodException.prototype = new Error();
8
+ MethodException.prototype.name = 'MethodException';
9
+
10
+ export default MethodException;
@@ -1,70 +1,68 @@
1
+ /* eslint-disable max-len */
2
+
1
3
  import modes from '../modes';
2
4
 
3
- const createApiEndpoints = function createApiEndpoints(settings = {}, overrides) {
5
+ const createEndpoint = function createEndpoint(endpointFn, baseConfig) {
6
+ // eslint-disable-next-line func-names
7
+ return function (config) {
8
+ const mergedConfig = {
9
+ ...baseConfig,
10
+ ...config,
11
+ };
12
+ return endpointFn(mergedConfig);
13
+ };
14
+ };
15
+
16
+ const provideEndpointsWithBaseConfig = function provideEndpointsWithBaseConfig(endpoints, baseConfig) {
17
+ const newEndpoints = {};
18
+ Object.keys(endpoints).forEach((key) => {
19
+ newEndpoints[key] = createEndpoint(endpoints[key], baseConfig);
20
+ });
21
+ return newEndpoints;
22
+ };
23
+
24
+ const createApiEndpoints = function createApiEndpoints(settings = {}, overrides = {}) {
4
25
  const apiEndpoints = {
26
+ base: ({ baseUrl }) => baseUrl,
27
+ readCard: ({
28
+ countryCode = settings.countryCode.toLowerCase(),
29
+ clientId,
30
+ }) => `https://${countryCode}.eideasy.com/api/identity/${clientId}/read-card`,
31
+ eParakstsMobile: ({ baseUrl, clientId, redirectUri }) => `${baseUrl}/oauth/start/lv-eparaksts-mobile-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
32
+ zealIdIframeUrl: ({ baseUrl, clientId }) => `${baseUrl}/api/identity/${clientId}/zealid/get_iframe_url`,
33
+ mojeId: ({ baseUrl, clientId, redirectUri }) => `${baseUrl}/oauth/start/mojeid?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
34
+ finnishTrustNetwork: ({
35
+ baseUrl, clientId, redirectUri, language,
36
+ }) => `${baseUrl}/oauth/start/finnish-ftn-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&lang=${language}`,
37
+ atHandy: ({ baseUrl, clientId, redirectUri }) => `${baseUrl}/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&method=at-handy-signatur-login`,
38
+ idCardIframe: ({ baseUrl, clientId, actionType }) => `${baseUrl}/signatures/integration/${clientId}/${actionType}`,
39
+ startSigning: ({ baseUrl }) => `${baseUrl}/api/signatures/start-signing`,
40
+ completeSignatureIdCard: ({ baseUrl }) => `${baseUrl}/api/signatures/id-card/complete`,
41
+ completeSignatureMobileId: ({ baseUrl }) => `${baseUrl}/api/signatures/sk-mobile-id/complete`,
42
+ completeSignatureSmartId: ({ baseUrl }) => `${baseUrl}/api/signatures/sk-smart-id/complete`,
43
+ completeSignatureEvrotrust: ({ baseUrl }) => `${baseUrl}/api/signatures/evrotrust-signature/complete`,
44
+ completeOtp: ({ baseUrl }) => `${baseUrl}/api/signatures/non-qualified/complete`,
45
+ eideasyMonitoring: ({ baseUrl }) => `${baseUrl}/confirm_progress`,
46
+ ...overrides,
47
+ };
48
+
49
+ const apiEndpointsByModes = {
5
50
  [modes.production]: {
6
- base: () => 'https://id.eideasy.com',
7
- card: (countryCode = settings.countryCode.toLowerCase()) => `https://${countryCode}.eideasy.com`,
8
- // eslint-disable-next-line max-len
9
- eParakstsMobile: ({ clientId, redirectUri }) => `https://id.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
10
- // eslint-disable-next-line max-len
11
- zealIdIframeUrl: ({ clientId }) => `https://id.eideasy.com/api/identity/${clientId}/zealid/get_iframe_url`,
12
- // eslint-disable-next-line max-len
13
- mojeId: ({ clientId, redirectUri }) => `https://id.eideasy.com/oauth/start/mojeid?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
14
- // eslint-disable-next-line max-len
15
- finnishTrustNetwork: ({ clientId, redirectUri, language }) => `https://id.eideasy.com/oauth/start/finnish-ftn-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&lang=${language}`,
16
- // eslint-disable-next-line max-len
17
- atHandy: ({ clientId, redirectUri }) => `https://id.eideasy.com/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&method=at-handy-signatur-login`,
18
- // eslint-disable-next-line max-len
19
- idCardIframe: ({ clientId, actionType }) => `https://id.eideasy.com/signatures/integration/${clientId}/${actionType}`,
20
- startSigning: () => 'https://id.eideasy.com/api/signatures/start-signing',
21
- completeSignatureIdCard: () => 'https://id.eideasy.com/api/signatures/id-card/complete',
22
- completeSignatureMobileId: () => 'https://id.eideasy.com/api/signatures/sk-mobile-id/complete',
23
- completeSignatureSmartId: () => 'https://id.eideasy.com/api/signatures/sk-smart-id/complete',
24
- completeSignatureEvrotrust: () => 'https://id.eideasy.com/api/signatures/evrotrust-signature/complete',
25
- completeOtp: () => 'https://id.eideasy.com/api/signatures/non-qualified/complete',
26
- eideasyMonitoring: () => 'https://id.eideasy.com/confirm_progress',
51
+ ...provideEndpointsWithBaseConfig(apiEndpoints, {
52
+ baseUrl: overrides.base ? overrides.base() : 'https://id.eideasy.com',
53
+ }),
27
54
  },
28
55
  [modes.sandbox]: {
29
- base: () => 'https://test.eideasy.com',
30
- card: (countryCode = settings.countryCode.toLowerCase()) => `https://${countryCode}.test.eideasy.com`,
31
- // eslint-disable-next-line max-len
32
- eParakstsMobile: ({ clientId, redirectUri }) => `https://test.eideasy.com/oauth/start/lv-eparaksts-mobile-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
33
- // eslint-disable-next-line max-len
34
- zealIdIframeUrl: ({ clientId }) => `https://test.eideasy.com/api/identity/${clientId}/zealid/get_iframe_url`,
35
- // eslint-disable-next-line max-len
36
- mojeId: ({ clientId, redirectUri }) => `https://test.eideasy.com/oauth/start/mojeid?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code`,
37
- // eslint-disable-next-line max-len
38
- finnishTrustNetwork: ({ clientId, redirectUri, language }) => `https://test.eideasy.com/oauth/start/finnish-ftn-login?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&lang=${language}`,
39
- // eslint-disable-next-line max-len
40
- atHandy: ({ clientId, redirectUri }) => `https://test.eideasy.com/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=code&method=at-handy-signatur-login`,
41
- // eslint-disable-next-line max-len
42
- idCardIframe: ({ clientId, actionType }) => `https://test.eideasy.com/signatures/integration/${clientId}/${actionType}`,
43
- startSigning: () => 'https://test.eideasy.com/api/signatures/start-signing',
44
- completeSignatureIdCard: () => 'https://test.eideasy.com/api/signatures/id-card/complete',
45
- completeSignatureMobileId: () => 'https://test.eideasy.com/api/signatures/sk-mobile-id/complete',
46
- completeSignatureSmartId: () => 'https://test.eideasy.com/api/signatures/sk-smart-id/complete',
47
- completeSignatureEvrotrust: () => 'https://test.eideasy.com/api/signatures/evrotrust-signature/complete',
48
- completeOtp: () => 'https://test.eideasy.com/api/signatures/non-qualified/complete',
49
- eideasyMonitoring: () => 'https://test.eideasy.com/confirm_progress',
56
+ ...provideEndpointsWithBaseConfig(apiEndpoints, {
57
+ baseUrl: overrides.base ? overrides.base() : 'https://test.eideasy.com',
58
+ }),
50
59
  },
51
60
  };
52
61
 
53
- if (overrides) {
54
- apiEndpoints[modes.production] = {
55
- ...apiEndpoints[modes.production],
56
- ...overrides,
57
- };
58
- apiEndpoints[modes.sandbox] = {
59
- ...apiEndpoints[modes.sandbox],
60
- ...overrides,
61
- };
62
- }
63
-
64
62
  return {
65
63
  get inCurrentMode() {
66
64
  const mode = settings.sandbox ? modes.sandbox : modes.production;
67
- return apiEndpoints[mode];
65
+ return apiEndpointsByModes[mode];
68
66
  },
69
67
  };
70
68
  };
package/src/config.js CHANGED
@@ -58,6 +58,7 @@ const moduleNames = {
58
58
  otpSignature: 'otpSignature',
59
59
  eParakstsMobileSignature: 'eParakstsMobileSignature',
60
60
  ftnSignature: 'ftnSignature',
61
+ atHandySignature: 'atHandySignature',
61
62
  };
62
63
 
63
64
  const allMethods = Object.freeze({
@@ -205,7 +206,7 @@ const allMethods = Object.freeze({
205
206
  {
206
207
  actionType: methodActionTypes.OTP_EMAIL,
207
208
  handlingModule: moduleNames.otpSignature,
208
- supportedCountries: ['allCountries'],
209
+ supportedCountries: ['WORLD'],
209
210
  },
210
211
  {
211
212
  actionType: methodActionTypes.LV_EPARAKSTS_MOBILE_SIGNATURE,
@@ -217,6 +218,11 @@ const allMethods = Object.freeze({
217
218
  handlingModule: moduleNames.ftnSignature,
218
219
  supportedCountries: ['FI'],
219
220
  },
221
+ {
222
+ actionType: methodActionTypes.AT_HANDY_SIGNATUR_SIGNATURE,
223
+ handlingModule: moduleNames.atHandySignature,
224
+ supportedCountries: ['AT'],
225
+ },
220
226
  ],
221
227
  });
222
228
 
@@ -224,7 +230,7 @@ const getMethodByHandlingModule = function getMethodByHandlingModule(methodType,
224
230
  const methods = allMethods[methodType];
225
231
  if (handlingModule && country) {
226
232
  const match = methods.find((method) => method.handlingModule === handlingModule
227
- && (method.supportedCountries.includes(country) || method.supportedCountries.includes('allCountries')));
233
+ && (method.supportedCountries.includes(country) || method.supportedCountries.includes('WORLD')));
228
234
 
229
235
  if (!match) {
230
236
  const matchingMethods = methods.filter((method) => method.handlingModule === handlingModule);
@@ -20,7 +20,10 @@ const executable = async function executable(config) {
20
20
 
21
21
  const readCard = function readCard(settings = {}) {
22
22
  // eslint-disable-next-line max-len
23
- let url = `${settings.apiEndpoints.inCurrentMode.card(settings.countryCode)}/api/identity/${settings.clientId}/read-card`;
23
+ let url = settings.apiEndpoints.inCurrentMode.readCard({
24
+ countryCode: settings.countryCode,
25
+ clientId: settings.clientId,
26
+ });
24
27
  if (settings.nonce) {
25
28
  url += `?nonce=${settings.nonce}`;
26
29
  }
package/src/main.js CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  createOtpSignature,
25
25
  createEParakstsMobileSignature,
26
26
  createFtnSignature,
27
+ createAtHandySignature,
27
28
  } from './signatureModules/signatureModules';
28
29
  import createApiEndpoints from './apiClient/createApiEndpoints';
29
30
 
@@ -65,6 +66,7 @@ const createClient = function createClient(userSettings = {}) {
65
66
  createOtpSignature,
66
67
  createEParakstsMobileSignature,
67
68
  createFtnSignature,
69
+ createAtHandySignature,
68
70
  ],
69
71
  });
70
72
  };
@@ -0,0 +1,70 @@
1
+ import createStep from '../createStep';
2
+ import createModuleCreator from '../createModuleCreator';
3
+ import { getMethodByHandlingModule, methodTypes, moduleNames } from '../config';
4
+
5
+ const MODULE_NAME = moduleNames.atHandySignature;
6
+ const settingsSchema = {
7
+ docId: {
8
+ type: 'string',
9
+ required: true,
10
+ },
11
+ };
12
+
13
+ const startSigning = function startSigning({
14
+ contractId,
15
+ clientId,
16
+ docId,
17
+ cancelToken,
18
+ apiEndpoints,
19
+ apiClient,
20
+ language,
21
+ actionType,
22
+ }) {
23
+ const url = apiEndpoints.inCurrentMode.startSigning();
24
+ return apiClient.post({
25
+ url,
26
+ withCredentials: false,
27
+ data: {
28
+ doc_id: docId,
29
+ contract_id: contractId,
30
+ client_id: clientId,
31
+ sign_type: actionType,
32
+ lang: language,
33
+ },
34
+ cancelToken,
35
+ });
36
+ };
37
+
38
+ const executable = async function executable({
39
+ clientId,
40
+ docId,
41
+ contractId,
42
+ cancelToken,
43
+ apiEndpoints,
44
+ apiClient,
45
+ monitoringService,
46
+ language,
47
+ countryCode,
48
+ redirect,
49
+ }) {
50
+ const method = getMethodByHandlingModule(methodTypes.SIGNATURE, MODULE_NAME, countryCode);
51
+ monitoringService.dispatch({
52
+ message: `${method.actionType}: signing started`,
53
+ });
54
+
55
+ const startSigningResult = await createStep(startSigning)({
56
+ contractId,
57
+ clientId,
58
+ docId,
59
+ cancelToken,
60
+ apiEndpoints,
61
+ apiClient,
62
+ language,
63
+ actionType: method.actionType,
64
+ });
65
+
66
+ return createStep(redirect, { shouldFormatResult: false })(startSigningResult);
67
+ };
68
+
69
+ const createAtHandySignature = createModuleCreator(MODULE_NAME, executable, settingsSchema);
70
+ export default createAtHandySignature;
@@ -1,6 +1,7 @@
1
1
  import createStep from '../createStep';
2
2
  import createModuleCreator from '../createModuleCreator';
3
3
  import { getMethodByHandlingModule, methodTypes, moduleNames } from '../config';
4
+ import MethodException from '../MethodException';
4
5
 
5
6
  const MODULE_NAME = moduleNames.idCardSignature;
6
7
 
@@ -31,6 +32,22 @@ const getIframeUrl = function getIframeUrl({ countryCode, clientId, apiEndpoints
31
32
  });
32
33
  };
33
34
 
35
+ const handleIframeError = function handleIframeError(error, i18n) {
36
+ if (error instanceof Error) {
37
+ throw error;
38
+ }
39
+
40
+ let userMessage;
41
+ if (error.result === 'no_certificates') {
42
+ userMessage = i18n.t('no_certificates');
43
+ }
44
+ throw new MethodException({
45
+ userMessage,
46
+ message: error.message,
47
+ details: error,
48
+ });
49
+ };
50
+
34
51
  const createIframe = function createIframe({
35
52
  iframeHolder, iframeUrl, i18n,
36
53
  }) {
@@ -160,7 +177,7 @@ const executable = async function executable(config) {
160
177
  iframeUrl,
161
178
  iframeHolder: config.iframeHolder,
162
179
  i18n: config.i18n,
163
- });
180
+ }).catch((error) => handleIframeError(error, config.i18n));
164
181
 
165
182
  const messenger = await createStep(createMessenger, { shouldFormatResult: false })({
166
183
  iframe,
@@ -170,15 +187,7 @@ const executable = async function executable(config) {
170
187
  shouldFormatResult: false,
171
188
  })({
172
189
  messenger,
173
- }).catch((error) => {
174
- if (!error.result) {
175
- throw error;
176
- }
177
- if (error.result === 'no_certificates') {
178
- error.userMessage = config.i18n.t('no_certificates'); // eslint-disable-line no-param-reassign
179
- }
180
- throw error;
181
- });
190
+ }).catch((error) => handleIframeError(error, config.i18n));
182
191
 
183
192
  const startSigningResult = await createStep(startSigning)({
184
193
  certificate: certificateResult.cert,
@@ -5,6 +5,7 @@ import createEvrotrustSignature from './createEvrotrustSignature';
5
5
  import createOtpSignature from './createOtpSignature';
6
6
  import createEParakstsMobileSignature from './createEParakstsMobileSignature';
7
7
  import createFtnSignature from './createFtnSignature';
8
+ import createAtHandySignature from './createAtHandySignature';
8
9
 
9
10
  export {
10
11
  createIdCardSignature,
@@ -14,4 +15,5 @@ export {
14
15
  createOtpSignature,
15
16
  createEParakstsMobileSignature,
16
17
  createFtnSignature,
18
+ createAtHandySignature,
17
19
  };