@peculiar/certificates-viewer 3.0.0 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{certification_request-96951e7b.js → certification_request-311ab0a6.js} +1 -1
- package/dist/cjs/{l10n-2e7def18.js → l10n-d4a77087.js} +6 -11
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +2 -2
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -5
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +1 -3
- package/dist/collection/utils/date_formatter.js +3 -11
- package/dist/esm/{certification_request-48e8b956.js → certification_request-efd1e98c.js} +1 -1
- package/dist/esm/{l10n-ead9928b.js → l10n-9ac63748.js} +6 -11
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +2 -2
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -5
- package/dist/index.js +1 -1
- package/dist/peculiar/{p-452d69af.entry.js → p-621509b3.entry.js} +1 -1
- package/dist/peculiar/p-99797a49.js +34 -0
- package/dist/peculiar/{p-e5f99586.entry.js → p-b09a1f0b.entry.js} +1 -1
- package/dist/peculiar/{p-886e9c53.js → p-d676d064.js} +1 -1
- package/dist/peculiar/p-fd1c657d.entry.js +4 -0
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/loader/index.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/_commonjsHelpers-bfbd2ad8.js +0 -4
- package/dist/esm-es5/certification_request-48e8b956.js +0 -89
- package/dist/esm-es5/dom-f1b08a97.js +0 -24
- package/dist/esm-es5/download-cf68ac2c.js +0 -18
- package/dist/esm-es5/index-bbd484d9.js +0 -5
- package/dist/esm-es5/index.js +0 -4
- package/dist/esm-es5/l10n-ead9928b.js +0 -39
- package/dist/esm-es5/loader.js +0 -4
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_9.entry.js +0 -459
- package/dist/esm-es5/peculiar-certificate-summary_3.entry.js +0 -4
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +0 -4
- package/dist/esm-es5/peculiar.js +0 -4
- package/dist/peculiar/p-047b12d9.system.js +0 -89
- package/dist/peculiar/p-13e9d17d.system.entry.js +0 -460
- package/dist/peculiar/p-29cdd256.system.js +0 -18
- package/dist/peculiar/p-3929074b.system.js +0 -24
- package/dist/peculiar/p-4f52a24f.system.js +0 -39
- package/dist/peculiar/p-5f7fbf05.system.entry.js +0 -4
- package/dist/peculiar/p-82033e2e.system.entry.js +0 -4
- package/dist/peculiar/p-88fbaf05.system.js +0 -4
- package/dist/peculiar/p-8df391dc.system.js +0 -4
- package/dist/peculiar/p-9837be14.system.js +0 -5
- package/dist/peculiar/p-9ae6b1f8.entry.js +0 -4
- package/dist/peculiar/p-d09b762f.js +0 -33
- package/dist/peculiar/p-ee0e2707.system.js +0 -4
- package/dist/peculiar/peculiar.js +0 -130
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e);return!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){r=a.import;if(r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}else if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,e,n){t.a.set(e,n);t.g.set(n.constructorFunction,n)}function l(t,e){t.b=!0;t.c.push(e)}function s(t,e){t.b=!0;t.f.push(e)}function u(t,e){t.b&&i(e,(function(e){return f(t,e)}))}function f(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function p(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):m(t,o)}}function h(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function d(t,e,n){n=void 0===n?{}:n;var o=n.u||new Set,r=n.i||function(e){return m(t,e)},a=[];i(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0);n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n);d(t,n,{u:i,i:r})}}))}else a.push(e)}),o);if(t.b)for(e=0;e<a.length;e++)f(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function m(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if(o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)if(o=t.a.get(e.localName)){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}e.__CE_state=1;e.__CE_definition=o;if(o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)};a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)};a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)};function y(t){var e=document;this.c=t;this.a=e;this.b=void 0;d(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}y.prototype.f=function(t){var e=this.a.readyState;"interactive"!==e&&"complete"!==e||b(this);for(e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.c,n[o])};function v(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(e){t.b=e;t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function w(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new y(t)}w.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback");var l=i("disconnectedCallback");var s=i("adoptedCallback");var u=i("attributeChangedCallback");var f=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:u,observedAttributes:f,constructionStack:[]};c(this.a,t,n);this.g.push(n);this.b||(this.b=!0,this.f((function(){return E(o)})))};w.prototype.i=function(t){d(this.a,t)};function E(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);d(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}});for(i=0;i<n.length;i++)m(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName;r=o.get(r.localName);for(var a=0;a<r.length;a++)m(t.a,r[a]);(i=t.j.get(i))&&g(i)}}}w.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};w.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);if(n)return n.c;n=new v;this.j.set(t,n);this.a.a.get(t)&&!this.g.some((function(e){return e.localName===t}))&&g(n);return n.c};w.prototype.s=function(t){b(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.l;w.prototype.upgrade=w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.m;w.prototype.polyfillWrapFlushCallback=w.prototype.s;var _=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,S=window.Document.prototype.prepend,T=window.Document.prototype.append,D=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,A=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,F=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,q=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,V=window.Element.prototype.append,X=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var et=new function(){};function nt(){var t=st;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=_.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,f(t,o),o;n=o.length-1;var i=o[n];if(i===et)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");o[n]=et;Object.setPrototypeOf(i,e.prototype);f(t,i);return i}e.prototype=Q.prototype;Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e});return e}()}function ot(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}void 0!==o.h&&(e.prepend=i(o.h));void 0!==o.append&&(e.append=i(o.append))}function it(){var t=st;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}e=_.call(this,e);f(t,e);return e}));r(Document.prototype,"importNode",(function(e,n){e=N.call(this,e,!!n);this.__CE_hasRegistry?d(t,e):u(t,e);return e}));r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}e=C.call(this,e,n);f(t,e);return e}));ot(t,Document.prototype,{h:S,append:T})}function rt(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}o.set.call(this,t);if(i)for(t=0;t<i.length;t++)h(e,i[t])}}})}var e=st;r(Node.prototype,"insertBefore",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=j.call(this,t,o);if(n(this))for(o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);o=j.call(this,t,o);i&&h(e,t);n(this)&&p(e,t);return o}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=O.call(this,t);if(n(this))for(var i=0;i<o.length;i++)p(e,o[i]);return t}o=n(t);i=O.call(this,t);o&&h(e,t);n(this)&&p(e,t);return i}));r(Node.prototype,"cloneNode",(function(t){t=A.call(this,!!t);this.ownerDocument.__CE_hasRegistry?d(e,t):u(e,t);return t}));r(Node.prototype,"removeChild",(function(t){var o=n(t),i=L.call(this,t);o&&h(e,t);return i}));r(Node.prototype,"replaceChild",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=M.call(this,t,o);if(n(this))for(h(e,o),o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);var r=M.call(this,t,o),a=n(this);a&&h(e,o);i&&h(e,t);a&&p(e,t);return r}));x&&x.get?t(Node.prototype,x):l(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&O.call(this,document.createTextNode(t))}})}))}function at(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}var o=Element.prototype;void 0!==X&&(o.before=e(X));void 0!==X&&(o.after=e(G));void 0!==J&&r(o,"replaceWith",(function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];c instanceof Element&&n(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}a=n(this);J.apply(this,o);for(o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)r=i[o],r instanceof Element&&p(t,r)}));void 0!==K&&r(o,"remove",(function(){var e=n(this);K.call(this);e&&h(t,this)}))}function ct(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;n(this)&&(r=[],i(this,(function(t){t!==o&&r.push(t)})));e.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var l=r[c];1===l.__CE_state&&a.disconnectedCallback(l)}this.ownerDocument.__CE_hasRegistry?d(a,this):u(a,this);return t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,o){var i=n(o);t=e.call(this,t,o);i&&h(a,o);n(t)&&p(a,o);return t}))}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)d(a,n[e])}r(t,"insertAdjacentHTML",(function(t,o){t=t.toLowerCase();if("beforebegin"===t){var i=this.previousSibling;e.call(this,t,o);n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else if("afterend"===t)i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var a=st;H&&r(Element.prototype,"attachShadow",(function(t){t=H.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}));R&&R.get?t(Element.prototype,R):Y&&Y.get?t(HTMLElement.prototype,Y):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return A.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=C.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)L.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)O.call(n,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return F.call(this,t,e);var n=P.call(this,t);F.call(this,t,e);e=P.call(this,t);a.attributeChangedCallback(this,t,n,e,null)}));r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return U.call(this,t,e,n);var o=z.call(this,t,e);U.call(this,t,e,n);n=z.call(this,t,e);a.attributeChangedCallback(this,e,o,n,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return I.call(this,t);var e=P.call(this,t);I.call(this,t);null!==e&&a.attributeChangedCallback(this,t,e,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=z.call(this,t,e);W.call(this,t,e);var o=z.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}));Z?e(HTMLElement.prototype,Z):q?e(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?o(HTMLElement.prototype,tt):B?o(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");ot(a,Element.prototype,{h:$,append:V});at(a)}var lt=window.customElements;if(!lt||lt.forcePolyfill||"function"!=typeof lt.define||"function"!=typeof lt.get){var st=new a;nt();it();ot(st,DocumentFragment.prototype,{h:D,append:k});rt();ct();document.__CE_hasRegistry=!0;var ut=new w(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ut})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail);return n},window.CustomEvent.prototype=window.Event.prototype);(function(t,e,n){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(e,n);return this.path})})(Event.prototype,document,window);
|
|
5
|
-
/*!
|
|
6
|
-
Element.closest and Element.matches
|
|
7
|
-
https://github.com/jonathantneal/closest
|
|
8
|
-
Creative Commons Zero v1.0 Universal
|
|
9
|
-
*/(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]});"function"!==typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})})(window.Element.prototype);
|
|
10
|
-
/*!
|
|
11
|
-
Element.getRootNode()
|
|
12
|
-
*/(function(t){function e(t){t=n(t);return t&&11===t.nodeType?e(t.host):t}function n(t){return t&&t.parentNode?n(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?e(this):n(this)})})(Element.prototype);
|
|
13
|
-
/*!
|
|
14
|
-
Element.isConnected()
|
|
15
|
-
*/(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
|
|
16
|
-
/*!
|
|
17
|
-
Element.remove()
|
|
18
|
-
*/(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
19
|
-
/*!
|
|
20
|
-
Element.classList
|
|
21
|
-
*/!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}})}(Element.prototype);
|
|
22
|
-
/*!
|
|
23
|
-
DOMTokenList
|
|
24
|
-
*/(function(t){try{document.body.classList.add()}catch(o){var e=t.add,n=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)e.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}}})(DOMTokenList.prototype);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as createCommonjsModule}from"./_commonjsHelpers-bfbd2ad8.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function downloadFromBuffer(r,t,e,n){if(n===void 0){n="application/octet-stream"}var o=new Blob([r],{type:n});if(navigator.msSaveBlob){navigator.msSaveBlob(o,"".concat(t,".").concat(e));return new Promise((function(r){return setTimeout(r,100)}))}var a=window.URL.createObjectURL(o);var i=document.createElement("a");var f=document.createElement("iframe");i.style.display="none";f.style.display="none";f.name=a;document.body.appendChild(f);i.href=a;i.target=a;i.download="".concat(t,".").concat(e);document.body.appendChild(i);i.dispatchEvent(new MouseEvent("click"));document.body.removeChild(i);return new Promise((function(r){return setTimeout((function(){document.body.removeChild(f);r(undefined)}),100)}))}var build=createCommonjsModule((function(r,t){Object.defineProperty(t,"__esModule",{value:true});var e="[object ArrayBuffer]";var n=function(){function r(){}r.isArrayBuffer=function(r){return Object.prototype.toString.call(r)===e};r.toArrayBuffer=function(r){if(this.isArrayBuffer(r)){return r}if(r.byteLength===r.buffer.byteLength){return r.buffer}return this.toUint8Array(r).slice().buffer};r.toUint8Array=function(r){return this.toView(r,Uint8Array)};r.toView=function(r,t){if(r.constructor===t){return r}if(this.isArrayBuffer(r)){return new t(r)}if(this.isArrayBufferView(r)){return new t(r.buffer,r.byteOffset,r.byteLength)}throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")};r.isBufferSource=function(r){return this.isArrayBufferView(r)||this.isArrayBuffer(r)};r.isArrayBufferView=function(r){return ArrayBuffer.isView(r)||r&&this.isArrayBuffer(r.buffer)};r.isEqual=function(t,e){var n=r.toUint8Array(t);var o=r.toUint8Array(e);if(n.length!==o.byteLength){return false}for(var a=0;a<n.length;a++){if(n[a]!==o[a]){return false}}return true};r.concat=function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}if(Array.isArray(r[0])){var e=r[0];var n=0;for(var o=0,a=e;o<a.length;o++){var i=a[o];n+=i.byteLength}var f=new Uint8Array(n);var u=0;for(var c=0,s=e;c<s.length;c++){var i=s[c];var l=this.toUint8Array(i);f.set(l,u);u+=l.length}if(r[1]){return this.toView(f,r[1])}return f.buffer}else{return this.concat(r)}};return r}();var o=function(){function r(){}r.fromString=function(r){var t=unescape(encodeURIComponent(r));var e=new Uint8Array(t.length);for(var n=0;n<t.length;n++){e[n]=t.charCodeAt(n)}return e.buffer};r.toString=function(r){var t=n.toUint8Array(r);var e="";for(var o=0;o<t.length;o++){e+=String.fromCharCode(t[o])}var a=decodeURIComponent(escape(e));return a};return r}();var a=function(){function r(){}r.toString=function(r,t){if(t===void 0){t=false}var e=n.toArrayBuffer(r);var o=new DataView(e);var a="";for(var i=0;i<e.byteLength;i+=2){var f=o.getUint16(i,t);a+=String.fromCharCode(f)}return a};r.fromString=function(r,t){if(t===void 0){t=false}var e=new ArrayBuffer(r.length*2);var n=new DataView(e);for(var o=0;o<r.length;o++){n.setUint16(o*2,r.charCodeAt(o),t)}return e};return r}();var i=function(){function r(){}r.isHex=function(r){return typeof r==="string"&&/^[a-z0-9]+$/i.test(r)};r.isBase64=function(r){return typeof r==="string"&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(r)};r.isBase64Url=function(r){return typeof r==="string"&&/^[a-zA-Z0-9-_]+$/i.test(r)};r.ToString=function(r,t){if(t===void 0){t="utf8"}var e=n.toUint8Array(r);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(e);case"binary":return this.ToBinary(e);case"hex":return this.ToHex(e);case"base64":return this.ToBase64(e);case"base64url":return this.ToBase64Url(e);case"utf16le":return a.toString(e,true);case"utf16":case"utf16be":return a.toString(e);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}};r.FromString=function(r,t){if(t===void 0){t="utf8"}if(!r){return new ArrayBuffer(0)}switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(r);case"binary":return this.FromBinary(r);case"hex":return this.FromHex(r);case"base64":return this.FromBase64(r);case"base64url":return this.FromBase64Url(r);case"utf16le":return a.fromString(r,true);case"utf16":case"utf16be":return a.fromString(r);default:throw new Error("Unknown type of encoding '".concat(t,"'"))}};r.ToBase64=function(r){var t=n.toUint8Array(r);if(typeof btoa!=="undefined"){var e=this.ToString(t,"binary");return btoa(e)}else{return Buffer.from(t).toString("base64")}};r.FromBase64=function(t){var e=this.formatString(t);if(!e){return new ArrayBuffer(0)}if(!r.isBase64(e)){throw new TypeError("Argument 'base64Text' is not Base64 encoded")}if(typeof atob!=="undefined"){return this.FromBinary(atob(e))}else{return new Uint8Array(Buffer.from(e,"base64")).buffer}};r.FromBase64Url=function(t){var e=this.formatString(t);if(!e){return new ArrayBuffer(0)}if(!r.isBase64Url(e)){throw new TypeError("Argument 'base64url' is not Base64Url encoded")}return this.FromBase64(this.Base64Padding(e.replace(/\-/g,"+").replace(/\_/g,"/")))};r.ToBase64Url=function(r){return this.ToBase64(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")};r.FromUtf8String=function(t,e){if(e===void 0){e=r.DEFAULT_UTF8_ENCODING}switch(e){case"ascii":return this.FromBinary(t);case"utf8":return o.fromString(t);case"utf16":case"utf16be":return a.fromString(t);case"utf16le":case"usc2":return a.fromString(t,true);default:throw new Error("Unknown type of encoding '".concat(e,"'"))}};r.ToUtf8String=function(t,e){if(e===void 0){e=r.DEFAULT_UTF8_ENCODING}switch(e){case"ascii":return this.ToBinary(t);case"utf8":return o.toString(t);case"utf16":case"utf16be":return a.toString(t);case"utf16le":case"usc2":return a.toString(t,true);default:throw new Error("Unknown type of encoding '".concat(e,"'"))}};r.FromBinary=function(r){var t=r.length;var e=new Uint8Array(t);for(var n=0;n<t;n++){e[n]=r.charCodeAt(n)}return e.buffer};r.ToBinary=function(r){var t=n.toUint8Array(r);var e="";for(var o=0;o<t.length;o++){e+=String.fromCharCode(t[o])}return e};r.ToHex=function(r){var t=n.toUint8Array(r);var e="";var o=[];var a=t.length;for(var i=0;i<a;i++){var f=t[i].toString(16).padStart(2,"0");o.push(f)}return o.join(e)};r.FromHex=function(t){var e=this.formatString(t);if(!e){return new ArrayBuffer(0)}if(!r.isHex(e)){throw new TypeError("Argument 'hexString' is not HEX encoded")}if(e.length%2){e="0".concat(e)}var n=new Uint8Array(e.length/2);for(var o=0;o<e.length;o=o+2){var a=e.slice(o,o+2);n[o/2]=parseInt(a,16)}return n.buffer};r.ToUtf16String=function(r,t){if(t===void 0){t=false}return a.toString(r,t)};r.FromUtf16String=function(r,t){if(t===void 0){t=false}return a.fromString(r,t)};r.Base64Padding=function(r){var t=4-r.length%4;if(t<4){for(var e=0;e<t;e++){r+="="}}return r};r.formatString=function(r){return(r===null||r===void 0?void 0:r.replace(/[\n\r\t ]/g,""))||""};return r}();i.DEFAULT_UTF8_ENCODING="utf8";function f(r){var t=[];for(var e=1;e<arguments.length;e++){t[e-1]=arguments[e]}var n=arguments[0];for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var i in a){n[i]=a[i]}}return n}function u(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}var e=r.map((function(r){return r.byteLength})).reduce((function(r,t){return r+t}));var n=new Uint8Array(e);var o=0;r.map((function(r){return new Uint8Array(r)})).forEach((function(r){for(var t=0,e=r;t<e.length;t++){var a=e[t];n[o++]=a}}));return n.buffer}function c(r,t){if(!(r&&t)){return false}if(r.byteLength!==t.byteLength){return false}var e=new Uint8Array(r);var n=new Uint8Array(t);for(var o=0;o<r.byteLength;o++){if(e[o]!==n[o]){return false}}return true}t.BufferSourceConverter=n;t.Convert=i;t.assign=f;t.combine=u;t.isEqual=c}));
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Download=function(){function r(){}return r}();Download.x509={asPEM:function(r,t){downloadFromBuffer(build.Convert.FromString(r),t,"cer","application/pkix-cert")},asDER:function(r,t){downloadFromBuffer(build.Convert.FromString(r),t,"cer","application/pkix-cert")}};Download.pkcs10={asPEM:function(r,t){downloadFromBuffer(build.Convert.FromString(r),t,"csr","application/pkcs10")},asDER:function(r,t){downloadFromBuffer(build.Convert.FromString(r),t,"csr","application/pkcs10")}};export{Download as D,build as b,downloadFromBuffer as d};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,s;n<a;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};
|
|
2
|
-
/*!
|
|
3
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
4
|
-
*/var NAMESPACE="peculiar";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],s=r[2];var o=e;var i=hostListenerProxy(t,s);var l=hostListenerOpts(n);plt.ael(o,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(o,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(e){consoleError(e)}}};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructibleStylesheets&&r){n=n||new CSSStyleSheet;n.replace(t)}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r,n){var a=getScopeId(t);var s=styles.get(a);e=e.nodeType===11?e:doc;if(s){if(typeof s==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var i=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{{i=doc.createElement("style");i.innerHTML=s}e.insertBefore(i,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[s],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var s=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=s;r.classList.add(s+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var s=null;var o=false;var i=false;var l=[];var u=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){u(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&i){l[l.length-1].$text$+=a}else{l.push(o?newVNode(null,a):a)}i=o}}};u(r);if(t){if(t.key){s=t.key}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,l,vdomFnUtils)}var f=newVNode(e,null);f.$attrs$=t;if(l.length>0){f.$children$=l}{f.$key$=s}return f};var newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.$attrs$=e.vattrs;r.$children$=e.vchildren;r.$key$=e.vkey;r.$name$=e.vname;return r};var setAccessor=function(e,t,r,n,a,s){if(r!==n){var o=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var u=parseClassList(r);var c=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!u.includes(e)})))}else if(t==="style"){{for(var f in r){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!r||n[f]!==r[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(r){plt.rel(e,t,r,false)}if(n){plt.ael(e,t,n,false)}}else{var $=isComplexType(n);if((o||$&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var v=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=v){e[t]=v}}else{e[t]=n}}catch(e){}}var d=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;d=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(d){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||a)&&!$){n=n===true?"":n;if(d){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var s=e&&e.$attrs$||EMPTY_OBJ;var o=t.$attrs$||EMPTY_OBJ;{for(n in s){if(!(n in o)){setAccessor(a,n,s[n],undefined,r,t.$flags$)}}}for(n in o){setAccessor(a,n,s[n],o[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var s=0;var o;var i;if(a.$text$!==null){o=a.$elm$=doc.createTextNode(a.$text$)}else{if(!isSvgMode){isSvgMode=a.$tag$==="svg"}o=a.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,a.$tag$);if(isSvgMode&&a.$tag$==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.$children$){for(s=0;s<a.$children$.length;++s){i=createElm(e,a,s);if(i){o.appendChild(i)}}}{if(a.$tag$==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}return o};var addVnodes=function(e,t,r,n,a,s){var o=e;var i;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=s;++a){if(n[a]){i=createElm(null,r,a);if(i){n[a].$elm$=i;o.insertBefore(i,t)}}}};var removeVnodes=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;callNodeRefs(n);a.remove()}}};var updateChildren=function(e,t,r,n){var a=0;var s=0;var o=0;var i=0;var l=t.length-1;var u=t[0];var c=t[l];var f=n.length-1;var $=n[0];var v=n[f];var d;var p;while(a<=l&&s<=f){if(u==null){u=t[++a]}else if(c==null){c=t[--l]}else if($==null){$=n[++s]}else if(v==null){v=n[--f]}else if(isSameVnode(u,$)){patch(u,$);u=t[++a];$=n[++s]}else if(isSameVnode(c,v)){patch(c,v);c=t[--l];v=n[--f]}else if(isSameVnode(u,v)){patch(u,v);e.insertBefore(u.$elm$,c.$elm$.nextSibling);u=t[++a];v=n[--f]}else if(isSameVnode(c,$)){patch(c,$);e.insertBefore(c.$elm$,u.$elm$);c=t[--l];$=n[++s]}else{o=-1;{for(i=a;i<=l;++i){if(t[i]&&t[i].$key$!==null&&t[i].$key$===$.$key$){o=i;break}}}if(o>=0){p=t[o];if(p.$tag$!==$.$tag$){d=createElm(t&&t[s],r,o)}else{patch(p,$);t[o]=undefined;d=p.$elm$}$=n[++s]}else{d=createElm(t&&t[s],r,s);$=n[++s]}if(d){{u.$elm$.parentNode.insertBefore(d,u.$elm$)}}}}if(a>l){addVnodes(e,n[f+1]==null?null:n[f+1].$elm$,r,n,s,f)}else if(s>f){removeVnodes(t,a,l)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){{return e.$key$===t.$key$}}return false};var patch=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var s=t.$tag$;var o=t.$text$;if(o===null){{isSvgMode=s==="svg"?true:s==="foreignObject"?false:isSvgMode}{if(s==="slot");else{updateElement(e,t,isSvgMode)}}if(n!==null&&a!==null){updateChildren(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}addVnodes(r,null,t,a,0,a.length-1)}else if(n!==null){removeVnodes(n,0,n.length-1)}if(isSvgMode&&s==="svg"){isSvgMode=false}}else if(e.$text$!==o){r.data=o}};var callNodeRefs=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(callNodeRefs)}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n.$attrsToReflect$){s.$attrs$=s.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return s.$attrs$[n]=r[t]}))}s.$tag$=null;s.$flags$|=4;e.$vnode$=s;s.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,s)};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.$queuedListeners$=null}}{a=safeCall(n,"componentWillLoad")}}r();return then(a,(function(){return updateComponent(e,n,t)}))};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,s,o,i,l;return __generator(this,(function(u){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);s=n["s-rc"];if(r){attachStyles(e)}o=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(s){s.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{i=n["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.$lazyInstance$;var s=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!s){appDidLoad()}}}else{{safeCall(a,"componentDidUpdate")}n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var s=a.$hostElement$;var o=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);var u=Number.isNaN(o)&&Number.isNaN(r);var c=r!==o&&!u;if((!(i&8)||o===undefined)&&c){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&i&128){var f=n.$watchers$[t];if(f){f.map((function(e){try{l[e](r,o,t)}catch(e){consoleError(e,s)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],s=e[1][0];if(s&31||r&2&&s&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var s=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=s.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;s.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var initializeComponent=function(e,t,r,n,a){return __awaiter(void 0,void 0,void 0,(function(){var e,n,s,o,i,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(r);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){{r.$watchers$=a.watchers}proxyComponent(a,r,2);a.isProxied=true}n=createTime("createInstance",r.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}n();if(a.style){s=a.style;o=getScopeId(r);if(!styles.has(o)){i=createTime("registerStyles",r.$tagName$);registerStyle(o,s,!!(r.$flags$&1));i()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{nextTick((function(){return initializeComponent(e,t,r)}))}}else{addHostEventListeners(e,t,r.$listeners$)}n()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var s=win.customElements;var o=doc.head;var i=o.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var c;var f=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$attrsToReflect$=[]}{r.$watchers$={}}var o=r.$tagName$;var i=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(f){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(o)&&!s.get(o)){n.push(o);s.define(o,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");o.insertBefore(l,i?i.nextSibling:o.firstChild)}f=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}r()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.$listeners$);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var s=cmpModules.get(a);if(s){return s[n]}
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,NAMESPACE as N,bootstrapLazy as b,createEvent as c,doc as d,getElement as g,h,promiseResolve as p,registerInstance as r,win as w};
|
package/dist/esm-es5/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as createCommonjsModule,a as commonjsGlobal}from"./_commonjsHelpers-bfbd2ad8.js";function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return _extends.apply(this,arguments)}function isAbsolute(e){return e.charAt(0)==="/"}function spliceOne(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()}function resolvePathname(e,t){if(t===undefined)t="";var n=e&&e.split("/")||[];var r=t&&t.split("/")||[];var i=e&&isAbsolute(e);var a=t&&isAbsolute(t);var s=i||a;if(e&&isAbsolute(e)){r=n}else if(n.length){r.pop();r=r.concat(n)}if(!r.length)return"/";var o;if(r.length){var u=r[r.length-1];o=u==="."||u===".."||u===""}else{o=false}var f=0;for(var c=r.length;c>=0;c--){var l=r[c];if(l==="."){spliceOne(r,c)}else if(l===".."){spliceOne(r,c);f++}else if(f){spliceOne(r,c);f--}}if(!s)for(;f--;f)r.unshift("..");if(s&&r[0]!==""&&(!r[0]||!isAbsolute(r[0])))r.unshift("");var h=r.join("/");if(o&&h.substr(-1)!=="/")h+="/";return h}var prefix="Invariant failed";function invariant(e,t){if(e){return}{throw new Error(prefix)}}function addLeadingSlash(e){return e.charAt(0)==="/"?e:"/"+e}function hasBasename(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function stripBasename(e,t){return hasBasename(e,t)?e.substr(t.length):e}function stripTrailingSlash(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function parsePath(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function createPath(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?")i+=n.charAt(0)==="?"?n:"?"+n;if(r&&r!=="#")i+=r.charAt(0)==="#"?r:"#"+r;return i}function createLocation(e,t,n,r){var i;if(typeof e==="string"){i=parsePath(e);i.state=t}else{i=_extends({},e);if(i.pathname===undefined)i.pathname="";if(i.search){if(i.search.charAt(0)!=="?")i.search="?"+i.search}else{i.search=""}if(i.hash){if(i.hash.charAt(0)!=="#")i.hash="#"+i.hash}else{i.hash=""}if(t!==undefined&&i.state===undefined)i.state=t}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}if(n)i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=resolvePathname(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}return i}function createTransitionManager(){var e=null;function t(t){e=t;return function(){if(e===t)e=null}}function n(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{i(true)}}else{i(a!==false)}}else{i(true)}}var r=[];function i(e){var t=true;function n(){if(t)e.apply(void 0,arguments)}r.push(n);return function(){t=false;r=r.filter((function(e){return e!==n}))}}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}r.forEach((function(e){return e.apply(void 0,t)}))}return{setPrompt:t,confirmTransitionTo:n,appendListener:i,notifyListeners:a}}var canUseDOM=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);function getConfirmation(e,t){t(window.confirm(e))}function supportsHistory(){var e=window.navigator.userAgent;if((e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1)return false;return window.history&&"pushState"in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf("Trident")===-1}function isExtraneousPopstateEvent(e){return e.state===undefined&&navigator.userAgent.indexOf("CriOS")===-1}var PopStateEvent="popstate";var HashChangeEvent="hashchange";function getHistoryState(){try{return window.history.state||{}}catch(e){return{}}}function createBrowserHistory(e){if(e===void 0){e={}}!canUseDOM?invariant(false):void 0;var t=window.history;var n=supportsHistory();var r=!supportsPopStateOnHashChange();var i=e,a=i.forceRefresh,s=a===void 0?false:a,o=i.getUserConfirmation,u=o===void 0?getConfirmation:o,f=i.keyLength,c=f===void 0?6:f;var l=e.basename?stripTrailingSlash(addLeadingSlash(e.basename)):"";function h(e){var t=e||{},n=t.key,r=t.state;var i=window.location,a=i.pathname,s=i.search,o=i.hash;var u=a+s+o;if(l)u=stripBasename(u,l);return createLocation(u,r,n)}function d(){return Math.random().toString(36).substr(2,c)}var v=createTransitionManager();function p(e){_extends(T,e);T.length=t.length;v.notifyListeners(T.location,T.action)}function m(e){if(isExtraneousPopstateEvent(e))return;w(h(e.state))}function g(){w(h(getHistoryState()))}var y=false;function w(e){if(y){y=false;p()}else{var t="POP";v.confirmTransitionTo(e,t,u,(function(n){if(n){p({action:t,location:e})}else{$(e)}}))}}function $(e){var t=T.location;var n=b.indexOf(t.key);if(n===-1)n=0;var r=b.indexOf(e.key);if(r===-1)r=0;var i=n-r;if(i){y=true;x(i)}}var S=h(getHistoryState());var b=[S.key];function M(e){return l+createPath(e)}function O(e,r){var i="PUSH";var a=createLocation(e,r,d(),T.location);v.confirmTransitionTo(a,i,u,(function(e){if(!e)return;var r=M(a);var o=a.key,u=a.state;if(n){t.pushState({key:o,state:u},null,r);if(s){window.location.href=r}else{var f=b.indexOf(T.location.key);var c=b.slice(0,f+1);c.push(a.key);b=c;p({action:i,location:a})}}else{window.location.href=r}}))}function D(e,r){var i="REPLACE";var a=createLocation(e,r,d(),T.location);v.confirmTransitionTo(a,i,u,(function(e){if(!e)return;var r=M(a);var o=a.key,u=a.state;if(n){t.replaceState({key:o,state:u},null,r);if(s){window.location.replace(r)}else{var f=b.indexOf(T.location.key);if(f!==-1)b[f]=a.key;p({action:i,location:a})}}else{window.location.replace(r)}}))}function x(e){t.go(e)}function L(){x(-1)}function A(){x(1)}var E=0;function H(e){E+=e;if(E===1&&e===1){window.addEventListener(PopStateEvent,m);if(r)window.addEventListener(HashChangeEvent,g)}else if(E===0){window.removeEventListener(PopStateEvent,m);if(r)window.removeEventListener(HashChangeEvent,g)}}var C=false;function _(e){if(e===void 0){e=false}var t=v.setPrompt(e);if(!C){H(1);C=true}return function(){if(C){C=false;H(-1)}return t()}}function I(e){var t=v.appendListener(e);H(1);return function(){H(-1);t()}}var T={length:t.length,action:"POP",location:S,createHref:M,push:O,replace:D,go:x,goBack:L,goForward:A,block:_,listen:I};return T}
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function parseHash(e){if(e===void 0){e=window.location.hash}if(!e.length){return{}}var t=e.replace(/^(#|\?)?\/?/,"").split("&");var n={};for(var r=0;r<t.length;r+=1){var i=t[r].split("=");try{n[i[0]]=i[1]&&decodeURIComponent(i[1])}catch(e){console.warn(e)}}return n}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/function queryStringify(e){var t=[];Object.keys(e).forEach((function(n){if(typeof e[n]==="string"||typeof e[n]==="boolean"||typeof e[n]==="number"){t.push("".concat(n,"=").concat(encodeURIComponent(e[n])))}}));return t.join("&")}
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var browserHistory=createBrowserHistory();var history=Object.assign(browserHistory,{parseHash:parseHash,queryStringify:queryStringify});var dayjs_min=createCommonjsModule((function(e,t){!function(t,n){e.exports=n()}(commonjsGlobal,(function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",s="hour",o="day",u="week",f="month",c="quarter",l="year",h="date",d="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,f),a=n-i<0,s=t.clone().add(r+(a?-1:1),f);return+(-(r+(n-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:f,y:l,w:u,d:o,D:h,h:s,m:a,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",$={};$[w]=m;var S=function(e){return e instanceof D},b=function e(t,n,r){var i;if(!t)return w;if("string"==typeof t){var a=t.toLowerCase();$[a]&&(i=a),n&&($[a]=n,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;$[o]=t,i=o}return!r&&i&&(w=i),i||!r&&w},M=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},O=y;O.l=b,O.i=S,O.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function m(e){this.$L=b(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(v);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return M(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<M(e)},g.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!O.u(t)||t,c=O.p(e),d=function(e,t){var i=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(o)},v=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},p=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case l:return r?d(1,0):d(31,11);case f:return r?d(1,m):d(0,m+1);case u:var w=this.$locale().weekStart||0,$=(p<w?p+7:p)-w;return d(r?g-$:g+(6-$),m);case o:case h:return v(y+"Hours",0);case s:return v(y+"Minutes",1);case a:return v(y+"Seconds",2);case i:return v(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,u=O.p(e),c="set"+(this.$u?"UTC":""),d=(n={},n[o]=c+"Date",n[h]=c+"Date",n[f]=c+"Month",n[l]=c+"FullYear",n[s]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],v=u===o?this.$D+(t-this.$W):t;if(u===f||u===l){var p=this.clone().set(h,1);p.$d[d](v),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[O.p(e)]()},g.add=function(r,c){var h,d=this;r=Number(r);var v=O.p(c),p=function(e){var t=M(d);return O.w(t.date(t.date()+Math.round(e*r)),d)};if(v===f)return this.set(f,this.$M+r);if(v===l)return this.set(l,this.$y+r);if(v===o)return p(1);if(v===u)return p(7);var m=(h={},h[a]=t,h[s]=n,h[i]=e,h)[v]||1,g=this.$d.getTime()+r*m;return O.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),a=this.$H,s=this.$m,o=this.$M,u=n.weekdays,f=n.months,c=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},l=function(e){return O.s(a%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:O.s(o+1,2,"0"),MMM:c(n.monthsShort,o,f,3),MMMM:c(f,o),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:O.s(a,2,"0"),h:l(1),hh:l(2),a:h(a,s,!0),A:h(a,s,!1),m:String(s),mm:O.s(s,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(p,(function(e,t){return t||v[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,d){var v,p=O.p(h),m=M(r),g=(m.utcOffset()-this.utcOffset())*t,y=this-m,w=O.m(this,m);return w=(v={},v[l]=w/12,v[f]=w,v[c]=w/3,v[u]=(y-g)/6048e5,v[o]=(y-g)/864e5,v[s]=y/n,v[a]=y/t,v[i]=y/e,v)[p]||y,d?w:O.a(w)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return $[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=b(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),x=D.prototype;return M.prototype=x,[["$ms",r],["$s",i],["$m",a],["$H",s],["$W",o],["$M",f],["$y",l],["$D",h]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,D,M),e.$i=!0),M},M.locale=b,M.isDayjs=S,M.unix=function(e){return M(1e3*e)},M.en=$[w],M.Ls=$,M.p={},M}))}));
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var dateShort=function(e){return new Date(e).toUTCString()};var dateDiff=function(e,t){if(!e||!t){return""}var n=dayjs_min(e);var r=dayjs_min(t);var i=function(e){return e===1?"":"s"};var a=r.diff(n,"year",true);if(Number.isInteger(a)){return"".concat(a," year").concat(i(a))}var s=r.diff(n,"month",true);if(Number.isInteger(s)){return"".concat(s," month").concat(i(s))}var o=r.diff(n,"day");return"".concat(o," day").concat(i(o))};var basicInformation="Basic Information";var subjectName="Subject Name";var issuerName="Issuer Name";var publicKeyInfo="Public Key Info";var signature="Signature";var extensions="Extensions";var miscellaneous="Miscellaneous";var download="Download";var serialNumber="Serial Number";var version="Version";var validity="Validity";var issued="Issued";var expired="Expired";var algorithm="Algorithm";var namedCurve="Named Curve";var exponent="Exponent";var modulus="Modulus";var value="Value";var valid="Valid";var revoked="Revoked";var issuer="Issuer";var name="Name";var publicKey="Public Key";var fingerprint="Fingerprint";var fingerprints="Fingerprints";var actions="Actions";var details="Details";var testURLs="Test URLs";var certificateDetails="Certificate Details";var holder="Holder";var digestInfo="Digest Info";var type="Type";var en={basicInformation:basicInformation,subjectName:subjectName,issuerName:issuerName,publicKeyInfo:publicKeyInfo,signature:signature,extensions:extensions,miscellaneous:miscellaneous,download:download,"download.pem":"Download PEM","download.der":"Download DER",serialNumber:serialNumber,version:version,validity:validity,issued:issued,expired:expired,algorithm:algorithm,namedCurve:namedCurve,exponent:exponent,modulus:modulus,value:value,valid:valid,revoked:revoked,issuer:issuer,name:name,publicKey:publicKey,fingerprint:fingerprint,fingerprints:fingerprints,actions:actions,details:details,testURLs:testURLs,certificateDetails:certificateDetails,holder:holder,digestInfo:digestInfo,type:type};
|
|
33
|
-
/**
|
|
34
|
-
* @license
|
|
35
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var MESSAGES_ALL={en:en};var Localization=function(){function e(){var e=this;this.setLocale=function(t){e.locale=t&&MESSAGES_ALL[t]?t:"en"};this.getLocale=function(){return e.locale};var t=window.navigator.language.slice(0,2).toLowerCase();this.setLocale(t)}e.prototype.getString=function(e,t){var n=MESSAGES_ALL[this.locale][e];if(!n){return""}if(!t){return n}var r=n.split(t.pattern);if(r.length>1){return[r[0],t.replacer,r[1]]}return n};return e}();var l10n=new Localization;export{dateShort as a,dateDiff as d,history as h,l10n as l};
|
package/dist/esm-es5/loader.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-bbd484d9.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,i){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["peculiar-attribute-certificate-viewer_9",[[1,"peculiar-certificate-decoder",{certificateExample:[1,"certificate-example"],certificateDecoded:[32]}],[1,"peculiar-attribute-certificate-viewer",{certificate:[1],download:[4],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],isDecodeInProcess:[32]}],[1,"peculiar-csr-viewer",{certificate:[513],download:[4],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-certificate-viewer",{certificate:[513],download:[516],authKeyIdParentLink:[513,"auth-key-id-parent-link"],authKeyIdSiblingsLink:[513,"auth-key-id-siblings-link"],subjectKeyIdChildrenLink:[513,"subject-key-id-children-link"],subjectKeyIdSiblingsLink:[513,"subject-key-id-siblings-link"],issuerDnLink:[513,"issuer-dn-link"],view:[513],isDecodeInProcess:[32]}],[1,"peculiar-button-split",{onClick:[16],fill:[1],actions:[16],open:[32]}],[1,"peculiar-text-hider",{opened:[1540]},[[0,"textExpand","textExpandHandler"]]],[1,"peculiar-link",{href:[513],type:[513]}],[1,"peculiar-typography",{type:[513],color:[1],align:[1],ellipsis:[4],monospace:[4]}],[1,"peculiar-button",{fill:[1],disabled:[516],href:[1],target:[1],onClick:[16]}]]],["peculiar-certificate-summary_3",[[1,"peculiar-certificate-summary",{certificate:[16],showIssuer:[4,"show-issuer"]}],[1,"peculiar-circular-progress",{size:[2],width:[2]}],[1,"peculiar-highlight-words",{search:[1]}]]],["peculiar-certificates-viewer",[[1,"peculiar-certificates-viewer",{certificates:[16],filterWithSearch:[4,"filter-with-search"],highlightWithSearch:[4,"highlight-with-search"],search:[32],certificatesDecoded:[32],expandedRow:[32],certificateSelectedForDetails:[32],isDecodeInProcess:[32]}]]]],i)}))};export{defineCustomElements};
|