@blockcerts/blockcerts-verifier 1.70.1 → 1.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/bundle-stats.html +13 -13
  2. package/dist/DataIntegrityProof-elCNKq16-DBDuaDNt.js +7 -0
  3. package/dist/EcdsaSd2023-B0XPAIp6-K61axvBA.js +30 -0
  4. package/dist/EcdsaSecp256k1Signature2019-BHgoxmKI-DT2qHZod.js +1 -0
  5. package/dist/Ed25519Signature2020-BQsESRnS-TKZI_1AX.js +34 -0
  6. package/dist/EddsaRdfc2022-DQKzWHK4-BILzDBp-.js +14 -0
  7. package/dist/{HashlinkVerifier-mEn5oMxx-0x0OtiE4.js → HashlinkVerifier-BsVlaml5-B4Niv2-b.js} +2 -2
  8. package/dist/{MerkleProof2017-Cgbk--lC-CKvOfXrT.js → MerkleProof2017-CYM8CJHB-FYpMvld0.js} +1 -1
  9. package/dist/MerkleProof2019-BLrywo8h-Bo9rH2Eq.js +13 -0
  10. package/dist/{checkCredentialSchemaConformity-CuuMYTl6-DqE6I7JD.js → checkCredentialSchemaConformity-CKNtOu_t-B9iaCRUE.js} +1 -1
  11. package/dist/{controlVerificationMethod-C87jwGUr-CpVyq-8H.js → controlVerificationMethod-B4TgLED0-BGpxLjMq.js} +1 -1
  12. package/dist/{did-key-common.esm-D1RQn0yL-kJBnihy7.js → did-key-common.esm-BIftA62j-hVrUMxjy.js} +3 -3
  13. package/dist/{did-key-ed25519.esm-0v03exJh-COIOTeQ5.js → did-key-ed25519.esm-Drn3Y7PF-CqD0ifNk.js} +1 -1
  14. package/dist/{did-key-secp256k1.esm-Cs0ZCHjg-B35GrJww.js → did-key-secp256k1.esm-DH-f3o5q-C66E7IxB.js} +1 -1
  15. package/dist/downloadPDF-D2qwT_DJ.js +297 -0
  16. package/dist/ed25519-key-pair.esm-DPOFpdJ2-BrwuS0Ia.js +25 -0
  17. package/dist/{elliptic-HXNc7riQ-DrFZxkx3.js → elliptic-4aZS_cwf-BpaNaVm0.js} +1 -1
  18. package/dist/elliptic-BYqApR8Y-CKp7atgR.js +1 -0
  19. package/dist/{index-BJkS6Wwm-C8oVP6LM.js → index-BgTFEYQ4-DMaz98iZ.js} +7 -7
  20. package/dist/index-lyuTDW_o-nyi7dklX.js +1 -0
  21. package/dist/{index.es-kH7iskh8.js → index.es-BIiEi3w5.js} +2 -2
  22. package/dist/{jsonld-CMQE_cGn-899pOqB6.js → jsonld-B_Q2jvnp-BJ5uVeOU.js} +1 -1
  23. package/dist/{jsonld-signatures-ZtLxJmqT-B0W14Jb0.js → jsonld-signatures-BbILf-Q7-DTp6__ud.js} +1 -1
  24. package/dist/keyUtils-ExMI0fmg-NVOmd8LH.js +1 -0
  25. package/dist/main.js +116 -116
  26. package/dist/{retrieveVerificationMethodPublicKey-nmb3CCVx-DA6ovQri.js → retrieveVerificationMethodPublicKey-C5Gafl1E-Lv4waRy7.js} +1 -1
  27. package/dist/verifyIssuerProfile-DCJyz3ho-BwuCK9F3.js +1 -0
  28. package/dist/{x25519-CbZcE2Ac-NSl6svWQ.js → x25519-Kp6t9B5a-Dh8L0KYb.js} +1 -1
  29. package/package.json +4 -4
  30. package/dist/EcdsaSd2023-BDSl7Ei2-BKyD2rP9.js +0 -35
  31. package/dist/EcdsaSecp256k1Signature2019-Bk8_LQ8c-BqdRm-Jv.js +0 -1
  32. package/dist/Ed25519Signature2020-fyWut63D-R9eZ2oN0.js +0 -58
  33. package/dist/MerkleProof2019-Dhsn349H-DFyc-5gT.js +0 -3
  34. package/dist/downloadPDF-CWa3ZYVl.js +0 -346
  35. package/dist/elliptic-CRAl7yyq-DbLzV4aB.js +0 -1
  36. package/dist/verifyIssuerProfile-CYqfuwV1-DeQqsjiM.js +0 -1
  37. /package/dist/{checkRevocationStatusList2021-UjTyRcl_-BEBD8TO8.js → checkRevocationStatusList2021-CMAVXAVE-BEBD8TO8.js} +0 -0
  38. /package/dist/{ensureNotRevoked-CdrYFvh7-DvMIgM4L.js → ensureNotRevoked-hGps0prO-DvMIgM4L.js} +0 -0
  39. /package/dist/{ensureValidIssuingKey-n3jD_OlE-BdV46XBb.js → ensureValidIssuingKey-BMVCi2T2-BdV46XBb.js} +0 -0
  40. /package/dist/{index-BcfLkJHS-Dgus2xdV.js → index-BS134367-Dgus2xdV.js} +0 -0
  41. /package/dist/{index-DYND9Svl-C0eXpZGn.js → index-CQYVZlSE-C0eXpZGn.js} +0 -0
  42. /package/dist/{sha256-CN3v2fAD-C1PUWFZm.js → sha256-u2xsd4MQ-C1PUWFZm.js} +0 -0
  43. /package/dist/{webcrypto.es-hNUMWa8--BnVhHKeM.js → webcrypto.es-DpqeDikX-BnVhHKeM.js} +0 -0
package/dist/main.js CHANGED
@@ -45,7 +45,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
45
45
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
46
46
  Code distributed by Google as part of the polymer project is also
47
47
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
48
- */const j=C((e=>{const t=R(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof n?t:null}function r(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=
48
+ */const O=C((e=>{const t=R(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof n?t:null}function r(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=
49
49
  /**
50
50
  @license
51
51
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -55,7 +55,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
55
55
  Code distributed by Google as part of the polymer project is also
56
56
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
57
57
  */
58
- function(e){const t={};for(let i in e){const r=e[i];t[i]="function"==typeof r?{type:r}:r}return t}(i))}e.__ownProperties=t}return e.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const e=this._properties;this.__observedAttributes=e?Object.keys(e).map((e=>this.prototype._addPropertyToAttributeMap(e))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=r(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,r(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n})),O=new Map;
58
+ function(e){const t={};for(let i in e){const r=e[i];t[i]="function"==typeof r?{type:r}:r}return t}(i))}e.__ownProperties=t}return e.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const e=this._properties;this.__observedAttributes=e?Object.keys(e).map((e=>this.prototype._addPropertyToAttributeMap(e))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=r(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,r(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n})),j=new Map;
59
59
  /**
60
60
  * @license
61
61
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -95,7 +95,7 @@ function(e){const t={};for(let i in e){const r=e[i];t[i]="function"==typeof r?{t
95
95
  * subject to an additional IP rights grant found at
96
96
  * http://polymer.github.io/PATENTS.txt
97
97
  */
98
- const oe=(e,t)=>`${e}--${t}`,ae=["html","svg"];function se(e){ae.forEach((t=>{const i=O.get(oe(t,e));void 0!==i&&i.forEach((e=>{const{element:{content:t}}=e,i=t.querySelectorAll("style");!function(e,t){const{element:{content:i},parts:r}=e,n=document.createTreeWalker(i,ie,null,!1);let o=0,a=r[0],s=-1,c=0;const l=[];let u=null;for(;n.nextNode();){s++;const e=n.currentNode;for(e.previousSibling===u&&(u=null),t.has(e)&&(l.push(e),null===u&&(u=e)),null!==u&&c++;void 0!==a&&a.index===s;)a.index=null!==u?-1:a.index-c,a=r[++o]}l.forEach((e=>e.parentNode.removeChild(e)))}(e,new Set(Array.from(i)))}))}))}const ce=new Set,le=(e,t,i)=>{if(!ce.has(i)){ce.add(i);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach((e=>{r.content.appendChild(e)})),window.ShadyCSS.prepareTemplateStyles(r,i),se(i),window.ShadyCSS.nativeShadow){const i=r.content.querySelector("style");null!==i&&(e.insertBefore(i,e.firstChild),function(e,t,i=null){const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const o=document.createTreeWalker(r,ie,null,!1);let a=ne(n),s=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===i&&(i.parentNode.insertBefore(t,i),s=re(t));-1!==a&&n[a].index===c;){if(s>0){for(;-1!==a;)n[a].index+=s,a=ne(n,a);return}a=ne(n,a)}}(t,i.cloneNode(!0),t.element.content.firstChild))}}};function ue(e,t,i){const r=(e=>t=>{const i=oe(t.type,e);let r=O.get(i);void 0===r&&(r=new Map,O.set(i,r));let n=r.get(t.strings);if(void 0===n){const i=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(i,e),n=new K(t,i),r.set(t.strings,n)}return n})(i),n=r(e);let o=t.__templateInstance;if(void 0!==o&&o.template===n&&o._partCallback===e.partCallback)return void o.update(e.values);o=new ee(n,e.partCallback,r),t.__templateInstance=o;const a=o._clone();o.update(e.values);const s=t instanceof ShadowRoot?t.host:void 0;void 0!==s&&"object"==typeof window.ShadyCSS&&(le(a,n,i),window.ShadyCSS.styleElement(s)),te(t,t.firstChild),t.appendChild(a)}
98
+ const oe=(e,t)=>`${e}--${t}`,ae=["html","svg"];function se(e){ae.forEach((t=>{const i=j.get(oe(t,e));void 0!==i&&i.forEach((e=>{const{element:{content:t}}=e,i=t.querySelectorAll("style");!function(e,t){const{element:{content:i},parts:r}=e,n=document.createTreeWalker(i,ie,null,!1);let o=0,a=r[0],s=-1,c=0;const l=[];let u=null;for(;n.nextNode();){s++;const e=n.currentNode;for(e.previousSibling===u&&(u=null),t.has(e)&&(l.push(e),null===u&&(u=e)),null!==u&&c++;void 0!==a&&a.index===s;)a.index=null!==u?-1:a.index-c,a=r[++o]}l.forEach((e=>e.parentNode.removeChild(e)))}(e,new Set(Array.from(i)))}))}))}const ce=new Set,le=(e,t,i)=>{if(!ce.has(i)){ce.add(i);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach((e=>{r.content.appendChild(e)})),window.ShadyCSS.prepareTemplateStyles(r,i),se(i),window.ShadyCSS.nativeShadow){const i=r.content.querySelector("style");null!==i&&(e.insertBefore(i,e.firstChild),function(e,t,i=null){const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const o=document.createTreeWalker(r,ie,null,!1);let a=ne(n),s=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===i&&(i.parentNode.insertBefore(t,i),s=re(t));-1!==a&&n[a].index===c;){if(s>0){for(;-1!==a;)n[a].index+=s,a=ne(n,a);return}a=ne(n,a)}}(t,i.cloneNode(!0),t.element.content.firstChild))}}};function ue(e,t,i){const r=(e=>t=>{const i=oe(t.type,e);let r=j.get(i);void 0===r&&(r=new Map,j.set(i,r));let n=r.get(t.strings);if(void 0===n){const i=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(i,e),n=new K(t,i),r.set(t.strings,n)}return n})(i),n=r(e);let o=t.__templateInstance;if(void 0!==o&&o.template===n&&o._partCallback===e.partCallback)return void o.update(e.values);o=new ee(n,e.partCallback,r),t.__templateInstance=o;const a=o._clone();o.update(e.values);const s=t instanceof ShadowRoot?t.host:void 0;void 0!==s&&"object"==typeof window.ShadyCSS&&(le(a,n,i),window.ShadyCSS.styleElement(s)),te(t,t.firstChild),t.appendChild(a)}
99
99
  /**
100
100
  * @license
101
101
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -108,7 +108,7 @@ const oe=(e,t)=>`${e}--${t}`,ae=["html","svg"];function se(e){ae.forEach((t=>{co
108
108
  * Code distributed by Google as part of the polymer project is also
109
109
  * subject to an additional IP rights grant found at
110
110
  * http://polymer.github.io/PATENTS.txt
111
- */const de=(e,...t)=>new N(e,t,"html",pe),pe=(e,t,i)=>{if("attribute"===t.type){if("on-"===t.rawName.substr(0,3)){const r=t.rawName.slice(3);return new ge(e,i,r)}const r=t.name.substr(t.name.length-1);if("$"===r){const r=t.name.slice(0,-1);return new Z(e,i,r,t.strings)}if("?"===r){const r=t.name.slice(0,-1);return new he(e,i,r,t.strings)}return new fe(e,i,t.rawName,t.strings)}return Q(e,t,i)};class he extends Z{setValue(e,t){const i=this.strings;if(2!==i.length||""!==i[0]||""!==i[1])throw new Error("boolean attributes can only contain a single expression");{const i=J(this,e[t]);if(i===G)return;i?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}class fe extends Z{setValue(e,t){const i=this.strings;let r;this._equalToPreviousValues(e,t)||(r=2===i.length&&""===i[0]&&""===i[1]?J(this,e[t]):this._interpolate(e,t),r!==G&&(this.element[this.name]=r),this._previousValues=e)}}class ge{constructor(e,t,i){this.instance=e,this.element=t,this.eventName=i}setValue(e){const t=J(this,e);t!==this._listener&&(null==t?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=t)}handleEvent(e){"function"==typeof this._listener?this._listener.call(this.element,e):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(e)}}class be extends(j(HTMLElement)){constructor(){super(...arguments),this.__renderComplete=null,this.__resolveRenderComplete=null,this.__isInvalid=!1,this.__isChanging=!1}ready(){this._root=this._createRoot(),super.ready(),this._firstRendered()}_firstRendered(){}_createRoot(){return this.attachShadow({mode:"open"})}_shouldPropertiesChange(e,t,i){const r=this._shouldRender(e,t,i);return!r&&this.__resolveRenderComplete&&this.__resolveRenderComplete(!1),r}_shouldRender(e,t,i){return!0}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i);const r=this._render(e);r&&void 0!==this._root&&this._applyRender(r,this._root),this._didRender(e,t,i),this.__resolveRenderComplete&&this.__resolveRenderComplete(!0)}_flushProperties(){this.__isChanging=!0,this.__isInvalid=!1,super._flushProperties(),this.__isChanging=!1}_shouldPropertyChange(e,t,i){const r=super._shouldPropertyChange(e,t,i);return r&&this.__isChanging&&console.trace(`Setting properties in response to other properties changing considered harmful. Setting '${e}' from '${this._getProperty(e)}' to '${t}'.`),r}_render(e){throw new Error("_render() not implemented")}_applyRender(e,t){ue(e,t,this.localName)}_didRender(e,t,i){}_requestRender(){this._invalidateProperties()}_invalidateProperties(){this.__isInvalid=!0,super._invalidateProperties()}get renderComplete(){return this.__renderComplete||(this.__renderComplete=new Promise((e=>{this.__resolveRenderComplete=t=>{this.__resolveRenderComplete=this.__renderComplete=null,e(t)}})),!this.__isInvalid&&this.__resolveRenderComplete&&Promise.resolve().then((()=>this.__resolveRenderComplete(!1)))),this.__renderComplete}}
111
+ */const de=(e,...t)=>new N(e,t,"html",pe),pe=(e,t,i)=>{if("attribute"===t.type){if("on-"===t.rawName.substr(0,3)){const r=t.rawName.slice(3);return new ge(e,i,r)}const r=t.name.substr(t.name.length-1);if("$"===r){const r=t.name.slice(0,-1);return new Z(e,i,r,t.strings)}if("?"===r){const r=t.name.slice(0,-1);return new he(e,i,r,t.strings)}return new fe(e,i,t.rawName,t.strings)}return Q(e,t,i)};class he extends Z{setValue(e,t){const i=this.strings;if(2!==i.length||""!==i[0]||""!==i[1])throw new Error("boolean attributes can only contain a single expression");{const i=J(this,e[t]);if(i===G)return;i?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}class fe extends Z{setValue(e,t){const i=this.strings;let r;this._equalToPreviousValues(e,t)||(r=2===i.length&&""===i[0]&&""===i[1]?J(this,e[t]):this._interpolate(e,t),r!==G&&(this.element[this.name]=r),this._previousValues=e)}}class ge{constructor(e,t,i){this.instance=e,this.element=t,this.eventName=i}setValue(e){const t=J(this,e);t!==this._listener&&(null==t?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=t)}handleEvent(e){"function"==typeof this._listener?this._listener.call(this.element,e):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(e)}}class be extends(O(HTMLElement)){constructor(){super(...arguments),this.__renderComplete=null,this.__resolveRenderComplete=null,this.__isInvalid=!1,this.__isChanging=!1}ready(){this._root=this._createRoot(),super.ready(),this._firstRendered()}_firstRendered(){}_createRoot(){return this.attachShadow({mode:"open"})}_shouldPropertiesChange(e,t,i){const r=this._shouldRender(e,t,i);return!r&&this.__resolveRenderComplete&&this.__resolveRenderComplete(!1),r}_shouldRender(e,t,i){return!0}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i);const r=this._render(e);r&&void 0!==this._root&&this._applyRender(r,this._root),this._didRender(e,t,i),this.__resolveRenderComplete&&this.__resolveRenderComplete(!0)}_flushProperties(){this.__isChanging=!0,this.__isInvalid=!1,super._flushProperties(),this.__isChanging=!1}_shouldPropertyChange(e,t,i){const r=super._shouldPropertyChange(e,t,i);return r&&this.__isChanging&&console.trace(`Setting properties in response to other properties changing considered harmful. Setting '${e}' from '${this._getProperty(e)}' to '${t}'.`),r}_render(e){throw new Error("_render() not implemented")}_applyRender(e,t){ue(e,t,this.localName)}_didRender(e,t,i){}_requestRender(){this._invalidateProperties()}_invalidateProperties(){this.__isInvalid=!0,super._invalidateProperties()}get renderComplete(){return this.__renderComplete||(this.__renderComplete=new Promise((e=>{this.__resolveRenderComplete=t=>{this.__resolveRenderComplete=this.__renderComplete=null,e(t)}})),!this.__isInvalid&&this.__resolveRenderComplete&&Promise.resolve().then((()=>this.__resolveRenderComplete(!1)))),this.__renderComplete}}
112
112
  /**
113
113
  @license
114
114
  Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
@@ -117,34 +117,34 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
117
117
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
118
118
  Code distributed by Google as part of the polymer project is also
119
119
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
120
- */const me=e=>t=>class extends t{connectedCallback(){this.__storeUnsubscribe=e.subscribe((()=>this._stateChanged(e.getState()))),this._stateChanged(e.getState()),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){this.__storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}_stateChanged(e){throw new Error("_stateChanged() not implemented")}};function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ye=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`};function ke(e,t,i){if("function"!=typeof e)throw new Error(ve(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ve(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ve(1));return i(ke)(e,t)}let r=e,n=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(c)throw new Error(ve(3));return n}function d(e){if("function"!=typeof e)throw new Error(ve(4));if(c)throw new Error(ve(5));let t=!0;l();const i=s++;return a.set(i,e),function(){if(t){if(c)throw new Error(ve(6));t=!1,l(),a.delete(i),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(ve(7));if(void 0===e.type)throw new Error(ve(8));if("string"!=typeof e.type)throw new Error(ve(17));if(c)throw new Error(ve(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=a).forEach((e=>{e()})),e}p({type:xe.INIT});return{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ve(10));r=e,p({type:xe.REPLACE})},[ye]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ve(11));function i(){const e=t;e.next&&e.next(u())}i();return{unsubscribe:e(i)}},[ye](){return this}}}}}function _e(e,t){return function(...i){return t(e.apply(this,i))}}function Se(e){return function(t){var i=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(i,r,e):t(n)}}}}var Ce=Se();function Pe(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Le(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Ce.withExtraArgument=Se,Pe((function e(t,i,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),Le),Pe((function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}),Le),Pe((function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})}),Le),Pe((function e(t,i,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:i,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),Le);const Ie="AUTO_VERIFY",Te="INITIALIZE",Ee="UPDATE_CERTIFICATE_DEFINITION",Me="RESET_CERTIFICATE_DEFINITION",Ae="UPDATE_CERTIFICATE_URL",De="VALIDATE_URL_INPUT",Ve="CLEAR_VERIFIED_STEPS",Re="STEP_VERIFIED",je="UPDATE_PARENT_STEP_STATUS",Oe="UPDATE_VERIFICATION_STATUS",Ne="UPDATE_FINAL_STEP",ze="SET_ERROR_MESSAGE",$e="SHOW_VERIFICATION_MODAL",Ue="UPDATE_IS_GENERATING_PDF";const Be={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};function Fe(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function He(e){return"string"==typeof e}var qe;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(qe||(qe={}));const Ke="{transaction_id}";var Je;!function(e){e.V1_1="1.1",e.V1_2="1.2",e.V2_0="2.0",e.V3_0_alpha="3.0-alpha",e.V3_0_beta="3.0-beta",e.V3_0="3.0"}(Je||(Je={}));var Ye,Ge=Je;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Ye||(Ye={}));const We="{transaction_id}";var Ze,Xe;!function(e){e.Bitcoin="bitcoin",e.Ethmain="ethmain",e.Ethropst="ethropst",e.Ethrinkeby="ethrinkeby",e.Ethgoerli="ethgoerli",e.Ethsepolia="ethsepolia",e.Mocknet="mocknet",e.Regtest="regtest",e.Testnet="testnet"}(Ze||(Ze={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(Xe||(Xe={}));const Qe={[Ze.Bitcoin]:{code:Ze.Bitcoin,blinkCode:Xe.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${We}`,raw:`https://blockchain.info/rawtx/${We}`}},[Ze.Ethmain]:{code:Ze.Ethmain,blinkCode:Xe.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${We}`,raw:`https://etherscan.io/tx/${We}`}},[Ze.Ethropst]:{code:Ze.Ethropst,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${We}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethrinkeby]:{code:Ze.Ethrinkeby,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${We}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethgoerli]:{code:Ze.Ethgoerli,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${We}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethsepolia]:{code:Ze.Ethsepolia,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${We}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${We}`}},[Ze.Mocknet]:{code:Ze.Mocknet,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[Ze.Regtest]:{code:Ze.Regtest,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[Ze.Testnet]:{code:Ze.Testnet,blinkCode:Xe.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${We}`,raw:`https://testnet.blockchain.info/rawtx/${We}`}}};const et=1,tt=1;var it=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function rt(e,t,i=[]){return it(this,void 0,void 0,(function*(){if((e=Array.from(e)).length<t)throw new Error("Could not retrieve tx data");const r=e.map(((e,t)=>e.then((()=>t)).catch((e=>{throw t}))));return Promise.race(r).then((t=>(e.splice(t,1)[0].then((e=>i.push(e))),i))).catch((r=>(e.splice(r,1),rt(e,t,i))))}))}function nt({explorerAPI:e,transactionIdPlaceholder:t=We,transactionId:i="",chain:r}){const{serviceURL:n}=e;let o;if("string"==typeof n)o=n;else if("object"==typeof n){const e=!!r&&function(e){return e!==Qe.bitcoin.code&&e!==Qe.ethmain.code}(r);o=e?n.test:n.main}else{if("function"!=typeof n)throw new Error(`serviceURL is an unexpected type for explorerAPI ${e.serviceName}`);o=n(r)}return o=o.replace(t,i),o=function(e,t){if(!t.key)return e;if(t.key&&!t.keyPropertyName)throw new Error(`No keyPropertyName defined for explorerAPI ${t.serviceName}`);return function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,t.keyPropertyName,t.key)}(o,e),o}var ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function st(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),i}var ct="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lt=[],ut=[],dt="undefined"!=typeof Uint8Array?Uint8Array:Array,pt=!1;function ht(){pt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)lt[t]=e[t],ut[e.charCodeAt(t)]=t;ut["-".charCodeAt(0)]=62,ut["_".charCodeAt(0)]=63}function ft(e,t,i){for(var r,n,o=[],a=t;a<i;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(lt[(n=r)>>18&63]+lt[n>>12&63]+lt[n>>6&63]+lt[63&n]);return o.join("")}function gt(e){var t;pt||ht();for(var i=e.length,r=i%3,n="",o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(ft(e,s,s+a>c?c:s+a));return 1===r?(t=e[i-1],n+=lt[t>>2],n+=lt[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=lt[t>>10],n+=lt[t>>4&63],n+=lt[t<<2&63],n+="="),o.push(n),o.join("")}function bt(e,t,i,r,n){var o,a,s=8*n-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=i?n-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function mt(e,t,i,r,n,o){var a,s,c,l=8*o-n-1,u=(1<<l)-1,d=u>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,n),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[i+h]=255&s,h+=f,s/=256,n-=8);for(a=a<<n|s,l+=n;l>0;e[i+h]=255&a,h+=f,a/=256,l-=8);e[i+h-f]|=128*g}var vt={}.toString,yt=Array.isArray||function(e){return"[object Array]"==vt.call(e)};_t.TYPED_ARRAY_SUPPORT=void 0===ct.TYPED_ARRAY_SUPPORT||ct.TYPED_ARRAY_SUPPORT;var wt=xt();function xt(){return _t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function kt(e,t){if(xt()<t)throw new RangeError("Invalid typed array length");return _t.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=_t.prototype:(null===e&&(e=new _t(t)),e.length=t),e}function _t(e,t,i){if(!(_t.TYPED_ARRAY_SUPPORT||this instanceof _t))return new _t(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Pt(this,e)}return St(this,e,t,i)}function St(e,t,i,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,r){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r);_t.TYPED_ARRAY_SUPPORT?(e=t).__proto__=_t.prototype:e=Lt(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!_t.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Et(t,i);e=kt(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(Tt(t)){var i=0|It(t.length);return 0===(e=kt(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?kt(e,0):Lt(e,t);if("Buffer"===t.type&&yt(t.data))return Lt(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ct(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Pt(e,t){if(Ct(t),e=kt(e,t<0?0:0|It(t)),!_t.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function Lt(e,t){var i=t.length<0?0:0|It(t.length);e=kt(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function It(e){if(e>=xt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+xt().toString(16)+" bytes");return 0|e}function Tt(e){return!(null==e||!e._isBuffer)}function Et(e,t){if(Tt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ri(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return ni(e).length;default:if(r)return ri(e).length;t=(""+t).toLowerCase(),r=!0}}function Mt(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Kt(this,t,i);case"utf8":case"utf-8":return Bt(this,t,i);case"ascii":return Ht(this,t,i);case"latin1":case"binary":return qt(this,t,i);case"base64":return Ut(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function At(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function Dt(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=_t.from(t,r)),Tt(t))return 0===t.length?-1:Vt(e,t,i,r,n);if("number"==typeof t)return t&=255,_t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):Vt(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function Vt(e,t,i,r,n){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,i/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(o=i;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(i+c>s&&(i=s-c),o=i;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(l(e,o+p)!==l(t,p)){d=!1;break}if(d)return o}return-1}function Rt(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[i+a]=s}return a}function jt(e,t,i,r){return oi(ri(t,e.length-i),e,i,r)}function Ot(e,t,i,r){return oi(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function Nt(e,t,i,r){return Ot(e,t,i,r)}function zt(e,t,i,r){return oi(ni(t),e,i,r)}function $t(e,t,i,r){return oi(function(e,t){for(var i,r,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(i=e.charCodeAt(a))>>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function Ut(e,t,i){return 0===t&&i===e.length?gt(e):gt(e.slice(t,i))}function Bt(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,a,s,c,l=e[n],u=null,d=l>239?4:l>223?3:l>191?2:1;if(n+d<=i)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=d}return function(e){var t=e.length;if(t<=Ft)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=Ft));return i}(r)}_t.poolSize=8192,_t._augment=function(e){return e.__proto__=_t.prototype,e},_t.from=function(e,t,i){return St(null,e,t,i)},_t.TYPED_ARRAY_SUPPORT&&(_t.prototype.__proto__=Uint8Array.prototype,_t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&_t[Symbol.species]),_t.alloc=function(e,t,i){return function(e,t,i,r){return Ct(t),t<=0?kt(e,t):void 0!==i?"string"==typeof r?kt(e,t).fill(i,r):kt(e,t).fill(i):kt(e,t)}(null,e,t,i)},_t.allocUnsafe=function(e){return Pt(null,e)},_t.allocUnsafeSlow=function(e){return Pt(null,e)},_t.isBuffer=ai,_t.compare=function(e,t){if(!Tt(e)||!Tt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,o=Math.min(i,r);n<o;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},_t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_t.concat=function(e,t){if(!yt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return _t.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=_t.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Tt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},_t.byteLength=Et,_t.prototype._isBuffer=!0,_t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)At(this,t,t+1);return this},_t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)At(this,t,t+3),At(this,t+1,t+2);return this},_t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)At(this,t,t+7),At(this,t+1,t+6),At(this,t+2,t+5),At(this,t+3,t+4);return this},_t.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Bt(this,0,e):Mt.apply(this,arguments)},_t.prototype.equals=function(e){if(!Tt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===_t.compare(this,e)},_t.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},_t.prototype.compare=function(e,t,i,r,n){if(!Tt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,n),l=e.slice(t,i),u=0;u<s;++u)if(c[u]!==l[u]){o=c[u],a=l[u];break}return o<a?-1:a<o?1:0},_t.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},_t.prototype.indexOf=function(e,t,i){return Dt(this,e,t,i,!0)},_t.prototype.lastIndexOf=function(e,t,i){return Dt(this,e,t,i,!1)},_t.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Rt(this,e,t,i);case"utf8":case"utf-8":return jt(this,e,t,i);case"ascii":return Ot(this,e,t,i);case"latin1":case"binary":return Nt(this,e,t,i);case"base64":return zt(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},_t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ft=4096;function Ht(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function qt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function Kt(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var n="",o=t;o<i;++o)n+=ii(e[o]);return n}function Jt(e,t,i){for(var r=e.slice(t,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function Yt(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function Gt(e,t,i,r,n,o){if(!Tt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function Wt(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n<o;++n)e[i+n]=(t&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function Zt(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n<o;++n)e[i+n]=t>>>8*(r?n:3-n)&255}function Xt(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Qt(e,t,i,r,n){return n||Xt(e,0,i,4),mt(e,t,i,r,23,4),i+4}function ei(e,t,i,r,n){return n||Xt(e,0,i,8),mt(e,t,i,r,52,8),i+8}_t.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),_t.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=_t.prototype;else{var n=t-e;i=new _t(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},_t.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},_t.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},_t.prototype.readUInt8=function(e,t){return t||Yt(e,1,this.length),this[e]},_t.prototype.readUInt16LE=function(e,t){return t||Yt(e,2,this.length),this[e]|this[e+1]<<8},_t.prototype.readUInt16BE=function(e,t){return t||Yt(e,2,this.length),this[e]<<8|this[e+1]},_t.prototype.readUInt32LE=function(e,t){return t||Yt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_t.prototype.readUInt32BE=function(e,t){return t||Yt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_t.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},_t.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},_t.prototype.readInt8=function(e,t){return t||Yt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_t.prototype.readInt16LE=function(e,t){t||Yt(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},_t.prototype.readInt16BE=function(e,t){t||Yt(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},_t.prototype.readInt32LE=function(e,t){return t||Yt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_t.prototype.readInt32BE=function(e,t){return t||Yt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_t.prototype.readFloatLE=function(e,t){return t||Yt(e,4,this.length),bt(this,e,!0,23,4)},_t.prototype.readFloatBE=function(e,t){return t||Yt(e,4,this.length),bt(this,e,!1,23,4)},_t.prototype.readDoubleLE=function(e,t){return t||Yt(e,8,this.length),bt(this,e,!0,52,8)},_t.prototype.readDoubleBE=function(e,t){return t||Yt(e,8,this.length),bt(this,e,!1,52,8)},_t.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Gt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o<i&&(n*=256);)this[t+o]=e/n&255;return t+i},_t.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Gt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},_t.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,1,255,0),_t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},_t.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wt(this,e,t,!0),t+2},_t.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wt(this,e,t,!1),t+2},_t.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Zt(this,e,t,!0),t+4},_t.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zt(this,e,t,!1),t+4},_t.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Gt(this,e,t,i,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+i},_t.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Gt(this,e,t,i,n-1,-n)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+i},_t.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,1,127,-128),_t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},_t.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wt(this,e,t,!0),t+2},_t.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wt(this,e,t,!1),t+2},_t.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,2147483647,-2147483648),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Zt(this,e,t,!0),t+4},_t.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zt(this,e,t,!1),t+4},_t.prototype.writeFloatLE=function(e,t,i){return Qt(this,e,t,!0,i)},_t.prototype.writeFloatBE=function(e,t,i){return Qt(this,e,t,!1,i)},_t.prototype.writeDoubleLE=function(e,t,i){return ei(this,e,t,!0,i)},_t.prototype.writeDoubleBE=function(e,t,i){return ei(this,e,t,!1,i)},_t.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n,o=r-i;if(this===e&&i<t&&t<r)for(n=o-1;n>=0;--n)e[n+t]=this[n+i];else if(o<1e3||!_t.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},_t.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!_t.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=Tt(e)?e:ri(new _t(e,r).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var ti=/[^+\/0-9A-Za-z-_]/g;function ii(e){return e<16?"0"+e.toString(16):e.toString(16)}function ri(e,t){var i;t=t||1/0;for(var r=e.length,n=null,o=[],a=0;a<r;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function ni(e){return function(e){var t,i,r,n,o,a;pt||ht();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new dt(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0,i=0;t<r;t+=4,i+=3)n=ut[e.charCodeAt(t)]<<18|ut[e.charCodeAt(t+1)]<<12|ut[e.charCodeAt(t+2)]<<6|ut[e.charCodeAt(t+3)],a[c++]=n>>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===o?(n=ut[e.charCodeAt(t)]<<2|ut[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===o&&(n=ut[e.charCodeAt(t)]<<10|ut[e.charCodeAt(t+1)]<<4|ut[e.charCodeAt(t+2)]>>2,a[c++]=n>>8&255,a[c++]=255&n),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ti,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function oi(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function ai(e){return null!=e&&(!!e._isBuffer||si(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&si(e.slice(0,0))}(e))}function si(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ci=Object.freeze({__proto__:null,Buffer:_t,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),_t.alloc(+e)},isBuffer:ai,kMaxLength:wt});function li(){throw new Error("setTimeout has not been defined")}function ui(){throw new Error("clearTimeout has not been defined")}var di=li,pi=ui;function hi(e){if(di===setTimeout)return setTimeout(e,0);if((di===li||!di)&&setTimeout)return di=setTimeout,setTimeout(e,0);try{return di(e,0)}catch(t){try{return di.call(null,e,0)}catch(t){return di.call(this,e,0)}}}"function"==typeof ct.setTimeout&&(di=setTimeout),"function"==typeof ct.clearTimeout&&(pi=clearTimeout);var fi,gi=[],bi=!1,mi=-1;function vi(){bi&&fi&&(bi=!1,fi.length?gi=fi.concat(gi):mi=-1,gi.length&&yi())}function yi(){if(!bi){var e=hi(vi);bi=!0;for(var t=gi.length;t;){for(fi=gi,gi=[];++mi<t;)fi&&fi[mi].run();mi=-1,t=gi.length}fi=null,bi=!1,function(e){if(pi===clearTimeout)return clearTimeout(e);if((pi===ui||!pi)&&clearTimeout)return pi=clearTimeout,clearTimeout(e);try{return pi(e)}catch(t){try{return pi.call(null,e)}catch(t){return pi.call(this,e)}}}(e)}}function wi(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];gi.push(new xi(e,t)),1!==gi.length||bi||hi(yi)}function xi(e,t){this.fun=e,this.array=t}xi.prototype.run=function(){this.fun.apply(null,this.array)};var ki="";function _i(){}var Si=_i,Ci=_i,Pi=_i,Li=_i,Ii=_i,Ti=_i,Ei=_i;var Mi=ct.performance||{},Ai=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()};var Di=new Date;var Vi={nextTick:wi,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Si,addListener:Ci,once:Pi,off:Li,removeListener:Ii,removeAllListeners:Ti,emit:Ei,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ai.call(Mi),i=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(i-=e[0],(r-=e[1])<0&&(i--,r+=1e9)),[i,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Di)/1e3}},Ri={},ji=2147483647,Oi=/[^\x20-\x7E]/,Ni=/[\x2E\u3002\uFF0E\uFF61]/g,zi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$i=Math.floor,Ui=String.fromCharCode;function Bi(e){throw new RangeError(zi[e])}function Fi(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function Hi(e,t,i){var r=0;for(e=i?$i(e/700):e>>1,e+=$i(e/t);e>455;r+=36)e=$i(e/35);return $i(r+36*e/(e+38))}function qi(e){return function(e,t){var i=e.split("@"),r="";i.length>1&&(r=i[0]+"@",e=i[1]);var n=function(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}((e=e.replace(Ni,".")).split("."),t).join(".");return r+n}(e,(function(e){return Oi.test(e)?"xn--"+function(e){var t,i,r,n,o,a,s,c,l,u,d,p,h,f,g,b=[];for(e=function(e){for(var t,i,r=[],n=0,o=e.length;n<o;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<o?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}(e),p=e.length,t=128,i=0,o=72,a=0;a<p;++a)(d=e[a])<128&&b.push(Ui(d));for(r=n=b.length,n&&b.push("-");r<p;){for(s=ji,a=0;a<p;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>$i((ji-i)/(h=r+1))&&Bi("overflow"),i+=(s-t)*h,t=s,a=0;a<p;++a)if((d=e[a])<t&&++i>ji&&Bi("overflow"),d==t){for(c=i,l=36;!(c<(u=l<=o?1:l>=o+26?26:l-o));l+=36)g=c-u,f=36-u,b.push(Ui(Fi(u+g%f,0))),c=$i(g/f);b.push(Ui(Fi(c,0))),o=Hi(i,h,r==n),i=0,++r}++i,++t}return b.join("")}(e):e}))}var Ki="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e},Ji=/%[sdj%]/g;function Yi(e){if(!ur(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(Qi(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(Ji,(function(e){if("%%"===e)return"%";if(i>=n)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}})),a=r[i];i<n;a=r[++i])sr(a)||!fr(a)?o+=" "+a:o+=" "+Qi(a);return o}function Gi(e,t){if(pr(ct.process))return function(){return Gi(e,t).apply(this,arguments)};if(!0===Vi.noDeprecation)return e;var i=!1;return function(){if(!i){if(Vi.throwDeprecation)throw new Error(t);Vi.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var Wi,Zi={};function Xi(e){if(pr(Wi)&&(Wi=Vi.env.NODE_DEBUG||""),e=e.toUpperCase(),!Zi[e])if(new RegExp("\\b"+e+"\\b","i").test(Wi)){Zi[e]=function(){var t=Yi.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else Zi[e]=function(){};return Zi[e]}function Qi(e,t){var i={seen:[],stylize:tr};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),ar(t)?i.showHidden=t:t&&Sr(i,t),pr(i.showHidden)&&(i.showHidden=!1),pr(i.depth)&&(i.depth=2),pr(i.colors)&&(i.colors=!1),pr(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=er),ir(i,e,i.depth)}function er(e,t){var i=Qi.styles[t];return i?"["+Qi.colors[i][0]+"m"+e+"["+Qi.colors[i][1]+"m":e}function tr(e,t){return e}function ir(e,t,i){if(e.customInspect&&t&&mr(t.inspect)&&t.inspect!==Qi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return ur(r)||(r=ir(e,r,i)),r}var n=function(e,t){if(pr(t))return e.stylize("undefined","undefined");if(ur(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(lr(t))return e.stylize(""+t,"number");if(ar(t))return e.stylize(""+t,"boolean");if(sr(t))return e.stylize("null","null")}(e,t);if(n)return n;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),br(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return rr(t);if(0===o.length){if(mr(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(hr(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(gr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(br(t))return rr(t)}var c,l="",u=!1,d=["{","}"];(or(t)&&(u=!0,d=["[","]"]),mr(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return hr(t)&&(l=" "+RegExp.prototype.toString.call(t)),gr(t)&&(l=" "+Date.prototype.toUTCString.call(t)),br(t)&&(l=" "+rr(t)),0!==o.length||u&&0!=t.length?i<0?hr(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(e,t,i,r,n){for(var o=[],a=0,s=t.length;a<s;++a)Cr(t,String(a))?o.push(nr(e,t,i,r,String(a),!0)):o.push("");return n.forEach((function(n){n.match(/^\d+$/)||o.push(nr(e,t,i,r,n,!0))})),o}(e,t,i,a,o):o.map((function(r){return nr(e,t,i,a,r,u)})),e.seen.pop(),function(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(c,l,d)):d[0]+l+d[1]}function rr(e){return"["+Error.prototype.toString.call(e)+"]"}function nr(e,t,i,r,n,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Cr(r,n)||(a="["+n+"]"),s||(e.seen.indexOf(c.value)<0?(s=sr(i)?ir(e,c.value,null):ir(e,c.value,i-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),pr(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function or(e){return Array.isArray(e)}function ar(e){return"boolean"==typeof e}function sr(e){return null===e}function cr(e){return null==e}function lr(e){return"number"==typeof e}function ur(e){return"string"==typeof e}function dr(e){return"symbol"==typeof e}function pr(e){return void 0===e}function hr(e){return fr(e)&&"[object RegExp]"===wr(e)}function fr(e){return"object"==typeof e&&null!==e}function gr(e){return fr(e)&&"[object Date]"===wr(e)}function br(e){return fr(e)&&("[object Error]"===wr(e)||e instanceof Error)}function mr(e){return"function"==typeof e}function vr(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function yr(e){return ai(e)}function wr(e){return Object.prototype.toString.call(e)}function xr(e){return e<10?"0"+e.toString(10):e.toString(10)}Qi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Qi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var kr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _r(){var e,t;console.log("%s - %s",(e=new Date,t=[xr(e.getHours()),xr(e.getMinutes()),xr(e.getSeconds())].join(":"),[e.getDate(),kr[e.getMonth()],t].join(" ")),Yi.apply(null,arguments))}function Sr(e,t){if(!t||!fr(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Cr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Pr={inherits:Ki,_extend:Sr,log:_r,isBuffer:yr,isPrimitive:vr,isFunction:mr,isError:br,isDate:gr,isObject:fr,isRegExp:hr,isUndefined:pr,isSymbol:dr,isString:ur,isNumber:lr,isNullOrUndefined:cr,isNull:sr,isBoolean:ar,isArray:or,inspect:Qi,deprecate:Gi,format:Yi,debuglog:Xi},Lr=Object.freeze({__proto__:null,_extend:Sr,debuglog:Xi,default:Pr,deprecate:Gi,format:Yi,inherits:Ki,inspect:Qi,isArray:or,isBoolean:ar,isBuffer:yr,isDate:gr,isError:br,isFunction:mr,isNull:sr,isNullOrUndefined:cr,isNumber:lr,isObject:fr,isPrimitive:vr,isRegExp:hr,isString:ur,isSymbol:dr,isUndefined:pr,log:_r});function Ir(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Tr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Er(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Mr(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r));return i}var Ar=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t};function Dr(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"!=typeof e||0===e.length)return n;var o=/\+/g,a=(e=e.split(t)).length;a>1e3&&(a=1e3);for(var s=0;s<a;++s){var c,l,u,d,p=e[s].replace(o,"%20"),h=p.indexOf(i);h>=0?(c=p.substr(0,h),l=p.substr(h+1)):(c=p,l=""),u=decodeURIComponent(c),d=decodeURIComponent(l),Ir(n,u)?Tr(n[u])?n[u].push(d):n[u]=[n[u],d]:n[u]=d}return n}var Vr={parse:Gr,resolve:Qr,resolveObject:en,format:Zr,Url:Rr};function Rr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var jr=/^([a-z0-9.+-]+:)/i,Or=/:[0-9]*$/,Nr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,zr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),$r=["'"].concat(zr),Ur=["%","/","?",";","#"].concat($r),Br=["/","?","#"],Fr=255,Hr=/^[+a-z0-9A-Z_-]{0,63}$/,qr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Kr={javascript:!0,"javascript:":!0},Jr={javascript:!0,"javascript:":!0},Yr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Gr(e,t,i){if(e&&fr(e)&&e instanceof Rr)return e;var r=new Rr;return r.parse(e,t,i),r}function Wr(e,t,i,r){if(!ur(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",a=t.split(o);a[0]=a[0].replace(/\\/g,"/");var s=t=a.join(o);if(s=s.trim(),!r&&1===t.split("#").length){var c=Nr.exec(s);if(c)return e.path=s,e.href=s,e.pathname=c[1],c[2]?(e.search=c[2],e.query=i?Dr(e.search.substr(1)):e.search.substr(1)):i&&(e.search="",e.query={}),e}var l,u,d,p,h=jr.exec(s);if(h){var f=(h=h[0]).toLowerCase();e.protocol=f,s=s.substr(h.length)}if(r||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&Jr[h]||(s=s.substr(2),e.slashes=!0)}if(!Jr[h]&&(g||h&&!Yr[h])){var b,m,v=-1;for(l=0;l<Br.length;l++)-1!==(u=s.indexOf(Br[l]))&&(-1===v||u<v)&&(v=u);for(-1!==(m=-1===v?s.lastIndexOf("@"):s.lastIndexOf("@",v))&&(b=s.slice(0,m),s=s.slice(m+1),e.auth=decodeURIComponent(b)),v=-1,l=0;l<Ur.length;l++)-1!==(u=s.indexOf(Ur[l]))&&(-1===v||u<v)&&(v=u);-1===v&&(v=s.length),e.host=s.slice(0,v),s=s.slice(v),tn(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var w=e.hostname.split(/\./);for(l=0,d=w.length;l<d;l++){var x=w[l];if(x&&!x.match(Hr)){for(var k="",_=0,S=x.length;_<S;_++)x.charCodeAt(_)>127?k+="x":k+=x[_];if(!k.match(Hr)){var C=w.slice(0,l),P=w.slice(l+1),L=x.match(qr);L&&(C.push(L[1]),P.unshift(L[2])),P.length&&(s="/"+P.join(".")+s),e.hostname=C.join(".");break}}}}e.hostname.length>Fr?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=qi(e.hostname)),p=e.port?":"+e.port:"";var I=e.hostname||"";e.host=I+p,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!Kr[f])for(l=0,d=$r.length;l<d;l++){var T=$r[l];if(-1!==s.indexOf(T)){var E=encodeURIComponent(T);E===T&&(E=escape(T)),s=s.split(T).join(E)}}var M=s.indexOf("#");-1!==M&&(e.hash=s.substr(M),s=s.slice(0,M));var A=s.indexOf("?");if(-1!==A?(e.search=s.substr(A),e.query=s.substr(A+1),i&&(e.query=Dr(e.query)),s=s.slice(0,A)):i&&(e.search="",e.query={}),s&&(e.pathname=s),Yr[f]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){p=e.pathname||"";var D=e.search||"";e.path=p+D}return e.href=Xr(e),e}function Zr(e){return ur(e)&&(e=Wr({},e)),Xr(e)}function Xr(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i,r,n,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",c=!1,l="";e.host?c=t+e.host:e.hostname&&(c=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(c+=":"+e.port)),e.query&&fr(e.query)&&Object.keys(e.query).length&&(i=e.query,r=r||"&",n=n||"=",null===i&&(i=void 0),l="object"==typeof i?Mr(Ar(i),(function(e){var t=encodeURIComponent(Er(e))+n;return Tr(i[e])?Mr(i[e],(function(e){return t+encodeURIComponent(Er(e))})).join(r):t+encodeURIComponent(Er(i[e]))})).join(r):"");var u=e.search||l&&"?"+l||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||Yr[o])&&!1!==c?(c="//"+(c||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):c||(c=""),s&&"#"!==s.charAt(0)&&(s="#"+s),u&&"?"!==u.charAt(0)&&(u="?"+u),o+c+(a=a.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(u=u.replace("#","%23"))+s}function Qr(e,t){return Gr(e,!1,!0).resolve(t)}function en(e,t){return e?Gr(e,!1,!0).resolveObject(t):t}function tn(e){var t=e.host,i=Or.exec(t);i&&(":"!==(i=i[0])&&(e.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(e.hostname=t)}Rr.prototype.parse=function(e,t,i){return Wr(this,e,t,i)},Rr.prototype.format=function(){return Xr(this)},Rr.prototype.resolve=function(e){return this.resolveObject(Gr(e,!1,!0)).format()},Rr.prototype.resolveObject=function(e){if(ur(e)){var t=new Rr;t.parse(e,!1,!0),e=t}for(var i,r=new Rr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(r[l]=e[l])}return Yr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Yr[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var p=u[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Jr[e.protocol])r.pathname=e.pathname;else{for(i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",f=r.search||"";r.path=h+f}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,b=r.pathname&&"/"===r.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=m||b||r.host&&e.pathname,y=v,w=r.pathname&&r.pathname.split("/")||[],x=r.protocol&&!Yr[r.protocol];if(i=e.pathname&&e.pathname.split("/")||[],x&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),v=v&&(""===i[0]||""===w[0])),m)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=i;else if(i.length)w||(w=[]),w.pop(),w=w.concat(i),r.search=e.search,r.query=e.query;else if(!cr(e.search))return x&&(r.hostname=r.host=w.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,sr(r.pathname)&&sr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],_=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,S=0,C=w.length;C>=0;C--)"."===(k=w[C])?w.splice(C,1):".."===k?(w.splice(C,1),S++):S&&(w.splice(C,1),S--);if(!v&&!y)for(;S--;S)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var P=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(r.hostname=r.host=P?"":w.length?w.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&w.length)&&!P&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),sr(r.pathname)&&sr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Rr.prototype.parseHost=function(){return tn(this)};var rn,nn,on=st(Object.freeze({__proto__:null,Url:Rr,default:Vr,format:Zr,parse:Gr,resolve:Qr,resolveObject:en})),an={},sn=Object.freeze({__proto__:null,default:an}),cn=st(sn),ln=yn(ct.fetch)&&yn(ct.ReadableStream);function un(e){nn||(nn=new ct.XMLHttpRequest).open("GET",ct.location.host?"/":"https://example.com");try{return nn.responseType=e,nn.responseType===e}catch(e){return!1}}var dn,pn=void 0!==ct.ArrayBuffer,hn=pn&&yn(ct.ArrayBuffer.prototype.slice),fn=pn&&un("arraybuffer"),gn=!ln&&hn&&un("ms-stream"),bn=!ln&&pn&&un("moz-chunked-arraybuffer"),mn=yn(nn.overrideMimeType),vn=yn(ct.VBArray);function yn(e){return"function"==typeof e}function wn(){}function xn(){xn.init.call(this)}function kn(e){return void 0===e._maxListeners?xn.defaultMaxListeners:e._maxListeners}function _n(e,t,i,r){var n,o,a,s;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),a=o[t]):(o=e._events=new wn,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),!a.warned&&(n=kn(e))&&n>0&&a.length>n){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=i,++e._eventsCount;return e}function Sn(e,t,i){var r=!1;function n(){e.removeListener(t,n),r||(r=!0,i.apply(e,arguments))}return n.listener=i,n}function Cn(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function Pn(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}nn=null,wn.prototype=Object.create(null),xn.EventEmitter=xn,xn.usingDomains=!1,xn.prototype.domain=void 0,xn.prototype._events=void 0,xn.prototype._maxListeners=void 0,xn.defaultMaxListeners=10,xn.init=function(){this.domain=null,xn.usingDomains&&(!dn.active||this instanceof dn.Domain||(this.domain=dn.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new wn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},xn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},xn.prototype.getMaxListeners=function(){return kn(this)},xn.prototype.emit=function(e){var t,i,r,n,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(i=a[e]))return!1;var u="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=Pn(e,r),o=0;o<r;++o)n[o].call(i)}(i,u,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Pn(e,n),a=0;a<n;++a)o[a].call(i,r)}(i,u,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var o=e.length,a=Pn(e,o),s=0;s<o;++s)a[s].call(i,r,n)}(i,u,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,o){if(t)e.call(i,r,n,o);else for(var a=e.length,s=Pn(e,a),c=0;c<a;++c)s[c].call(i,r,n,o)}(i,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),o=1;o<r;o++)n[o-1]=arguments[o];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,o=Pn(e,n),a=0;a<n;++a)o[a].apply(i,r)}(i,u,this,n)}return!0},xn.prototype.addListener=function(e,t){return _n(this,e,t,!1)},xn.prototype.on=xn.prototype.addListener,xn.prototype.prependListener=function(e,t){return _n(this,e,t,!0)},xn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Sn(this,e,t)),this},xn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Sn(this,e,t)),this},xn.prototype.removeListener=function(e,t){var i,r,n,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener&&i.listener===t)0==--this._eventsCount?this._events=new wn:(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,o=i.length;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){a=i[o].listener,n=o;break}if(n<0)return this;if(1===i.length){if(i[0]=void 0,0==--this._eventsCount)return this._events=new wn,this;delete r[e]}else!function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n);r.removeListener&&this.emit("removeListener",e,a||t)}return this},xn.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new wn,this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=new wn:delete i[e]),this;if(0===arguments.length){for(var r,n=Object.keys(i),o=0;o<n.length;++o)"removeListener"!==(r=n[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new wn,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},xn.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},xn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Cn.call(e,t)},xn.prototype.listenerCount=Cn,xn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Ln=Object.freeze({__proto__:null,EventEmitter:xn,default:xn});function In(){this.head=null,this.tail=null,this.length=0}In.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},In.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},In.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},In.prototype.clear=function(){this.head=this.tail=null,this.length=0},In.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},In.prototype.concat=function(e){if(0===this.length)return _t.alloc(0);if(1===this.length)return this.head.data;for(var t=_t.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t};var Tn=_t.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function En(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Tn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=An;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Dn;break;default:return void(this.write=Mn)}this.charBuffer=new _t(6),this.charReceived=0,this.charLength=0}function Mn(e){return e.toString(this.encoding)}function An(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Dn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}En.prototype.write=function(e){for(var t="";this.charLength;){var i=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";if(e=e.slice(i,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var n;r=(t+=e.toString(this.encoding,0,r)).length-1;if((n=t.charCodeAt(r))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},En.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var i=e[e.length-t];if(1==t&&i>>5==6){this.charLength=2;break}if(t<=2&&i>>4==14){this.charLength=3;break}if(t<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=t},En.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var i=this.charReceived,r=this.charBuffer,n=this.encoding;t+=r.slice(0,i).toString(n)}return t};var Vn=Object.freeze({__proto__:null,StringDecoder:En});On.ReadableState=jn;var Rn=Xi("stream");function jn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof po&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new In,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new En(e.encoding),this.encoding=e.encoding)}function On(e){if(!(this instanceof On))return new On(e);this._readableState=new jn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),xn.call(this)}function Nn(e,t,i,r,n){var o=function(e,t){var i=null;ai(t)||"string"==typeof t||null==t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(t,i);if(o)e.emit("error",o);else if(null===i)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,Un(e)}(e,t);else if(t.objectMode||i&&i.length>0)if(t.ended&&!n){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&n){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||n||r||(i=t.decoder.write(i),c=!t.objectMode&&0===i.length),n||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&Un(e))),function(e,t){t.readingMore||(t.readingMore=!0,wi(Fn,e,t))}(e,t)}else n||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Ki(On,xn),On.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=_t.from(e,t),t=""),Nn(this,i,e,t,!1)},On.prototype.unshift=function(e){return Nn(this,this._readableState,e,"",!0)},On.prototype.isPaused=function(){return!1===this._readableState.flowing},On.prototype.setEncoding=function(e){return this._readableState.decoder=new En(e),this._readableState.encoding=e,this};var zn=8388608;function $n(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=zn?e=zn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Un(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Rn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?wi(Bn,e):Bn(e))}function Bn(e){Rn("emit readable"),e.emit("readable"),Kn(e)}function Fn(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Rn("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function Hn(e){Rn("readable nexttick read 0"),e.read(0)}function qn(e,t){t.reading||(Rn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Kn(e),t.flowing&&!t.reading&&e.read(0)}function Kn(e){var t=e._readableState;for(Rn("flow",t.flowing);t.flowing&&null!==e.read(););}function Jn(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;e-=n.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=_t.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,a),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function Yn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,wi(Gn,t,e))}function Gn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Wn(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function Zn(){}function Xn(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function Qn(e,t){Object.defineProperty(this,"buffer",{get:Gi((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof po&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,n=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,n){--t.pendingcb,i?wi(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=no(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||ro(e,i),r?wi(io,e,i,o,n):io(e,i,o,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new so(this)}function eo(e){if(!(this instanceof eo||this instanceof po))return new eo(e);this._writableState=new Qn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),xn.call(this)}function to(e,t,i,r,n,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function io(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),ao(e,t)}function ro(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=i;for(var a=0;i;)n[a]=i,i=i.next,a+=1;to(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new so(t)}else{for(;i;){var s=i.chunk,c=i.encoding,l=i.callback;if(to(e,t,!1,t.objectMode?1:s.length,s,c,l),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function no(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function oo(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function ao(e,t){var i=no(t);return i&&(0===t.pendingcb?(oo(e,t),t.finished=!0,e.emit("finish")):oo(e,t)),i}function so(e){var t=this;this.next=null,this.entry=null,this.finish=function(i){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(i),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}On.prototype.read=function(e){Rn("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Rn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Yn(this):Un(this),null;if(0===(e=$n(e,t))&&t.ended)return 0===t.length&&Yn(this),null;var r,n=t.needReadable;return Rn("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&Rn("length less than watermark",n=!0),t.ended||t.reading?Rn("reading or ended",n=!1):n&&(Rn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=$n(i,t))),null===(r=e>0?Jn(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&Yn(this)),null!==r&&this.emit("data",r),r},On.prototype._read=function(e){this.emit("error",new Error("not implemented"))},On.prototype.pipe=function(e,t){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Rn("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?a:l;function o(e){Rn("onunpipe"),e===i&&l()}function a(){Rn("onend"),e.end()}r.endEmitted?wi(n):i.once("end",n),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Rn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Kn(e))}}(i);e.on("drain",s);var c=!1;function l(){Rn("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",s),e.removeListener("error",p),e.removeListener("unpipe",o),i.removeListener("end",a),i.removeListener("end",l),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){Rn("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Wn(r.pipes,e))&&!c&&(Rn("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,u=!0),i.pause())}function p(t){var i;Rn("onerror",t),g(),e.removeListener("error",p),0===(i="error",e.listeners(i).length)&&e.emit("error",t)}function h(){e.removeListener("finish",f),g()}function f(){Rn("onfinish"),e.removeListener("close",h),g()}function g(){Rn("unpipe"),i.unpipe(e)}return i.on("data",d),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",p),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(Rn("pipe resume"),i.resume()),e},On.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<r;n++)i[n].emit("unpipe",this);return this}var o=Wn(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},On.prototype.on=function(e,t){var i=xn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Un(this):wi(Hn,this))}return i},On.prototype.addListener=On.prototype.on,On.prototype.resume=function(){var e=this._readableState;return e.flowing||(Rn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,wi(qn,e,t))}(this,e)),this},On.prototype.pause=function(){return Rn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Rn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},On.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",(function(){if(Rn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(n){(Rn("wrapped data"),t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n)||(t.objectMode||n&&n.length)&&(r.push(n)||(i=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));return function(e,t){for(var i=0,r=e.length;i<r;i++)t(e[i],i)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){Rn("wrapped _read",t),i&&(i=!1,e.resume())},r},On._fromList=Jn,eo.WritableState=Qn,Ki(eo,xn),Qn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},eo.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},eo.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),_t.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=Zn),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),wi(t,i)}(this,i):function(e,t,i,r){var n=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):_t.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),wi(r,o),n=!1),n}(this,r,e,i)&&(r.pendingcb++,n=function(e,t,i,r,n){i=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=_t.from(t,i));return t}(t,i,r),_t.isBuffer(i)&&(r="buffer");var o=t.objectMode?1:i.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new Xn(i,r,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else to(e,t,!1,o,i,r,n);return a}(this,r,e,t,i)),n},eo.prototype.cork=function(){this._writableState.corked++},eo.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||ro(this,e))},eo.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},eo.prototype._write=function(e,t,i){i(new Error("not implemented"))},eo.prototype._writev=null,eo.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,ao(e,t),i&&(t.finished?wi(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Ki(po,On);for(var co=Object.keys(eo.prototype),lo=0;lo<co.length;lo++){var uo=co[lo];po.prototype[uo]||(po.prototype[uo]=eo.prototype[uo])}function po(e){if(!(this instanceof po))return new po(e);On.call(this,e),eo.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",ho)}function ho(){this.allowHalfOpen||this._writableState.ended||wi(fo,this)}function fo(e){e.end()}function go(e){this.afterTransform=function(t,i){return function(e,t,i){var r=e._transformState;r.transforming=!1;var n=r.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=i&&e.push(i);n(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,i)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function bo(e){if(!(this instanceof bo))return new bo(e);po.call(this,e),this._transformState=new go(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){mo(t,e)})):mo(t)}))}function mo(e,t){if(t)return e.emit("error",t);var i=e._writableState,r=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function vo(e){if(!(this instanceof vo))return new vo(e);bo.call(this,e)}function yo(){xn.call(this)}Ki(bo,po),bo.prototype.push=function(e,t){return this._transformState.needTransform=!1,po.prototype.push.call(this,e,t)},bo.prototype._transform=function(e,t,i){throw new Error("Not implemented")},bo.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},bo.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ki(vo,bo),vo.prototype._transform=function(e,t,i){i(null,e)},Ki(yo,xn),yo.Readable=On,yo.Writable=eo,yo.Duplex=po,yo.Transform=bo,yo.PassThrough=vo,yo.Stream=yo,yo.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===xn.listenerCount(this,"error"))throw e}function l(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",l),i.removeListener("close",l),e.removeListener("close",l)}return i.on("error",c),e.on("error",c),i.on("end",l),i.on("close",l),e.on("close",l),e.emit("pipe",i),e};var wo=Object.freeze({__proto__:null,Duplex:po,PassThrough:vo,Readable:On,Stream:yo,Transform:bo,Writable:eo,default:yo}),xo=3,ko=4;function _o(e,t,i){var r,n=this;if(On.call(n),n._mode=i,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",(function(){wi((function(){n.emit("close")}))})),"fetch"===i){n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText;for(var o,a,s=t.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)n.headers[o[0].toLowerCase()]=o[1],n.rawHeaders.push(o[0],o[1]);var c=t.body.getReader();(r=function(){c.read().then((function(e){n._destroyed||(e.done?n.push(null):(n.push(new _t(e.value)),r()))}))})()}else{if(n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var i=t[1].toLowerCase();"set-cookie"===i?(void 0===n.headers[i]&&(n.headers[i]=[]),n.headers[i].push(t[2])):void 0!==n.headers[i]?n.headers[i]+=", "+t[2]:n.headers[i]=t[2],n.rawHeaders.push(t[1],t[2])}})),n._charset="x-user-defined",!mn){var l=n.rawHeaders["mime-type"];if(l){var u=l.match(/;\s*charset=([^;])(;|$)/);u&&(n._charset=u[1].toLowerCase())}n._charset||(n._charset="utf-8")}}}function So(e){var t,i=this;eo.call(i),i._opts=e,i._body=[],i._headers={},e.auth&&i.setHeader("Authorization","Basic "+new _t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){i.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!mn;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}i._mode=function(e,t){return ln&&t?"fetch":bn?"moz-chunked-arraybuffer":gn?"ms-stream":fn&&e?"arraybuffer":vn&&e?"text:vbarray":"text"}(t,r),i.on("finish",(function(){i._onFinish()}))}Ki(_o,On),_o.prototype._read=function(){},_o.prototype._onXHRProgress=function(){var e=this,t=e._xhr,i=null;switch(e._mode){case"text:vbarray":if(t.readyState!==ko)break;try{i=new ct.VBArray(t.responseBody).toArray()}catch(e){}if(null!==i){e.push(new _t(i));break}case"text":try{i=t.responseText}catch(t){e._mode="text:vbarray";break}if(i.length>e._pos){var r=i.substr(e._pos);if("x-user-defined"===e._charset){for(var n=new _t(r.length),o=0;o<r.length;o++)n[o]=255&r.charCodeAt(o);e.push(n)}else e.push(r,e._charset);e._pos=i.length}break;case"arraybuffer":if(t.readyState!==ko||!t.response)break;i=t.response,e.push(new _t(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=t.response,t.readyState!==xo||!i)break;e.push(new _t(new Uint8Array(i)));break;case"ms-stream":if(i=t.response,t.readyState!==xo)break;var a=new ct.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new _t(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(i)}e._xhr.readyState===ko&&"ms-stream"!==e._mode&&e.push(null)},Ki(So,eo);var Co=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];function Po(e,t){"string"==typeof e&&(e=Gr(e));var i=-1===ct.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||i,n=e.hostname||e.host,o=e.port,a=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new So(e);return t&&s.on("response",t),s}function Lo(e,t){var i=Po(e,t);return i.end(),i}function Io(){}So.prototype.setHeader=function(e,t){var i=e.toLowerCase();-1===Co.indexOf(i)&&(this._headers[i]={name:e,value:t})},So.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},So.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},So.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,i=e._opts,r=e._headers;if("POST"!==i.method&&"PUT"!==i.method&&"PATCH"!==i.method||(t=function(){if(void 0!==rn)return rn;try{new ct.Blob([new ArrayBuffer(1)]),rn=!0}catch(e){rn=!1}return rn}()?new ct.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ai(e)){for(var t=new Uint8Array(e.length),i=e.length,r=0;r<i;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):_t.concat(e._body).toString()),"fetch"===e._mode){var n=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));ct.fetch(e._opts.url,{method:e._opts.method,headers:n,body:t,mode:"cors",credentials:i.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new ct.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void wi((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!i.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case xo:case ko:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void wi((function(){e.emit("error",t)}))}}}},So.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},So.prototype._connect=function(){var e=this;e._destroyed||(e._response=new _o(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},So.prototype._write=function(e,t,i){this._body.push(e),i()},So.prototype.abort=So.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},So.prototype.end=function(e,t,i){"function"==typeof e&&(i=e,e=void 0),eo.prototype.end.call(this,e,t,i)},So.prototype.flushHeaders=function(){},So.prototype.setTimeout=function(){},So.prototype.setNoDelay=function(){},So.prototype.setSocketKeepAlive=function(){},Io.defaultMaxSockets=4;var To,Eo=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],Mo={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Ao={request:Po,get:Lo,Agent:Io,METHODS:Eo,STATUS_CODES:Mo},Do=st(Object.freeze({__proto__:null,Agent:Io,METHODS:Eo,STATUS_CODES:Mo,default:Ao,get:Lo,request:Po}));var Vo=function(){if(To)return Ri;To=1;var e=on,t=cn.spawn,i=cn;return Ri.XMLHttpRequest=function(){var r,n,o=this,a=Do,s=Do,c={},l=!1,u={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},d={},p={},h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],f=["TRACE","TRACK","CONNECT"],g=!1,b=!1,m={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,i,r,n){if(this.abort(),b=!1,!function(e){return e&&-1===f.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");c={method:e,url:t.toString(),async:"boolean"!=typeof i||i,user:r||null,password:n||null},v(this.OPENED)},this.setDisableHeaderCheck=function(e){l=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(e){return l||e&&-1===h.indexOf(e.toLowerCase())}(e)){if(g)throw new Error("INVALID_STATE_ERR: send flag is true");e=p[e.toLowerCase()]||e,p[e.toLowerCase()]=e,d[e]=d[e]?d[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&n&&n.headers&&n.headers[e.toLowerCase()]&&!b?n.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||b)return"";var e="";for(var t in n.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+n.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&p[e.toLowerCase()]?d[p[e.toLowerCase()]]:""},this.send=function(l){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(g)throw new Error("INVALID_STATE_ERR: send has already been called");var h,f=!1,m=!1,y=e.parse(c.url);switch(y.protocol){case"https:":f=!0;case"http:":h=y.hostname;break;case"file:":m=!0;break;case void 0:case null:case"":h="localhost";break;default:throw new Error("Protocol not supported.")}if(m){if("GET"!==c.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(c.async)i.readFile(y.pathname,"utf8",(function(e,t){e?o.handleError(e):(o.status=200,o.responseText=t,v(o.DONE))}));else try{this.responseText=i.readFileSync(y.pathname,"utf8"),this.status=200,v(o.DONE)}catch(e){this.handleError(e)}}else{var w=y.port||(f?443:80),x=y.pathname+(y.search?y.search:"");for(var k in u)p[k.toLowerCase()]||(d[k]=u[k]);if(d.Host=h,f&&443===w||80===w||(d.Host+=":"+y.port),c.user){void 0===c.password&&(c.password="");var _=new _t(c.user+":"+c.password);d.Authorization="Basic "+_.toString("base64")}"GET"===c.method||"HEAD"===c.method?l=null:l?(d["Content-Length"]=ai(l)?l.length:_t.byteLength(l),d["Content-Type"]||(d["Content-Type"]="text/plain;charset=UTF-8")):"POST"===c.method&&(d["Content-Length"]=0);var S={host:h,port:w,path:x,method:c.method,headers:d,agent:!1,withCredentials:o.withCredentials};if(b=!1,c.async){var C=f?s.request:a.request;g=!0,o.dispatchEvent("readystatechange");var P=function(e){o.handleError(e)};r=C(S,(function t(i){if(301!==(n=i).statusCode&&302!==n.statusCode&&303!==n.statusCode&&307!==n.statusCode)n.setEncoding("utf8"),v(o.HEADERS_RECEIVED),o.status=n.statusCode,n.on("data",(function(e){e&&(o.responseText+=e),g&&v(o.LOADING)})),n.on("end",(function(){g&&(v(o.DONE),g=!1)})),n.on("error",(function(e){o.handleError(e)}));else{c.url=n.headers.location;var a=e.parse(c.url);h=a.hostname;var s={hostname:a.hostname,port:a.port,path:a.path,method:303===n.statusCode?"GET":c.method,headers:d,withCredentials:o.withCredentials};(r=C(s,t).on("error",P)).end()}})).on("error",P),l&&r.write(l),r.end(),o.dispatchEvent("loadstart")}else{var L=".node-xmlhttprequest-content-"+Vi.pid,I=".node-xmlhttprequest-sync-"+Vi.pid;i.writeFileSync(I,"","utf8");for(var T="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(f?"s":"")+".request;var options = "+JSON.stringify(S)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+L+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+I+"');});response.on('error', function(error) {fs.writeFileSync('"+L+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});}).on('error', function(error) {fs.writeFileSync('"+L+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});"+(l?"req.write('"+JSON.stringify(l).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",E=t(Vi.argv[0],["-e",T]);i.existsSync(I););var M=JSON.parse(i.readFileSync(L,"utf8"));E.stdin.end(),i.unlinkSync(L),M.err?o.handleError(M.err):(n=M.data,o.status=M.data.statusCode,o.responseText=M.data.text,v(o.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,b=!0,v(this.DONE),this.dispatchEvent("error")},this.abort=function(){r&&(r.abort(),r=null),d=u,this.status=0,this.responseText="",this.responseXML="",b=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!g||this.readyState===this.DONE||(g=!1,v(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in m||(m[e]=[]),m[e].push(t)},this.removeEventListener=function(e,t){e in m&&(m[e]=m[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof o["on"+e]&&o["on"+e](),e in m)for(var t=0,i=m[e].length;t<i;t++)m[e][t].call(o)};var v=function(e){e!=o.LOADING&&o.readyState===e||(o.readyState=e,(c.async||o.readyState<o.OPENED||o.readyState===o.DONE)&&o.dispatchEvent("readystatechange"),o.readyState!==o.DONE||b||(o.dispatchEvent("load"),o.dispatchEvent("loadend")))}},Ri}(),Ro=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function jo(e){return Ro(this,void 0,void 0,(function*(){return yield new Promise(((t,i)=>{var r;let{url:n}=e;n||i(new Error("URL is missing")),"http://"!==n.substr(0,7)||e.forceHttp||(console.warn(`Upgrading requested url ${n} to https protocol.`),n=n.replace("http://","https://"));const o=new("undefined"==typeof XMLHttpRequest?Vo.XMLHttpRequest:XMLHttpRequest);e["bearer-token"]&&o.setRequestHeader("Authorization",`Bearer ${e["bearer-token"]}`),o.onload=()=>{if(o.status>=200&&o.status<300)t(o.responseText);else{console.log(o.responseText);const e=`Error fetching url:${n}; status code:${o.status}`;i(new Error(e))}},o.ontimeout=e=>{console.log("ontimeout",e)},o.onreadystatechange=()=>{404===o.status&&i(new Error(`Error fetching url:${n}; status code:${o.status}`))},o.onerror=()=>{console.error(`Request failed with error ${o.responseText}`),i(new Error(o.responseText))},o.open(null!==(r=e.method)&&void 0!==r?r:"GET",n),e.body?o.send(JSON.stringify(e.body)):o.send()}))}))}function Oo(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function No(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(Oo(e,r))return e.slice(r.length)}return e}var zo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function $o(e){const t={[Ze.Ethropst]:"ropsten",[Ze.Ethrinkeby]:"rinkeby",[Ze.Ethgoerli]:"goerli",[Ze.Ethsepolia]:"sepolia"};if(!t[e])return"https://api.etherscan.io/api?module=proxy";return`https://api-${t[e]}.etherscan.io/api?module=proxy`}const Uo={serviceURL:function(e){return`${$o(e)}&action=eth_getTransactionByHash&txhash=${We}`},serviceName:Ye.etherscan,parsingFunction:function({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){return zo(this,void 0,void 0,(function*(){const n=$o(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${We}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${We}`}},a={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const s=yield function(e,t){return zo(this,void 0,void 0,(function*(){const n=e.result.blockNumber,s=nt({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield jo({url:s}),o=JSON.parse(e).result;return yield function(e,t){return zo(this,void 0,void 0,(function*(){const n=nt({explorerAPI:Object.assign(Object.assign({},a),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield jo({url:n})}catch(e){throw new Error("Unable to get remote hash")}const s=JSON.parse(o).result;if(s-t<et)throw new Error("Not enough");return s}))}(t,n),o}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t);return function(e,t){const i=e.result,r=new Date(1e3*parseInt(t.timestamp,16)),n=i.from;return{remoteHash:No(i.input,Qe.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,s)}))},priority:-1};function Bo(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t.getTime()}(e);return i||function(e){var t;let i,r;const n=null!==(t=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e))&&void 0!==t?t:[];return n[1]?(i=n[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),i[1]-=1,i=new Date(Date.UTC.apply(Date,i)),i.getDate()?(n[5]&&(r=parseInt(n[5],10)/100*60,n[6]&&(r+=parseInt(n[6],10)),"+"===n[4]&&(r*=-1),r&&i.setUTCMinutes(i.getUTCMinutes()+r)),i):null):null}(e)}function Fo(e){return""===e?"":Bo(`${e}`)}function Ho(e){return new Date(1e3*e)}const qo={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${We}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${We}?limit=500`},serviceName:Ye.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Not enough");const t=Fo(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=No(r.script,Qe.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!Oo(e,r))return`${r}${e}`}return e}(n,Qe.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};const Ko={serviceURL:{main:`https://blockstream.info/api/tx/${We}`,test:`https://blockstream.info/testnet/api/tx/${We}`},serviceName:Ye.blockstream,parsingFunction:function({jsonResponse:e}){if(!e.status.confirmed)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockstream API");const t=Ho(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:No(r.scriptpubkey,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.scriptpubkey_address)).map((e=>e.scriptpubkey_address))}},priority:-1};const Jo={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${We}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${We}?limit=500`},serviceName:Ye.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=Fo(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:No(r.script,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};var Yo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Go(e){return e.map((e=>({getTxData:(t,i)=>Yo(this,void 0,void 0,(function*(){return yield function(e,t,i){return Yo(this,void 0,void 0,(function*(){const r=nt({explorerAPI:e,transactionId:t,chain:i});try{const t=yield jo({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t,i)})),priority:e.priority})))}const Wo=[Jo,Ko],Zo=[Uo,qo];var Xo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Qo({serviceUrl:e,transactionId:t}){return Xo(this,void 0,void 0,(function*(){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield jo({url:e,body:i,method:"POST"}),n=JSON.parse(r),o={method:"eth_getBlockByNumber",jsonrpc:"2.0",id:"blockbynumber",params:[n.result.blockNumber,!0]},a=yield jo({url:e,body:o,method:"POST"}),s=JSON.parse(a),c=n.result,l=s.result,u=new Date(1e3*parseInt(l.timestamp,16)),d=c.from;return{remoteHash:No(c.input,["0x"]),issuingAddress:d,time:u,revokedAddresses:[]}}))}var ea=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ta({serviceUrl:e,transactionId:t}){return ea(this,void 0,void 0,(function*(){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield jo({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:No(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:Ho(n.blocktime),revokedAddresses:n.vout.filter((e=>!!e.scriptPubKey.addresses)).map((e=>e.scriptPubKey.addresses)).flat()}}))}var ia=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ra=[];function na(e=[],t=[],i=!1){const r=e.map((e=>e.serviceName)).filter((e=>!!e)).filter((e=>!!Ye[e]));return r.length?t.reduce(((t,n)=>{if(r.includes(n.serviceName)){const i=Object.assign({},n),r=e.find((e=>e.serviceName===n.serviceName));if(function(e){if(e.key&&!e.keyPropertyName)throw new Error(`Property keyPropertyName is not set for ${e.serviceName}. Cannot pass the key property to the service.`);return!0}(r)){const n=Object.assign(i,r);t.push(n);const o=e.findIndex((e=>e.serviceName===n.serviceName));ra.includes(o)||ra.push(o)}}else t.push(n);return i&&function(e,t){t.forEach((t=>e.splice(t,1)))}(e,ra),t}),[]):t}function oa(e){return e.map((e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?ta:Qo),e))).map((e=>({getTxData:t=>ia(this,void 0,void 0,(function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))})),priority:e.priority})))}function aa(e){const{bitcoin:t,ethereum:i}={bitcoin:Go(na(r=e,Wo)),ethereum:Go(na(r,Zo))};var r;const{custom:n}=function(e){return{custom:oa(e)}}(e.filter((e=>"rpc"===e.apiType)));return{bitcoin:t,ethereum:i,custom:[...n,...Go(e.filter((e=>"rpc"!==e.apiType)))]}}var sa,ca=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function la(e,t){var i;switch(e){case Qe[Ze.Bitcoin].code:case Qe[Ze.Regtest].code:case Qe[Ze.Testnet].code:case Qe[Ze.Mocknet].code:return t.bitcoin;case Qe[Ze.Ethmain].code:case Qe[Ze.Ethropst].code:case Qe[Ze.Ethrinkeby].code:case Qe[Ze.Ethgoerli].code:case Qe[Ze.Ethsepolia].code:return t.ethereum;default:if(!(null===(i=t.custom)||void 0===i?void 0:i.length))throw new Error("Chain is not natively supported. Use custom explorers to retrieve tx data.");return t.custom}}function ua(e){return ca(this,void 0,void 0,(function*(){let t;try{t=yield rt(e,tt)}catch(e){throw new Error(`Transaction lookup error: ${e.message}`)}if(!t||0===t.length)throw new Error("Could not confirm transaction data.");const i=t[0];for(let e=1;e<t.length;e++){const r=t[e];if(i.issuingAddress!==r.issuingAddress)throw new Error("Issuing addresses do not match consistently");if(i.remoteHash!==r.remoteHash)throw new Error("Remote hashes do not match consistently")}return i}))}function da(e,t,i,r){return ca(this,void 0,void 0,(function*(){try{const n=function(e,t,i){if(tt>e.length)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");const r=[],n=e.length;for(let o=0;o<n;o++)r.push(e[o].getTxData(t,i));return r}(e[t],i,r);return yield ua(n)}catch(n){if(t<e.length-1)return t++,yield da(e,t,i,r);throw n}}))}function pa({transactionId:e,chain:t,explorerAPIs:i=[]}){return ca(this,void 0,void 0,(function*(){const r=aa(i),n=function({defaultAPIs:e,customAPIs:t}){const i=[e];if(null==t?void 0:t.length){const e=t[0].priority;i.splice(e,0,t)}const r=e.concat(t).length;if(tt>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:la(t,r),customAPIs:r.custom});return yield da(n,0,e,t)}))}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(sa||(sa={}));var ha="ecdsa-koblitz-pubkey:1",fa="https://openbadgespec.org/v2/context.json",ga="https://www.w3.org/2018/credentials/v1",ba="https://www.w3.org/ns/credentials/v2",ma="https://w3id.org/blockcerts/schema/2.0/context.json",va="https://w3id.org/blockcerts/v2",ya="https://www.blockcerts.org/schema/2.0/context.json",wa="https://w3id.org/blockcerts/schema/2.1/context.json",xa="https://w3id.org/blockcerts/v2.1",ka="https://www.blockcerts.org/schema/2.1/context.json",_a="https://w3id.org/blockcerts/schema/3.0/context.json",Sa="https://w3id.org/blockcerts/v3",Ca="https://www.blockcerts.org/schema/3.0/context.json",Pa="https://w3id.org/blockcerts/schema/3.1/context.json",La="https://w3id.org/blockcerts/v3.1",Ia="https://www.blockcerts.org/schema/3.1/context.json",Ta="https://w3id.org/blockcerts/schema/3.2/context.json",Ea="https://w3id.org/blockcerts/v3.2",Ma="https://www.blockcerts.org/schema/3.2/context.json",Aa="https://w3id.org/security/suites/merkle-2019/v1",Da="https://w3id.org/security/suites/chained-2021/v1",Va="https://w3id.org/vc/status-list/2021/v1",Ra="https://w3id.org/security/data-integrity/v2",ja={"@context":{id:"@id",type:"@type",extensions:"https://w3id.org/openbadges/extensions#",obi:"https://w3id.org/openbadges#",validation:"obi:validation",cred:"https://w3id.org/credentials#",dc:"http://purl.org/dc/terms/",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",AlignmentObject:"schema:AlignmentObject",CryptographicKey:"sec:Key",Endorsement:"cred:Credential",Assertion:"obi:Assertion",BadgeClass:"obi:BadgeClass",Criteria:"obi:Criteria",Evidence:"obi:Evidence",Extension:"obi:Extension",FrameValidation:"obi:FrameValidation",IdentityObject:"obi:IdentityObject",Image:"obi:Image",HostedBadge:"obi:HostedBadge",hosted:"obi:HostedBadge",Issuer:"obi:Issuer",Profile:"obi:Profile",RevocationList:"obi:RevocationList",SignedBadge:"obi:SignedBadge",signed:"obi:SignedBadge",TypeValidation:"obi:TypeValidation",VerificationObject:"obi:VerificationObject",author:{"@id":"schema:author","@type":"@id"},caption:{"@id":"schema:caption"},claim:{"@id":"cred:claim","@type":"@id"},created:{"@id":"dc:created","@type":"xsd:dateTime"},creator:{"@id":"dc:creator","@type":"@id"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},endorsement:{"@id":"cred:credential","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},genre:{"@id":"schema:genre"},image:{"@id":"schema:image","@type":"@id"},name:{"@id":"schema:name"},owner:{"@id":"sec:owner","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},publicKeyPem:{"@id":"sec:publicKeyPem"},related:{"@id":"dc:relation","@type":"@id"},startsWith:{"@id":"http://purl.org/dqm-vocabulary/v1/dqm#startsWith"},tags:{"@id":"schema:keywords"},targetDescription:{"@id":"schema:targetDescription"},targetFramework:{"@id":"schema:targetFramework"},targetName:{"@id":"schema:targetName"},targetUrl:{"@id":"schema:targetUrl"},telephone:{"@id":"schema:telephone"},url:{"@id":"schema:url","@type":"@id"},version:{"@id":"schema:version"},alignment:{"@id":"obi:alignment","@type":"@id"},allowedOrigins:{"@id":"obi:allowedOrigins"},audience:{"@id":"obi:audience"},badge:{"@id":"obi:badge","@type":"@id"},criteria:{"@id":"obi:criteria","@type":"@id"},endorsementComment:{"@id":"obi:endorsementComment"},evidence:{"@id":"obi:evidence","@type":"@id"},hashed:{"@id":"obi:hashed","@type":"xsd:boolean"},identity:{"@id":"obi:identityHash"},issuedOn:{"@id":"obi:issueDate","@type":"xsd:dateTime"},issuer:{"@id":"obi:issuer","@type":"@id"},narrative:{"@id":"obi:narrative"},recipient:{"@id":"obi:recipient","@type":"@id"},revocationList:{"@id":"obi:revocationList","@type":"@id"},revocationReason:{"@id":"obi:revocationReason"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},revokedAssertions:{"@id":"obi:revoked"},salt:{"@id":"obi:salt"},targetCode:{"@id":"obi:targetCode"},uid:{"@id":"obi:uid"},validatesType:"obi:validatesType",validationFrame:"obi:validationFrame",validationSchema:"obi:validationSchema",verification:{"@id":"obi:verify","@type":"@id"},verificationProperty:{"@id":"obi:verificationProperty"},verify:"verification"}},Oa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/merkleProof2017Schema.json"}]},Na={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/merkleProof2017Schema.json"}]},za={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},$a={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},Ua={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",schema:"https://schema.org/",sec:"https://w3id.org/security#",BlockcertsCredential:"bc:BlockcertsCredential",BlockcertsIssuerProfile:"bc:BlockcertsIssuerProfile",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},email:{"@id":"schema:email"},publicKey:{"@context":{created:{"@id":"bc:created"}},"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"},revocationList:{"@id":"bc:revocationList"}}};const Ba={};Ba["https://w3id.org/openbadges/v2"]=ja,Ba[fa]=ja,Ba[ga]={"@context":{"@version":1.1,id:"@id",type:"@type",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",credentialSchema:{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",JsonSchemaValidator2018:"cred:JsonSchemaValidator2018"}},credentialStatus:{"@id":"cred:credentialStatus","@type":"@id"},credentialSubject:{"@id":"cred:credentialSubject","@type":"@id"},evidence:{"@id":"cred:evidence","@type":"@id"},expirationDate:{"@id":"cred:expirationDate","@type":"xsd:dateTime"},holder:{"@id":"cred:holder","@type":"@id"},issued:{"@id":"cred:issued","@type":"xsd:dateTime"},issuer:{"@id":"cred:issuer","@type":"@id"},issuanceDate:{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",ManualRefreshService2018:"cred:ManualRefreshService2018"}},termsOfUse:{"@id":"cred:termsOfUse","@type":"@id"},validFrom:{"@id":"cred:validFrom","@type":"xsd:dateTime"},validUntil:{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",holder:{"@id":"cred:holder","@type":"@id"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},EcdsaSecp256r1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},Ed25519Signature2018:{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},RsaSignature2018:{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}},Ba[ba]={"@context":{"@protected":!0,id:"@id",type:"@type",description:"https://schema.org/description",digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},mediaType:{"@id":"https://schema.org/encodingFormat"},name:"https://schema.org/name",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},credentialSchema:{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},credentialStatus:{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},credentialSubject:{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},description:"https://schema.org/description",evidence:{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},issuer:{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},name:"https://schema.org/name",proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},renderMethod:{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},validFrom:{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},validUntil:{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"}}},EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":!0,id:"@id",type:"@type",holder:{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},EnvelopedVerifiablePresentation:"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",JsonSchemaCredential:"https://www.w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},BitstringStatusListCredential:"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential",BitstringStatusList:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":!0,id:"@id",type:"@type",encodedList:{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",ttl:"https://www.w3.org/ns/credentials/status#ttl"}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",message:"https://www.w3.org/ns/credentials/status#message",status:"https://www.w3.org/ns/credentials/status#status"}},statusReference:{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},statusSize:{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#integer"}}},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},cnf:{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":!0,kid:{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},jwk:{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iat:{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}},Ba[ma]=Oa,Ba[ya]=Oa,Ba[va]=Oa,Ba[wa]=Na,Ba[ka]=Na,Ba[xa]=Na,Ba[_a]=za,Ba[Ca]=za,Ba[Sa]=za,Ba[Pa]=$a,Ba[Ia]=$a,Ba[La]=$a,Ba[Ta]=Ua,Ba[Ma]=Ua,Ba[Ea]=Ua,Ba[Aa]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},MerkleProof2019:{"@id":"https://w3id.org/security#MerkleProof2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Ba[Da]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},ChainedProof2021:{"@id":"https://w3id.org/security#ChainedProof2021","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"},chainedProofType:{"@id":"https://w3id.org/security#chainedProofType","@type":"@id"},previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"}}}}},Ba[Va]={"@context":{"@protected":!0,StatusList2021Credential:{"@id":"https://w3id.org/vc/status-list#StatusList2021Credential","@context":{"@protected":!0,id:"@id",type:"@type",description:"http://schema.org/description",name:"http://schema.org/name"}},StatusList2021:{"@id":"https://w3id.org/vc/status-list#StatusList2021","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",encodedList:"https://w3id.org/vc/status-list#encodedList"}},StatusList2021Entry:{"@id":"https://w3id.org/vc/status-list#StatusList2021Entry","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",statusListIndex:"https://w3id.org/vc/status-list#statusListIndex",statusListCredential:{"@id":"https://w3id.org/vc/status-list#statusListCredential","@type":"@id"}}}}},Ba[Ra]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};var Fa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",creator:{"@id":"dc:creator","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"sec:expiration","@type":"xsd:dateTime"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:"bc:verification",publicKeys:"bc:publicKeys",ChainpointSHA256v2:"cp:ChainpointSHA256v2",BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/merkleProof2017Schema.json"}]},Ha={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"bc:created","@type":"xsd:dateTime"},name:{"@id":"schema:name"}}},qa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType","@type":"@id"},contentEncoding:{"@id":"bc:contentEncoding","@type":"@id"},content:{"@id":"bc:content","@type":"@id"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey","@type":"@id"},url:{"@id":"schema:url","@type":"@id"},image:{"@id":"schema:image","@type":"@id"}}},Ka={"@context":{"@protected":!0,id:"@id",type:"@type",alsoKnownAs:{"@id":"https://www.w3.org/ns/activitystreams#alsoKnownAs","@type":"@id"},assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"},service:{"@id":"https://www.w3.org/ns/did#service","@type":"@id","@context":{"@protected":!0,id:"@id",type:"@type",serviceEndpoint:{"@id":"https://www.w3.org/ns/did#serviceEndpoint","@type":"@id"}}},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},Ja={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},EcdsaSecp256k1VerificationKey2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1VerificationKey2019","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},blockchainAccountId:{"@id":"https://w3id.org/security#blockchainAccountId"},publicKeyJwk:{"@id":"https://w3id.org/security#publicKeyJwk","@type":"@json"},publicKeyBase58:{"@id":"https://w3id.org/security#publicKeyBase58"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},jws:{"@id":"https://w3id.org/security#jws"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Ya={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},Ed25519VerificationKey2020:{"@id":"https://w3id.org/security#Ed25519VerificationKey2020","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},Ed25519Signature2020:{"@id":"https://w3id.org/security#Ed25519Signature2020","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};Ba["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=Fa,Ba["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=Fa,Ba["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=Ha,Ba["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=Ha,Ba["https://w3id.org/blockcerts/v3.0-alpha"]=Ha,Ba["https://www.blockcerts.org/schema/3.0-beta/context.json"]=qa,Ba["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=qa,Ba["https://w3id.org/blockcerts/v3.0-beta"]=qa,Ba["https://w3id.org/security/suites/ed25519-2020/v1"]=Ya,Ba["https://ns.did.ai/suites/secp256k1-2019/v1"]=Ja,Ba["https://w3id.org/security/suites/secp256k1-2019/v1"]=Ja,Ba["https://www.w3.org/ns/did/v1"]=Ka;const Ga={locale:"en-US"};var Wa=Object.freeze({__proto__:null,isMainnet:function(e){return Fe(e,"1")||Fe(e,ha)}});var Za={locale:"en-US"},Xa={"en-US":{steps:{formatValidationLabel:"Format validation",formatValidationLabelPending:"Validating format",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Checking record status"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Get transaction ID",getTransactionIdLabelPending:"Getting transaction ID",computeLocalHashLabel:"Compute local hash",computeLocalHashLabelPending:"Computing local hash",fetchRemoteHashLabel:"Fetch remote hash",fetchRemoteHashLabelPending:"Fetching remote hash",getIssuerProfileLabel:"Get issuer profile",getIssuerProfileLabelPending:"Getting issuer profile",parseIssuerKeysLabel:"Parse issuer keys",parseIssuerKeysLabelPending:"Parsing issuer keys",compareHashesLabel:"Compare hashes",compareHashesLabelPending:"Comparing hashes",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Check Merkle Root",checkMerkleRootLabelPending:"Checking Merkle Root",checkReceiptLabel:"Check Receipt",checkReceiptLabelPending:"Checking Receipt",checkAuthenticityLabel:"Check Authenticity",checkAuthenticityLabelPending:"Checking Authenticity",checkCredentialSchemaConformityLabel:"Check Conformity with Credential Schema",checkCredentialSchemaConformityLabelPending:"Checking Conformity with Credential Schema",checkRevokedStatusLabel:"Check Revoked Status",checkRevokedStatusLabelPending:"Checking Revoked Status",checkExpiresDateLabel:"Check Expiration Date",checkExpiresDateLabelPending:"Checking Expiration Date",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"Reason given:",reason:"This certificate has been ${CREDENTIAL_STATUS} by the issuer.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revoked",suspended:"suspended"},success:{mocknet:{label:"This Mocknet credential passed all checks",description:"Mocknet credentials are used for test purposes only. They are not recorded on a blockchain, and they should not be considered verified Blockcerts."},blockchain:{label:"Verified",description:"This is a valid ${chain} certificate.",linkText:"View transaction link"},generic:{label:"Verified",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verified",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"This is not a valid certificate",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"Could not confirm the transaction",ensureHashesEqual:"Computed hash does not match remote hash",ensureMerkleRootEqual:"Merkle root does not match remote hash.",ensureNotExpired:"This certificate has expired on ",ensureValidReceipt:"The receipt is malformed. There was a problem navigating the merkle tree in the receipt.",failedJsonLdNormalization:"Failed JSON-LD normalization",foundUnmappedFields:"Found unmapped fields during JSON-LD normalization",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Didn't recognize chain value",getIssuerProfile:"Unable to get issuer profile",getRevokedAssertions:"Unable to get revocation assertions",getTransactionId:"Cannot verify this certificate without a transaction ID to compare against.",invalidMerkleReceipt:"Invalid Merkle Receipt. Proof hash did not match Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Cannot verify this certificate without a transaction ID to compare against.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Unable to parse JSON out of issuer identification data.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"}},fr:{steps:{formatValidationLabel:"Validation du format",formatValidationLabelPending:"Validation du format",signatureVerificationLabel:"Vérification de la preuve",signatureVerificationLabelPending:"Vérification de la preuve",identityVerificationLabel:"Vérification de l'identité",identityVerificationLabelPending:"Vérification de l'identité",statusCheckLabel:"Vérification du status",statusCheckLabelPending:"Vérification du status"},subSteps:{assertProofValidityLabel:"Vérification de l'objectif de la signature",assertProofValidityLabelPending:"Vérification de l'objectif de la signature",getTransactionIdLabel:"Obtention de l'identifiant de transaction",getTransactionIdLabelPending:"Obtention de l'identifiant de transaction",computeLocalHashLabel:"Calcul du hash local",computeLocalHashLabelPending:"Calcul du hash local",fetchRemoteHashLabel:"Récupération du hash distant",fetchRemoteHashLabelPending:"Récupération du hash distant",getIssuerProfileLabel:"Obtention du profil de l'émetteur",getIssuerProfileLabelPending:"Obtention du profil de l'émetteur",parseIssuerKeysLabel:"Traitement des clés de l'émetteur",parseIssuerKeysLabelPending:"Traitement des clés de l'émetteur",compareHashesLabel:"Comparaison des hash",compareHashesLabelPending:"Comparaison des hashs",checkDocumentSignatureLabel:"Vérification de la signature du document",checkDocumentSignatureLabelPending:"Vérification de la signature du document",checkMerkleRootLabel:"Vérification du Merkle Root",checkMerkleRootLabelPending:"Vérification du Merkle Root",checkReceiptLabel:"Vérification du reçu",checkReceiptLabelPending:"Vérification du reçu",checkAuthenticityLabel:"Vérification de l'authenticité",checkAuthenticityLabelPending:"Vérification de l'authenticité",checkCredentialSchemaConformityLabel:"Vérification de la conformité avec le schéma du certificat",checkCredentialSchemaConformityLabelPending:"Vérification de la conformité avec le schéma du certificat",checkRevokedStatusLabel:"Vérification du status de révocation",checkRevokedStatusLabelPending:"Vérification du status de révocation",checkExpiresDateLabel:"Vérification de la date d'expiration",checkExpiresDateLabelPending:"Vérification de la date d'expiration",ensureValidityPeriodStartedLabel:"Vérification du début de validité",ensureValidityPeriodStartedLabelPending:"Vérification du début de validité",ensureVerificationMethodValidityLabel:"Vérification de la validité de la méthode de vérification",ensureVerificationMethodValidityLabelPending:"Vérification de la validité de la méthode de vérification",controlVerificationMethodLabel:"Contrôle de la Méthode de Vérification",controlVerificationMethodLabelPending:"Contrôle de la Méthode de Vérification",retrieveVerificationMethodPublicKeyLabel:"Extraction de la clé publique depuis le document DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraction de la clé publique depuis le document DID",deriveIssuingAddressFromPublicKeyLabel:"Dérivation de l'adresse d'émission depuis la clé publique",deriveIssuingAddressFromPublicKeyLabelPending:"Dérivation de l'adresse d'émission depuis la clé publique",compareIssuingAddressLabel:"Comparaison des adresses",compareIssuingAddressLabelPending:"Comparaison des adresses",checkImagesIntegrityLabel:"Vérification de l'Intégrité des Images",checkImagesIntegrityLabelPending:"Vérification de l'Intégrité des Images",validateDateFormatLabel:"Vérification du format des dates",validateDateFormatLabelPending:"Vérification du format des dates",verifyIssuerProfileLabel:"Vérification du profil de l'émetteur",verifyIssuerProfileLabelPending:"Vérification du profil de l'émetteur"},revocation:{preReason:"Raison :",reason:"Ce certificat a été ${CREDENTIAL_STATUS} par l'émetteur le ",revocationListAuthenticityFailure:"L'authenticité de la liste de revocation n'a pas pu être validée.",noRevocationStatusList2021Found:"Aucune liste de revocation n'a pu être trouvée à l'URL spécifiée par 'statusListCredential':",revoked:"révoqué",suspended:"suspendu"},success:{mocknet:{label:"Cet enregistrement Mocknet a été vérifié",description:"Le mode Mocknet est utilisé à des fins de tests uniquement. Ce Blockcert n'a pas été enregistré sur une blockchain, et en tant que tel ne peut pas être considéré un Blockcert valide."},blockchain:{label:"Vérifié",description:"Ceci est un certificat ${chain} valide.",linkText:"Voir la transaction"},generic:{label:"Verified",description:"La signature ${SIGNATURE_TYPE} de ce certificat a été vérifiée avec succès."},multisign:{label:"Vérifié",description:"Toutes les signatures numériques de ce certificat ont été vérifiées avec succès."}},errors:{certificateNotValid:"Certificat invalide",checkCredentialSchemaConformity:"Ce certificat n'est pas conforme avec le schema de certificat fourni",couldNotConfirmTx:"Impossible de confirmer la transaction",ensureHashesEqual:"Calcul du hash local différent du hash distant",ensureMerkleRootEqual:"Le Merkle root ne correspond pas au hash distant",ensureNotExpired:"Certificat expiré",ensureValidReceipt:"Erreur d'écriture du reçu. Un problème est survenu lors de la navigation de l'arbre Merkle du reçu.",failedJsonLdNormalization:"Erreur de normalisation JSON-LD",foundUnmappedFields:"Champs non liés découverts durant la normalisation JSON-LD",identityErrorBaseMessage:"Identité de l'émetteur invalide",deriveIssuingAddressFromPublicKey:"Cette blockchain n'est pas supportée pour la vérification de l'identité décentralisée.",controlVerificationMethod:"Le document d'identité de l'émetteur ne correspond pas à la méthode de vérification.",retrieveVerificationMethodPublicKey:"Le document d'identité de l'émetteur ne fait pas mention de la méthode de vérification.",compareIssuingAddress:"La méthode de vérification n'a pas permis d'établir l'identité de l'émetteur.",invalidIssuingAddressCreationTime:"L'adresse d'émission utilisée a été créée après la transaction d'enregistrement.",invalidIssuingAddressRevoked:"L'adresse d'émission utilisée a été décommissionnée par l'émetteur avant la transaction d'enregistrement.",invalidIssuingAddressExpired:"L'adresse d'émission utilisée a expiré avant la transaction.",invalidIssuingAddressUnknown:"L'adresse utilisée pour émettre ce Blockcerts n'appartient à l'émetteur déclaré.",getChain:"Valeur de chaine non reconnue",getIssuerProfile:"Profil de l'émetteur indisponible",getRevokedAssertions:"Impossible d'obtenir les raisons de revocation",getTransactionId:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",invalidMerkleReceipt:"Reçu Merkle invalide. Hash de preuve différent du Merkle root",invalidMerkleVersion:"La version du Merkle utilisé est incompatible avec la version Blockcerts.",isTransactionIdValid:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",issuerProfileNotSet:"l'URL de l'émetteur n'est pas définie",issuerProfileInvalid:"le document distant ne semble pas être un profil d'émetteur valide",parseIssuerKeys:"Impossible de lire le JSON d'identification de l'émetteur",checkImagesIntegrity:"La vérification des images a prouvé que le contenu a été modifié après l'émission.",ensureValidityPeriodStarted:"Ce certificat n'est pas encore valide.",validateDateFormat:"Le format de date spécifié n'est pas conforme aux exigences de la spécification (RFC3339). Propriété :"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"}},es:{steps:{formatValidationLabel:"Validación de formato",formatValidationLabelPending:"Validando el formato",signatureVerificationLabel:"Verificar prueba",signatureVerificationLabelPending:"Verificando prueba",identityVerificationLabel:"Verificar identitad",identityVerificationLabelPending:"Verificando identitad",statusCheckLabel:"Estado de Verificación",statusCheckLabelPending:"Verificando Estado de Grabación"},subSteps:{assertProofValidityLabel:"Afirmar propósito de la prueba",assertProofValidityLabelPending:"Afirmando propósito de la prueba",getTransactionIdLabel:"Obtener Identificación de Transacción",getTransactionIdLabelPending:"Obteniendo Identificación de Transacción",computeLocalHashLabel:"Calcular cadena binaria local",computeLocalHashLabelPending:"Calculando cadena binaria local",fetchRemoteHashLabel:"Obtener cadena binaria remota",fetchRemoteHashLabelPending:"Obeniendo cadena binaria remota",getIssuerProfileLabel:"Obtener perfil de emisor",getIssuerProfileLabelPending:"Obteniendo perfil de emisor",parseIssuerKeysLabel:"Analizar claves del emisor",parseIssuerKeysLabelPending:"Analizando claves del emisor",compareHashesLabel:"Comparar cadenas binarias",compareHashesLabelPending:"Comparando cadenas binarias",checkDocumentSignatureLabel:"Controlar firma del documento",checkDocumentSignatureLabelPending:"Controlando firma del documento",checkMerkleRootLabel:"Verificar Merkle Root",checkMerkleRootLabelPending:"Verificando Merkle Root",checkReceiptLabel:"Verificar Recibo",checkReceiptLabelPending:"Verificando Recibo",checkAuthenticityLabel:"Verificar Autenticidad",checkAuthenticityLabelPending:"Verificando Autenticidad",checkCredentialSchemaConformityLabel:"Verificar conformidad con el esquema del certificado",checkCredentialSchemaConformityLabelPending:"Verificando conformidad con el esquema del certificado",checkRevokedStatusLabel:"Verificar Estado de Revocación",checkRevokedStatusLabelPending:"Verificando Estado de Revocación",checkExpiresDateLabel:"Verificar Fechas de Expiración",checkExpiresDateLabelPending:"Verificando Fechas de Expiración",ensureValidityPeriodStartedLabel:"Verificar Fechas de Validez",ensureValidityPeriodStartedLabelPending:"Verificando Fechas de Validez",ensureVerificationMethodValidityLabel:"Verificar Validez del Método de Verificación",ensureVerificationMethodValidityLabelPending:"Verificando Validez del Método de Verificación",controlVerificationMethodLabel:"Controlar Metodo de Verificación",controlVerificationMethodLabelPending:"Controlando Metodo de Verificación",retrieveVerificationMethodPublicKeyLabel:"Extraer la llave pública desde el documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraendo la llave pública desde el documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivar la dirección del emisor desde la llave pública",deriveIssuingAddressFromPublicKeyLabelPending:"Derivando la dirección del emisor desde la llave pública",compareIssuingAddressLabel:"Comparar direcciones",compareIssuingAddressLabelPending:"Comparando direcciones",checkImagesIntegrityLabel:"Comprobar Integridad de las Imagens",checkImagesIntegrityLabelPending:"Comprobando Integridad de las Imagens",validateDateFormatLabel:"Verificar formato de fecha",validateDateFormatLabelPending:"Verificando formato de fecha",verifyIssuerProfileLabel:"Verificar perfil del emisor",verifyIssuerProfileLabelPending:"Verificando perfil del emisor"},revocation:{preReason:"Motivo:",reason:"Este certificado ha sido ${CREDENTIAL_STATUS} por el emisor.",revocationListAuthenticityFailure:"La authenticidad de la lista de revocación no se pudo confirmar.",noRevocationStatusList2021Found:"No lista de revocación encontrada en la URL dada por 'statusListCredential':",revoked:"revocado",suspended:"suspendido"},success:{mocknet:{label:"Esta credencial de Mocknet pasó todas las comprobaciones",description:"Las credenciales de Mocknet se usan solo con fines de prueba. No se graban en una cadena de bloques, y no se deben considerar Blockcerts Verificados."},blockchain:{label:"Verificado",description:"Este es un certificado válido de ${chain}.",linkText:"Ver enlace de transacción"},generic:{label:"Verified",description:"La firma ${SIGNATURE_TYPE} de este certificado ha verificado con éxito."},multisign:{label:"Verificado",description:"Todas las firmas digitales de este certificado han verificado con éxito."}},errors:{certificateNotValid:"Este no es un certificado válido",checkCredentialSchemaConformity:"Este certificado no cumple con el esquema de certificado especificado",couldNotConfirmTx:"No se ha podido confirmar la transacción",ensureHashesEqual:"La cadena binaria calculada no corresponde con la cadena binaria remota",ensureMerkleRootEqual:"La raíz Merkle no corresponde con la cadena binaria remota",ensureNotExpired:"Este certificado ha expirado el ",ensureValidReceipt:"El recibo está malformado. Hubo un problema navegando el árbol Merkle en el recibo",failedJsonLdNormalization:"La normalización del JSON-LD ha fallado",foundUnmappedFields:"Se han encontrado campos no mapeados durante la normalización de JSON-LD",identityErrorBaseMessage:"Identitad del emisor inválida",deriveIssuingAddressFromPublicKey:"No se puede validar la identitad decentalisada con esta cadena binaria.",controlVerificationMethod:"El documento de identitad del emisor no corresponde al metodo de verificación.",retrieveVerificationMethodPublicKey:"El documento de identitad del emisor no hace constar al metodo de verificación.",compareIssuingAddress:"El metodo de verificación no corresponde a la identitad del emisor.",invalidIssuingAddressCreationTime:"El emisor creó el metodo de verificación después de la emisión del certificado.",invalidIssuingAddressRevoked:"El emisor revocó el metodo de verificación antes de la emisión del certificado.",invalidIssuingAddressExpired:"El metodo de verificación expiró antes de la emisión del certificado.",invalidIssuingAddressUnknown:"El metodo de verificación no pertenece a la identitad del emisor.",getChain:"Valor de cadena no reconocido",getIssuerProfile:"No se ha podido obtener el perfil del emisor",getRevokedAssertions:"No se ha podido obtener aseveraciones de revocación",getTransactionId:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",invalidMerkleReceipt:"Recibo Merkle inválido. La cadena binaria de prueba no corresponde con la raíz Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",issuerProfileNotSet:"URL del emisor no definido",issuerProfileInvalid:"el documento recogido no parece ser un perfil de emisor valido",parseIssuerKeys:"No se ha podido analizar el JSON de la información de identificación del emisor",checkImagesIntegrity:"La verificación de la integridad de los imagens provó alteración del contenido después de la emisión.",ensureValidityPeriodStarted:"Este certificado aún no está valido.",validateDateFormat:"El formato de fecha especificado no cumple con los requisitos de la especificación (RFC3339). Propiedad:"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"}},mt:{steps:{formatValidationLabel:"Validazzjoni tal-format",formatValidationLabelPending:"Il-format qed jiġi vvalidat",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Ir-record status qed jiġi ċċekkjat"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Ikseb l-ID ta' tranżazzjoni",getTransactionIdLabelPending:"L-ID ta' tranżazzjoni qed tiġi mniżżla",computeLocalHashLabel:"Ikkalkula l-hash lokali",computeLocalHashLabelPending:"Il-hash lokali qed jiġi kkalkulat",fetchRemoteHashLabel:"Fittex ir-remote hash",fetchRemoteHashLabelPending:"Ir-remote hash qed jiġi mfittex",getIssuerProfileLabel:"Ikseb il-profil tal-emittent",getIssuerProfileLabelPending:"Il-profil tal-emittent qed jiġi mniżżel",parseIssuerKeysLabel:"Estratta ċ-ċwievet tal-emittent",parseIssuerKeysLabelPending:"Iċ-ċwievet tal-emittent qed jiġu estratti",compareHashesLabel:"Ikkumpara l-hashes",compareHashesLabelPending:"Il-hashes qed jiġu kkomparati",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Iċċekkja l-Merkle Root",checkMerkleRootLabelPending:"Il-Merkle Root Qed Tiġi Ċċekkjata",checkReceiptLabel:"Iċċekkja l-Irċevuta",checkReceiptLabelPending:"L-Irċevuta Qed Tiġi Ċċekkjata",checkAuthenticityLabel:"Iċċekkja l-Awtentiċità",checkAuthenticityLabelPending:"L-Awtentiċità Qed Tiġi Ċċekkjata",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"Iċċekkja l-Istatus Revokat",checkRevokedStatusLabelPending:"L-Istatus Revokat Qed Jiġi Ċċekkjat",checkExpiresDateLabel:"Iċċekkja d-Data ta' Skadenza",checkExpiresDateLabelPending:"Id-Data ta' Skadenza Qed Tiġi Ċċekkjata",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"Raġuni mogħtija:",reason:"Dan iċ-ċertifikat ġie ${CREDENTIAL_STATUS} mill-emittent.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revokat",suspended:"suspended"},success:{mocknet:{label:"Din il-kredenzjali tal-Mocknet għaddiet il-kontrolli kollha",description:"Il-kredenzjali tal-Mocknet jintużaw biss għal skopijiet ta 'ttestjar. Dawn mhumiex irreġistrati fuq blockchain, u ma għandhomx jiġu kkunsidrati bħala blockcerts verifikati."},blockchain:{label:"Ivverifikat",description:"Dan huwa ċertifikat ${chain} huwa validu.",linkText:"Ara l-link tat-transazzjoni"},generic:{label:"Ivverifikat",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Ivverifikat",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Dan mhux ċertifikat validu",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"Ma setgħetx tiġi kkonfermata t-tranżazzjoni",ensureHashesEqual:"Il-hash ikkalkulat ma jikkorrispondix mar-remote hash",ensureMerkleRootEqual:"Merkle root ma taqbilx mar-remote hash",ensureNotExpired:"Dan iċ-ċertifikat skada fid-data - ",ensureValidReceipt:"L-irċevuta hija malformata. Kien hemm problema fin-navigazzjoni tal-merkle tree fl-irċevuta",failedJsonLdNormalization:"In-normalizzazzjoni ta' JSON-LD ma rnexxietx",foundUnmappedFields:"Instabu unmapped fields matul in-normalizzazzjoni JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"L-indirizz elettroniku tal-ħruġ speċifikat inħoloq wara li seħħet it-tranżazzjoni.",invalidIssuingAddressRevoked:"L-indirizz elettroniku tal-ħruġ speċifikat ġie revokat mill-emittent qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressExpired:"L-indirizz elettroniku tal-ħruġ speċifikat skada qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressUnknown:"L-indirizz elettroniku użat biex jinħarġu dawn il-Blockcerts ma jappartjenix għall-emittent mitlub.",getChain:"Iċ-chain value ma ntgħarafx",getIssuerProfile:"Mhux possibbli jinkiseb il-profil tal-emittent",getRevokedAssertions:"Mhux possibbli jinkisbu dikjarazzjonijiet revokati",getTransactionId:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",invalidMerkleReceipt:"Irċevuta Merkle invalida. Il-proof hash ma kienx jaqbel mal-Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Ma jistax jiġi estratt JSON mid-data tal-identifikazzjoni tal-emittent",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"],pattern:"DD MM YYYY"}},"it-IT":{steps:{formatValidationLabel:"Convalidare formato",formatValidationLabelPending:"Convalida formato",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Verificare stato",statusCheckLabelPending:"Verifica stato del record"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Ottenere ID transazione",getTransactionIdLabelPending:"Ottieni ID transazione",computeLocalHashLabel:"Calcolare hash locale",computeLocalHashLabelPending:"Calcola hash locale",fetchRemoteHashLabel:"Recuperare hash remoto",fetchRemoteHashLabelPending:"Recupera hash remoto",getIssuerProfileLabel:"Ottenere profilo issuer",getIssuerProfileLabelPending:"Ottieni profilo issuer",parseIssuerKeysLabel:"Analizzare chiavi issuer",parseIssuerKeysLabelPending:"Analizza chiavi issuer",compareHashesLabel:"Confrontare gli hash",compareHashesLabelPending:"Confronto hash",checkDocumentSignatureLabel:"Controllare firma del documento",checkDocumentSignatureLabelPending:"Controllo firma del documento",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkCredentialSchemaConformityLabel:"Verificare conformità con lo schema del certificato",checkCredentialSchemaConformityLabelPending:"Verifica conformità con lo schema del certificato",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",ensureValidityPeriodStartedLabel:"Verificare data di inizio validità",ensureValidityPeriodStartedLabelPending:"Verifica data di inizio validità",ensureVerificationMethodValidityLabel:"Verificare validità del metodo di verifica",ensureVerificationMethodValidityLabelPending:"Verifica validità del metodo di verifica",controlVerificationMethodLabel:"Controllare il metodo di verifica",controlVerificationMethodLabelPending:"Controllo del metodo di verifica",retrieveVerificationMethodPublicKeyLabel:"Estrarre chiave pubblica dal documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Estrazione chiave pubblica dal documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivare l'indirizzo di emissione dalla chiave pubblica",deriveIssuingAddressFromPublicKeyLabelPending:"Derivazione dell'indirizzo di emissione dalla chiave pubblica",compareIssuingAddressLabel:"Confrontare gli indirizzi",compareIssuingAddressLabelPending:"Confronto degli indirizzi",checkImagesIntegrityLabel:"Verificare l'integrità delle immagini",checkImagesIntegrityLabelPending:"Verifica dell'integrità delle immagini",validateDateFormatLabel:"Verificare il formato della data",validateDateFormatLabelPending:"Verifica del formato della data",verifyIssuerProfileLabel:"Verificare il profilo dell'emittente",verifyIssuerProfileLabelPending:"Verifica del profilo dell'emittente"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato ${CREDENTIAL_STATUS} dall'emittente.",revocationListAuthenticityFailure:"L'autenticità dell'elenco di revoca non è stata confermata.",noRevocationStatusList2021Found:"Nessun elenco di stato di revoca trovato all'URL specificato per 'statusListCredential':",revoked:"revocato",suspended:"sospeso"},success:{mocknet:{label:"Questo Blockcert simulato ha superato tutti i controlli.",description:"La modalità Mocknet è utilizzata solo dagli emittenti per testare il loro flusso di lavoro localmente. Questo Blockcert non è stato registrato su una blockchain e non dovrebbe essere considerato un Blockcert verificato."},blockchain:{label:"Verificato",description:"Questo è un certificato ${chain} valido.",linkText:"Vedi la transazione"},generic:{label:"Verificato",description:"La firma ${SIGNATURE_TYPE} di questo certificato è stata verificata con successo."},multisign:{label:"Verificato",description:"Tutte le firme digitali di questo certificato sono state verificate con successo."}},errors:{certificateNotValid:"Questo non è un certificato valido",checkCredentialSchemaConformity:"Questo certificato non è conforme allo schema di certificazione specificato",couldNotConfirmTx:"Impossibile confermare la transazione",ensureHashesEqual:"L'hash calcolato non corrisponde all'hash remoto",ensureMerkleRootEqual:"La radice di Merkle non corrisponde all'hash remoto.",ensureNotExpired:"Questo certificato è scaduto il ",ensureValidReceipt:"La ricevuta è malformata. C'è stato un problema nella navigazione dell'albero di Merkle nella ricevuta.",failedJsonLdNormalization:"Normalizzazione JSON-LD fallita",foundUnmappedFields:"Campi non mappati trovati durante la normalizzazione JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Il valore della catena non è stato riconosciuto",getIssuerProfile:"Impossibile ottenere il profilo dell'emittente",getRevokedAssertions:"Impossibile ottenere le asserzioni di revoca",getTransactionId:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",invalidMerkleReceipt:"Ricevuta Merkle non valida. L'hash di prova non corrisponde alla radice di Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Impossibile analizzare JSON dai dati di identificazione dell'emittente.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{assertProofValidityLabel:"証明の目的を主弭する",assertProofValidityLabelPending:"証明の目的を主弭中",getTransactionIdLabel:"取引IDの取得",getTransactionIdLabelPending:"取引IDを取得",computeLocalHashLabel:"ローカルハッシュの算出",computeLocalHashLabelPending:"ローカルハッシュを算出",fetchRemoteHashLabel:"リモートハッシュの取得",fetchRemoteHashLabelPending:"リモートハッシュを取得",getIssuerProfileLabel:"発行者プロフィールの取得",getIssuerProfileLabelPending:"発行者プロフィールを取得",parseIssuerKeysLabel:"発行者の鍵の解析",parseIssuerKeysLabelPending:"発行者の鍵を解析",compareHashesLabel:"ハッシュの照合",compareHashesLabelPending:"ハッシュを照合",checkDocumentSignatureLabel:"Documentの署名の確認",checkDocumentSignatureLabelPending:"Documentの署名を確認",checkMerkleRootLabel:"Merkle Rootの確認",checkMerkleRootLabelPending:"Merkle Rootを確認",checkReceiptLabel:"レシートの確認",checkReceiptLabelPending:"レシートを確認",checkAuthenticityLabel:"真正性の確認",checkAuthenticityLabelPending:"真正性を確認",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"理由:",reason:"この証明書は発行者により${CREDENTIAL_STATUS}。",revocationListAuthenticityFailure:"取消登録リストの真正性を確認できませんでした。",noRevocationStatusList2021Found:"「statusListCredential」のURLでステータスリストが見つかりませんでした:",revoked:"取消されました",suspended:"停止されました"},success:{mocknet:{label:"このMocknetの証明書は全てのチェックを通過しました。",description:"Mocknetの証明書はテスト用のものです。ブロックチェーンに記録されず、認証可能のBlockcert証明書として扱われません。"},blockchain:{label:"認証されました",description:"この証明書は有効な${chain}の証明書です。",linkText:"取引を確認する"},generic:{label:"認証されました",description:"このdocumentの${SIGNATURE_TYPE}の署名の確認に成功しました。"},multisign:{label:"認証されました",description:"この証明書の全ての署名の確認に成功しました。"}},errors:{certificateNotValid:"この証明書は無効です",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"取引を確認できませんでした",ensureHashesEqual:"算出されたハッシュがリモートハッシュと一致しませんでした",ensureMerkleRootEqual:"Merkle rootがリモートハッシュと一致しませんでした",ensureNotExpired:"この証明書の有効期限が切れています ",ensureValidReceipt:"レシートに異常があります。レシート内のMerkle treeを辿る際に問題が発生しました。",failedJsonLdNormalization:"JSON-LDの正規化に失敗しました",foundUnmappedFields:"JSON-LDの正規化時にマップされていないフィールドを検出しました",identityErrorBaseMessage:"発行者アイデンティティが一致しませんでした",deriveIssuingAddressFromPublicKey:"DID認証未対応のブロックチェーンです",controlVerificationMethod:"発行者から提供されたアイデンティティdocumentが認証方法と一致していません",retrieveVerificationMethodPublicKey:"発行者から提供されたアイデンティティdocumentが認証方法を参照していません",compareIssuingAddress:"提供された認証方法は発行者アイデンティティと一致していません",invalidIssuingAddressCreationTime:"指定の発行者アドレスは取引が行われた後に生成されました。",invalidIssuingAddressRevoked:"指定の発行者アドレスは取引が行われた前に発行者によって取消されました。",invalidIssuingAddressExpired:"指定の発行者アドレスは取引が行われた前に有効期限が切れました。",invalidIssuingAddressUnknown:"このBlockcert証明書の発行に使用されたアドレスは指定の発行者が所有していません。",getChain:"チェーンの値を認識できませんでした",getIssuerProfile:"発行者プロフィールを取得できません",getRevokedAssertions:"取消assertionsを取得できません",getTransactionId:"照合のための取引IDがないため、この証明書を認証できません。",invalidMerkleReceipt:"Merkleレシートが無効です。証明ハッシュがMerkle rootと一致しませんでした。",invalidMerkleVersion:"署名に使用されたMerkleのバージョンはBlockcertsのバージョンに対応できません。",isTransactionIdValid:"照合するための取引IDがないため、この証明書を認証できません。",issuerProfileNotSet:"発行者アドレスが提供されませんでした",issuerProfileInvalid:"取得されたファイルが有効なプロフィールではないようです",parseIssuerKeys:"発行者識別データからJSONの解析ができません",checkImagesIntegrity:"データが発行後に変更されたことが画像保全性の検証によって証明されました。",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"}}};function Qa(e,t){return e&&t?Xa[Za.locale]?Xa[Za.locale][e]?Xa[Za.locale][e][t]?Xa[Za.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function es(){return Object.keys(Xa)}var ts,is=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||Ga.locale},ensureIsSupported:function(e){let t;const i=Us.i18n.getSupportedLanguages().map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=Ga.locale),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)},getComposedText:function(e,t){return Qa(e,t)},getDateFormat:function(e){const t=Qa("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=Qa("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r},getSupportedLanguages:es,getText:Qa,setLocale:function(e){Za.locale=e}});!function(e){e.REVOKED="revoked",e.SUSPENDED="suspended"}(ts||(ts={}));class rs{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class ns{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class os extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}var as=Object.freeze({__proto__:null,generateRevocationReason:function(e="",t=ts.REVOKED){const i=Qa("revocation",t);return e=(e=e.trim()).length>0?` ${Qa("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${Qa("revocation","reason").replace("${CREDENTIAL_STATUS}",i)}${e}`},getChain:function(e,t){const i=t||null;if(i?.anchors){const e=i.anchors[0];if(e.chain){return function(e){const t=Object.keys(Qe).map((e=>Qe[e])).find((t=>t.signatureValue===e));if(void 0===t)throw new Error(Qa("errors","getChain"));return t}(e.chain)}}return function(e=""){return Wa.isMainnet(e)?Qe.bitcoin:Qe.testnet}(e)},getTransactionId:function(e={}){try{const{anchors:t}=e,i=t[0];if(i.sourceId)return i.sourceId;if("string"==typeof i){return i.split(":").pop()}}catch(e){throw new os("",Qa("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(Ke,e),transactionLink:t.transactionTemplates.full.replace(Ke,e)}:null}});var ss=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(Qe).some((e=>e===t))&&!!Qe[t].test}return!1}});const cs={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function ls(e){return e.startsWith("did:",0)}function us(e){return e.startsWith("did:key:",0)}var ds;!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(ds||(ds={}));const ps={"did:key:z6Mk":ds.ED25519,"did:key:zQ3s":ds.SECP256K1};async function hs(e){const t=e.substring(0,12);if(ps[t]){const i=await async function(e){if(e===ds.ED25519)return await import("./did-key-ed25519.esm-0v03exJh-COIOTeQ5.js");if(e===ds.SECP256K1)return await import("./did-key-secp256k1.esm-Cs0ZCHjg-B35GrJww.js");throw new Error("Error loading did key resolver")}(ps[t]),{didDocument:r}=await i.resolve(e,{accept:"application/did+json"});return r}throw new Error("Unsupported did:key suite")}var fs,gs={...Object.freeze({__proto__:null,getIssuerProfileUrl:function(e){if(!e.service)return"";const t=e.service.find((e=>"IssuerProfile"===e.type)),i=t?.serviceEndpoint;return i??""},resolve:async function(e,t=cs.url){if(us(e)){return await hs(e)}const i=await jo({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:hs}),didResolver:cs};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(fs||(fs={}));class bs{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=Qa("subSteps",`${t}Label`),this.labelPending=Qa("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=fs.DEFAULT}}const ms=Xa[Za.locale];var vs,ys;!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}(vs||(vs={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod",e.verifyIssuerProfile="verifyIssuerProfile",e.ensureValidityPeriodStarted="ensureValidityPeriodStarted",e.checkCredentialSchemaConformity="checkCredentialSchemaConformity",e.validateDateFormat="validateDateFormat"}(ys||(ys={}));const ws={[vs.formatValidation]:[ys.checkImagesIntegrity,ys.checkCredentialSchemaConformity,ys.validateDateFormat],[vs.proofVerification]:[],[vs.identityVerification]:[ys.verifyIssuerProfile,ys.controlVerificationMethod],[vs.statusCheck]:[ys.checkRevokedStatus,ys.ensureValidityPeriodStarted,ys.checkExpiresDate]};function xs(){return{[vs.formatValidation]:{code:vs.formatValidation,label:ms.steps.formatValidationLabel,labelPending:ms.steps.formatValidationLabelPending,subSteps:[]},[vs.proofVerification]:{code:vs.proofVerification,label:ms.steps.signatureVerificationLabel,labelPending:ms.steps.signatureVerificationLabelPending,subSteps:[]},[vs.identityVerification]:{code:vs.identityVerification,label:ms.steps.identityVerificationLabel,labelPending:ms.steps.identityVerificationLabelPending,subSteps:[]},[vs.statusCheck]:{code:vs.statusCheck,label:ms.steps.statusCheckLabel,labelPending:ms.steps.statusCheckLabelPending,subSteps:[]}}}var ks=Object.freeze({__proto__:null,get SUB_STEPS(){return ys},get VerificationSteps(){return vs},default:xs,final:"final",verificationMap:ws});function _s(e){try{const t=new URL(e);return!t.pathname.includes(" ")&&!t.hostname.includes(" ")&&e.includes(":")}catch{return!1}}function Ss(e=[],t=[]){return e.filter((e=>t.includes(e))).filter(((e,t,i)=>i.indexOf(e)===t))}function Cs(e,t){const i=e.findIndex((e=>e===t));i>-1&&e.splice(i,1)}function Ps(e,t){return ws[e].filter((e=>t.includes(e))).map((t=>Us.verifier.convertToVerificationSubsteps(e,t)))}function Ls(e){const t=xs();return Object.keys(t).map((i=>({...t[i],subSteps:Ps(i,e)})))}const Is=/-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/;function Ts(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t}(e);return i||function(e){let t,i;const r=Is.exec(e)??[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function Es(e){return""===e?0:Ts(`${e}`).getTime()}function Ms(e){return Is.test(e)}function As(e,t=null){const i=e.created?Es(e.created):null,r=e.revoked?Es(e.revoked):null,n=e.expires?Es(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new rs(o,i,r,n)}function Ds(e){if(Array.isArray(e)){return e.find((e=>"ChainedProof2021"!==e.type)).verificationMethod}return e.verificationMethod}function Vs(e){return e.type.includes("VerifiablePresentation")}function Rs(e){return e.includes(ga)}function js(e){return e.includes(ba)}function Os(e,t=""){if(!_s(e))throw new Error(`Invalid URL: ${e}. ${t?`Property: ${t}`:""}`)}function Ns(e,t){let i=`${t} must be a valid RFC3339 string.`;if("string"!=typeof e)throw i+=`${t}: ${e} is not a string`,new Error(i);if(!function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/.test(e)}(e))throw i+=` Received: \`${e}\``,new Error(i)}function zs(e){if("object"!=typeof e)throw new Error("`credentialSubject` must be an object");if(Array.isArray(e)&&0===e.length)throw new Error("`credentialSubject` cannot be an empty array");Array.isArray(e)&&e.forEach((e=>{zs(e)}))}var $s=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new bs(e,t)},findVerificationSubstep:function(e,t,i=""){for(let r=0;r<t.length;r++){let n=t[r].subSteps.find((t=>t.code===e));if(n&&""===i)return n;if(t[r].suites?.length)for(let o=0;o<t[r].suites.length;o++){const a=t[r].suites[o];if(n=a.subSteps.find((t=>t.code===e)),n&&a.proofType===i)return n}}},getDatesToValidate:function(e){const t=[];e.validFrom&&t.push({property:"validFrom",dateTimeStamp:e.validFrom}),e.validUntil&&t.push({property:"validUntil",dateTimeStamp:e.validUntil});const i=Array.isArray(e.proof)?e.proof:[e.proof];for(const e of i)e.created&&t.push({property:`proof ${e.cryptosuite??e.type} created`,dateTimeStamp:e.created});return t},getIssuerProfile:async function e(t){const i=Qa("errors","getIssuerProfile");if(!t)throw new os("getIssuerProfile",`${i} - ${Qa("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),ls(t))try{const i=await Us.did.resolve(t);if(us(t))r=function(e){return{"@context":["https://w3id.org/openbadges/v2","https://w3id.org/blockcerts/3.0"],publicKey:[{created:(new Date).toISOString(),id:e.id.split(":").pop()}]}}(i);else{const t=Us.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new os("getIssuerProfile",`${i} - ${e}`)}else if(!function(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}(t))throw new os("getIssuerProfile",`${i} - ${Qa("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await jo({url:t}).catch((e=>{throw console.error(e),new os("getIssuerProfile",i)}))),!function(e){const t=["issuer","profile","blockcertsissuerprofile"],{type:i}=e;return!!i&&(Array.isArray(i)?i.some((e=>t.includes(e.toLowerCase()))):t.includes(i.toLowerCase()))}(r)&&!function(e){const{issuer_key:t,revocation_key:i,issuerKeys:r,revocationKeys:n}=e;return!(!t||!i)||!(!r||!n)}(r))throw new os("getIssuerProfile",`${i} - ${Qa("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=Qa("errors","getRevokedAssertions");t&&(e=function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,"assertionId",encodeURIComponent(t)));try{const t=await jo({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new os(ys.checkRevokedStatus,i)}},getVerificationMap:function(e={}){const t=function({hasDid:e=!1,hasHashlinks:t=!1,hasValidFrom:i=!1,hasCredentialSchema:r=!1,isVCV2:n=!1,isVerifiablePresentation:o=!1,isIssuerProfileSigned:a=!1}){const s=JSON.parse(JSON.stringify(ws));return e||Cs(s[vs.identityVerification],ys.controlVerificationMethod),t||Cs(s[vs.formatValidation],ys.checkImagesIntegrity),i&&!o||Cs(s[vs.statusCheck],ys.ensureValidityPeriodStarted),r||Cs(s[vs.formatValidation],ys.checkCredentialSchemaConformity),n||Cs(s[vs.formatValidation],ys.validateDateFormat),a||Cs(s[vs.identityVerification],ys.verifyIssuerProfile),Object.keys(s).map((e=>s[e])).flat()}(e);return{verificationProcess:t,verificationMap:Ls(t)}},lookForTx:pa,parseIssuerKeys:function(e){try{const t={};if("@context"in e){const i=e.publicKey??e.publicKeys;for(let e=0;e<i.length;e++){const r=As(i[e]);t[r.publicKey]=r}}else{const i=As({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new os("parseIssuerKeys",Qa("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""},validateVerifiableCredential:function e(t){if(Vs(t))return void t.verifiableCredential.forEach((t=>{e(t)}));if(!t.credentialSubject)throw new Error("`credentialSubject` must be defined");var i,r;if(zs(t.credentialSubject),function(e){if(!Array.isArray(e))throw new Error("`type` property must be an array");const t=["VerifiableCredential","VerifiablePresentation"].filter((t=>e.includes(t)));if(0===e.length||0===t.length)throw new Error("`type` property must include `VerifiableCredential` or `VerifiablePresentation`")}(t.type),function(e,t){const i=[ga,ba];if(!Array.isArray(e))throw new Error("`@context` property must be an array");if(!i.includes(e[0]))throw new Error(`First @context must be one of ${i.join(", ")}, given ${e[0]}`);if(Rs(e)&&js(e))throw new Error("Cannot have both v1 and v2 Verifiable Credential contexts");if(t.length>1&&1===e.length)throw new Error(`More specific type: ${t[1]} was detected but no additional context provided`)}(t["@context"],t.type),function(e){let t=!1;if((null==e||"string"==typeof e&&!_s(e)||"object"==typeof e&&!_s(e.id)||Array.isArray(e))&&(t=!0),t)throw new Error("`issuer` must be a URL string or an object with an `id` URL string")}(t.issuer),Rs(t["@context"])&&(t.issuanceDate&&Ns(t.issuanceDate,"issuanceDate"),t.expirationDate&&Ns(t.expirationDate,"expirationDate")),js(t["@context"])&&(t.validFrom&&Ns(t.validFrom,"validFrom"),t.validUntil&&Ns(t.validUntil,"validUntil")),t.credentialStatus&&(i=t.credentialStatus,(Array.isArray(i)?i:[i]).forEach((e=>{if(!e.id)throw new Error("credentialStatus.id must be defined");if(Os(e.id,"credentialStatus.id"),"string"!=typeof e.type)throw new Error("credentialStatus.type must be a string")}))),t.credentialSchema&&(r=t.credentialSchema,(Array.isArray(r)?r:[r]).forEach((e=>{if(!e.id)throw new Error("credentialSchema.id must be defined");if(Os(e.id,"credentialSchema.id"),"JsonSchema"!==e.type)throw new Error("credentialSchema.type must be `JsonSchema`")}))),!t.proof)throw new Error("`proof` must be defined");let{proof:n}=t;Array.isArray(n)||(n=[n]),n.forEach((e=>{!function(e){if(!e.created)throw new Error("`proof.created` must be defined");if(!e.proofPurpose)throw new Error("`proof.proofPurpose` must be defined")}(e)}))}}),Us={addresses:Wa,certificates:as,chains:ss,did:gs,i18n:is,verifier:$s};function Bs(e,t,i){return void 0===t?"":"string"==typeof t?t:(Array.isArray(t)||(t=[t]),t.find((e=>e["@language"]===i))?.[e]??t.find((e=>e["@language"]?.split("-")[0]===i.split("-")[0]))?.[e]??t[0][e])}function Fs(e){let t=e;return Array.isArray(e)&&(t=e[0]),t}function Hs(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(He)}(e),i.find((e=>e.toLowerCase().indexOf("blockcerts")>0)));var i;if(!t)return{version:Ge.V3_0,versionNumber:3};const r=t.split("/").filter((e=>""!==e)),n=Object.keys(qs),o=parseInt(n.filter((e=>function(e,t){return e.some((e=>e.includes(`v${t}`)||e.includes(`${t}.`)))}(r,e.toString())))[0],10);let a;switch(o){case 1:a=Ge.V1_2;break;case 2:a=Ge.V2_0;break;case 3:if(t.includes("-alpha")){a=Ge.V3_0_alpha;break}if(t.includes("-beta")){a=Ge.V3_0_beta;break}a=Ge.V3_0}return{versionNumber:o,version:a}}const qs={1:function(){throw new os("","Verification of v1 certificates is not supported by this component. See the python cert-verifier for v1.1 verification or the npm package cert-verifier-js-v1-legacy for v1.2 (https://www.npmjs.com/package/@blockcerts/cert-verifier-js-v1-legacy)")},2:async function(e){const{id:t,expires:i,badge:r}=e,{image:n,name:o,description:a,subtitle:s,issuer:c}=r,l=e.recipientProfile??e.recipient.recipientProfile,u=e.issuedOn,d=e.metadataJson,p=l.name,h=function(e){const t=[];for(const i in e){const r=e[i],n=new ns(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),f=await Us.verifier.getIssuerProfile(c);return{certificateImage:n,description:a,expires:i,id:t,issuedOn:u,issuer:f,metadataJson:d,name:o,recipientFullName:p,recordLink:t,revocationKey:null,sealImage:f.image,signatureImage:h,subtitle:s}},3:async function(e,t){const{metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:a,display:s,validUntil:c,proof:l,name:u,description:d,credentialSubject:p}=e;let{issuer:h}=e;try{Us.verifier.validateVerifiableCredential(e)}catch(e){throw console.error("Error validating the Verifiable Credential format: ",e.message),new Error(`Document presented is not a valid Verifiable Credential: ${e.message}`)}let{validFrom:f}=e;const g=r??i;if(Vs(e)){const e=Fs(l);h=e.verificationMethod?.split("#")[0]}const b=await Us.verifier.getIssuerProfile(h);if(!f){f=Fs(l).created}return{display:s,expires:a??c,validFrom:f,issuedOn:n??f,id:o,issuer:b,name:Bs("@value",u,t),description:Bs("@value",d,t),metadataJson:g,recipientFullName:Bs("name",p,t),recordLink:o}}};function Ks(e){return 2===function(e){"string"==typeof e&&(e=[e]);const t=[ga,ba],i=e.filter(He).find((e=>t.includes(e)));let r=-1;i?.includes("v1")&&(r=1);i?.includes("v2")&&(r=2);return{versionNumber:r}}(e).versionNumber}function Js(e){return(e=e.replace(/-./g,(e=>e[1].toUpperCase()))).charAt(0).toUpperCase()+e.slice(1)}var Ys;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019",e.EcdsaSd2023="EcdsaSd2023"}(Ys||(Ys={}));class Gs{expires;validFrom;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[Ys.MerkleProof2017]:null,[Ys.MerkleProof2019]:null,[Ys.Ed25519Signature2020]:null,[Ys.EcdsaSecp256k1Signature2019]:null,[Ys.EcdsaSd2023]:null};proofVerifiers=[];verificationProcess;proofMap;proofPurpose;proofDomain;proofChallenge;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:a,validFrom:s,proofPurpose:c,proofDomain:l,proofChallenge:u}){this.expires=t,this.validFrom=s,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=a,this.proofPurpose=c,this.proofDomain=l,this.proofChallenge=u,this.documentToVerify=Object.assign({},e)}getVerificationSteps(){return this.verificationSteps}getSignersData(){return this.proofVerifiers.map((e=>({signingDate:e.getSigningDate(),signatureSuiteType:e.type,issuerPublicKey:e.getIssuerPublicKey(),issuerName:e.getIssuerName(),issuerProfileDomain:e.getIssuerProfileDomain(),issuerProfileUrl:e.getIssuerProfileUrl(),chain:e.getChain?.(),transactionId:e.getTransactionIdString?.(),transactionLink:e.getTransactionLink?.(),rawTransactionLink:e.getRawTransactionLink?.()})))}async init(){await this.instantiateProofVerifiers(),this.prepareVerificationProcess()}async verifyProof(){for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyProof()}async verify(e=()=>{}){this._stepCallback=e,this._stepsStatuses=[],await this.verifyProof();for(const e of this.verificationProcess){if(!this[e])return void console.error("verification logic for",e,"not implemented");await this[e]()}for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyIdentity();const t=this._stepsStatuses.find((e=>e.status===fs.FAILURE));return t?this._failed(t):this._succeed()}convertCryptosuiteToType(e){return Js(e)}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach((t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),"DataIntegrityProof"===i&&(i=this.convertCryptosuiteToType(t.cryptosuite)),Array.isArray(i)&&(i=i[0]),e.push(i)})),e}getProofMap(e){const t=new Map;return"proof"in e?Array.isArray(e.proof)?e.proof.forEach(((e,i)=>t.set(i,e))):t.set(0,e.proof):"signature"in e&&t.set(0,e.signature),t}async instantiateProofVerifiers(){this.proofMap=this.getProofMap(this.documentToVerify);const e=this.getProofTypes(),t=function(e=[],t=[]){return t.filter((t=>!e.includes(t)))}(Object.keys(this.supportedVerificationSuites),e);if(t.length)throw new Error(`No support for proof verification of type: ${t.join(", ")}`);await this.loadRequiredVerificationSuites(e),this.proofMap.forEach(((t,i)=>{const r={executeStep:this.executeStep.bind(this),document:this.documentToVerify,proof:t,explorerAPIs:this.explorerAPIs,issuer:this.issuer,proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))}));for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(Ys.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-Cgbk--lC-CKvOfXrT.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(Ys.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-Dhsn349H-DFyc-5gT.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(Ys.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-fyWut63D-R9eZ2oN0.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(Ys.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-Bk8_LQ8c-BqdRm-Jv.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}if(e.includes(Ys.EcdsaSd2023)){const{default:e}=await import("./EcdsaSd2023-BDSl7Ei2-BKyD2rP9.js");this.supportedVerificationSuites.EcdsaSd2023=e}}prepareVerificationProcess(){const e=Us.verifier.getVerificationMap({hasDid:!!this.issuer.didDocument,hasHashlinks:this.hashlinkVerifier?.hasHashlinksToVerify()??!1,hasValidFrom:!!this.validFrom,hasCredentialSchema:!!this.documentToVerify.credentialSchema,isVCV2:Ks(this.documentToVerify["@context"]),isVerifiablePresentation:Vs(this.documentToVerify),isIssuerProfileSigned:!!this.issuer.proof});this.verificationSteps=e.verificationMap,this.verificationProcess=e.verificationProcess,this.registerSignatureVerificationSteps(),this.registerIdentityVerificationSteps(),this.verificationSteps=this.verificationSteps.filter((e=>e.subSteps?.length>0||e.suites?.some((e=>e.subSteps.length>0))))}registerSignatureVerificationSteps(){const e=vs.proofVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[vs.proofVerification]:"getProofVerificationSteps",[vs.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map((i=>({proofType:i.type,subSteps:i[t[e]](e)})))}registerIdentityVerificationSteps(){const e=vs.identityVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,fs.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,fs.SUCCESS,i),this._stepsStatuses.push({code:e,status:fs.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,fs.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:fs.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(ys.checkImagesIntegrity,(async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch((e=>{throw console.error("hashlink verification error",e),new os(ys.checkImagesIntegrity,Qa("errors","checkImagesIntegrity"))}))}))}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-UjTyRcl_-BEBD8TO8.js");return void await this.executeStep(ys.checkRevokedStatus,(async()=>{await e(this.documentToVerify.credentialStatus)}))}const e=this.getRevocationListUrl();if(!e)return console.warn("No revocation list url was set on the issuer."),void await this.executeStep(ys.checkRevokedStatus,(()=>!0));const t=await this.executeStep(null,(async()=>await Us.verifier.getRevokedAssertions(e,this.id))),{default:i}=await import("./ensureNotRevoked-CdrYFvh7-DvMIgM4L.js");await this.executeStep(ys.checkRevokedStatus,(()=>{i(t,this.id)}))}async checkExpiresDate(){await this.executeStep(ys.checkExpiresDate,(()=>{!function(e=null){if(!e)return;const t=Es(e);if((new Date).getTime()>=t)throw new os(ys.checkExpiresDate,`${Qa("errors","ensureNotExpired")}${Us.i18n.getDateFormat(e)}`)}(this.expires)}))}async ensureValidityPeriodStarted(){await this.executeStep(ys.ensureValidityPeriodStarted,(()=>{!function(e=null){if(!e)return;if(Es(e)>(new Date).getTime())throw new os(ys.ensureValidityPeriodStarted,Qa("errors","ensureValidityPeriodStarted"))}(this.validFrom)}))}async validateDateFormat(){await this.executeStep(ys.validateDateFormat,(()=>{!function(e){for(const{dateTimeStamp:t,property:i}of e)if(!Ms(t))throw console.error("Date",t,"is not valid:",i),new os(ys.validateDateFormat,`${Qa("errors","validateDateFormat")} ${i}`)}(Us.verifier.getDatesToValidate(this.documentToVerify))}))}async checkCredentialSchemaConformity(){const{default:e}=await import("./checkCredentialSchemaConformity-CuuMYTl6-DqE6I7JD.js");await this.executeStep(ys.checkCredentialSchemaConformity,(async()=>{await e(this.documentToVerify.credentialSubject,this.documentToVerify.credentialSchema)}))}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-C87jwGUr-CpVyq-8H.js");await this.executeStep(ys.controlVerificationMethod,(()=>{e(this.issuer.didDocument,Ds(this.documentToVerify.proof))}))}async verifyIssuerProfile(){if(!this.issuer.proof)return;const{default:e}=await import("./verifyIssuerProfile-CYqfuwV1-DeQqsjiM.js");await this.executeStep(ys.verifyIssuerProfile,(async()=>{await e(this.issuer)}))}findStepFromVerificationProcess(e,t){return Us.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:fs.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some((e=>e.status===fs.FAILURE))}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?Us.chains.isMockChain(this.proofVerifiers[0].getChain())?Us.i18n.getComposedText("success","mocknet"):Us.i18n.getComposedText("success","blockchain"):{...Us.i18n.getComposedText("success","generic"),description:Us.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=Us.i18n.getComposedText("success","multisign")),this._setFinalStep({status:fs.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:vs.final,status:e,message:t}}_updateStatusCallback(e,t,i="",r=""){if(null!=e){const n=this.findStepFromVerificationProcess(e,i);if(void 0===n)return void console.warn("step with code",e,"was not found for suite",i,"ignoring but you should not.");const o={code:e,status:t,parentStep:n.parentStep,label:n.labelPending};r&&(o.errorMessage=r),this._stepCallback(o)}}}var Ws,Zs={exports:{}};var Xs,Qs=(Ws||(Ws=1,function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",o="[object Boolean]",a="[object Date]",s="[object Function]",c="[object GeneratorFunction]",l="[object Map]",u="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",I="[object Uint32Array]",T=/\w*$/,E=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,A={};A[n]=A["[object Array]"]=A[v]=A[y]=A[o]=A[a]=A[w]=A[x]=A[k]=A[_]=A[S]=A[l]=A[u]=A[d]=A[h]=A[f]=A[g]=A[b]=A[C]=A[P]=A[L]=A[I]=!0,A["[object Error]"]=A[s]=A[m]=!1;var D="object"==typeof ot&&ot&&ot.Object===Object&&ot,V="object"==typeof self&&self&&self.Object===Object&&self,R=D||V||Function("return this")(),j=t&&!t.nodeType&&t,O=j&&e&&!e.nodeType&&e,N=O&&O.exports===j;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function U(e,t,i,r){for(var n=-1,o=e?e.length:0;++n<o;)i=t(i,e[n],n,e);return i}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function H(e,t){return function(i){return e(t(i))}}function q(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var K,J=Array.prototype,Y=Function.prototype,G=Object.prototype,W=R["__core-js_shared__"],Z=(K=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=Y.toString,Q=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=N?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=H(Object.getPrototypeOf,Object),ae=Object.create,se=G.propertyIsEnumerable,ce=J.splice,le=Object.getOwnPropertySymbols,ue=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),pe=Oe(R,"DataView"),he=Oe(R,"Map"),fe=Oe(R,"Promise"),ge=Oe(R,"Set"),be=Oe(R,"WeakMap"),me=Oe(Object,"create"),ve=Be(pe),ye=Be(he),we=Be(fe),xe=Be(ge),ke=Be(be),_e=re?re.prototype:void 0,Se=_e?_e.valueOf:void 0;function Ce(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){this.__data__=new Pe(e)}function Te(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==n)}(e)?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],r=i.length,o=!!r;for(var a in e)!Q.call(e,a)||o&&("length"==a||$e(a,r))||i.push(a);return i}function Ee(e,t,i){var r=e[t];Q.call(e,t)&&Fe(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Me(e,t){for(var i=e.length;i--;)if(Fe(e[i][0],t))return i;return-1}function Ae(e,t,i,r,p,m,E){var M;if(r&&(M=m?r(e,p,m,E):r(e)),void 0!==M)return M;if(!Ye(e))return e;var D=He(e);if(D){if(M=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!t)return function(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}(e,M)}else{var V=ze(e),R=V==s||V==c;if(Ke(e))return function(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}(e,t);if(V==d||V==n||R&&!m){if(B(e))return m?e:{};if(M=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:Ye(t=oe(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Re(e,Ne(e),t)}(e,function(e,t){return e&&Re(t,Ge(t),e)}(M,e))}else{if(!A[V])return m?e:{};M=function(e,t,i,r){var n,s=e.constructor;switch(t){case v:return Ve(e);case o:case a:return new s(+e);case y:return function(e,t){var i=t?Ve(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case k:case _:case S:case C:case P:case L:case I:return function(e,t){var i=t?Ve(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case l:return function(e,t,i){var r=t?i(F(e),!0):F(e);return U(r,z,new e.constructor)}(e,r,i);case u:case g:return new s(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,i){var r=t?i(q(e),!0):q(e);return U(r,$,new e.constructor)}(e,r,i);case b:return n=e,Se?Object(Se.call(n)):{}}}(e,V,Ae,t)}}E||(E=new Ie);var j=E.get(e);if(j)return j;if(E.set(e,M),!D)var O=i?function(e){return function(e,t,i){var r=t(e);return He(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Ge,Ne)}(e):Ge(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(O||e,(function(n,o){O&&(n=e[o=n]),Ee(M,o,Ae(n,t,i,r,o,e,E))})),M}function De(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(Je(e)||B(e)?te:E).test(Be(e));var t}function Ve(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Re(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var a=t[n];Ee(i,a,e[a])}return i}function je(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function Oe(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return De(i)?i:void 0}Ce.prototype.clear=function(){this.__data__=me?me(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===i?void 0:r}return Q.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Pe.prototype.clear=function(){this.__data__=[]},Pe.prototype.delete=function(e){var t=this.__data__,i=Me(t,e);return!(i<0||(i==t.length-1?t.pop():ce.call(t,i,1),0))},Pe.prototype.get=function(e){var t=this.__data__,i=Me(t,e);return i<0?void 0:t[i][1]},Pe.prototype.has=function(e){return Me(this.__data__,e)>-1},Pe.prototype.set=function(e,t){var i=this.__data__,r=Me(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Le.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||Pe),string:new Ce}},Le.prototype.delete=function(e){return je(this,e).delete(e)},Le.prototype.get=function(e){return je(this,e).get(e)},Le.prototype.has=function(e){return je(this,e).has(e)},Le.prototype.set=function(e,t){return je(this,e).set(e,t),this},Ie.prototype.clear=function(){this.__data__=new Pe},Ie.prototype.delete=function(e){return this.__data__.delete(e)},Ie.prototype.get=function(e){return this.__data__.get(e)},Ie.prototype.has=function(e){return this.__data__.has(e)},Ie.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Pe){var r=i.__data__;if(!he||r.length<199)return r.push([e,t]),this;i=this.__data__=new Le(r)}return i.set(e,t),this};var Ne=le?H(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function $e(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Be(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(pe&&ze(new pe(new ArrayBuffer(1)))!=y||he&&ze(new he)!=l||fe&&ze(fe.resolve())!=p||ge&&ze(new ge)!=f||be&&ze(new be)!=m)&&(ze=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?Be(i):void 0;if(r)switch(r){case ve:return y;case ye:return l;case we:return p;case xe:return f;case ke:return m}return t});var He=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var Ke=ue||function(){return!1};function Je(e){var t=Ye(e)?ee.call(e):"";return t==s||t==c}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return qe(e)?Te(e):function(e){if(!Ue(e))return de(e);var t=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}e.exports=function(e){return Ae(e,!0,!0)}}(Zs,Zs.exports)),Zs.exports),ec=at(Qs);function tc(e){return ec(e)}function ic(e){return e===Object(e)}function rc(e){return[...e.matchAll(/hl:{1}[a-zA-Z0-9]+:{1}[a-zA-Z0-9]+/gm)].map((e=>e[0])).filter((e=>!!e))}async function nc(e,t){const i=rc(e);if(i.length){const r=await async function(e,t){return(await Promise.all(e.map((async e=>await t.decode(e))))).reduce((function(e,t){return e.push(t.meta.url[0]),e}),[])}(i,t);e=function(e,t,i){return t.forEach(((t,r)=>{e=e.replace(i[r],t)})),e}(e,r,i)}return e}class oc{certificateImage;certificateJson;description;display;expires;validFrom;explorerAPIs=[];id;isFormatValid;isVerifiablePresentation;issuedOn;issuer;locale;metadataJson;name;options;proofPurpose;proofDomain;proofChallenge;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verifiableCredentials;verificationSteps;verifier;verificationStatus;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(Us.i18n.getText("errors","certificateNotValid"))}this.certificateJson=tc(e),this.isVerifiablePresentation=Vs(this.certificateJson),this.isVerifiablePresentation&&(this.verifiableCredentials=this.certificateJson.verifiableCredential?.map((e=>new oc(e,t)))??[])}async init(){if(this.isVerifiablePresentation)for(const e of this.verifiableCredentials)await e.init();if(this.certificateJson.display?.content){rc(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-mEn5oMxx-0x0OtiE4.js").then((e=>{this.hashlinkVerifier=new e.HashlinkVerifier}))}await this.parseJson(this.certificateJson),this.verifier=new Gs({certificateJson:this.certificateJson,expires:this.expires,validFrom:this.validFrom,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:tc(this.explorerAPIs),proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){let t=await this.verifier.verify(e);if(this.setSigners(),this.isVerifiablePresentation){let e=0;console.log("VP has",this.verifiableCredentials.length,"credentials");for(const i of this.verifiableCredentials){e++,console.log("now verifying certificate",e,i.id);const r=await i.verify();console.log("verificationStatus",i.id,r),i.verificationStatus=r,r.status!==fs.SUCCESS&&(t={...t,status:fs.FAILURE,message:`Credential ${i.name?i.name+" ":""}with id ${i.id} failed verification. Error: ${r.message}`,errors:[r]})}}return this.verificationStatus=t,t}async parseJson(e){const t=await async function(e,t=""){try{const i=Hs(e["@context"]),r=await qs[i.versionNumber](e,t);return r.isFormatValid=!0,r}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e,this.locale);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},Ga,e),this.locale=Us.i18n.ensureIsSupported("auto"===this.options.locale?Us.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],this.proofPurpose=this.options.proofPurpose,this.proofDomain=this.options.domain,this.proofChallenge=this.options.challenge,e.didResolverUrl&&(Us.did.didResolver.url=e.didResolverUrl),Us.i18n.setLocale(this.locale)}async _setProperties({certificateImage:e,description:t,display:i,expires:r,validFrom:n,id:o,isFormatValid:a,issuedOn:s,issuer:c,metadataJson:l,name:u,recipientFullName:d,recordLink:p,revocationKey:h,sealImage:f,signature:g,signatureImage:b,subtitle:m}){this.isFormatValid=a,this.certificateImage=e,this.description=t,this.expires=r,this.validFrom=n,this.id=o,this.issuedOn=s,this.issuer=c,this.metadataJson=l,this.name=u,this.recipientFullName=d,this.recordLink=p,this.revocationKey=h,this.sealImage=f,this.signature=g,this.signatureImage=b,this.subtitle=m,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=tc(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await nc(t.content,this.hashlinkVerifier)),t}}!function(e){e.TEXT_HTML="text/html",e.IMAGE_PNG="image/png",e.IMAGE_JPEG="image/jpeg",e.IMAGE_GIF="image/gif",e.IMAGE_BMP="image/bmp",e.APPLICATION_PDF="application/pdf"}(Xs||(Xs={}));var ac=Object.freeze({__proto__:null,BLOCKCHAINS:Qe,CERTIFICATE_VERSIONS:Ge,get CONTENT_MEDIA_TYPES(){return Xs},Certificate:oc,STEPS:ks,SignatureImage:ns,get VERIFICATION_STATUSES(){return fs},VerificationSubstep:bs,getSupportedLanguages:es,isVerifiablePresentation:Vs,retrieveBlockcertsVersion:Hs});const sc=["text","image","signature","variable"];function cc(e){const t=(new DOMParser).parseFromString(e,Xs.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(sc.map((e=>`section[class*="${e}"]`)).join(", ")).length}const lc="?format=json";var uc=function(e,t){return uc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},uc(e,t)};function dc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}uc(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var pc=function(){return pc=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},pc.apply(this,arguments)};function hc(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function fc(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function gc(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function bc(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}"function"==typeof SuppressedError&&SuppressedError;var mc=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:cc,download:function(e){return e+lc},initializeVerificationSteps:function(e){const t=JSON.parse(JSON.stringify(e.verificationSteps));return t.map(((e,i)=>Object.assign(Object.assign({},e),{isLast:i===t.length-1,status:fs.DEFAULT})))},isPathToCertificateValidURI:function(e){return fc(e)||gc(e)},parse:function(e){return hc(this,arguments,void 0,(function*(e,t={}){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then((function(){return ac}));let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-CEj3k9G6.js").then((function(e){return e.h}));n=new i(e,t)}else n=new r(e,t);return yield n.init(),{certificateDefinition:n}}catch(e){return console.error(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcerts",additionalErrorInfo:e.message}}}))},read:function(e){return hc(this,void 0,void 0,(function*(){if(!e)return;const t=yield function(e){return hc(this,void 0,void 0,(function*(){return yield new Promise((function(t,i){const r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=r.onabort=i,r.readAsText(e)}))}))}(e);return t}))},retrieve:function(e){return hc(this,void 0,void 0,(function*(){if(!fc(e)&&!gc(e))return console.error("Invalid url to retrieve:",e),null;const t=e+lc;return yield fetch(t).then((e=>hc(this,void 0,void 0,(function*(){return yield e.text()})))).then((e=>{try{return{certificateDefinition:JSON.parse(e)}}catch(e){return console.log(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}})).catch(bc)}))}});var vc=((e={})=>{if(!window.Proxy){const t=function(){let e=null;function t(e){return!!e&&("object"==typeof e||"function"==typeof e)}const i=function(i,r){if(!t(i)||!t(r))throw new TypeError("Cannot create proxy with a non-object as target or handler");let n=function(){};e=function(){n=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}};const o=r;r={get:null,set:null,apply:null,construct:null};for(const e in o)e in r&&(r[e]=o[e]);"function"==typeof o&&(r.apply=o.apply.bind(o));let a=this,s=!1,c=!1;"function"==typeof i?(a=function(){const e=this&&this.constructor===a,t=Array.prototype.slice.call(arguments);return n(e?"construct":"apply"),e&&r.construct?r.construct.call(this,i,t):!e&&r.apply?r.apply(i,this,t):e?(t.unshift(i),new(i.bind.apply(i,t))):i.apply(this,t)},s=!0):i instanceof Array&&(a=[],c=!0);const l=r.get?function(e){return n("get"),r.get(this,e,a)}:function(e){return n("get"),this[e]},u=r.set?function(e,t){n("set"),r.set(this,e,t,a)}:function(e,t){n("set"),this[e]=t},d=Object.getOwnPropertyNames(i),p={};d.forEach((function(e){if((s||c)&&e in a)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:l.bind(i,e),set:u.bind(i,e)};Object.defineProperty(a,e,t),p[e]=!0}));let h=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(a,Object.getPrototypeOf(i)):a.__proto__?a.__proto__=i.__proto__:h=!1,r.get||!h)for(const e in i)p[e]||Object.defineProperty(a,e,{get:l.bind(i,e)});return Object.seal(i),Object.seal(a),a};return i.revocable=function(t,r){return{proxy:new i(t,r),revoke:e}},i}();return new t(e,Be)}return new Proxy(e,Be)})({certificates:mc,events:Object.freeze({__proto__:null,dispatch:function(e="",t=null,i){if(!e||"string"!=typeof e)return;if(!t||"object"!=typeof t)return;const r=new CustomEvent(e,{detail:Object.assign({certificateDefinition:t},i)});window.dispatchEvent(r)}})});function yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wc={exports:{}},xc={},kc={exports:{}},_c={};function Sc(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var Cc=/javascript\s*\:/gim;_c.whiteList=Sc(),_c.getDefaultWhiteList=Sc,_c.onAttr=function(e,t,i){},_c.onIgnoreAttr=function(e,t,i){},_c.safeAttrValue=function(e,t){return Cc.test(t)?"":t};var Pc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}};var Lc=function(e,t){";"!==(e=Pc.trimRight(e))[e.length-1]&&(e+=";");var i=e.length,r=!1,n=0,o=0,a="";function s(){if(!r){var i=Pc.trim(e.slice(n,o)),s=i.indexOf(":");if(-1!==s){var c=Pc.trim(i.slice(0,s)),l=Pc.trim(i.slice(s+1));if(c){var u=t(n,a.length,c,l,i);u&&(a+=u+"; ")}}}n=o+1}for(;o<i;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var l=e.indexOf("*/",o+2);if(-1===l)break;n=(o=l+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||s():"\n"===c&&s()}return Pc.trim(a)},Ic=_c,Tc=Lc;function Ec(e){return null==e}function Mc(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).whiteList=e.whiteList||Ic.whiteList,e.onAttr=e.onAttr||Ic.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ic.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ic.safeAttrValue,this.options=e}Mc.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onAttr,n=t.onIgnoreAttr,o=t.safeAttrValue;return Tc(e,(function(e,t,a,s,c){var l=i[a],u=!1;if(!0===l?u=l:"function"==typeof l?u=l(s):l instanceof RegExp&&(u=l.test(s)),!0!==u&&(u=!1),s=o(a,s)){var d,p={position:t,sourcePosition:e,source:c,isWhite:u};return u?Ec(d=r(a,s,p))?a+":"+s:d:Ec(d=n(a,s,p))?void 0:d}}))};var Ac=Mc;!function(e,t){var i=_c,r=Ac;for(var n in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,i)t[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(kc,kc.exports);var Dc=kc.exports,Vc=yc(Dc),Rc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},jc=Dc.FilterCSS,Oc=Dc.getDefaultWhiteList,Nc=Rc;function zc(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var $c=new jc;function Uc(e){return e.replace(Bc,"&lt;").replace(Fc,"&gt;")}var Bc=/</g,Fc=/>/g,Hc=/"/g,qc=/&quot;/g,Kc=/&#([a-zA-Z0-9]*);?/gim,Jc=/&colon;?/gim,Yc=/&newline;?/gim,Gc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Wc=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Zc=/u\s*r\s*l\s*\(.*/gi;function Xc(e){return e.replace(Hc,"&quot;")}function Qc(e){return e.replace(qc,'"')}function el(e){return e.replace(Kc,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function tl(e){return e.replace(Jc,":").replace(Yc," ")}function il(e){for(var t="",i=0,r=e.length;i<r;i++)t+=e.charCodeAt(i)<32?" ":e.charAt(i);return Nc.trim(t)}function rl(e){return e=il(e=tl(e=el(e=Qc(e))))}function nl(e){return e=Uc(e=Xc(e))}xc.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},xc.getDefaultWhiteList=zc,xc.onTag=function(e,t,i){},xc.onIgnoreTag=function(e,t,i){},xc.onTagAttr=function(e,t,i){},xc.onIgnoreTagAttr=function(e,t,i){},xc.safeAttrValue=function(e,t,i,r){if(i=rl(i),"href"===t||"src"===t){if("#"===(i=Nc.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(Gc.lastIndex=0,Gc.test(i))return""}else if("style"===t){if(Wc.lastIndex=0,Wc.test(i))return"";if(Zc.lastIndex=0,Zc.test(i)&&(Gc.lastIndex=0,Gc.test(i)))return"";!1!==r&&(i=(r=r||$c).process(i))}return i=nl(i)},xc.escapeHtml=Uc,xc.escapeQuote=Xc,xc.unescapeQuote=Qc,xc.escapeHtmlEntities=el,xc.escapeDangerHtml5Entities=tl,xc.clearNonPrintableCharacter=il,xc.friendlyAttrValue=rl,xc.escapeAttrValue=nl,xc.onIgnoreTagStripAll=function(){return""},xc.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var i=!Array.isArray(e),r=[],n=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!i||-1!==Nc.indexOf(e,t)}(o)){if(s.isClosing){var c="[/removed]",l=s.position+10;return r.push([!1!==n?n:s.position,l]),n=!1,c}return n||(n=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",i=0;return Nc.forEach(r,(function(r){t+=e.slice(i,r[0]),i=r[1]})),t+=e.slice(i)}}},xc.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var r=e.indexOf("\x3c!--",i);if(-1===r){t+=e.slice(i);break}t+=e.slice(i,r);var n=e.indexOf("--\x3e",r);if(-1===n)break;i=n+3}return t},xc.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},xc.cssFilter=$c,xc.getDefaultCSSWhiteList=Oc;var ol={},al=Rc;function sl(e){var t,i=al.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=al.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function cl(e){return"</"===e.slice(0,2)}var ll=/[^a-zA-Z0-9\\_:.-]/gim;function ul(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function dl(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function pl(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function hl(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}ol.parseTag=function(e,t,i){var r="",n=0,o=!1,a=!1,s=0,c=e.length,l="",u="";e:for(s=0;s<c;s++){var d=e.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){r+=i(e.slice(n,s)),o=s,n=s;continue}if(">"===d){r+=i(e.slice(n,o)),l=sl(u=e.slice(o,s+1)),r+=t(o,r.length,l,u,cl(u)),n=s+1,o=!1;continue}if('"'===d||"'"===d)for(var p=1,h=e.charAt(s-p);""===h.trim()||"="===h;){if("="===h){a=d;continue e}h=e.charAt(s-++p)}}else if(d===a){a=!1;continue}}return n<e.length&&(r+=i(e.substr(n))),r},ol.parseAttr=function(e,t){var i=0,r=0,n=[],o=!1,a=e.length;function s(e,i){if(!((e=(e=al.trim(e)).replace(ll,"").toLowerCase()).length<1)){var r=t(e,i||"");r&&n.push(r)}}for(var c=0;c<a;c++){var l,u=e.charAt(c);if(!1!==o||"="!==u)if(!1===o||c!==r)if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(l=ul(e,c))){s(al.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=l-1;continue}if(-1===(l=pl(e,c-1))){s(o,hl(al.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}else;else{if(-1===(l=e.indexOf(u,c+1)))break;s(o,al.trim(e.slice(r+1,l))),o=!1,i=(c=l)+1}else o=e.slice(i,c),i=c+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:dl(e,c+1)}return i<e.length&&(!1===o?s(e.slice(i)):s(o,hl(al.trim(e.slice(i))))),al.trim(n.join(" "))};var fl=Dc.FilterCSS,gl=xc,bl=ol,ml=bl.parseTag,vl=bl.parseAttr,yl=Rc;function wl(e){return null==e}function xl(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=gl.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(e.whiteList||e.allowList):e.whiteList=gl.whiteList,e.onTag=e.onTag||gl.onTag,e.onTagAttr=e.onTagAttr||gl.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||gl.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||gl.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||gl.safeAttrValue,e.escapeHtml=e.escapeHtml||gl.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new fl(e.css))}xl.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onTag,n=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,s=t.safeAttrValue,c=t.escapeHtml,l=this.cssFilter;t.stripBlankChar&&(e=gl.stripBlankChar(e)),t.allowCommentTag||(e=gl.stripCommentTag(e));var u=!1;t.stripIgnoreTagBody&&(u=gl.StripTagBody(t.stripIgnoreTagBody,n),n=u.onIgnoreTag);var d=ml(e,(function(e,t,u,d,p){var h={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(i,u)},f=r(u,d,h);if(!wl(f))return f;if(h.isWhite){if(h.isClosing)return"</"+u+">";var g=function(e){var t=yl.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=yl.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=yl.trim(e.slice(0,-1))),{html:e,closing:i}}(d),b=i[u],m=vl(g.html,(function(e,t){var i=-1!==yl.indexOf(b,e),r=o(u,e,t,i);return wl(r)?i?(t=s(u,e,t,l))?e+'="'+t+'"':e:wl(r=a(u,e,t,i))?void 0:r:r}));return d="<"+u,m&&(d+=" "+m),g.closing&&(d+=" /"),d+=">"}return wl(f=n(u,d,h))?c(d):f}),c);return u&&(d=u.remove(d)),d};var kl=xl;!function(e,t){var i=xc,r=ol,n=kl;function o(e,t){return new n(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=n,function(){for(var e in i)t[e]=i[e];for(var n in r)t[n]=r[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(wc,wc.exports);var _l=yc(wc.exports);const Sl={...Vc.getDefaultWhiteList(),bottom:!0,left:!0,float:!0,overflow:!0,position:!0,right:!0,top:!0,transform:!0,opacity:!0,"transform-origin":!0,"flex-direction":!0,"flex-wrap":!0,"justify-content":!0,"align-items":!0,"white-space":!0,"line-height":!0,"grid-template-columns":!0,"grid-template-rows":!0,"grid-column":!0,"grid-row":!0,"grid-area":!0,"align-self":!0,"justify-self":!0,span:!0};var Cl=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Pl=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ll=/u\s*r\s*l\s*\(.*/gi;const Il={whiteList:function(){const e=_l.getDefaultWhiteList();return Object.keys(e).forEach((t=>{e[t].push("style"),e[t].push("class"),e[t].push("download")})),e}(),css:!1,stripIgnoreTagBody:!0,onTagAttr:function(e,t,i,r){if("style"===t)return`${t}="${Vc(i,{whiteList:Sl}).replace(/; /g,";")}"`;if("img"===e&&"src"===t&&function(e){return!!e.match(/^data:.+;base64,/)}(i)){const e=function(e){return e.split("base64,")[1]}(i);try{return atob(e),`${t}="${i}"`}catch(e){return t}}},safeAttrValue:function(e,t,i,r){if(i=_l.friendlyAttrValue(i),"href"===t||"src"===t){if("#"===(i=function(e){if(String.prototype.trim)return e.trim();return e.replace(/(^\s*)|(\s*$)/g,"")}(i)))return"#";if(!function(e){return["http://","https://","mailto:","tel:","data:","#","/"].some((t=>e.substr(0,t.length)===t))}(i))return""}else if("background"===t){if(Cl.lastIndex=0,Cl.test(i))return""}else if("style"===t){if(Pl.lastIndex=0,Pl.test(i))return"";if(Ll.lastIndex=0,Ll.test(i)&&(Cl.lastIndex=0,Cl.test(i)))return"";!1!==r&&(i=(r=r||_l.getDefaultCSSWhiteList()).process(i))}return i=_l.escapeAttrValue(i)}},Tl=new _l.FilterXSS(Il);function El(e){return Tl.process(e)}const Ml="en";var Al={locale:Ml};const Dl={en:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"The following error occurred:",invalidBlockcerts:"Not a valid Blockcerts credential. Please check with the issuer or recipient that has provided this credential.",invalidBlockcertsUrl:"Not a valid credential URL.",invalidFormatDragAndDrop:"Only JSON files are accepted",invalidUrl:"This does not seem to be a valid URL.",noIssuerName:"No name provided",noMetadata:"No metadata specified for this record",noShareUrl:"No URL to share!",noTransactionId:"No transaction ID"},text:{brandName:"Blockcerts",blockcertsHint:"Visit Blockcerts website",by:"by",certified:"Certified by",closeButton:"Click to close",downloadLink:"Download Record in JSON format",downloadPDFLink:"Download Record in PDF Format",downloadPDFLinkIsLoading:"Generating PDF...",dragAndDropHint:"(you can also drag & drop your file).",fileUpload:"Choose JSON file",issued:"Issued on",issueDate:"Issue Date",issuerName:"Issuer",issuerPublicKey:"Issuer's public key",issuerProfileDomain:"Issuer's information",item:"Item",itemPlural:"Items",metadataButton:"View Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Recipient",share:"Share on",shareButton:"Share on Social Networks",signatureSuiteType:"Digital signature type",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signed:"Signed by",substepsListClose:"Hide",substepsListHint:"Toggle open list of substeps",transactionId:"Transaction ID",urlInput:"Enter the certificate URL",urlInputPlaceholder:"Certificate URL",verificationStepProgress:"Verifying step...",verify:"Verify",verifyAgain:"Verify again",verifyOther:"Verify another record",viewRecord:"View Record"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"},numbers:{ordinal:["th","st","nd","rd"]}},es:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"El siguiente error ocurrió:",invalidBlockcerts:"No es una credencial válida de Blockcerts. Verifique con el emisor o el destinatario que ha proporcionado esta credencial.",invalidBlockcertsUrl:"No es URL de certificado valido.",invalidFormatDragAndDrop:"Solo se aceptan archivos JSON",invalidUrl:"Esto no parece ser un URL válido.",noIssuerName:"No nombre comunicado",noMetadata:"No se han especificado metadatos para este registro",noShareUrl:"No hay URL para compartir!",noTransactionId:"No ID de transacción"},text:{brandName:"Blockcerts",blockcertsHint:"Visite el sitio web de Blockcerts",by:"por",certified:"Certificado por",closeButton:"Haz Click para cerrar",downloadLink:"Descarga el Registro en formato JSON",downloadPDFLink:"Descarga el Registro en formato PDF",downloadPDFLinkIsLoading:"Generando PDF...",dragAndDropHint:"(también puedes arrastrar y soltar tu archivo).",fileUpload:"Escoge archivo JSON",issued:"Emitido el",issueDate:"Fecha de Emisión",issuerName:"Emisor",issuerPublicKey:"Llave publica del Emisor",issuerProfileDomain:"Información del Emisor",item:"Elemento",itemPlural:"Elementos",metadataButton:"Ver Metadata",metadataTitle:"Metadata",motto:"Blockcerts, El Estándar Abierto para Credenciales Blockchain",recipient:"Recipiente",share:"Comparte en",shareButton:"Comparte en Redes Sociales",signatureSuiteType:"Tipo de firma digital",signed:"Firmado Por",signatureStatusSuccess:"La verificación de esta firma digital ha tenido éxito",signatureStatusTestSuccess:"La verificación de esta firma digital ha tenido éxito pero se utilizó una cadena de test",signatureStatusFailure:"Error en la verificación de esta firma digital",substepsListClose:"Esconde",substepsListHint:"Pasa lista abierta de sub-pasos",transactionId:"ID de Transacción",urlInput:"Ingrese el URL del certificado",urlInputPlaceholder:"Certificado del URL",verificationStepProgress:"Paso de verificación...",verify:"Verifica",verifyAgain:"Verifica nuevamente",verifyOther:"Verifica otro registro",viewRecord:"Ver Registro"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"},numbers:{ordinal:"°"}},fr:{errors:{errorLabel:"Erreur",additionalErrorInfoLabel:"Cette erreur s'est produite :",invalidBlockcerts:"Ceci n'est pas un certificat Blockcerts valide. Veuillez s'il vous plaît contrôler avec l'organisme émetteur ou le récipiendaire de ce certificat.",invalidBlockcertsUrl:"Ceci n'est pas une URL de certificat valide.",invalidFormatDragAndDrop:"Seul le format JSON est accepté",invalidUrl:"URL invalide",noIssuerName:"Pas de nom fourni",noMetadata:"Ce certificat ne contient pas de métadata",noShareUrl:"Pas d'URL à partager!",noTransactionId:"Pas d'identifiant de transaction"},text:{brandName:"Blockcerts",blockcertsHint:"Visiter le site de Blockcerts",by:"par",certified:"Certifié par",closeButton:"Cliquer pour fermer",downloadLink:"Télécharger le certificat au format JSON",downloadPDFLink:"Télécharger le certificat au format PDF",downloadPDFLinkIsLoading:"Création du PDF...",dragAndDropHint:"(vous pouvez aussi glisser et déposer votre fichier).",fileUpload:"Choisir un fichier JSON",issued:"Émis le",issueDate:"Date d'émission",issuerName:"Émetteur",issuerPublicKey:"Clé publique de l'émetteur",issuerProfileDomain:"Profil de l'émetteur",item:"point contrôlé",itemPlural:"points contrôlés",metadataButton:"Voir les métadata",metadataTitle:"Métadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titulaire",share:"Partager sur",shareButton:"Partager sur les réseaux sociaux",signatureSuiteType:"Type de signature numérique",signed:"Signé par",signatureStatusSuccess:"Cette signature a été vérifiée avec succès",signatureStatusTestSuccess:"Cette signature a été vérifiée avec succès mais la blockchain utilisée est de test",signatureStatusFailure:"Erreur durant la vérification de cette signature",substepsListClose:"Fermer",substepsListHint:"Afficher les sous-étapes",transactionId:"Identifiant de transaction",urlInput:"Entrez l'URL du certificat",urlInputPlaceholder:"URL du certificat",verificationStepProgress:"Vérification en cours...",verify:"Vérifier",verifyAgain:"Vérifier de nouveau",verifyOther:"Vérifier un autre certificat",viewRecord:"Voir le certificat"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"},numbers:{ordinal:["ème","er"]}},it:{errors:{errorLabel:"Errore",additionalErrorInfoLabel:"Si è verificato il seguente errore:",invalidBlockcerts:"Non è una definizione valida di Blockcerts.",invalidBlockcertsUrl:"Non è un URL di certificato valido.",invalidFormatDragAndDrop:"Sono accettati solo file JSON",invalidUrl:"Questo non sembra essere un URL valido.",noIssuerName:"No name provided",noMetadata:"Nessun Metadata specificato per questo record",noShareUrl:"Non c'è un URL da condividere!",noTransactionId:"Nessun ID transazione"},text:{brandName:"Blockcerts",blockcertsHint:"Visita il sito Web Blockcerts",by:"da",certified:"Certificato da",closeButton:"Fai clic per chiudere",downloadLink:"Scarica il Record in formato JSON",downloadPDFLink:"Scarica il Record in formato JSON",downloadPDFLinkIsLoading:"Generazione PDF...",dragAndDropHint:"(puoi anche trascinare il file).",fileUpload:"Scegli il file JSON",issued:"Rilasciato il",issueDate:"Data",issuerName:"Organizzazione Issuer",issuerPublicKey:"Chiave pubblica del Issuer",issuerProfileDomain:"Informazzione del Issuer",item:"Elemento",itemPlural:"Elementi",metadataButton:"Visualizza Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titolare",share:"Condividi",shareButton:"Condividi sui Social Network",signed:"Firmato da",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signatureSuiteType:"Digital signature type",substepsListClose:"Nascondi",substepsListHint:"Mostra gli step secondari",transactionId:"ID transazione",urlInput:"Inserisci l'URL del certificato",urlInputPlaceholder:"URL del certificato",verificationStepProgress:"Step di verifica...",verify:"Verifica",verifyAgain:"Verifica di nuovo",verifyOther:"Verifica un altro record",viewRecord:"Visualizza il Record"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"},numbers:{ordinal:"°"}},ja:{errors:{errorLabel:"エラー",additionalErrorInfoLabel:"次のエラーが発生しました:",invalidBlockcerts:"この証明書は有効なブロックサーツ証明書ではありません。発行者、もしくはこの証明書を提供した取得者にお問合せください。",invalidBlockcertsUrl:"有効な証明書URLではありません。",invalidFormatDragAndDrop:"JSONファイルしか受理できません",invalidUrl:"このURLは無効のようです。",noIssuerName:"名前が提供されていません",noMetadata:"この証明書に該当するメタデータがありません",noShareUrl:"シェアできるURLがありません!",noTransactionId:"取引IDがありません"},text:{brandName:"Blockcerts",blockcertsHint:"Blockcertsのホームページへ移動",by:" 発行者:",certified:"証明者:",closeButton:"クリックで閉じる",downloadLink:"JSON形式で証明書をダウンロード",downloadPDFLink:"PDF形式で証明書をダウンロード",downloadPDFLinkIsLoading:"PDFを生成中...",dragAndDropHint:"(ファイルのドラッグ&ドロップも可)。",fileUpload:"JSONファイルの選択",issued:"発行時:",issueDate:"発行日:",issuerName:"発行者",issuerPublicKey:"発行者の公開鍵",issuerProfileDomain:"発行者情報",item:"項目",itemPlural:"項目",metadataButton:"メタデータの閲覧",metadataTitle:"メタデータ",motto:"Blockcerts:ブロックチェーン証明書のオープンスタンダード",recipient:"取得者",share:"シェア先:",shareButton:"SNSでシェア",signatureSuiteType:"デジタル署名の種類",signatureStatusSuccess:"この署名の認証に成功しました",signatureStatusTestSuccess:"この署名の認証に成功しましたが、発行は試用のブロックチェーンで行われました。",signatureStatusFailure:"この署名の認証中にエラーが発生しました",signed:"署名者:",substepsListClose:"閉じる",substepsListHint:"サブステップのリストを開く",transactionId:"取引ID",urlInput:"証明書URLの入力",urlInputPlaceholder:"証明書URL",verificationStepProgress:"認証ステップを実行中...",verify:"認証する",verifyAgain:"もう一度認証する",verifyOther:"別の証明書を認証する",viewRecord:"証明書を閲覧する"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"},numbers:{ordinal:["番目","番目","番目","番目"]}}};function Vl(){return Dl}function Rl(e,t,i,r){if(!e)return"";if(e.includes(".")){const i=e.split(".");e=i[0],t=i[1]}if(!t)return"";i&&r>1&&(t+="Plural");const n=Vl();return n[Al.locale]?n[Al.locale][e]?n[Al.locale][e][t]?n[Al.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function jl(e){const t=Rl("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=Rl("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r}function Ol(e){return e.display}function Nl(e){var t;return null!==(t=null==e?void 0:e.content)&&void 0!==t?t:""}function zl(e){return null==e?void 0:e.contentMediaType}function $l(e){var t;return null!==(t=null==e?void 0:e.contentEncoding)&&void 0!==t?t:""}function Ul(e){return e.certificateDefinition}function Bl(e){const t=Ul(e);return t?t.signers:[]}function Fl(e){const t=Ul(e);return t?t.issuedOn:""}function Hl(e){return Ul(e)?jl(Fl(e)):""}function ql(e){const t=Ul(e);return t?t.recipientFullName:""}function Kl(e){var t;const i=Ul(e);return i&&null!==(t=i.name)&&void 0!==t?t:""}function Jl(e){const t=Ul(e);return t?t.issuer.name:""}function Yl(e){const t=Ul(e);return t?t.issuer.image:""}function Gl(e){const t=Ul(e);return!!t&&t.isVerifiablePresentation}function Wl(e){const t=Ul(e);return t?t.verifiableCredentials:[]}function Zl(e){return e.verificationStatus}function Xl(e){const t=function(e){const t=Ul(e);if(t)return t.certificateImage;return""}(e),i=Kl(e),r=function(e){const t=Ul(e);if(t)return t.subtitle;return""}(e),n=vu(e),o=function(e){const t=Ul(e);if(t)return t.sealImage;return""}(e),a=function(e){const t=Ul(e);if(t)return t.signatureImage;return null}(e),s=ql(e),c=Jl(e),l=a.map((e=>`\n <li class='buv-c-full-certificate-signatures__signature'>\n <img class='buv-c-full-certificate-img--secondary' src='${e.image}' alt='${Rl("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `));let u="";return t&&(u+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),u+=`\n <div class="buv-c-full-certificate__titles">\n ${s?`<h1 class='buv-c-full-certificate__title buv-c-full-certificate__title--name'>${s}</h1>`:""}\n ${i?`<h2 class='buv-c-full-certificate__title buv-c-full-certificate__title--main'>${i}</h2>`:""}\n ${r?`<h3 class='buv-c-full-certificate__title buv-c-full-certificate__title--sub'>${r}</h3>`:""}\n </div>\n `,n&&(u+=`<p class='buv-c-full-certificate__description'>${n}</p>`),l.length&&(u+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${l.join("\n")}\n </ul>\n `),o&&(u+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${Rl("text.certified")} ${c}'/>`),u}function Ql(e){const t=Ul(e);if(!t)return"";let{displayHtml:i}=t.certificateJson;return i?El(i):Gl(e)?"<div></div>":(i=eu(t),i||Xl(e))}function eu(e){const t=Ol(e);if(t)switch(zl(t)){case Xs.TEXT_HTML:return El(t.content);case Xs.IMAGE_PNG:case Xs.IMAGE_JPEG:case Xs.IMAGE_GIF:case Xs.IMAGE_BMP:return`<img src="data:${zl(t)};${$l(t)},${Nl(t)}"/>`;case Xs.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${zl(t)};${$l(t)},${Nl(t)}"/>`;default:return""}}function tu(e){const t=Ul(e);return t&&fc(t.recordLink)?t.recordLink:""}function iu(e){const t=tu(e);return t?vc.certificates.download(t):""}function ru(e){const t=Ul(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function nu(e){var t;const i=Bl(e);return 0===i.length?null!==(t=mu(e,"transactionLink"))&&void 0!==t?t:[]:i.map((e=>e.transactionLink))}function ou(e){var t;const i=Bl(e);return 0===i.length?null!==(t=mu(e,"transactionId"))&&void 0!==t?t:[]:i.map((e=>e.transactionId))}function au(e){const t=Bl(e);if(0===t.length){const t=mu(e,"chain");return t?t.map((e=>null==e?void 0:e.name)):[]}return t.map((e=>{var t;return null===(t=e.chain)||void 0===t?void 0:t.name}))}function su(e){return au(e).some((e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet"))))}function cu(e,t){const i=au(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function lu(e){return e.verifiedSteps||[]}function uu(e,t){return lu(e).find((e=>e.code===t))}function du(e){return lu(e).some((e=>e.status===fs.FAILURE))}function pu(e){return e.finalStep}function hu(e){return Bl(e).map((e=>e.issuerPublicKey))}function fu(e){return Bl(e).map((e=>e.issuerProfileUrl))}function gu(e){return Bl(e).map((e=>e.issuerProfileDomain))}function bu(e){return Bl(e).map((e=>e.signatureSuiteType))}function mu(e,t){const i=Ul(e);return i?[i[t]]:null}function vu(e){var t;const i=Ul(e);return i&&null!==(t=i.description)&&void 0!==t?t:""}function yu(e){return e.isGeneratingPDF}function wu(e,t){switch(t.type){case Ve:return function(e,t){const{resetSteps:i}=t.payload;return Object.assign(Object.assign({},e),{verifiedSteps:i})}(e,t);case Te:return function(e,t){return Object.assign(Object.assign({},e),t.payload.options)}(e,t);case Ee:return function(e,t){return Object.assign(Object.assign(Object.assign({},e),t.payload),t.payload.certificateDefinition&&{verifiedSteps:vc.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case Me:return function(e,t){return Object.assign(Object.assign({},e),{certificateDefinition:t.payload.definition})}(e,t);case Ae:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{certificateUrl:t.payload.url})})}(e,t);case je:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return uu(e,i).status=r,e}(e,t);case De:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case ze:return function(e,t){const{errorMessage:i,additionalErrorInfo:r}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i,additionalErrorInfo:r})}(e,t);case $e:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case Re:return function(e,t){const{parentStep:i}=t.payload;return function(e,t){var i;let r=e.subSteps.findIndex((e=>e.code===t.code));r>-1?e.subSteps[r]=t:(null===(i=e.suites)||void 0===i?void 0:i.length)&&e.suites.forEach((e=>{r=e.subSteps.findIndex((e=>e.code===t.code)),r>-1&&(e.subSteps[r]=t)}))}(uu(e,i),t.payload),e}(e,t);case Oe:return function(e,t){return Object.assign(Object.assign({},e),{verificationStatus:t.payload.status})}(e,t);case Ne:return function(e,t){return Object.assign(Object.assign({},e),{finalStep:t.payload.finalStep})}(e,t);case Ue:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}var xu,ku;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(xu||(xu={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(ku||(ku={}));const _u=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:fs.DEFAULT,showVerificationModal:!1,displayMode:"card",disableDownloadPdf:!1,theme:ku.BRIGHT},e)}()){return ke(wu,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ve(15))};const a={getState:n.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...i)=>e(t(...i))))}(...s)(n.dispatch),{...n,dispatch:o}}}(...[Ce]))}();function Su(e,{mapDispatchToProps:t={},mapStateToProps:i=()=>({}),ownProps:r={}}){return class extends(me(_u)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return _e(e,t);if("object"!=typeof e||null===e)throw new Error(ve(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=_e(n,t))}return i}(t,_u.dispatch)}mapStateToProps(e){return i(_u.getState(),e)}static get properties(){return r}_render(t){const i=Object.assign(Object.assign(Object.assign({},this.mapDispatchToProps()),this.mapStateToProps(t)),t);return de`${e(i)}`}_stateChanged(e){this._requestRender()}}}function Cu(e,t){return{type:ze,payload:{errorMessage:e,additionalErrorInfo:t}}}function Pu(e){return e.status===fs.SUCCESS}function Lu(e){return e.status===fs.FAILURE}function Iu(e){return function(t,i){if(null==e)return;const r=uu(i(),e);let n=r.status;n===fs.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(Pu)),r||e.subSteps.some(Pu)}(r)&&(n=fs.STARTING),n!==fs.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).every(Pu)),r&&e.subSteps.every(Pu)}(r)&&(n=fs.SUCCESS),function(e){var t,i;let r=!1;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(Lu)),r||e.subSteps.some(Lu)}(r)&&(n=fs.FAILURE),t({type:je,payload:{parentStepCode:e,status:n}})}}class Tu{constructor(){this.queue=[],this.dispatchCb=null,this.isExecuting=!1,this.intervalId=0,this.dispatchNext=this.dispatchNext.bind(this)}registerCb(e){this.dispatchCb=e}push(e){e&&this.queue.push(e)}dispatchNext(){const e=this.queue.shift();e?this.dispatchCb(e):this.intervalId&&(this.isExecuting=!1,clearInterval(this.intervalId))}execute(){!this.isExecuting&&this.queue.length&&(this.isExecuting=!0,this.intervalId=setInterval(this.dispatchNext,200))}}const Eu=new Tu;function Mu(e){return function(t,i){const r=function(e){return function(t){e({type:Re,payload:t}),e(Iu(t.parentStep))}}(t);Eu.dispatchCb||Eu.registerCb(r),Eu.push(e),Eu.execute()}}function Au(){return function(e,t){const i=Ul(t());let r=[];i&&(r=vc.certificates.initializeVerificationSteps(i)),e({type:Ve,payload:{resetSteps:r}})}}function Du(e){return{type:Oe,payload:{status:e}}}function Vu(e){return e.disableVerify}function Ru(e){return e.allowDownload}function ju(e){return e.disableDownloadPdf}function Ou(e){return e.allowSocialShare}function Nu(e){return e.showMetadata}function zu(e){return e.displayMode}function $u(e){return e.theme}function Uu(e){return e.locale}function Bu(e){return e.explorerAPIs}function Fu(e){return e.clickableUrls}function Hu(e){return e.didResolverUrl}function qu(e){return"string"==typeof e&&(e={label:e,description:""}),{type:Ne,payload:{finalStep:e}}}function Ku(){return function(e,t){return hc(this,void 0,void 0,(function*(){const i=t();if(Vu(i))return void console.warn("Verification is disabled");e({type:"VERIFY_CERTIFICATE"}),e(Du(fs.STARTING)),e(Au());const r=Ul(i);if(r){vc.events.dispatch("certificate-verify",r);const t=yield r.verify((t=>{e(Mu(t))}));e(qu(t.message)),e(Du(t.status))}}))}}function Ju(e){return{type:$e,payload:{showVerificationModal:e}}}function Yu(e){return function(t,i){return hc(this,void 0,void 0,(function*(){const r=i(),n={locale:Uu(r),explorerAPIs:Bu(r),didResolverUrl:Hu(r)},{certificateDefinition:o,errorMessage:a,additionalErrorInfo:s}=yield vc.certificates.parse(e,n);t(Cu(a,s)),t({type:Ee,payload:{certificateDefinition:o}}),vc.events.dispatch("certificate-load",o),null!=o&&(yield t((function(e,t){return hc(this,void 0,void 0,(function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Ie}),e(Ju(!0))),yield e(Ku())}))})))}))}}function Gu(e){return function(t){return hc(this,void 0,void 0,(function*(){const i=vc.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:De,payload:{isValid:r}}),e(Cu(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Ae,payload:{url:e}});const n=yield vc.certificates.retrieve(e);n.certificateDefinition?yield t(Yu(n.certificateDefinition)):t(Cu(n.errorMessage))}))}}const Wu=/(-\w)/g,Zu=e=>e[1].toUpperCase();const Xu={src:String,"disable-auto-verify":Boolean,"disable-verify":Boolean,"allow-download":Boolean,"disable-download-pdf":Boolean,"allow-social-share":Boolean,"display-mode":String,"show-metadata":Boolean,"clickable-urls":Boolean,theme:ku,locale:String,explorerAPIs:{},"did-resolver-url":String},Qu=Object.keys(Xu).map((function(e){return e.replace(Wu,Zu)})).reduce(((e,t)=>(e[t]=Xu[t],e)),{});function ed(e){let t;const i=Object.keys(Dl).map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=Ml),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function td(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||Ml),Al.locale=ed(e)}var id=de`<style>.buv-c-input{font-size:15px;color:#031532;border-radius:2px 0 0 2px;padding:12px 15px;background-color:#f3f4f5;border:solid 1px rgba(3,21,50,.13);box-sizing:border-box;width:100%}.buv-c-input.is-invalid{border:2px solid red}.buv-c-input::placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function rd(e){return void 0===e.input.isValid||e.input.isValid}const nd=Su((({onInput:e=()=>{},isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
121
- ${id}
120
+ */const me=e=>t=>class extends t{connectedCallback(){this.__storeUnsubscribe=e.subscribe((()=>this._stateChanged(e.getState()))),this._stateChanged(e.getState()),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){this.__storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}_stateChanged(e){throw new Error("_stateChanged() not implemented")}};function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ye=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`};function ke(e,t,i){if("function"!=typeof e)throw new Error(ve(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ve(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ve(1));return i(ke)(e,t)}let r=e,n=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(c)throw new Error(ve(3));return n}function d(e){if("function"!=typeof e)throw new Error(ve(4));if(c)throw new Error(ve(5));let t=!0;l();const i=s++;return a.set(i,e),function(){if(t){if(c)throw new Error(ve(6));t=!1,l(),a.delete(i),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(ve(7));if(void 0===e.type)throw new Error(ve(8));if("string"!=typeof e.type)throw new Error(ve(17));if(c)throw new Error(ve(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=a).forEach((e=>{e()})),e}p({type:xe.INIT});return{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ve(10));r=e,p({type:xe.REPLACE})},[ye]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ve(11));function i(){const e=t;e.next&&e.next(u())}i();return{unsubscribe:e(i)}},[ye](){return this}}}}}function _e(e,t){return function(...i){return t(e.apply(this,i))}}function Se(e){return function(t){var i=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(i,r,e):t(n)}}}}var Ce=Se();function Pe(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Le(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Ce.withExtraArgument=Se,Pe((function e(t,i,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),Le),Pe((function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}),Le),Pe((function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})}),Le),Pe((function e(t,i,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:i,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),Le);const Ie="AUTO_VERIFY",Te="INITIALIZE",Ee="UPDATE_CERTIFICATE_DEFINITION",Me="RESET_CERTIFICATE_DEFINITION",Ae="UPDATE_CERTIFICATE_URL",De="VALIDATE_URL_INPUT",Ve="CLEAR_VERIFIED_STEPS",Re="STEP_VERIFIED",Oe="UPDATE_PARENT_STEP_STATUS",je="UPDATE_VERIFICATION_STATUS",Ne="UPDATE_FINAL_STEP",ze="SET_ERROR_MESSAGE",$e="SHOW_VERIFICATION_MODAL",Ue="UPDATE_IS_GENERATING_PDF";const Be={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};function Fe(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function He(e){return"string"==typeof e}var qe;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(qe||(qe={}));const Ke="{transaction_id}";var Je;!function(e){e.V1_1="1.1",e.V1_2="1.2",e.V2_0="2.0",e.V3_0_alpha="3.0-alpha",e.V3_0_beta="3.0-beta",e.V3_0="3.0"}(Je||(Je={}));var Ye,Ge=Je;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Ye||(Ye={}));const We="{transaction_id}";var Ze,Xe;!function(e){e.Bitcoin="bitcoin",e.Ethmain="ethmain",e.Ethropst="ethropst",e.Ethrinkeby="ethrinkeby",e.Ethgoerli="ethgoerli",e.Ethsepolia="ethsepolia",e.Mocknet="mocknet",e.Regtest="regtest",e.Testnet="testnet"}(Ze||(Ze={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(Xe||(Xe={}));const Qe={[Ze.Bitcoin]:{code:Ze.Bitcoin,blinkCode:Xe.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${We}`,raw:`https://blockchain.info/rawtx/${We}`}},[Ze.Ethmain]:{code:Ze.Ethmain,blinkCode:Xe.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${We}`,raw:`https://etherscan.io/tx/${We}`}},[Ze.Ethropst]:{code:Ze.Ethropst,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${We}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethrinkeby]:{code:Ze.Ethrinkeby,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${We}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethgoerli]:{code:Ze.Ethgoerli,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${We}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${We}`}},[Ze.Ethsepolia]:{code:Ze.Ethsepolia,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${We}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${We}`}},[Ze.Mocknet]:{code:Ze.Mocknet,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[Ze.Regtest]:{code:Ze.Regtest,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[Ze.Testnet]:{code:Ze.Testnet,blinkCode:Xe.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${We}`,raw:`https://testnet.blockchain.info/rawtx/${We}`}}};const et=1,tt=1;var it=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function rt(e,t){return it(this,arguments,void 0,(function*(e,t,i=[]){if((e=Array.from(e)).length<t)throw new Error("Could not retrieve tx data");const r=e.map(((e,t)=>e.then((()=>t)).catch((e=>{throw t}))));return Promise.race(r).then((r=>(e.splice(r,1)[0].then((e=>i.push(e))),1===t?i:rt(e,t-1,i)))).catch((r=>(e.splice(r,1),rt(e,t,i))))}))}function nt({explorerAPI:e,transactionIdPlaceholder:t=We,transactionId:i="",chain:r}){const{serviceURL:n}=e;let o;if("string"==typeof n)o=n;else if("object"==typeof n){const e=!!r&&function(e){return e!==Qe.bitcoin.code&&e!==Qe.ethmain.code}(r);o=e?n.test:n.main}else{if("function"!=typeof n)throw new Error(`serviceURL is an unexpected type for explorerAPI ${e.serviceName}`);o=n(r)}return o=o.replace(t,i),o=function(e,t){if(!t.key)return e;if(t.key&&!t.keyPropertyName)throw new Error(`No keyPropertyName defined for explorerAPI ${t.serviceName}`);return function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,t.keyPropertyName,t.key)}(o,e),o}var ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function st(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),i}var ct="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lt=[],ut=[],dt="undefined"!=typeof Uint8Array?Uint8Array:Array,pt=!1;function ht(){pt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)lt[t]=e[t],ut[e.charCodeAt(t)]=t;ut["-".charCodeAt(0)]=62,ut["_".charCodeAt(0)]=63}function ft(e,t,i){for(var r,n,o=[],a=t;a<i;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(lt[(n=r)>>18&63]+lt[n>>12&63]+lt[n>>6&63]+lt[63&n]);return o.join("")}function gt(e){var t;pt||ht();for(var i=e.length,r=i%3,n="",o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(ft(e,s,s+a>c?c:s+a));return 1===r?(t=e[i-1],n+=lt[t>>2],n+=lt[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=lt[t>>10],n+=lt[t>>4&63],n+=lt[t<<2&63],n+="="),o.push(n),o.join("")}function bt(e,t,i,r,n){var o,a,s=8*n-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=i?n-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function mt(e,t,i,r,n,o){var a,s,c,l=8*o-n-1,u=(1<<l)-1,d=u>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,n),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[i+h]=255&s,h+=f,s/=256,n-=8);for(a=a<<n|s,l+=n;l>0;e[i+h]=255&a,h+=f,a/=256,l-=8);e[i+h-f]|=128*g}var vt={}.toString,yt=Array.isArray||function(e){return"[object Array]"==vt.call(e)};_t.TYPED_ARRAY_SUPPORT=void 0===ct.TYPED_ARRAY_SUPPORT||ct.TYPED_ARRAY_SUPPORT;var wt=xt();function xt(){return _t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function kt(e,t){if(xt()<t)throw new RangeError("Invalid typed array length");return _t.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=_t.prototype:(null===e&&(e=new _t(t)),e.length=t),e}function _t(e,t,i){if(!(_t.TYPED_ARRAY_SUPPORT||this instanceof _t))return new _t(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Pt(this,e)}return St(this,e,t,i)}function St(e,t,i,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,r){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r);_t.TYPED_ARRAY_SUPPORT?(e=t).__proto__=_t.prototype:e=Lt(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!_t.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Et(t,i);e=kt(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(Tt(t)){var i=0|It(t.length);return 0===(e=kt(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?kt(e,0):Lt(e,t);if("Buffer"===t.type&&yt(t.data))return Lt(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Ct(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Pt(e,t){if(Ct(t),e=kt(e,t<0?0:0|It(t)),!_t.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function Lt(e,t){var i=t.length<0?0:0|It(t.length);e=kt(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function It(e){if(e>=xt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+xt().toString(16)+" bytes");return 0|e}function Tt(e){return!(null==e||!e._isBuffer)}function Et(e,t){if(Tt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ri(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return ni(e).length;default:if(r)return ri(e).length;t=(""+t).toLowerCase(),r=!0}}function Mt(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Kt(this,t,i);case"utf8":case"utf-8":return Bt(this,t,i);case"ascii":return Ht(this,t,i);case"latin1":case"binary":return qt(this,t,i);case"base64":return Ut(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function At(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function Dt(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=_t.from(t,r)),Tt(t))return 0===t.length?-1:Vt(e,t,i,r,n);if("number"==typeof t)return t&=255,_t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):Vt(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function Vt(e,t,i,r,n){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,i/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(o=i;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(i+c>s&&(i=s-c),o=i;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(l(e,o+p)!==l(t,p)){d=!1;break}if(d)return o}return-1}function Rt(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[i+a]=s}return a}function Ot(e,t,i,r){return oi(ri(t,e.length-i),e,i,r)}function jt(e,t,i,r){return oi(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function Nt(e,t,i,r){return jt(e,t,i,r)}function zt(e,t,i,r){return oi(ni(t),e,i,r)}function $t(e,t,i,r){return oi(function(e,t){for(var i,r,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(i=e.charCodeAt(a))>>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function Ut(e,t,i){return 0===t&&i===e.length?gt(e):gt(e.slice(t,i))}function Bt(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,a,s,c,l=e[n],u=null,d=l>239?4:l>223?3:l>191?2:1;if(n+d<=i)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=d}return function(e){var t=e.length;if(t<=Ft)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=Ft));return i}(r)}_t.poolSize=8192,_t._augment=function(e){return e.__proto__=_t.prototype,e},_t.from=function(e,t,i){return St(null,e,t,i)},_t.TYPED_ARRAY_SUPPORT&&(_t.prototype.__proto__=Uint8Array.prototype,_t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&_t[Symbol.species]),_t.alloc=function(e,t,i){return function(e,t,i,r){return Ct(t),t<=0?kt(e,t):void 0!==i?"string"==typeof r?kt(e,t).fill(i,r):kt(e,t).fill(i):kt(e,t)}(null,e,t,i)},_t.allocUnsafe=function(e){return Pt(null,e)},_t.allocUnsafeSlow=function(e){return Pt(null,e)},_t.isBuffer=ai,_t.compare=function(e,t){if(!Tt(e)||!Tt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,o=Math.min(i,r);n<o;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},_t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_t.concat=function(e,t){if(!yt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return _t.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=_t.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Tt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},_t.byteLength=Et,_t.prototype._isBuffer=!0,_t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)At(this,t,t+1);return this},_t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)At(this,t,t+3),At(this,t+1,t+2);return this},_t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)At(this,t,t+7),At(this,t+1,t+6),At(this,t+2,t+5),At(this,t+3,t+4);return this},_t.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Bt(this,0,e):Mt.apply(this,arguments)},_t.prototype.equals=function(e){if(!Tt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===_t.compare(this,e)},_t.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},_t.prototype.compare=function(e,t,i,r,n){if(!Tt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,n),l=e.slice(t,i),u=0;u<s;++u)if(c[u]!==l[u]){o=c[u],a=l[u];break}return o<a?-1:a<o?1:0},_t.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},_t.prototype.indexOf=function(e,t,i){return Dt(this,e,t,i,!0)},_t.prototype.lastIndexOf=function(e,t,i){return Dt(this,e,t,i,!1)},_t.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Rt(this,e,t,i);case"utf8":case"utf-8":return Ot(this,e,t,i);case"ascii":return jt(this,e,t,i);case"latin1":case"binary":return Nt(this,e,t,i);case"base64":return zt(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},_t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ft=4096;function Ht(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function qt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function Kt(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var n="",o=t;o<i;++o)n+=ii(e[o]);return n}function Jt(e,t,i){for(var r=e.slice(t,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function Yt(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function Gt(e,t,i,r,n,o){if(!Tt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function Wt(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n<o;++n)e[i+n]=(t&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function Zt(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n<o;++n)e[i+n]=t>>>8*(r?n:3-n)&255}function Xt(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Qt(e,t,i,r,n){return n||Xt(e,0,i,4),mt(e,t,i,r,23,4),i+4}function ei(e,t,i,r,n){return n||Xt(e,0,i,8),mt(e,t,i,r,52,8),i+8}_t.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),_t.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=_t.prototype;else{var n=t-e;i=new _t(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},_t.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},_t.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},_t.prototype.readUInt8=function(e,t){return t||Yt(e,1,this.length),this[e]},_t.prototype.readUInt16LE=function(e,t){return t||Yt(e,2,this.length),this[e]|this[e+1]<<8},_t.prototype.readUInt16BE=function(e,t){return t||Yt(e,2,this.length),this[e]<<8|this[e+1]},_t.prototype.readUInt32LE=function(e,t){return t||Yt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_t.prototype.readUInt32BE=function(e,t){return t||Yt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_t.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},_t.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||Yt(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},_t.prototype.readInt8=function(e,t){return t||Yt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_t.prototype.readInt16LE=function(e,t){t||Yt(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},_t.prototype.readInt16BE=function(e,t){t||Yt(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},_t.prototype.readInt32LE=function(e,t){return t||Yt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_t.prototype.readInt32BE=function(e,t){return t||Yt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_t.prototype.readFloatLE=function(e,t){return t||Yt(e,4,this.length),bt(this,e,!0,23,4)},_t.prototype.readFloatBE=function(e,t){return t||Yt(e,4,this.length),bt(this,e,!1,23,4)},_t.prototype.readDoubleLE=function(e,t){return t||Yt(e,8,this.length),bt(this,e,!0,52,8)},_t.prototype.readDoubleBE=function(e,t){return t||Yt(e,8,this.length),bt(this,e,!1,52,8)},_t.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Gt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o<i&&(n*=256);)this[t+o]=e/n&255;return t+i},_t.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Gt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},_t.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,1,255,0),_t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},_t.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wt(this,e,t,!0),t+2},_t.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wt(this,e,t,!1),t+2},_t.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Zt(this,e,t,!0),t+4},_t.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zt(this,e,t,!1),t+4},_t.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Gt(this,e,t,i,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+i},_t.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Gt(this,e,t,i,n-1,-n)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+i},_t.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,1,127,-128),_t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},_t.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Wt(this,e,t,!0),t+2},_t.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Wt(this,e,t,!1),t+2},_t.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,2147483647,-2147483648),_t.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Zt(this,e,t,!0),t+4},_t.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Gt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),_t.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zt(this,e,t,!1),t+4},_t.prototype.writeFloatLE=function(e,t,i){return Qt(this,e,t,!0,i)},_t.prototype.writeFloatBE=function(e,t,i){return Qt(this,e,t,!1,i)},_t.prototype.writeDoubleLE=function(e,t,i){return ei(this,e,t,!0,i)},_t.prototype.writeDoubleBE=function(e,t,i){return ei(this,e,t,!1,i)},_t.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n,o=r-i;if(this===e&&i<t&&t<r)for(n=o-1;n>=0;--n)e[n+t]=this[n+i];else if(o<1e3||!_t.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},_t.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!_t.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=Tt(e)?e:ri(new _t(e,r).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var ti=/[^+\/0-9A-Za-z-_]/g;function ii(e){return e<16?"0"+e.toString(16):e.toString(16)}function ri(e,t){var i;t=t||1/0;for(var r=e.length,n=null,o=[],a=0;a<r;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function ni(e){return function(e){var t,i,r,n,o,a;pt||ht();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new dt(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0,i=0;t<r;t+=4,i+=3)n=ut[e.charCodeAt(t)]<<18|ut[e.charCodeAt(t+1)]<<12|ut[e.charCodeAt(t+2)]<<6|ut[e.charCodeAt(t+3)],a[c++]=n>>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===o?(n=ut[e.charCodeAt(t)]<<2|ut[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===o&&(n=ut[e.charCodeAt(t)]<<10|ut[e.charCodeAt(t+1)]<<4|ut[e.charCodeAt(t+2)]>>2,a[c++]=n>>8&255,a[c++]=255&n),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ti,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function oi(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function ai(e){return null!=e&&(!!e._isBuffer||si(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&si(e.slice(0,0))}(e))}function si(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var ci=Object.freeze({__proto__:null,Buffer:_t,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),_t.alloc(+e)},isBuffer:ai,kMaxLength:wt});function li(){throw new Error("setTimeout has not been defined")}function ui(){throw new Error("clearTimeout has not been defined")}var di=li,pi=ui;function hi(e){if(di===setTimeout)return setTimeout(e,0);if((di===li||!di)&&setTimeout)return di=setTimeout,setTimeout(e,0);try{return di(e,0)}catch(t){try{return di.call(null,e,0)}catch(t){return di.call(this,e,0)}}}"function"==typeof ct.setTimeout&&(di=setTimeout),"function"==typeof ct.clearTimeout&&(pi=clearTimeout);var fi,gi=[],bi=!1,mi=-1;function vi(){bi&&fi&&(bi=!1,fi.length?gi=fi.concat(gi):mi=-1,gi.length&&yi())}function yi(){if(!bi){var e=hi(vi);bi=!0;for(var t=gi.length;t;){for(fi=gi,gi=[];++mi<t;)fi&&fi[mi].run();mi=-1,t=gi.length}fi=null,bi=!1,function(e){if(pi===clearTimeout)return clearTimeout(e);if((pi===ui||!pi)&&clearTimeout)return pi=clearTimeout,clearTimeout(e);try{return pi(e)}catch(t){try{return pi.call(null,e)}catch(t){return pi.call(this,e)}}}(e)}}function wi(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];gi.push(new xi(e,t)),1!==gi.length||bi||hi(yi)}function xi(e,t){this.fun=e,this.array=t}xi.prototype.run=function(){this.fun.apply(null,this.array)};var ki="";function _i(){}var Si=_i,Ci=_i,Pi=_i,Li=_i,Ii=_i,Ti=_i,Ei=_i;var Mi=ct.performance||{},Ai=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()};var Di=new Date;var Vi={nextTick:wi,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Si,addListener:Ci,once:Pi,off:Li,removeListener:Ii,removeAllListeners:Ti,emit:Ei,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ai.call(Mi),i=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(i-=e[0],(r-=e[1])<0&&(i--,r+=1e9)),[i,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Di)/1e3}},Ri={},Oi=2147483647,ji=/[^\x20-\x7E]/,Ni=/[\x2E\u3002\uFF0E\uFF61]/g,zi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$i=Math.floor,Ui=String.fromCharCode;function Bi(e){throw new RangeError(zi[e])}function Fi(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function Hi(e,t,i){var r=0;for(e=i?$i(e/700):e>>1,e+=$i(e/t);e>455;r+=36)e=$i(e/35);return $i(r+36*e/(e+38))}function qi(e){return function(e,t){var i=e.split("@"),r="";i.length>1&&(r=i[0]+"@",e=i[1]);var n=function(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}((e=e.replace(Ni,".")).split("."),t).join(".");return r+n}(e,(function(e){return ji.test(e)?"xn--"+function(e){var t,i,r,n,o,a,s,c,l,u,d,p,h,f,g,b=[];for(e=function(e){for(var t,i,r=[],n=0,o=e.length;n<o;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<o?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}(e),p=e.length,t=128,i=0,o=72,a=0;a<p;++a)(d=e[a])<128&&b.push(Ui(d));for(r=n=b.length,n&&b.push("-");r<p;){for(s=Oi,a=0;a<p;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>$i((Oi-i)/(h=r+1))&&Bi("overflow"),i+=(s-t)*h,t=s,a=0;a<p;++a)if((d=e[a])<t&&++i>Oi&&Bi("overflow"),d==t){for(c=i,l=36;!(c<(u=l<=o?1:l>=o+26?26:l-o));l+=36)g=c-u,f=36-u,b.push(Ui(Fi(u+g%f,0))),c=$i(g/f);b.push(Ui(Fi(c,0))),o=Hi(i,h,r==n),i=0,++r}++i,++t}return b.join("")}(e):e}))}var Ki="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e},Ji=/%[sdj%]/g;function Yi(e){if(!ur(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(Qi(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(Ji,(function(e){if("%%"===e)return"%";if(i>=n)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}})),a=r[i];i<n;a=r[++i])sr(a)||!fr(a)?o+=" "+a:o+=" "+Qi(a);return o}function Gi(e,t){if(pr(ct.process))return function(){return Gi(e,t).apply(this,arguments)};if(!0===Vi.noDeprecation)return e;var i=!1;return function(){if(!i){if(Vi.throwDeprecation)throw new Error(t);Vi.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var Wi,Zi={};function Xi(e){if(pr(Wi)&&(Wi=Vi.env.NODE_DEBUG||""),e=e.toUpperCase(),!Zi[e])if(new RegExp("\\b"+e+"\\b","i").test(Wi)){Zi[e]=function(){var t=Yi.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else Zi[e]=function(){};return Zi[e]}function Qi(e,t){var i={seen:[],stylize:tr};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),ar(t)?i.showHidden=t:t&&Sr(i,t),pr(i.showHidden)&&(i.showHidden=!1),pr(i.depth)&&(i.depth=2),pr(i.colors)&&(i.colors=!1),pr(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=er),ir(i,e,i.depth)}function er(e,t){var i=Qi.styles[t];return i?"["+Qi.colors[i][0]+"m"+e+"["+Qi.colors[i][1]+"m":e}function tr(e,t){return e}function ir(e,t,i){if(e.customInspect&&t&&mr(t.inspect)&&t.inspect!==Qi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return ur(r)||(r=ir(e,r,i)),r}var n=function(e,t){if(pr(t))return e.stylize("undefined","undefined");if(ur(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(lr(t))return e.stylize(""+t,"number");if(ar(t))return e.stylize(""+t,"boolean");if(sr(t))return e.stylize("null","null")}(e,t);if(n)return n;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),br(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return rr(t);if(0===o.length){if(mr(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(hr(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(gr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(br(t))return rr(t)}var c,l="",u=!1,d=["{","}"];(or(t)&&(u=!0,d=["[","]"]),mr(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return hr(t)&&(l=" "+RegExp.prototype.toString.call(t)),gr(t)&&(l=" "+Date.prototype.toUTCString.call(t)),br(t)&&(l=" "+rr(t)),0!==o.length||u&&0!=t.length?i<0?hr(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(e,t,i,r,n){for(var o=[],a=0,s=t.length;a<s;++a)Cr(t,String(a))?o.push(nr(e,t,i,r,String(a),!0)):o.push("");return n.forEach((function(n){n.match(/^\d+$/)||o.push(nr(e,t,i,r,n,!0))})),o}(e,t,i,a,o):o.map((function(r){return nr(e,t,i,a,r,u)})),e.seen.pop(),function(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(c,l,d)):d[0]+l+d[1]}function rr(e){return"["+Error.prototype.toString.call(e)+"]"}function nr(e,t,i,r,n,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Cr(r,n)||(a="["+n+"]"),s||(e.seen.indexOf(c.value)<0?(s=sr(i)?ir(e,c.value,null):ir(e,c.value,i-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),pr(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function or(e){return Array.isArray(e)}function ar(e){return"boolean"==typeof e}function sr(e){return null===e}function cr(e){return null==e}function lr(e){return"number"==typeof e}function ur(e){return"string"==typeof e}function dr(e){return"symbol"==typeof e}function pr(e){return void 0===e}function hr(e){return fr(e)&&"[object RegExp]"===wr(e)}function fr(e){return"object"==typeof e&&null!==e}function gr(e){return fr(e)&&"[object Date]"===wr(e)}function br(e){return fr(e)&&("[object Error]"===wr(e)||e instanceof Error)}function mr(e){return"function"==typeof e}function vr(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function yr(e){return ai(e)}function wr(e){return Object.prototype.toString.call(e)}function xr(e){return e<10?"0"+e.toString(10):e.toString(10)}Qi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Qi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var kr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _r(){var e,t;console.log("%s - %s",(e=new Date,t=[xr(e.getHours()),xr(e.getMinutes()),xr(e.getSeconds())].join(":"),[e.getDate(),kr[e.getMonth()],t].join(" ")),Yi.apply(null,arguments))}function Sr(e,t){if(!t||!fr(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Cr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Pr={inherits:Ki,_extend:Sr,log:_r,isBuffer:yr,isPrimitive:vr,isFunction:mr,isError:br,isDate:gr,isObject:fr,isRegExp:hr,isUndefined:pr,isSymbol:dr,isString:ur,isNumber:lr,isNullOrUndefined:cr,isNull:sr,isBoolean:ar,isArray:or,inspect:Qi,deprecate:Gi,format:Yi,debuglog:Xi},Lr=Object.freeze({__proto__:null,_extend:Sr,debuglog:Xi,default:Pr,deprecate:Gi,format:Yi,inherits:Ki,inspect:Qi,isArray:or,isBoolean:ar,isBuffer:yr,isDate:gr,isError:br,isFunction:mr,isNull:sr,isNullOrUndefined:cr,isNumber:lr,isObject:fr,isPrimitive:vr,isRegExp:hr,isString:ur,isSymbol:dr,isUndefined:pr,log:_r});function Ir(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Tr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Er(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Mr(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r));return i}var Ar=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t};function Dr(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"!=typeof e||0===e.length)return n;var o=/\+/g,a=(e=e.split(t)).length;a>1e3&&(a=1e3);for(var s=0;s<a;++s){var c,l,u,d,p=e[s].replace(o,"%20"),h=p.indexOf(i);h>=0?(c=p.substr(0,h),l=p.substr(h+1)):(c=p,l=""),u=decodeURIComponent(c),d=decodeURIComponent(l),Ir(n,u)?Tr(n[u])?n[u].push(d):n[u]=[n[u],d]:n[u]=d}return n}var Vr={parse:Gr,resolve:Qr,resolveObject:en,format:Zr,Url:Rr};function Rr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Or=/^([a-z0-9.+-]+:)/i,jr=/:[0-9]*$/,Nr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,zr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),$r=["'"].concat(zr),Ur=["%","/","?",";","#"].concat($r),Br=["/","?","#"],Fr=255,Hr=/^[+a-z0-9A-Z_-]{0,63}$/,qr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Kr={javascript:!0,"javascript:":!0},Jr={javascript:!0,"javascript:":!0},Yr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Gr(e,t,i){if(e&&fr(e)&&e instanceof Rr)return e;var r=new Rr;return r.parse(e,t,i),r}function Wr(e,t,i,r){if(!ur(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",a=t.split(o);a[0]=a[0].replace(/\\/g,"/");var s=t=a.join(o);if(s=s.trim(),!r&&1===t.split("#").length){var c=Nr.exec(s);if(c)return e.path=s,e.href=s,e.pathname=c[1],c[2]?(e.search=c[2],e.query=i?Dr(e.search.substr(1)):e.search.substr(1)):i&&(e.search="",e.query={}),e}var l,u,d,p,h=Or.exec(s);if(h){var f=(h=h[0]).toLowerCase();e.protocol=f,s=s.substr(h.length)}if(r||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&Jr[h]||(s=s.substr(2),e.slashes=!0)}if(!Jr[h]&&(g||h&&!Yr[h])){var b,m,v=-1;for(l=0;l<Br.length;l++)-1!==(u=s.indexOf(Br[l]))&&(-1===v||u<v)&&(v=u);for(-1!==(m=-1===v?s.lastIndexOf("@"):s.lastIndexOf("@",v))&&(b=s.slice(0,m),s=s.slice(m+1),e.auth=decodeURIComponent(b)),v=-1,l=0;l<Ur.length;l++)-1!==(u=s.indexOf(Ur[l]))&&(-1===v||u<v)&&(v=u);-1===v&&(v=s.length),e.host=s.slice(0,v),s=s.slice(v),tn(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var w=e.hostname.split(/\./);for(l=0,d=w.length;l<d;l++){var x=w[l];if(x&&!x.match(Hr)){for(var k="",_=0,S=x.length;_<S;_++)x.charCodeAt(_)>127?k+="x":k+=x[_];if(!k.match(Hr)){var C=w.slice(0,l),P=w.slice(l+1),L=x.match(qr);L&&(C.push(L[1]),P.unshift(L[2])),P.length&&(s="/"+P.join(".")+s),e.hostname=C.join(".");break}}}}e.hostname.length>Fr?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=qi(e.hostname)),p=e.port?":"+e.port:"";var I=e.hostname||"";e.host=I+p,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!Kr[f])for(l=0,d=$r.length;l<d;l++){var T=$r[l];if(-1!==s.indexOf(T)){var E=encodeURIComponent(T);E===T&&(E=escape(T)),s=s.split(T).join(E)}}var M=s.indexOf("#");-1!==M&&(e.hash=s.substr(M),s=s.slice(0,M));var A=s.indexOf("?");if(-1!==A?(e.search=s.substr(A),e.query=s.substr(A+1),i&&(e.query=Dr(e.query)),s=s.slice(0,A)):i&&(e.search="",e.query={}),s&&(e.pathname=s),Yr[f]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){p=e.pathname||"";var D=e.search||"";e.path=p+D}return e.href=Xr(e),e}function Zr(e){return ur(e)&&(e=Wr({},e)),Xr(e)}function Xr(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i,r,n,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",c=!1,l="";e.host?c=t+e.host:e.hostname&&(c=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(c+=":"+e.port)),e.query&&fr(e.query)&&Object.keys(e.query).length&&(i=e.query,r=r||"&",n=n||"=",null===i&&(i=void 0),l="object"==typeof i?Mr(Ar(i),(function(e){var t=encodeURIComponent(Er(e))+n;return Tr(i[e])?Mr(i[e],(function(e){return t+encodeURIComponent(Er(e))})).join(r):t+encodeURIComponent(Er(i[e]))})).join(r):"");var u=e.search||l&&"?"+l||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||Yr[o])&&!1!==c?(c="//"+(c||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):c||(c=""),s&&"#"!==s.charAt(0)&&(s="#"+s),u&&"?"!==u.charAt(0)&&(u="?"+u),o+c+(a=a.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(u=u.replace("#","%23"))+s}function Qr(e,t){return Gr(e,!1,!0).resolve(t)}function en(e,t){return e?Gr(e,!1,!0).resolveObject(t):t}function tn(e){var t=e.host,i=jr.exec(t);i&&(":"!==(i=i[0])&&(e.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(e.hostname=t)}Rr.prototype.parse=function(e,t,i){return Wr(this,e,t,i)},Rr.prototype.format=function(){return Xr(this)},Rr.prototype.resolve=function(e){return this.resolveObject(Gr(e,!1,!0)).format()},Rr.prototype.resolveObject=function(e){if(ur(e)){var t=new Rr;t.parse(e,!1,!0),e=t}for(var i,r=new Rr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var l=s[c];"protocol"!==l&&(r[l]=e[l])}return Yr[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Yr[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var p=u[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||Jr[e.protocol])r.pathname=e.pathname;else{for(i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",f=r.search||"";r.path=h+f}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,b=r.pathname&&"/"===r.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=m||b||r.host&&e.pathname,y=v,w=r.pathname&&r.pathname.split("/")||[],x=r.protocol&&!Yr[r.protocol];if(i=e.pathname&&e.pathname.split("/")||[],x&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),v=v&&(""===i[0]||""===w[0])),m)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=i;else if(i.length)w||(w=[]),w.pop(),w=w.concat(i),r.search=e.search,r.query=e.query;else if(!cr(e.search))return x&&(r.hostname=r.host=w.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,sr(r.pathname)&&sr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],_=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,S=0,C=w.length;C>=0;C--)"."===(k=w[C])?w.splice(C,1):".."===k?(w.splice(C,1),S++):S&&(w.splice(C,1),S--);if(!v&&!y)for(;S--;S)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var P=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(r.hostname=r.host=P?"":w.length?w.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&w.length)&&!P&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),sr(r.pathname)&&sr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Rr.prototype.parseHost=function(){return tn(this)};var rn,nn,on=st(Object.freeze({__proto__:null,Url:Rr,default:Vr,format:Zr,parse:Gr,resolve:Qr,resolveObject:en})),an={},sn=Object.freeze({__proto__:null,default:an}),cn=st(sn),ln=yn(ct.fetch)&&yn(ct.ReadableStream);function un(e){nn||(nn=new ct.XMLHttpRequest).open("GET",ct.location.host?"/":"https://example.com");try{return nn.responseType=e,nn.responseType===e}catch(e){return!1}}var dn,pn=void 0!==ct.ArrayBuffer,hn=pn&&yn(ct.ArrayBuffer.prototype.slice),fn=pn&&un("arraybuffer"),gn=!ln&&hn&&un("ms-stream"),bn=!ln&&pn&&un("moz-chunked-arraybuffer"),mn=yn(nn.overrideMimeType),vn=yn(ct.VBArray);function yn(e){return"function"==typeof e}function wn(){}function xn(){xn.init.call(this)}function kn(e){return void 0===e._maxListeners?xn.defaultMaxListeners:e._maxListeners}function _n(e,t,i,r){var n,o,a,s;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),a=o[t]):(o=e._events=new wn,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),!a.warned&&(n=kn(e))&&n>0&&a.length>n){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=i,++e._eventsCount;return e}function Sn(e,t,i){var r=!1;function n(){e.removeListener(t,n),r||(r=!0,i.apply(e,arguments))}return n.listener=i,n}function Cn(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function Pn(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}nn=null,wn.prototype=Object.create(null),xn.EventEmitter=xn,xn.usingDomains=!1,xn.prototype.domain=void 0,xn.prototype._events=void 0,xn.prototype._maxListeners=void 0,xn.defaultMaxListeners=10,xn.init=function(){this.domain=null,xn.usingDomains&&(!dn.active||this instanceof dn.Domain||(this.domain=dn.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new wn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},xn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},xn.prototype.getMaxListeners=function(){return kn(this)},xn.prototype.emit=function(e){var t,i,r,n,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(i=a[e]))return!1;var u="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=Pn(e,r),o=0;o<r;++o)n[o].call(i)}(i,u,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Pn(e,n),a=0;a<n;++a)o[a].call(i,r)}(i,u,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var o=e.length,a=Pn(e,o),s=0;s<o;++s)a[s].call(i,r,n)}(i,u,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,o){if(t)e.call(i,r,n,o);else for(var a=e.length,s=Pn(e,a),c=0;c<a;++c)s[c].call(i,r,n,o)}(i,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),o=1;o<r;o++)n[o-1]=arguments[o];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,o=Pn(e,n),a=0;a<n;++a)o[a].apply(i,r)}(i,u,this,n)}return!0},xn.prototype.addListener=function(e,t){return _n(this,e,t,!1)},xn.prototype.on=xn.prototype.addListener,xn.prototype.prependListener=function(e,t){return _n(this,e,t,!0)},xn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Sn(this,e,t)),this},xn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Sn(this,e,t)),this},xn.prototype.removeListener=function(e,t){var i,r,n,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener&&i.listener===t)0==--this._eventsCount?this._events=new wn:(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,o=i.length;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){a=i[o].listener,n=o;break}if(n<0)return this;if(1===i.length){if(i[0]=void 0,0==--this._eventsCount)return this._events=new wn,this;delete r[e]}else!function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n);r.removeListener&&this.emit("removeListener",e,a||t)}return this},xn.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new wn,this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=new wn:delete i[e]),this;if(0===arguments.length){for(var r,n=Object.keys(i),o=0;o<n.length;++o)"removeListener"!==(r=n[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new wn,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},xn.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},xn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Cn.call(e,t)},xn.prototype.listenerCount=Cn,xn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Ln=Object.freeze({__proto__:null,EventEmitter:xn,default:xn});function In(){this.head=null,this.tail=null,this.length=0}In.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},In.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},In.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},In.prototype.clear=function(){this.head=this.tail=null,this.length=0},In.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},In.prototype.concat=function(e){if(0===this.length)return _t.alloc(0);if(1===this.length)return this.head.data;for(var t=_t.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t};var Tn=_t.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function En(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Tn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=An;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Dn;break;default:return void(this.write=Mn)}this.charBuffer=new _t(6),this.charReceived=0,this.charLength=0}function Mn(e){return e.toString(this.encoding)}function An(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Dn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}En.prototype.write=function(e){for(var t="";this.charLength;){var i=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";if(e=e.slice(i,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var n;r=(t+=e.toString(this.encoding,0,r)).length-1;if((n=t.charCodeAt(r))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},En.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var i=e[e.length-t];if(1==t&&i>>5==6){this.charLength=2;break}if(t<=2&&i>>4==14){this.charLength=3;break}if(t<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=t},En.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var i=this.charReceived,r=this.charBuffer,n=this.encoding;t+=r.slice(0,i).toString(n)}return t};var Vn=Object.freeze({__proto__:null,StringDecoder:En});jn.ReadableState=On;var Rn=Xi("stream");function On(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof po&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new In,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new En(e.encoding),this.encoding=e.encoding)}function jn(e){if(!(this instanceof jn))return new jn(e);this._readableState=new On(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),xn.call(this)}function Nn(e,t,i,r,n){var o=function(e,t){var i=null;ai(t)||"string"==typeof t||null==t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(t,i);if(o)e.emit("error",o);else if(null===i)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,Un(e)}(e,t);else if(t.objectMode||i&&i.length>0)if(t.ended&&!n){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&n){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||n||r||(i=t.decoder.write(i),c=!t.objectMode&&0===i.length),n||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&Un(e))),function(e,t){t.readingMore||(t.readingMore=!0,wi(Fn,e,t))}(e,t)}else n||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Ki(jn,xn),jn.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=_t.from(e,t),t=""),Nn(this,i,e,t,!1)},jn.prototype.unshift=function(e){return Nn(this,this._readableState,e,"",!0)},jn.prototype.isPaused=function(){return!1===this._readableState.flowing},jn.prototype.setEncoding=function(e){return this._readableState.decoder=new En(e),this._readableState.encoding=e,this};var zn=8388608;function $n(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=zn?e=zn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Un(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Rn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?wi(Bn,e):Bn(e))}function Bn(e){Rn("emit readable"),e.emit("readable"),Kn(e)}function Fn(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Rn("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function Hn(e){Rn("readable nexttick read 0"),e.read(0)}function qn(e,t){t.reading||(Rn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Kn(e),t.flowing&&!t.reading&&e.read(0)}function Kn(e){var t=e._readableState;for(Rn("flow",t.flowing);t.flowing&&null!==e.read(););}function Jn(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;e-=n.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=_t.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,a),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function Yn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,wi(Gn,t,e))}function Gn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Wn(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function Zn(){}function Xn(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function Qn(e,t){Object.defineProperty(this,"buffer",{get:Gi((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof po&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,n=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,n){--t.pendingcb,i?wi(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=no(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||ro(e,i),r?wi(io,e,i,o,n):io(e,i,o,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new so(this)}function eo(e){if(!(this instanceof eo||this instanceof po))return new eo(e);this._writableState=new Qn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),xn.call(this)}function to(e,t,i,r,n,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function io(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),ao(e,t)}function ro(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=i;for(var a=0;i;)n[a]=i,i=i.next,a+=1;to(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new so(t)}else{for(;i;){var s=i.chunk,c=i.encoding,l=i.callback;if(to(e,t,!1,t.objectMode?1:s.length,s,c,l),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function no(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function oo(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function ao(e,t){var i=no(t);return i&&(0===t.pendingcb?(oo(e,t),t.finished=!0,e.emit("finish")):oo(e,t)),i}function so(e){var t=this;this.next=null,this.entry=null,this.finish=function(i){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(i),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}jn.prototype.read=function(e){Rn("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Rn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Yn(this):Un(this),null;if(0===(e=$n(e,t))&&t.ended)return 0===t.length&&Yn(this),null;var r,n=t.needReadable;return Rn("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&Rn("length less than watermark",n=!0),t.ended||t.reading?Rn("reading or ended",n=!1):n&&(Rn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=$n(i,t))),null===(r=e>0?Jn(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&Yn(this)),null!==r&&this.emit("data",r),r},jn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},jn.prototype.pipe=function(e,t){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Rn("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?a:l;function o(e){Rn("onunpipe"),e===i&&l()}function a(){Rn("onend"),e.end()}r.endEmitted?wi(n):i.once("end",n),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Rn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Kn(e))}}(i);e.on("drain",s);var c=!1;function l(){Rn("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",s),e.removeListener("error",p),e.removeListener("unpipe",o),i.removeListener("end",a),i.removeListener("end",l),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){Rn("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Wn(r.pipes,e))&&!c&&(Rn("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,u=!0),i.pause())}function p(t){var i;Rn("onerror",t),g(),e.removeListener("error",p),0===(i="error",e.listeners(i).length)&&e.emit("error",t)}function h(){e.removeListener("finish",f),g()}function f(){Rn("onfinish"),e.removeListener("close",h),g()}function g(){Rn("unpipe"),i.unpipe(e)}return i.on("data",d),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",p),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(Rn("pipe resume"),i.resume()),e},jn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<r;n++)i[n].emit("unpipe",this);return this}var o=Wn(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},jn.prototype.on=function(e,t){var i=xn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Un(this):wi(Hn,this))}return i},jn.prototype.addListener=jn.prototype.on,jn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Rn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,wi(qn,e,t))}(this,e)),this},jn.prototype.pause=function(){return Rn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Rn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},jn.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",(function(){if(Rn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(n){(Rn("wrapped data"),t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n)||(t.objectMode||n&&n.length)&&(r.push(n)||(i=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));return function(e,t){for(var i=0,r=e.length;i<r;i++)t(e[i],i)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){Rn("wrapped _read",t),i&&(i=!1,e.resume())},r},jn._fromList=Jn,eo.WritableState=Qn,Ki(eo,xn),Qn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},eo.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},eo.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),_t.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=Zn),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),wi(t,i)}(this,i):function(e,t,i,r){var n=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):_t.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),wi(r,o),n=!1),n}(this,r,e,i)&&(r.pendingcb++,n=function(e,t,i,r,n){i=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=_t.from(t,i));return t}(t,i,r),_t.isBuffer(i)&&(r="buffer");var o=t.objectMode?1:i.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new Xn(i,r,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else to(e,t,!1,o,i,r,n);return a}(this,r,e,t,i)),n},eo.prototype.cork=function(){this._writableState.corked++},eo.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||ro(this,e))},eo.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},eo.prototype._write=function(e,t,i){i(new Error("not implemented"))},eo.prototype._writev=null,eo.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,ao(e,t),i&&(t.finished?wi(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Ki(po,jn);for(var co=Object.keys(eo.prototype),lo=0;lo<co.length;lo++){var uo=co[lo];po.prototype[uo]||(po.prototype[uo]=eo.prototype[uo])}function po(e){if(!(this instanceof po))return new po(e);jn.call(this,e),eo.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",ho)}function ho(){this.allowHalfOpen||this._writableState.ended||wi(fo,this)}function fo(e){e.end()}function go(e){this.afterTransform=function(t,i){return function(e,t,i){var r=e._transformState;r.transforming=!1;var n=r.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=i&&e.push(i);n(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,i)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function bo(e){if(!(this instanceof bo))return new bo(e);po.call(this,e),this._transformState=new go(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){mo(t,e)})):mo(t)}))}function mo(e,t){if(t)return e.emit("error",t);var i=e._writableState,r=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function vo(e){if(!(this instanceof vo))return new vo(e);bo.call(this,e)}function yo(){xn.call(this)}Ki(bo,po),bo.prototype.push=function(e,t){return this._transformState.needTransform=!1,po.prototype.push.call(this,e,t)},bo.prototype._transform=function(e,t,i){throw new Error("Not implemented")},bo.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},bo.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ki(vo,bo),vo.prototype._transform=function(e,t,i){i(null,e)},Ki(yo,xn),yo.Readable=jn,yo.Writable=eo,yo.Duplex=po,yo.Transform=bo,yo.PassThrough=vo,yo.Stream=yo,yo.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===xn.listenerCount(this,"error"))throw e}function l(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",l),i.removeListener("close",l),e.removeListener("close",l)}return i.on("error",c),e.on("error",c),i.on("end",l),i.on("close",l),e.on("close",l),e.emit("pipe",i),e};var wo=Object.freeze({__proto__:null,Duplex:po,PassThrough:vo,Readable:jn,Stream:yo,Transform:bo,Writable:eo,default:yo}),xo=3,ko=4;function _o(e,t,i){var r,n=this;if(jn.call(n),n._mode=i,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",(function(){wi((function(){n.emit("close")}))})),"fetch"===i){n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText;for(var o,a,s=t.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)n.headers[o[0].toLowerCase()]=o[1],n.rawHeaders.push(o[0],o[1]);var c=t.body.getReader();(r=function(){c.read().then((function(e){n._destroyed||(e.done?n.push(null):(n.push(new _t(e.value)),r()))}))})()}else{if(n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var i=t[1].toLowerCase();"set-cookie"===i?(void 0===n.headers[i]&&(n.headers[i]=[]),n.headers[i].push(t[2])):void 0!==n.headers[i]?n.headers[i]+=", "+t[2]:n.headers[i]=t[2],n.rawHeaders.push(t[1],t[2])}})),n._charset="x-user-defined",!mn){var l=n.rawHeaders["mime-type"];if(l){var u=l.match(/;\s*charset=([^;])(;|$)/);u&&(n._charset=u[1].toLowerCase())}n._charset||(n._charset="utf-8")}}}function So(e){var t,i=this;eo.call(i),i._opts=e,i._body=[],i._headers={},e.auth&&i.setHeader("Authorization","Basic "+new _t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){i.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!mn;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}i._mode=function(e,t){return ln&&t?"fetch":bn?"moz-chunked-arraybuffer":gn?"ms-stream":fn&&e?"arraybuffer":vn&&e?"text:vbarray":"text"}(t,r),i.on("finish",(function(){i._onFinish()}))}Ki(_o,jn),_o.prototype._read=function(){},_o.prototype._onXHRProgress=function(){var e=this,t=e._xhr,i=null;switch(e._mode){case"text:vbarray":if(t.readyState!==ko)break;try{i=new ct.VBArray(t.responseBody).toArray()}catch(e){}if(null!==i){e.push(new _t(i));break}case"text":try{i=t.responseText}catch(t){e._mode="text:vbarray";break}if(i.length>e._pos){var r=i.substr(e._pos);if("x-user-defined"===e._charset){for(var n=new _t(r.length),o=0;o<r.length;o++)n[o]=255&r.charCodeAt(o);e.push(n)}else e.push(r,e._charset);e._pos=i.length}break;case"arraybuffer":if(t.readyState!==ko||!t.response)break;i=t.response,e.push(new _t(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=t.response,t.readyState!==xo||!i)break;e.push(new _t(new Uint8Array(i)));break;case"ms-stream":if(i=t.response,t.readyState!==xo)break;var a=new ct.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new _t(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(i)}e._xhr.readyState===ko&&"ms-stream"!==e._mode&&e.push(null)},Ki(So,eo);var Co=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];function Po(e,t){"string"==typeof e&&(e=Gr(e));var i=-1===ct.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||i,n=e.hostname||e.host,o=e.port,a=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new So(e);return t&&s.on("response",t),s}function Lo(e,t){var i=Po(e,t);return i.end(),i}function Io(){}So.prototype.setHeader=function(e,t){var i=e.toLowerCase();-1===Co.indexOf(i)&&(this._headers[i]={name:e,value:t})},So.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},So.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},So.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,i=e._opts,r=e._headers;if("POST"!==i.method&&"PUT"!==i.method&&"PATCH"!==i.method||(t=function(){if(void 0!==rn)return rn;try{new ct.Blob([new ArrayBuffer(1)]),rn=!0}catch(e){rn=!1}return rn}()?new ct.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ai(e)){for(var t=new Uint8Array(e.length),i=e.length,r=0;r<i;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):_t.concat(e._body).toString()),"fetch"===e._mode){var n=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));ct.fetch(e._opts.url,{method:e._opts.method,headers:n,body:t,mode:"cors",credentials:i.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new ct.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void wi((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!i.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case xo:case ko:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void wi((function(){e.emit("error",t)}))}}}},So.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},So.prototype._connect=function(){var e=this;e._destroyed||(e._response=new _o(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},So.prototype._write=function(e,t,i){this._body.push(e),i()},So.prototype.abort=So.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},So.prototype.end=function(e,t,i){"function"==typeof e&&(i=e,e=void 0),eo.prototype.end.call(this,e,t,i)},So.prototype.flushHeaders=function(){},So.prototype.setTimeout=function(){},So.prototype.setNoDelay=function(){},So.prototype.setSocketKeepAlive=function(){},Io.defaultMaxSockets=4;var To,Eo=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],Mo={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Ao={request:Po,get:Lo,Agent:Io,METHODS:Eo,STATUS_CODES:Mo},Do=st(Object.freeze({__proto__:null,Agent:Io,METHODS:Eo,STATUS_CODES:Mo,default:Ao,get:Lo,request:Po}));var Vo=function(){if(To)return Ri;To=1;var e=on,t=cn.spawn,i=cn;return Ri.XMLHttpRequest=function(){var r,n,o=this,a=Do,s=Do,c={},l=!1,u={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},d={},p={},h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],f=["TRACE","TRACK","CONNECT"],g=!1,b=!1,m={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,i,r,n){if(this.abort(),b=!1,!function(e){return e&&-1===f.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");c={method:e,url:t.toString(),async:"boolean"!=typeof i||i,user:r||null,password:n||null},v(this.OPENED)},this.setDisableHeaderCheck=function(e){l=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(e){return l||e&&-1===h.indexOf(e.toLowerCase())}(e)){if(g)throw new Error("INVALID_STATE_ERR: send flag is true");e=p[e.toLowerCase()]||e,p[e.toLowerCase()]=e,d[e]=d[e]?d[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&n&&n.headers&&n.headers[e.toLowerCase()]&&!b?n.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||b)return"";var e="";for(var t in n.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+n.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&p[e.toLowerCase()]?d[p[e.toLowerCase()]]:""},this.send=function(l){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(g)throw new Error("INVALID_STATE_ERR: send has already been called");var h,f=!1,m=!1,y=e.parse(c.url);switch(y.protocol){case"https:":f=!0;case"http:":h=y.hostname;break;case"file:":m=!0;break;case void 0:case null:case"":h="localhost";break;default:throw new Error("Protocol not supported.")}if(m){if("GET"!==c.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(c.async)i.readFile(y.pathname,"utf8",(function(e,t){e?o.handleError(e):(o.status=200,o.responseText=t,v(o.DONE))}));else try{this.responseText=i.readFileSync(y.pathname,"utf8"),this.status=200,v(o.DONE)}catch(e){this.handleError(e)}}else{var w=y.port||(f?443:80),x=y.pathname+(y.search?y.search:"");for(var k in u)p[k.toLowerCase()]||(d[k]=u[k]);if(d.Host=h,f&&443===w||80===w||(d.Host+=":"+y.port),c.user){void 0===c.password&&(c.password="");var _=new _t(c.user+":"+c.password);d.Authorization="Basic "+_.toString("base64")}"GET"===c.method||"HEAD"===c.method?l=null:l?(d["Content-Length"]=ai(l)?l.length:_t.byteLength(l),d["Content-Type"]||(d["Content-Type"]="text/plain;charset=UTF-8")):"POST"===c.method&&(d["Content-Length"]=0);var S={host:h,port:w,path:x,method:c.method,headers:d,agent:!1,withCredentials:o.withCredentials};if(b=!1,c.async){var C=f?s.request:a.request;g=!0,o.dispatchEvent("readystatechange");var P=function(e){o.handleError(e)};r=C(S,(function t(i){if(301!==(n=i).statusCode&&302!==n.statusCode&&303!==n.statusCode&&307!==n.statusCode)n.setEncoding("utf8"),v(o.HEADERS_RECEIVED),o.status=n.statusCode,n.on("data",(function(e){e&&(o.responseText+=e),g&&v(o.LOADING)})),n.on("end",(function(){g&&(v(o.DONE),g=!1)})),n.on("error",(function(e){o.handleError(e)}));else{c.url=n.headers.location;var a=e.parse(c.url);h=a.hostname;var s={hostname:a.hostname,port:a.port,path:a.path,method:303===n.statusCode?"GET":c.method,headers:d,withCredentials:o.withCredentials};(r=C(s,t).on("error",P)).end()}})).on("error",P),l&&r.write(l),r.end(),o.dispatchEvent("loadstart")}else{var L=".node-xmlhttprequest-content-"+Vi.pid,I=".node-xmlhttprequest-sync-"+Vi.pid;i.writeFileSync(I,"","utf8");for(var T="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(f?"s":"")+".request;var options = "+JSON.stringify(S)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+L+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+I+"');});response.on('error', function(error) {fs.writeFileSync('"+L+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});}).on('error', function(error) {fs.writeFileSync('"+L+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+I+"');});"+(l?"req.write('"+JSON.stringify(l).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",E=t(Vi.argv[0],["-e",T]);i.existsSync(I););var M=JSON.parse(i.readFileSync(L,"utf8"));E.stdin.end(),i.unlinkSync(L),M.err?o.handleError(M.err):(n=M.data,o.status=M.data.statusCode,o.responseText=M.data.text,v(o.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,b=!0,v(this.DONE),this.dispatchEvent("error")},this.abort=function(){r&&(r.abort(),r=null),d=u,this.status=0,this.responseText="",this.responseXML="",b=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!g||this.readyState===this.DONE||(g=!1,v(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in m||(m[e]=[]),m[e].push(t)},this.removeEventListener=function(e,t){e in m&&(m[e]=m[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof o["on"+e]&&o["on"+e](),e in m)for(var t=0,i=m[e].length;t<i;t++)m[e][t].call(o)};var v=function(e){e!=o.LOADING&&o.readyState===e||(o.readyState=e,(c.async||o.readyState<o.OPENED||o.readyState===o.DONE)&&o.dispatchEvent("readystatechange"),o.readyState!==o.DONE||b||(o.dispatchEvent("load"),o.dispatchEvent("loadend")))}},Ri}(),Ro=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Oo(e){return Ro(this,void 0,void 0,(function*(){return yield new Promise(((t,i)=>{var r;let{url:n}=e;n||i(new Error("URL is missing")),"http://"!==n.substr(0,7)||e.forceHttp||(console.warn(`Upgrading requested url ${n} to https protocol.`),n=n.replace("http://","https://"));const o=new("undefined"==typeof XMLHttpRequest?Vo.XMLHttpRequest:XMLHttpRequest);e["bearer-token"]&&o.setRequestHeader("Authorization",`Bearer ${e["bearer-token"]}`),o.onload=()=>{if(o.status>=200&&o.status<300)t(o.responseText);else{console.log(o.responseText);const e=`Error fetching url:${n}; status code:${o.status}`;i(new Error(e))}},o.ontimeout=e=>{console.log("ontimeout",e)},o.onreadystatechange=()=>{404===o.status&&i(new Error(`Error fetching url:${n}; status code:${o.status}`))},o.onerror=()=>{console.error(`Request failed with error ${o.responseText}`),i(new Error(o.responseText))},o.open(null!==(r=e.method)&&void 0!==r?r:"GET",n),e.body?o.send(JSON.stringify(e.body)):o.send()}))}))}function jo(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function No(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(jo(e,r))return e.slice(r.length)}return e}var zo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const $o={[Ze.Ethmain]:1,[Ze.Ethgoerli]:5,[Ze.Ethsepolia]:11155111};function Uo(e=Ze.Ethmain){const t=$o[e];if(!t)throw new Error(`Unsupported chain: ${e}`);return`https://api.etherscan.io/v2/api?chainid=${t}&module=proxy`}const Bo={serviceURL:function(e){return`${Uo(e)}&action=eth_getTransactionByHash&txhash=${We}`},serviceName:Ye.etherscan,parsingFunction:function(e){return zo(this,arguments,void 0,(function*({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){const n=Uo(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${We}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${We}`}},a={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const s=yield function(e,t){return zo(this,void 0,void 0,(function*(){const n=e.result.blockNumber,s=nt({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield Oo({url:s}),o=JSON.parse(e).result;return yield function(e,t){return zo(this,void 0,void 0,(function*(){const n=nt({explorerAPI:Object.assign(Object.assign({},a),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield Oo({url:n})}catch(e){throw new Error("Unable to get remote hash")}const s=JSON.parse(o).result;if(s-t<et)throw new Error("Not enough");return s}))}(t,n),o}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t);return function(e,t){const i=e.result,r=new Date(1e3*parseInt(t.timestamp,16)),n=i.from;return{remoteHash:No(i.input,Qe.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,s)}))},priority:-1};function Fo(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t.getTime()}(e);return i||function(e){var t;let i,r;const n=null!==(t=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e))&&void 0!==t?t:[];return n[1]?(i=n[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),i[1]-=1,i=new Date(Date.UTC.apply(Date,i)),i.getDate()?(n[5]&&(r=parseInt(n[5],10)/100*60,n[6]&&(r+=parseInt(n[6],10)),"+"===n[4]&&(r*=-1),r&&i.setUTCMinutes(i.getUTCMinutes()+r)),i):null):null}(e)}function Ho(e){return""===e?"":Fo(`${e}`)}function qo(e){return new Date(1e3*e)}const Ko={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${We}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${We}?limit=500`},serviceName:Ye.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Not enough");const t=Ho(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=No(r.script,Qe.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!jo(e,r))return`${r}${e}`}return e}(n,Qe.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};const Jo={serviceURL:{main:`https://blockstream.info/api/tx/${We}`,test:`https://blockstream.info/testnet/api/tx/${We}`},serviceName:Ye.blockstream,parsingFunction:function({jsonResponse:e}){if(!e.status.confirmed)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockstream API");const t=qo(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:No(r.scriptpubkey,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.scriptpubkey_address)).map((e=>e.scriptpubkey_address))}},priority:-1};const Yo={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${We}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${We}?limit=500`},serviceName:Ye.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=Ho(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:No(r.script,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};var Go=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Wo(e){return e.map((e=>({getTxData:(t,i)=>Go(this,void 0,void 0,(function*(){return yield function(e,t,i){return Go(this,void 0,void 0,(function*(){const r=nt({explorerAPI:e,transactionId:t,chain:i});try{const t=yield Oo({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t,i)})),priority:e.priority})))}const Zo=[Yo,Jo],Xo=[Bo,Ko];var Qo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ea(e){return Qo(this,arguments,void 0,(function*({serviceUrl:e,transactionId:t}){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield Oo({url:e,body:i,method:"POST"}),n=JSON.parse(r),o={method:"eth_getBlockByNumber",jsonrpc:"2.0",id:"blockbynumber",params:[n.result.blockNumber,!0]},a=yield Oo({url:e,body:o,method:"POST"}),s=JSON.parse(a),c=n.result,l=s.result,u=new Date(1e3*parseInt(l.timestamp,16)),d=c.from;return{remoteHash:No(c.input,["0x"]),issuingAddress:d,time:u,revokedAddresses:[]}}))}var ta=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ia(e){return ta(this,arguments,void 0,(function*({serviceUrl:e,transactionId:t}){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield Oo({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:No(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:qo(n.blocktime),revokedAddresses:n.vout.filter((e=>!!e.scriptPubKey.addresses)).map((e=>e.scriptPubKey.addresses)).flat()}}))}var ra=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const na=[];function oa(e=[],t=[],i=!1){const r=e.map((e=>e.serviceName)).filter((e=>!!e)).filter((e=>!!Ye[e]));return r.length?t.reduce(((t,n)=>{if(r.includes(n.serviceName)){const i=Object.assign({},n),r=e.find((e=>e.serviceName===n.serviceName));if(function(e){if(e.key&&!e.keyPropertyName)throw new Error(`Property keyPropertyName is not set for ${e.serviceName}. Cannot pass the key property to the service.`);return!0}(r)){const n=Object.assign(i,r);t.push(n);const o=e.findIndex((e=>e.serviceName===n.serviceName));na.includes(o)||na.push(o)}}else t.push(n);return i&&function(e,t){t.forEach((t=>e.splice(t,1)))}(e,na),t}),[]):t}function aa(e){return e.map((e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?ia:ea),e))).map((e=>({getTxData:t=>ra(this,void 0,void 0,(function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))})),priority:e.priority})))}function sa(e){const{bitcoin:t,ethereum:i}={bitcoin:Wo(oa(r=e,Zo)),ethereum:Wo(oa(r,Xo))};var r;const{custom:n}=function(e){return{custom:aa(e)}}(e.filter((e=>"rpc"===e.apiType)));return{bitcoin:t,ethereum:i,custom:[...n,...Wo(e.filter((e=>"rpc"!==e.apiType)))]}}var ca,la=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ua(e,t){var i;switch(e){case Qe[Ze.Bitcoin].code:case Qe[Ze.Regtest].code:case Qe[Ze.Testnet].code:case Qe[Ze.Mocknet].code:return t.bitcoin;case Qe[Ze.Ethmain].code:case Qe[Ze.Ethropst].code:case Qe[Ze.Ethrinkeby].code:case Qe[Ze.Ethgoerli].code:case Qe[Ze.Ethsepolia].code:return t.ethereum;default:if(!(null===(i=t.custom)||void 0===i?void 0:i.length))throw new Error("Chain is not natively supported. Use custom explorers to retrieve tx data.");return t.custom}}function da(e){return la(this,void 0,void 0,(function*(){let t;try{t=yield rt(e,tt)}catch(e){throw new Error(`Transaction lookup error: ${e.message}`)}if(!t||0===t.length)throw new Error("Could not confirm transaction data.");const i=t[0];for(let e=1;e<t.length;e++){const r=t[e];if(i.issuingAddress!==r.issuingAddress)throw new Error("Issuing addresses do not match consistently");if(i.remoteHash!==r.remoteHash)throw new Error("Remote hashes do not match consistently")}return i}))}function pa(e,t,i,r){return la(this,void 0,void 0,(function*(){try{const n=function(e,t,i){if(tt>e.length)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");const r=[],n=e.length;for(let o=0;o<n;o++)r.push(e[o].getTxData(t,i));return r}(e[t],i,r);return yield da(n)}catch(n){if(t<e.length-1)return t++,yield pa(e,t,i,r);throw n}}))}function ha(e){return la(this,arguments,void 0,(function*({transactionId:e,chain:t,explorerAPIs:i=[]}){const r=sa(i),n=function({defaultAPIs:e,customAPIs:t}){const i=[e];if(null==t?void 0:t.length){const e=t[0].priority;i.splice(e,0,t)}const r=e.concat(t).length;if(tt>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:ua(t,r),customAPIs:r.custom});return yield pa(n,0,e,t)}))}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(ca||(ca={}));var fa="ecdsa-koblitz-pubkey:1",ga="https://openbadgespec.org/v2/context.json",ba="https://www.w3.org/2018/credentials/v1",ma="https://www.w3.org/ns/credentials/v2",va="https://w3id.org/blockcerts/schema/2.0/context.json",ya="https://w3id.org/blockcerts/v2",wa="https://www.blockcerts.org/schema/2.0/context.json",xa="https://w3id.org/blockcerts/schema/2.1/context.json",ka="https://w3id.org/blockcerts/v2.1",_a="https://www.blockcerts.org/schema/2.1/context.json",Sa="https://w3id.org/blockcerts/schema/3.0/context.json",Ca="https://w3id.org/blockcerts/v3",Pa="https://www.blockcerts.org/schema/3.0/context.json",La="https://w3id.org/blockcerts/schema/3.1/context.json",Ia="https://w3id.org/blockcerts/v3.1",Ta="https://www.blockcerts.org/schema/3.1/context.json",Ea="https://w3id.org/blockcerts/schema/3.2/context.json",Ma="https://w3id.org/blockcerts/v3.2",Aa="https://www.blockcerts.org/schema/3.2/context.json",Da="https://w3id.org/security/suites/merkle-2019/v1",Va="https://w3id.org/security/suites/chained-2021/v1",Ra="https://w3id.org/vc/status-list/2021/v1",Oa="https://w3id.org/security/data-integrity/v2",ja={"@context":{id:"@id",type:"@type",extensions:"https://w3id.org/openbadges/extensions#",obi:"https://w3id.org/openbadges#",validation:"obi:validation",cred:"https://w3id.org/credentials#",dc:"http://purl.org/dc/terms/",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",AlignmentObject:"schema:AlignmentObject",CryptographicKey:"sec:Key",Endorsement:"cred:Credential",Assertion:"obi:Assertion",BadgeClass:"obi:BadgeClass",Criteria:"obi:Criteria",Evidence:"obi:Evidence",Extension:"obi:Extension",FrameValidation:"obi:FrameValidation",IdentityObject:"obi:IdentityObject",Image:"obi:Image",HostedBadge:"obi:HostedBadge",hosted:"obi:HostedBadge",Issuer:"obi:Issuer",Profile:"obi:Profile",RevocationList:"obi:RevocationList",SignedBadge:"obi:SignedBadge",signed:"obi:SignedBadge",TypeValidation:"obi:TypeValidation",VerificationObject:"obi:VerificationObject",author:{"@id":"schema:author","@type":"@id"},caption:{"@id":"schema:caption"},claim:{"@id":"cred:claim","@type":"@id"},created:{"@id":"dc:created","@type":"xsd:dateTime"},creator:{"@id":"dc:creator","@type":"@id"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},endorsement:{"@id":"cred:credential","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},genre:{"@id":"schema:genre"},image:{"@id":"schema:image","@type":"@id"},name:{"@id":"schema:name"},owner:{"@id":"sec:owner","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},publicKeyPem:{"@id":"sec:publicKeyPem"},related:{"@id":"dc:relation","@type":"@id"},startsWith:{"@id":"http://purl.org/dqm-vocabulary/v1/dqm#startsWith"},tags:{"@id":"schema:keywords"},targetDescription:{"@id":"schema:targetDescription"},targetFramework:{"@id":"schema:targetFramework"},targetName:{"@id":"schema:targetName"},targetUrl:{"@id":"schema:targetUrl"},telephone:{"@id":"schema:telephone"},url:{"@id":"schema:url","@type":"@id"},version:{"@id":"schema:version"},alignment:{"@id":"obi:alignment","@type":"@id"},allowedOrigins:{"@id":"obi:allowedOrigins"},audience:{"@id":"obi:audience"},badge:{"@id":"obi:badge","@type":"@id"},criteria:{"@id":"obi:criteria","@type":"@id"},endorsementComment:{"@id":"obi:endorsementComment"},evidence:{"@id":"obi:evidence","@type":"@id"},hashed:{"@id":"obi:hashed","@type":"xsd:boolean"},identity:{"@id":"obi:identityHash"},issuedOn:{"@id":"obi:issueDate","@type":"xsd:dateTime"},issuer:{"@id":"obi:issuer","@type":"@id"},narrative:{"@id":"obi:narrative"},recipient:{"@id":"obi:recipient","@type":"@id"},revocationList:{"@id":"obi:revocationList","@type":"@id"},revocationReason:{"@id":"obi:revocationReason"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},revokedAssertions:{"@id":"obi:revoked"},salt:{"@id":"obi:salt"},targetCode:{"@id":"obi:targetCode"},uid:{"@id":"obi:uid"},validatesType:"obi:validatesType",validationFrame:"obi:validationFrame",validationSchema:"obi:validationSchema",verification:{"@id":"obi:verify","@type":"@id"},verificationProperty:{"@id":"obi:verificationProperty"},verify:"verification"}},Na={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/merkleProof2017Schema.json"}]},za={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/merkleProof2017Schema.json"}]},$a={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},Ua={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},Ba={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",schema:"https://schema.org/",sec:"https://w3id.org/security#",BlockcertsCredential:"bc:BlockcertsCredential",BlockcertsIssuerProfile:"bc:BlockcertsIssuerProfile",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},email:{"@id":"schema:email"},publicKey:{"@context":{created:{"@id":"bc:created"}},"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"},revocationList:{"@id":"bc:revocationList"}}};const Fa={};Fa["https://w3id.org/openbadges/v2"]=ja,Fa[ga]=ja,Fa[ba]={"@context":{"@version":1.1,id:"@id",type:"@type",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",credentialSchema:{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",JsonSchemaValidator2018:"cred:JsonSchemaValidator2018"}},credentialStatus:{"@id":"cred:credentialStatus","@type":"@id"},credentialSubject:{"@id":"cred:credentialSubject","@type":"@id"},evidence:{"@id":"cred:evidence","@type":"@id"},expirationDate:{"@id":"cred:expirationDate","@type":"xsd:dateTime"},holder:{"@id":"cred:holder","@type":"@id"},issued:{"@id":"cred:issued","@type":"xsd:dateTime"},issuer:{"@id":"cred:issuer","@type":"@id"},issuanceDate:{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",ManualRefreshService2018:"cred:ManualRefreshService2018"}},termsOfUse:{"@id":"cred:termsOfUse","@type":"@id"},validFrom:{"@id":"cred:validFrom","@type":"xsd:dateTime"},validUntil:{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",holder:{"@id":"cred:holder","@type":"@id"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},EcdsaSecp256r1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},Ed25519Signature2018:{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},RsaSignature2018:{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}},Fa[ma]={"@context":{"@protected":!0,id:"@id",type:"@type",description:"https://schema.org/description",digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},mediaType:{"@id":"https://schema.org/encodingFormat"},name:"https://schema.org/name",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},credentialSchema:{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},credentialStatus:{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},credentialSubject:{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},description:"https://schema.org/description",evidence:{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},issuer:{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},name:"https://schema.org/name",proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},renderMethod:{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},validFrom:{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},validUntil:{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"}}},EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":!0,id:"@id",type:"@type",holder:{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},EnvelopedVerifiablePresentation:"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",JsonSchemaCredential:"https://www.w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://www.w3.org/2018/credentials#jsonSchema","@type":"@json"}}},BitstringStatusListCredential:"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential",BitstringStatusList:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":!0,id:"@id",type:"@type",encodedList:{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",ttl:"https://www.w3.org/ns/credentials/status#ttl"}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",message:"https://www.w3.org/ns/credentials/status#message",status:"https://www.w3.org/ns/credentials/status#status"}},statusReference:{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},statusSize:{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#integer"}}},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},cnf:{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":!0,kid:{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},jwk:{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iat:{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}},Fa[va]=Na,Fa[wa]=Na,Fa[ya]=Na,Fa[xa]=za,Fa[_a]=za,Fa[ka]=za,Fa[Sa]=$a,Fa[Pa]=$a,Fa[Ca]=$a,Fa[La]=Ua,Fa[Ta]=Ua,Fa[Ia]=Ua,Fa[Ea]=Ba,Fa[Aa]=Ba,Fa[Ma]=Ba,Fa[Da]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},MerkleProof2019:{"@id":"https://w3id.org/security#MerkleProof2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Fa[Va]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},ChainedProof2021:{"@id":"https://w3id.org/security#ChainedProof2021","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"},chainedProofType:{"@id":"https://w3id.org/security#chainedProofType","@type":"@id"},previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"}}}}},Fa[Ra]={"@context":{"@protected":!0,StatusList2021Credential:{"@id":"https://w3id.org/vc/status-list#StatusList2021Credential","@context":{"@protected":!0,id:"@id",type:"@type",description:"http://schema.org/description",name:"http://schema.org/name"}},StatusList2021:{"@id":"https://w3id.org/vc/status-list#StatusList2021","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",encodedList:"https://w3id.org/vc/status-list#encodedList"}},StatusList2021Entry:{"@id":"https://w3id.org/vc/status-list#StatusList2021Entry","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",statusListIndex:"https://w3id.org/vc/status-list#statusListIndex",statusListCredential:{"@id":"https://w3id.org/vc/status-list#statusListCredential","@type":"@id"}}}}},Fa[Oa]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};var Ha={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",creator:{"@id":"dc:creator","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"sec:expiration","@type":"xsd:dateTime"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:"bc:verification",publicKeys:"bc:publicKeys",ChainpointSHA256v2:"cp:ChainpointSHA256v2",BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/merkleProof2017Schema.json"}]},qa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"bc:created","@type":"xsd:dateTime"},name:{"@id":"schema:name"}}},Ka={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType","@type":"@id"},contentEncoding:{"@id":"bc:contentEncoding","@type":"@id"},content:{"@id":"bc:content","@type":"@id"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey","@type":"@id"},url:{"@id":"schema:url","@type":"@id"},image:{"@id":"schema:image","@type":"@id"}}},Ja={"@context":{"@protected":!0,id:"@id",type:"@type",alsoKnownAs:{"@id":"https://www.w3.org/ns/activitystreams#alsoKnownAs","@type":"@id"},assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"},service:{"@id":"https://www.w3.org/ns/did#service","@type":"@id","@context":{"@protected":!0,id:"@id",type:"@type",serviceEndpoint:{"@id":"https://www.w3.org/ns/did#serviceEndpoint","@type":"@id"}}},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},Ya={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},EcdsaSecp256k1VerificationKey2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1VerificationKey2019","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},blockchainAccountId:{"@id":"https://w3id.org/security#blockchainAccountId"},publicKeyJwk:{"@id":"https://w3id.org/security#publicKeyJwk","@type":"@json"},publicKeyBase58:{"@id":"https://w3id.org/security#publicKeyBase58"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},jws:{"@id":"https://w3id.org/security#jws"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Ga={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},Ed25519VerificationKey2020:{"@id":"https://w3id.org/security#Ed25519VerificationKey2020","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},Ed25519Signature2020:{"@id":"https://w3id.org/security#Ed25519Signature2020","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};Fa["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=Ha,Fa["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=Ha,Fa["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=qa,Fa["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=qa,Fa["https://w3id.org/blockcerts/v3.0-alpha"]=qa,Fa["https://www.blockcerts.org/schema/3.0-beta/context.json"]=Ka,Fa["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=Ka,Fa["https://w3id.org/blockcerts/v3.0-beta"]=Ka,Fa["https://w3id.org/security/suites/ed25519-2020/v1"]=Ga,Fa["https://ns.did.ai/suites/secp256k1-2019/v1"]=Ya,Fa["https://w3id.org/security/suites/secp256k1-2019/v1"]=Ya,Fa["https://www.w3.org/ns/did/v1"]=Ja;const Wa={locale:"en-US"};var Za=Object.freeze({__proto__:null,isMainnet:function(e){return Fe(e,"1")||Fe(e,fa)}});var Xa={locale:"en-US"},Qa={"en-US":{steps:{formatValidationLabel:"Format validation",formatValidationLabelPending:"Validating format",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Checking record status"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Get transaction ID",getTransactionIdLabelPending:"Getting transaction ID",computeLocalHashLabel:"Compute local hash",computeLocalHashLabelPending:"Computing local hash",fetchRemoteHashLabel:"Fetch remote hash",fetchRemoteHashLabelPending:"Fetching remote hash",getIssuerProfileLabel:"Get issuer profile",getIssuerProfileLabelPending:"Getting issuer profile",parseIssuerKeysLabel:"Parse issuer keys",parseIssuerKeysLabelPending:"Parsing issuer keys",compareHashesLabel:"Compare hashes",compareHashesLabelPending:"Comparing hashes",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Check Merkle Root",checkMerkleRootLabelPending:"Checking Merkle Root",checkReceiptLabel:"Check Receipt",checkReceiptLabelPending:"Checking Receipt",checkAuthenticityLabel:"Check Authenticity",checkAuthenticityLabelPending:"Checking Authenticity",checkCredentialSchemaConformityLabel:"Check Conformity with Credential Schema",checkCredentialSchemaConformityLabelPending:"Checking Conformity with Credential Schema",checkRevokedStatusLabel:"Check Revoked Status",checkRevokedStatusLabelPending:"Checking Revoked Status",checkExpiresDateLabel:"Check Expiration Date",checkExpiresDateLabelPending:"Checking Expiration Date",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"Reason given:",reason:"This certificate has been ${CREDENTIAL_STATUS} by the issuer.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revoked",suspended:"suspended"},success:{mocknet:{label:"This Mocknet credential passed all checks",description:"Mocknet credentials are used for test purposes only. They are not recorded on a blockchain, and they should not be considered verified Blockcerts."},blockchain:{label:"Verified",description:"This is a valid ${chain} certificate.",linkText:"View transaction link"},generic:{label:"Verified",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verified",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"This is not a valid certificate",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"Could not confirm the transaction",ensureHashesEqual:"Computed hash does not match remote hash",ensureMerkleRootEqual:"Merkle root does not match remote hash.",ensureNotExpired:"This certificate has expired on ",ensureValidReceipt:"The receipt is malformed. There was a problem navigating the merkle tree in the receipt.",failedJsonLdNormalization:"Failed JSON-LD normalization",foundUnmappedFields:"Found unmapped fields during JSON-LD normalization",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Didn't recognize chain value",getIssuerProfile:"Unable to get issuer profile",getRevokedAssertions:"Unable to get revocation assertions",getTransactionId:"Cannot verify this certificate without a transaction ID to compare against.",invalidMerkleReceipt:"Invalid Merkle Receipt. Proof hash did not match Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Cannot verify this certificate without a transaction ID to compare against.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Unable to parse JSON out of issuer identification data.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"}},fr:{steps:{formatValidationLabel:"Validation du format",formatValidationLabelPending:"Validation du format",signatureVerificationLabel:"Vérification de la preuve",signatureVerificationLabelPending:"Vérification de la preuve",identityVerificationLabel:"Vérification de l'identité",identityVerificationLabelPending:"Vérification de l'identité",statusCheckLabel:"Vérification du status",statusCheckLabelPending:"Vérification du status"},subSteps:{assertProofValidityLabel:"Vérification de l'objectif de la signature",assertProofValidityLabelPending:"Vérification de l'objectif de la signature",getTransactionIdLabel:"Obtention de l'identifiant de transaction",getTransactionIdLabelPending:"Obtention de l'identifiant de transaction",computeLocalHashLabel:"Calcul du hash local",computeLocalHashLabelPending:"Calcul du hash local",fetchRemoteHashLabel:"Récupération du hash distant",fetchRemoteHashLabelPending:"Récupération du hash distant",getIssuerProfileLabel:"Obtention du profil de l'émetteur",getIssuerProfileLabelPending:"Obtention du profil de l'émetteur",parseIssuerKeysLabel:"Traitement des clés de l'émetteur",parseIssuerKeysLabelPending:"Traitement des clés de l'émetteur",compareHashesLabel:"Comparaison des hash",compareHashesLabelPending:"Comparaison des hashs",checkDocumentSignatureLabel:"Vérification de la signature du document",checkDocumentSignatureLabelPending:"Vérification de la signature du document",checkMerkleRootLabel:"Vérification du Merkle Root",checkMerkleRootLabelPending:"Vérification du Merkle Root",checkReceiptLabel:"Vérification du reçu",checkReceiptLabelPending:"Vérification du reçu",checkAuthenticityLabel:"Vérification de l'authenticité",checkAuthenticityLabelPending:"Vérification de l'authenticité",checkCredentialSchemaConformityLabel:"Vérification de la conformité avec le schéma du certificat",checkCredentialSchemaConformityLabelPending:"Vérification de la conformité avec le schéma du certificat",checkRevokedStatusLabel:"Vérification du status de révocation",checkRevokedStatusLabelPending:"Vérification du status de révocation",checkExpiresDateLabel:"Vérification de la date d'expiration",checkExpiresDateLabelPending:"Vérification de la date d'expiration",ensureValidityPeriodStartedLabel:"Vérification du début de validité",ensureValidityPeriodStartedLabelPending:"Vérification du début de validité",ensureVerificationMethodValidityLabel:"Vérification de la validité de la méthode de vérification",ensureVerificationMethodValidityLabelPending:"Vérification de la validité de la méthode de vérification",controlVerificationMethodLabel:"Contrôle de la Méthode de Vérification",controlVerificationMethodLabelPending:"Contrôle de la Méthode de Vérification",retrieveVerificationMethodPublicKeyLabel:"Extraction de la clé publique depuis le document DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraction de la clé publique depuis le document DID",deriveIssuingAddressFromPublicKeyLabel:"Dérivation de l'adresse d'émission depuis la clé publique",deriveIssuingAddressFromPublicKeyLabelPending:"Dérivation de l'adresse d'émission depuis la clé publique",compareIssuingAddressLabel:"Comparaison des adresses",compareIssuingAddressLabelPending:"Comparaison des adresses",checkImagesIntegrityLabel:"Vérification de l'Intégrité des Images",checkImagesIntegrityLabelPending:"Vérification de l'Intégrité des Images",validateDateFormatLabel:"Vérification du format des dates",validateDateFormatLabelPending:"Vérification du format des dates",verifyIssuerProfileLabel:"Vérification du profil de l'émetteur",verifyIssuerProfileLabelPending:"Vérification du profil de l'émetteur"},revocation:{preReason:"Raison :",reason:"Ce certificat a été ${CREDENTIAL_STATUS} par l'émetteur le ",revocationListAuthenticityFailure:"L'authenticité de la liste de revocation n'a pas pu être validée.",noRevocationStatusList2021Found:"Aucune liste de revocation n'a pu être trouvée à l'URL spécifiée par 'statusListCredential':",revoked:"révoqué",suspended:"suspendu"},success:{mocknet:{label:"Cet enregistrement Mocknet a été vérifié",description:"Le mode Mocknet est utilisé à des fins de tests uniquement. Ce Blockcert n'a pas été enregistré sur une blockchain, et en tant que tel ne peut pas être considéré un Blockcert valide."},blockchain:{label:"Vérifié",description:"Ceci est un certificat ${chain} valide.",linkText:"Voir la transaction"},generic:{label:"Verified",description:"La signature ${SIGNATURE_TYPE} de ce certificat a été vérifiée avec succès."},multisign:{label:"Vérifié",description:"Toutes les signatures numériques de ce certificat ont été vérifiées avec succès."}},errors:{certificateNotValid:"Certificat invalide",checkCredentialSchemaConformity:"Ce certificat n'est pas conforme avec le schema de certificat fourni",couldNotConfirmTx:"Impossible de confirmer la transaction",ensureHashesEqual:"Calcul du hash local différent du hash distant",ensureMerkleRootEqual:"Le Merkle root ne correspond pas au hash distant",ensureNotExpired:"Certificat expiré",ensureValidReceipt:"Erreur d'écriture du reçu. Un problème est survenu lors de la navigation de l'arbre Merkle du reçu.",failedJsonLdNormalization:"Erreur de normalisation JSON-LD",foundUnmappedFields:"Champs non liés découverts durant la normalisation JSON-LD",identityErrorBaseMessage:"Identité de l'émetteur invalide",deriveIssuingAddressFromPublicKey:"Cette blockchain n'est pas supportée pour la vérification de l'identité décentralisée.",controlVerificationMethod:"Le document d'identité de l'émetteur ne correspond pas à la méthode de vérification.",retrieveVerificationMethodPublicKey:"Le document d'identité de l'émetteur ne fait pas mention de la méthode de vérification.",compareIssuingAddress:"La méthode de vérification n'a pas permis d'établir l'identité de l'émetteur.",invalidIssuingAddressCreationTime:"L'adresse d'émission utilisée a été créée après la transaction d'enregistrement.",invalidIssuingAddressRevoked:"L'adresse d'émission utilisée a été décommissionnée par l'émetteur avant la transaction d'enregistrement.",invalidIssuingAddressExpired:"L'adresse d'émission utilisée a expiré avant la transaction.",invalidIssuingAddressUnknown:"L'adresse utilisée pour émettre ce Blockcerts n'appartient à l'émetteur déclaré.",getChain:"Valeur de chaine non reconnue",getIssuerProfile:"Profil de l'émetteur indisponible",getRevokedAssertions:"Impossible d'obtenir les raisons de revocation",getTransactionId:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",invalidMerkleReceipt:"Reçu Merkle invalide. Hash de preuve différent du Merkle root",invalidMerkleVersion:"La version du Merkle utilisé est incompatible avec la version Blockcerts.",isTransactionIdValid:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",issuerProfileNotSet:"l'URL de l'émetteur n'est pas définie",issuerProfileInvalid:"le document distant ne semble pas être un profil d'émetteur valide",parseIssuerKeys:"Impossible de lire le JSON d'identification de l'émetteur",checkImagesIntegrity:"La vérification des images a prouvé que le contenu a été modifié après l'émission.",ensureValidityPeriodStarted:"Ce certificat n'est pas encore valide.",validateDateFormat:"Le format de date spécifié n'est pas conforme aux exigences de la spécification (RFC3339). Propriété :"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"}},es:{steps:{formatValidationLabel:"Validación de formato",formatValidationLabelPending:"Validando el formato",signatureVerificationLabel:"Verificar prueba",signatureVerificationLabelPending:"Verificando prueba",identityVerificationLabel:"Verificar identitad",identityVerificationLabelPending:"Verificando identitad",statusCheckLabel:"Estado de Verificación",statusCheckLabelPending:"Verificando Estado de Grabación"},subSteps:{assertProofValidityLabel:"Afirmar propósito de la prueba",assertProofValidityLabelPending:"Afirmando propósito de la prueba",getTransactionIdLabel:"Obtener Identificación de Transacción",getTransactionIdLabelPending:"Obteniendo Identificación de Transacción",computeLocalHashLabel:"Calcular cadena binaria local",computeLocalHashLabelPending:"Calculando cadena binaria local",fetchRemoteHashLabel:"Obtener cadena binaria remota",fetchRemoteHashLabelPending:"Obeniendo cadena binaria remota",getIssuerProfileLabel:"Obtener perfil de emisor",getIssuerProfileLabelPending:"Obteniendo perfil de emisor",parseIssuerKeysLabel:"Analizar claves del emisor",parseIssuerKeysLabelPending:"Analizando claves del emisor",compareHashesLabel:"Comparar cadenas binarias",compareHashesLabelPending:"Comparando cadenas binarias",checkDocumentSignatureLabel:"Controlar firma del documento",checkDocumentSignatureLabelPending:"Controlando firma del documento",checkMerkleRootLabel:"Verificar Merkle Root",checkMerkleRootLabelPending:"Verificando Merkle Root",checkReceiptLabel:"Verificar Recibo",checkReceiptLabelPending:"Verificando Recibo",checkAuthenticityLabel:"Verificar Autenticidad",checkAuthenticityLabelPending:"Verificando Autenticidad",checkCredentialSchemaConformityLabel:"Verificar conformidad con el esquema del certificado",checkCredentialSchemaConformityLabelPending:"Verificando conformidad con el esquema del certificado",checkRevokedStatusLabel:"Verificar Estado de Revocación",checkRevokedStatusLabelPending:"Verificando Estado de Revocación",checkExpiresDateLabel:"Verificar Fechas de Expiración",checkExpiresDateLabelPending:"Verificando Fechas de Expiración",ensureValidityPeriodStartedLabel:"Verificar Fechas de Validez",ensureValidityPeriodStartedLabelPending:"Verificando Fechas de Validez",ensureVerificationMethodValidityLabel:"Verificar Validez del Método de Verificación",ensureVerificationMethodValidityLabelPending:"Verificando Validez del Método de Verificación",controlVerificationMethodLabel:"Controlar Metodo de Verificación",controlVerificationMethodLabelPending:"Controlando Metodo de Verificación",retrieveVerificationMethodPublicKeyLabel:"Extraer la llave pública desde el documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraendo la llave pública desde el documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivar la dirección del emisor desde la llave pública",deriveIssuingAddressFromPublicKeyLabelPending:"Derivando la dirección del emisor desde la llave pública",compareIssuingAddressLabel:"Comparar direcciones",compareIssuingAddressLabelPending:"Comparando direcciones",checkImagesIntegrityLabel:"Comprobar Integridad de las Imagens",checkImagesIntegrityLabelPending:"Comprobando Integridad de las Imagens",validateDateFormatLabel:"Verificar formato de fecha",validateDateFormatLabelPending:"Verificando formato de fecha",verifyIssuerProfileLabel:"Verificar perfil del emisor",verifyIssuerProfileLabelPending:"Verificando perfil del emisor"},revocation:{preReason:"Motivo:",reason:"Este certificado ha sido ${CREDENTIAL_STATUS} por el emisor.",revocationListAuthenticityFailure:"La authenticidad de la lista de revocación no se pudo confirmar.",noRevocationStatusList2021Found:"No lista de revocación encontrada en la URL dada por 'statusListCredential':",revoked:"revocado",suspended:"suspendido"},success:{mocknet:{label:"Esta credencial de Mocknet pasó todas las comprobaciones",description:"Las credenciales de Mocknet se usan solo con fines de prueba. No se graban en una cadena de bloques, y no se deben considerar Blockcerts Verificados."},blockchain:{label:"Verificado",description:"Este es un certificado válido de ${chain}.",linkText:"Ver enlace de transacción"},generic:{label:"Verified",description:"La firma ${SIGNATURE_TYPE} de este certificado ha verificado con éxito."},multisign:{label:"Verificado",description:"Todas las firmas digitales de este certificado han verificado con éxito."}},errors:{certificateNotValid:"Este no es un certificado válido",checkCredentialSchemaConformity:"Este certificado no cumple con el esquema de certificado especificado",couldNotConfirmTx:"No se ha podido confirmar la transacción",ensureHashesEqual:"La cadena binaria calculada no corresponde con la cadena binaria remota",ensureMerkleRootEqual:"La raíz Merkle no corresponde con la cadena binaria remota",ensureNotExpired:"Este certificado ha expirado el ",ensureValidReceipt:"El recibo está malformado. Hubo un problema navegando el árbol Merkle en el recibo",failedJsonLdNormalization:"La normalización del JSON-LD ha fallado",foundUnmappedFields:"Se han encontrado campos no mapeados durante la normalización de JSON-LD",identityErrorBaseMessage:"Identitad del emisor inválida",deriveIssuingAddressFromPublicKey:"No se puede validar la identitad decentalisada con esta cadena binaria.",controlVerificationMethod:"El documento de identitad del emisor no corresponde al metodo de verificación.",retrieveVerificationMethodPublicKey:"El documento de identitad del emisor no hace constar al metodo de verificación.",compareIssuingAddress:"El metodo de verificación no corresponde a la identitad del emisor.",invalidIssuingAddressCreationTime:"El emisor creó el metodo de verificación después de la emisión del certificado.",invalidIssuingAddressRevoked:"El emisor revocó el metodo de verificación antes de la emisión del certificado.",invalidIssuingAddressExpired:"El metodo de verificación expiró antes de la emisión del certificado.",invalidIssuingAddressUnknown:"El metodo de verificación no pertenece a la identitad del emisor.",getChain:"Valor de cadena no reconocido",getIssuerProfile:"No se ha podido obtener el perfil del emisor",getRevokedAssertions:"No se ha podido obtener aseveraciones de revocación",getTransactionId:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",invalidMerkleReceipt:"Recibo Merkle inválido. La cadena binaria de prueba no corresponde con la raíz Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",issuerProfileNotSet:"URL del emisor no definido",issuerProfileInvalid:"el documento recogido no parece ser un perfil de emisor valido",parseIssuerKeys:"No se ha podido analizar el JSON de la información de identificación del emisor",checkImagesIntegrity:"La verificación de la integridad de los imagens provó alteración del contenido después de la emisión.",ensureValidityPeriodStarted:"Este certificado aún no está valido.",validateDateFormat:"El formato de fecha especificado no cumple con los requisitos de la especificación (RFC3339). Propiedad:"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"}},mt:{steps:{formatValidationLabel:"Validazzjoni tal-format",formatValidationLabelPending:"Il-format qed jiġi vvalidat",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Ir-record status qed jiġi ċċekkjat"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Ikseb l-ID ta' tranżazzjoni",getTransactionIdLabelPending:"L-ID ta' tranżazzjoni qed tiġi mniżżla",computeLocalHashLabel:"Ikkalkula l-hash lokali",computeLocalHashLabelPending:"Il-hash lokali qed jiġi kkalkulat",fetchRemoteHashLabel:"Fittex ir-remote hash",fetchRemoteHashLabelPending:"Ir-remote hash qed jiġi mfittex",getIssuerProfileLabel:"Ikseb il-profil tal-emittent",getIssuerProfileLabelPending:"Il-profil tal-emittent qed jiġi mniżżel",parseIssuerKeysLabel:"Estratta ċ-ċwievet tal-emittent",parseIssuerKeysLabelPending:"Iċ-ċwievet tal-emittent qed jiġu estratti",compareHashesLabel:"Ikkumpara l-hashes",compareHashesLabelPending:"Il-hashes qed jiġu kkomparati",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Iċċekkja l-Merkle Root",checkMerkleRootLabelPending:"Il-Merkle Root Qed Tiġi Ċċekkjata",checkReceiptLabel:"Iċċekkja l-Irċevuta",checkReceiptLabelPending:"L-Irċevuta Qed Tiġi Ċċekkjata",checkAuthenticityLabel:"Iċċekkja l-Awtentiċità",checkAuthenticityLabelPending:"L-Awtentiċità Qed Tiġi Ċċekkjata",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"Iċċekkja l-Istatus Revokat",checkRevokedStatusLabelPending:"L-Istatus Revokat Qed Jiġi Ċċekkjat",checkExpiresDateLabel:"Iċċekkja d-Data ta' Skadenza",checkExpiresDateLabelPending:"Id-Data ta' Skadenza Qed Tiġi Ċċekkjata",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"Raġuni mogħtija:",reason:"Dan iċ-ċertifikat ġie ${CREDENTIAL_STATUS} mill-emittent.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revokat",suspended:"suspended"},success:{mocknet:{label:"Din il-kredenzjali tal-Mocknet għaddiet il-kontrolli kollha",description:"Il-kredenzjali tal-Mocknet jintużaw biss għal skopijiet ta 'ttestjar. Dawn mhumiex irreġistrati fuq blockchain, u ma għandhomx jiġu kkunsidrati bħala blockcerts verifikati."},blockchain:{label:"Ivverifikat",description:"Dan huwa ċertifikat ${chain} huwa validu.",linkText:"Ara l-link tat-transazzjoni"},generic:{label:"Ivverifikat",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Ivverifikat",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Dan mhux ċertifikat validu",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"Ma setgħetx tiġi kkonfermata t-tranżazzjoni",ensureHashesEqual:"Il-hash ikkalkulat ma jikkorrispondix mar-remote hash",ensureMerkleRootEqual:"Merkle root ma taqbilx mar-remote hash",ensureNotExpired:"Dan iċ-ċertifikat skada fid-data - ",ensureValidReceipt:"L-irċevuta hija malformata. Kien hemm problema fin-navigazzjoni tal-merkle tree fl-irċevuta",failedJsonLdNormalization:"In-normalizzazzjoni ta' JSON-LD ma rnexxietx",foundUnmappedFields:"Instabu unmapped fields matul in-normalizzazzjoni JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"L-indirizz elettroniku tal-ħruġ speċifikat inħoloq wara li seħħet it-tranżazzjoni.",invalidIssuingAddressRevoked:"L-indirizz elettroniku tal-ħruġ speċifikat ġie revokat mill-emittent qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressExpired:"L-indirizz elettroniku tal-ħruġ speċifikat skada qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressUnknown:"L-indirizz elettroniku użat biex jinħarġu dawn il-Blockcerts ma jappartjenix għall-emittent mitlub.",getChain:"Iċ-chain value ma ntgħarafx",getIssuerProfile:"Mhux possibbli jinkiseb il-profil tal-emittent",getRevokedAssertions:"Mhux possibbli jinkisbu dikjarazzjonijiet revokati",getTransactionId:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",invalidMerkleReceipt:"Irċevuta Merkle invalida. Il-proof hash ma kienx jaqbel mal-Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Ma jistax jiġi estratt JSON mid-data tal-identifikazzjoni tal-emittent",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"],pattern:"DD MM YYYY"}},"it-IT":{steps:{formatValidationLabel:"Convalidare formato",formatValidationLabelPending:"Convalida formato",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Verificare stato",statusCheckLabelPending:"Verifica stato del record"},subSteps:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",getTransactionIdLabel:"Ottenere ID transazione",getTransactionIdLabelPending:"Ottieni ID transazione",computeLocalHashLabel:"Calcolare hash locale",computeLocalHashLabelPending:"Calcola hash locale",fetchRemoteHashLabel:"Recuperare hash remoto",fetchRemoteHashLabelPending:"Recupera hash remoto",getIssuerProfileLabel:"Ottenere profilo issuer",getIssuerProfileLabelPending:"Ottieni profilo issuer",parseIssuerKeysLabel:"Analizzare chiavi issuer",parseIssuerKeysLabelPending:"Analizza chiavi issuer",compareHashesLabel:"Confrontare gli hash",compareHashesLabelPending:"Confronto hash",checkDocumentSignatureLabel:"Controllare firma del documento",checkDocumentSignatureLabelPending:"Controllo firma del documento",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkCredentialSchemaConformityLabel:"Verificare conformità con lo schema del certificato",checkCredentialSchemaConformityLabelPending:"Verifica conformità con lo schema del certificato",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",ensureValidityPeriodStartedLabel:"Verificare data di inizio validità",ensureValidityPeriodStartedLabelPending:"Verifica data di inizio validità",ensureVerificationMethodValidityLabel:"Verificare validità del metodo di verifica",ensureVerificationMethodValidityLabelPending:"Verifica validità del metodo di verifica",controlVerificationMethodLabel:"Controllare il metodo di verifica",controlVerificationMethodLabelPending:"Controllo del metodo di verifica",retrieveVerificationMethodPublicKeyLabel:"Estrarre chiave pubblica dal documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Estrazione chiave pubblica dal documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivare l'indirizzo di emissione dalla chiave pubblica",deriveIssuingAddressFromPublicKeyLabelPending:"Derivazione dell'indirizzo di emissione dalla chiave pubblica",compareIssuingAddressLabel:"Confrontare gli indirizzi",compareIssuingAddressLabelPending:"Confronto degli indirizzi",checkImagesIntegrityLabel:"Verificare l'integrità delle immagini",checkImagesIntegrityLabelPending:"Verifica dell'integrità delle immagini",validateDateFormatLabel:"Verificare il formato della data",validateDateFormatLabelPending:"Verifica del formato della data",verifyIssuerProfileLabel:"Verificare il profilo dell'emittente",verifyIssuerProfileLabelPending:"Verifica del profilo dell'emittente"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato ${CREDENTIAL_STATUS} dall'emittente.",revocationListAuthenticityFailure:"L'autenticità dell'elenco di revoca non è stata confermata.",noRevocationStatusList2021Found:"Nessun elenco di stato di revoca trovato all'URL specificato per 'statusListCredential':",revoked:"revocato",suspended:"sospeso"},success:{mocknet:{label:"Questo Blockcert simulato ha superato tutti i controlli.",description:"La modalità Mocknet è utilizzata solo dagli emittenti per testare il loro flusso di lavoro localmente. Questo Blockcert non è stato registrato su una blockchain e non dovrebbe essere considerato un Blockcert verificato."},blockchain:{label:"Verificato",description:"Questo è un certificato ${chain} valido.",linkText:"Vedi la transazione"},generic:{label:"Verificato",description:"La firma ${SIGNATURE_TYPE} di questo certificato è stata verificata con successo."},multisign:{label:"Verificato",description:"Tutte le firme digitali di questo certificato sono state verificate con successo."}},errors:{certificateNotValid:"Questo non è un certificato valido",checkCredentialSchemaConformity:"Questo certificato non è conforme allo schema di certificazione specificato",couldNotConfirmTx:"Impossibile confermare la transazione",ensureHashesEqual:"L'hash calcolato non corrisponde all'hash remoto",ensureMerkleRootEqual:"La radice di Merkle non corrisponde all'hash remoto.",ensureNotExpired:"Questo certificato è scaduto il ",ensureValidReceipt:"La ricevuta è malformata. C'è stato un problema nella navigazione dell'albero di Merkle nella ricevuta.",failedJsonLdNormalization:"Normalizzazione JSON-LD fallita",foundUnmappedFields:"Campi non mappati trovati durante la normalizzazione JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Il valore della catena non è stato riconosciuto",getIssuerProfile:"Impossibile ottenere il profilo dell'emittente",getRevokedAssertions:"Impossibile ottenere le asserzioni di revoca",getTransactionId:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",invalidMerkleReceipt:"Ricevuta Merkle non valida. L'hash di prova non corrisponde alla radice di Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Impossibile analizzare JSON dai dati di identificazione dell'emittente.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{assertProofValidityLabel:"証明の目的を主弭する",assertProofValidityLabelPending:"証明の目的を主弭中",getTransactionIdLabel:"取引IDの取得",getTransactionIdLabelPending:"取引IDを取得",computeLocalHashLabel:"ローカルハッシュの算出",computeLocalHashLabelPending:"ローカルハッシュを算出",fetchRemoteHashLabel:"リモートハッシュの取得",fetchRemoteHashLabelPending:"リモートハッシュを取得",getIssuerProfileLabel:"発行者プロフィールの取得",getIssuerProfileLabelPending:"発行者プロフィールを取得",parseIssuerKeysLabel:"発行者の鍵の解析",parseIssuerKeysLabelPending:"発行者の鍵を解析",compareHashesLabel:"ハッシュの照合",compareHashesLabelPending:"ハッシュを照合",checkDocumentSignatureLabel:"Documentの署名の確認",checkDocumentSignatureLabelPending:"Documentの署名を確認",checkMerkleRootLabel:"Merkle Rootの確認",checkMerkleRootLabelPending:"Merkle Rootを確認",checkReceiptLabel:"レシートの確認",checkReceiptLabelPending:"レシートを確認",checkAuthenticityLabel:"真正性の確認",checkAuthenticityLabelPending:"真正性を確認",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},revocation:{preReason:"理由:",reason:"この証明書は発行者により${CREDENTIAL_STATUS}。",revocationListAuthenticityFailure:"取消登録リストの真正性を確認できませんでした。",noRevocationStatusList2021Found:"「statusListCredential」のURLでステータスリストが見つかりませんでした:",revoked:"取消されました",suspended:"停止されました"},success:{mocknet:{label:"このMocknetの証明書は全てのチェックを通過しました。",description:"Mocknetの証明書はテスト用のものです。ブロックチェーンに記録されず、認証可能のBlockcert証明書として扱われません。"},blockchain:{label:"認証されました",description:"この証明書は有効な${chain}の証明書です。",linkText:"取引を確認する"},generic:{label:"認証されました",description:"このdocumentの${SIGNATURE_TYPE}の署名の確認に成功しました。"},multisign:{label:"認証されました",description:"この証明書の全ての署名の確認に成功しました。"}},errors:{certificateNotValid:"この証明書は無効です",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",couldNotConfirmTx:"取引を確認できませんでした",ensureHashesEqual:"算出されたハッシュがリモートハッシュと一致しませんでした",ensureMerkleRootEqual:"Merkle rootがリモートハッシュと一致しませんでした",ensureNotExpired:"この証明書の有効期限が切れています ",ensureValidReceipt:"レシートに異常があります。レシート内のMerkle treeを辿る際に問題が発生しました。",failedJsonLdNormalization:"JSON-LDの正規化に失敗しました",foundUnmappedFields:"JSON-LDの正規化時にマップされていないフィールドを検出しました",identityErrorBaseMessage:"発行者アイデンティティが一致しませんでした",deriveIssuingAddressFromPublicKey:"DID認証未対応のブロックチェーンです",controlVerificationMethod:"発行者から提供されたアイデンティティdocumentが認証方法と一致していません",retrieveVerificationMethodPublicKey:"発行者から提供されたアイデンティティdocumentが認証方法を参照していません",compareIssuingAddress:"提供された認証方法は発行者アイデンティティと一致していません",invalidIssuingAddressCreationTime:"指定の発行者アドレスは取引が行われた後に生成されました。",invalidIssuingAddressRevoked:"指定の発行者アドレスは取引が行われた前に発行者によって取消されました。",invalidIssuingAddressExpired:"指定の発行者アドレスは取引が行われた前に有効期限が切れました。",invalidIssuingAddressUnknown:"このBlockcert証明書の発行に使用されたアドレスは指定の発行者が所有していません。",getChain:"チェーンの値を認識できませんでした",getIssuerProfile:"発行者プロフィールを取得できません",getRevokedAssertions:"取消assertionsを取得できません",getTransactionId:"照合のための取引IDがないため、この証明書を認証できません。",invalidMerkleReceipt:"Merkleレシートが無効です。証明ハッシュがMerkle rootと一致しませんでした。",invalidMerkleVersion:"署名に使用されたMerkleのバージョンはBlockcertsのバージョンに対応できません。",isTransactionIdValid:"照合するための取引IDがないため、この証明書を認証できません。",issuerProfileNotSet:"発行者アドレスが提供されませんでした",issuerProfileInvalid:"取得されたファイルが有効なプロフィールではないようです",parseIssuerKeys:"発行者識別データからJSONの解析ができません",checkImagesIntegrity:"データが発行後に変更されたことが画像保全性の検証によって証明されました。",ensureValidityPeriodStarted:"This certificate is not yet valid.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"}}};function es(e,t){return e&&t?Qa[Xa.locale]?Qa[Xa.locale][e]?Qa[Xa.locale][e][t]?Qa[Xa.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function ts(){return Object.keys(Qa)}var is,rs=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||Wa.locale},ensureIsSupported:function(e){let t;const i=Bs.i18n.getSupportedLanguages().map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=Wa.locale),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)},getComposedText:function(e,t){return es(e,t)},getDateFormat:function(e){const t=es("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=es("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r},getSupportedLanguages:ts,getText:es,setLocale:function(e){Xa.locale=e}});!function(e){e.REVOKED="revoked",e.SUSPENDED="suspended"}(is||(is={}));class ns{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class os{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class as extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}var ss=Object.freeze({__proto__:null,generateRevocationReason:function(e="",t=is.REVOKED){const i=es("revocation",t);return e=(e=e.trim()).length>0?` ${es("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${es("revocation","reason").replace("${CREDENTIAL_STATUS}",i)}${e}`},getChain:function(e,t){const i=t||null;if(i?.anchors){const e=i.anchors[0];if(e.chain){return function(e){const t=Object.keys(Qe).map((e=>Qe[e])).find((t=>t.signatureValue===e));if(void 0===t)throw new Error(es("errors","getChain"));return t}(e.chain)}}return function(e=""){return Za.isMainnet(e)?Qe.bitcoin:Qe.testnet}(e)},getTransactionId:function(e={}){try{const{anchors:t}=e,i=t[0];if(i.sourceId)return i.sourceId;if("string"==typeof i){return i.split(":").pop()}}catch(e){throw new as("",es("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(Ke,e),transactionLink:t.transactionTemplates.full.replace(Ke,e)}:null}});var cs=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(Qe).some((e=>e===t))&&!!Qe[t].test}return!1}});const ls={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function us(e){return e.startsWith("did:",0)}function ds(e){return e.startsWith("did:key:",0)}var ps;!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(ps||(ps={}));const hs={"did:key:z6Mk":ps.ED25519,"did:key:zQ3s":ps.SECP256K1};async function fs(e){const t=e.substring(0,12);if(hs[t]){const i=await async function(e){if(e===ps.ED25519)return await import("./did-key-ed25519.esm-Drn3Y7PF-CqD0ifNk.js");if(e===ps.SECP256K1)return await import("./did-key-secp256k1.esm-DH-f3o5q-C66E7IxB.js");throw new Error("Error loading did key resolver")}(hs[t]),{didDocument:r}=await i.resolve(e,{accept:"application/did+json"});return r}throw new Error("Unsupported did:key suite")}var gs,bs={...Object.freeze({__proto__:null,getIssuerProfileUrl:function(e){if(!e.service)return"";const t=e.service.find((e=>"IssuerProfile"===e.type)),i=t?.serviceEndpoint;return i??""},resolve:async function(e,t=ls.url){if(ds(e)){return await fs(e)}const i=await Oo({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:fs}),didResolver:ls};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(gs||(gs={}));class ms{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=es("subSteps",`${t}Label`),this.labelPending=es("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=gs.DEFAULT}}const vs=Qa[Xa.locale];var ys,ws;!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}(ys||(ys={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod",e.verifyIssuerProfile="verifyIssuerProfile",e.ensureValidityPeriodStarted="ensureValidityPeriodStarted",e.checkCredentialSchemaConformity="checkCredentialSchemaConformity",e.validateDateFormat="validateDateFormat"}(ws||(ws={}));const xs={[ys.formatValidation]:[ws.checkImagesIntegrity,ws.checkCredentialSchemaConformity,ws.validateDateFormat],[ys.proofVerification]:[],[ys.identityVerification]:[ws.verifyIssuerProfile,ws.controlVerificationMethod],[ys.statusCheck]:[ws.checkRevokedStatus,ws.ensureValidityPeriodStarted,ws.checkExpiresDate]};function ks(){return{[ys.formatValidation]:{code:ys.formatValidation,label:vs.steps.formatValidationLabel,labelPending:vs.steps.formatValidationLabelPending,subSteps:[]},[ys.proofVerification]:{code:ys.proofVerification,label:vs.steps.signatureVerificationLabel,labelPending:vs.steps.signatureVerificationLabelPending,subSteps:[]},[ys.identityVerification]:{code:ys.identityVerification,label:vs.steps.identityVerificationLabel,labelPending:vs.steps.identityVerificationLabelPending,subSteps:[]},[ys.statusCheck]:{code:ys.statusCheck,label:vs.steps.statusCheckLabel,labelPending:vs.steps.statusCheckLabelPending,subSteps:[]}}}var _s=Object.freeze({__proto__:null,get SUB_STEPS(){return ws},get VerificationSteps(){return ys},default:ks,final:"final",verificationMap:xs});function Ss(e){try{const t=new URL(e);return!t.pathname.includes(" ")&&!t.hostname.includes(" ")&&e.includes(":")}catch{return!1}}function Cs(e=[],t=[]){return e.filter((e=>t.includes(e))).filter(((e,t,i)=>i.indexOf(e)===t))}function Ps(e,t){const i=e.findIndex((e=>e===t));i>-1&&e.splice(i,1)}function Ls(e,t){return xs[e].filter((e=>t.includes(e))).map((t=>Bs.verifier.convertToVerificationSubsteps(e,t)))}function Is(e){const t=ks();return Object.keys(t).map((i=>({...t[i],subSteps:Ls(i,e)})))}const Ts=/-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/;function Es(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t}(e);return i||function(e){let t,i;const r=Ts.exec(e)??[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function Ms(e){return""===e?0:Es(`${e}`).getTime()}function As(e){return Ts.test(e)}function Ds(e,t=null){const i=e.created?Ms(e.created):null,r=e.revoked?Ms(e.revoked):null,n=e.expires?Ms(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new ns(o,i,r,n)}function Vs(e){if(Array.isArray(e)){return e.find((e=>"ChainedProof2021"!==e.type)).verificationMethod}return e.verificationMethod}function Rs(e){return e.type.includes("VerifiablePresentation")}function Os(e){return e.includes(ba)}function js(e){return e.includes(ma)}function Ns(e,t){let i=`${t} must be a valid RFC3339 string.`;if("string"!=typeof e)throw i+=`${t}: ${e} is not a string`,new Error(i);if(!function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/.test(e)}(e))throw i+=` Received: \`${e}\``,new Error(i)}function zs(e){if("object"!=typeof e)throw new Error("`credentialSubject` must be an object");if(Array.isArray(e)&&0===e.length)throw new Error("`credentialSubject` cannot be an empty array");Array.isArray(e)&&e.forEach((e=>{zs(e)}))}function $s(e,t){(Array.isArray(e)?e:[e]).forEach((e=>{if(console.log("validating prop",t,e),!e.id)throw new Error(`${t}.id must be defined`);if(function(e,t=""){if(!Ss(e))throw new Error(`Invalid URL: ${e}. ${t?`Property: ${t}`:""}`)}(e.id,`${t}.id`),!e.type)throw new Error(`${t}.type must be defined`)}))}var Us=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new ms(e,t)},findVerificationSubstep:function(e,t,i=""){for(let r=0;r<t.length;r++){let n=t[r].subSteps.find((t=>t.code===e));if(n&&""===i)return n;if(t[r].suites?.length)for(let o=0;o<t[r].suites.length;o++){const a=t[r].suites[o];if(n=a.subSteps.find((t=>t.code===e)),n&&a.proofType===i)return n}}},getDatesToValidate:function(e){const t=[];e.validFrom&&t.push({property:"validFrom",dateTimeStamp:e.validFrom}),e.validUntil&&t.push({property:"validUntil",dateTimeStamp:e.validUntil});const i=Array.isArray(e.proof)?e.proof:[e.proof];for(const e of i)e.created&&t.push({property:`proof ${e.cryptosuite??e.type} created`,dateTimeStamp:e.created});return t},getIssuerProfile:async function e(t){const i=es("errors","getIssuerProfile");if(!t)throw new as("getIssuerProfile",`${i} - ${es("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),us(t))try{const i=await Bs.did.resolve(t);if(ds(t))r=function(e){return{"@context":["https://w3id.org/openbadges/v2","https://w3id.org/blockcerts/3.0"],publicKey:[{created:(new Date).toISOString(),id:e.id.split(":").pop()}]}}(i);else{const t=Bs.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new as("getIssuerProfile",`${i} - ${e}`)}else if(!function(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}(t))throw new as("getIssuerProfile",`${i} - ${es("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await Oo({url:t}).catch((e=>{throw console.error(e),new as("getIssuerProfile",i)}))),!function(e){const t=["issuer","profile","blockcertsissuerprofile"],{type:i}=e;return!!i&&(Array.isArray(i)?i.some((e=>t.includes(e.toLowerCase()))):t.includes(i.toLowerCase()))}(r)&&!function(e){const{issuer_key:t,revocation_key:i,issuerKeys:r,revocationKeys:n}=e;return!(!t||!i)||!(!r||!n)}(r))throw new as("getIssuerProfile",`${i} - ${es("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=es("errors","getRevokedAssertions");t&&(e=function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,"assertionId",encodeURIComponent(t)));try{const t=await Oo({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new as(ws.checkRevokedStatus,i)}},getVerificationMap:function(e={}){const t=function({hasDid:e=!1,hasHashlinks:t=!1,hasValidFrom:i=!1,hasCredentialSchema:r=!1,isVCV2:n=!1,isVerifiablePresentation:o=!1,isIssuerProfileSigned:a=!1}){const s=JSON.parse(JSON.stringify(xs));return e||Ps(s[ys.identityVerification],ws.controlVerificationMethod),t||Ps(s[ys.formatValidation],ws.checkImagesIntegrity),i&&!o||Ps(s[ys.statusCheck],ws.ensureValidityPeriodStarted),r||Ps(s[ys.formatValidation],ws.checkCredentialSchemaConformity),n||Ps(s[ys.formatValidation],ws.validateDateFormat),a||Ps(s[ys.identityVerification],ws.verifyIssuerProfile),Object.keys(s).map((e=>s[e])).flat()}(e);return{verificationProcess:t,verificationMap:Is(t)}},lookForTx:ha,parseIssuerKeys:function(e){try{const t={};if("@context"in e){const i=e.publicKey??e.publicKeys;for(let e=0;e<i.length;e++){const r=Ds(i[e]);t[r.publicKey]=r}}else{const i=Ds({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new as("parseIssuerKeys",es("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""},validateVerifiableCredential:function e(t){if(Rs(t))return void(t.verifiableCredential&&t.verifiableCredential.forEach((t=>{e(t)})));if(!t.credentialSubject)throw new Error("`credentialSubject` must be defined");if(zs(t.credentialSubject),function(e){if(!Array.isArray(e))throw new Error("`type` property must be an array");const t=["VerifiableCredential","VerifiablePresentation"].filter((t=>e.includes(t)));if(0===e.length||0===t.length)throw new Error("`type` property must include `VerifiableCredential` or `VerifiablePresentation`")}(t.type),function(e,t){const i=[ba,ma];if(!Array.isArray(e))throw new Error("`@context` property must be an array");if(!i.includes(e[0]))throw new Error(`First @context must be one of ${i.join(", ")}, given ${e[0]}`);if(Os(e)&&js(e))throw new Error("Cannot have both v1 and v2 Verifiable Credential contexts");if(t.length>1&&1===e.length)throw new Error(`More specific type: ${t[1]} was detected but no additional context provided`)}(t["@context"],t.type),function(e){let t=!1;if((null==e||"string"==typeof e&&!Ss(e)||"object"==typeof e&&!Ss(e.id)||Array.isArray(e))&&(t=!0),t)throw new Error("`issuer` must be a URL string or an object with an `id` URL string")}(t.issuer),Os(t["@context"])&&(t.issuanceDate&&Ns(t.issuanceDate,"issuanceDate"),t.expirationDate&&Ns(t.expirationDate,"expirationDate")),js(t["@context"])&&(t.validFrom&&Ns(t.validFrom,"validFrom"),t.validUntil&&Ns(t.validUntil,"validUntil")),t.credentialStatus&&$s(t.credentialStatus,"credentialStatus"),t.credentialSchema&&$s(t.credentialSchema,"credentialSchema"),t.termsOfUse&&$s(t.termsOfUse,"termsOfUse"),t.evidence&&$s(t.evidence,"evidence"),t.refreshService&&$s(t.refreshService,"refreshService"),!t.proof)throw new Error("`proof` must be defined");let{proof:i}=t;Array.isArray(i)||(i=[i]),i.forEach((e=>{!function(e){if(!e.created)throw new Error("`proof.created` must be defined");if(!e.proofPurpose)throw new Error("`proof.proofPurpose` must be defined")}(e)}))}}),Bs={addresses:Za,certificates:ss,chains:cs,did:bs,i18n:rs,verifier:Us};function Fs(e,t,i){return void 0===t?"":"string"==typeof t?t:(Array.isArray(t)||(t=[t]),t.find((e=>e["@language"]===i))?.[e]??t.find((e=>e["@language"]?.split("-")[0]===i.split("-")[0]))?.[e]??t[0][e])}function Hs(e){let t=e;return Array.isArray(e)&&(t=e[0]),t}function qs(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(He)}(e),i.find((e=>e.toLowerCase().indexOf("blockcerts")>0)));var i;if(!t)return{version:Ge.V3_0,versionNumber:3};const r=t.split("/").filter((e=>""!==e)),n=Object.keys(Ks),o=parseInt(n.filter((e=>function(e,t){return e.some((e=>e.includes(`v${t}`)||e.includes(`${t}.`)))}(r,e.toString())))[0],10);let a;switch(o){case 1:a=Ge.V1_2;break;case 2:a=Ge.V2_0;break;case 3:if(t.includes("-alpha")){a=Ge.V3_0_alpha;break}if(t.includes("-beta")){a=Ge.V3_0_beta;break}a=Ge.V3_0}return{versionNumber:o,version:a}}const Ks={1:function(){throw new as("","Verification of v1 certificates is not supported by this component. See the python cert-verifier for v1.1 verification or the npm package cert-verifier-js-v1-legacy for v1.2 (https://www.npmjs.com/package/@blockcerts/cert-verifier-js-v1-legacy)")},2:async function(e){const{id:t,expires:i,badge:r}=e,{image:n,name:o,description:a,subtitle:s,issuer:c}=r,l=e.recipientProfile??e.recipient.recipientProfile,u=e.issuedOn,d=e.metadataJson,p=l.name,h=function(e){const t=[];for(const i in e){const r=e[i],n=new os(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),f=await Bs.verifier.getIssuerProfile(c);return{certificateImage:n,description:a,expires:i,id:t,issuedOn:u,issuer:f,metadataJson:d,name:o,recipientFullName:p,recordLink:t,revocationKey:null,sealImage:f.image,signatureImage:h,subtitle:s}},3:async function(e,t){const{metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:a,display:s,validUntil:c,proof:l,name:u,description:d,credentialSubject:p}=e;let{issuer:h}=e;try{Bs.verifier.validateVerifiableCredential(e)}catch(e){throw console.error("Error validating the Verifiable Credential format: ",e.message),new Error(`Document presented is not a valid Verifiable Credential: ${e.message}`)}let{validFrom:f}=e;const g=r??i;if(Rs(e)){const e=Hs(l);h=e.verificationMethod?.split("#")[0]}const b=await Bs.verifier.getIssuerProfile(h);if(!f){f=Hs(l).created}return{display:s,expires:a??c,validFrom:f,issuedOn:n??f,id:o,issuer:b,name:Fs("@value",u,t),description:Fs("@value",d,t),metadataJson:g,recipientFullName:Fs("name",p,t),recordLink:o}}};function Js(e){return 2===function(e){"string"==typeof e&&(e=[e]);const t=[ba,ma],i=e.filter(He).find((e=>t.includes(e)));let r=-1;i?.includes("v1")&&(r=1);i?.includes("v2")&&(r=2);return{versionNumber:r}}(e).versionNumber}function Ys(e){return(e=e.replace(/-./g,(e=>e[1].toUpperCase()))).charAt(0).toUpperCase()+e.slice(1)}var Gs;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019",e.EcdsaSd2023="EcdsaSd2023",e.EddsaRdfc2022="EddsaRdfc2022"}(Gs||(Gs={}));class Ws{expires;validFrom;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[Gs.MerkleProof2017]:null,[Gs.MerkleProof2019]:null,[Gs.Ed25519Signature2020]:null,[Gs.EcdsaSecp256k1Signature2019]:null,[Gs.EcdsaSd2023]:null,[Gs.EddsaRdfc2022]:null};proofVerifiers=[];verificationProcess;proofMap;proofPurpose;proofDomain;proofChallenge;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:a,validFrom:s,proofPurpose:c,proofDomain:l,proofChallenge:u}){this.expires=t,this.validFrom=s,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=a,this.proofPurpose=c,this.proofDomain=l,this.proofChallenge=u,this.documentToVerify=Object.assign({},e)}getVerificationSteps(){return this.verificationSteps}getSignersData(){return this.proofVerifiers.map((e=>({signingDate:e.getSigningDate(),signatureSuiteType:e.type,issuerPublicKey:e.getIssuerPublicKey(),issuerName:e.getIssuerName(),issuerProfileDomain:e.getIssuerProfileDomain(),issuerProfileUrl:e.getIssuerProfileUrl(),chain:e.getChain?.(),transactionId:e.getTransactionIdString?.(),transactionLink:e.getTransactionLink?.(),rawTransactionLink:e.getRawTransactionLink?.()})))}async init(){await this.instantiateProofVerifiers(),this.prepareVerificationProcess()}async verifyProof(){for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyProof()}async verify(e=()=>{}){this._stepCallback=e,this._stepsStatuses=[],await this.verifyProof();for(const e of this.verificationProcess){if(!this[e])return void console.error("verification logic for",e,"not implemented");await this[e]()}for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyIdentity();const t=this._stepsStatuses.find((e=>e.status===gs.FAILURE));return t?this._failed(t):this._succeed()}convertCryptosuiteToType(e){return Ys(e)}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach((t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),"DataIntegrityProof"===i&&(i=this.convertCryptosuiteToType(t.cryptosuite)),Array.isArray(i)&&(i=i[0]),e.push(i)})),e}getProofMap(e){const t=new Map;return"proof"in e?Array.isArray(e.proof)?e.proof.forEach(((e,i)=>t.set(i,e))):t.set(0,e.proof):"signature"in e&&t.set(0,e.signature),t}async instantiateProofVerifiers(){this.proofMap=this.getProofMap(this.documentToVerify);const e=this.getProofTypes(),t=function(e=[],t=[]){return t.filter((t=>!e.includes(t)))}(Object.keys(this.supportedVerificationSuites),e);if(t.length)throw new Error(`No support for proof verification of type: ${t.join(", ")}`);await this.loadRequiredVerificationSuites(e),this.proofMap.forEach(((t,i)=>{const r={executeStep:this.executeStep.bind(this),document:this.documentToVerify,proof:t,explorerAPIs:this.explorerAPIs,issuer:this.issuer,proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))}));for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(Gs.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-CYM8CJHB-FYpMvld0.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(Gs.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-BLrywo8h-Bo9rH2Eq.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(Gs.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-BQsESRnS-TKZI_1AX.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(Gs.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-BHgoxmKI-DT2qHZod.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}if(e.includes(Gs.EcdsaSd2023)){const{default:e}=await import("./EcdsaSd2023-B0XPAIp6-K61axvBA.js");this.supportedVerificationSuites.EcdsaSd2023=e}if(e.includes(Gs.EddsaRdfc2022)){const{default:e}=await import("./EddsaRdfc2022-DQKzWHK4-BILzDBp-.js");this.supportedVerificationSuites.EddsaRdfc2022=e}}prepareVerificationProcess(){const e=Bs.verifier.getVerificationMap({hasDid:!!this.issuer.didDocument,hasHashlinks:this.hashlinkVerifier?.hasHashlinksToVerify()??!1,hasValidFrom:!!this.validFrom,hasCredentialSchema:!!this.documentToVerify.credentialSchema,isVCV2:Js(this.documentToVerify["@context"]),isVerifiablePresentation:Rs(this.documentToVerify),isIssuerProfileSigned:!!this.issuer.proof});this.verificationSteps=e.verificationMap,this.verificationProcess=e.verificationProcess,this.registerSignatureVerificationSteps(),this.registerIdentityVerificationSteps(),this.verificationSteps=this.verificationSteps.filter((e=>e.subSteps?.length>0||e.suites?.some((e=>e.subSteps.length>0))))}registerSignatureVerificationSteps(){const e=ys.proofVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[ys.proofVerification]:"getProofVerificationSteps",[ys.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map((i=>({proofType:i.type,subSteps:i[t[e]](e)})))}registerIdentityVerificationSteps(){const e=ys.identityVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,gs.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,gs.SUCCESS,i),this._stepsStatuses.push({code:e,status:gs.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,gs.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:gs.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(ws.checkImagesIntegrity,(async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch((e=>{throw console.error("hashlink verification error",e),new as(ws.checkImagesIntegrity,es("errors","checkImagesIntegrity"))}))}))}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-CMAVXAVE-BEBD8TO8.js");return void await this.executeStep(ws.checkRevokedStatus,(async()=>{await e(this.documentToVerify.credentialStatus)}))}const e=this.getRevocationListUrl();if(!e)return console.warn("No revocation list url was set on the issuer."),void await this.executeStep(ws.checkRevokedStatus,(()=>!0));const t=await this.executeStep(null,(async()=>await Bs.verifier.getRevokedAssertions(e,this.id))),{default:i}=await import("./ensureNotRevoked-hGps0prO-DvMIgM4L.js");await this.executeStep(ws.checkRevokedStatus,(()=>{i(t,this.id)}))}async checkExpiresDate(){await this.executeStep(ws.checkExpiresDate,(()=>{!function(e=null){if(!e)return;const t=Ms(e);if((new Date).getTime()>=t)throw new as(ws.checkExpiresDate,`${es("errors","ensureNotExpired")}${Bs.i18n.getDateFormat(e)}`)}(this.expires)}))}async ensureValidityPeriodStarted(){await this.executeStep(ws.ensureValidityPeriodStarted,(()=>{!function(e=null){if(!e)return;if(Ms(e)>(new Date).getTime())throw new as(ws.ensureValidityPeriodStarted,es("errors","ensureValidityPeriodStarted"))}(this.validFrom)}))}async validateDateFormat(){await this.executeStep(ws.validateDateFormat,(()=>{!function(e){for(const{dateTimeStamp:t,property:i}of e)if(!As(t))throw console.error("Date",t,"is not valid:",i),new as(ws.validateDateFormat,`${es("errors","validateDateFormat")} ${i}`)}(Bs.verifier.getDatesToValidate(this.documentToVerify))}))}async checkCredentialSchemaConformity(){const{default:e}=await import("./checkCredentialSchemaConformity-CKNtOu_t-B9iaCRUE.js");await this.executeStep(ws.checkCredentialSchemaConformity,(async()=>{await e(this.documentToVerify.credentialSubject,this.documentToVerify.credentialSchema)}))}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-B4TgLED0-BGpxLjMq.js");await this.executeStep(ws.controlVerificationMethod,(()=>{e(this.issuer.didDocument,Vs(this.documentToVerify.proof))}))}async verifyIssuerProfile(){if(!this.issuer.proof)return;const{default:e}=await import("./verifyIssuerProfile-DCJyz3ho-BwuCK9F3.js");await this.executeStep(ws.verifyIssuerProfile,(async()=>{await e(this.issuer)}))}findStepFromVerificationProcess(e,t){return Bs.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:gs.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some((e=>e.status===gs.FAILURE))}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?Bs.chains.isMockChain(this.proofVerifiers[0].getChain())?Bs.i18n.getComposedText("success","mocknet"):Bs.i18n.getComposedText("success","blockchain"):{...Bs.i18n.getComposedText("success","generic"),description:Bs.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=Bs.i18n.getComposedText("success","multisign")),this._setFinalStep({status:gs.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:ys.final,status:e,message:t}}_updateStatusCallback(e,t,i="",r=""){if(null!=e){const n=this.findStepFromVerificationProcess(e,i);if(void 0===n)return void console.warn("step with code",e,"was not found for suite",i,"ignoring but you should not.");const o={code:e,status:t,parentStep:n.parentStep,label:n.labelPending};r&&(o.errorMessage=r),this._stepCallback(o)}}}var Zs,Xs={exports:{}};var Qs,ec=(Zs||(Zs=1,function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",o="[object Boolean]",a="[object Date]",s="[object Function]",c="[object GeneratorFunction]",l="[object Map]",u="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",I="[object Uint32Array]",T=/\w*$/,E=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,A={};A[n]=A["[object Array]"]=A[v]=A[y]=A[o]=A[a]=A[w]=A[x]=A[k]=A[_]=A[S]=A[l]=A[u]=A[d]=A[h]=A[f]=A[g]=A[b]=A[C]=A[P]=A[L]=A[I]=!0,A["[object Error]"]=A[s]=A[m]=!1;var D="object"==typeof ot&&ot&&ot.Object===Object&&ot,V="object"==typeof self&&self&&self.Object===Object&&self,R=D||V||Function("return this")(),O=t&&!t.nodeType&&t,j=O&&e&&!e.nodeType&&e,N=j&&j.exports===O;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function U(e,t,i,r){for(var n=-1,o=e?e.length:0;++n<o;)i=t(i,e[n],n,e);return i}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function H(e,t){return function(i){return e(t(i))}}function q(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var K,J=Array.prototype,Y=Function.prototype,G=Object.prototype,W=R["__core-js_shared__"],Z=(K=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=Y.toString,Q=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=N?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=H(Object.getPrototypeOf,Object),ae=Object.create,se=G.propertyIsEnumerable,ce=J.splice,le=Object.getOwnPropertySymbols,ue=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),pe=je(R,"DataView"),he=je(R,"Map"),fe=je(R,"Promise"),ge=je(R,"Set"),be=je(R,"WeakMap"),me=je(Object,"create"),ve=Be(pe),ye=Be(he),we=Be(fe),xe=Be(ge),ke=Be(be),_e=re?re.prototype:void 0,Se=_e?_e.valueOf:void 0;function Ce(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Le(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){this.__data__=new Pe(e)}function Te(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==n)}(e)?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],r=i.length,o=!!r;for(var a in e)!Q.call(e,a)||o&&("length"==a||$e(a,r))||i.push(a);return i}function Ee(e,t,i){var r=e[t];Q.call(e,t)&&Fe(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Me(e,t){for(var i=e.length;i--;)if(Fe(e[i][0],t))return i;return-1}function Ae(e,t,i,r,p,m,E){var M;if(r&&(M=m?r(e,p,m,E):r(e)),void 0!==M)return M;if(!Ye(e))return e;var D=He(e);if(D){if(M=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!t)return function(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}(e,M)}else{var V=ze(e),R=V==s||V==c;if(Ke(e))return function(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}(e,t);if(V==d||V==n||R&&!m){if(B(e))return m?e:{};if(M=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:Ye(t=oe(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Re(e,Ne(e),t)}(e,function(e,t){return e&&Re(t,Ge(t),e)}(M,e))}else{if(!A[V])return m?e:{};M=function(e,t,i,r){var n,s=e.constructor;switch(t){case v:return Ve(e);case o:case a:return new s(+e);case y:return function(e,t){var i=t?Ve(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case k:case _:case S:case C:case P:case L:case I:return function(e,t){var i=t?Ve(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case l:return function(e,t,i){var r=t?i(F(e),!0):F(e);return U(r,z,new e.constructor)}(e,r,i);case u:case g:return new s(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,i){var r=t?i(q(e),!0):q(e);return U(r,$,new e.constructor)}(e,r,i);case b:return n=e,Se?Object(Se.call(n)):{}}}(e,V,Ae,t)}}E||(E=new Ie);var O=E.get(e);if(O)return O;if(E.set(e,M),!D)var j=i?function(e){return function(e,t,i){var r=t(e);return He(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Ge,Ne)}(e):Ge(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(j||e,(function(n,o){j&&(n=e[o=n]),Ee(M,o,Ae(n,t,i,r,o,e,E))})),M}function De(e){return!(!Ye(e)||(t=e,Z&&Z in t))&&(Je(e)||B(e)?te:E).test(Be(e));var t}function Ve(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Re(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var a=t[n];Ee(i,a,e[a])}return i}function Oe(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function je(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return De(i)?i:void 0}Ce.prototype.clear=function(){this.__data__=me?me(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===i?void 0:r}return Q.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Pe.prototype.clear=function(){this.__data__=[]},Pe.prototype.delete=function(e){var t=this.__data__,i=Me(t,e);return!(i<0||(i==t.length-1?t.pop():ce.call(t,i,1),0))},Pe.prototype.get=function(e){var t=this.__data__,i=Me(t,e);return i<0?void 0:t[i][1]},Pe.prototype.has=function(e){return Me(this.__data__,e)>-1},Pe.prototype.set=function(e,t){var i=this.__data__,r=Me(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Le.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||Pe),string:new Ce}},Le.prototype.delete=function(e){return Oe(this,e).delete(e)},Le.prototype.get=function(e){return Oe(this,e).get(e)},Le.prototype.has=function(e){return Oe(this,e).has(e)},Le.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},Ie.prototype.clear=function(){this.__data__=new Pe},Ie.prototype.delete=function(e){return this.__data__.delete(e)},Ie.prototype.get=function(e){return this.__data__.get(e)},Ie.prototype.has=function(e){return this.__data__.has(e)},Ie.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Pe){var r=i.__data__;if(!he||r.length<199)return r.push([e,t]),this;i=this.__data__=new Le(r)}return i.set(e,t),this};var Ne=le?H(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function $e(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Be(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(pe&&ze(new pe(new ArrayBuffer(1)))!=y||he&&ze(new he)!=l||fe&&ze(fe.resolve())!=p||ge&&ze(new ge)!=f||be&&ze(new be)!=m)&&(ze=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?Be(i):void 0;if(r)switch(r){case ve:return y;case ye:return l;case we:return p;case xe:return f;case ke:return m}return t});var He=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var Ke=ue||function(){return!1};function Je(e){var t=Ye(e)?ee.call(e):"";return t==s||t==c}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return qe(e)?Te(e):function(e){if(!Ue(e))return de(e);var t=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}e.exports=function(e){return Ae(e,!0,!0)}}(Xs,Xs.exports)),Xs.exports),tc=at(ec);function ic(e){return tc(e)}function rc(e){return e===Object(e)}function nc(e){return[...e.matchAll(/hl:{1}[a-zA-Z0-9]+:{1}[a-zA-Z0-9]+/gm)].map((e=>e[0])).filter((e=>!!e))}async function oc(e,t){const i=nc(e);if(i.length){const r=await async function(e,t){return(await Promise.all(e.map((async e=>await t.decode(e))))).reduce((function(e,t){return e.push(t.meta.url[0]),e}),[])}(i,t);e=function(e,t,i){return t.forEach(((t,r)=>{e=e.replace(i[r],t)})),e}(e,r,i)}return e}class ac{certificateImage;certificateJson;description;display;expires;validFrom;explorerAPIs=[];id;isFormatValid;isVerifiablePresentation;issuedOn;issuer;locale;metadataJson;name;options;proofPurpose;proofDomain;proofChallenge;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verifiableCredentials;verificationSteps;verifier;verificationStatus;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(Bs.i18n.getText("errors","certificateNotValid"))}this.certificateJson=ic(e),this.isVerifiablePresentation=Rs(this.certificateJson),this.isVerifiablePresentation&&(this.verifiableCredentials=this.certificateJson.verifiableCredential?.map((e=>new ac(e,t)))??[])}async init(){if(this.isVerifiablePresentation)for(const e of this.verifiableCredentials)await e.init();if(this.certificateJson.display?.content){nc(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-BsVlaml5-B4Niv2-b.js").then((e=>{this.hashlinkVerifier=new e.HashlinkVerifier}))}await this.parseJson(this.certificateJson),this.verifier=new Ws({certificateJson:this.certificateJson,expires:this.expires,validFrom:this.validFrom,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:ic(this.explorerAPIs),proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){let t=await this.verifier.verify(e);if(this.setSigners(),this.isVerifiablePresentation){let e=0;console.log("VP has",this.verifiableCredentials.length,"credentials");for(const i of this.verifiableCredentials){e++,console.log("now verifying certificate",e,i.id);const r=await i.verify();console.log("verificationStatus",i.id,r),i.verificationStatus=r,r.status!==gs.SUCCESS&&(t={...t,status:gs.FAILURE,message:`Credential ${i.name?i.name+" ":""}with id ${i.id} failed verification. Error: ${r.message}`,errors:[r]})}}return this.verificationStatus=t,t}async parseJson(e){const t=await async function(e,t=""){try{const i=qs(e["@context"]),r=await Ks[i.versionNumber](e,t);return r.isFormatValid=!0,r}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e,this.locale);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},Wa,e),this.locale=Bs.i18n.ensureIsSupported("auto"===this.options.locale?Bs.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],this.proofPurpose=this.options.proofPurpose,this.proofDomain=this.options.domain,this.proofChallenge=this.options.challenge,e.didResolverUrl&&(Bs.did.didResolver.url=e.didResolverUrl),Bs.i18n.setLocale(this.locale)}async _setProperties({certificateImage:e,description:t,display:i,expires:r,validFrom:n,id:o,isFormatValid:a,issuedOn:s,issuer:c,metadataJson:l,name:u,recipientFullName:d,recordLink:p,revocationKey:h,sealImage:f,signature:g,signatureImage:b,subtitle:m}){this.isFormatValid=a,this.certificateImage=e,this.description=t,this.expires=r,this.validFrom=n,this.id=o,this.issuedOn=s,this.issuer=c,this.metadataJson=l,this.name=u,this.recipientFullName=d,this.recordLink=p,this.revocationKey=h,this.sealImage=f,this.signature=g,this.signatureImage=b,this.subtitle=m,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=ic(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await oc(t.content,this.hashlinkVerifier)),t}}!function(e){e.TEXT_HTML="text/html",e.IMAGE_PNG="image/png",e.IMAGE_JPEG="image/jpeg",e.IMAGE_GIF="image/gif",e.IMAGE_BMP="image/bmp",e.APPLICATION_PDF="application/pdf"}(Qs||(Qs={}));var sc=Object.freeze({__proto__:null,BLOCKCHAINS:Qe,CERTIFICATE_VERSIONS:Ge,get CONTENT_MEDIA_TYPES(){return Qs},Certificate:ac,STEPS:_s,SignatureImage:os,get VERIFICATION_STATUSES(){return gs},VerificationSubstep:ms,getSupportedLanguages:ts,isVerifiablePresentation:Rs,retrieveBlockcertsVersion:qs});const cc=["text","image","signature","variable"];function lc(e){const t=(new DOMParser).parseFromString(e,Qs.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(cc.map((e=>`section[class*="${e}"]`)).join(", ")).length}const uc="?format=json";var dc=function(e,t){return dc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},dc(e,t)};function pc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}dc(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var hc=function(){return hc=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},hc.apply(this,arguments)};function fc(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function gc(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function bc(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function mc(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}"function"==typeof SuppressedError&&SuppressedError;var vc=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:lc,download:function(e){return e+uc},initializeVerificationSteps:function(e){const t=JSON.parse(JSON.stringify(e.verificationSteps));return t.map(((e,i)=>Object.assign(Object.assign({},e),{isLast:i===t.length-1,status:gs.DEFAULT})))},isPathToCertificateValidURI:function(e){return gc(e)||bc(e)},parse:function(e){return fc(this,arguments,void 0,(function*(e,t={}){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then((function(){return sc}));let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-CEj3k9G6.js").then((function(e){return e.h}));n=new i(e,t)}else n=new r(e,t);return yield n.init(),{certificateDefinition:n}}catch(e){return console.error(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcerts",additionalErrorInfo:e.message}}}))},read:function(e){return fc(this,void 0,void 0,(function*(){if(!e)return;const t=yield function(e){return fc(this,void 0,void 0,(function*(){return yield new Promise((function(t,i){const r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=r.onabort=i,r.readAsText(e)}))}))}(e);return t}))},retrieve:function(e){return fc(this,void 0,void 0,(function*(){if(!gc(e)&&!bc(e))return console.error("Invalid url to retrieve:",e),null;const t=e+uc;return yield fetch(t).then((e=>fc(this,void 0,void 0,(function*(){return yield e.text()})))).then((e=>{try{return{certificateDefinition:JSON.parse(e)}}catch(e){return console.log(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}})).catch(mc)}))}});var yc=((e={})=>{if(!window.Proxy){const t=function(){let e=null;function t(e){return!!e&&("object"==typeof e||"function"==typeof e)}const i=function(i,r){if(!t(i)||!t(r))throw new TypeError("Cannot create proxy with a non-object as target or handler");let n=function(){};e=function(){n=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}};const o=r;r={get:null,set:null,apply:null,construct:null};for(const e in o)e in r&&(r[e]=o[e]);"function"==typeof o&&(r.apply=o.apply.bind(o));let a=this,s=!1,c=!1;"function"==typeof i?(a=function(){const e=this&&this.constructor===a,t=Array.prototype.slice.call(arguments);return n(e?"construct":"apply"),e&&r.construct?r.construct.call(this,i,t):!e&&r.apply?r.apply(i,this,t):e?(t.unshift(i),new(i.bind.apply(i,t))):i.apply(this,t)},s=!0):i instanceof Array&&(a=[],c=!0);const l=r.get?function(e){return n("get"),r.get(this,e,a)}:function(e){return n("get"),this[e]},u=r.set?function(e,t){n("set"),r.set(this,e,t,a)}:function(e,t){n("set"),this[e]=t},d=Object.getOwnPropertyNames(i),p={};d.forEach((function(e){if((s||c)&&e in a)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:l.bind(i,e),set:u.bind(i,e)};Object.defineProperty(a,e,t),p[e]=!0}));let h=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(a,Object.getPrototypeOf(i)):a.__proto__?a.__proto__=i.__proto__:h=!1,r.get||!h)for(const e in i)p[e]||Object.defineProperty(a,e,{get:l.bind(i,e)});return Object.seal(i),Object.seal(a),a};return i.revocable=function(t,r){return{proxy:new i(t,r),revoke:e}},i}();return new t(e,Be)}return new Proxy(e,Be)})({certificates:vc,events:Object.freeze({__proto__:null,dispatch:function(e="",t=null,i){if(!e||"string"!=typeof e)return;if(!t||"object"!=typeof t)return;const r=new CustomEvent(e,{detail:Object.assign({certificateDefinition:t},i)});window.dispatchEvent(r)}})});function wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xc={exports:{}},kc={},_c={exports:{}},Sc={};function Cc(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var Pc=/javascript\s*\:/gim;Sc.whiteList=Cc(),Sc.getDefaultWhiteList=Cc,Sc.onAttr=function(e,t,i){},Sc.onIgnoreAttr=function(e,t,i){},Sc.safeAttrValue=function(e,t){return Pc.test(t)?"":t};var Lc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}};var Ic=function(e,t){";"!==(e=Lc.trimRight(e))[e.length-1]&&(e+=";");var i=e.length,r=!1,n=0,o=0,a="";function s(){if(!r){var i=Lc.trim(e.slice(n,o)),s=i.indexOf(":");if(-1!==s){var c=Lc.trim(i.slice(0,s)),l=Lc.trim(i.slice(s+1));if(c){var u=t(n,a.length,c,l,i);u&&(a+=u+"; ")}}}n=o+1}for(;o<i;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var l=e.indexOf("*/",o+2);if(-1===l)break;n=(o=l+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||s():"\n"===c&&s()}return Lc.trim(a)},Tc=Sc,Ec=Ic;function Mc(e){return null==e}function Ac(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).whiteList=e.whiteList||Tc.whiteList,e.onAttr=e.onAttr||Tc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Tc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Tc.safeAttrValue,this.options=e}Ac.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onAttr,n=t.onIgnoreAttr,o=t.safeAttrValue;return Ec(e,(function(e,t,a,s,c){var l=i[a],u=!1;if(!0===l?u=l:"function"==typeof l?u=l(s):l instanceof RegExp&&(u=l.test(s)),!0!==u&&(u=!1),s=o(a,s)){var d,p={position:t,sourcePosition:e,source:c,isWhite:u};return u?Mc(d=r(a,s,p))?a+":"+s:d:Mc(d=n(a,s,p))?void 0:d}}))};var Dc=Ac;!function(e,t){var i=Sc,r=Dc;for(var n in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,i)t[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(_c,_c.exports);var Vc=_c.exports,Rc=wc(Vc),Oc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},jc=Vc.FilterCSS,Nc=Vc.getDefaultWhiteList,zc=Oc;function $c(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Uc=new jc;function Bc(e){return e.replace(Fc,"&lt;").replace(Hc,"&gt;")}var Fc=/</g,Hc=/>/g,qc=/"/g,Kc=/&quot;/g,Jc=/&#([a-zA-Z0-9]*);?/gim,Yc=/&colon;?/gim,Gc=/&newline;?/gim,Wc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Zc=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Xc=/u\s*r\s*l\s*\(.*/gi;function Qc(e){return e.replace(qc,"&quot;")}function el(e){return e.replace(Kc,'"')}function tl(e){return e.replace(Jc,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function il(e){return e.replace(Yc,":").replace(Gc," ")}function rl(e){for(var t="",i=0,r=e.length;i<r;i++)t+=e.charCodeAt(i)<32?" ":e.charAt(i);return zc.trim(t)}function nl(e){return e=rl(e=il(e=tl(e=el(e))))}function ol(e){return e=Bc(e=Qc(e))}kc.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},kc.getDefaultWhiteList=$c,kc.onTag=function(e,t,i){},kc.onIgnoreTag=function(e,t,i){},kc.onTagAttr=function(e,t,i){},kc.onIgnoreTagAttr=function(e,t,i){},kc.safeAttrValue=function(e,t,i,r){if(i=nl(i),"href"===t||"src"===t){if("#"===(i=zc.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(Wc.lastIndex=0,Wc.test(i))return""}else if("style"===t){if(Zc.lastIndex=0,Zc.test(i))return"";if(Xc.lastIndex=0,Xc.test(i)&&(Wc.lastIndex=0,Wc.test(i)))return"";!1!==r&&(i=(r=r||Uc).process(i))}return i=ol(i)},kc.escapeHtml=Bc,kc.escapeQuote=Qc,kc.unescapeQuote=el,kc.escapeHtmlEntities=tl,kc.escapeDangerHtml5Entities=il,kc.clearNonPrintableCharacter=rl,kc.friendlyAttrValue=nl,kc.escapeAttrValue=ol,kc.onIgnoreTagStripAll=function(){return""},kc.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var i=!Array.isArray(e),r=[],n=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!i||-1!==zc.indexOf(e,t)}(o)){if(s.isClosing){var c="[/removed]",l=s.position+10;return r.push([!1!==n?n:s.position,l]),n=!1,c}return n||(n=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",i=0;return zc.forEach(r,(function(r){t+=e.slice(i,r[0]),i=r[1]})),t+=e.slice(i)}}},kc.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var r=e.indexOf("\x3c!--",i);if(-1===r){t+=e.slice(i);break}t+=e.slice(i,r);var n=e.indexOf("--\x3e",r);if(-1===n)break;i=n+3}return t},kc.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},kc.cssFilter=Uc,kc.getDefaultCSSWhiteList=Nc;var al={},sl=Oc;function cl(e){var t,i=sl.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=sl.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function ll(e){return"</"===e.slice(0,2)}var ul=/[^a-zA-Z0-9\\_:.-]/gim;function dl(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function pl(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function hl(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function fl(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}al.parseTag=function(e,t,i){var r="",n=0,o=!1,a=!1,s=0,c=e.length,l="",u="";e:for(s=0;s<c;s++){var d=e.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){r+=i(e.slice(n,s)),o=s,n=s;continue}if(">"===d){r+=i(e.slice(n,o)),l=cl(u=e.slice(o,s+1)),r+=t(o,r.length,l,u,ll(u)),n=s+1,o=!1;continue}if('"'===d||"'"===d)for(var p=1,h=e.charAt(s-p);""===h.trim()||"="===h;){if("="===h){a=d;continue e}h=e.charAt(s-++p)}}else if(d===a){a=!1;continue}}return n<e.length&&(r+=i(e.substr(n))),r},al.parseAttr=function(e,t){var i=0,r=0,n=[],o=!1,a=e.length;function s(e,i){if(!((e=(e=sl.trim(e)).replace(ul,"").toLowerCase()).length<1)){var r=t(e,i||"");r&&n.push(r)}}for(var c=0;c<a;c++){var l,u=e.charAt(c);if(!1!==o||"="!==u)if(!1===o||c!==r)if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(l=dl(e,c))){s(sl.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=l-1;continue}if(-1===(l=hl(e,c-1))){s(o,fl(sl.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}else;else{if(-1===(l=e.indexOf(u,c+1)))break;s(o,sl.trim(e.slice(r+1,l))),o=!1,i=(c=l)+1}else o=e.slice(i,c),i=c+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:pl(e,c+1)}return i<e.length&&(!1===o?s(e.slice(i)):s(o,fl(sl.trim(e.slice(i))))),sl.trim(n.join(" "))};var gl=Vc.FilterCSS,bl=kc,ml=al,vl=ml.parseTag,yl=ml.parseAttr,wl=Oc;function xl(e){return null==e}function kl(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=bl.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(e.whiteList||e.allowList):e.whiteList=bl.whiteList,e.onTag=e.onTag||bl.onTag,e.onTagAttr=e.onTagAttr||bl.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||bl.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||bl.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||bl.safeAttrValue,e.escapeHtml=e.escapeHtml||bl.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new gl(e.css))}kl.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onTag,n=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,s=t.safeAttrValue,c=t.escapeHtml,l=this.cssFilter;t.stripBlankChar&&(e=bl.stripBlankChar(e)),t.allowCommentTag||(e=bl.stripCommentTag(e));var u=!1;t.stripIgnoreTagBody&&(u=bl.StripTagBody(t.stripIgnoreTagBody,n),n=u.onIgnoreTag);var d=vl(e,(function(e,t,u,d,p){var h={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(i,u)},f=r(u,d,h);if(!xl(f))return f;if(h.isWhite){if(h.isClosing)return"</"+u+">";var g=function(e){var t=wl.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=wl.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=wl.trim(e.slice(0,-1))),{html:e,closing:i}}(d),b=i[u],m=yl(g.html,(function(e,t){var i=-1!==wl.indexOf(b,e),r=o(u,e,t,i);return xl(r)?i?(t=s(u,e,t,l))?e+'="'+t+'"':e:xl(r=a(u,e,t,i))?void 0:r:r}));return d="<"+u,m&&(d+=" "+m),g.closing&&(d+=" /"),d+=">"}return xl(f=n(u,d,h))?c(d):f}),c);return u&&(d=u.remove(d)),d};var _l=kl;!function(e,t){var i=kc,r=al,n=_l;function o(e,t){return new n(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=n,function(){for(var e in i)t[e]=i[e];for(var n in r)t[n]=r[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(xc,xc.exports);var Sl=wc(xc.exports);const Cl={...Rc.getDefaultWhiteList(),bottom:!0,left:!0,float:!0,overflow:!0,position:!0,right:!0,top:!0,transform:!0,opacity:!0,"transform-origin":!0,"flex-direction":!0,"flex-wrap":!0,"justify-content":!0,"align-items":!0,"white-space":!0,"line-height":!0,"grid-template-columns":!0,"grid-template-rows":!0,"grid-column":!0,"grid-row":!0,"grid-area":!0,"align-self":!0,"justify-self":!0,span:!0};var Pl=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Ll=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Il=/u\s*r\s*l\s*\(.*/gi;const Tl={whiteList:function(){const e=Sl.getDefaultWhiteList();return Object.keys(e).forEach((t=>{e[t].push("style"),e[t].push("class"),e[t].push("download")})),e}(),css:!1,stripIgnoreTagBody:!0,onTagAttr:function(e,t,i,r){if("style"===t)return`${t}="${Rc(i,{whiteList:Cl}).replace(/; /g,";")}"`;if("img"===e&&"src"===t&&function(e){return!!e.match(/^data:.+;base64,/)}(i)){const e=function(e){return e.split("base64,")[1]}(i);try{return atob(e),`${t}="${i}"`}catch(e){return t}}},safeAttrValue:function(e,t,i,r){if(i=Sl.friendlyAttrValue(i),"href"===t||"src"===t){if("#"===(i=function(e){if(String.prototype.trim)return e.trim();return e.replace(/(^\s*)|(\s*$)/g,"")}(i)))return"#";if(!function(e){return["http://","https://","mailto:","tel:","data:","#","/"].some((t=>e.substr(0,t.length)===t))}(i))return""}else if("background"===t){if(Pl.lastIndex=0,Pl.test(i))return""}else if("style"===t){if(Ll.lastIndex=0,Ll.test(i))return"";if(Il.lastIndex=0,Il.test(i)&&(Pl.lastIndex=0,Pl.test(i)))return"";!1!==r&&(i=(r=r||Sl.getDefaultCSSWhiteList()).process(i))}return i=Sl.escapeAttrValue(i)}},El=new Sl.FilterXSS(Tl);function Ml(e){return El.process(e)}const Al="en";var Dl={locale:Al};const Vl={en:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"The following error occurred:",invalidBlockcerts:"Not a valid Blockcerts credential. Please check with the issuer or recipient that has provided this credential.",invalidBlockcertsUrl:"Not a valid credential URL.",invalidFormatDragAndDrop:"Only JSON files are accepted",invalidUrl:"This does not seem to be a valid URL.",noIssuerName:"No name provided",noMetadata:"No metadata specified for this record",noShareUrl:"No URL to share!",noTransactionId:"No transaction ID"},text:{brandName:"Blockcerts",blockcertsHint:"Visit Blockcerts website",by:"by",certified:"Certified by",closeButton:"Click to close",downloadLink:"Download Record in JSON format",downloadPDFLink:"Download Record in PDF Format",downloadPDFLinkIsLoading:"Generating PDF...",dragAndDropHint:"(you can also drag & drop your file).",fileUpload:"Choose JSON file",issued:"Issued on",issueDate:"Issue Date",issuerName:"Issuer",issuerPublicKey:"Issuer's public key",issuerProfileDomain:"Issuer's information",item:"Item",itemPlural:"Items",metadataButton:"View Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Recipient",share:"Share on",shareButton:"Share on Social Networks",signatureSuiteType:"Digital signature type",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signed:"Signed by",substepsListClose:"Hide",substepsListHint:"Toggle open list of substeps",transactionId:"Transaction ID",urlInput:"Enter the certificate URL",urlInputPlaceholder:"Certificate URL",verificationStepProgress:"Verifying step...",verify:"Verify",verifyAgain:"Verify again",verifyOther:"Verify another record",viewRecord:"View Record"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"},numbers:{ordinal:["th","st","nd","rd"]}},es:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"El siguiente error ocurrió:",invalidBlockcerts:"No es una credencial válida de Blockcerts. Verifique con el emisor o el destinatario que ha proporcionado esta credencial.",invalidBlockcertsUrl:"No es URL de certificado valido.",invalidFormatDragAndDrop:"Solo se aceptan archivos JSON",invalidUrl:"Esto no parece ser un URL válido.",noIssuerName:"No nombre comunicado",noMetadata:"No se han especificado metadatos para este registro",noShareUrl:"No hay URL para compartir!",noTransactionId:"No ID de transacción"},text:{brandName:"Blockcerts",blockcertsHint:"Visite el sitio web de Blockcerts",by:"por",certified:"Certificado por",closeButton:"Haz Click para cerrar",downloadLink:"Descarga el Registro en formato JSON",downloadPDFLink:"Descarga el Registro en formato PDF",downloadPDFLinkIsLoading:"Generando PDF...",dragAndDropHint:"(también puedes arrastrar y soltar tu archivo).",fileUpload:"Escoge archivo JSON",issued:"Emitido el",issueDate:"Fecha de Emisión",issuerName:"Emisor",issuerPublicKey:"Llave publica del Emisor",issuerProfileDomain:"Información del Emisor",item:"Elemento",itemPlural:"Elementos",metadataButton:"Ver Metadata",metadataTitle:"Metadata",motto:"Blockcerts, El Estándar Abierto para Credenciales Blockchain",recipient:"Recipiente",share:"Comparte en",shareButton:"Comparte en Redes Sociales",signatureSuiteType:"Tipo de firma digital",signed:"Firmado Por",signatureStatusSuccess:"La verificación de esta firma digital ha tenido éxito",signatureStatusTestSuccess:"La verificación de esta firma digital ha tenido éxito pero se utilizó una cadena de test",signatureStatusFailure:"Error en la verificación de esta firma digital",substepsListClose:"Esconde",substepsListHint:"Pasa lista abierta de sub-pasos",transactionId:"ID de Transacción",urlInput:"Ingrese el URL del certificado",urlInputPlaceholder:"Certificado del URL",verificationStepProgress:"Paso de verificación...",verify:"Verifica",verifyAgain:"Verifica nuevamente",verifyOther:"Verifica otro registro",viewRecord:"Ver Registro"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"},numbers:{ordinal:"°"}},fr:{errors:{errorLabel:"Erreur",additionalErrorInfoLabel:"Cette erreur s'est produite :",invalidBlockcerts:"Ceci n'est pas un certificat Blockcerts valide. Veuillez s'il vous plaît contrôler avec l'organisme émetteur ou le récipiendaire de ce certificat.",invalidBlockcertsUrl:"Ceci n'est pas une URL de certificat valide.",invalidFormatDragAndDrop:"Seul le format JSON est accepté",invalidUrl:"URL invalide",noIssuerName:"Pas de nom fourni",noMetadata:"Ce certificat ne contient pas de métadata",noShareUrl:"Pas d'URL à partager!",noTransactionId:"Pas d'identifiant de transaction"},text:{brandName:"Blockcerts",blockcertsHint:"Visiter le site de Blockcerts",by:"par",certified:"Certifié par",closeButton:"Cliquer pour fermer",downloadLink:"Télécharger le certificat au format JSON",downloadPDFLink:"Télécharger le certificat au format PDF",downloadPDFLinkIsLoading:"Création du PDF...",dragAndDropHint:"(vous pouvez aussi glisser et déposer votre fichier).",fileUpload:"Choisir un fichier JSON",issued:"Émis le",issueDate:"Date d'émission",issuerName:"Émetteur",issuerPublicKey:"Clé publique de l'émetteur",issuerProfileDomain:"Profil de l'émetteur",item:"point contrôlé",itemPlural:"points contrôlés",metadataButton:"Voir les métadata",metadataTitle:"Métadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titulaire",share:"Partager sur",shareButton:"Partager sur les réseaux sociaux",signatureSuiteType:"Type de signature numérique",signed:"Signé par",signatureStatusSuccess:"Cette signature a été vérifiée avec succès",signatureStatusTestSuccess:"Cette signature a été vérifiée avec succès mais la blockchain utilisée est de test",signatureStatusFailure:"Erreur durant la vérification de cette signature",substepsListClose:"Fermer",substepsListHint:"Afficher les sous-étapes",transactionId:"Identifiant de transaction",urlInput:"Entrez l'URL du certificat",urlInputPlaceholder:"URL du certificat",verificationStepProgress:"Vérification en cours...",verify:"Vérifier",verifyAgain:"Vérifier de nouveau",verifyOther:"Vérifier un autre certificat",viewRecord:"Voir le certificat"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"},numbers:{ordinal:["ème","er"]}},it:{errors:{errorLabel:"Errore",additionalErrorInfoLabel:"Si è verificato il seguente errore:",invalidBlockcerts:"Non è una definizione valida di Blockcerts.",invalidBlockcertsUrl:"Non è un URL di certificato valido.",invalidFormatDragAndDrop:"Sono accettati solo file JSON",invalidUrl:"Questo non sembra essere un URL valido.",noIssuerName:"No name provided",noMetadata:"Nessun Metadata specificato per questo record",noShareUrl:"Non c'è un URL da condividere!",noTransactionId:"Nessun ID transazione"},text:{brandName:"Blockcerts",blockcertsHint:"Visita il sito Web Blockcerts",by:"da",certified:"Certificato da",closeButton:"Fai clic per chiudere",downloadLink:"Scarica il Record in formato JSON",downloadPDFLink:"Scarica il Record in formato JSON",downloadPDFLinkIsLoading:"Generazione PDF...",dragAndDropHint:"(puoi anche trascinare il file).",fileUpload:"Scegli il file JSON",issued:"Rilasciato il",issueDate:"Data",issuerName:"Organizzazione Issuer",issuerPublicKey:"Chiave pubblica del Issuer",issuerProfileDomain:"Informazzione del Issuer",item:"Elemento",itemPlural:"Elementi",metadataButton:"Visualizza Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titolare",share:"Condividi",shareButton:"Condividi sui Social Network",signed:"Firmato da",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signatureSuiteType:"Digital signature type",substepsListClose:"Nascondi",substepsListHint:"Mostra gli step secondari",transactionId:"ID transazione",urlInput:"Inserisci l'URL del certificato",urlInputPlaceholder:"URL del certificato",verificationStepProgress:"Step di verifica...",verify:"Verifica",verifyAgain:"Verifica di nuovo",verifyOther:"Verifica un altro record",viewRecord:"Visualizza il Record"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"},numbers:{ordinal:"°"}},ja:{errors:{errorLabel:"エラー",additionalErrorInfoLabel:"次のエラーが発生しました:",invalidBlockcerts:"この証明書は有効なブロックサーツ証明書ではありません。発行者、もしくはこの証明書を提供した取得者にお問合せください。",invalidBlockcertsUrl:"有効な証明書URLではありません。",invalidFormatDragAndDrop:"JSONファイルしか受理できません",invalidUrl:"このURLは無効のようです。",noIssuerName:"名前が提供されていません",noMetadata:"この証明書に該当するメタデータがありません",noShareUrl:"シェアできるURLがありません!",noTransactionId:"取引IDがありません"},text:{brandName:"Blockcerts",blockcertsHint:"Blockcertsのホームページへ移動",by:" 発行者:",certified:"証明者:",closeButton:"クリックで閉じる",downloadLink:"JSON形式で証明書をダウンロード",downloadPDFLink:"PDF形式で証明書をダウンロード",downloadPDFLinkIsLoading:"PDFを生成中...",dragAndDropHint:"(ファイルのドラッグ&ドロップも可)。",fileUpload:"JSONファイルの選択",issued:"発行時:",issueDate:"発行日:",issuerName:"発行者",issuerPublicKey:"発行者の公開鍵",issuerProfileDomain:"発行者情報",item:"項目",itemPlural:"項目",metadataButton:"メタデータの閲覧",metadataTitle:"メタデータ",motto:"Blockcerts:ブロックチェーン証明書のオープンスタンダード",recipient:"取得者",share:"シェア先:",shareButton:"SNSでシェア",signatureSuiteType:"デジタル署名の種類",signatureStatusSuccess:"この署名の認証に成功しました",signatureStatusTestSuccess:"この署名の認証に成功しましたが、発行は試用のブロックチェーンで行われました。",signatureStatusFailure:"この署名の認証中にエラーが発生しました",signed:"署名者:",substepsListClose:"閉じる",substepsListHint:"サブステップのリストを開く",transactionId:"取引ID",urlInput:"証明書URLの入力",urlInputPlaceholder:"証明書URL",verificationStepProgress:"認証ステップを実行中...",verify:"認証する",verifyAgain:"もう一度認証する",verifyOther:"別の証明書を認証する",viewRecord:"証明書を閲覧する"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"},numbers:{ordinal:["番目","番目","番目","番目"]}}};function Rl(){return Vl}function Ol(e,t,i,r){if(!e)return"";if(e.includes(".")){const i=e.split(".");e=i[0],t=i[1]}if(!t)return"";i&&r>1&&(t+="Plural");const n=Rl();return n[Dl.locale]?n[Dl.locale][e]?n[Dl.locale][e][t]?n[Dl.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function jl(e){const t=Ol("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=Ol("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r}function Nl(e){return e.display}function zl(e){var t;return null!==(t=null==e?void 0:e.content)&&void 0!==t?t:""}function $l(e){return null==e?void 0:e.contentMediaType}function Ul(e){var t;return null!==(t=null==e?void 0:e.contentEncoding)&&void 0!==t?t:""}function Bl(e){return e.certificateDefinition}function Fl(e){const t=Bl(e);return t?t.signers:[]}function Hl(e){const t=Bl(e);return t?t.issuedOn:""}function ql(e){return Bl(e)?jl(Hl(e)):""}function Kl(e){const t=Bl(e);return t?t.recipientFullName:""}function Jl(e){var t;const i=Bl(e);return i&&null!==(t=i.name)&&void 0!==t?t:""}function Yl(e){const t=Bl(e);return t?t.issuer.name:""}function Gl(e){const t=Bl(e);return t?t.issuer.image:""}function Wl(e){const t=Bl(e);return!!t&&t.isVerifiablePresentation}function Zl(e){const t=Bl(e);return t?t.verifiableCredentials:[]}function Xl(e){return e.verificationStatus}function Ql(e){const t=function(e){const t=Bl(e);if(t)return t.certificateImage;return""}(e),i=Jl(e),r=function(e){const t=Bl(e);if(t)return t.subtitle;return""}(e),n=yu(e),o=function(e){const t=Bl(e);if(t)return t.sealImage;return""}(e),a=function(e){const t=Bl(e);if(t)return t.signatureImage;return null}(e),s=Kl(e),c=Yl(e),l=a.map((e=>`\n <li class='buv-c-full-certificate-signatures__signature'>\n <img class='buv-c-full-certificate-img--secondary' src='${e.image}' alt='${Ol("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `));let u="";return t&&(u+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),u+=`\n <div class="buv-c-full-certificate__titles">\n ${s?`<h1 class='buv-c-full-certificate__title buv-c-full-certificate__title--name'>${s}</h1>`:""}\n ${i?`<h2 class='buv-c-full-certificate__title buv-c-full-certificate__title--main'>${i}</h2>`:""}\n ${r?`<h3 class='buv-c-full-certificate__title buv-c-full-certificate__title--sub'>${r}</h3>`:""}\n </div>\n `,n&&(u+=`<p class='buv-c-full-certificate__description'>${n}</p>`),l.length&&(u+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${l.join("\n")}\n </ul>\n `),o&&(u+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${Ol("text.certified")} ${c}'/>`),u}function eu(e){const t=Bl(e);if(!t)return"";let{displayHtml:i}=t.certificateJson;return i?Ml(i):Wl(e)?"<div></div>":(i=tu(t),i||Ql(e))}function tu(e){const t=Nl(e);if(t)switch($l(t)){case Qs.TEXT_HTML:return Ml(t.content);case Qs.IMAGE_PNG:case Qs.IMAGE_JPEG:case Qs.IMAGE_GIF:case Qs.IMAGE_BMP:return`<img src="data:${$l(t)};${Ul(t)},${zl(t)}"/>`;case Qs.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${$l(t)};${Ul(t)},${zl(t)}"/>`;default:return""}}function iu(e){const t=Bl(e);return t&&gc(t.recordLink)?t.recordLink:""}function ru(e){const t=iu(e);return t?yc.certificates.download(t):""}function nu(e){const t=Bl(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function ou(e){var t;const i=Fl(e);return 0===i.length?null!==(t=vu(e,"transactionLink"))&&void 0!==t?t:[]:i.map((e=>e.transactionLink))}function au(e){var t;const i=Fl(e);return 0===i.length?null!==(t=vu(e,"transactionId"))&&void 0!==t?t:[]:i.map((e=>e.transactionId))}function su(e){const t=Fl(e);if(0===t.length){const t=vu(e,"chain");return t?t.map((e=>null==e?void 0:e.name)):[]}return t.map((e=>{var t;return null===(t=e.chain)||void 0===t?void 0:t.name}))}function cu(e){return su(e).some((e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet"))))}function lu(e,t){const i=su(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function uu(e){return e.verifiedSteps||[]}function du(e,t){return uu(e).find((e=>e.code===t))}function pu(e){return uu(e).some((e=>e.status===gs.FAILURE))}function hu(e){return e.finalStep}function fu(e){return Fl(e).map((e=>e.issuerPublicKey))}function gu(e){return Fl(e).map((e=>e.issuerProfileUrl))}function bu(e){return Fl(e).map((e=>e.issuerProfileDomain))}function mu(e){return Fl(e).map((e=>e.signatureSuiteType))}function vu(e,t){const i=Bl(e);return i?[i[t]]:null}function yu(e){var t;const i=Bl(e);return i&&null!==(t=i.description)&&void 0!==t?t:""}function wu(e){return e.isGeneratingPDF}function xu(e,t){switch(t.type){case Ve:return function(e,t){const{resetSteps:i}=t.payload;return Object.assign(Object.assign({},e),{verifiedSteps:i})}(e,t);case Te:return function(e,t){return Object.assign(Object.assign({},e),t.payload.options)}(e,t);case Ee:return function(e,t){return Object.assign(Object.assign(Object.assign({},e),t.payload),t.payload.certificateDefinition&&{verifiedSteps:yc.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case Me:return function(e,t){return Object.assign(Object.assign({},e),{certificateDefinition:t.payload.definition})}(e,t);case Ae:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{certificateUrl:t.payload.url})})}(e,t);case Oe:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return du(e,i).status=r,e}(e,t);case De:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case ze:return function(e,t){const{errorMessage:i,additionalErrorInfo:r}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i,additionalErrorInfo:r})}(e,t);case $e:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case Re:return function(e,t){const{parentStep:i}=t.payload;return function(e,t){var i;let r=e.subSteps.findIndex((e=>e.code===t.code));r>-1?e.subSteps[r]=t:(null===(i=e.suites)||void 0===i?void 0:i.length)&&e.suites.forEach((e=>{r=e.subSteps.findIndex((e=>e.code===t.code)),r>-1&&(e.subSteps[r]=t)}))}(du(e,i),t.payload),e}(e,t);case je:return function(e,t){return Object.assign(Object.assign({},e),{verificationStatus:t.payload.status})}(e,t);case Ne:return function(e,t){return Object.assign(Object.assign({},e),{finalStep:t.payload.finalStep})}(e,t);case Ue:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}var ku,_u;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(ku||(ku={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(_u||(_u={}));const Su=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:gs.DEFAULT,showVerificationModal:!1,displayMode:"card",disableDownloadPdf:!1,theme:_u.BRIGHT},e)}()){return ke(xu,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ve(15))};const a={getState:n.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...i)=>e(t(...i))))}(...s)(n.dispatch),{...n,dispatch:o}}}(...[Ce]))}();function Cu(e,{mapDispatchToProps:t={},mapStateToProps:i=()=>({}),ownProps:r={}}){return class extends(me(Su)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return _e(e,t);if("object"!=typeof e||null===e)throw new Error(ve(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=_e(n,t))}return i}(t,Su.dispatch)}mapStateToProps(e){return i(Su.getState(),e)}static get properties(){return r}_render(t){const i=Object.assign(Object.assign(Object.assign({},this.mapDispatchToProps()),this.mapStateToProps(t)),t);return de`${e(i)}`}_stateChanged(e){this._requestRender()}}}function Pu(e,t){return{type:ze,payload:{errorMessage:e,additionalErrorInfo:t}}}function Lu(e){return e.status===gs.SUCCESS}function Iu(e){return e.status===gs.FAILURE}function Tu(e){return function(t,i){if(null==e)return;const r=du(i(),e);let n=r.status;n===gs.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(Lu)),r||e.subSteps.some(Lu)}(r)&&(n=gs.STARTING),n!==gs.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).every(Lu)),r&&e.subSteps.every(Lu)}(r)&&(n=gs.SUCCESS),function(e){var t,i;let r=!1;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(Iu)),r||e.subSteps.some(Iu)}(r)&&(n=gs.FAILURE),t({type:Oe,payload:{parentStepCode:e,status:n}})}}class Eu{constructor(){this.queue=[],this.dispatchCb=null,this.isExecuting=!1,this.intervalId=0,this.dispatchNext=this.dispatchNext.bind(this)}registerCb(e){this.dispatchCb=e}push(e){e&&this.queue.push(e)}dispatchNext(){const e=this.queue.shift();e?this.dispatchCb(e):this.intervalId&&(this.isExecuting=!1,clearInterval(this.intervalId))}execute(){!this.isExecuting&&this.queue.length&&(this.isExecuting=!0,this.intervalId=setInterval(this.dispatchNext,200))}}const Mu=new Eu;function Au(e){return function(t,i){const r=function(e){return function(t){e({type:Re,payload:t}),e(Tu(t.parentStep))}}(t);Mu.dispatchCb||Mu.registerCb(r),Mu.push(e),Mu.execute()}}function Du(){return function(e,t){const i=Bl(t());let r=[];i&&(r=yc.certificates.initializeVerificationSteps(i)),e({type:Ve,payload:{resetSteps:r}})}}function Vu(e){return{type:je,payload:{status:e}}}function Ru(e){return e.disableVerify}function Ou(e){return e.allowDownload}function ju(e){return e.disableDownloadPdf}function Nu(e){return e.allowSocialShare}function zu(e){return e.showMetadata}function $u(e){return e.displayMode}function Uu(e){return e.theme}function Bu(e){return e.locale}function Fu(e){return e.explorerAPIs}function Hu(e){return e.clickableUrls}function qu(e){return e.didResolverUrl}function Ku(e){return"string"==typeof e&&(e={label:e,description:""}),{type:Ne,payload:{finalStep:e}}}function Ju(){return function(e,t){return fc(this,void 0,void 0,(function*(){const i=t();if(Ru(i))return void console.warn("Verification is disabled");e({type:"VERIFY_CERTIFICATE"}),e(Vu(gs.STARTING)),e(Du());const r=Bl(i);if(r){yc.events.dispatch("certificate-verify",r);const t=yield r.verify((t=>{e(Au(t))}));e(Ku(t.message)),e(Vu(t.status))}}))}}function Yu(e){return{type:$e,payload:{showVerificationModal:e}}}function Gu(e){return function(t,i){return fc(this,void 0,void 0,(function*(){const r=i(),n={locale:Bu(r),explorerAPIs:Fu(r),didResolverUrl:qu(r)},{certificateDefinition:o,errorMessage:a,additionalErrorInfo:s}=yield yc.certificates.parse(e,n);t(Pu(a,s)),t({type:Ee,payload:{certificateDefinition:o}}),yc.events.dispatch("certificate-load",o),null!=o&&(yield t((function(e,t){return fc(this,void 0,void 0,(function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Ie}),e(Yu(!0))),yield e(Ju())}))})))}))}}function Wu(e){return function(t){return fc(this,void 0,void 0,(function*(){const i=yc.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:De,payload:{isValid:r}}),e(Pu(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Ae,payload:{url:e}});const n=yield yc.certificates.retrieve(e);n.certificateDefinition?yield t(Gu(n.certificateDefinition)):t(Pu(n.errorMessage))}))}}const Zu=/(-\w)/g,Xu=e=>e[1].toUpperCase();const Qu={src:String,"disable-auto-verify":Boolean,"disable-verify":Boolean,"allow-download":Boolean,"disable-download-pdf":Boolean,"allow-social-share":Boolean,"display-mode":String,"show-metadata":Boolean,"clickable-urls":Boolean,theme:_u,locale:String,explorerAPIs:{},"did-resolver-url":String},ed=Object.keys(Qu).map((function(e){return e.replace(Zu,Xu)})).reduce(((e,t)=>(e[t]=Qu[t],e)),{});function td(e){let t;const i=Object.keys(Vl).map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=Al),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function id(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||Al),Dl.locale=td(e)}var rd=de`<style>.buv-c-input{font-size:15px;color:#031532;border-radius:2px 0 0 2px;padding:12px 15px;background-color:#f3f4f5;border:solid 1px rgba(3,21,50,.13);box-sizing:border-box;width:100%}.buv-c-input.is-invalid{border:2px solid red}.buv-c-input::placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function nd(e){return void 0===e.input.isValid||e.input.isValid}const od=Cu((({onInput:e=()=>{},isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
121
+ ${rd}
122
122
  <label
123
123
  for='certificate-json-url'
124
- class='buv-u-visually-hidden'>${Rl("text.urlInput")}</label>
124
+ class='buv-u-visually-hidden'>${Ol("text.urlInput")}</label>
125
125
  <input
126
126
  type='text'
127
127
  id='certificate-json-url'
128
- placeholder='${Rl("text.urlInputPlaceholder")}'
128
+ placeholder='${Ol("text.urlInputPlaceholder")}'
129
129
  class$='${i}'
130
130
  on-input='${t=>{e(t.target.value)}}'
131
131
  />
132
- `}),{mapDispatchToProps:{onInput:Gu},mapStateToProps:e=>({isValid:rd(e)})});window.customElements.define("buv-input",nd);var od=de`<style>.buv-c-verify-button{background-color:#2ab27b;border-radius:0 2px 2px 0;color:#fff;cursor:pointer;display:block;font-size:15px;font-weight:400;padding:12px 38px;border:1px solid #2ab27b;width:100%}.buv-c-verify-button__label{cursor:pointer}.buv-c-verify-button--hollow{background:#fff;color:#2ab27b;font-weight:100;text-transform:uppercase;padding:12px 30px;font-size:13px}.buv-c-verify-button--link{background:none;color:#031532;border:0;text-decoration:underline;padding:0;margin-top:5px;font-size:13px}.buv-c-verify-button.is-disabled{pointer-events:none}</style>`;const ad={onClick:function(){return function(e){e({type:"START_VERIFICATION_PROCESS"}),e(Ju(!0)),e(Ku())}}},sd=Su((function({isHollow:e=!1,isDisabled:t=!1,onClick:i=()=>{},type:r=""}={}){const n=["buv-c-verify-button",e?"buv-c-verify-button--hollow":"",t?"is-disabled":"","link"===r?"buv-c-verify-button--link":""].join(" ");return de`
133
- ${od}
132
+ `}),{mapDispatchToProps:{onInput:Wu},mapStateToProps:e=>({isValid:nd(e)})});window.customElements.define("buv-input",od);var ad=de`<style>.buv-c-verify-button{background-color:#2ab27b;border-radius:0 2px 2px 0;color:#fff;cursor:pointer;display:block;font-size:15px;font-weight:400;padding:12px 38px;border:1px solid #2ab27b;width:100%}.buv-c-verify-button__label{cursor:pointer}.buv-c-verify-button--hollow{background:#fff;color:#2ab27b;font-weight:100;text-transform:uppercase;padding:12px 30px;font-size:13px}.buv-c-verify-button--link{background:none;color:#031532;border:0;text-decoration:underline;padding:0;margin-top:5px;font-size:13px}.buv-c-verify-button.is-disabled{pointer-events:none}</style>`;const sd={onClick:function(){return function(e){e({type:"START_VERIFICATION_PROCESS"}),e(Yu(!0)),e(Ju())}}},cd=Cu((function({isHollow:e=!1,isDisabled:t=!1,onClick:i=()=>{},type:r=""}={}){const n=["buv-c-verify-button",e?"buv-c-verify-button--hollow":"",t?"is-disabled":"","link"===r?"buv-c-verify-button--link":""].join(" ");return de`
133
+ ${ad}
134
134
  <button class$='${n}' on-click='${i}' disabled?='${t}'>
135
- <label class='buv-c-verify-button__label'><slot>${Rl("text.verify")}</slot></label>
135
+ <label class='buv-c-verify-button__label'><slot>${Ol("text.verify")}</slot></label>
136
136
  </button>
137
- `}),{mapDispatchToProps:ad,mapStateToProps:e=>({isDisabled:Vu(e)||!Ul(e)}),ownProps:{isHollow:Boolean,type:String}});window.customElements.define("buv-verify-button",sd);var cd=de`<style>.buv-c-certificate-input{display:flex;width:100%;padding:40px 30px;background-color:hsla(0,0%,100%,.1);border:1px solid rgba(0,0,0,.1);box-sizing:border-box}@media only screen and (width <= 600px){.buv-c-certificate-input{flex-direction:column;grid-row-gap:10px;height:162px;padding:30px;justify-content:space-between}}.buv-c-certificate-input__input{width:100%}</style>`;const ld=Su((({showInput:e=!0})=>e?de`
138
- ${cd}
137
+ `}),{mapDispatchToProps:sd,mapStateToProps:e=>({isDisabled:Ru(e)||!Bl(e)}),ownProps:{isHollow:Boolean,type:String}});window.customElements.define("buv-verify-button",cd);var ld=de`<style>.buv-c-certificate-input{display:flex;width:100%;padding:40px 30px;background-color:hsla(0,0%,100%,.1);border:1px solid rgba(0,0,0,.1);box-sizing:border-box}@media only screen and (width <= 600px){.buv-c-certificate-input{flex-direction:column;grid-row-gap:10px;height:162px;padding:30px;justify-content:space-between}}.buv-c-certificate-input__input{width:100%}</style>`;const ud=Cu((({showInput:e=!0})=>e?de`
138
+ ${ld}
139
139
  <section class="buv-c-certificate-input buv-qa-certificate-input">
140
140
  <buv-input class="buv-c-certificate-input__input"></buv-input><buv-verify-button></buv-verify-button>
141
141
  </section>
142
- `:null),{mapStateToProps:e=>({showInput:!Ul(e)})});window.customElements.define("buv-certificate-input",ld);var ud=de`<style>.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-link{text-decoration:none;color:currentcolor}.buv-c-download-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa%5f1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20width%3D%22433.5px%22%20height%3D%22433.5px%22%20fill%3D%22%236e7e8e%22%20viewBox%3D%220%200%20433.5%20433.5%22%20style%3D%22enable-background%3Anew%200%200%20433.5%20433.5%3B%22%20xml%3Aspace%3D%22preserve%22%0A%09%3E%3Cg%3E%3Cg%20id%3D%22file-download%22%3E%3Cpath%20d%3D%22M395.25%2C153h-102V0h-153v153h-102l178.5%2C178.5L395.25%2C153z%20M38.25%2C382.5v51h357v-51H38.25z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");width:17px;height:17px;background-size:17px}.buv-c-download-link.is-disabled{pointer-events:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const dd=Su((function({downloadLink:e,display:t=""}){if(!e)return null;const i="plaintext"===t,r=Rl("text.downloadLink"),n=["buv-c-download-link","buv-o-button-link",i?"":"buv-c-download-link--icon"].join(" ");return de`
143
- ${ud}
142
+ `:null),{mapStateToProps:e=>({showInput:!Bl(e)})});window.customElements.define("buv-certificate-input",ud);var dd=de`<style>.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-link{text-decoration:none;color:currentcolor}.buv-c-download-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa%5f1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20width%3D%22433.5px%22%20height%3D%22433.5px%22%20fill%3D%22%236e7e8e%22%20viewBox%3D%220%200%20433.5%20433.5%22%20style%3D%22enable-background%3Anew%200%200%20433.5%20433.5%3B%22%20xml%3Aspace%3D%22preserve%22%0A%09%3E%3Cg%3E%3Cg%20id%3D%22file-download%22%3E%3Cpath%20d%3D%22M395.25%2C153h-102V0h-153v153h-102l178.5%2C178.5L395.25%2C153z%20M38.25%2C382.5v51h357v-51H38.25z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");width:17px;height:17px;background-size:17px}.buv-c-download-link.is-disabled{pointer-events:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const pd=Cu((function({downloadLink:e,display:t=""}){if(!e)return null;const i="plaintext"===t,r=Ol("text.downloadLink"),n=["buv-c-download-link","buv-o-button-link",i?"":"buv-c-download-link--icon"].join(" ");return de`
143
+ ${dd}
144
144
  <a class$='${n}' href='${e}' title$='${r}'>
145
145
  <span class$='${i?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${r}</span>
146
- </a>`}),{mapStateToProps:e=>({downloadLink:iu(e)}),ownProps:{display:String}});window.customElements.define("buv-download-link",dd);var pd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-pdf-link{padding:0;color:#2ab27b}.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg data-bx-workspace="master" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com" version="1.1" fill="%236e7e8e" id="Capa_1" x="0px" y="0px" width="550.801px" height="550.801px" viewBox="0 0 550.801 550.801"%3E%3Cg style="" transform="matrix(0.855886, 0, 0, 0.855886, 39.688637, 39.689045)"%3E%3Cpath d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"%3E%3C/path%3E%3Cpath d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"%3E%3C/path%3E%3Cpath d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"%3E%3C/path%3E%3C/g%3E%3C/svg%3E');width:25px;height:25px;background-size:25px}.buv-c-download-pdf-link__label--loading{display:none}.buv-c-download-pdf-link--loading{pointer-events:none}.buv-c-download-pdf-link--loading.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:transparent;display:block;" width="25px" height="25px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23999999" stroke-width="7" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E')}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label{color:#999}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--static{display:none}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--loading{display:block}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function hd(e){return{type:Ue,payload:{isGeneratingPDF:e}}}const fd={onClick:function(){return function(e,t){return hc(this,void 0,void 0,(function*(){const i=t(),{default:r}=yield import("./downloadPDF-CWa3ZYVl.js").then((function(e){return e.d})),n=function(e){const t=Ul(e);return t?"displayHtml"in t.certificateJson?Xs.TEXT_HTML:zl(Ol(t)):null}(i),o=function(e){const t=Ul(e);return t?"displayHtml"in t.certificateJson?"":$l(Ol(t)):""}(i),a=function(e){const t=Ul(e);return t?"displayHtml"in t.certificateJson?t.certificateJson.displayHtml:Nl(Ol(t)):""}(i),s=ql(i),c=Kl(i),l=Hl(i),u=Jl(i),d=Yl(i),p=tu(i),h=hu(i),f=fu(i),g=gu(i);e(hd(!0)),yield r({contentType:n,contentEncoding:o,content:a,recipientName:s,certificateTitle:c,issueDate:l,issuerName:u,issuerLogo:d,recordLink:p,issuerPublicKey:h,issuerProfileUrl:f,issuerProfileDomain:g}),e(hd(!1))}))}}},gd=Su((function({display:e="plaintext",isGeneratingPDF:t=!1,onClick:i=()=>{},isVisible:r=!0}={display:"plaintext",isGeneratingPDF:!1,onClick:()=>{},isVisible:!0}){if(!r)return null;const n="plaintext"===e,o=Rl("text.downloadPDFLink"),a=Rl("text.downloadPDFLinkIsLoading"),s=["buv-o-button-link","buv-c-download-pdf-link","buv-js-download-pdf-link",n?"":"buv-c-download-pdf-link__icon",t?"buv-c-download-pdf-link--loading":""].join(" ");return de`
147
- ${pd}
146
+ </a>`}),{mapStateToProps:e=>({downloadLink:ru(e)}),ownProps:{display:String}});window.customElements.define("buv-download-link",pd);var hd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-pdf-link{padding:0;color:#2ab27b}.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg data-bx-workspace="master" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com" version="1.1" fill="%236e7e8e" id="Capa_1" x="0px" y="0px" width="550.801px" height="550.801px" viewBox="0 0 550.801 550.801"%3E%3Cg style="" transform="matrix(0.855886, 0, 0, 0.855886, 39.688637, 39.689045)"%3E%3Cpath d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"%3E%3C/path%3E%3Cpath d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"%3E%3C/path%3E%3Cpath d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"%3E%3C/path%3E%3C/g%3E%3C/svg%3E');width:25px;height:25px;background-size:25px}.buv-c-download-pdf-link__label--loading{display:none}.buv-c-download-pdf-link--loading{pointer-events:none}.buv-c-download-pdf-link--loading.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:transparent;display:block;" width="25px" height="25px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23999999" stroke-width="7" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E')}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label{color:#999}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--static{display:none}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--loading{display:block}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function fd(e){return{type:Ue,payload:{isGeneratingPDF:e}}}const gd={onClick:function(){return function(e,t){return fc(this,void 0,void 0,(function*(){const i=t(),{default:r}=yield import("./downloadPDF-D2qwT_DJ.js").then((function(e){return e.d})),n=function(e){const t=Bl(e);return t?"displayHtml"in t.certificateJson?Qs.TEXT_HTML:$l(Nl(t)):null}(i),o=function(e){const t=Bl(e);return t?"displayHtml"in t.certificateJson?"":Ul(Nl(t)):""}(i),a=function(e){const t=Bl(e);return t?"displayHtml"in t.certificateJson?t.certificateJson.displayHtml:zl(Nl(t)):""}(i),s=Kl(i),c=Jl(i),l=ql(i),u=Yl(i),d=Gl(i),p=iu(i),h=fu(i),f=gu(i),g=bu(i);e(fd(!0)),yield r({contentType:n,contentEncoding:o,content:a,recipientName:s,certificateTitle:c,issueDate:l,issuerName:u,issuerLogo:d,recordLink:p,issuerPublicKey:h,issuerProfileUrl:f,issuerProfileDomain:g}),e(fd(!1))}))}}},bd=Cu((function({display:e="plaintext",isGeneratingPDF:t=!1,onClick:i=()=>{},isVisible:r=!0}={display:"plaintext",isGeneratingPDF:!1,onClick:()=>{},isVisible:!0}){if(!r)return null;const n="plaintext"===e,o=Ol("text.downloadPDFLink"),a=Ol("text.downloadPDFLinkIsLoading"),s=["buv-o-button-link","buv-c-download-pdf-link","buv-js-download-pdf-link",n?"":"buv-c-download-pdf-link__icon",t?"buv-c-download-pdf-link--loading":""].join(" ");return de`
147
+ ${hd}
148
148
  <button onclick='${i}'
149
149
  class$='${s}'
150
150
  title$='${o}'>
@@ -152,14 +152,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
152
152
  <span class='buv-c-download-pdf-link__label--static'>${o}</span>
153
153
  <span class='buv-c-download-pdf-link__label--loading'>${a}</span>
154
154
  </label>
155
- </button>`}),{mapDispatchToProps:fd,mapStateToProps:e=>({isVisible:!!Ul(e),isGeneratingPDF:yu(e)}),ownProps:{display:String}});window.customElements.define("buv-download-pdf-link",gd);var bd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-metadata-container{box-sizing:border-box;padding:47px;height:100%;width:400px;position:fixed;top:0;right:-400px;display:flex;flex-direction:column}.buv-c-metadata-container__close-button{top:52px;right:47px}.buv-c-metadata-container__title{border-bottom:solid 1px #e8e9eb;padding-bottom:38px;font-weight:300;margin:0 0 38px}.buv-c-metadata-link{padding:0}.buv-c-metadata-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%0A%09%20width%3D%22512px%22%20fill%3D%22%236e7e8e%22%20height%3D%22512px%22%20viewBox%3D%220%200%20512%20512%22%20enable-background%3D%22new%200%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%3E%0A%0A%3Cpath%20id%3D%22info-2-icon%22%20d%3D%22M255.998%2C90.001c91.74%2C0%2C166.002%2C74.241%2C166.002%2C165.998c0%2C91.741-74.245%2C166-166.002%2C166%0A%0A%09c-91.74%2C0-165.998-74.243-165.998-166C90%2C164.259%2C164.243%2C90.001%2C255.998%2C90.001%20M255.998%2C50.001%0A%0A%09C142.229%2C50.001%2C50%2C142.229%2C50%2C255.999c0%2C113.771%2C92.229%2C206%2C205.998%2C206c113.771%2C0%2C206.002-92.229%2C206.002-206%0A%0A%09C462%2C142.229%2C369.77%2C50.001%2C255.998%2C50.001L255.998%2C50.001z%20M285.822%2C367.567h-57.646V230.6h57.646V367.567z%20M257%2C202.268%0A%09c-17.522%2C0-31.729-14.206-31.729-31.73c0-17.522%2C14.206-31.729%2C31.729-31.729c17.524%2C0%2C31.728%2C14.206%2C31.728%2C31.729%0A%09C288.728%2C188.062%2C274.524%2C202.268%2C257%2C202.268z%22%2F%3E%3C%2Fsvg%3E");width:22px;height:22px;background-size:22px}.buv-c-metadata-list{margin:0;overflow:auto;flex:1}.buv-c-metadata-list__title{color:#999;line-height:15px}.buv-c-metadata-list__detail{margin:0 0 20px}.buv-c-metadata-list__detail-text{white-space:pre-wrap;word-wrap:break-word;font:inherit;margin:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-u-slide-from-right{opacity:0;transition:right ease .5s,opacity .2s}.buv-u-slide-from-right.is-active{right:0;opacity:1}</style>`,md=de`<style>.buv-c-close-button{display:inline-block;overflow:hidden;cursor:pointer;border:0;width:20px;height:20px;position:absolute;background-color:rgba(0,0,0,0)}.buv-c-close-button::before,.buv-c-close-button::after{content:"";position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#000}.buv-c-close-button::before{transform:rotate(45deg)}.buv-c-close-button::after{transform:rotate(-45deg)}.buv-c-close-button--big{transform:scale(3)}.buv-c-close-button--hairline::before,.buv-c-close-button--hairline::after{height:1px}.buv-c-close-button--thick::before,.buv-c-close-button--thick::after{height:4px;margin-top:-2px}.buv-c-close-button--black::before,.buv-c-close-button--black::after{height:8px;margin-top:-4px}.buv-c-close-button--heavy::before,.buv-c-close-button--heavy::after{height:12px;margin-top:-6px}.buv-c-close-button--pointy::before,.buv-c-close-button--pointy::after{width:200%;left:-50%}.buv-c-close-button--rounded::before,.buv-c-close-button--rounded::after{border-radius:5px}.buv-c-close-button--blades::before,.buv-c-close-button--blades::after{border-radius:5px 0}.buv-c-close-button--warp::before,.buv-c-close-button--warp::after{border-radius:120% 0}.buv-c-close-button--fat::before,.buv-c-close-button--fat::after{border-radius:100%}.buv-c-close-button--position{position:relative}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const vd=({onClick:e=()=>{},className:t=""}={})=>de`
156
- ${md}
155
+ </button>`}),{mapDispatchToProps:gd,mapStateToProps:e=>({isVisible:!!Bl(e),isGeneratingPDF:wu(e)}),ownProps:{display:String}});window.customElements.define("buv-download-pdf-link",bd);var md=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-metadata-container{box-sizing:border-box;padding:47px;height:100%;width:400px;position:fixed;top:0;right:-400px;display:flex;flex-direction:column}.buv-c-metadata-container__close-button{top:52px;right:47px}.buv-c-metadata-container__title{border-bottom:solid 1px #e8e9eb;padding-bottom:38px;font-weight:300;margin:0 0 38px}.buv-c-metadata-link{padding:0}.buv-c-metadata-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%0A%09%20width%3D%22512px%22%20fill%3D%22%236e7e8e%22%20height%3D%22512px%22%20viewBox%3D%220%200%20512%20512%22%20enable-background%3D%22new%200%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%3E%0A%0A%3Cpath%20id%3D%22info-2-icon%22%20d%3D%22M255.998%2C90.001c91.74%2C0%2C166.002%2C74.241%2C166.002%2C165.998c0%2C91.741-74.245%2C166-166.002%2C166%0A%0A%09c-91.74%2C0-165.998-74.243-165.998-166C90%2C164.259%2C164.243%2C90.001%2C255.998%2C90.001%20M255.998%2C50.001%0A%0A%09C142.229%2C50.001%2C50%2C142.229%2C50%2C255.999c0%2C113.771%2C92.229%2C206%2C205.998%2C206c113.771%2C0%2C206.002-92.229%2C206.002-206%0A%0A%09C462%2C142.229%2C369.77%2C50.001%2C255.998%2C50.001L255.998%2C50.001z%20M285.822%2C367.567h-57.646V230.6h57.646V367.567z%20M257%2C202.268%0A%09c-17.522%2C0-31.729-14.206-31.729-31.73c0-17.522%2C14.206-31.729%2C31.729-31.729c17.524%2C0%2C31.728%2C14.206%2C31.728%2C31.729%0A%09C288.728%2C188.062%2C274.524%2C202.268%2C257%2C202.268z%22%2F%3E%3C%2Fsvg%3E");width:22px;height:22px;background-size:22px}.buv-c-metadata-list{margin:0;overflow:auto;flex:1}.buv-c-metadata-list__title{color:#999;line-height:15px}.buv-c-metadata-list__detail{margin:0 0 20px}.buv-c-metadata-list__detail-text{white-space:pre-wrap;word-wrap:break-word;font:inherit;margin:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-u-slide-from-right{opacity:0;transition:right ease .5s,opacity .2s}.buv-u-slide-from-right.is-active{right:0;opacity:1}</style>`,vd=de`<style>.buv-c-close-button{display:inline-block;overflow:hidden;cursor:pointer;border:0;width:20px;height:20px;position:absolute;background-color:rgba(0,0,0,0)}.buv-c-close-button::before,.buv-c-close-button::after{content:"";position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#000}.buv-c-close-button::before{transform:rotate(45deg)}.buv-c-close-button::after{transform:rotate(-45deg)}.buv-c-close-button--big{transform:scale(3)}.buv-c-close-button--hairline::before,.buv-c-close-button--hairline::after{height:1px}.buv-c-close-button--thick::before,.buv-c-close-button--thick::after{height:4px;margin-top:-2px}.buv-c-close-button--black::before,.buv-c-close-button--black::after{height:8px;margin-top:-4px}.buv-c-close-button--heavy::before,.buv-c-close-button--heavy::after{height:12px;margin-top:-6px}.buv-c-close-button--pointy::before,.buv-c-close-button--pointy::after{width:200%;left:-50%}.buv-c-close-button--rounded::before,.buv-c-close-button--rounded::after{border-radius:5px}.buv-c-close-button--blades::before,.buv-c-close-button--blades::after{border-radius:5px 0}.buv-c-close-button--warp::before,.buv-c-close-button--warp::after{border-radius:120% 0}.buv-c-close-button--fat::before,.buv-c-close-button--fat::after{border-radius:100%}.buv-c-close-button--position{position:relative}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const yd=({onClick:e=()=>{},className:t=""}={})=>de`
156
+ ${vd}
157
157
  <button onclick='${e}' class$='${`buv-c-close-button buv-c-close-button--hairline ${t||"buv-c-close-button--position"} `}'>
158
- <label class='buv-u-visually-hidden'>${Rl("text.closeButton")}</label>
158
+ <label class='buv-u-visually-hidden'>${Ol("text.closeButton")}</label>
159
159
  </button>
160
160
  `;window.customElements.define("buv-metadata-raw",class extends be{constructor(){super(),this._isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{_isOpen:Boolean,metadataList:Object,display:String}}toggleOpen(){this._isOpen=!this._isOpen}_render({metadataList:e,display:t}){var i;const r=["buv-o-overlay","buv-c-metadata-container","buv-u-slide-from-right",this._isOpen?"is-active":""].join(" ");let n="";if(e){const t=function(e){var t;return null===(t=e.schema)||void 0===t?void 0:t.properties.certificate.properties}(e);n=null===(i=e.displayOrder)||void 0===i?void 0:i.map((i=>{const r=i.split(".")[1],n=function(e,t){const i=t.split(".");return function e(t,i,r){const n=r.indexOf(i)+1,o=r[n];return o?Object.prototype.hasOwnProperty.call(t[i],o)?e(t[i],o,r):void 0:t[i]}(e,i[0],i)}(e,i);return function(e,t){const{format:i,title:r}=e;let{type:n}=e;Array.isArray(n)&&(n=n[0]);const o=de`<dt class='buv-c-metadata-list__title'>${r}</dt>`;let a=!1,s="",c=de`${t}`;if("string"===n)switch(i){case"uri":a=!0,s=t;break;case"email":s=`mailto:${t}`;break;case"phoneNumber":s=`tel:${t}`}s&&(c=de`<a href="${s}" target="${a?"_blank":""}" >${t}</a>`);const l=de`<dd class='buv-c-metadata-list__detail'>
161
- <pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${l}`}(t[r],n)}))}const o="plaintext"===t,a=Rl(e?"text.metadataButton":"errors.noMetadata"),s=["buv-c-metadata-link","buv-o-button-link",o?"":"buv-c-metadata-link--icon"].join(" ");return de`
162
- ${bd}
161
+ <pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${l}`}(t[r],n)}))}const o="plaintext"===t,a=Ol(e?"text.metadataButton":"errors.noMetadata"),s=["buv-c-metadata-link","buv-o-button-link",o?"":"buv-c-metadata-link--icon"].join(" ");return de`
162
+ ${md}
163
163
  <button onclick='${this.toggleOpen}'
164
164
  class$='${s}'
165
165
  disabled?='${!e}'
@@ -168,15 +168,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
168
168
  <label class$='${o?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${a}</label>
169
169
  </button>
170
170
  <section class$='${r}'>
171
- <h1 class='buv-c-metadata-container__title'>${Rl("text.metadataTitle")}</h1>
172
- ${vd({onClick:this.toggleOpen,className:"buv-c-metadata-container__close-button"})}
171
+ <h1 class='buv-c-metadata-container__title'>${Ol("text.metadataTitle")}</h1>
172
+ ${yd({onClick:this.toggleOpen,className:"buv-c-metadata-container__close-button"})}
173
173
  <dl class='buv-c-metadata-list buv-o-text-12'>${n}</dl>
174
174
  </section>
175
- `}});const yd=Su((function(e){return de`
175
+ `}});const wd=Cu((function(e){return de`
176
176
  <buv-metadata-raw
177
177
  metadataList='${e.metadataList}'
178
178
  display='${e.display}'
179
- ></buv-metadata-raw>`}),{mapStateToProps:e=>({metadataList:ru(e)}),ownProps:{display:String}});window.customElements.define("buv-metadata",yd);var wd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-social-share-link{width:17px;height:17px;background-size:17px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 473.932 473.932' style='enable-background:new 0 0 473.932 473.932;' xml:space='preserve' width='24px' height='24px'%3E%3Cg%3E%3Cg%3E%3Cpath d='M385.513,301.214c-27.438,0-51.64,13.072-67.452,33.09l-146.66-75.002 c1.92-7.161,3.3-14.56,3.3-22.347c0-8.477-1.639-16.458-3.926-24.224l146.013-74.656c15.725,20.924,40.553,34.6,68.746,34.6 c47.758,0,86.391-38.633,86.391-86.348C471.926,38.655,433.292,0,385.535,0c-47.65,0-86.326,38.655-86.326,86.326 c0,7.809,1.381,15.229,3.322,22.412L155.892,183.74c-15.833-20.039-40.079-33.154-67.56-33.154 c-47.715,0-86.326,38.676-86.326,86.369s38.612,86.348,86.326,86.348c28.236,0,53.043-13.719,68.832-34.664l145.948,74.656 c-2.287,7.744-3.947,15.79-3.947,24.289c0,47.693,38.676,86.348,86.326,86.348c47.758,0,86.391-38.655,86.391-86.348 C471.904,339.848,433.271,301.214,385.513,301.214z' fill='%236e7e8e'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A")}.buv-c-social-share-modal{position:absolute;padding:38px 34px 34px;width:120px}.buv-c-social-share-modal__close-button{top:10px;right:10px}.buv-c-social-share-modal__list{list-style-type:none;margin:0;padding:0}.buv-c-social-share-modal__list-item{margin-bottom:24px}.buv-c-social-share-modal__list-item--plaintext{margin-bottom:5px;font-size:13px}.buv-c-social-share-modal__list-item:last-child{margin-bottom:0}.buv-c-social-share-modal__link{text-decoration:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-social-share-raw",class extends be{constructor(){super(),this.isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{url:String,isOpen:Boolean,onShare:Function,display:String}}toggleOpen(){this.isOpen=!this.isOpen}sharingTemplate({url:e,onShare:t,display:i}){if(!this.isOpen)return;if(!e)return;const r="plaintext"===i,n=[{name:"LinkedIn",shareUrl:`https://www.linkedin.com/shareArticle?url=${e}&mini=true`},{name:"Facebook",shareUrl:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{name:"Twitter",shareUrl:`https://twitter.com/intent/tweet?url=${e}`}].map((e=>de`<li class$='buv-c-social-share-modal__list-item ${r?"buv-c-social-share-modal__list-item--plaintext":""}'>
179
+ ></buv-metadata-raw>`}),{mapStateToProps:e=>({metadataList:nu(e)}),ownProps:{display:String}});window.customElements.define("buv-metadata",wd);var xd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-social-share-link{width:17px;height:17px;background-size:17px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 473.932 473.932' style='enable-background:new 0 0 473.932 473.932;' xml:space='preserve' width='24px' height='24px'%3E%3Cg%3E%3Cg%3E%3Cpath d='M385.513,301.214c-27.438,0-51.64,13.072-67.452,33.09l-146.66-75.002 c1.92-7.161,3.3-14.56,3.3-22.347c0-8.477-1.639-16.458-3.926-24.224l146.013-74.656c15.725,20.924,40.553,34.6,68.746,34.6 c47.758,0,86.391-38.633,86.391-86.348C471.926,38.655,433.292,0,385.535,0c-47.65,0-86.326,38.655-86.326,86.326 c0,7.809,1.381,15.229,3.322,22.412L155.892,183.74c-15.833-20.039-40.079-33.154-67.56-33.154 c-47.715,0-86.326,38.676-86.326,86.369s38.612,86.348,86.326,86.348c28.236,0,53.043-13.719,68.832-34.664l145.948,74.656 c-2.287,7.744-3.947,15.79-3.947,24.289c0,47.693,38.676,86.348,86.326,86.348c47.758,0,86.391-38.655,86.391-86.348 C471.904,339.848,433.271,301.214,385.513,301.214z' fill='%236e7e8e'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A")}.buv-c-social-share-modal{position:absolute;padding:38px 34px 34px;width:120px}.buv-c-social-share-modal__close-button{top:10px;right:10px}.buv-c-social-share-modal__list{list-style-type:none;margin:0;padding:0}.buv-c-social-share-modal__list-item{margin-bottom:24px}.buv-c-social-share-modal__list-item--plaintext{margin-bottom:5px;font-size:13px}.buv-c-social-share-modal__list-item:last-child{margin-bottom:0}.buv-c-social-share-modal__link{text-decoration:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-social-share-raw",class extends be{constructor(){super(),this.isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{url:String,isOpen:Boolean,onShare:Function,display:String}}toggleOpen(){this.isOpen=!this.isOpen}sharingTemplate({url:e,onShare:t,display:i}){if(!this.isOpen)return;if(!e)return;const r="plaintext"===i,n=[{name:"LinkedIn",shareUrl:`https://www.linkedin.com/shareArticle?url=${e}&mini=true`},{name:"Facebook",shareUrl:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{name:"Twitter",shareUrl:`https://twitter.com/intent/tweet?url=${e}`}].map((e=>de`<li class$='buv-c-social-share-modal__list-item ${r?"buv-c-social-share-modal__list-item--plaintext":""}'>
180
180
  <a
181
181
  href='${e.shareUrl}'
182
182
  title='Share on ${e.name}'
@@ -184,14 +184,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
184
184
  target='_blank'
185
185
  onclick='${()=>{t(e.name)}}'
186
186
  >
187
- <span>${Rl("text.share")} ${e.name}</span>
187
+ <span>${Ol("text.share")} ${e.name}</span>
188
188
  </a>
189
189
  </li>`)),o=de`<ul class='buv-c-social-share-modal__list'>
190
190
  ${n}
191
191
  </ul>`;return r?o:de`<div class='buv-c-social-share-modal buv-o-text-12 buv-o-overlay'>
192
- ${vd({onClick:this.toggleOpen,className:"buv-c-social-share-modal__close-button"})}
192
+ ${yd({onClick:this.toggleOpen,className:"buv-c-social-share-modal__close-button"})}
193
193
  ${o}
194
- </div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=Rl(i?"text.shareButton":"text.noShareUrl");return de`<button
194
+ </div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=Ol(i?"text.shareButton":"text.noShareUrl");return de`<button
195
195
  onclick='${this.toggleOpen}'
196
196
  class='buv-c-social-share-link buv-o-button-link'
197
197
  disabled?='${!i}'
@@ -200,16 +200,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
200
200
  >
201
201
  <label class='buv-u-visually-hidden'>${r}</label>
202
202
  </button>`}_render(e){return de`
203
- ${wd}
203
+ ${xd}
204
204
  ${this.sharingButton(e)}
205
205
  ${this.sharingTemplate(e)}
206
- `}});const xd={onShare:function(e){return function(t,i){const r=Ul(i());vc.events.dispatch("certificate-share",r,{socialNetwork:e}),t({type:"SHARE_SOCIAL_NETWORK"})}}},kd=Su((function(e){return de`
206
+ `}});const kd={onShare:function(e){return function(t,i){const r=Bl(i());yc.events.dispatch("certificate-share",r,{socialNetwork:e}),t({type:"SHARE_SOCIAL_NETWORK"})}}},_d=Cu((function(e){return de`
207
207
  <buv-social-share-raw
208
208
  url='${e.url}'
209
209
  onShare='${e.onShare}'
210
210
  display='${e.display}'
211
- ></buv-social-share-raw>`}),{mapDispatchToProps:xd,mapStateToProps:e=>({url:tu(e)}),ownProps:{display:String}});window.customElements.define("buv-social-share",kd);var _d=de`<style>.buv-c-action-menu{display:flex;align-items:center;padding:0}.buv-c-action-menu-item{flex-basis:30px}</style>`;const Sd=Su((({allowDownload:e,disableDownloadPdf:t,allowSocialShare:i,showMetadata:r,isVisible:n})=>(e||!t||i||r||(n=!1),n?de`
212
- ${_d}
211
+ ></buv-social-share-raw>`}),{mapDispatchToProps:kd,mapStateToProps:e=>({url:iu(e)}),ownProps:{display:String}});window.customElements.define("buv-social-share",_d);var Sd=de`<style>.buv-c-action-menu{display:flex;align-items:center;padding:0}.buv-c-action-menu-item{flex-basis:30px}</style>`;const Cd=Cu((({allowDownload:e,disableDownloadPdf:t,allowSocialShare:i,showMetadata:r,isVisible:n})=>(e||!t||i||r||(n=!1),n?de`
212
+ ${Sd}
213
213
  <menu class='buv-c-action-menu'>
214
214
  ${e?de`
215
215
  <menuitem class='buv-c-action-menu-item'>
@@ -228,10 +228,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
228
228
  <buv-social-share></buv-social-share>
229
229
  </menuitem>`:""}
230
230
  </menu>
231
- `:null)),{mapStateToProps:e=>({allowDownload:Ru(e),disableDownloadPdf:ju(e),allowSocialShare:Ou(e),showMetadata:Nu(e),isVisible:"full"===zu(e)&&!!Ul(e)})});window.customElements.define("buv-action-menu",Sd);var Cd=de`<style>.buv-c-verification-modal__process{display:flex;justify-content:space-around}.buv-c-verification-modal__separator{margin-bottom:30px;background-color:rgba(3,21,50,.05);height:1px;border:0 none}.buv-c-verification-modal__content{max-height:100vh;padding-bottom:43px;box-sizing:border-box;overflow:auto}@media only screen and (max-width: 600px){.buv-c-verification-modal__content{max-height:calc(100vh - 120px)}}</style>`,Pd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;let Ld=!1,Id=!1;function Td(e){return function(t){return hc(this,void 0,void 0,(function*(){t({type:"UPLOAD_CERTIFICATE_DEFINITION"});const i=yield vc.certificates.read(e);t(Yu(JSON.parse(i)))}))}}const Ed=Su((function({onChange:e=()=>{},hideFileUpload:t=!1}){return t?null:de`
232
- ${Pd}
231
+ `:null)),{mapStateToProps:e=>({allowDownload:Ou(e),disableDownloadPdf:ju(e),allowSocialShare:Nu(e),showMetadata:zu(e),isVisible:"full"===$u(e)&&!!Bl(e)})});window.customElements.define("buv-action-menu",Cd);var Pd=de`<style>.buv-c-verification-modal__process{display:flex;justify-content:space-around}.buv-c-verification-modal__separator{margin-bottom:30px;background-color:rgba(3,21,50,.05);height:1px;border:0 none}.buv-c-verification-modal__content{max-height:100vh;padding-bottom:43px;box-sizing:border-box;overflow:auto}@media only screen and (max-width: 600px){.buv-c-verification-modal__content{max-height:calc(100vh - 120px)}}</style>`,Ld=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;let Id=!1,Td=!1;function Ed(e){return function(t){return fc(this,void 0,void 0,(function*(){t({type:"UPLOAD_CERTIFICATE_DEFINITION"});const i=yield yc.certificates.read(e);t(Gu(JSON.parse(i)))}))}}const Md=Cu((function({onChange:e=()=>{},hideFileUpload:t=!1}){return t?null:de`
232
+ ${Ld}
233
233
  <label for='buv-json-file-upload' class='buv-o-link buv-o-text-12'>
234
- <span class='buv-o-link__text--underline'>${Rl("text.fileUpload")}</span>
234
+ <span class='buv-o-link__text--underline'>${Ol("text.fileUpload")}</span>
235
235
  <input
236
236
  type='file'
237
237
  accept='application/json'
@@ -240,12 +240,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
240
240
  onchange='${t=>{e(t.target.files[0])}}'
241
241
  />
242
242
  </label>
243
- ${(Ld?Id:(Ld=!0,!("ontouchstart"in document.createElement("div"))&&(Id=!0,Id)))?de`<span class="buv-o-text-12 qa-drag-and-drop-hint">${Rl("text.dragAndDropHint")}</span>`:""}`}),{mapDispatchToProps:{onChange:Td},mapStateToProps:e=>({hideFileUpload:!!Ul(e)})});function Md(){return function(e){e(Au()),e((function(e){e({type:"RESET_VERIFICATION_STATUS"}),e(Du(fs.DEFAULT)),e(qu(null))})),e({type:Me,payload:{definition:null}})}}window.customElements.define("buv-file-upload",Ed);var Ad=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-verify-other-certificate{display:block}</style>`;const Dd=Su((function({onClick:e=()=>{},isVisible:t=!1}={}){return t?de`
244
- ${Ad}
243
+ ${(Id?Td:(Id=!0,!("ontouchstart"in document.createElement("div"))&&(Td=!0,Td)))?de`<span class="buv-o-text-12 qa-drag-and-drop-hint">${Ol("text.dragAndDropHint")}</span>`:""}`}),{mapDispatchToProps:{onChange:Ed},mapStateToProps:e=>({hideFileUpload:!!Bl(e)})});function Ad(){return function(e){e(Du()),e((function(e){e({type:"RESET_VERIFICATION_STATUS"}),e(Vu(gs.DEFAULT)),e(Ku(null))})),e({type:Me,payload:{definition:null}})}}window.customElements.define("buv-file-upload",Md);var Dd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-verify-other-certificate{display:block}</style>`;const Vd=Cu((function({onClick:e=()=>{},isVisible:t=!1}={}){return t?de`
244
+ ${Dd}
245
245
  <a onclick='${e}' class='buv-o-text-12 buv-o-link buv-c-verify-other-certificate buv-qa-verify-other-certificate'>
246
- <span class='buv-o-link__text--underline'>${Rl("text.verifyOther")}</span>
246
+ <span class='buv-o-link__text--underline'>${Ol("text.verifyOther")}</span>
247
247
  </a>
248
- `:null}),{mapDispatchToProps:{onClick:Md},mapStateToProps:e=>({isVisible:!!Ul(e)})});window.customElements.define("buv-verify-other-certificate",Dd);var Vd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-footer{width:100%;height:60px;background-color:rgba(0,0,0,.1);color:#031532;fill:#111;display:flex;justify-content:space-between;align-items:center;padding:0 30px;box-sizing:border-box}.buv-c-footer a{line-height:1}.buv-c-footer--dark{color:#fff;fill:#fff}.buv-c-footer--forced{position:absolute;bottom:0;left:0;margin-top:0;justify-content:flex-end}</style>`,Rd=de`<style>.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-c-logo{color:currentcolor;text-decoration:none}.buv-c-logo--small{width:113px;height:16px}.buv-c-logo--medium{width:66%}.buv-c-logo__motto{font-size:12px}</style>`;function jd(){return de`
248
+ `:null}),{mapDispatchToProps:{onClick:Ad},mapStateToProps:e=>({isVisible:!!Bl(e)})});window.customElements.define("buv-verify-other-certificate",Vd);var Rd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-footer{width:100%;height:60px;background-color:rgba(0,0,0,.1);color:#031532;fill:#111;display:flex;justify-content:space-between;align-items:center;padding:0 30px;box-sizing:border-box}.buv-c-footer a{line-height:1}.buv-c-footer--dark{color:#fff;fill:#fff}.buv-c-footer--forced{position:absolute;bottom:0;left:0;margin-top:0;justify-content:flex-end}</style>`,Od=de`<style>.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-c-logo{color:currentcolor;text-decoration:none}.buv-c-logo--small{width:113px;height:16px}.buv-c-logo--medium{width:66%}.buv-c-logo__motto{font-size:12px}</style>`;function jd(){return de`
249
249
  <svg class='buv-qa-logo--branded buv-c-logo--medium' version="1.1" viewBox="0 0 686 163" xmlns="http://www.w3.org/2000/svg">
250
250
  <g fill="none" fill-rule="evenodd">
251
251
  <g transform="translate(-76 -70)">
@@ -270,10 +270,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
270
270
  </g>
271
271
  </g>
272
272
  </svg>
273
- <span class='buv-u-visually-hidden'>${Rl("text.motto")}</span>
274
- `}const Od=({className:e="",showMotto:t=!1}={className:"",showMotto:!1})=>de`
275
- ${Rd}
276
- <a href='https://www.blockcerts.org' title='${Rl("text.blockcertsHint")}' class$='buv-c-logo ${e}'>
273
+ <span class='buv-u-visually-hidden'>${Ol("text.motto")}</span>
274
+ `}const Nd=({className:e="",showMotto:t=!1}={className:"",showMotto:!1})=>de`
275
+ ${Od}
276
+ <a href='https://www.blockcerts.org' title='${Ol("text.blockcertsHint")}' class$='buv-c-logo ${e}'>
277
277
  ${t?jd():de`
278
278
  <svg class='buv-qa-logo--simple buv-c-logo--small' viewBox="0 0 113 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
279
279
  <defs></defs>
@@ -296,45 +296,45 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
296
296
  </g>
297
297
  </g>
298
298
  </svg>
299
- <span class='buv-u-visually-hidden'>${Rl("text.brandname")}</span>
299
+ <span class='buv-u-visually-hidden'>${Ol("text.brandname")}</span>
300
300
  `}
301
- </a>`,Nd=Su((({forceInPlace:e=!1,interactive:t=!1,theme:i}={})=>{const r=["buv-c-footer",e?"buv-c-footer--forced":"",i===ku.DARK?"buv-c-footer--dark":""].join(" ");return de`
302
- ${Vd}
301
+ </a>`,zd=Cu((({forceInPlace:e=!1,interactive:t=!1,theme:i}={})=>{const r=["buv-c-footer",e?"buv-c-footer--forced":"",i===_u.DARK?"buv-c-footer--dark":""].join(" ");return de`
302
+ ${Rd}
303
303
  <footer class$='${r}'>
304
304
  ${t?de`<section>
305
305
  <buv-file-upload></buv-file-upload>
306
306
  <buv-verify-other-certificate></buv-verify-other-certificate>
307
307
  </section>`:""}
308
- ${Od()}
309
- </footer>`}),{mapStateToProps:e=>({theme:$u(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",Nd);var zd=de`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:49px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh;top:0;left:0;transform:none}}.buv-c-modal__close-button{top:25px;right:25px}</style>`;window.customElements.define("buv-modal",class extends be{constructor(){super(),this.isOpen=!1,this.handleClick=this.handleClick.bind(this)}static get properties(){return{isOpen:Boolean,onClose:Function}}close(){this.isOpen=!1}handleClick(){this.close(),this._props.onClose()}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-modal","buv-qa-modal",this.isOpen?"":"is-hidden"].join(" ");return de`
310
- ${zd}
308
+ ${Nd()}
309
+ </footer>`}),{mapStateToProps:e=>({theme:Uu(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",zd);var $d=de`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:49px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh;top:0;left:0;transform:none}}.buv-c-modal__close-button{top:25px;right:25px}</style>`;window.customElements.define("buv-modal",class extends be{constructor(){super(),this.isOpen=!1,this.handleClick=this.handleClick.bind(this)}static get properties(){return{isOpen:Boolean,onClose:Function}}close(){this.isOpen=!1}handleClick(){this.close(),this._props.onClose()}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-modal","buv-qa-modal",this.isOpen?"":"is-hidden"].join(" ");return de`
310
+ ${$d}
311
311
  <div class$='${e}' onclick='${this.handleClick}'>
312
312
  <div class='buv-c-modal__content buv-o-overlay' onclick='${e=>{e.stopPropagation()}}'>
313
- ${vd({className:"buv-c-modal__close-button",onClick:this.handleClick})}
313
+ ${yd({className:"buv-c-modal__close-button",onClick:this.handleClick})}
314
314
  <slot></slot>
315
315
  </div>
316
316
  </div>
317
- `}});var $d=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}</style>`,Ud=de`<style>.buv-c-error-message{background:#fae5e7;border-radius:2px;letter-spacing:.05px;padding:10px}.buv-c-error-message--solid{background:#fff;border-radius:2px 2px 0 0;margin:0}.buv-c-error-message-title{color:#d0021b;font-weight:bold;display:block;margin-bottom:5px;font-size:15px}</style>`;function Bd(e,t="",i=!1){if(null==e)return null;const r=["buv-c-error-message","buv-qa-error-message",i?"buv-c-error-message--solid":""].join(" ");return de`
318
- ${Ud}
317
+ `}});var Ud=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}</style>`,Bd=de`<style>.buv-c-error-message{background:#fae5e7;border-radius:2px;letter-spacing:.05px;padding:10px}.buv-c-error-message--solid{background:#fff;border-radius:2px 2px 0 0;margin:0}.buv-c-error-message-title{color:#d0021b;font-weight:bold;display:block;margin-bottom:5px;font-size:15px}</style>`;function Fd(e,t="",i=!1){if(null==e)return null;const r=["buv-c-error-message","buv-qa-error-message",i?"buv-c-error-message--solid":""].join(" ");return de`
318
+ ${Bd}
319
319
  <div class$='${r}'>
320
320
  <p>
321
- <span class='buv-c-error-message-title'>${Rl("errors.errorLabel")}</span>
322
- ${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?Rl(e):e}(e)}
321
+ <span class='buv-c-error-message-title'>${Ol("errors.errorLabel")}</span>
322
+ ${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?Ol(e):e}(e)}
323
323
  </p>
324
324
  ${t?de`<p class='buv-c-error-message-additional-info'>
325
- <span class='buv-c-error-message-additional-info-title'>${Rl("errors.additionalErrorInfoLabel")}</span>
325
+ <span class='buv-c-error-message-additional-info-title'>${Ol("errors.additionalErrorInfoLabel")}</span>
326
326
  <br>
327
327
  <br>
328
328
  ${t}
329
329
  </p>`:""}
330
330
  </div>
331
- `}function Fd({label:e,status:t,errorMessage:i,isParent:r,isFirst:n,isTestChain:o}){const a=["buv-o-text-15","buv-c-verification-step","buv-c-badge",n?"is-first":"",`is-${t}`,o?"is-test":""].join(" ");let s;return s=r?de`${$d}<dt class$='${a}'>${e}</dt>`:de`${$d}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
331
+ `}function Hd({label:e,status:t,errorMessage:i,isParent:r,isFirst:n,isTestChain:o}){const a=["buv-o-text-15","buv-c-verification-step","buv-c-badge",n?"is-first":"",`is-${t}`,o?"is-test":""].join(" ");let s;return s=r?de`${Ud}<dt class$='${a}'>${e}</dt>`:de`${Ud}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
332
332
  ${e}
333
- ${Bd(i)}
334
- </dd>`,de`${s}`}var Hd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function qd(e){return e.verificationStatus}function Kd(e,t){var i;const r=null===(i=lu(e).find((e=>"proofVerification"===e.code)).suites)||void 0===i?void 0:i.find((e=>e.proofType===t));return r?r.subSteps.every((e=>e.status===fs.SUCCESS))?fs.SUCCESS:r.subSteps.some((e=>e.status===fs.FAILURE))?fs.FAILURE:"":""}function Jd(e){return e.showVerificationModal}const Yd=Su((function({chain:e=[""],transactionLink:t=[""],isTestChain:i=!1,isVisible:r=!1,finalStep:n=null,hideLink:o=!1,status:a="",standalone:s=!1,isOverlay:c=!1}={}){if(!n)return;const l=[s?"buv-c-final-verification-step--standalone-wrapper":"",`is-${a}`,i?"is-test":"",c?"buv-c-final-verification-step--overlay":""].join(" "),u=["buv-c-final-verification-step","buv-qa-final-verification-step",s?"buv-c-final-verification-step--standalone":"","buv-qa-verification-step",r?"is-visible":"",i?"is-test":"",c?"is-overlay":"",`is-${a}`,a&&!s?"buv-c-badge buv-c-badge--large":""].join(" "),d=["buv-c-verification-substep",s?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",r?"is-visible":"",c?"is-overlay":""].join(" "),p=n.label,h=function(e,t){return e.description?de`<p class='buv-c-verification-step__description buv-qa-final-step-description'>${e.description.replace("${chain}",t[0])}</p>`:null}(n,e),f=!o&&n.linkText?de`<a class='buv-o-link' href='${t[0]}' hidden?='${!t[0]}'>
333
+ ${Fd(i)}
334
+ </dd>`,de`${s}`}var qd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function Kd(e){return e.verificationStatus}function Jd(e,t){var i;const r=null===(i=uu(e).find((e=>"proofVerification"===e.code)).suites)||void 0===i?void 0:i.find((e=>e.proofType===t));return r?r.subSteps.every((e=>e.status===gs.SUCCESS))?gs.SUCCESS:r.subSteps.some((e=>e.status===gs.FAILURE))?gs.FAILURE:"":""}function Yd(e){return e.showVerificationModal}const Gd=Cu((function({chain:e=[""],transactionLink:t=[""],isTestChain:i=!1,isVisible:r=!1,finalStep:n=null,hideLink:o=!1,status:a="",standalone:s=!1,isOverlay:c=!1}={}){if(!n)return;const l=[s?"buv-c-final-verification-step--standalone-wrapper":"",`is-${a}`,i?"is-test":"",c?"buv-c-final-verification-step--overlay":""].join(" "),u=["buv-c-final-verification-step","buv-qa-final-verification-step",s?"buv-c-final-verification-step--standalone":"","buv-qa-verification-step",r?"is-visible":"",i?"is-test":"",c?"is-overlay":"",`is-${a}`,a&&!s?"buv-c-badge buv-c-badge--large":""].join(" "),d=["buv-c-verification-substep",s?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",r?"is-visible":"",c?"is-overlay":""].join(" "),p=n.label,h=function(e,t){return e.description?de`<p class='buv-c-verification-step__description buv-qa-final-step-description'>${e.description.replace("${chain}",t[0])}</p>`:null}(n,e),f=!o&&n.linkText?de`<a class='buv-o-link' href='${t[0]}' hidden?='${!t[0]}'>
335
335
  <span class='buv-o-link__text--underline buv-qa-transaction-link'>${n.linkText}</span>
336
336
  </a>`:"";return de`
337
- ${Hd}
337
+ ${qd}
338
338
  <div class$='${l}'>
339
339
  <dt class$='${u}'>${p}</dt>
340
340
  <dd class$='${d}'>
@@ -343,25 +343,25 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
343
343
  </dd>
344
344
  <slot></slot>
345
345
  </div>
346
- `}),{mapStateToProps:e=>({finalStep:pu(e),chain:au(e),transactionLink:nu(e),isTestChain:su(e),status:qd(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean,isOverlay:Boolean,status:String,finalStep:Object}});window.customElements.define("buv-final-verification-step",Yd);var Gd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;transition:-webkit-transform .3s ease-in;transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!(null==e?void 0:e.length))return[];const t=e.filter((e=>e.subSteps.length>0)).filter((e=>e.subSteps.some((e=>e.status))));return 0===t.length?[]:(this.hasNestedList=t.length>1,this.shadowRoot.addEventListener("child-list-rendered",(e=>{this.totalHeight+=e.detail.childHeight})),t)}renderSuiteTitle(e,t){return 1===t.length?null:de`<dt class='buv-o-text-12 buv-o-text-bold'>Proof type: ${e.proofType}</dt>`}renderSuites(e,t){if(e)return e.map((i=>de`
346
+ `}),{mapStateToProps:e=>({finalStep:hu(e),chain:su(e),transactionLink:ou(e),isTestChain:cu(e),status:Kd(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean,isOverlay:Boolean,status:String,finalStep:Object}});window.customElements.define("buv-final-verification-step",Gd);var Wd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;transition:-webkit-transform .3s ease-in;transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!(null==e?void 0:e.length))return[];const t=e.filter((e=>e.subSteps.length>0)).filter((e=>e.subSteps.some((e=>e.status))));return 0===t.length?[]:(this.hasNestedList=t.length>1,this.shadowRoot.addEventListener("child-list-rendered",(e=>{this.totalHeight+=e.detail.childHeight})),t)}renderSuiteTitle(e,t){return 1===t.length?null:de`<dt class='buv-o-text-12 buv-o-text-bold'>Proof type: ${e.proofType}</dt>`}renderSuites(e,t){if(e)return e.map((i=>de`
347
347
  ${this.renderSuiteTitle(i,e)}
348
- <buv-substeps-list subSteps='${i.subSteps}' hasError?='${t}' isNested?='${!0}'></buv-substeps-list>`))}_render({subSteps:e=[],suites:t=[],hasError:i=!1,isNested:r=!1}={}){let n=JSON.parse(JSON.stringify(e)),o=this.getRenderableSuites(t);if(1===o.length){n=JSON.parse(JSON.stringify(n)).concat(o[0].subSteps),o=null}this.isNested=r,!this.wasForcedOpen&&i&&(this.isOpen=!0,this.wasForcedOpen=!0);const a=n.filter((e=>e.status)),s=a.length||o.length;if(0===s)return null;const c=`${s} ${Rl("text","item",!0,s)}`,l=this.isOpen?this.totalHeight:1,u=["buv-o-text-12","buv-o-link","buv-c-substeps-list__link",this.isOpen?"is-open":""].join(" "),d=["buv-c-substeps-list__list","buv-js-substeps-list__list",this.isOpen?"is-open":"",this.hasNestedList?"is-nested":""].join(" ");return de`
349
- ${Gd}
350
- <a title='${Rl("text.substepsListHint")}' onclick='${this.toggleOpen}' class$='${u}'>
351
- <span class='buv-o-link__text--underline'>${this.isOpen?Rl("text.substepsListClose"):c}</span>
348
+ <buv-substeps-list subSteps='${i.subSteps}' hasError?='${t}' isNested?='${!0}'></buv-substeps-list>`))}_render({subSteps:e=[],suites:t=[],hasError:i=!1,isNested:r=!1}={}){let n=JSON.parse(JSON.stringify(e)),o=this.getRenderableSuites(t);if(1===o.length){n=JSON.parse(JSON.stringify(n)).concat(o[0].subSteps),o=null}this.isNested=r,!this.wasForcedOpen&&i&&(this.isOpen=!0,this.wasForcedOpen=!0);const a=n.filter((e=>e.status)),s=a.length||o.length;if(0===s)return null;const c=`${s} ${Ol("text","item",!0,s)}`,l=this.isOpen?this.totalHeight:1,u=["buv-o-text-12","buv-o-link","buv-c-substeps-list__link",this.isOpen?"is-open":""].join(" "),d=["buv-c-substeps-list__list","buv-js-substeps-list__list",this.isOpen?"is-open":"",this.hasNestedList?"is-nested":""].join(" ");return de`
349
+ ${Wd}
350
+ <a title='${Ol("text.substepsListHint")}' onclick='${this.toggleOpen}' class$='${u}'>
351
+ <span class='buv-o-link__text--underline'>${this.isOpen?Ol("text.substepsListClose"):c}</span>
352
352
  </a>
353
353
  <div class$='${d}' style$='max-height: ${l}px'>
354
- ${a.map((e=>de`${Fd(e)}`))}
354
+ ${a.map((e=>de`${Hd(e)}`))}
355
355
  ${this.renderSuites(o,i)}
356
356
  </div>
357
- `}});var Wd=de`<style>.buv-c-verification-process{position:relative}.buv-c-verification-progress-bar{position:absolute;left:13px;top:0;width:14px;display:flex;flex-direction:column;height:100%}.buv-c-verification-progress-bar__tube{min-height:14px;transition:flex .4s ease-in-out,max-height .4s ease-in;background-color:#2ab27b;border-radius:7px;flex-grow:0;opacity:0}.buv-c-verification-progress-bar__tube.has-started{flex-grow:1;opacity:1}.buv-c-verification-progress-bar__tube.is-test{background-color:#d8d8d8}.buv-c-verification-progress-bar__tube.has-errored{background-color:#d0021b}.buv-c-verification-progress-bar.no-transition{transition:none}.buv-c-verification-process__step-list{padding-left:46px;margin-top:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-verification-process-raw",class extends be{static get properties(){return{steps:[],hasError:Boolean,isTestChain:Boolean}}verificationInProgressTemplate(){return de`
358
- <span class='buv-u-visually-hidden'>${Rl("text.verificationStepProgress")}</span>
357
+ `}});var Zd=de`<style>.buv-c-verification-process{position:relative}.buv-c-verification-progress-bar{position:absolute;left:13px;top:0;width:14px;display:flex;flex-direction:column;height:100%}.buv-c-verification-progress-bar__tube{min-height:14px;transition:flex .4s ease-in-out,max-height .4s ease-in;background-color:#2ab27b;border-radius:7px;flex-grow:0;opacity:0}.buv-c-verification-progress-bar__tube.has-started{flex-grow:1;opacity:1}.buv-c-verification-progress-bar__tube.is-test{background-color:#d8d8d8}.buv-c-verification-progress-bar__tube.has-errored{background-color:#d0021b}.buv-c-verification-progress-bar.no-transition{transition:none}.buv-c-verification-process__step-list{padding-left:46px;margin-top:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-verification-process-raw",class extends be{static get properties(){return{steps:[],hasError:Boolean,isTestChain:Boolean}}verificationInProgressTemplate(){return de`
358
+ <span class='buv-u-visually-hidden'>${Ol("text.verificationStepProgress")}</span>
359
359
  <svg width='20' height='7' viewBox='0 0 120 30' xmlns='http://www.w3.org/2000/svg'><circle cx='15' cy='15' r='15'><animate attributeName='r' from='15' to='15' begin='0s' dur='0.8s' values='15;9;15' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from='1' to='1' begin='0s' dur='0.8s' values='1;.5;1' calcMode='linear' repeatCount='indefinite'/></circle><circle cx='60' cy='15' r='9' fill-opacity=''.9'><animate attributeName='r' from='9' to='9' begin='0s' dur='0.8s' values='9;15;9' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from=''.5' to='.5' begin='0s' dur='0.8s' values='.5;1;.5' calcMode='linear' repeatCount='indefinite'/></circle><circle cx='105' cy='15' r='15'><animate attributeName='r' from='15' to='15' begin='0s' dur='0.8s' values='15;9;15' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from='1' to='1' begin='0s' dur='0.8s' values='1;.5;1' calcMode='linear' repeatCount='indefinite'/></circle></svg>
360
- `}_didRender(){this.listElement||(this.listElement=this.shadowRoot.querySelectorAll(".buv-js-verification-process__step-list")[0])}_render({steps:e,hasError:t,isTestChain:i}){const r=e.filter((e=>e.status!==fs.DEFAULT)).map(((e,r)=>de`
361
- ${Fd(Object.assign(Object.assign({},e),{isParent:!0,isFirst:0===r,isTestChain:i}))}
362
- ${e.status===fs.STARTING?de`${this.verificationInProgressTemplate()}`:de`<buv-substeps-list subSteps='${e.subSteps}' suites='${e.suites}' hasError?='${t}'></buv-substeps-list>`}
363
- `)),n=["buv-c-verification-progress-bar__tube","buv-qa-verification-progress-bar__tube",t?"has-errored":"",i?"is-test":"",r.length?"has-started":""].join(" ");let o=`${this.listElement?this.listElement.getBoundingClientRect().height:0}px`;const a=e.every((e=>e.status===fs.SUCCESS))||e.some((e=>e.status===fs.FAILURE));return a&&(o="100%"),de`
364
- ${Wd}
360
+ `}_didRender(){this.listElement||(this.listElement=this.shadowRoot.querySelectorAll(".buv-js-verification-process__step-list")[0])}_render({steps:e,hasError:t,isTestChain:i}){const r=e.filter((e=>e.status!==gs.DEFAULT)).map(((e,r)=>de`
361
+ ${Hd(Object.assign(Object.assign({},e),{isParent:!0,isFirst:0===r,isTestChain:i}))}
362
+ ${e.status===gs.STARTING?de`${this.verificationInProgressTemplate()}`:de`<buv-substeps-list subSteps='${e.subSteps}' suites='${e.suites}' hasError?='${t}'></buv-substeps-list>`}
363
+ `)),n=["buv-c-verification-progress-bar__tube","buv-qa-verification-progress-bar__tube",t?"has-errored":"",i?"is-test":"",r.length?"has-started":""].join(" ");let o=`${this.listElement?this.listElement.getBoundingClientRect().height:0}px`;const a=e.every((e=>e.status===gs.SUCCESS))||e.some((e=>e.status===gs.FAILURE));return a&&(o="100%"),de`
364
+ ${Zd}
365
365
  <section class='buv-c-verification-process'>
366
366
  <div class='buv-c-verification-progress-bar' >
367
367
  <div class$='${n}' style$='max-height: ${o}'></div>
@@ -371,13 +371,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
371
371
  <buv-final-verification-step isVisible='${a&&!t}'></buv-final-verification-step>
372
372
  </dl>
373
373
  </section>
374
- `}});const Zd=Su((function({steps:e,hasError:t,isTestChain:i}){return de`<buv-verification-process-raw
374
+ `}});const Xd=Cu((function({steps:e,hasError:t,isTestChain:i}){return de`<buv-verification-process-raw
375
375
  steps='${e}'
376
376
  hasError?='${t}'
377
377
  isTestChain?='${i}'
378
378
  style='max-width: 100%;'
379
- ></buv-verification-process-raw>`}),{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(lu(e))),isTestChain:su(e),hasError:du(e)})});window.customElements.define("buv-verification-process",Zd);const Xd=Su((function({isOpen:e,onClose:t}){return de`
380
- ${Cd}
379
+ ></buv-verification-process-raw>`}),{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(uu(e))),isTestChain:cu(e),hasError:pu(e)})});window.customElements.define("buv-verification-process",Xd);const Qd=Cu((function({isOpen:e,onClose:t}){return de`
380
+ ${Pd}
381
381
  <buv-modal isOpen?='${e}' onClose='${t}' class$="qa-isopen-${e}">
382
382
  <div class='buv-c-verification-modal__content'>
383
383
  <buv-card-certificate class='buv-c-verification-modal__certificate' hideRecordLink hideVerifyButton></buv-card-certificate>
@@ -386,8 +386,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
386
386
  </div>
387
387
  <buv-footer forceInPlace></buv-footer>
388
388
  </buv-modal>
389
- `}),{mapDispatchToProps:{onClose:Ju.bind(null,!1)},mapStateToProps:e=>({isOpen:Jd(e)})});window.customElements.define("buv-verification-modal",Xd);var Qd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-drag-and-drop__droparea{z-index:100;background-color:rgba(0,0,0,.1);display:none;position:absolute;top:0;left:0;width:100%;height:100%}.buv-c-drag-and-drop__droparea.is-active{display:block}</style>`;window.customElements.define("buv-drag-and-drop-raw",class extends be{constructor(){super(),this.isDraggedOver=!1,this.denyDrop=!1,this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this)}static get properties(){return{isDraggedOver:Boolean,denyDrop:Boolean,onDrop:Function}}handleDragEnter(){this.isDraggedOver=!0}handleDragOver(e){e.preventDefault()}handleDragLeave(){this.isDraggedOver=!1}handleDrop(e){e.preventDefault(),this.isDraggedOver=!1;const t=e.dataTransfer.files[0];this.denyDrop=!function(e){const{name:t}=e;return"json"===t.substr(t.length-4,4)}(t),this.denyDrop||this._props.onDrop(t)}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-drag-and-drop__droparea",this.isDraggedOver?"is-active":""].join(" "),t=this.denyDrop?Rl("errors.invalidFormatDragAndDrop"):"";return de`
390
- ${Qd}
389
+ `}),{mapDispatchToProps:{onClose:Yu.bind(null,!1)},mapStateToProps:e=>({isOpen:Yd(e)})});window.customElements.define("buv-verification-modal",Qd);var ep=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-drag-and-drop__droparea{z-index:100;background-color:rgba(0,0,0,.1);display:none;position:absolute;top:0;left:0;width:100%;height:100%}.buv-c-drag-and-drop__droparea.is-active{display:block}</style>`;window.customElements.define("buv-drag-and-drop-raw",class extends be{constructor(){super(),this.isDraggedOver=!1,this.denyDrop=!1,this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this)}static get properties(){return{isDraggedOver:Boolean,denyDrop:Boolean,onDrop:Function}}handleDragEnter(){this.isDraggedOver=!0}handleDragOver(e){e.preventDefault()}handleDragLeave(){this.isDraggedOver=!1}handleDrop(e){e.preventDefault(),this.isDraggedOver=!1;const t=e.dataTransfer.files[0];this.denyDrop=!function(e){const{name:t}=e;return"json"===t.substr(t.length-4,4)}(t),this.denyDrop||this._props.onDrop(t)}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-drag-and-drop__droparea",this.isDraggedOver?"is-active":""].join(" "),t=this.denyDrop?Ol("errors.invalidFormatDragAndDrop"):"";return de`
390
+ ${ep}
391
391
  <div ondragenter='${this.handleDragEnter}'>
392
392
  <div class$='${e}'
393
393
  ondragover='${this.handleDragOver}'
@@ -396,34 +396,34 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
396
396
  ></div>
397
397
  <span>${t}</span>
398
398
  <slot></slot>
399
- </div>`}});const ep=Su((function(e){return de`
399
+ </div>`}});const tp=Cu((function(e){return de`
400
400
  <buv-drag-and-drop-raw
401
401
  onDrop='${e.onDrop}'
402
402
  >
403
403
  <slot></slot>
404
- </buv-drag-and-drop-raw>`}),{mapDispatchToProps:{onDrop:Td}});window.customElements.define("buv-drag-and-drop",ep);var tp=de`<style>.buv-c-verifier-main{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#031532;position:relative}.buv-c-verifier-layout{display:flex;flex-direction:column}.buv-c-verifier-body{background-color:#fff;flex-grow:1}.buv-c-verifier-body--padded{padding:20px}</style>`,ip=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-card{position:relative;display:flex;margin-bottom:20px}.buv-c-card__img-wrapper{margin-right:1.5vw;min-width:50px;width:20%}.buv-c-card__img{max-width:100%;max-height:100%}.buv-c-card__title-wrapper{display:flex;flex-direction:column;justify-content:center}.buv-c-card__download-button{margin-top:10px}.buv-c-card__title{font-size:calc(16px + .5vw);margin-top:0;margin-bottom:0;font-weight:400;padding-right:100px}.buv-c-card__description{font-size:12px;margin:5px 0 0;font-weight:400}.buv-c-card__title--no-padding{padding:0}.buv-c-card__recipient{font-weight:600;margin:6px 0 12px}.buv-c-card__record-link{position:absolute;top:0;right:0;line-height:30px}.buv-c-card__record-link::after{content:"";border:solid currentcolor;border-width:0 2px 2px 0;width:5px;height:5px;transform:rotate(-45deg);font-weight:bold;display:inline-block;margin-left:5px}.buv-c-card__verify-button{float:right}@media only screen and (max-width: 600px){.buv-c-card__title{font-size:16px}.buv-c-card__recipient{margin:6px 0}.buv-c-card__img-wrapper{margin-right:18px}}</style>`;const rp=Su((function(e){const{hasCertificateDefinition:t,recipientName:i,certificateTitle:r,certificateDescription:n,issuedOn:o,issueDate:a,issuerName:s,recordLink:c,hideVerifyButton:l,disableDownloadPdf:u}=e;let{hideRecordLink:d}=e;if(!t)return null;c||d||(d=!0);const p=["buv-c-card__title",d?"buv-c-card__title--no-padding":""].join(" ");return de`
405
- ${ip}
404
+ </buv-drag-and-drop-raw>`}),{mapDispatchToProps:{onDrop:Ed}});window.customElements.define("buv-drag-and-drop",tp);var ip=de`<style>.buv-c-verifier-main{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#031532;position:relative}.buv-c-verifier-layout{display:flex;flex-direction:column}.buv-c-verifier-body{background-color:#fff;flex-grow:1}.buv-c-verifier-body--padded{padding:20px}</style>`,rp=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-card{position:relative;display:flex;margin-bottom:20px}.buv-c-card__img-wrapper{margin-right:1.5vw;min-width:50px;width:20%}.buv-c-card__img{max-width:100%;max-height:100%}.buv-c-card__title-wrapper{display:flex;flex-direction:column;justify-content:center}.buv-c-card__download-button{margin-top:10px}.buv-c-card__title{font-size:calc(16px + .5vw);margin-top:0;margin-bottom:0;font-weight:400;padding-right:100px}.buv-c-card__description{font-size:12px;margin:5px 0 0;font-weight:400}.buv-c-card__title--no-padding{padding:0}.buv-c-card__recipient{font-weight:600;margin:6px 0 12px}.buv-c-card__record-link{position:absolute;top:0;right:0;line-height:30px}.buv-c-card__record-link::after{content:"";border:solid currentcolor;border-width:0 2px 2px 0;width:5px;height:5px;transform:rotate(-45deg);font-weight:bold;display:inline-block;margin-left:5px}.buv-c-card__verify-button{float:right}@media only screen and (max-width: 600px){.buv-c-card__title{font-size:16px}.buv-c-card__recipient{margin:6px 0}.buv-c-card__img-wrapper{margin-right:18px}}</style>`;const np=Cu((function(e){const{hasCertificateDefinition:t,recipientName:i,certificateTitle:r,certificateDescription:n,issuedOn:o,issueDate:a,issuerName:s,recordLink:c,hideVerifyButton:l,disableDownloadPdf:u}=e;let{hideRecordLink:d}=e;if(!t)return null;c||d||(d=!0);const p=["buv-c-card__title",d?"buv-c-card__title--no-padding":""].join(" ");return de`
405
+ ${rp}
406
406
  <section class='buv-c-card'>
407
407
  <div class='buv-c-card__img-wrapper'>
408
- ${function(e){return hc(this,void 0,void 0,(function*(){return yield new Promise((t=>{const i=new Image;i.addEventListener("load",(()=>{t(de`<img src='${e.issuerLogo}' alt='${e.issuerName}' class='buv-c-card__img'/>`)})),i.addEventListener("error",(()=>{t(de`<p class='buv-o-text-15'>${e.issuerName}</p>`)})),i.src=e.issuerLogo}))}))}(e)}
408
+ ${function(e){return fc(this,void 0,void 0,(function*(){return yield new Promise((t=>{const i=new Image;i.addEventListener("load",(()=>{t(de`<img src='${e.issuerLogo}' alt='${e.issuerName}' class='buv-c-card__img'/>`)})),i.addEventListener("error",(()=>{t(de`<p class='buv-o-text-15'>${e.issuerName}</p>`)})),i.src=e.issuerLogo}))}))}(e)}
409
409
  </div>
410
410
  <div class='buv-c-card__title-wrapper'>
411
411
  <h1 class$=${p}>${r}</h1>
412
412
  ${n?de`<h3 class="buv-c-card__description">${n}</h3>`:""}
413
413
  <h2 class$='${p} buv-c-card__recipient'>${i}</h2>
414
- <span class='buv-o-text-12'>${Rl("text.issued")} <time datetime$='${o}'>${a}</time> ${Rl("text.by")} ${s}</span>
414
+ <span class='buv-o-text-12'>${Ol("text.issued")} <time datetime$='${o}'>${a}</time> ${Ol("text.by")} ${s}</span>
415
415
  ${u?"":de`<div class='buv-c-card__download-button'>
416
416
  <buv-download-pdf-link></buv-download-pdf-link>
417
417
  </div>`}
418
418
  </div>
419
419
  ${d?"":de`<a class='buv-o-text-12 buv-o-link buv-c-card__record-link qa-card-record-link' href='${c}' target='_blank'>
420
- <span class='buv-o-link__text--underline'>${Rl("text.viewRecord")}</span>
420
+ <span class='buv-o-link__text--underline'>${Ol("text.viewRecord")}</span>
421
421
  </a>`}
422
422
  </section>
423
423
  ${l?"":de`<buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
424
- <buv-verify-button type='link'>${Rl("text.verifyAgain")}</buv-verify-button>
424
+ <buv-verify-button type='link'>${Ol("text.verifyAgain")}</buv-verify-button>
425
425
  </buv-final-verification-step>`}
426
- `}),{mapStateToProps:e=>({hasCertificateDefinition:!!Ul(e),recipientName:ql(e),certificateTitle:Kl(e),certificateDescription:vu(e),issueDate:Hl(e),issuedOn:Fl(e),issuerName:Jl(e),issuerLogo:Yl(e),recordLink:tu(e),disableDownloadPdf:ju(e)}),ownProps:{hideRecordLink:Boolean,hideVerifyButton:Boolean}});window.customElements.define("buv-card-certificate",rp);
426
+ `}),{mapStateToProps:e=>({hasCertificateDefinition:!!Bl(e),recipientName:Kl(e),certificateTitle:Jl(e),certificateDescription:yu(e),issueDate:ql(e),issuedOn:Hl(e),issuerName:Yl(e),issuerLogo:Gl(e),recordLink:iu(e),disableDownloadPdf:ju(e)}),ownProps:{hideRecordLink:Boolean,hideVerifyButton:Boolean}});window.customElements.define("buv-card-certificate",np);
427
427
  /**
428
428
  * @license
429
429
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -437,24 +437,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
437
437
  * subject to an additional IP rights grant found at
438
438
  * http://polymer.github.io/PATENTS.txt
439
439
  */
440
- const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML=e,t.setValue(document.importNode(i.content,!0))}).__litDirective=!0,t;var t};var op=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (width >= 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{justify-content:space-between;margin-top:15px}.buv-c-full-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`,ap=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px 0 0}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__group--row-grid{min-width:0;max-width:none}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-wrap:break-word}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`;const sp={en:function(e){const t=Rl("numbers","ordinal"),i=e%100;return t[(i-20)%10]||t[i]||t[0]},fr:function(e){const t=Rl("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>Rl("numbers","ordinal"),it:()=>Rl("numbers","ordinal"),mt:e=>Rl("numbers","ordinal")[e-1]};function cp(e){return"mt"===Al.locale?sp[Al.locale](e):e+sp[Al.locale](e)}var lp=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}.buv-c-suite-verification-status{margin-left:30px;font-weight:400}.buv-c-suite-verification-status.is-visible{font-size:13px}.buv-c-suite-verification-status.is-visible::after{width:20px;height:20px;left:-28px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const up=Su((function({isTestChain:e,status:t}){const i=["buv-c-final-verification-step","buv-c-suite-verification-status","is-visible",`is-${t}`,e?"is-test":""].join(" "),r=function(e,t){let i="signatureStatusSuccess";return e&&(i="signatureStatusTestSuccess"),t===fs.FAILURE&&(i="signatureStatusFailure"),Rl("text",i)}(e,t);return de`
441
- ${lp}
440
+ const op=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML=e,t.setValue(document.importNode(i.content,!0))}).__litDirective=!0,t;var t};var ap=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (width >= 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{justify-content:space-between;margin-top:15px}.buv-c-full-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`,sp=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px 0 0}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__group--row-grid{min-width:0;max-width:none}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-wrap:break-word}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`;const cp={en:function(e){const t=Ol("numbers","ordinal"),i=e%100;return t[(i-20)%10]||t[i]||t[0]},fr:function(e){const t=Ol("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>Ol("numbers","ordinal"),it:()=>Ol("numbers","ordinal"),mt:e=>Ol("numbers","ordinal")[e-1]};function lp(e){return"mt"===Dl.locale?cp[Dl.locale](e):e+cp[Dl.locale](e)}var up=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentcolor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.7143}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}.buv-c-suite-verification-status{margin-left:30px;font-weight:400}.buv-c-suite-verification-status.is-visible{font-size:13px}.buv-c-suite-verification-status.is-visible::after{width:20px;height:20px;left:-28px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const dp=Cu((function({isTestChain:e,status:t}){const i=["buv-c-final-verification-step","buv-c-suite-verification-status","is-visible",`is-${t}`,e?"is-test":""].join(" "),r=function(e,t){let i="signatureStatusSuccess";return e&&(i="signatureStatusTestSuccess"),t===gs.FAILURE&&(i="signatureStatusFailure"),Ol("text",i)}(e,t);return de`
441
+ ${up}
442
442
  <a class$='${i}' title$='${r}'>
443
443
  <span class='buv-u-visually-hidden'>${r}</span>
444
444
  <slot></slot>
445
445
  </a>
446
- `}),{mapStateToProps:(e,t)=>({isTestChain:cu(e,parseInt(t.index,10)),status:Kd(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function dp(e){return"grid"===e}function pp(e){return"column"===e}function hp(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",up);const fp=Su((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:l,signatureSuiteType:u=[],chain:d=[]}){const p=[];l||p.push({title:Rl("text.recipient"),value:e}),p.push({title:Rl("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Rl("text.issuerName"),value:null!=r?r:Rl("errors.noIssuerName")});for(let e=0;e<a.length;e++){let t="";a.length>1&&(t=`${cp(e+1)} `),u[e]&&p.push({title:`${t}${Rl("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${u[e]}' index$='${e}'>
447
- ${u[e]}${hp(d[e])}
448
- </buv-suite-verification-status>`}),n[e]&&p.push({title:`${t}${Rl("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),a[e]&&p.push({title:`${t}${Rl("text.issuerPublicKey")}`,value:a[e]}),s[e]&&p.push({title:`${t}${Rl("text.transactionId")}`,value:s[e]})}const h=p.map((e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",pp(i)?"":"buv-c-certificate-details__group--row",dp(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",pp(i)?"":"buv-o-text-11"].join(" "),a=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
446
+ `}),{mapStateToProps:(e,t)=>({isTestChain:lu(e,parseInt(t.index,10)),status:Jd(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function pp(e){return"grid"===e}function hp(e){return"column"===e}function fp(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",dp);const gp=Cu((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:l,signatureSuiteType:u=[],chain:d=[]}){const p=[];l||p.push({title:Ol("text.recipient"),value:e}),p.push({title:Ol("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Ol("text.issuerName"),value:null!=r?r:Ol("errors.noIssuerName")});for(let e=0;e<a.length;e++){let t="";a.length>1&&(t=`${lp(e+1)} `),u[e]&&p.push({title:`${t}${Ol("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${u[e]}' index$='${e}'>
447
+ ${u[e]}${fp(d[e])}
448
+ </buv-suite-verification-status>`}),n[e]&&p.push({title:`${t}${Ol("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),a[e]&&p.push({title:`${t}${Ol("text.issuerPublicKey")}`,value:a[e]}),s[e]&&p.push({title:`${t}${Ol("text.transactionId")}`,value:s[e]})}const h=p.map((e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",hp(i)?"":"buv-c-certificate-details__group--row",pp(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",hp(i)?"":"buv-o-text-11"].join(" "),a=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
449
449
  <dt class$='${o}'>${e}</dt>
450
450
  <dd class$='${a}'>${t}</dd>
451
- </div>`}(Object.assign(Object.assign({},e),{display:c})))),f=["buv-c-certificate-details","buv-o-text-13",pp(c)?"buv-c-certificate-details--column":"",dp(c)?"buv-c-certificate-details--grid":""].join(" ");return de`
452
- ${ap}
451
+ </div>`}(Object.assign(Object.assign({},e),{display:c})))),f=["buv-c-certificate-details","buv-o-text-13",hp(c)?"buv-c-certificate-details--column":"",pp(c)?"buv-c-certificate-details--grid":""].join(" ");return de`
452
+ ${sp}
453
453
  <dl class$='${f}'>
454
454
  ${h}
455
455
  </dl>
456
- `}),{mapStateToProps:e=>({recipientName:ql(e),issueDate:Hl(e),issuedOn:Fl(e),issuerName:Jl(e),transactionId:ou(e),issuerPublicKey:hu(e),issuerProfileDomain:gu(e),issuerProfileUrl:fu(e),signatureSuiteType:bu(e),chain:au(e)}),ownProps:{display:String,hideRecipientName:Boolean}});window.customElements.define("buv-certificate-details",fp);var gp=de`<style>.buv-c-verifiable-presentation{margin:0;padding:0;list-style-type:none;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.slider{width:525px;text-align:center;overflow:hidden}.buv-c-verifiable-presentation__credential{scroll-snap-align:start;flex-shrink:0;width:100%;height:300px;margin-right:50px;transform-origin:center center;transform:scale(1);transition:transform .5s;display:flex;justify-content:center;padding-top:0}.buv-c-verifiable-presentation-navigation{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;margin:0 0 .5rem;cursor:pointer}.buv-c-verifiable-presentation-navigation__link.is-active,.buv-c-verifiable-presentation-navigation__link:active,.buv-c-verifiable-presentation-navigation__link:focus{border-bottom:1px dashed}</style>`;window.customElements.define("buv-verifiable-presentation-raw",class extends be{static get properties(){return{verifiableCredentials:String}}constructor(){super(),this.scrollCredentialIntoView=this.scrollCredentialIntoView.bind(this),this.activateLink=this.activateLink.bind(this)}scrollCredentialIntoView(e){const t=this.shadowRoot.getElementById(e);this.activateLink(e),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}activateLink(e){this.vcNavigationElements.forEach((e=>{e.classList.remove("is-active")}));this.shadowRoot.querySelector(`[data-target="${e}"]`).classList.add("is-active")}_firstRendered(){this.vcNavigationElements=this.shadowRoot.querySelectorAll(".js-verifiable-presentation-navigation"),this.scrollItems=this.shadowRoot.querySelectorAll(".js-scroll-snap-item"),this.scrollItems.forEach((e=>{"onscrollsnapchange"in e?e.addEventListener("scrollsnapchange",(e=>{const t=e.snapTargetInline.getAttribute("id");this.activateLink(t)})):e.addEventListener("scroll",(()=>{const t=Array.from(e.children).find((e=>{const t=e.getBoundingClientRect();return t.left>=0&&t.right<=window.innerWidth}));if(t){const e=t.getAttribute("id");this.activateLink(e)}}))}))}_render({verifiableCredentials:e}){const t=JSON.parse(e);return de`
457
- ${gp}
456
+ `}),{mapStateToProps:e=>({recipientName:Kl(e),issueDate:ql(e),issuedOn:Hl(e),issuerName:Yl(e),transactionId:au(e),issuerPublicKey:fu(e),issuerProfileDomain:bu(e),issuerProfileUrl:gu(e),signatureSuiteType:mu(e),chain:su(e)}),ownProps:{display:String,hideRecipientName:Boolean}});window.customElements.define("buv-certificate-details",gp);var bp=de`<style>.buv-c-verifiable-presentation{margin:0;padding:0;list-style-type:none;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.slider{width:525px;text-align:center;overflow:hidden}.buv-c-verifiable-presentation__credential{scroll-snap-align:start;flex-shrink:0;width:100%;height:300px;margin-right:50px;transform-origin:center center;transform:scale(1);transition:transform .5s;display:flex;justify-content:center;padding-top:0}.buv-c-verifiable-presentation-navigation{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;margin:0 0 .5rem;cursor:pointer}.buv-c-verifiable-presentation-navigation__link.is-active,.buv-c-verifiable-presentation-navigation__link:active,.buv-c-verifiable-presentation-navigation__link:focus{border-bottom:1px dashed}</style>`;window.customElements.define("buv-verifiable-presentation-raw",class extends be{static get properties(){return{verifiableCredentials:String}}constructor(){super(),this.scrollCredentialIntoView=this.scrollCredentialIntoView.bind(this),this.activateLink=this.activateLink.bind(this)}scrollCredentialIntoView(e){const t=this.shadowRoot.getElementById(e);this.activateLink(e),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}activateLink(e){this.vcNavigationElements.forEach((e=>{e.classList.remove("is-active")}));this.shadowRoot.querySelector(`[data-target="${e}"]`).classList.add("is-active")}_firstRendered(){this.vcNavigationElements=this.shadowRoot.querySelectorAll(".js-verifiable-presentation-navigation"),this.scrollItems=this.shadowRoot.querySelectorAll(".js-scroll-snap-item"),this.scrollItems.forEach((e=>{"onscrollsnapchange"in e?e.addEventListener("scrollsnapchange",(e=>{const t=e.snapTargetInline.getAttribute("id");this.activateLink(t)})):e.addEventListener("scroll",(()=>{const t=Array.from(e.children).find((e=>{const t=e.getBoundingClientRect();return t.left>=0&&t.right<=window.innerWidth}));if(t){const e=t.getAttribute("id");this.activateLink(e)}}))}))}_render({verifiableCredentials:e}){const t=JSON.parse(e);return de`
457
+ ${bp}
458
458
  <ul>
459
459
  ${t.map(((e,t)=>{const i=["js-verifiable-presentation-navigation","buv-c-verifiable-presentation-navigation__link",0===t?"is-active":""].join(" ");return de`
460
460
  <li class="buv-c-verifiable-presentation-navigation">
@@ -471,10 +471,10 @@ const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
471
471
  <ul class="buv-c-verifiable-presentation js-scroll-snap-item">
472
472
  ${t.map((e=>{var t,i,r,n;return de`
473
473
  <li id$="${e.id}" class="buv-c-verifiable-presentation__credential">
474
- ${np(eu(e))}
474
+ ${op(tu(e))}
475
475
  <buv-final-verification-step
476
- finalStep="${"string"==typeof(null===(t=Zl(e))||void 0===t?void 0:t.message)?{label:null===(i=Zl(e))||void 0===i?void 0:i.message}:null===(r=Zl(e))||void 0===r?void 0:r.message}"
477
- status$="${null===(n=Zl(e))||void 0===n?void 0:n.status}"
476
+ finalStep="${"string"==typeof(null===(t=Xl(e))||void 0===t?void 0:t.message)?{label:null===(i=Xl(e))||void 0===i?void 0:i.message}:null===(r=Xl(e))||void 0===r?void 0:r.message}"
477
+ status$="${null===(n=Xl(e))||void 0===n?void 0:n.status}"
478
478
  isVisible
479
479
  standalone
480
480
  isOverlay
@@ -484,52 +484,52 @@ const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
484
484
  `}))}
485
485
  </ul>
486
486
  </div>
487
- `}});const bp=Su((function(e){return de`
487
+ `}});const mp=Cu((function(e){return de`
488
488
  <buv-verifiable-presentation-raw verifiableCredentials="${e.verifiableCredentials}"></buv-verifiable-presentation-raw>
489
- `}),{mapStateToProps:e=>({verifiableCredentials:JSON.stringify(Wl(e))})});window.customElements.define("buv-verifiable-presentation",bp);var mp=Object.prototype.hasOwnProperty;function vp(e){return"boolean"==typeof e}function yp(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function wp(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var xp=/\s+/,kp=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,i=this.getClass(),r=i?i.split(xp):[],n=e.split(xp);t=n.shift();)-1===r.indexOf(t)&&r.push(t);return this.getAttrs().class=r.join(" "),this},e.prototype.removeClass=function(e){for(var t,i=this.getClass(),r=i?i.split(xp):[],n=e.split(xp);r.length&&(t=n.shift());){var o=r.indexOf(t);-1!==o&&r.splice(o,1)}return this.getAttrs().class=r.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){var e=this.getAttrs(),t=[];for(var i in e)mp.call(e,i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();function _p(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t}function Sp(e,t,i){var r=t/2,n=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=e.substr(o)),e.substr(0,n)+i+a}var Cp=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new kp({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(t.class=i),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var i=[t],r=e.getCssClassSuffixes(),n=0,o=r.length;n<o;n++)i.push(t+"-"+r[n]);return i.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;if(null==i?(i="&hellip;",n=3,r=8):(n=i.length,r=i.length),e.length<=t)return e;var o=t-n,a=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.slice(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.slice(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.slice(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.slice(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(a.query){var s=a.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);s&&(a.query=a.query.substr(0,s[1].length),e=_p(a))}if(e.length<=t)return e;if(a.host&&(a.host=a.host.replace(/^www\./,""),e=_p(a)),e.length<=t)return e;var c="";if(a.host&&(c+=a.host),c.length>=o)return a.host.length===t?(a.host.substr(0,t-n)+i).substr(0,o+r):Sp(c,o,i).substr(0,o+r);var l="";if(a.path&&(l+="/"+a.path),a.query&&(l+="?"+a.query),l){if((c+l).length>=o)return(c+l).length==t?(c+l).substr(0,t):(c+Sp(l,o-c.length,i)).substr(0,o+r);c+=l}if(a.fragment){var u="#"+a.fragment;if((c+u).length>=o)return(c+u).length==t?(c+u).substr(0,t):(c+Sp(u,o-c.length,i)).substr(0,o+r);c+=u}if(a.scheme&&a.host){var d=a.scheme+"://";if((c+d).length<o)return(d+c).substr(0,t)}if(c.length<=t)return c;var p="";return o>0&&(p=c.substr(-1*Math.floor(o/2))),(c.substr(0,Math.ceil(o/2))+i+p).substr(0,o+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="&hellip;",r=8,n=3):(r=i.length,n=i.length);var o=t-n,a="";return o>0&&(a=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+i+a).substr(0,o+r)}(e,i):function(e,t,i){return function(e,t,i){var r;return e.length>t&&(null==i?(i="&hellip;",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),Pp=function(){function e(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.type]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}();function Lp(e){return e>=65&&e<=90||e>=97&&e<=122}function Ip(e){return e>=48&&e<=57}function Tp(e){return 34==e||39==e}function Ep(e){return e<8232?e<160?e>=9&&e<=13||32==e:e<5760?160==e:5760==e||e>=8192&&e<=8202:e<8287?e>=8232&&e<=8233||8239==e:e<12288?8287==e:12288==e||65279==e}function Mp(e){return e<4800?e<2949?e<2451?e<1425?e<768?e<192?e<169?e<65?e>=48&&e<=57:e>=65&&e<=90||e>=97&&e<=122:e<181?e>=169&&e<=170||174==e:181==e||186==e:e<710?e<216?e>=192&&e<=214:e>=216&&e<=246||e>=248&&e<=705:e<748?e>=710&&e<=721||e>=736&&e<=740:748==e||750==e:e<910?e<895?e<886?e>=768&&e<=884:e>=886&&e<=887||e>=890&&e<=893:e<904?895==e||902==e:e>=904&&e<=906||908==e:e<1155?e<931?e>=910&&e<=929:e>=931&&e<=1013||e>=1015&&e<=1153:e<1369?e>=1155&&e<=1327||e>=1329&&e<=1366:1369==e||e>=1377&&e<=1415:e<1808?e<1552?e<1476?e<1471?e>=1425&&e<=1469:1471==e||e>=1473&&e<=1474:e<1488?e>=1476&&e<=1477||1479==e:e>=1488&&e<=1514||e>=1520&&e<=1522:e<1749?e<1568?e>=1552&&e<=1562:e>=1568&&e<=1641||e>=1646&&e<=1747:e<1770?e>=1749&&e<=1756||e>=1759&&e<=1768:e>=1770&&e<=1788||1791==e:e<2230?e<2042?e<1869?e>=1808&&e<=1866:e>=1869&&e<=1969||e>=1984&&e<=2037:e<2112?2042==e||e>=2048&&e<=2093:e>=2112&&e<=2139||e>=2208&&e<=2228:e<2406?e<2260?e>=2230&&e<=2237:e>=2260&&e<=2273||e>=2275&&e<=2403:e<2437?e>=2406&&e<=2415||e>=2417&&e<=2435:e>=2437&&e<=2444||e>=2447&&e<=2448:e<2693?e<2579?e<2519?e<2486?e<2474?e>=2451&&e<=2472:e>=2474&&e<=2480||2482==e:e<2503?e>=2486&&e<=2489||e>=2492&&e<=2500:e>=2503&&e<=2504||e>=2507&&e<=2510:e<2534?e<2524?2519==e:e>=2524&&e<=2525||e>=2527&&e<=2531:e<2565?e>=2534&&e<=2545||e>=2561&&e<=2563:e>=2565&&e<=2570||e>=2575&&e<=2576:e<2631?e<2613?e<2602?e>=2579&&e<=2600:e>=2602&&e<=2608||e>=2610&&e<=2611:e<2620?e>=2613&&e<=2614||e>=2616&&e<=2617:2620==e||e>=2622&&e<=2626:e<2649?e<2635?e>=2631&&e<=2632:e>=2635&&e<=2637||2641==e:e<2662?e>=2649&&e<=2652||2654==e:e>=2662&&e<=2677||e>=2689&&e<=2691:e<2821?e<2759?e<2730?e<2703?e>=2693&&e<=2701:e>=2703&&e<=2705||e>=2707&&e<=2728:e<2741?e>=2730&&e<=2736||e>=2738&&e<=2739:e>=2741&&e<=2745||e>=2748&&e<=2757:e<2784?e<2763?e>=2759&&e<=2761:e>=2763&&e<=2765||2768==e:e<2809?e>=2784&&e<=2787||e>=2790&&e<=2799:2809==e||e>=2817&&e<=2819:e<2887?e<2858?e<2831?e>=2821&&e<=2828:e>=2831&&e<=2832||e>=2835&&e<=2856:e<2869?e>=2858&&e<=2864||e>=2866&&e<=2867:e>=2869&&e<=2873||e>=2876&&e<=2884:e<2911?e<2902?e>=2887&&e<=2888||e>=2891&&e<=2893:e>=2902&&e<=2903||e>=2908&&e<=2909:e<2929?e>=2911&&e<=2915||e>=2918&&e<=2927:2929==e||e>=2946&&e<=2947:e<3517?e<3205?e<3046?e<2984?e<2969?e<2958?e>=2949&&e<=2954:e>=2958&&e<=2960||e>=2962&&e<=2965:e<2974?e>=2969&&e<=2970||2972==e:e>=2974&&e<=2975||e>=2979&&e<=2980:e<3014?e<2990?e>=2984&&e<=2986:e>=2990&&e<=3001||e>=3006&&e<=3010:e<3024?e>=3014&&e<=3016||e>=3018&&e<=3021:3024==e||3031==e:e<3142?e<3086?e<3072?e>=3046&&e<=3055:e>=3072&&e<=3075||e>=3077&&e<=3084:e<3114?e>=3086&&e<=3088||e>=3090&&e<=3112:e>=3114&&e<=3129||e>=3133&&e<=3140:e<3160?e<3146?e>=3142&&e<=3144:e>=3146&&e<=3149||e>=3157&&e<=3158:e<3174?e>=3160&&e<=3162||e>=3168&&e<=3171:e>=3174&&e<=3183||e>=3200&&e<=3203:e<3333?e<3274?e<3242?e<3214?e>=3205&&e<=3212:e>=3214&&e<=3216||e>=3218&&e<=3240:e<3260?e>=3242&&e<=3251||e>=3253&&e<=3257:e>=3260&&e<=3268||e>=3270&&e<=3272:e<3296?e<3285?e>=3274&&e<=3277:e>=3285&&e<=3286||3294==e:e<3313?e>=3296&&e<=3299||e>=3302&&e<=3311:e>=3313&&e<=3314||e>=3329&&e<=3331:e<3423?e<3389?e<3342?e>=3333&&e<=3340:e>=3342&&e<=3344||e>=3346&&e<=3386:e<3402?e>=3389&&e<=3396||e>=3398&&e<=3400:e>=3402&&e<=3406||e>=3412&&e<=3415:e<3458?e<3430?e>=3423&&e<=3427:e>=3430&&e<=3439||e>=3450&&e<=3455:e<3482?e>=3458&&e<=3459||e>=3461&&e<=3478:e>=3482&&e<=3505||e>=3507&&e<=3515:e<3804?e<3722?e<3570?e<3535?e<3520?3517==e:e>=3520&&e<=3526||3530==e:e<3544?e>=3535&&e<=3540||3542==e:e>=3544&&e<=3551||e>=3558&&e<=3567:e<3664?e<3585?e>=3570&&e<=3571:e>=3585&&e<=3642||e>=3648&&e<=3662:e<3716?e>=3664&&e<=3673||e>=3713&&e<=3714:3716==e||e>=3719&&e<=3720:e<3754?e<3737?e<3725?3722==e:3725==e||e>=3732&&e<=3735:e<3749?e>=3737&&e<=3743||e>=3745&&e<=3747:3749==e||3751==e:e<3776?e<3757?e>=3754&&e<=3755:e>=3757&&e<=3769||e>=3771&&e<=3773:e<3784?e>=3776&&e<=3780||3782==e:e>=3784&&e<=3789||e>=3792&&e<=3801:e<4176?e<3902?e<3872?e<3840?e>=3804&&e<=3807:3840==e||e>=3864&&e<=3865:e<3895?e>=3872&&e<=3881||3893==e:3895==e||3897==e:e<3974?e<3913?e>=3902&&e<=3911:e>=3913&&e<=3948||e>=3953&&e<=3972:e<4038?e>=3974&&e<=3991||e>=3993&&e<=4028:4038==e||e>=4096&&e<=4169:e<4688?e<4301?e<4256?e>=4176&&e<=4253:e>=4256&&e<=4293||4295==e:e<4348?4301==e||e>=4304&&e<=4346:e>=4348&&e<=4680||e>=4682&&e<=4685:e<4746?e<4698?e>=4688&&e<=4694||4696==e:e>=4698&&e<=4701||e>=4704&&e<=4744:e<4786?e>=4746&&e<=4749||e>=4752&&e<=4784:e>=4786&&e<=4789||e>=4792&&e<=4798:e<11035?e<7416?e<6176?e<5873?e<4992?e<4824?e<4802?4800==e:e>=4802&&e<=4805||e>=4808&&e<=4822:e<4888?e>=4824&&e<=4880||e>=4882&&e<=4885:e>=4888&&e<=4954||e>=4957&&e<=4959:e<5121?e<5024?e>=4992&&e<=5007:e>=5024&&e<=5109||e>=5112&&e<=5117:e<5761?e>=5121&&e<=5740||e>=5743&&e<=5759:e>=5761&&e<=5786||e>=5792&&e<=5866:e<6002?e<5920?e<5888?e>=5873&&e<=5880:e>=5888&&e<=5900||e>=5902&&e<=5908:e<5984?e>=5920&&e<=5940||e>=5952&&e<=5971:e>=5984&&e<=5996||e>=5998&&e<=6e3:e<6108?e<6016?e>=6002&&e<=6003:e>=6016&&e<=6099||6103==e:e<6155?e>=6108&&e<=6109||e>=6112&&e<=6121:e>=6155&&e<=6157||e>=6160&&e<=6169:e<6783?e<6512?e<6400?e<6272?e>=6176&&e<=6263:e>=6272&&e<=6314||e>=6320&&e<=6389:e<6448?e>=6400&&e<=6430||e>=6432&&e<=6443:e>=6448&&e<=6459||e>=6470&&e<=6509:e<6608?e<6528?e>=6512&&e<=6516:e>=6528&&e<=6571||e>=6576&&e<=6601:e<6688?e>=6608&&e<=6617||e>=6656&&e<=6683:e>=6688&&e<=6750||e>=6752&&e<=6780:e<7040?e<6832?e<6800?e>=6783&&e<=6793:e>=6800&&e<=6809||6823==e:e<6992?e>=6832&&e<=6846||e>=6912&&e<=6987:e>=6992&&e<=7001||e>=7019&&e<=7027:e<7245?e<7168?e>=7040&&e<=7155:e>=7168&&e<=7223||e>=7232&&e<=7241:e<7376?e>=7245&&e<=7293||e>=7296&&e<=7304:e>=7376&&e<=7378||e>=7380&&e<=7414:e<8450?e<8130?e<8025?e<7960?e<7424?e>=7416&&e<=7417:e>=7424&&e<=7669||e>=7675&&e<=7957:e<8008?e>=7960&&e<=7965||e>=7968&&e<=8005:e>=8008&&e<=8013||e>=8016&&e<=8023:e<8031?e<8027?8025==e:8027==e||8029==e:e<8118?e>=8031&&e<=8061||e>=8064&&e<=8116:e>=8118&&e<=8124||8126==e:e<8205?e<8150?e<8134?e>=8130&&e<=8132:e>=8134&&e<=8140||e>=8144&&e<=8147:e<8178?e>=8150&&e<=8155||e>=8160&&e<=8172:e>=8178&&e<=8180||e>=8182&&e<=8188:e<8305?e<8252?8205==e:8252==e||8265==e:e<8336?8305==e||8319==e:e>=8336&&e<=8348||e>=8400&&e<=8432:e<8579?e<8486?e<8469?e<8455?8450==e:8455==e||e>=8458&&e<=8467:e<8482?8469==e||e>=8473&&e<=8477:8482==e||8484==e:e<8495?e<8488?8486==e:8488==e||e>=8490&&e<=8493:e<8517?e>=8495&&e<=8505||e>=8508&&e<=8511:e>=8517&&e<=8521||8526==e:e<9410?e<9e3?e<8592?e>=8579&&e<=8580:e>=8592&&e<=8703||e>=8986&&e<=8987:e<9193?9e3==e||9167==e:e>=9193&&e<=9203||e>=9208&&e<=9210:e<9723?e<9654?9410==e||e>=9642&&e<=9643:9654==e||9664==e:e<10548?e>=9723&&e<=9726||e>=9728&&e<=10175:e>=10548&&e<=10549||e>=11013&&e<=11015:e<43259?e<12445?e<11688?e<11520?e<11264?e<11088?e>=11035&&e<=11036:11088==e||11093==e:e<11360?e>=11264&&e<=11310||e>=11312&&e<=11358:e>=11360&&e<=11492||e>=11499&&e<=11507:e<11568?e<11559?e>=11520&&e<=11557:11559==e||11565==e:e<11647?e>=11568&&e<=11623||11631==e:e>=11647&&e<=11670||e>=11680&&e<=11686:e<11744?e<11712?e<11696?e>=11688&&e<=11694:e>=11696&&e<=11702||e>=11704&&e<=11710:e<11728?e>=11712&&e<=11718||e>=11720&&e<=11726:e>=11728&&e<=11734||e>=11736&&e<=11742:e<12330?e<11823?e>=11744&&e<=11775:11823==e||e>=12293&&e<=12294:e<12353?e>=12330&&e<=12341||e>=12347&&e<=12349:e>=12353&&e<=12438||e>=12441&&e<=12442:e<42512?e<12951?e<12549?e<12449?e>=12445&&e<=12447:e>=12449&&e<=12538||e>=12540&&e<=12543:e<12704?e>=12549&&e<=12589||e>=12593&&e<=12686:e>=12704&&e<=12730||e>=12784&&e<=12799:e<19968?e<12953?12951==e:12953==e||e>=13312&&e<=19893:e<42192?e>=19968&&e<=40917||e>=40960&&e<=42124:e>=42192&&e<=42237||e>=42240&&e<=42508:e<42891?e<42623?e<42560?e>=42512&&e<=42539:e>=42560&&e<=42610||e>=42612&&e<=42621:e<42775?e>=42623&&e<=42725||e>=42736&&e<=42737:e>=42775&&e<=42783||e>=42786&&e<=42888:e<43072?e<42928?e>=42891&&e<=42926:e>=42928&&e<=42935||e>=42999&&e<=43047:e<43216?e>=43072&&e<=43123||e>=43136&&e<=43205:e>=43216&&e<=43225||e>=43232&&e<=43255:e<55243?e<43744?e<43488?e<43312?e<43261?43259==e:43261==e||e>=43264&&e<=43309:e<43392?e>=43312&&e<=43347||e>=43360&&e<=43388:e>=43392&&e<=43456||e>=43471&&e<=43481:e<43600?e<43520?e>=43488&&e<=43518:e>=43520&&e<=43574||e>=43584&&e<=43597:e<43642?e>=43600&&e<=43609||e>=43616&&e<=43638:e>=43642&&e<=43714||e>=43739&&e<=43741:e<43824?e<43785?e<43762?e>=43744&&e<=43759:e>=43762&&e<=43766||e>=43777&&e<=43782:e<43808?e>=43785&&e<=43790||e>=43793&&e<=43798:e>=43808&&e<=43814||e>=43816&&e<=43822:e<44012?e<43868?e>=43824&&e<=43866:e>=43868&&e<=43877||e>=43888&&e<=44010:e<44032?e>=44012&&e<=44013||e>=44016&&e<=44025:e>=44032&&e<=55203||e>=55216&&e<=55238:e<64848?e<64298?e<64112?e<55296?e>=55243&&e<=55291:e>=55296&&e<=57343||e>=63744&&e<=64109:e<64275?e>=64112&&e<=64217||e>=64256&&e<=64262:e>=64275&&e<=64279||e>=64285&&e<=64296:e<64320?e<64312?e>=64298&&e<=64310:e>=64312&&e<=64316||64318==e:e<64326?e>=64320&&e<=64321||e>=64323&&e<=64324:e>=64326&&e<=64433||e>=64467&&e<=64829:e<65296?e<65024?e<64914?e>=64848&&e<=64911:e>=64914&&e<=64967||e>=65008&&e<=65019:e<65136?e>=65024&&e<=65039||e>=65056&&e<=65071:e>=65136&&e<=65140||e>=65142&&e<=65276:e<65474?e<65345?e>=65296&&e<=65305||e>=65313&&e<=65338:e>=65345&&e<=65370||e>=65382&&e<=65470:e<65490?e>=65474&&e<=65479||e>=65482&&e<=65487:e>=65490&&e<=65495||e>=65498&&e<=65500}function Ap(e){return e<58?e<44?33==e:44==e||46==e:e<63?e>=58&&e<=59:63==e||94==e}function Dp(e){return e<91?40==e:91==e||123==e}function Vp(e){return e<93?41==e:93==e||125==e}var Rp=/^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/,jp=/https?:\/\//i,Op=new RegExp("^"+jp.source,"i"),Np=/^(javascript|vbscript):/i,zp=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,$p=/^(?:\/\/)?([^/#?:]+)/,Up=Lp;function Bp(e){return Lp(e)||Ip(e)||43===e||45===e||46===e}var Fp=Mp;function Hp(e){return 95===e||Fp(e)}function qp(e){return Mp(e)||((t=e)<91?t<47?t>=35&&t<=43||45==t:t<61?47==t:61==t||64==t:t<95?91==t||93==t:t<123?95==t:t>=123&&t<=126||10003==t)||Ap(e);var t}function Kp(e){return 47===e||63===e||35===e}function Jp(e){return Rp.test(e.toLowerCase())}var Yp=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Gp=/[:/?#]/;var Wp=/^(https?:\/\/)?(?:www\.)?/i,Zp=/^\/\//,Xp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=t.urlMatchType,i.url=t.url,i.protocolRelativeMatch=t.protocolRelativeMatch,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return dc(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||"scheme"===this.urlMatchType||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(Zp,"")),this.stripPrefix.scheme&&(e=function(e){return e.replace(Op,"")}(e)),this.stripPrefix.www&&(e=function(e){return e.includes("www.")?e.replace(Wp,"$1"):e}(e)),this.stripTrailingSlash&&(e=function(e){"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1));return e}(e)),this.decodePercentEncoding&&(e=function(e){var t=e.replace(/%(?:22|26|27|3C|3E)/gi,(function(e){return"%22"===e?"&quot;":"%26"===e?"&amp;":"%27"===e?"&#39;":"%3C"===e||"%3c"===e?"&lt;":"&gt;"}));if(t.includes("%"))try{return decodeURIComponent(t)}catch(e){}return t}(e)),e},t}(Pp);var Qp=/^mailto:/i,eh=Mp;function th(e){return eh(e)||((t=e)<47?t<42?33==t||t>=35&&t<=39:t>=42&&t<=43||45==t:t<63?47==t||61==t:t<94?63==t:t>=94&&t<=96||t>=123&&t<=126);var t}var ih=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return dc(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Pp);function rh(e){return 95===e||Mp(e)}var nh=["twitter","facebook","instagram","tiktok","youtube"],oh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=t.serviceName,i.hashtag=t.hashtag,i}return dc(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;case"youtube":return"https://youtube.com/hashtag/"+t;default:wp(e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(Pp),ah={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/,youtube:/^@[-.·\w]{3,30}$/};function sh(e){return 45===e||46===e||95===e||Lp(e)||Ip(e)}var ch=["twitter","instagram","soundcloud","tiktok","youtube"],lh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=t.mention,i.serviceName=t.serviceName,i}return dc(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;case"youtube":return"https://youtube.com/@"+this.mention;default:wp(this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(Pp),uh=/[-. ()]/,dh=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function ph(e){return 45===e||46===e||32===e}function hh(e){return 44===e||59===e}var fh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=t.number,i.plusSign=t.plusSign,i}return dc(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Pp),gh=function(){function e(e,t){this.charIdx=0,this.matches=[],this._stateMachines=[],this.schemeUrlMachinesCount=0,this.text=e,this.tagBuilder=t.tagBuilder,this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash,this.decodePercentEncoding=t.decodePercentEncoding,this.hashtagServiceName=t.hashtagServiceName,this.mentionServiceName=t.mentionServiceName}return Object.defineProperty(e.prototype,"stateMachines",{get:function(){return this._stateMachines},enumerable:!1,configurable:!0}),e.prototype.addMachine=function(e){this._stateMachines.push(e),pf(e)&&this.schemeUrlMachinesCount++},e.prototype.removeMachine=function(e){this._stateMachines=this._stateMachines.filter((function(t){return t!==e})),pf(e)&&this.schemeUrlMachinesCount--},e.prototype.hasSchemeUrlMachine=function(){return this.schemeUrlMachinesCount>0},e}();function bh(e,t,i){var r=e.charIdx;if(35===i)e.addMachine({type:2,startIdx:r,state:28,acceptStateReached:!1});else if(64===i)e.addMachine(function(e,t){return{type:3,startIdx:e,state:t,acceptStateReached:!1}}(r,30));else if(47===i)e.addMachine(uf(r,11));else if(43===i)e.addMachine(df(r,37));else if(40===i)e.addMachine(df(r,32));else{if(Ip(i)&&(e.addMachine(df(r,38)),e.addMachine(function(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:2,octetsEncountered:1}}(r,13))),eh(i)){var n="m"===t.toLowerCase()?15:22;e.addMachine(function(e,t){return{type:1,startIdx:e,state:t,acceptStateReached:!1}}(r,n))}Up(i)&&e.addMachine(lf(r,0)),Mp(i)&&e.addMachine(uf(r,5))}}function mh(e,t,i){58===i?t.state=2:45===i?t.state=1:Bp(i)||e.removeMachine(t)}function vh(e,t,i){var r=e.charIdx;45===i||(47===i?(e.removeMachine(t),e.addMachine(uf(r,11))):Bp(i)?t.state=0:e.removeMachine(t))}function yh(e,t,i){var r=e.charIdx;47===i?t.state=3:46===i?e.removeMachine(t):Fp(i)?(t.state=5,Up(i)&&e.addMachine(lf(r,0))):e.removeMachine(t)}function wh(e,t,i){47===i?t.state=4:qp(i)?(t.state=10,t.acceptStateReached=!0):af(e,t)}function xh(e,t,i,r){47===r?(t.state=10,t.acceptStateReached=!0):Fp(r)?(t.state=5,t.acceptStateReached=!0):e.removeMachine(t)}function kh(e,t,i){47===i?t.state=12:e.removeMachine(t)}function _h(e,t,i){Fp(i)?t.state=5:e.removeMachine(t)}function Sh(e,t,i){46===i?t.state=7:45===i?t.state=6:58===i?t.state=8:Kp(i)?t.state=10:Hp(i)||af(e,t)}function Ch(e,t,i,r){45===r||(46===r?af(e,t):Fp(r)?t.state=5:af(e,t))}function Ph(e,t,i,r){46===r?af(e,t):Fp(r)?(t.state=5,t.acceptStateReached=!0):af(e,t)}function Lh(e,t,i){46===i?t.state=14:58===i?t.state=8:Ip(i)||(Kp(i)?t.state=10:Mp(i)?e.removeMachine(t):af(e,t))}function Ih(e,t,i){Ip(i)?(t.octetsEncountered++,4===t.octetsEncountered&&(t.acceptStateReached=!0),t.state=13):af(e,t)}function Th(e,t,i){Ip(i)?t.state=9:af(e,t)}function Eh(e,t,i){Ip(i)||(Kp(i)?t.state=10:af(e,t))}function Mh(e,t,i){qp(i)||af(e,t)}function Ah(e,t,i,r){"a"===i.toLowerCase()?t.state=16:zh(e,t,r)}function Dh(e,t,i,r){"i"===i.toLowerCase()?t.state=17:zh(e,t,r)}function Vh(e,t,i,r){"l"===i.toLowerCase()?t.state=18:zh(e,t,r)}function Rh(e,t,i,r){"t"===i.toLowerCase()?t.state=19:zh(e,t,r)}function jh(e,t,i,r){"o"===i.toLowerCase()?t.state=20:zh(e,t,r)}function Oh(e,t,i){58===i?t.state=21:zh(e,t,i)}function Nh(e,t,i){th(i)?t.state=22:e.removeMachine(t)}function zh(e,t,i){46===i?t.state=23:64===i?t.state=24:th(i)?t.state=22:e.removeMachine(t)}function $h(e,t,i){46===i||64===i?e.removeMachine(t):th(i)?t.state=22:e.removeMachine(t)}function Uh(e,t,i){Fp(i)?t.state=25:e.removeMachine(t)}function Bh(e,t,i){46===i?t.state=27:45===i?t.state=26:Hp(i)||af(e,t)}function Fh(e,t,i){45===i||46===i?af(e,t):Hp(i)?t.state=25:af(e,t)}function Hh(e,t,i){46===i||45===i?af(e,t):Fp(i)?(t.state=25,t.acceptStateReached=!0):af(e,t)}function qh(e,t,i){rh(i)?(t.state=29,t.acceptStateReached=!0):e.removeMachine(t)}function Kh(e,t,i){rh(i)||af(e,t)}function Jh(e,t,i){sh(i)?(t.state=31,t.acceptStateReached=!0):e.removeMachine(t)}function Yh(e,t,i){sh(i)||(Mp(i)?e.removeMachine(t):af(e,t))}function Gh(e,t,i,r){Ip(r)?t.state=38:(e.removeMachine(t),bh(e,i,r))}function Wh(e,t,i,r){Ip(r)?t.state=33:e.removeMachine(t),bh(e,i,r)}function Zh(e,t,i){Ip(i)?t.state=34:e.removeMachine(t)}function Xh(e,t,i){Ip(i)?t.state=35:e.removeMachine(t)}function Qh(e,t,i){41===i?t.state=36:e.removeMachine(t)}function ef(e,t,i,r){Ip(r)?t.state=38:ph(r)?t.state=39:e.removeMachine(t)}function tf(e,t,i,r){var n=e.charIdx;t.acceptStateReached=!0,hh(r)?t.state=40:35===r?t.state=41:Ip(r)||(40===r?t.state=32:ph(r)?t.state=39:(af(e,t),Up(r)&&e.addMachine(lf(n,0))))}function rf(e,t,i,r){Ip(r)?t.state=38:40===r?t.state=32:(af(e,t),bh(e,i,r))}function nf(e,t,i){hh(i)||(35===i?t.state=41:Ip(i)?t.state=38:af(e,t))}function of(e,t,i){hh(i)?t.state=40:Ip(i)?e.removeMachine(t):af(e,t)}function af(e,t){var i=e.matches,r=e.text,n=e.charIdx,o=e.tagBuilder,a=e.stripPrefix,s=e.stripTrailingSlash,c=e.decodePercentEncoding,l=e.hashtagServiceName,u=e.mentionServiceName;if(e.removeMachine(t),t.acceptStateReached){var d,p,h=t.startIdx,f=r.slice(t.startIdx,n);switch(f=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);Dp(o=e.charCodeAt(i))?t[r]++:Vp(o)&&t[cf[r]]--}var n=e.length-1;for(;n>=0;){var o;r=e.charAt(n);if(Vp(o=e.charCodeAt(n))){var a=cf[r];if(!(t[a]<0))break;t[a]++,n--}else{if(!Ap(o))break;n--}}return e.slice(0,n+1)}(f),t.type){case 0:if(64===r.charCodeAt(t.startIdx-1))return;switch(t.matchType){case 0:var g=jp.exec(f);if(g&&(h+=g.index,f=f.slice(g.index)),!function(e){if(Np.test(e))return!1;var t=e.match(zp);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!/[A-Za-z]/.test(r))}(f))return;break;case 1:if(!function(e){var t=e.match($p);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!Jp(i[i.length-1]))}(f))return;break;case 2:if(!function(e){var t=e.split(Gp,1)[0];return Yp.test(t)}(f))return;break;default:wp(t)}i.push(new Xp({tagBuilder:o,matchedText:f,offset:h,urlMatchType:sf(t.matchType),url:f,protocolRelativeMatch:"//"===f.slice(0,2),stripPrefix:a,stripTrailingSlash:s,decodePercentEncoding:c}));break;case 1:Jp(f.split(".").pop())&&i.push(new ih({tagBuilder:o,matchedText:f,offset:h,email:f.replace(Qp,"")}));break;case 2:f.length<=140&&i.push(new oh({tagBuilder:o,matchedText:f,offset:h,serviceName:l,hashtag:f.slice(1)}));break;case 3:p=f,ah[u].test(p)&&i.push(new lh({tagBuilder:o,matchedText:f,offset:h,serviceName:u,mention:f.slice(1)}));break;case 4:if(f=f.replace(/ +$/g,""),("+"===(d=f).charAt(0)||uh.test(d))&&dh.test(d)){var b=f.replace(/[^0-9,;#]/g,"");i.push(new fh({tagBuilder:o,matchedText:f,offset:h,number:b,plusSign:"+"===f.charAt(0)}))}break;default:wp(t)}}}function sf(e){switch(e){case 0:return"scheme";case 1:return"tld";case 2:return"ipV4";default:wp(e)}}var cf={")":"(","}":"{","]":"["};function lf(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:0}}function uf(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:1}}function df(e,t){return{type:4,startIdx:e,state:t,acceptStateReached:!1}}function pf(e){return 0===e.type&&0===e.matchType}var hf=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},ff=new hf,gf=function(e,t){this.charIdx=0,this.state=0,this.currentDataIdx=0,this.currentTag=ff,this.html=e,this.callbacks=t};function bf(e,t){"<"===t&&Nf(e)}function mf(e,t,i){"!"===t?e.state=13:"/"===t?(e.state=2,e.currentTag=new hf(pc(pc({},e.currentTag),{isClosing:!0}))):"<"===t?Nf(e):Lp(i)?(e.state=3,e.currentTag=new hf(pc(pc({},e.currentTag),{isOpening:!0}))):(e.state=0,e.currentTag=ff)}function vf(e,t,i){Ep(i)?(e.currentTag=new hf(pc(pc({},e.currentTag),{name:$f(e)})),e.state=4):"<"===t?Nf(e):"/"===t?(e.currentTag=new hf(pc(pc({},e.currentTag),{name:$f(e)})),e.state=12):">"===t?(e.currentTag=new hf(pc(pc({},e.currentTag),{name:$f(e)})),zf(e)):Lp(i)||Ip(i)||":"===t||Of(e)}function yf(e,t,i){">"===t?Of(e):Lp(i)?e.state=3:Of(e)}function wf(e,t,i){var r;Ep(i)||("/"===t?e.state=12:">"===t?zf(e):"<"===t?Nf(e):"="===t||Tp(i)||((r=i)>=0&&r<=31||127==r)?Of(e):e.state=5)}function xf(e,t,i){Ep(i)?e.state=6:"/"===t?e.state=12:"="===t?e.state=7:">"===t?zf(e):"<"===t?Nf(e):Tp(i)&&Of(e)}function kf(e,t,i){Ep(i)||("/"===t?e.state=12:"="===t?e.state=7:">"===t?zf(e):"<"===t?Nf(e):Tp(i)?Of(e):e.state=5)}function _f(e,t,i){Ep(i)||('"'===t?e.state=8:"'"===t?e.state=9:/[>=`]/.test(t)?Of(e):"<"===t?Nf(e):e.state=10)}function Sf(e,t){'"'===t&&(e.state=11)}function Cf(e,t){"'"===t&&(e.state=11)}function Pf(e,t,i){Ep(i)?e.state=4:">"===t?zf(e):"<"===t&&Nf(e)}function Lf(e,t,i){Ep(i)?e.state=4:"/"===t?e.state=12:">"===t?zf(e):"<"===t?Nf(e):(e.state=4,function(e){e.charIdx--}(e))}function If(e,t){">"===t?(e.currentTag=new hf(pc(pc({},e.currentTag),{isClosing:!0})),zf(e)):Of(e)}function Tf(e){var t=e.html,i=e.charIdx;"--"===t.slice(i,i+2)?(e.charIdx++,e.currentTag=new hf(pc(pc({},e.currentTag),{type:"comment"})),e.state=14):"DOCTYPE"===t.slice(i,i+7).toUpperCase()?(e.charIdx+=6,e.currentTag=new hf(pc(pc({},e.currentTag),{type:"doctype"})),e.state=20):Of(e)}function Ef(e,t){"-"===t?e.state=15:">"===t?Of(e):e.state=16}function Mf(e,t){"-"===t?e.state=18:">"===t?Of(e):e.state=16}function Af(e,t){"-"===t&&(e.state=17)}function Df(e,t){e.state="-"===t?18:16}function Vf(e,t){">"===t?zf(e):"!"===t?e.state=19:"-"===t||(e.state=16)}function Rf(e,t){"-"===t?e.state=17:">"===t?zf(e):e.state=16}function jf(e,t){">"===t?zf(e):"<"===t&&Nf(e)}function Of(e){e.state=0,e.currentTag=ff}function Nf(e){e.state=1,e.currentTag=new hf({idx:e.charIdx})}function zf(e){var t=e.html.slice(e.currentDataIdx,e.currentTag.idx);t&&e.callbacks.onText(t,e.currentDataIdx);var i=e.currentTag;"comment"===i.type?e.callbacks.onComment(i.idx):"doctype"===i.type?e.callbacks.onDoctype(i.idx):(i.isOpening&&e.callbacks.onOpenTag(i.name,i.idx),i.isClosing&&e.callbacks.onCloseTag(i.name,i.idx)),Of(e),e.currentDataIdx=e.charIdx+1}function $f(e){var t=e.currentTag.idx+(e.currentTag.isClosing?2:1);return e.html.slice(t,e.charIdx).toLowerCase()}var Uf=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function(e){null==e&&(e=!0);return vp(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!vp(e.schemeMatches)||e.schemeMatches,tldMatches:!vp(e.tldMatches)||e.tldMatches,ipV4Matches:!vp(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=vp(t.email)?t.email:this.email,this.phone=vp(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=vp(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return vp(e)?{scheme:e,www:e}:{scheme:!vp(e.scheme)||e.scheme,www:!vp(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=vp(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=vp(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===ch.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===nh.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:pc({length:Number.POSITIVE_INFINITY,location:"end"},r),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,i){return new e(i).link(t)},e.parse=function(t,i){return new e(i).parse(t)},e.prototype.parse=function(e){var t=this,i=["a","style","script"],r=0,n=[];return function(e,t){for(var i=new gf(e,t),r=e.length;i.charIdx<r;){var n=e.charAt(i.charIdx),o=e.charCodeAt(i.charIdx);switch(i.state){case 0:bf(i,n);break;case 1:mf(i,n,o);break;case 2:yf(i,n,o);break;case 3:vf(i,n,o);break;case 4:wf(i,n,o);break;case 5:xf(i,n,o);break;case 6:kf(i,n,o);break;case 7:_f(i,n,o);break;case 8:Sf(i,n);break;case 9:Cf(i,n);break;case 10:Pf(i,n,o);break;case 11:Lf(i,n,o);break;case 12:If(i,n);break;case 13:Tf(i);break;case 14:Ef(i,n);break;case 15:Mf(i,n);break;case 16:Af(i,n);break;case 17:Df(i,n);break;case 18:Vf(i,n);break;case 19:Rf(i,n);break;case 20:jf(i,n);break;default:wp(i.state)}i.charIdx++}i.currentDataIdx<i.charIdx&&function(e){var t=e.html.slice(e.currentDataIdx,e.charIdx);e.callbacks.onText(t,e.currentDataIdx),e.currentDataIdx=e.charIdx+1}(i)}(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=i;o.forEach((function(e,i){if(i%2==0){var r=t.parseText(e,a);n.push.apply(n,function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}(r),!1))}a+=e.length}))}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(){},onDoctype:function(){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort(Bf);for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length;if(t+1<e.length&&e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>n?t:t+1;e.splice(o,1)}else t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||yp(e,(function(e){return"hashtag"===e.getType()})),this.email||yp(e,(function(e){return"email"===e.getType()})),this.phone||yp(e,(function(e){return"phone"===e.getType()})),this.mention||yp(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||yp(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.tldMatches||yp(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),this.urls.ipV4Matches||yp(e,(function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){t=t||0;for(var i=function(e,t){for(var i=new gh(e,t);i.charIdx<i.text.length;i.charIdx++){var r=e.charAt(i.charIdx),n=e.charCodeAt(i.charIdx);if(0===i.stateMachines.length)bh(i,r,n);else{for(var o=i.stateMachines.length-1;o>=0;o--){var a=i.stateMachines[o];switch(a.state){case 11:kh(i,a,n);break;case 12:_h(i,a,n);break;case 0:mh(i,a,n);break;case 1:vh(i,a,n);break;case 2:yh(i,a,n);break;case 3:wh(i,a,n);break;case 4:xh(i,a,0,n);break;case 5:Sh(i,a,n);break;case 6:Ch(i,a,0,n);break;case 7:Ph(i,a,0,n);break;case 13:Lh(i,a,n);break;case 14:Ih(i,a,n);break;case 8:Th(i,a,n);break;case 9:Eh(i,a,n);break;case 10:Mh(i,a,n);break;case 15:Ah(i,a,r,n);break;case 16:Dh(i,a,r,n);break;case 17:Vh(i,a,r,n);break;case 18:Rh(i,a,r,n);break;case 19:jh(i,a,r,n);break;case 20:Oh(i,a,n);break;case 21:Nh(i,a,n);break;case 22:zh(i,a,n);break;case 23:$h(i,a,n);break;case 24:Uh(i,a,n);break;case 25:Bh(i,a,n);break;case 26:Fh(i,a,n);break;case 27:Hh(i,a,n);break;case 28:qh(i,a,n);break;case 29:Kh(i,a,n);break;case 30:Jh(i,a,n);break;case 31:Yh(i,a,n);break;case 32:Wh(i,a,r,n);break;case 33:Zh(i,a,n);break;case 34:Xh(i,a,n);break;case 35:Qh(i,a,n);break;case 36:ef(i,a,0,n);break;case 37:Gh(i,a,r,n);break;case 38:tf(i,a,0,n);break;case 39:rf(i,a,r,n);break;case 40:nf(i,a,n);break;case 41:of(i,a,n);break;default:wp(a.state)}}if(!i.hasSchemeUrlMachine()&&i.charIdx>0&&Up(n)){var s=i.text.charCodeAt(i.charIdx-1);Up(s)||i.addMachine(lf(i.charIdx,0))}}}for(var c=i.stateMachines.length-1;c>=0;c--)i.stateMachines.forEach((function(e){return af(i,e)}));return i.matches}(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,n=i.length;r<n;r++)i[r].setOffset(t+i[r].getOffset());return i},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),i=new Array(2*t.length+1),r=0,n=0,o=t.length;n<o;n++){var a=t[n];i.push(e.substring(r,a.getOffset())),i.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return i.push(e.substring(r)),i.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof kp?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new Cp({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.1.5",e}();function Bf(e,t){return e.getOffset()-t.getOffset()}function Ff(e){return Uf.link(e,{stripPrefix:!1,email:!1,phone:!1})}window.customElements.define("buv-full-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,displayHTML:String,isVerifiablePresentation:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,displayHTML:i,isVerifiablePresentation:r}){return t?de`
490
- ${op}
491
- ${function(e,t,i){const r=["buv-c-full-certificate","qa-fullscreen-certificate"];vc.certificates.displayHtmlHasNoWidthConstraint(e)&&r.push("buv-c-certificate--fixed-width");const n=t?Ff(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`<section class$=${r.join(" ")}>${np(n)}</section>`}(i,e,r)}
489
+ `}),{mapStateToProps:e=>({verifiableCredentials:JSON.stringify(Zl(e))})});window.customElements.define("buv-verifiable-presentation",mp);var vp=Object.prototype.hasOwnProperty;function yp(e){return"boolean"==typeof e}function wp(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function xp(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var kp=/\s+/,_p=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,i=this.getClass(),r=i?i.split(kp):[],n=e.split(kp);t=n.shift();)-1===r.indexOf(t)&&r.push(t);return this.getAttrs().class=r.join(" "),this},e.prototype.removeClass=function(e){for(var t,i=this.getClass(),r=i?i.split(kp):[],n=e.split(kp);r.length&&(t=n.shift());){var o=r.indexOf(t);-1!==o&&r.splice(o,1)}return this.getAttrs().class=r.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){var e=this.getAttrs(),t=[];for(var i in e)vp.call(e,i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();function Sp(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t}function Cp(e,t,i){var r=t/2,n=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=e.substr(o)),e.substr(0,n)+i+a}var Pp=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new _p({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(t.class=i),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var i=[t],r=e.getCssClassSuffixes(),n=0,o=r.length;n<o;n++)i.push(t+"-"+r[n]);return i.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;if(null==i?(i="&hellip;",n=3,r=8):(n=i.length,r=i.length),e.length<=t)return e;var o=t-n,a=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.slice(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.slice(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.slice(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.slice(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(a.query){var s=a.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);s&&(a.query=a.query.substr(0,s[1].length),e=Sp(a))}if(e.length<=t)return e;if(a.host&&(a.host=a.host.replace(/^www\./,""),e=Sp(a)),e.length<=t)return e;var c="";if(a.host&&(c+=a.host),c.length>=o)return a.host.length===t?(a.host.substr(0,t-n)+i).substr(0,o+r):Cp(c,o,i).substr(0,o+r);var l="";if(a.path&&(l+="/"+a.path),a.query&&(l+="?"+a.query),l){if((c+l).length>=o)return(c+l).length==t?(c+l).substr(0,t):(c+Cp(l,o-c.length,i)).substr(0,o+r);c+=l}if(a.fragment){var u="#"+a.fragment;if((c+u).length>=o)return(c+u).length==t?(c+u).substr(0,t):(c+Cp(u,o-c.length,i)).substr(0,o+r);c+=u}if(a.scheme&&a.host){var d=a.scheme+"://";if((c+d).length<o)return(d+c).substr(0,t)}if(c.length<=t)return c;var p="";return o>0&&(p=c.substr(-1*Math.floor(o/2))),(c.substr(0,Math.ceil(o/2))+i+p).substr(0,o+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="&hellip;",r=8,n=3):(r=i.length,n=i.length);var o=t-n,a="";return o>0&&(a=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+i+a).substr(0,o+r)}(e,i):function(e,t,i){return function(e,t,i){var r;return e.length>t&&(null==i?(i="&hellip;",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),Lp=function(){function e(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.type]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}();function Ip(e){return e>=65&&e<=90||e>=97&&e<=122}function Tp(e){return e>=48&&e<=57}function Ep(e){return 34==e||39==e}function Mp(e){return e<8232?e<160?e>=9&&e<=13||32==e:e<5760?160==e:5760==e||e>=8192&&e<=8202:e<8287?e>=8232&&e<=8233||8239==e:e<12288?8287==e:12288==e||65279==e}function Ap(e){return e<4800?e<2949?e<2451?e<1425?e<768?e<192?e<169?e<65?e>=48&&e<=57:e>=65&&e<=90||e>=97&&e<=122:e<181?e>=169&&e<=170||174==e:181==e||186==e:e<710?e<216?e>=192&&e<=214:e>=216&&e<=246||e>=248&&e<=705:e<748?e>=710&&e<=721||e>=736&&e<=740:748==e||750==e:e<910?e<895?e<886?e>=768&&e<=884:e>=886&&e<=887||e>=890&&e<=893:e<904?895==e||902==e:e>=904&&e<=906||908==e:e<1155?e<931?e>=910&&e<=929:e>=931&&e<=1013||e>=1015&&e<=1153:e<1369?e>=1155&&e<=1327||e>=1329&&e<=1366:1369==e||e>=1377&&e<=1415:e<1808?e<1552?e<1476?e<1471?e>=1425&&e<=1469:1471==e||e>=1473&&e<=1474:e<1488?e>=1476&&e<=1477||1479==e:e>=1488&&e<=1514||e>=1520&&e<=1522:e<1749?e<1568?e>=1552&&e<=1562:e>=1568&&e<=1641||e>=1646&&e<=1747:e<1770?e>=1749&&e<=1756||e>=1759&&e<=1768:e>=1770&&e<=1788||1791==e:e<2230?e<2042?e<1869?e>=1808&&e<=1866:e>=1869&&e<=1969||e>=1984&&e<=2037:e<2112?2042==e||e>=2048&&e<=2093:e>=2112&&e<=2139||e>=2208&&e<=2228:e<2406?e<2260?e>=2230&&e<=2237:e>=2260&&e<=2273||e>=2275&&e<=2403:e<2437?e>=2406&&e<=2415||e>=2417&&e<=2435:e>=2437&&e<=2444||e>=2447&&e<=2448:e<2693?e<2579?e<2519?e<2486?e<2474?e>=2451&&e<=2472:e>=2474&&e<=2480||2482==e:e<2503?e>=2486&&e<=2489||e>=2492&&e<=2500:e>=2503&&e<=2504||e>=2507&&e<=2510:e<2534?e<2524?2519==e:e>=2524&&e<=2525||e>=2527&&e<=2531:e<2565?e>=2534&&e<=2545||e>=2561&&e<=2563:e>=2565&&e<=2570||e>=2575&&e<=2576:e<2631?e<2613?e<2602?e>=2579&&e<=2600:e>=2602&&e<=2608||e>=2610&&e<=2611:e<2620?e>=2613&&e<=2614||e>=2616&&e<=2617:2620==e||e>=2622&&e<=2626:e<2649?e<2635?e>=2631&&e<=2632:e>=2635&&e<=2637||2641==e:e<2662?e>=2649&&e<=2652||2654==e:e>=2662&&e<=2677||e>=2689&&e<=2691:e<2821?e<2759?e<2730?e<2703?e>=2693&&e<=2701:e>=2703&&e<=2705||e>=2707&&e<=2728:e<2741?e>=2730&&e<=2736||e>=2738&&e<=2739:e>=2741&&e<=2745||e>=2748&&e<=2757:e<2784?e<2763?e>=2759&&e<=2761:e>=2763&&e<=2765||2768==e:e<2809?e>=2784&&e<=2787||e>=2790&&e<=2799:2809==e||e>=2817&&e<=2819:e<2887?e<2858?e<2831?e>=2821&&e<=2828:e>=2831&&e<=2832||e>=2835&&e<=2856:e<2869?e>=2858&&e<=2864||e>=2866&&e<=2867:e>=2869&&e<=2873||e>=2876&&e<=2884:e<2911?e<2902?e>=2887&&e<=2888||e>=2891&&e<=2893:e>=2902&&e<=2903||e>=2908&&e<=2909:e<2929?e>=2911&&e<=2915||e>=2918&&e<=2927:2929==e||e>=2946&&e<=2947:e<3517?e<3205?e<3046?e<2984?e<2969?e<2958?e>=2949&&e<=2954:e>=2958&&e<=2960||e>=2962&&e<=2965:e<2974?e>=2969&&e<=2970||2972==e:e>=2974&&e<=2975||e>=2979&&e<=2980:e<3014?e<2990?e>=2984&&e<=2986:e>=2990&&e<=3001||e>=3006&&e<=3010:e<3024?e>=3014&&e<=3016||e>=3018&&e<=3021:3024==e||3031==e:e<3142?e<3086?e<3072?e>=3046&&e<=3055:e>=3072&&e<=3075||e>=3077&&e<=3084:e<3114?e>=3086&&e<=3088||e>=3090&&e<=3112:e>=3114&&e<=3129||e>=3133&&e<=3140:e<3160?e<3146?e>=3142&&e<=3144:e>=3146&&e<=3149||e>=3157&&e<=3158:e<3174?e>=3160&&e<=3162||e>=3168&&e<=3171:e>=3174&&e<=3183||e>=3200&&e<=3203:e<3333?e<3274?e<3242?e<3214?e>=3205&&e<=3212:e>=3214&&e<=3216||e>=3218&&e<=3240:e<3260?e>=3242&&e<=3251||e>=3253&&e<=3257:e>=3260&&e<=3268||e>=3270&&e<=3272:e<3296?e<3285?e>=3274&&e<=3277:e>=3285&&e<=3286||3294==e:e<3313?e>=3296&&e<=3299||e>=3302&&e<=3311:e>=3313&&e<=3314||e>=3329&&e<=3331:e<3423?e<3389?e<3342?e>=3333&&e<=3340:e>=3342&&e<=3344||e>=3346&&e<=3386:e<3402?e>=3389&&e<=3396||e>=3398&&e<=3400:e>=3402&&e<=3406||e>=3412&&e<=3415:e<3458?e<3430?e>=3423&&e<=3427:e>=3430&&e<=3439||e>=3450&&e<=3455:e<3482?e>=3458&&e<=3459||e>=3461&&e<=3478:e>=3482&&e<=3505||e>=3507&&e<=3515:e<3804?e<3722?e<3570?e<3535?e<3520?3517==e:e>=3520&&e<=3526||3530==e:e<3544?e>=3535&&e<=3540||3542==e:e>=3544&&e<=3551||e>=3558&&e<=3567:e<3664?e<3585?e>=3570&&e<=3571:e>=3585&&e<=3642||e>=3648&&e<=3662:e<3716?e>=3664&&e<=3673||e>=3713&&e<=3714:3716==e||e>=3719&&e<=3720:e<3754?e<3737?e<3725?3722==e:3725==e||e>=3732&&e<=3735:e<3749?e>=3737&&e<=3743||e>=3745&&e<=3747:3749==e||3751==e:e<3776?e<3757?e>=3754&&e<=3755:e>=3757&&e<=3769||e>=3771&&e<=3773:e<3784?e>=3776&&e<=3780||3782==e:e>=3784&&e<=3789||e>=3792&&e<=3801:e<4176?e<3902?e<3872?e<3840?e>=3804&&e<=3807:3840==e||e>=3864&&e<=3865:e<3895?e>=3872&&e<=3881||3893==e:3895==e||3897==e:e<3974?e<3913?e>=3902&&e<=3911:e>=3913&&e<=3948||e>=3953&&e<=3972:e<4038?e>=3974&&e<=3991||e>=3993&&e<=4028:4038==e||e>=4096&&e<=4169:e<4688?e<4301?e<4256?e>=4176&&e<=4253:e>=4256&&e<=4293||4295==e:e<4348?4301==e||e>=4304&&e<=4346:e>=4348&&e<=4680||e>=4682&&e<=4685:e<4746?e<4698?e>=4688&&e<=4694||4696==e:e>=4698&&e<=4701||e>=4704&&e<=4744:e<4786?e>=4746&&e<=4749||e>=4752&&e<=4784:e>=4786&&e<=4789||e>=4792&&e<=4798:e<11035?e<7416?e<6176?e<5873?e<4992?e<4824?e<4802?4800==e:e>=4802&&e<=4805||e>=4808&&e<=4822:e<4888?e>=4824&&e<=4880||e>=4882&&e<=4885:e>=4888&&e<=4954||e>=4957&&e<=4959:e<5121?e<5024?e>=4992&&e<=5007:e>=5024&&e<=5109||e>=5112&&e<=5117:e<5761?e>=5121&&e<=5740||e>=5743&&e<=5759:e>=5761&&e<=5786||e>=5792&&e<=5866:e<6002?e<5920?e<5888?e>=5873&&e<=5880:e>=5888&&e<=5900||e>=5902&&e<=5908:e<5984?e>=5920&&e<=5940||e>=5952&&e<=5971:e>=5984&&e<=5996||e>=5998&&e<=6e3:e<6108?e<6016?e>=6002&&e<=6003:e>=6016&&e<=6099||6103==e:e<6155?e>=6108&&e<=6109||e>=6112&&e<=6121:e>=6155&&e<=6157||e>=6160&&e<=6169:e<6783?e<6512?e<6400?e<6272?e>=6176&&e<=6263:e>=6272&&e<=6314||e>=6320&&e<=6389:e<6448?e>=6400&&e<=6430||e>=6432&&e<=6443:e>=6448&&e<=6459||e>=6470&&e<=6509:e<6608?e<6528?e>=6512&&e<=6516:e>=6528&&e<=6571||e>=6576&&e<=6601:e<6688?e>=6608&&e<=6617||e>=6656&&e<=6683:e>=6688&&e<=6750||e>=6752&&e<=6780:e<7040?e<6832?e<6800?e>=6783&&e<=6793:e>=6800&&e<=6809||6823==e:e<6992?e>=6832&&e<=6846||e>=6912&&e<=6987:e>=6992&&e<=7001||e>=7019&&e<=7027:e<7245?e<7168?e>=7040&&e<=7155:e>=7168&&e<=7223||e>=7232&&e<=7241:e<7376?e>=7245&&e<=7293||e>=7296&&e<=7304:e>=7376&&e<=7378||e>=7380&&e<=7414:e<8450?e<8130?e<8025?e<7960?e<7424?e>=7416&&e<=7417:e>=7424&&e<=7669||e>=7675&&e<=7957:e<8008?e>=7960&&e<=7965||e>=7968&&e<=8005:e>=8008&&e<=8013||e>=8016&&e<=8023:e<8031?e<8027?8025==e:8027==e||8029==e:e<8118?e>=8031&&e<=8061||e>=8064&&e<=8116:e>=8118&&e<=8124||8126==e:e<8205?e<8150?e<8134?e>=8130&&e<=8132:e>=8134&&e<=8140||e>=8144&&e<=8147:e<8178?e>=8150&&e<=8155||e>=8160&&e<=8172:e>=8178&&e<=8180||e>=8182&&e<=8188:e<8305?e<8252?8205==e:8252==e||8265==e:e<8336?8305==e||8319==e:e>=8336&&e<=8348||e>=8400&&e<=8432:e<8579?e<8486?e<8469?e<8455?8450==e:8455==e||e>=8458&&e<=8467:e<8482?8469==e||e>=8473&&e<=8477:8482==e||8484==e:e<8495?e<8488?8486==e:8488==e||e>=8490&&e<=8493:e<8517?e>=8495&&e<=8505||e>=8508&&e<=8511:e>=8517&&e<=8521||8526==e:e<9410?e<9e3?e<8592?e>=8579&&e<=8580:e>=8592&&e<=8703||e>=8986&&e<=8987:e<9193?9e3==e||9167==e:e>=9193&&e<=9203||e>=9208&&e<=9210:e<9723?e<9654?9410==e||e>=9642&&e<=9643:9654==e||9664==e:e<10548?e>=9723&&e<=9726||e>=9728&&e<=10175:e>=10548&&e<=10549||e>=11013&&e<=11015:e<43259?e<12445?e<11688?e<11520?e<11264?e<11088?e>=11035&&e<=11036:11088==e||11093==e:e<11360?e>=11264&&e<=11310||e>=11312&&e<=11358:e>=11360&&e<=11492||e>=11499&&e<=11507:e<11568?e<11559?e>=11520&&e<=11557:11559==e||11565==e:e<11647?e>=11568&&e<=11623||11631==e:e>=11647&&e<=11670||e>=11680&&e<=11686:e<11744?e<11712?e<11696?e>=11688&&e<=11694:e>=11696&&e<=11702||e>=11704&&e<=11710:e<11728?e>=11712&&e<=11718||e>=11720&&e<=11726:e>=11728&&e<=11734||e>=11736&&e<=11742:e<12330?e<11823?e>=11744&&e<=11775:11823==e||e>=12293&&e<=12294:e<12353?e>=12330&&e<=12341||e>=12347&&e<=12349:e>=12353&&e<=12438||e>=12441&&e<=12442:e<42512?e<12951?e<12549?e<12449?e>=12445&&e<=12447:e>=12449&&e<=12538||e>=12540&&e<=12543:e<12704?e>=12549&&e<=12589||e>=12593&&e<=12686:e>=12704&&e<=12730||e>=12784&&e<=12799:e<19968?e<12953?12951==e:12953==e||e>=13312&&e<=19893:e<42192?e>=19968&&e<=40917||e>=40960&&e<=42124:e>=42192&&e<=42237||e>=42240&&e<=42508:e<42891?e<42623?e<42560?e>=42512&&e<=42539:e>=42560&&e<=42610||e>=42612&&e<=42621:e<42775?e>=42623&&e<=42725||e>=42736&&e<=42737:e>=42775&&e<=42783||e>=42786&&e<=42888:e<43072?e<42928?e>=42891&&e<=42926:e>=42928&&e<=42935||e>=42999&&e<=43047:e<43216?e>=43072&&e<=43123||e>=43136&&e<=43205:e>=43216&&e<=43225||e>=43232&&e<=43255:e<55243?e<43744?e<43488?e<43312?e<43261?43259==e:43261==e||e>=43264&&e<=43309:e<43392?e>=43312&&e<=43347||e>=43360&&e<=43388:e>=43392&&e<=43456||e>=43471&&e<=43481:e<43600?e<43520?e>=43488&&e<=43518:e>=43520&&e<=43574||e>=43584&&e<=43597:e<43642?e>=43600&&e<=43609||e>=43616&&e<=43638:e>=43642&&e<=43714||e>=43739&&e<=43741:e<43824?e<43785?e<43762?e>=43744&&e<=43759:e>=43762&&e<=43766||e>=43777&&e<=43782:e<43808?e>=43785&&e<=43790||e>=43793&&e<=43798:e>=43808&&e<=43814||e>=43816&&e<=43822:e<44012?e<43868?e>=43824&&e<=43866:e>=43868&&e<=43877||e>=43888&&e<=44010:e<44032?e>=44012&&e<=44013||e>=44016&&e<=44025:e>=44032&&e<=55203||e>=55216&&e<=55238:e<64848?e<64298?e<64112?e<55296?e>=55243&&e<=55291:e>=55296&&e<=57343||e>=63744&&e<=64109:e<64275?e>=64112&&e<=64217||e>=64256&&e<=64262:e>=64275&&e<=64279||e>=64285&&e<=64296:e<64320?e<64312?e>=64298&&e<=64310:e>=64312&&e<=64316||64318==e:e<64326?e>=64320&&e<=64321||e>=64323&&e<=64324:e>=64326&&e<=64433||e>=64467&&e<=64829:e<65296?e<65024?e<64914?e>=64848&&e<=64911:e>=64914&&e<=64967||e>=65008&&e<=65019:e<65136?e>=65024&&e<=65039||e>=65056&&e<=65071:e>=65136&&e<=65140||e>=65142&&e<=65276:e<65474?e<65345?e>=65296&&e<=65305||e>=65313&&e<=65338:e>=65345&&e<=65370||e>=65382&&e<=65470:e<65490?e>=65474&&e<=65479||e>=65482&&e<=65487:e>=65490&&e<=65495||e>=65498&&e<=65500}function Dp(e){return e<58?e<44?33==e:44==e||46==e:e<63?e>=58&&e<=59:63==e||94==e}function Vp(e){return e<91?40==e:91==e||123==e}function Rp(e){return e<93?41==e:93==e||125==e}var Op=/^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|loans|locus|lotte|lotto|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|scb|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/,jp=/https?:\/\//i,Np=new RegExp("^"+jp.source,"i"),zp=/^(javascript|vbscript):/i,$p=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,Up=/^(?:\/\/)?([^/#?:]+)/,Bp=Ip;function Fp(e){return Ip(e)||Tp(e)||43===e||45===e||46===e}var Hp=Ap;function qp(e){return 95===e||Hp(e)}function Kp(e){return Ap(e)||((t=e)<91?t<47?t>=35&&t<=43||45==t:t<61?47==t:61==t||64==t:t<95?91==t||93==t:t<123?95==t:t>=123&&t<=126||10003==t)||Dp(e);var t}function Jp(e){return 47===e||63===e||35===e}function Yp(e){return Op.test(e.toLowerCase())}var Gp=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Wp=/[:/?#]/;var Zp=/^(https?:\/\/)?(?:www\.)?/i,Xp=/^\/\//,Qp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=t.urlMatchType,i.url=t.url,i.protocolRelativeMatch=t.protocolRelativeMatch,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return pc(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||"scheme"===this.urlMatchType||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(Xp,"")),this.stripPrefix.scheme&&(e=function(e){return e.replace(Np,"")}(e)),this.stripPrefix.www&&(e=function(e){return e.includes("www.")?e.replace(Zp,"$1"):e}(e)),this.stripTrailingSlash&&(e=function(e){"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1));return e}(e)),this.decodePercentEncoding&&(e=function(e){var t=e.replace(/%(?:22|26|27|3C|3E)/gi,(function(e){return"%22"===e?"&quot;":"%26"===e?"&amp;":"%27"===e?"&#39;":"%3C"===e||"%3c"===e?"&lt;":"&gt;"}));if(t.includes("%"))try{return decodeURIComponent(t)}catch(e){}return t}(e)),e},t}(Lp);var eh=/^mailto:/i,th=Ap;function ih(e){return th(e)||((t=e)<47?t<42?33==t||t>=35&&t<=39:t>=42&&t<=43||45==t:t<63?47==t||61==t:t<94?63==t:t>=94&&t<=96||t>=123&&t<=126);var t}var rh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return pc(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Lp);function nh(e){return 95===e||Ap(e)}var oh=["twitter","facebook","instagram","tiktok","youtube"],ah=function(e){function t(t){var i=e.call(this,t)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=t.serviceName,i.hashtag=t.hashtag,i}return pc(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;case"youtube":return"https://youtube.com/hashtag/"+t;default:xp(e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(Lp),sh={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/,youtube:/^@[-.·\w]{3,30}$/};function ch(e){return 45===e||46===e||95===e||Ip(e)||Tp(e)}var lh=["twitter","instagram","soundcloud","tiktok","youtube"],uh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=t.mention,i.serviceName=t.serviceName,i}return pc(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;case"youtube":return"https://youtube.com/@"+this.mention;default:xp(this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(Lp),dh=/[-. ()]/,ph=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function hh(e){return 45===e||46===e||32===e}function fh(e){return 44===e||59===e}var gh=function(e){function t(t){var i=e.call(this,t)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=t.number,i.plusSign=t.plusSign,i}return pc(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Lp),bh=function(){function e(e,t){this.charIdx=0,this.matches=[],this._stateMachines=[],this.schemeUrlMachinesCount=0,this.text=e,this.tagBuilder=t.tagBuilder,this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash,this.decodePercentEncoding=t.decodePercentEncoding,this.hashtagServiceName=t.hashtagServiceName,this.mentionServiceName=t.mentionServiceName}return Object.defineProperty(e.prototype,"stateMachines",{get:function(){return this._stateMachines},enumerable:!1,configurable:!0}),e.prototype.addMachine=function(e){this._stateMachines.push(e),hf(e)&&this.schemeUrlMachinesCount++},e.prototype.removeMachine=function(e){this._stateMachines=this._stateMachines.filter((function(t){return t!==e})),hf(e)&&this.schemeUrlMachinesCount--},e.prototype.hasSchemeUrlMachine=function(){return this.schemeUrlMachinesCount>0},e}();function mh(e,t,i){var r=e.charIdx;if(35===i)e.addMachine({type:2,startIdx:r,state:28,acceptStateReached:!1});else if(64===i)e.addMachine(function(e,t){return{type:3,startIdx:e,state:t,acceptStateReached:!1}}(r,30));else if(47===i)e.addMachine(df(r,11));else if(43===i)e.addMachine(pf(r,37));else if(40===i)e.addMachine(pf(r,32));else{if(Tp(i)&&(e.addMachine(pf(r,38)),e.addMachine(function(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:2,octetsEncountered:1}}(r,13))),th(i)){var n="m"===t.toLowerCase()?15:22;e.addMachine(function(e,t){return{type:1,startIdx:e,state:t,acceptStateReached:!1}}(r,n))}Bp(i)&&e.addMachine(uf(r,0)),Ap(i)&&e.addMachine(df(r,5))}}function vh(e,t,i){58===i?t.state=2:45===i?t.state=1:Fp(i)||e.removeMachine(t)}function yh(e,t,i){var r=e.charIdx;45===i||(47===i?(e.removeMachine(t),e.addMachine(df(r,11))):Fp(i)?t.state=0:e.removeMachine(t))}function wh(e,t,i){var r=e.charIdx;47===i?t.state=3:46===i?e.removeMachine(t):Hp(i)?(t.state=5,Bp(i)&&e.addMachine(uf(r,0))):e.removeMachine(t)}function xh(e,t,i){47===i?t.state=4:Kp(i)?(t.state=10,t.acceptStateReached=!0):sf(e,t)}function kh(e,t,i,r){47===r?(t.state=10,t.acceptStateReached=!0):Hp(r)?(t.state=5,t.acceptStateReached=!0):e.removeMachine(t)}function _h(e,t,i){47===i?t.state=12:e.removeMachine(t)}function Sh(e,t,i){Hp(i)?t.state=5:e.removeMachine(t)}function Ch(e,t,i){46===i?t.state=7:45===i?t.state=6:58===i?t.state=8:Jp(i)?t.state=10:qp(i)||sf(e,t)}function Ph(e,t,i,r){45===r||(46===r?sf(e,t):Hp(r)?t.state=5:sf(e,t))}function Lh(e,t,i,r){46===r?sf(e,t):Hp(r)?(t.state=5,t.acceptStateReached=!0):sf(e,t)}function Ih(e,t,i){46===i?t.state=14:58===i?t.state=8:Tp(i)||(Jp(i)?t.state=10:Ap(i)?e.removeMachine(t):sf(e,t))}function Th(e,t,i){Tp(i)?(t.octetsEncountered++,4===t.octetsEncountered&&(t.acceptStateReached=!0),t.state=13):sf(e,t)}function Eh(e,t,i){Tp(i)?t.state=9:sf(e,t)}function Mh(e,t,i){Tp(i)||(Jp(i)?t.state=10:sf(e,t))}function Ah(e,t,i){Kp(i)||sf(e,t)}function Dh(e,t,i,r){"a"===i.toLowerCase()?t.state=16:$h(e,t,r)}function Vh(e,t,i,r){"i"===i.toLowerCase()?t.state=17:$h(e,t,r)}function Rh(e,t,i,r){"l"===i.toLowerCase()?t.state=18:$h(e,t,r)}function Oh(e,t,i,r){"t"===i.toLowerCase()?t.state=19:$h(e,t,r)}function jh(e,t,i,r){"o"===i.toLowerCase()?t.state=20:$h(e,t,r)}function Nh(e,t,i){58===i?t.state=21:$h(e,t,i)}function zh(e,t,i){ih(i)?t.state=22:e.removeMachine(t)}function $h(e,t,i){46===i?t.state=23:64===i?t.state=24:ih(i)?t.state=22:e.removeMachine(t)}function Uh(e,t,i){46===i||64===i?e.removeMachine(t):ih(i)?t.state=22:e.removeMachine(t)}function Bh(e,t,i){Hp(i)?t.state=25:e.removeMachine(t)}function Fh(e,t,i){46===i?t.state=27:45===i?t.state=26:qp(i)||sf(e,t)}function Hh(e,t,i){45===i||46===i?sf(e,t):qp(i)?t.state=25:sf(e,t)}function qh(e,t,i){46===i||45===i?sf(e,t):Hp(i)?(t.state=25,t.acceptStateReached=!0):sf(e,t)}function Kh(e,t,i){nh(i)?(t.state=29,t.acceptStateReached=!0):e.removeMachine(t)}function Jh(e,t,i){nh(i)||sf(e,t)}function Yh(e,t,i){ch(i)?(t.state=31,t.acceptStateReached=!0):e.removeMachine(t)}function Gh(e,t,i){ch(i)||(Ap(i)?e.removeMachine(t):sf(e,t))}function Wh(e,t,i,r){Tp(r)?t.state=38:(e.removeMachine(t),mh(e,i,r))}function Zh(e,t,i,r){Tp(r)?t.state=33:e.removeMachine(t),mh(e,i,r)}function Xh(e,t,i){Tp(i)?t.state=34:e.removeMachine(t)}function Qh(e,t,i){Tp(i)?t.state=35:e.removeMachine(t)}function ef(e,t,i){41===i?t.state=36:e.removeMachine(t)}function tf(e,t,i,r){Tp(r)?t.state=38:hh(r)?t.state=39:e.removeMachine(t)}function rf(e,t,i,r){var n=e.charIdx;t.acceptStateReached=!0,fh(r)?t.state=40:35===r?t.state=41:Tp(r)||(40===r?t.state=32:hh(r)?t.state=39:(sf(e,t),Bp(r)&&e.addMachine(uf(n,0))))}function nf(e,t,i,r){Tp(r)?t.state=38:40===r?t.state=32:(sf(e,t),mh(e,i,r))}function of(e,t,i){fh(i)||(35===i?t.state=41:Tp(i)?t.state=38:sf(e,t))}function af(e,t,i){fh(i)?t.state=40:Tp(i)?e.removeMachine(t):sf(e,t)}function sf(e,t){var i=e.matches,r=e.text,n=e.charIdx,o=e.tagBuilder,a=e.stripPrefix,s=e.stripTrailingSlash,c=e.decodePercentEncoding,l=e.hashtagServiceName,u=e.mentionServiceName;if(e.removeMachine(t),t.acceptStateReached){var d,p,h=t.startIdx,f=r.slice(t.startIdx,n);switch(f=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);Vp(o=e.charCodeAt(i))?t[r]++:Rp(o)&&t[lf[r]]--}var n=e.length-1;for(;n>=0;){var o;r=e.charAt(n);if(Rp(o=e.charCodeAt(n))){var a=lf[r];if(!(t[a]<0))break;t[a]++,n--}else{if(!Dp(o))break;n--}}return e.slice(0,n+1)}(f),t.type){case 0:if(64===r.charCodeAt(t.startIdx-1))return;switch(t.matchType){case 0:var g=jp.exec(f);if(g&&(h+=g.index,f=f.slice(g.index)),!function(e){if(zp.test(e))return!1;var t=e.match($p);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!/[A-Za-z]/.test(r))}(f))return;break;case 1:if(!function(e){var t=e.match(Up);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!Yp(i[i.length-1]))}(f))return;break;case 2:if(!function(e){var t=e.split(Wp,1)[0];return Gp.test(t)}(f))return;break;default:xp(t)}i.push(new Qp({tagBuilder:o,matchedText:f,offset:h,urlMatchType:cf(t.matchType),url:f,protocolRelativeMatch:"//"===f.slice(0,2),stripPrefix:a,stripTrailingSlash:s,decodePercentEncoding:c}));break;case 1:Yp(f.split(".").pop())&&i.push(new rh({tagBuilder:o,matchedText:f,offset:h,email:f.replace(eh,"")}));break;case 2:f.length<=140&&i.push(new ah({tagBuilder:o,matchedText:f,offset:h,serviceName:l,hashtag:f.slice(1)}));break;case 3:p=f,sh[u].test(p)&&i.push(new uh({tagBuilder:o,matchedText:f,offset:h,serviceName:u,mention:f.slice(1)}));break;case 4:if(f=f.replace(/ +$/g,""),("+"===(d=f).charAt(0)||dh.test(d))&&ph.test(d)){var b=f.replace(/[^0-9,;#]/g,"");i.push(new gh({tagBuilder:o,matchedText:f,offset:h,number:b,plusSign:"+"===f.charAt(0)}))}break;default:xp(t)}}}function cf(e){switch(e){case 0:return"scheme";case 1:return"tld";case 2:return"ipV4";default:xp(e)}}var lf={")":"(","}":"{","]":"["};function uf(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:0}}function df(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:1}}function pf(e,t){return{type:4,startIdx:e,state:t,acceptStateReached:!1}}function hf(e){return 0===e.type&&0===e.matchType}var ff=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},gf=new ff,bf=function(e,t){this.charIdx=0,this.state=0,this.currentDataIdx=0,this.currentTag=gf,this.html=e,this.callbacks=t};function mf(e,t){"<"===t&&zf(e)}function vf(e,t,i){"!"===t?e.state=13:"/"===t?(e.state=2,e.currentTag=new ff(hc(hc({},e.currentTag),{isClosing:!0}))):"<"===t?zf(e):Ip(i)?(e.state=3,e.currentTag=new ff(hc(hc({},e.currentTag),{isOpening:!0}))):(e.state=0,e.currentTag=gf)}function yf(e,t,i){Mp(i)?(e.currentTag=new ff(hc(hc({},e.currentTag),{name:Uf(e)})),e.state=4):"<"===t?zf(e):"/"===t?(e.currentTag=new ff(hc(hc({},e.currentTag),{name:Uf(e)})),e.state=12):">"===t?(e.currentTag=new ff(hc(hc({},e.currentTag),{name:Uf(e)})),$f(e)):Ip(i)||Tp(i)||":"===t||Nf(e)}function wf(e,t,i){">"===t?Nf(e):Ip(i)?e.state=3:Nf(e)}function xf(e,t,i){var r;Mp(i)||("/"===t?e.state=12:">"===t?$f(e):"<"===t?zf(e):"="===t||Ep(i)||((r=i)>=0&&r<=31||127==r)?Nf(e):e.state=5)}function kf(e,t,i){Mp(i)?e.state=6:"/"===t?e.state=12:"="===t?e.state=7:">"===t?$f(e):"<"===t?zf(e):Ep(i)&&Nf(e)}function _f(e,t,i){Mp(i)||("/"===t?e.state=12:"="===t?e.state=7:">"===t?$f(e):"<"===t?zf(e):Ep(i)?Nf(e):e.state=5)}function Sf(e,t,i){Mp(i)||('"'===t?e.state=8:"'"===t?e.state=9:/[>=`]/.test(t)?Nf(e):"<"===t?zf(e):e.state=10)}function Cf(e,t){'"'===t&&(e.state=11)}function Pf(e,t){"'"===t&&(e.state=11)}function Lf(e,t,i){Mp(i)?e.state=4:">"===t?$f(e):"<"===t&&zf(e)}function If(e,t,i){Mp(i)?e.state=4:"/"===t?e.state=12:">"===t?$f(e):"<"===t?zf(e):(e.state=4,function(e){e.charIdx--}(e))}function Tf(e,t){">"===t?(e.currentTag=new ff(hc(hc({},e.currentTag),{isClosing:!0})),$f(e)):Nf(e)}function Ef(e){var t=e.html,i=e.charIdx;"--"===t.slice(i,i+2)?(e.charIdx++,e.currentTag=new ff(hc(hc({},e.currentTag),{type:"comment"})),e.state=14):"DOCTYPE"===t.slice(i,i+7).toUpperCase()?(e.charIdx+=6,e.currentTag=new ff(hc(hc({},e.currentTag),{type:"doctype"})),e.state=20):Nf(e)}function Mf(e,t){"-"===t?e.state=15:">"===t?Nf(e):e.state=16}function Af(e,t){"-"===t?e.state=18:">"===t?Nf(e):e.state=16}function Df(e,t){"-"===t&&(e.state=17)}function Vf(e,t){e.state="-"===t?18:16}function Rf(e,t){">"===t?$f(e):"!"===t?e.state=19:"-"===t||(e.state=16)}function Of(e,t){"-"===t?e.state=17:">"===t?$f(e):e.state=16}function jf(e,t){">"===t?$f(e):"<"===t&&zf(e)}function Nf(e){e.state=0,e.currentTag=gf}function zf(e){e.state=1,e.currentTag=new ff({idx:e.charIdx})}function $f(e){var t=e.html.slice(e.currentDataIdx,e.currentTag.idx);t&&e.callbacks.onText(t,e.currentDataIdx);var i=e.currentTag;"comment"===i.type?e.callbacks.onComment(i.idx):"doctype"===i.type?e.callbacks.onDoctype(i.idx):(i.isOpening&&e.callbacks.onOpenTag(i.name,i.idx),i.isClosing&&e.callbacks.onCloseTag(i.name,i.idx)),Nf(e),e.currentDataIdx=e.charIdx+1}function Uf(e){var t=e.currentTag.idx+(e.currentTag.isClosing?2:1);return e.html.slice(t,e.charIdx).toLowerCase()}var Bf=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function(e){null==e&&(e=!0);return yp(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!yp(e.schemeMatches)||e.schemeMatches,tldMatches:!yp(e.tldMatches)||e.tldMatches,ipV4Matches:!yp(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=yp(t.email)?t.email:this.email,this.phone=yp(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=yp(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return yp(e)?{scheme:e,www:e}:{scheme:!yp(e.scheme)||e.scheme,www:!yp(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=yp(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=yp(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===lh.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===oh.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:hc({length:Number.POSITIVE_INFINITY,location:"end"},r),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,i){return new e(i).link(t)},e.parse=function(t,i){return new e(i).parse(t)},e.prototype.parse=function(e){var t=this,i=["a","style","script"],r=0,n=[];return function(e,t){for(var i=new bf(e,t),r=e.length;i.charIdx<r;){var n=e.charAt(i.charIdx),o=e.charCodeAt(i.charIdx);switch(i.state){case 0:mf(i,n);break;case 1:vf(i,n,o);break;case 2:wf(i,n,o);break;case 3:yf(i,n,o);break;case 4:xf(i,n,o);break;case 5:kf(i,n,o);break;case 6:_f(i,n,o);break;case 7:Sf(i,n,o);break;case 8:Cf(i,n);break;case 9:Pf(i,n);break;case 10:Lf(i,n,o);break;case 11:If(i,n,o);break;case 12:Tf(i,n);break;case 13:Ef(i);break;case 14:Mf(i,n);break;case 15:Af(i,n);break;case 16:Df(i,n);break;case 17:Vf(i,n);break;case 18:Rf(i,n);break;case 19:Of(i,n);break;case 20:jf(i,n);break;default:xp(i.state)}i.charIdx++}i.currentDataIdx<i.charIdx&&function(e){var t=e.html.slice(e.currentDataIdx,e.charIdx);e.callbacks.onText(t,e.currentDataIdx),e.currentDataIdx=e.charIdx+1}(i)}(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=i;o.forEach((function(e,i){if(i%2==0){var r=t.parseText(e,a);n.push.apply(n,function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}(r),!1))}a+=e.length}))}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(){},onDoctype:function(){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort(Ff);for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length;if(t+1<e.length&&e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>n?t:t+1;e.splice(o,1)}else t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||wp(e,(function(e){return"hashtag"===e.getType()})),this.email||wp(e,(function(e){return"email"===e.getType()})),this.phone||wp(e,(function(e){return"phone"===e.getType()})),this.mention||wp(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||wp(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.tldMatches||wp(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),this.urls.ipV4Matches||wp(e,(function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){t=t||0;for(var i=function(e,t){for(var i=new bh(e,t);i.charIdx<i.text.length;i.charIdx++){var r=e.charAt(i.charIdx),n=e.charCodeAt(i.charIdx);if(0===i.stateMachines.length)mh(i,r,n);else{for(var o=i.stateMachines.length-1;o>=0;o--){var a=i.stateMachines[o];switch(a.state){case 11:_h(i,a,n);break;case 12:Sh(i,a,n);break;case 0:vh(i,a,n);break;case 1:yh(i,a,n);break;case 2:wh(i,a,n);break;case 3:xh(i,a,n);break;case 4:kh(i,a,0,n);break;case 5:Ch(i,a,n);break;case 6:Ph(i,a,0,n);break;case 7:Lh(i,a,0,n);break;case 13:Ih(i,a,n);break;case 14:Th(i,a,n);break;case 8:Eh(i,a,n);break;case 9:Mh(i,a,n);break;case 10:Ah(i,a,n);break;case 15:Dh(i,a,r,n);break;case 16:Vh(i,a,r,n);break;case 17:Rh(i,a,r,n);break;case 18:Oh(i,a,r,n);break;case 19:jh(i,a,r,n);break;case 20:Nh(i,a,n);break;case 21:zh(i,a,n);break;case 22:$h(i,a,n);break;case 23:Uh(i,a,n);break;case 24:Bh(i,a,n);break;case 25:Fh(i,a,n);break;case 26:Hh(i,a,n);break;case 27:qh(i,a,n);break;case 28:Kh(i,a,n);break;case 29:Jh(i,a,n);break;case 30:Yh(i,a,n);break;case 31:Gh(i,a,n);break;case 32:Zh(i,a,r,n);break;case 33:Xh(i,a,n);break;case 34:Qh(i,a,n);break;case 35:ef(i,a,n);break;case 36:tf(i,a,0,n);break;case 37:Wh(i,a,r,n);break;case 38:rf(i,a,0,n);break;case 39:nf(i,a,r,n);break;case 40:of(i,a,n);break;case 41:af(i,a,n);break;default:xp(a.state)}}if(!i.hasSchemeUrlMachine()&&i.charIdx>0&&Bp(n)){var s=i.text.charCodeAt(i.charIdx-1);Bp(s)||i.addMachine(uf(i.charIdx,0))}}}for(var c=i.stateMachines.length-1;c>=0;c--)i.stateMachines.forEach((function(e){return sf(i,e)}));return i.matches}(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,n=i.length;r<n;r++)i[r].setOffset(t+i[r].getOffset());return i},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),i=new Array(2*t.length+1),r=0,n=0,o=t.length;n<o;n++){var a=t[n];i.push(e.substring(r,a.getOffset())),i.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return i.push(e.substring(r)),i.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof _p?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new Pp({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.1.5",e}();function Ff(e,t){return e.getOffset()-t.getOffset()}function Hf(e){return Bf.link(e,{stripPrefix:!1,email:!1,phone:!1})}window.customElements.define("buv-full-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,displayHTML:String,isVerifiablePresentation:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,displayHTML:i,isVerifiablePresentation:r}){return t?de`
490
+ ${ap}
491
+ ${function(e,t,i){const r=["buv-c-full-certificate","qa-fullscreen-certificate"];yc.certificates.displayHtmlHasNoWidthConstraint(e)&&r.push("buv-c-certificate--fixed-width");const n=t?Hf(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`<section class$=${r.join(" ")}>${op(n)}</section>`}(i,e,r)}
492
492
  <div class='buv-c-full-certificate__details'>
493
493
  <buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
494
- <buv-verify-button type='link'>${Rl("text.verifyAgain")}</buv-verify-button>
494
+ <buv-verify-button type='link'>${Ol("text.verifyAgain")}</buv-verify-button>
495
495
  </buv-final-verification-step>
496
496
  <buv-certificate-details display="grid" class='buv-c-full-certificate__details-list'></buv-certificate-details>
497
497
  </div>
498
- `:de``}});const Hf=Su((function(e){return de`
498
+ `:de``}});const qf=Cu((function(e){return de`
499
499
  <buv-full-certificate-raw
500
500
  clickableUrls = '${e.clickableUrls}'
501
501
  hasCertificateDefinition = '${e.hasCertificateDefinition}'
502
502
  displayHTML = '${e.displayHTML}'
503
503
  isVerifiablePresentation = '${e.isVerifiablePresentation}'
504
- ></buv-full-certificate-raw>`}),{mapStateToProps:e=>({hasCertificateDefinition:!!Ul(e),displayHTML:Ql(e),clickableUrls:Fu(e),isVerifiablePresentation:Gl(e)})});window.customElements.define("buv-full-certificate",Hf);var qf=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:180px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 10px 0}.buv-c-fullscreen-certificate__description{margin:0;font-size:12px}.buv-c-fullscreen-certificate__close{top:27px;right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:100px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}.buv-c-fullscreen-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`;window.customElements.define("buv-fullscreen-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,recipientName:String,certificateTitle:String,certificateDescription:String,displayHTML:String,onClose:Function,disableDownloadPdf:Boolean,isVerifiablePresentation:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,recipientName:i,certificateTitle:r,certificateDescription:n,displayHTML:o,onClose:a,disableDownloadPdf:s,isVerifiablePresentation:c}){if(!t)return de``;const l=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return o&&vc.certificates.displayHtmlHasNoWidthConstraint(o)&&l.push("buv-c-certificate--fixed-width"),de`
505
- ${qf}
504
+ ></buv-full-certificate-raw>`}),{mapStateToProps:e=>({hasCertificateDefinition:!!Bl(e),displayHTML:eu(e),clickableUrls:Hu(e),isVerifiablePresentation:Wl(e)})});window.customElements.define("buv-full-certificate",qf);var Kf=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:180px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 10px 0}.buv-c-fullscreen-certificate__description{margin:0;font-size:12px}.buv-c-fullscreen-certificate__close{top:27px;right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:100px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}.buv-c-fullscreen-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`;window.customElements.define("buv-fullscreen-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,recipientName:String,certificateTitle:String,certificateDescription:String,displayHTML:String,onClose:Function,disableDownloadPdf:Boolean,isVerifiablePresentation:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,recipientName:i,certificateTitle:r,certificateDescription:n,displayHTML:o,onClose:a,disableDownloadPdf:s,isVerifiablePresentation:c}){if(!t)return de``;const l=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return o&&yc.certificates.displayHtmlHasNoWidthConstraint(o)&&l.push("buv-c-certificate--fixed-width"),de`
505
+ ${Kf}
506
506
  <section class='buv-c-fullscreen-certificate'>
507
507
  <header class='buv-c-fullscreen-certificate-header'>
508
508
  <div class='buv-c-fullscreen-certificate-header__content'>
509
509
  <h1 class='buv-c-fullscreen-certificate__title'>${r?r+" - ":""}${i}</h1>
510
510
  ${n?de`<h3 class="buv-c-fullscreen-certificate__description">${n}</h3>`:""}
511
- ${vd({onClick:a,className:"buv-c-fullscreen-certificate__close"})}
511
+ ${yd({onClick:a,className:"buv-c-fullscreen-certificate__close"})}
512
512
  </div>
513
513
  </header>
514
514
  <section class='buv-c-fullscreen-certificate__content'>
515
515
  <div class='buv-c-fullscreen-certificate__details'>
516
516
  <buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
517
- <buv-verify-button type='link'>${Rl("text.verifyAgain")}</buv-verify-button>
517
+ <buv-verify-button type='link'>${Ol("text.verifyAgain")}</buv-verify-button>
518
518
  </buv-final-verification-step>
519
519
  <buv-certificate-details display='column' hideRecipientName></buv-certificate-details>
520
520
  <buv-metadata class='buv-c-fullscreen-certificate__details-item buv-c-fullscreen-certificate__separator' display='plaintext'></buv-metadata>
521
521
  ${s?"":de`<buv-download-pdf-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-pdf-link>`}
522
522
  <buv-download-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-link>
523
523
  <buv-social-share class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-social-share>
524
- ${Od({className:"buv-c-fullscreen-certificate__separator",showMotto:!0})}
524
+ ${Nd({className:"buv-c-fullscreen-certificate__separator",showMotto:!0})}
525
525
  <buv-verify-other-certificate class='buv-c-fullscreen-certificate__verify-other'></buv-verify-other-certificate>
526
526
  </div>
527
527
  <div class$=${l.join(" ")}>
528
- ${function(e,t,i){const r=t?Ff(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`${np(r)}`}(o,e,c)}
528
+ ${function(e,t,i){const r=t?Hf(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`${op(r)}`}(o,e,c)}
529
529
  </div>
530
530
  </section>
531
531
  </section>
532
- `}});const Kf=Su((function(e){return de`
532
+ `}});const Jf=Cu((function(e){return de`
533
533
  <buv-fullscreen-certificate-raw
534
534
  clickableUrls = '${e.clickableUrls}'
535
535
  hasCertificateDefinition = '${e.hasCertificateDefinition}'
@@ -540,13 +540,13 @@ const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
540
540
  onClose = '${e.onClose}'
541
541
  disableDownloadPdf = '${e.disableDownloadPdf}'
542
542
  isVerifiablePresentation = '${e.isVerifiablePresentation}'
543
- ></buv-fullscreen-certificate-raw>`}),{mapDispatchToProps:{onClose:Md},mapStateToProps:e=>({recipientName:ql(e),certificateTitle:Kl(e),certificateDescription:vu(e),hasCertificateDefinition:!!Ul(e),displayHTML:Ql(e),clickableUrls:Fu(e),disableDownloadPdf:ju(e),isVerifiablePresentation:Gl(e)})});window.customElements.define("buv-fullscreen-certificate",Kf);class Jf extends be{constructor(){super(),this.onLoad=()=>{},this.hasRenderedOnce=!1}static get properties(){return Object.assign({onLoad:Function,errorMessage:String,additionalErrorInfo:String,hasCertificate:Boolean},Qu)}_firstRendered(){this.onLoad(this._props),this.hasRenderedOnce=!0}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i),t.src!==i.src&&this.hasRenderedOnce&&this.onLoad({src:t.src}),t.explorerAPIs&&!i.explorerAPIs&&this.onLoad({explorerAPIs:t.explorerAPIs})}renderCertificate(e){switch(e.displayMode){case xu.FULL:return de`<buv-full-certificate></buv-full-certificate>`;case xu.FULLSCREEN:return de`<buv-fullscreen-certificate></buv-fullscreen-certificate>`;default:return de`<buv-card-certificate></buv-card-certificate>`}}_render(e){const t=e.hasCertificate?"buv-c-verifier-body buv-c-verifier-body--padded":"";return de`
544
- ${tp}
543
+ ></buv-fullscreen-certificate-raw>`}),{mapDispatchToProps:{onClose:Ad},mapStateToProps:e=>({recipientName:Kl(e),certificateTitle:Jl(e),certificateDescription:yu(e),hasCertificateDefinition:!!Bl(e),displayHTML:eu(e),clickableUrls:Hu(e),disableDownloadPdf:ju(e),isVerifiablePresentation:Wl(e)})});window.customElements.define("buv-fullscreen-certificate",Jf);class Yf extends be{constructor(){super(),this.onLoad=()=>{},this.hasRenderedOnce=!1}static get properties(){return Object.assign({onLoad:Function,errorMessage:String,additionalErrorInfo:String,hasCertificate:Boolean},ed)}_firstRendered(){this.onLoad(this._props),this.hasRenderedOnce=!0}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i),t.src!==i.src&&this.hasRenderedOnce&&this.onLoad({src:t.src}),t.explorerAPIs&&!i.explorerAPIs&&this.onLoad({explorerAPIs:t.explorerAPIs})}renderCertificate(e){switch(e.displayMode){case ku.FULL:return de`<buv-full-certificate></buv-full-certificate>`;case ku.FULLSCREEN:return de`<buv-fullscreen-certificate></buv-fullscreen-certificate>`;default:return de`<buv-card-certificate></buv-card-certificate>`}}_render(e){const t=e.hasCertificate?"buv-c-verifier-body buv-c-verifier-body--padded":"";return de`
544
+ ${ip}
545
545
  <section class='buv-c-verifier-main'>
546
546
  <buv-drag-and-drop>
547
547
  <div class='buv-c-verifier-layout'>
548
548
  <section class$='${t}'>
549
- ${Bd(e.errorMessage,e.additionalErrorInfo,!0)}
549
+ ${Fd(e.errorMessage,e.additionalErrorInfo,!0)}
550
550
  <buv-certificate-input></buv-certificate-input>
551
551
  <buv-action-menu></buv-action-menu>
552
552
  ${this.renderCertificate(e)}
@@ -556,7 +556,7 @@ const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
556
556
  </div>
557
557
  </buv-drag-and-drop>
558
558
  </section>
559
- `}}function Yf(e){return e.errorMessage}function Gf(e){return e.additionalErrorInfo}window.customElements.define("buv-raw",Jf);const Wf={onLoad:function(e={}){return function(t){const i=function(e){return Object.keys(Qu).reduce(((t,i)=>(e[i]&&(t[i]=e[i]),t)),{})}(e),{src:r,locale:n}=i;t({type:Te,payload:{options:i}}),vc.certificates.isPathToCertificateValidURI(r)?t(Gu(r)):function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&t(Yu(JSON.parse(r))),td(n)}}},Zf=Su((function(e={}){return de`<buv-raw
559
+ `}}function Gf(e){return e.errorMessage}function Wf(e){return e.additionalErrorInfo}window.customElements.define("buv-raw",Yf);const Zf={onLoad:function(e={}){return function(t){const i=function(e){return Object.keys(ed).reduce(((t,i)=>(e[i]&&(t[i]=e[i]),t)),{})}(e),{src:r,locale:n}=i;t({type:Te,payload:{options:i}}),yc.certificates.isPathToCertificateValidURI(r)?t(Wu(r)):function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&t(Gu(JSON.parse(r))),id(n)}}},Xf=Cu((function(e={}){return de`<buv-raw
560
560
  src='${e.src}'
561
561
  onLoad='${e.onLoad}'
562
562
  errorMessage='${e.errorMessage}'
@@ -574,4 +574,4 @@ const np=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
574
574
  locale='${e.locale}'
575
575
  explorerAPIs='${e.explorerAPIs}'
576
576
  didResolverUrl='${e["did-resolver-url"]}'
577
- ></buv-raw>`}),{mapDispatchToProps:Wf,mapStateToProps:e=>({errorMessage:Yf(e),additionalErrorInfo:Gf(e),hasCertificate:!!Ul(e)}),ownProps:Object.assign(Object.assign({},Jf.properties),Xu)});window.customElements.define("blockcerts-verifier",Zf);export{ys as A,_t as B,ts as C,jo as D,oc as E,fs as F,Ss as G,Js as H,Ys as I,ki as J,jd as K,cp as L,Xs as M,cc as N,Ze as S,os as V,hc as _,Qa as a,ic as b,an as c,Us as d,tc as e,Ba as f,at as g,Ds as h,ai as i,ls as j,Qe as k,pa as l,ot as m,on as n,Es as o,Vi as p,sn as q,Cs as r,cn as s,st as t,Vn as u,wi as v,Ln as w,wo as x,Lr as y,ci as z};
577
+ ></buv-raw>`}),{mapDispatchToProps:Zf,mapStateToProps:e=>({errorMessage:Gf(e),additionalErrorInfo:Wf(e),hasCertificate:!!Bl(e)}),ownProps:Object.assign(Object.assign({},Yf.properties),Qu)});window.customElements.define("blockcerts-verifier",Xf);export{ws as A,_t as B,is as C,Oo as D,ac as E,gs as F,Cs as G,Ys as H,Gs as I,ki as J,jd as K,lp as L,Qs as M,lc as N,Ze as S,as as V,fc as _,es as a,rc as b,an as c,Bs as d,ic as e,Fa as f,at as g,Vs as h,ai as i,us as j,Qe as k,ha as l,ot as m,on as n,Ms as o,Vi as p,st as q,Ps as r,Vn as s,wi as t,Ln as u,wo as v,Lr as w,sn as x,cn as y,ci as z};