@epigraph/epigraph-std-lib 5.0.0-alpha.14 → 5.0.0-alpha.15
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/README.md +68 -68
- package/dist/Epigraph/epigraph.cjs +1 -1
- package/dist/Epigraph/epigraph.js +94 -126
- package/dist/Epigraph/epigraphBaseSolutions.cjs +1 -1
- package/dist/Epigraph/epigraphBaseSolutions.js +60 -68
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.cjs +1 -16
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalytics.js +2 -1057
- package/dist/EpigraphLibs/EpigraphAnalytics/epigraphAnalyticsEventLibrary.d.ts +1 -0
- package/dist/EpigraphLibs/EpigraphLogger/epigraphLogger.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphLogger/epigraphLogger.js +74 -198
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphNexusApi/epigraphNexusApi.js +197 -425
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.cjs +1 -7
- package/dist/EpigraphLibs/EpigraphQrCodeGenerator/epigraphQrCodeGenerator.js +2 -78
- package/dist/EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphResultFactory/epigraphResultFactory.js +24 -26
- package/dist/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphUnitsConverter/epigraphUnitsConverter.js +2 -88
- package/dist/EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.cjs +1 -1
- package/dist/EpigraphLibs/EpigraphUrlProcessor/epigraphUrlProcessor.js +44 -75
- package/dist/enums-BSSe4NAs.js +8 -0
- package/dist/enums-PfFMiIoe.cjs +1 -0
- package/dist/epigraph-std-lib.cjs +1 -1
- package/dist/epigraph-std-lib.js +11 -74
- package/dist/epigraphAnalytics-Cl98luUT.cjs +1 -0
- package/dist/epigraphAnalytics-DzLB3jQX.js +811 -0
- package/dist/epigraphQrCodeGenerator-BXUNL2XK.js +54 -0
- package/dist/epigraphQrCodeGenerator-F2eLrPC_.cjs +7 -0
- package/dist/epigraphUnitsConverter-CwpmWl7p.cjs +1 -0
- package/dist/epigraphUnitsConverter-DsX4Rmsp.js +66 -0
- package/dist/lit--5TUYSGn.js +508 -0
- package/dist/lit-DZtv4Pds.cjs +2 -0
- package/package.json +40 -40
- package/dist/enums-1vqWxJ0i.cjs +0 -1
- package/dist/enums-CvOTKyNu.js +0 -5
- package/dist/lit-element-C3moVMGu.js +0 -524
- package/dist/lit-element-CYaaFRfk.cjs +0 -19
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=globalThis,t=e.ShadowRoot&&(e.ShadyCSS===void 0||e.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap,i=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,n=this.t;if(t&&e===void 0){let t=n!==void 0&&n.length===1;t&&(e=r.get(n)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&r.set(n,e))}return e}toString(){return this.cssText}},a=e=>new i(typeof e==`string`?e:e+``,void 0,n),o=(e,...t)=>new i(e.length===1?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1]),e[0]),e,n),s=(n,r)=>{if(t)n.adoptedStyleSheets=r.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let t of r){let r=document.createElement(`style`),i=e.litNonce;i!==void 0&&r.setAttribute(`nonce`,i),r.textContent=t.cssText,n.appendChild(r)}},c=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return a(t)})(e):e,{is:l,defineProperty:u,getOwnPropertyDescriptor:d,getOwnPropertyNames:ee,getOwnPropertySymbols:te,getPrototypeOf:f}=Object,p=globalThis,m=p.trustedTypes,h=m?m.emptyScript:``,g=p.reactiveElementPolyfillSupport,_=(e,t)=>e,v={toAttribute(e,t){switch(t){case Boolean:e=e?h:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},y=(e,t)=>!l(e,t),b={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol(`metadata`),p.litPropertyMetadata??=new WeakMap;var x=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=b){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&u(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??b}static _$Ei(){if(this.hasOwnProperty(_(`elementProperties`)))return;let e=f(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(_(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_(`properties`))){let e=this.properties,t=[...ee(e),...te(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(c(e))}else e!==void 0&&t.push(c(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?v:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?v:e.converter;this._$Em=r,this[r]=i.fromAttribute(t,e.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){let r=this.constructor,i=this[e];if(n??=r.getPropertyOptions(e),!((n.hasChanged??y)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};x.elementStyles=[],x.shadowRootOptions={mode:`open`},x[_(`elementProperties`)]=new Map,x[_(`finalized`)]=new Map,g?.({ReactiveElement:x}),(p.reactiveElementVersions??=[]).push(`2.1.0`);var S=globalThis,C=S.trustedTypes,w=C?C.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,T=`$lit$`,E=`lit$${Math.random().toFixed(9).slice(2)}$`,D=`?`+E,ne=`<${D}>`,O=document,k=()=>O.createComment(``),A=e=>e===null||typeof e!=`object`&&typeof e!=`function`,j=Array.isArray,re=e=>j(e)||typeof e?.[Symbol.iterator]==`function`,M=`[
|
|
2
|
+
\f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,F=/>/g,I=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),L=/'/g,R=/"/g,z=/^(?:script|style|textarea|title)$/i,ie=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),B=Symbol.for(`lit-noChange`),V=Symbol.for(`lit-nothing`),H=new WeakMap,U=O.createTreeWalker(O,129);function W(e,t){if(!j(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return w===void 0?t:w.createHTML(t)}var G=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=N;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===N?c[1]===`!--`?o=P:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=I):(z.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=I):o=F:o===I?c[0]===`>`?(o=i??N,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?I:c[3]===`"`?R:L):o===R||o===L?o=I:o===P||o===F?o=N:(o=I,i=void 0);let d=o===I&&e[t+1].startsWith(`/>`)?` `:``;a+=o===N?n+ne:l>=0?(r.push(s),n.slice(0,l)+T+n.slice(l)+E+d):n+E+(l===-2?t:d)}return[W(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},K=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=G(t,n);if(this.el=e.createElement(l,r),U.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=U.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(T)){let t=u[o++],n=i.getAttribute(e).split(E),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Z:r[1]===`?`?ae:r[1]===`@`?oe:X}),i.removeAttribute(e)}else e.startsWith(E)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(z.test(i.tagName)){let e=i.textContent.split(E),t=e.length-1;if(t>0){i.textContent=C?C.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],k()),U.nextNode(),c.push({type:2,index:++a});i.append(e[t],k())}}}else if(i.nodeType===8)if(i.data===D)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(E,e+1))!==-1;)c.push({type:7,index:a}),e+=E.length-1}a++}}static createElement(e,t){let n=O.createElement(`template`);return n.innerHTML=e,n}};function q(e,t,n=e,r){if(t===B)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=A(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=q(e,i._$AS(e,t.values),i,r)),t}var J=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??O).importNode(t,!0);U.currentNode=r;let i=U.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Y(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new se(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=U.nextNode(),a++)}return U.currentNode=O,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Y=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=q(this,e,t),A(e)?e===V||e==null||e===``?(this._$AH!==V&&this._$AR(),this._$AH=V):e!==this._$AH&&e!==B&&this._(e):e._$litType$===void 0?e.nodeType===void 0?re(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==V&&A(this._$AH)?this._$AA.nextSibling.data=e:this.T(O.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=K.createElement(W(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new J(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=H.get(e.strings);return t===void 0&&H.set(e.strings,t=new K(e)),t}k(t){j(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(k()),this.O(k()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=V}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=q(this,e,t,0),a=!A(e)||e!==this._$AH&&e!==B,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=q(this,r[n+o],t,o),s===B&&(s=this._$AH[o]),a||=!A(s)||s!==this._$AH[o],s===V?e=V:e!==V&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Z=class extends X{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===V?void 0:e}},ae=class extends X{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==V)}},oe=class extends X{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=q(this,e,t,0)??V)===B)return;let n=this._$AH,r=e===V&&n!==V||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==V&&(n===V||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},se=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}},ce=S.litHtmlPolyfillSupport;ce?.(K,Y),(S.litHtmlVersions??=[]).push(`3.3.0`);var le=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Y(t.insertBefore(k(),e),e,void 0,n??{})}return i._$AI(e),i},Q=globalThis,$=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=le(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return B}};$._$litElement$=!0,$.finalized=!0,Q.litElementHydrateSupport?.({LitElement:$});var ue=Q.litElementPolyfillSupport;ue?.({LitElement:$}),(Q.litElementVersions??=[]).push(`4.2.0`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return $}});
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@epigraph/epigraph-std-lib",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/epigraph-std-lib.cjs",
|
|
6
|
-
"module": "./dist/epigraph-std-lib.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"dist/**/*"
|
|
10
|
-
],
|
|
11
|
-
"types": "./dist/epigraph-std-lib.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./dist/epigraph-std-lib.d.ts",
|
|
15
|
-
"import": "./dist/epigraph-std-lib.js",
|
|
16
|
-
"require": "./dist/epigraph-std-lib.cjs"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "vite --force",
|
|
21
|
-
"build": "tsc -b ./tsconfig.lib.json && vite build",
|
|
22
|
-
"preview": "vite preview",
|
|
23
|
-
"prepublishOnly": "npm run build",
|
|
24
|
-
"test": "npm run build && vitest"
|
|
25
|
-
},
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"lit": "^3.2.1",
|
|
28
|
-
"qr-creator": "^1.0.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@types/google.analytics": "^0.0.42",
|
|
32
|
-
"@types/gtag.js": "^0.0.20",
|
|
33
|
-
"@types/node": "^22.13.0",
|
|
34
|
-
"happy-dom": "^20.10.4",
|
|
35
|
-
"typescript": "^5.8.2",
|
|
36
|
-
"vite": "^8.0.16",
|
|
37
|
-
"vite-plugin-dts": "^
|
|
38
|
-
"vitest": "^4.1.9"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@epigraph/epigraph-std-lib",
|
|
3
|
+
"version": "5.0.0-alpha.15",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/epigraph-std-lib.cjs",
|
|
6
|
+
"module": "./dist/epigraph-std-lib.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dist/**/*"
|
|
10
|
+
],
|
|
11
|
+
"types": "./dist/epigraph-std-lib.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/epigraph-std-lib.d.ts",
|
|
15
|
+
"import": "./dist/epigraph-std-lib.js",
|
|
16
|
+
"require": "./dist/epigraph-std-lib.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite --force",
|
|
21
|
+
"build": "tsc -b ./tsconfig.lib.json && vite build",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"prepublishOnly": "npm run build",
|
|
24
|
+
"test": "npm run build && vitest"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"lit": "^3.2.1",
|
|
28
|
+
"qr-creator": "^1.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/google.analytics": "^0.0.42",
|
|
32
|
+
"@types/gtag.js": "^0.0.20",
|
|
33
|
+
"@types/node": "^22.13.0",
|
|
34
|
+
"happy-dom": "^20.10.4",
|
|
35
|
+
"typescript": "^5.8.2",
|
|
36
|
+
"vite": "^8.0.16",
|
|
37
|
+
"vite-plugin-dts": "^5.0.3",
|
|
38
|
+
"vitest": "^4.1.9"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/dist/enums-1vqWxJ0i.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var p=(t=>(t.DEVELOPMENT="development",t.STAGING="staging",t.PRODUCTION="production",t))(p||{}),a=(t=>(t.PRODUCTION="https://api.myepigraph.com/api/",t.STAGING="https://nexus.epigraph.dev/api/",t.STAGING_CANARY="https://staging-canary.epigraph.dev/api/",t.LOCAL="https://nexus.test/api/",t))(a||{});exports.ENVIRONMENT_TYPE=p;exports.NexusEndpoints=a;
|
package/dist/enums-CvOTKyNu.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var p = /* @__PURE__ */ ((a) => (a.DEVELOPMENT = "development", a.STAGING = "staging", a.PRODUCTION = "production", a))(p || {}), t = /* @__PURE__ */ ((a) => (a.PRODUCTION = "https://api.myepigraph.com/api/", a.STAGING = "https://nexus.epigraph.dev/api/", a.STAGING_CANARY = "https://staging-canary.epigraph.dev/api/", a.LOCAL = "https://nexus.test/api/", a))(t || {});
|
|
2
|
-
export {
|
|
3
|
-
p as E,
|
|
4
|
-
t as N
|
|
5
|
-
};
|
|
@@ -1,524 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/
|
|
6
|
-
const U = globalThis, k = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), B = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let Q = class {
|
|
8
|
-
constructor(t, e, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !== D) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
-
this.cssText = t, this.t = e;
|
|
11
|
-
}
|
|
12
|
-
get styleSheet() {
|
|
13
|
-
let t = this.o;
|
|
14
|
-
const e = this.t;
|
|
15
|
-
if (k && t === void 0) {
|
|
16
|
-
const s = e !== void 0 && e.length === 1;
|
|
17
|
-
s && (t = B.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && B.set(e, t));
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
}
|
|
21
|
-
toString() {
|
|
22
|
-
return this.cssText;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const it = (r) => new Q(typeof r == "string" ? r : r + "", void 0, D), Ct = (r, ...t) => {
|
|
26
|
-
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
27
|
-
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
|
-
if (typeof o == "number") return o;
|
|
29
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
-
})(i) + r[n + 1], r[0]);
|
|
31
|
-
return new Q(e, r, D);
|
|
32
|
-
}, rt = (r, t) => {
|
|
33
|
-
if (k) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
|
-
else for (const e of t) {
|
|
35
|
-
const s = document.createElement("style"), i = U.litNonce;
|
|
36
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
37
|
-
}
|
|
38
|
-
}, I = k ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
39
|
-
let e = "";
|
|
40
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
41
|
-
return it(e);
|
|
42
|
-
})(r) : r;
|
|
43
|
-
/**
|
|
44
|
-
* @license
|
|
45
|
-
* Copyright 2017 Google LLC
|
|
46
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/
|
|
48
|
-
const { is: nt, defineProperty: ot, getOwnPropertyDescriptor: ht, getOwnPropertyNames: at, getOwnPropertySymbols: lt, getPrototypeOf: ct } = Object, M = globalThis, V = M.trustedTypes, dt = V ? V.emptyScript : "", pt = M.reactiveElementPolyfillSupport, S = (r, t) => r, R = { toAttribute(r, t) {
|
|
49
|
-
switch (t) {
|
|
50
|
-
case Boolean:
|
|
51
|
-
r = r ? dt : null;
|
|
52
|
-
break;
|
|
53
|
-
case Object:
|
|
54
|
-
case Array:
|
|
55
|
-
r = r == null ? r : JSON.stringify(r);
|
|
56
|
-
}
|
|
57
|
-
return r;
|
|
58
|
-
}, fromAttribute(r, t) {
|
|
59
|
-
let e = r;
|
|
60
|
-
switch (t) {
|
|
61
|
-
case Boolean:
|
|
62
|
-
e = r !== null;
|
|
63
|
-
break;
|
|
64
|
-
case Number:
|
|
65
|
-
e = r === null ? null : Number(r);
|
|
66
|
-
break;
|
|
67
|
-
case Object:
|
|
68
|
-
case Array:
|
|
69
|
-
try {
|
|
70
|
-
e = JSON.parse(r);
|
|
71
|
-
} catch {
|
|
72
|
-
e = null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return e;
|
|
76
|
-
} }, X = (r, t) => !nt(r, t), W = { attribute: !0, type: String, converter: R, reflect: !1, useDefault: !1, hasChanged: X };
|
|
77
|
-
Symbol.metadata ??= Symbol("metadata"), M.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
78
|
-
let y = class extends HTMLElement {
|
|
79
|
-
static addInitializer(t) {
|
|
80
|
-
this._$Ei(), (this.l ??= []).push(t);
|
|
81
|
-
}
|
|
82
|
-
static get observedAttributes() {
|
|
83
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
|
-
}
|
|
85
|
-
static createProperty(t, e = W) {
|
|
86
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
88
|
-
i !== void 0 && ot(this.prototype, t, i);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
static getPropertyDescriptor(t, e, s) {
|
|
92
|
-
const { get: i, set: n } = ht(this.prototype, t) ?? { get() {
|
|
93
|
-
return this[e];
|
|
94
|
-
}, set(o) {
|
|
95
|
-
this[e] = o;
|
|
96
|
-
} };
|
|
97
|
-
return { get: i, set(o) {
|
|
98
|
-
const d = i?.call(this);
|
|
99
|
-
n?.call(this, o), this.requestUpdate(t, d, s);
|
|
100
|
-
}, configurable: !0, enumerable: !0 };
|
|
101
|
-
}
|
|
102
|
-
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ?? W;
|
|
104
|
-
}
|
|
105
|
-
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(S("elementProperties"))) return;
|
|
107
|
-
const t = ct(this);
|
|
108
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
|
-
}
|
|
110
|
-
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(S("finalized"))) return;
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
|
|
113
|
-
const e = this.properties, s = [...at(e), ...lt(e)];
|
|
114
|
-
for (const i of s) this.createProperty(i, e[i]);
|
|
115
|
-
}
|
|
116
|
-
const t = this[Symbol.metadata];
|
|
117
|
-
if (t !== null) {
|
|
118
|
-
const e = litPropertyMetadata.get(t);
|
|
119
|
-
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
120
|
-
}
|
|
121
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
122
|
-
for (const [e, s] of this.elementProperties) {
|
|
123
|
-
const i = this._$Eu(e, s);
|
|
124
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
125
|
-
}
|
|
126
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
127
|
-
}
|
|
128
|
-
static finalizeStyles(t) {
|
|
129
|
-
const e = [];
|
|
130
|
-
if (Array.isArray(t)) {
|
|
131
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const i of s) e.unshift(I(i));
|
|
133
|
-
} else t !== void 0 && e.push(I(t));
|
|
134
|
-
return e;
|
|
135
|
-
}
|
|
136
|
-
static _$Eu(t, e) {
|
|
137
|
-
const s = e.attribute;
|
|
138
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
139
|
-
}
|
|
140
|
-
constructor() {
|
|
141
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
142
|
-
}
|
|
143
|
-
_$Ev() {
|
|
144
|
-
this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
|
|
145
|
-
}
|
|
146
|
-
addController(t) {
|
|
147
|
-
(this._$EO ??= /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && t.hostConnected?.();
|
|
148
|
-
}
|
|
149
|
-
removeController(t) {
|
|
150
|
-
this._$EO?.delete(t);
|
|
151
|
-
}
|
|
152
|
-
_$E_() {
|
|
153
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
154
|
-
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
155
|
-
t.size > 0 && (this._$Ep = t);
|
|
156
|
-
}
|
|
157
|
-
createRenderRoot() {
|
|
158
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
159
|
-
return rt(t, this.constructor.elementStyles), t;
|
|
160
|
-
}
|
|
161
|
-
connectedCallback() {
|
|
162
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
163
|
-
}
|
|
164
|
-
enableUpdating(t) {
|
|
165
|
-
}
|
|
166
|
-
disconnectedCallback() {
|
|
167
|
-
this._$EO?.forEach((t) => t.hostDisconnected?.());
|
|
168
|
-
}
|
|
169
|
-
attributeChangedCallback(t, e, s) {
|
|
170
|
-
this._$AK(t, s);
|
|
171
|
-
}
|
|
172
|
-
_$ET(t, e) {
|
|
173
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
174
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
175
|
-
const n = (s.converter?.toAttribute !== void 0 ? s.converter : R).toAttribute(e, s.type);
|
|
176
|
-
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
_$AK(t, e) {
|
|
180
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
181
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
182
|
-
const n = s.getPropertyOptions(i), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : R;
|
|
183
|
-
this._$Em = i, this[i] = o.fromAttribute(e, n.type) ?? this._$Ej?.get(i) ?? null, this._$Em = null;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
requestUpdate(t, e, s) {
|
|
187
|
-
if (t !== void 0) {
|
|
188
|
-
const i = this.constructor, n = this[t];
|
|
189
|
-
if (s ??= i.getPropertyOptions(t), !((s.hasChanged ?? X)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s)))) return;
|
|
190
|
-
this.C(t, e, s);
|
|
191
|
-
}
|
|
192
|
-
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
193
|
-
}
|
|
194
|
-
C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
|
|
195
|
-
s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
|
|
196
|
-
}
|
|
197
|
-
async _$EP() {
|
|
198
|
-
this.isUpdatePending = !0;
|
|
199
|
-
try {
|
|
200
|
-
await this._$ES;
|
|
201
|
-
} catch (e) {
|
|
202
|
-
Promise.reject(e);
|
|
203
|
-
}
|
|
204
|
-
const t = this.scheduleUpdate();
|
|
205
|
-
return t != null && await t, !this.isUpdatePending;
|
|
206
|
-
}
|
|
207
|
-
scheduleUpdate() {
|
|
208
|
-
return this.performUpdate();
|
|
209
|
-
}
|
|
210
|
-
performUpdate() {
|
|
211
|
-
if (!this.isUpdatePending) return;
|
|
212
|
-
if (!this.hasUpdated) {
|
|
213
|
-
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
214
|
-
for (const [i, n] of this._$Ep) this[i] = n;
|
|
215
|
-
this._$Ep = void 0;
|
|
216
|
-
}
|
|
217
|
-
const s = this.constructor.elementProperties;
|
|
218
|
-
if (s.size > 0) for (const [i, n] of s) {
|
|
219
|
-
const { wrapped: o } = n, d = this[i];
|
|
220
|
-
o !== !0 || this._$AL.has(i) || d === void 0 || this.C(i, void 0, n, d);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
let t = !1;
|
|
224
|
-
const e = this._$AL;
|
|
225
|
-
try {
|
|
226
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((s) => s.hostUpdate?.()), this.update(e)) : this._$EM();
|
|
227
|
-
} catch (s) {
|
|
228
|
-
throw t = !1, this._$EM(), s;
|
|
229
|
-
}
|
|
230
|
-
t && this._$AE(e);
|
|
231
|
-
}
|
|
232
|
-
willUpdate(t) {
|
|
233
|
-
}
|
|
234
|
-
_$AE(t) {
|
|
235
|
-
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
236
|
-
}
|
|
237
|
-
_$EM() {
|
|
238
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
239
|
-
}
|
|
240
|
-
get updateComplete() {
|
|
241
|
-
return this.getUpdateComplete();
|
|
242
|
-
}
|
|
243
|
-
getUpdateComplete() {
|
|
244
|
-
return this._$ES;
|
|
245
|
-
}
|
|
246
|
-
shouldUpdate(t) {
|
|
247
|
-
return !0;
|
|
248
|
-
}
|
|
249
|
-
update(t) {
|
|
250
|
-
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
|
|
251
|
-
}
|
|
252
|
-
updated(t) {
|
|
253
|
-
}
|
|
254
|
-
firstUpdated(t) {
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[S("elementProperties")] = /* @__PURE__ */ new Map(), y[S("finalized")] = /* @__PURE__ */ new Map(), pt?.({ ReactiveElement: y }), (M.reactiveElementVersions ??= []).push("2.1.0");
|
|
258
|
-
/**
|
|
259
|
-
* @license
|
|
260
|
-
* Copyright 2017 Google LLC
|
|
261
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
262
|
-
*/
|
|
263
|
-
const L = globalThis, H = L.trustedTypes, q = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Y = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, tt = "?" + _, ut = `<${tt}>`, m = document, b = () => m.createComment(""), w = (r) => r === null || typeof r != "object" && typeof r != "function", j = Array.isArray, $t = (r) => j(r) || typeof r?.[Symbol.iterator] == "function", N = `[
|
|
264
|
-
\f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J = /-->/g, K = />/g, f = RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
|
|
265
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, F = /"/g, et = /^(?:script|style|textarea|title)$/i, _t = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), xt = _t(1), g = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), G = /* @__PURE__ */ new WeakMap(), A = m.createTreeWalker(m, 129);
|
|
266
|
-
function st(r, t) {
|
|
267
|
-
if (!j(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
268
|
-
return q !== void 0 ? q.createHTML(t) : t;
|
|
269
|
-
}
|
|
270
|
-
const ft = (r, t) => {
|
|
271
|
-
const e = r.length - 1, s = [];
|
|
272
|
-
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = E;
|
|
273
|
-
for (let d = 0; d < e; d++) {
|
|
274
|
-
const h = r[d];
|
|
275
|
-
let l, p, a = -1, u = 0;
|
|
276
|
-
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === E ? p[1] === "!--" ? o = J : p[1] !== void 0 ? o = K : p[2] !== void 0 ? (et.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = f) : p[3] !== void 0 && (o = f) : o === f ? p[0] === ">" ? (o = i ?? E, a = -1) : p[1] === void 0 ? a = -2 : (a = o.lastIndex - p[2].length, l = p[1], o = p[3] === void 0 ? f : p[3] === '"' ? F : Z) : o === F || o === Z ? o = f : o === J || o === K ? o = E : (o = f, i = void 0);
|
|
277
|
-
const $ = o === f && r[d + 1].startsWith("/>") ? " " : "";
|
|
278
|
-
n += o === E ? h + ut : a >= 0 ? (s.push(l), h.slice(0, a) + Y + h.slice(a) + _ + $) : h + _ + (a === -2 ? d : $);
|
|
279
|
-
}
|
|
280
|
-
return [st(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
281
|
-
};
|
|
282
|
-
class C {
|
|
283
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
|
284
|
-
let i;
|
|
285
|
-
this.parts = [];
|
|
286
|
-
let n = 0, o = 0;
|
|
287
|
-
const d = t.length - 1, h = this.parts, [l, p] = ft(t, e);
|
|
288
|
-
if (this.el = C.createElement(l, s), A.currentNode = this.el.content, e === 2 || e === 3) {
|
|
289
|
-
const a = this.el.content.firstChild;
|
|
290
|
-
a.replaceWith(...a.childNodes);
|
|
291
|
-
}
|
|
292
|
-
for (; (i = A.nextNode()) !== null && h.length < d; ) {
|
|
293
|
-
if (i.nodeType === 1) {
|
|
294
|
-
if (i.hasAttributes()) for (const a of i.getAttributeNames()) if (a.endsWith(Y)) {
|
|
295
|
-
const u = p[o++], $ = i.getAttribute(a).split(_), x = /([.?@])?(.*)/.exec(u);
|
|
296
|
-
h.push({ type: 1, index: n, name: x[2], strings: $, ctor: x[1] === "." ? mt : x[1] === "?" ? yt : x[1] === "@" ? gt : T }), i.removeAttribute(a);
|
|
297
|
-
} else a.startsWith(_) && (h.push({ type: 6, index: n }), i.removeAttribute(a));
|
|
298
|
-
if (et.test(i.tagName)) {
|
|
299
|
-
const a = i.textContent.split(_), u = a.length - 1;
|
|
300
|
-
if (u > 0) {
|
|
301
|
-
i.textContent = H ? H.emptyScript : "";
|
|
302
|
-
for (let $ = 0; $ < u; $++) i.append(a[$], b()), A.nextNode(), h.push({ type: 2, index: ++n });
|
|
303
|
-
i.append(a[u], b());
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
} else if (i.nodeType === 8) if (i.data === tt) h.push({ type: 2, index: n });
|
|
307
|
-
else {
|
|
308
|
-
let a = -1;
|
|
309
|
-
for (; (a = i.data.indexOf(_, a + 1)) !== -1; ) h.push({ type: 7, index: n }), a += _.length - 1;
|
|
310
|
-
}
|
|
311
|
-
n++;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
static createElement(t, e) {
|
|
315
|
-
const s = m.createElement("template");
|
|
316
|
-
return s.innerHTML = t, s;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
function v(r, t, e = r, s) {
|
|
320
|
-
if (t === g) return t;
|
|
321
|
-
let i = s !== void 0 ? e._$Co?.[s] : e._$Cl;
|
|
322
|
-
const n = w(t) ? void 0 : t._$litDirective$;
|
|
323
|
-
return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== void 0 && (t = v(r, i._$AS(r, t.values), i, s)), t;
|
|
324
|
-
}
|
|
325
|
-
class At {
|
|
326
|
-
constructor(t, e) {
|
|
327
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
328
|
-
}
|
|
329
|
-
get parentNode() {
|
|
330
|
-
return this._$AM.parentNode;
|
|
331
|
-
}
|
|
332
|
-
get _$AU() {
|
|
333
|
-
return this._$AM._$AU;
|
|
334
|
-
}
|
|
335
|
-
u(t) {
|
|
336
|
-
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? m).importNode(e, !0);
|
|
337
|
-
A.currentNode = i;
|
|
338
|
-
let n = A.nextNode(), o = 0, d = 0, h = s[0];
|
|
339
|
-
for (; h !== void 0; ) {
|
|
340
|
-
if (o === h.index) {
|
|
341
|
-
let l;
|
|
342
|
-
h.type === 2 ? l = new P(n, n.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (l = new vt(n, this, t)), this._$AV.push(l), h = s[++d];
|
|
343
|
-
}
|
|
344
|
-
o !== h?.index && (n = A.nextNode(), o++);
|
|
345
|
-
}
|
|
346
|
-
return A.currentNode = m, i;
|
|
347
|
-
}
|
|
348
|
-
p(t) {
|
|
349
|
-
let e = 0;
|
|
350
|
-
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
class P {
|
|
354
|
-
get _$AU() {
|
|
355
|
-
return this._$AM?._$AU ?? this._$Cv;
|
|
356
|
-
}
|
|
357
|
-
constructor(t, e, s, i) {
|
|
358
|
-
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = i?.isConnected ?? !0;
|
|
359
|
-
}
|
|
360
|
-
get parentNode() {
|
|
361
|
-
let t = this._$AA.parentNode;
|
|
362
|
-
const e = this._$AM;
|
|
363
|
-
return e !== void 0 && t?.nodeType === 11 && (t = e.parentNode), t;
|
|
364
|
-
}
|
|
365
|
-
get startNode() {
|
|
366
|
-
return this._$AA;
|
|
367
|
-
}
|
|
368
|
-
get endNode() {
|
|
369
|
-
return this._$AB;
|
|
370
|
-
}
|
|
371
|
-
_$AI(t, e = this) {
|
|
372
|
-
t = v(this, t, e), w(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : $t(t) ? this.k(t) : this._(t);
|
|
373
|
-
}
|
|
374
|
-
O(t) {
|
|
375
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
376
|
-
}
|
|
377
|
-
T(t) {
|
|
378
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
379
|
-
}
|
|
380
|
-
_(t) {
|
|
381
|
-
this._$AH !== c && w(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t;
|
|
382
|
-
}
|
|
383
|
-
$(t) {
|
|
384
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = C.createElement(st(s.h, s.h[0]), this.options)), s);
|
|
385
|
-
if (this._$AH?._$AD === i) this._$AH.p(e);
|
|
386
|
-
else {
|
|
387
|
-
const n = new At(i, this), o = n.u(this.options);
|
|
388
|
-
n.p(e), this.T(o), this._$AH = n;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
_$AC(t) {
|
|
392
|
-
let e = G.get(t.strings);
|
|
393
|
-
return e === void 0 && G.set(t.strings, e = new C(t)), e;
|
|
394
|
-
}
|
|
395
|
-
k(t) {
|
|
396
|
-
j(this._$AH) || (this._$AH = [], this._$AR());
|
|
397
|
-
const e = this._$AH;
|
|
398
|
-
let s, i = 0;
|
|
399
|
-
for (const n of t) i === e.length ? e.push(s = new P(this.O(b()), this.O(b()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
400
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
401
|
-
}
|
|
402
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
|
403
|
-
for (this._$AP?.(!1, !0, e); t && t !== this._$AB; ) {
|
|
404
|
-
const s = t.nextSibling;
|
|
405
|
-
t.remove(), t = s;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
setConnected(t) {
|
|
409
|
-
this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
class T {
|
|
413
|
-
get tagName() {
|
|
414
|
-
return this.element.tagName;
|
|
415
|
-
}
|
|
416
|
-
get _$AU() {
|
|
417
|
-
return this._$AM._$AU;
|
|
418
|
-
}
|
|
419
|
-
constructor(t, e, s, i, n) {
|
|
420
|
-
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
|
|
421
|
-
}
|
|
422
|
-
_$AI(t, e = this, s, i) {
|
|
423
|
-
const n = this.strings;
|
|
424
|
-
let o = !1;
|
|
425
|
-
if (n === void 0) t = v(this, t, e, 0), o = !w(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
|
|
426
|
-
else {
|
|
427
|
-
const d = t;
|
|
428
|
-
let h, l;
|
|
429
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) l = v(this, d[s + h], e, h), l === g && (l = this._$AH[h]), o ||= !w(l) || l !== this._$AH[h], l === c ? t = c : t !== c && (t += (l ?? "") + n[h + 1]), this._$AH[h] = l;
|
|
430
|
-
}
|
|
431
|
-
o && !i && this.j(t);
|
|
432
|
-
}
|
|
433
|
-
j(t) {
|
|
434
|
-
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
class mt extends T {
|
|
438
|
-
constructor() {
|
|
439
|
-
super(...arguments), this.type = 3;
|
|
440
|
-
}
|
|
441
|
-
j(t) {
|
|
442
|
-
this.element[this.name] = t === c ? void 0 : t;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
class yt extends T {
|
|
446
|
-
constructor() {
|
|
447
|
-
super(...arguments), this.type = 4;
|
|
448
|
-
}
|
|
449
|
-
j(t) {
|
|
450
|
-
this.element.toggleAttribute(this.name, !!t && t !== c);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
class gt extends T {
|
|
454
|
-
constructor(t, e, s, i, n) {
|
|
455
|
-
super(t, e, s, i, n), this.type = 5;
|
|
456
|
-
}
|
|
457
|
-
_$AI(t, e = this) {
|
|
458
|
-
if ((t = v(this, t, e, 0) ?? c) === g) return;
|
|
459
|
-
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== c && (s === c || i);
|
|
460
|
-
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
461
|
-
}
|
|
462
|
-
handleEvent(t) {
|
|
463
|
-
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
class vt {
|
|
467
|
-
constructor(t, e, s) {
|
|
468
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
469
|
-
}
|
|
470
|
-
get _$AU() {
|
|
471
|
-
return this._$AM._$AU;
|
|
472
|
-
}
|
|
473
|
-
_$AI(t) {
|
|
474
|
-
v(this, t);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
const Et = L.litHtmlPolyfillSupport;
|
|
478
|
-
Et?.(C, P), (L.litHtmlVersions ??= []).push("3.3.0");
|
|
479
|
-
const St = (r, t, e) => {
|
|
480
|
-
const s = e?.renderBefore ?? t;
|
|
481
|
-
let i = s._$litPart$;
|
|
482
|
-
if (i === void 0) {
|
|
483
|
-
const n = e?.renderBefore ?? null;
|
|
484
|
-
s._$litPart$ = i = new P(t.insertBefore(b(), n), n, void 0, e ?? {});
|
|
485
|
-
}
|
|
486
|
-
return i._$AI(r), i;
|
|
487
|
-
};
|
|
488
|
-
/**
|
|
489
|
-
* @license
|
|
490
|
-
* Copyright 2017 Google LLC
|
|
491
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
492
|
-
*/
|
|
493
|
-
const z = globalThis;
|
|
494
|
-
class O extends y {
|
|
495
|
-
constructor() {
|
|
496
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
497
|
-
}
|
|
498
|
-
createRenderRoot() {
|
|
499
|
-
const t = super.createRenderRoot();
|
|
500
|
-
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
501
|
-
}
|
|
502
|
-
update(t) {
|
|
503
|
-
const e = this.render();
|
|
504
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = St(e, this.renderRoot, this.renderOptions);
|
|
505
|
-
}
|
|
506
|
-
connectedCallback() {
|
|
507
|
-
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
508
|
-
}
|
|
509
|
-
disconnectedCallback() {
|
|
510
|
-
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
511
|
-
}
|
|
512
|
-
render() {
|
|
513
|
-
return g;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
O._$litElement$ = !0, O.finalized = !0, z.litElementHydrateSupport?.({ LitElement: O });
|
|
517
|
-
const bt = z.litElementPolyfillSupport;
|
|
518
|
-
bt?.({ LitElement: O });
|
|
519
|
-
(z.litElementVersions ??= []).push("4.2.0");
|
|
520
|
-
export {
|
|
521
|
-
Ct as a,
|
|
522
|
-
O as i,
|
|
523
|
-
xt as x
|
|
524
|
-
};
|