@telperion/elements 8.1.1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build-manifest.json +22 -1
- package/README.md +34 -0
- package/_chunks/mermaid-cdn-element-0CeuzHyG.d.cts +149 -0
- package/_chunks/mermaid-cdn-element-0CeuzHyG.d.ts +149 -0
- package/button/button.element.cjs +3 -3
- package/button/button.element.js +3 -3
- package/button/index.d.cts +1 -1
- package/button/index.d.ts +1 -1
- package/custom-elements.json +778 -3
- package/fesm/elements.mjs +7 -7
- package/iife/button/index.js +8 -8
- package/iife/elements.js +17 -17
- package/iife/mermaid/cdn.js +114 -0
- package/iife/mermaid/cdn.js.map +1 -0
- package/iife/router/index.js +2 -2
- package/iife/select/index.js +16 -16
- package/mermaid/bundled-mermaid-loader.cjs +7 -0
- package/mermaid/bundled-mermaid-loader.cjs.map +1 -0
- package/mermaid/bundled-mermaid-loader.js +5 -0
- package/mermaid/bundled-mermaid-loader.js.map +1 -0
- package/mermaid/cdn-mermaid-loader.cjs +34 -0
- package/mermaid/cdn-mermaid-loader.cjs.map +1 -0
- package/mermaid/cdn-mermaid-loader.js +29 -0
- package/mermaid/cdn-mermaid-loader.js.map +1 -0
- package/mermaid/cdn.cjs +21 -0
- package/mermaid/cdn.cjs.map +1 -0
- package/mermaid/cdn.d.cts +3 -0
- package/mermaid/cdn.d.ts +3 -0
- package/mermaid/cdn.js +16 -0
- package/mermaid/cdn.js.map +1 -0
- package/mermaid/index.cjs +19 -0
- package/mermaid/index.cjs.map +1 -0
- package/mermaid/index.d.cts +9 -0
- package/mermaid/index.d.ts +9 -0
- package/mermaid/index.js +6 -0
- package/mermaid/index.js.map +1 -0
- package/mermaid/loader.cjs +28 -0
- package/mermaid/loader.cjs.map +1 -0
- package/mermaid/loader.js +24 -0
- package/mermaid/loader.js.map +1 -0
- package/mermaid/mermaid-element-base.cjs +195 -0
- package/mermaid/mermaid-element-base.cjs.map +1 -0
- package/mermaid/mermaid-element-base.js +193 -0
- package/mermaid/mermaid-element-base.js.map +1 -0
- package/mermaid/mermaid-element.cjs +16 -0
- package/mermaid/mermaid-element.cjs.map +1 -0
- package/mermaid/mermaid-element.js +14 -0
- package/mermaid/mermaid-element.js.map +1 -0
- package/mermaid/render.cjs +42 -0
- package/mermaid/render.cjs.map +1 -0
- package/mermaid/render.js +39 -0
- package/mermaid/render.js.map +1 -0
- package/mermaid/source.cjs +27 -0
- package/mermaid/source.cjs.map +1 -0
- package/mermaid/source.js +24 -0
- package/mermaid/source.js.map +1 -0
- package/mermaid/styles.cjs +73 -0
- package/mermaid/styles.cjs.map +1 -0
- package/mermaid/styles.js +71 -0
- package/mermaid/styles.js.map +1 -0
- package/mermaid/theme.cjs +78 -0
- package/mermaid/theme.cjs.map +1 -0
- package/mermaid/theme.js +75 -0
- package/mermaid/theme.js.map +1 -0
- package/package.json +40 -3
- package/select/option.element.cjs +2 -2
- package/select/option.element.js +2 -2
- package/utils/shade-mixer-lit-element.cjs +2 -2
- package/utils/shade-mixer-lit-element.js +2 -2
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
this.TelperionElements=this.TelperionElements||{},function(t){"use strict";const e="12.3.0",r=`https://cdn.jsdelivr.net/npm/mermaid@${e}/dist/mermaid.esm.min.mjs`;let s=r;let i,o=()=>Promise.reject(new Error("[tp-mermaid] No Mermaid loader installed."));function n(t){o=t,i=void 0}function a(t,e,r,s){var i,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(o<3?i(n):o>3?i(e,r,n):i(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2019 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const h=globalThis,l=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),p=new WeakMap;let u=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(l&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=p.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&p.set(e,t))}return t}toString(){return this.cssText}};const m=(t,...e)=>{const r=1===t.length?t[0]:e.reduce((e,r,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1],t[0]);return new u(r,t,d)},f=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,d))(e)})(t):t,{is:g,defineProperty:$,getOwnPropertyDescriptor:_,getOwnPropertyNames:y,getOwnPropertySymbols:v,getPrototypeOf:b}=Object,A=globalThis,E=A.trustedTypes,S=E?E.emptyScript:"",C=A.reactiveElementPolyfillSupport,w=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},k=(t,e)=>!g(t,e),P={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:k};
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2017 Google LLC
|
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
+
*/Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;let M=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=P){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){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);void 0!==s&&$(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){const{get:s,set:i}=_(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const o=s?.call(this);i?.call(this,e),this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??P}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=b(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...y(t),...v(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(l)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const r of e){const e=document.createElement("style"),s=h.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(void 0!==s&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:x).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(s):this.setAttribute(s,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,s=r._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=r.getPropertyOptions(s),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=s;const o=i.fromAttribute(e,t.type);this[s]=o??this._$Ej?.get(s)??o,this._$Em=null}}requestUpdate(t,e,r){if(void 0!==t){const s=this.constructor,i=this[t];if(r??=s.getPropertyOptions(t),!((r.hasChanged??k)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:s,wrapped:i},o){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==i||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t){const{wrapped:t}=r,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,r,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[w("elementProperties")]=new Map,M[w("finalized")]=new Map,C?.({ReactiveElement:M}),(A.reactiveElementVersions??=[]).push("2.1.1");
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/
|
|
18
|
+
const T=globalThis,O=T.trustedTypes,U=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,R="$lit$",N=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+N,j=`<${H}>`,B=document,D=()=>B.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,q="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,F=/>/g,W=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,G=(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}))(1),Q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Y=new WeakMap,tt=B.createTreeWalker(B,129);function et(t,e){if(!z(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==U?U.createHTML(e):e}const rt=(t,e)=>{const r=t.length-1,s=[];let i,o=2===e?"<svg>":3===e?"<math>":"",n=I;for(let e=0;e<r;e++){const r=t[e];let a,c,h=-1,l=0;for(;l<r.length&&(n.lastIndex=l,c=n.exec(r),null!==c);)l=n.lastIndex,n===I?"!--"===c[1]?n=V:void 0!==c[1]?n=F:void 0!==c[2]?(Z.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=W):void 0!==c[3]&&(n=W):n===W?">"===c[0]?(n=i??I,h=-1):void 0===c[1]?h=-2:(h=n.lastIndex-c[2].length,a=c[1],n=void 0===c[3]?W:'"'===c[3]?K:J):n===K||n===J?n=W:n===V||n===F?n=I:(n=W,i=void 0);const d=n===W&&t[e+1].startsWith("/>")?" ":"";o+=n===I?r+j:h>=0?(s.push(a),r.slice(0,h)+R+r.slice(h)+N+d):r+N+(-2===h?e:d)}return[et(t,o+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class st{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let i=0,o=0;const n=t.length-1,a=this.parts,[c,h]=rt(t,e);if(this.el=st.createElement(c,r),tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=tt.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(R)){const e=h[o++],r=s.getAttribute(t).split(N),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:n[2],strings:r,ctor:"."===n[1]?ct:"?"===n[1]?ht:"@"===n[1]?lt:at}),s.removeAttribute(t)}else t.startsWith(N)&&(a.push({type:6,index:i}),s.removeAttribute(t));if(Z.test(s.tagName)){const t=s.textContent.split(N),e=t.length-1;if(e>0){s.textContent=O?O.emptyScript:"";for(let r=0;r<e;r++)s.append(t[r],D()),tt.nextNode(),a.push({type:2,index:++i});s.append(t[e],D())}}}else if(8===s.nodeType)if(s.data===H)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=s.data.indexOf(N,t+1));)a.push({type:7,index:i}),t+=N.length-1}i++}}static createElement(t,e){const r=B.createElement("template");return r.innerHTML=t,r}}function it(t,e,r=t,s){if(e===Q)return e;let i=void 0!==s?r._$Co?.[s]:r._$Cl;const o=L(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(t),i._$AT(t,r,s)),void 0!==s?(r._$Co??=[])[s]=i:r._$Cl=i),void 0!==i&&(e=it(t,i._$AS(t,e.values),i,s)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,s=(t?.creationScope??B).importNode(e,!0);tt.currentNode=s;let i=tt.nextNode(),o=0,n=0,a=r[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new nt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new dt(i,this,t)),this._$AV.push(e),a=r[++n]}o!==a?.index&&(i=tt.nextNode(),o++)}return tt.currentNode=B,s}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),L(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>z(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==X&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,s="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=st.createElement(et(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new ot(s,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new st(t)),e}k(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const i of t)s===e.length?e.push(r=new nt(this.O(D()),this.O(D()),this,this.options)):r=e[s],r._$AI(i),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class at{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,i){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=X}_$AI(t,e=this,r,s){const i=this.strings;let o=!1;if(void 0===i)t=it(this,t,e,0),o=!L(t)||t!==this._$AH&&t!==Q,o&&(this._$AH=t);else{const s=t;let n,a;for(t=i[0],n=0;n<i.length-1;n++)a=it(this,s[r+n],e,n),a===Q&&(a=this._$AH[n]),o||=!L(a)||a!==this._$AH[n],a===X?t=X:t!==X&&(t+=(a??"")+i[n+1]),this._$AH[n]=a}o&&!s&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ct extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}class ht extends at{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==X)}}class lt extends at{constructor(t,e,r,s,i){super(t,e,r,s,i),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??X)===Q)return;const r=this._$AH,s=t===X&&r!==X||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==X&&(r===X||s);s&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class dt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt=T.litHtmlPolyfillSupport;pt?.(st,nt),(T.litHtmlVersions??=[]).push("3.3.1");const ut=globalThis;
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2017 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
+
*/let mt=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{const s=r?.renderBefore??e;let i=s._$litPart$;if(void 0===i){const t=r?.renderBefore??null;s._$litPart$=i=new nt(e.insertBefore(D(),t),t,void 0,r??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}};mt._$litElement$=!0,mt.finalized=!0,ut.litElementHydrateSupport?.({LitElement:mt});const ft=ut.litElementPolyfillSupport;ft?.({LitElement:mt}),(ut.litElementVersions??=[]).push("4.2.1");
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*/
|
|
29
|
+
const gt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:k},$t=(t=gt,e,r)=>{const{kind:s,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(void 0===o&&globalThis.litPropertyMetadata.set(i,o=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),"accessor"===s){const{name:s}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(s,i,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=r;return function(r){const i=this[s];e.call(this,r),this.requestUpdate(s,i,t)}}throw Error("Unsupported decorator location: "+s)};function _t(t){return(e,r)=>"object"==typeof r?$t(t,e,r):((t,e,r)=>{const s=e.hasOwnProperty(r);return e.constructor.createProperty(r,t),s?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}
|
|
30
|
+
/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2017 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/function yt(t){return _t({...t,state:!0,attribute:!1})}
|
|
35
|
+
/**
|
|
36
|
+
* @license
|
|
37
|
+
* Copyright 2017 Google LLC
|
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
+
*/const vt=2;class bt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
40
|
+
/**
|
|
41
|
+
* @license
|
|
42
|
+
* Copyright 2017 Google LLC
|
|
43
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
+
*/class At extends bt{constructor(t){if(super(t),this.it=X,t.type!==vt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this._t=void 0,this.it=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}At.directiveName="unsafeHTML",At.resultType=1;const Et=(t=>(...e)=>({_$litDirective$:t,values:e}))(At),St={startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0};let Ct=Promise.resolve(),wt=0;function xt(t,e){const r=async()=>{const r=await(i??=o().catch(t=>{throw i=void 0,t}));return r.initialize({...e,...St}),r.render("tp-mermaid-"+ ++wt,t)},s=Ct.then(r,r);return Ct=s.catch(()=>{}),s}function kt(t){return""===t.trim()}const Pt={"&":"&","<":"<",">":">",""":'"'," ":" "};function Mt(t){return function(t){const e=t.split("\n");for(;e.length&&kt(e[0]);)e.shift();for(;e.length&&kt(e[e.length-1]);)e.pop();const r=e.filter(t=>!kt(t)).reduce((t,e)=>Math.min(t,e.match(/^[ \t]*/)[0].length),1/0);return Number.isFinite(r)&&0!==r?e.map(t=>t.slice(Math.min(r,t.length))).join("\n"):e.join("\n")}(t.replace(/\r\n?/g,"\n"))}const Tt=[m`
|
|
45
|
+
:host {
|
|
46
|
+
--_tp-mermaid-foreground: var(--tp-mermaid-foreground, var(--tp-color-contrast, hsl(0 0% 12%)));
|
|
47
|
+
--_tp-mermaid-background: var(--tp-mermaid-background, var(--tp-color-white, white));
|
|
48
|
+
--_tp-mermaid-accent: var(--tp-mermaid-accent, var(--tp-color-primary, hsl(220 90% 56%)));
|
|
49
|
+
|
|
50
|
+
--_tp-mermaid-node-background: var(--tp-mermaid-node-background, color-mix(in oklab, var(--_tp-mermaid-accent) 10%, var(--_tp-mermaid-background)));
|
|
51
|
+
--_tp-mermaid-node-border: var(--tp-mermaid-node-border, color-mix(in oklab, var(--_tp-mermaid-accent) 55%, var(--_tp-mermaid-background)));
|
|
52
|
+
--_tp-mermaid-line: var(--tp-mermaid-line, color-mix(in oklab, var(--_tp-mermaid-foreground) 60%, var(--_tp-mermaid-background)));
|
|
53
|
+
--_tp-mermaid-cluster-background: var(--tp-mermaid-cluster-background, color-mix(in oklab, var(--_tp-mermaid-foreground) 4%, var(--_tp-mermaid-background)));
|
|
54
|
+
--_tp-mermaid-cluster-border: var(--tp-mermaid-cluster-border, color-mix(in oklab, var(--_tp-mermaid-foreground) 25%, var(--_tp-mermaid-background)));
|
|
55
|
+
--_tp-mermaid-note-background: var(--tp-mermaid-note-background, color-mix(in oklab, var(--tp-color-warning, hsl(45 100% 50%)) 18%, var(--_tp-mermaid-background)));
|
|
56
|
+
}
|
|
57
|
+
`,m`
|
|
58
|
+
:host {
|
|
59
|
+
display: block;
|
|
60
|
+
color: var(--_tp-mermaid-foreground);
|
|
61
|
+
font-family: var(--tp-mermaid-font-family, inherit);
|
|
62
|
+
font-size: var(--tp-mermaid-font-size, inherit);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host([hidden]) {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.diagram {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: var(--tp-mermaid-align, center);
|
|
72
|
+
overflow: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.diagram svg {
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
height: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Mermaid's parse errors point at the column with a caret line: keep lines and alignment */
|
|
81
|
+
.error {
|
|
82
|
+
margin: 0 0 0.5em;
|
|
83
|
+
color: var(--tp-color-danger, hsl(0 70% 50%));
|
|
84
|
+
white-space: pre-wrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.error,
|
|
88
|
+
.source {
|
|
89
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
|
|
90
|
+
font-size: 0.875em;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.source {
|
|
94
|
+
margin: 0;
|
|
95
|
+
padding: 1em;
|
|
96
|
+
border-radius: 0.5em;
|
|
97
|
+
background: color-mix(in oklab, var(--_tp-mermaid-foreground) 6%, transparent);
|
|
98
|
+
overflow: auto;
|
|
99
|
+
}
|
|
100
|
+
`],Ot={foreground:["primaryTextColor","secondaryTextColor","tertiaryTextColor","textColor","titleColor","nodeTextColor","actorTextColor","signalTextColor","labelTextColor","noteTextColor"],background:["background","edgeLabelBackground"],"node-background":["primaryColor","mainBkg","actorBkg","labelBoxBkgColor"],"node-border":["primaryBorderColor","nodeBorder","actorBorder","labelBoxBorderColor","noteBorderColor"],line:["lineColor","signalColor","actorLineColor"],"cluster-background":["secondaryColor","tertiaryColor","clusterBkg"],"cluster-border":["secondaryBorderColor","tertiaryBorderColor","clusterBorder"],"note-background":["noteBkgColor"]};let Ut;function Rt(t){if(Ut??=function(){try{const t=document.createElement("canvas");return t.width=t.height=1,t.getContext("2d",{willReadFrequently:!0})}catch{return null}}(),!Ut||!t)return t;Ut.clearRect(0,0,1,1),Ut.fillStyle="#000",Ut.fillStyle=t,Ut.fillRect(0,0,1,1);const[e,r,s,i]=Ut.getImageData(0,0,1,1).data;return`rgba(${e}, ${r}, ${s}, ${Math.round(i/255*1e3)/1e3})`}function Nt(t){const e=getComputedStyle(t),r={fontFamily:e.fontFamily,fontSize:e.fontSize};for(const[t,s]of Object.entries(Ot)){const i=e.getPropertyValue(`--_tp-mermaid-${t}`).trim();if(!i)continue;const o=Rt(i);for(const t of s)r[t]=o}const s=function(t){const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/)?.slice(1).map(Number);if(!e)return;const[r,s,i]=e.map(t=>{const e=t/255;return e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return.2126*r+.7152*s+.0722*i}(String(r.background??""));return void 0!==s&&(r.darkMode=s<.4),{theme:"base",themeVariables:r,fontFamily:e.fontFamily}}class Ht extends mt{constructor(){super(...arguments),this.label="",this.status="pending",this.rawSource="",this.svg="",this.error="",this.#t="",this.#e=0,this.#r=Promise.resolve(),this.#s=()=>{this.#t&&this.refresh()}}static{this.styles=Tt}#t;#i;#o;#e;#r;get source(){return this.#t}get renderComplete(){return this.#r}connectedCallback(){super.connectedCallback(),this.#i??=new MutationObserver(()=>this.#n()),this.#i.observe(this,{childList:!0,characterData:!0,subtree:!0}),this.#o??=globalThis.matchMedia?.("(prefers-color-scheme: dark)"),this.#o?.addEventListener("change",this.#s),this.#n()}disconnectedCallback(){super.disconnectedCallback(),this.#i?.disconnect(),this.#o?.removeEventListener("change",this.#s)}willUpdate(t){if(t.has("code")&&this.#n(),t.has("rawSource")){const t=Mt(this.rawSource);t!==this.#t&&(this.#t=t,this.refresh())}}render(){if("error"===this.status)return G`
|
|
101
|
+
<p part="error" class="error" role="alert">${this.error}</p>
|
|
102
|
+
<pre part="source" class="source"><code>${this.#t}</code></pre>
|
|
103
|
+
`;const t=!!this.label;return G`
|
|
104
|
+
<div
|
|
105
|
+
part="diagram"
|
|
106
|
+
class="diagram"
|
|
107
|
+
role=${t?"img":X}
|
|
108
|
+
aria-label=${t?this.label:X}
|
|
109
|
+
aria-busy=${"pending"===this.status?"true":X}
|
|
110
|
+
>
|
|
111
|
+
${Et(this.svg)}
|
|
112
|
+
</div>
|
|
113
|
+
`}refresh(){const t=++this.#e,e=this.#t;return e?(this.status="pending",this.#r=xt(e,Nt(this)).then(async({svg:e,diagramType:r})=>{t===this.#e&&(this.svg=e,this.error="",this.status="rendered",await this.updateComplete,this.#a({diagramType:r}))},async e=>{t===this.#e&&(this.svg="",this.error=function(t){return t instanceof Error?t.message:"string"==typeof t?t:String(t?.message??t)}(e),this.status="error",await this.updateComplete,this.#a({error:this.error}))}),this.#r):(this.svg="",this.status="pending",this.#r=Promise.resolve())}#a(t){this.dispatchEvent(new CustomEvent("tp-mermaid-render",{bubbles:!0,composed:!0,detail:t}))}#s;#n(){this.rawSource=this.code??function(t){const e=t.querySelector(":scope > template");return e?e.innerHTML.replace(/&(?:amp|lt|gt|quot|nbsp);/g,t=>Pt[t]):t.textContent??""}(this)}}a([_t({reflect:!0}),c("design:type",Object)],Ht.prototype,"label",void 0),a([_t({reflect:!0}),c("design:type",String)],Ht.prototype,"status",void 0),a([_t({attribute:!1}),c("design:type",String)],Ht.prototype,"code",void 0),a([yt(),c("design:type",Object)],Ht.prototype,"rawSource",void 0),a([yt(),c("design:type",Object)],Ht.prototype,"svg",void 0),a([yt(),c("design:type",Object)],Ht.prototype,"error",void 0),n(async()=>(await import(s)).default),customElements.get("tp-mermaid")||customElements.define("tp-mermaid",Ht),t.MERMAID_VERSION=e,t.MermaidElement=Ht,t.mermaidCdnUrl=function(){return s},t.setMermaidCdnUrl=function(t=r){s=t},t.setMermaidLoader=n}(this.TelperionElements.Mermaid=this.TelperionElements.Mermaid||{});
|
|
114
|
+
//# sourceMappingURL=cdn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdn.js","sources":["../../../../../libs/elements/src/mermaid/cdn-mermaid-loader.ts","../../../../../libs/elements/src/mermaid/loader.ts","../../../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js","../../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js","../../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js","../../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js","../../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js","../../../../../libs/elements/src/mermaid/render.ts","../../../../../libs/elements/src/code/source.ts","../../../../../libs/elements/src/mermaid/source.ts","../../../../../libs/elements/src/mermaid/styles.ts","../../../../../libs/elements/src/mermaid/theme.ts","../../../../../libs/elements/src/mermaid/mermaid-element-base.ts","../../../../../libs/elements/src/mermaid/mermaid-cdn-element.ts"],"sourcesContent":[null,null,"/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),b={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e(this.prototype,t,h)}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...r(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.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((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:\"open\"},y[d(\"elementProperties\")]=new Map,y[d(\"finalized\")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push(\"2.1.1\");export{y as ReactiveElement,s as adoptStyles,u as defaultConverter,t as getCompatibleStyle,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${Math.random().toFixed(9).slice(2)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=y(3),T=Symbol.for(\"lit-noChange\"),E=Symbol.for(\"lit-nothing\"),A=new WeakMap,C=r.createTreeWalker(r,129);function P(t,i){if(!a(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[P(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?H:\"?\"===e[1]?I:\"@\"===e[1]?L:k}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function S(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=C.nextNode(),o++)}return C.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S(this,t,i),c(t)?t===E||null==t||\"\"===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l()),this.O(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=S(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class I extends k{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=S(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const Z={M:e,P:h,A:o,C:1,L:V,R:M,D:u,V:S,I:R,H:k,N:I,U:L,B:H,F:z},j=t.litHtmlPolyfillSupport;j?.(N,R),(t.litHtmlVersions??=[]).push(\"3.3.1\");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{Z as _$LH,x as html,w as mathml,T as noChange,E as nothing,B as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as r}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const s=globalThis;class i extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r}}i._$litElement$=!0,i[\"finalized\"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push(\"4.2.1\");export{i as LitElement,n as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{nothing as t,noChange as i}from\"../lit-html.js\";import{Directive as r,PartType as s,directive as n}from\"../directive.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class e extends r{constructor(i){if(super(i),this.it=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+\"() can only be used in child bindings\")}render(r){if(r===t||null==r)return this._t=void 0,this.it=r;if(r===i)return r;if(\"string\"!=typeof r)throw Error(this.constructor.directiveName+\"() called with a non-string value\");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName=\"unsafeHTML\",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};\n//# sourceMappingURL=unsafe-html.js.map\n",null,null,null,null,null,null,null],"names":["MERMAID_VERSION","DEFAULT_URL","url","loaded","loader","Promise","reject","Error","setMermaidLoader","next","undefined","__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__metadata","metadataKey","metadataValue","metadata","SuppressedError","t","globalThis","e","ShadowRoot","ShadyCSS","nativeShadow","Document","prototype","CSSStyleSheet","s","Symbol","o","WeakMap","n$3","constructor","this","_$cssResult$","cssText","styleSheet","get","replaceSync","set","toString","reduce","n","cssRules","is","h","getOwnPropertyNames","getOwnPropertySymbols","getPrototypeOf","a","trustedTypes","l","emptyScript","p","reactiveElementPolyfillSupport","u","toAttribute","Boolean","Array","JSON","stringify","fromAttribute","Number","parse","f","b","attribute","type","String","converter","reflect","useDefault","hasChanged","litPropertyMetadata","HTMLElement","addInitializer","_$Ei","push","observedAttributes","finalize","_$Eh","keys","createProperty","state","hasOwnProperty","create","wrapped","elementProperties","noAccessor","getPropertyDescriptor","call","requestUpdate","configurable","enumerable","getPropertyOptions","Map","finalized","properties","_$Eu","elementStyles","finalizeStyles","styles","isArray","Set","flat","reverse","unshift","toLowerCase","super","_$Ep","isUpdatePending","hasUpdated","_$Em","_$Ev","_$ES","enableUpdating","_$AL","_$E_","forEach","addController","_$EO","add","renderRoot","isConnected","hostConnected","removeController","delete","size","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","adoptedStyleSheets","map","document","createElement","litNonce","setAttribute","textContent","appendChild","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$ET","removeAttribute","_$Ej","hasAttribute","C","_$EP","has","_$Eq","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$EM","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","y","mode","ReactiveElement","reactiveElementVersions","createPolicy","createHTML","Math","random","toFixed","slice","createComment","v","_","m","RegExp","g","$","x","_$litType$","strings","values","T","for","E","A","createTreeWalker","P","V","lastIndex","exec","test","startsWith","N","parts","el","currentNode","content","firstChild","replaceWith","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","split","index","name","ctor","H","I","L","k","tagName","append","data","indexOf","innerHTML","S","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","M","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","R","nextSibling","z","_$AI","_$Cv","_$AH","_$AA","_$AB","options","startNode","endNode","_$AR","iterator","O","insertBefore","createTextNode","_$AC","_$AP","remove","setConnected","element","fill","j","toggleAttribute","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","litHtmlPolyfillSupport","litHtmlVersions","renderOptions","_$Do","renderBefore","render","_$litPart$","_$litElement$","litElementHydrateSupport","LitElement","litElementPolyfillSupport","litElementVersions","kind","init","_$Ct","_$Ci","it","directiveName","_t","raw","resultType","BASE_CONFIG","startOnLoad","securityLevel","suppressErrorRendering","queue","resolve","counter","renderDiagram","source","config","run","async","mermaid","catch","error","initialize","result","then","isBlank","line","trim","ENTITIES","normalizeSource","lines","shift","pop","indent","filter","min","match","Infinity","isFinite","join","dedent","replace","mermaidStyles","css","COLOR_VARIABLES","foreground","background","context","toRgba","color","canvas","width","height","getContext","willReadFrequently","createContext","clearRect","fillStyle","fillRect","getImageData","round","themeConfig","style","getComputedStyle","themeVariables","fontFamily","fontSize","targets","entries","value","getPropertyValue","channels","channel","luminance","theme","MermaidElement","label","status","rawSource","svg","request","renderDone","onSchemeChange","refresh","observer","scheme","renderComplete","MutationObserver","syncSource","observe","childList","characterData","subtree","matchMedia","disconnect","changed","html","labelled","nothing","unsafeHTML","diagramType","dispatch","message","errorMessage","detail","dispatchEvent","CustomEvent","bubbles","composed","code","template","querySelector","entity","readSource","property","import","default","customElements","define"],"mapp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ADPsF,8BACkBsR,GAAAhV,UAAA,aAAA,GC7FrB/B,EjBqB+CsT,gBACFiG,OAAoD7Z,IAEjF8Z,SiBtBXC,eAAe9W,IAAI,eAAe8W,eAAeC,OAAO,aAAc3C,uEjBYzE,OAAOrX,CACT,qBAPM,SAA2BO,EAAeR,GAC9CC,EAAMO,CACR","x_google_ignoreList":[2,3,4,5,6,7,8,9,10]}
|
package/iife/router/index.js
CHANGED
|
@@ -140,7 +140,7 @@ Bt.State,Bt.Computed;const ue=(t,e)=>new Bt.State(t,e),de=(t,e)=>new Bt.Computed
|
|
|
140
140
|
--tp-color-success: hsl(140 70% 40%);
|
|
141
141
|
--tp-color-danger: hsl(0 70% 50%);
|
|
142
142
|
--tp-color-warning: hsl(45 100% 50%);
|
|
143
|
-
--tp-color-neutral: color-mix(in
|
|
143
|
+
--tp-color-neutral: color-mix(in oklab, var(--tp-color-white) 50%, var(--tp-color-black) 50%);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
`;var e;return document.adoptedStyleSheets=(e=[...document.adoptedStyleSheets,t.styleSheet],[...new Set(e)]),t})()}static{this.shadedElementStyles=l`
|
|
@@ -155,7 +155,7 @@ Bt.State,Bt.Computed;const ue=(t,e)=>new Bt.State(t,e),de=(t,e)=>new Bt.Computed
|
|
|
155
155
|
style(--tp-shade-mixer-type: black): calc(100% - ((var(--tp-shade-attr) - 500) / 500 * 100%));
|
|
156
156
|
else: calc(100% - ((500 - var(--tp-shade-attr)) / 500 * 100%))
|
|
157
157
|
);
|
|
158
|
-
--tp-calc-element-color: color-mix(in
|
|
158
|
+
--tp-calc-element-color: color-mix(in oklab, var(--tp-element-color) var(--tp-shade-mixer-percent), var(--tp-shade-mixer-color) calc(100% - var(--tp-shade-mixer-percent)));
|
|
159
159
|
--tp-calc-contrast-color: contrast-color(var(--tp-calc-element-color));
|
|
160
160
|
--tp-contrast-color: if(
|
|
161
161
|
style(--tp-calc-contrast-color: white): var(--tp-color-white);
|
package/iife/select/index.js
CHANGED
|
@@ -48,7 +48,7 @@ function f(t,e){return Object.is(t,e)}
|
|
|
48
48
|
*
|
|
49
49
|
* Use of this source code is governed by an MIT-style license that can be
|
|
50
50
|
* found in the LICENSE file at https://angular.io/license
|
|
51
|
-
*/function
|
|
51
|
+
*/function k(t){if(w(t),$(t),t.value===I)throw t.error;return t.value}const T=Symbol("UNSET"),P=Symbol("COMPUTING"),I=Symbol("ERRORED"),R=(()=>({...S,value:T,dirty:!0,error:null,equal:f,producerMustRecompute:t=>t.value===T||t.value===P,producerRecomputeValue(t){if(t.value===P)throw new Error("Detected cycle in computations.");const e=t.value;t.value=P;const s=function(t){return t&&(t.nextProducerIndex=0),b(t)}(t);let o,r=!1;try{o=t.computation.call(t.wrapper);r=e!==T&&e!==I&&t.equal.call(t.wrapper,e,o)}catch(e){o=I,t.error=e}finally{!function(t,e){if(b(e),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(x(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)C(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(t,s)}r?t.value=e:(t.value=o,t.version++)}}))();let M=
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -80,13 +80,13 @@ function(){throw new Error};function L(){return $(this),this.value}function U(t,
|
|
|
80
80
|
* Use of this source code is governed by an MIT-style license that can be
|
|
81
81
|
* found in the LICENSE file at https://angular.io/license
|
|
82
82
|
*/
|
|
83
|
-
function(t){const e=Object.create(j);e.value=t;const s=()=>($(e),e.value);return s[y]=e,s}(o),n=i[y];if(this[V]=n,n.wrapper=this,r){const e=r.equals;e&&(n.equal=e),n.watched=r[t.subtle.watched],n.unwatched=r[t.subtle.unwatched]}}get(){if(!(0,t.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return L.call(this[V])}set(e){if(!(0,t.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(v)throw new Error("Writes to signals not permitted during Watcher callback");U(this[V],e)}};o=V,r=new WeakSet,t.isComputed=t=>"object"==typeof t&&d(r,t),t.Computed=class{constructor(e,s){p(this,r),h(this,o);const i=function(t){const e=Object.create(R);e.computation=t;const s=()=>
|
|
83
|
+
function(t){const e=Object.create(j);e.value=t;const s=()=>($(e),e.value);return s[y]=e,s}(o),n=i[y];if(this[V]=n,n.wrapper=this,r){const e=r.equals;e&&(n.equal=e),n.watched=r[t.subtle.watched],n.unwatched=r[t.subtle.unwatched]}}get(){if(!(0,t.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return L.call(this[V])}set(e){if(!(0,t.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(v)throw new Error("Writes to signals not permitted during Watcher callback");U(this[V],e)}};o=V,r=new WeakSet,t.isComputed=t=>"object"==typeof t&&d(r,t),t.Computed=class{constructor(e,s){p(this,r),h(this,o);const i=function(t){const e=Object.create(R);e.computation=t;const s=()=>k(e);return s[y]=e,s}(e),n=i[y];if(n.consumerAllowSignalWrites=!0,this[V]=n,n.wrapper=this,s){const e=s.equals;e&&(n.equal=e),n.watched=s[t.subtle.watched],n.unwatched=s[t.subtle.unwatched]}}get(){if(!(0,t.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return k(this[V])}},(e=>{var s,o,r,i;e.untrack=function(t){let e,s=null;try{s=b(null),e=t()}finally{b(s)}return e},e.introspectSources=function(e){var s;if(!(0,t.isComputed)(e)&&!(0,t.isWatcher)(e))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return(null==(s=e[V].producerNode)?void 0:s.map(t=>t.wrapper))??[]},e.introspectSinks=function(e){var s;if(!(0,t.isComputed)(e)&&!(0,t.isState)(e))throw new TypeError("Called introspectSinks without a Signal argument");return(null==(s=e[V].liveConsumerNode)?void 0:s.map(t=>t.wrapper))??[]},e.hasSinks=function(e){if(!(0,t.isComputed)(e)&&!(0,t.isState)(e))throw new TypeError("Called hasSinks without a Signal argument");const s=e[V].liveConsumerNode;return!!s&&s.length>0},e.hasSources=function(e){if(!(0,t.isComputed)(e)&&!(0,t.isWatcher)(e))throw new TypeError("Called hasSources without a Computed or Watcher argument");const s=e[V].producerNode;return!!s&&s.length>0};s=V,o=new WeakSet,r=new WeakSet,i=function(e){for(const s of e)if(!(0,t.isComputed)(s)&&!(0,t.isState)(s))throw new TypeError("Called watch/unwatch without a Computed or State argument")},t.isWatcher=t=>d(o,t),e.Watcher=class{constructor(t){p(this,o),p(this,r),h(this,s);let e=Object.create(S);e.wrapper=this,e.consumerMarkedDirty=t,e.consumerIsAlwaysLive=!0,e.consumerAllowSignalWrites=!1,e.producerNode=[],this[V]=e}watch(...e){if(!(0,t.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");u(this,r,i).call(this,e);const s=this[V];s.dirty=!1;const o=b(s);for(const t of e)$(t[V]);b(o)}unwatch(...e){if(!(0,t.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");u(this,r,i).call(this,e);const s=this[V];O(s);for(let t=s.producerNode.length-1;t>=0;t--)if(e.includes(s.producerNode[t].wrapper)){C(s.producerNode[t],s.producerIndexOfThis[t]);const e=s.producerNode.length-1;if(s.producerNode[t]=s.producerNode[e],s.producerIndexOfThis[t]=s.producerIndexOfThis[e],s.producerNode.length--,s.producerIndexOfThis.length--,s.nextProducerIndex--,t<s.producerNode.length){const e=s.producerIndexOfThis[t],o=s.producerNode[t];N(o),o.liveConsumerIndexOfThis[e]=t}}}getPending(){if(!(0,t.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[V].producerNode.filter(t=>t.dirty).map(t=>t.wrapper)}},e.currentComputed=function(){var t;return null==(t=m)?void 0:t.wrapper},e.watched=Symbol("watched"),e.unwatched=Symbol("unwatched")})(t.subtle||(t.subtle={}))})(D||(D={}));
|
|
84
84
|
/**
|
|
85
85
|
* @license
|
|
86
86
|
* Copyright 2023 Google LLC
|
|
87
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
88
|
*/
|
|
89
|
-
let H=!1;const W=new D.subtle.Watcher(()=>{H||(H=!0,queueMicrotask(()=>{H=!1;for(const t of W.getPending())t.get();W.watch()}))}),q=Symbol("SignalWatcherBrand"),B=new FinalizationRegistry(t=>{t.unwatch(...D.subtle.introspectSources(t))}),
|
|
89
|
+
let H=!1;const W=new D.subtle.Watcher(()=>{H||(H=!0,queueMicrotask(()=>{H=!1;for(const t of W.getPending())t.get();W.watch()}))}),q=Symbol("SignalWatcherBrand"),B=new FinalizationRegistry(t=>{t.unwatch(...D.subtle.introspectSources(t))}),F=new WeakMap;function z(t){return!0===t[q]?(console.warn("SignalWatcher should not be applied to the same class more than once."),t):class extends t{constructor(){super(...arguments),this._$St=new Map,this._$So=new D.State(0),this._$Si=!1}_$Sl(){var t,e;const s=[],o=[];this._$St.forEach((t,e)=>{((null==t?void 0:t.beforeUpdate)?s:o).push(e)});const r=null===(t=this.h)||void 0===t?void 0:t.getPending().filter(t=>t!==this._$Su&&!this._$St.has(t));s.forEach(t=>t.get()),null===(e=this._$Su)||void 0===e||e.get(),r.forEach(t=>t.get()),o.forEach(t=>t.get())}_$Sv(){this.isUpdatePending||queueMicrotask(()=>{this.isUpdatePending||this._$Sl()})}_$S_(){if(void 0!==this.h)return;this._$Su=new D.Computed(()=>{this._$So.get(),super.performUpdate()});const t=this.h=new D.subtle.Watcher(function(){const t=F.get(this);void 0!==t&&(!1===t._$Si&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});F.set(t,this),B.register(this,t),t.watch(this._$Su),t.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(void 0===this.h)return;let t=!1;this.h.unwatch(...D.subtle.introspectSources(this.h).filter(e=>{var s;const o=!0!==(null===(s=this._$St.get(e))||void 0===s?void 0:s.manualDispose);return o&&this._$St.delete(e),t||(t=!o),o})),t||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(t,e){var s;this._$S_();const o=new D.Computed(()=>{t()});return this.h.watch(o),this._$St.set(o,e),null!==(s=null==e?void 0:e.beforeUpdate)&&void 0!==s&&s?D.subtle.untrack(()=>o.get()):this.updateComplete.then(()=>D.subtle.untrack(()=>o.get())),()=>{this._$St.delete(o),this.h.unwatch(o),!1===this.isConnected&&this._$Sp()}}performUpdate(){this.isUpdatePending&&(this._$S_(),this._$Si=!0,this._$So.set(this._$So.get()+1),this._$Si=!1,this._$Sl())}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{!1===this.isConnected&&this._$Sp()})}}}
|
|
90
90
|
/**
|
|
91
91
|
* @license
|
|
92
92
|
* Copyright 2017 Google LLC
|
|
@@ -97,22 +97,22 @@ let H=!1;const W=new D.subtle.Watcher(()=>{H||(H=!0,queueMicrotask(()=>{H=!1;for
|
|
|
97
97
|
* Copyright 2023 Google LLC
|
|
98
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
99
99
|
*/
|
|
100
|
-
let Nt=!1;const
|
|
100
|
+
let Nt=!1;const kt=new D.subtle.Watcher(async()=>{Nt||(Nt=!0,queueMicrotask(()=>{Nt=!1;for(const t of kt.getPending())t.get();kt.watch()}))});
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2023 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*/D.State,D.Computed;const
|
|
105
|
+
*/D.State,D.Computed;const Tt=(t,e)=>new D.State(t,e),Pt=globalThis,It=Pt.ShadowRoot&&(void 0===Pt.ShadyCSS||Pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rt=Symbol(),Mt=new WeakMap;
|
|
106
106
|
/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2019 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/let Lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(It&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=Mt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}};const Ut=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new Lt(s,t,Rt)},jt=It?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new Lt("string"==typeof t?t:t+"",void 0,Rt))(e)})(t):t,{is:Vt,defineProperty:Dt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Wt,getOwnPropertySymbols:qt,getPrototypeOf:Bt}=Object,
|
|
110
|
+
*/let Lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Rt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(It&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=Mt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}};const Ut=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new Lt(s,t,Rt)},jt=It?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new Lt("string"==typeof t?t:t+"",void 0,Rt))(e)})(t):t,{is:Vt,defineProperty:Dt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Wt,getOwnPropertySymbols:qt,getPrototypeOf:Bt}=Object,Ft=globalThis,zt=Ft.trustedTypes,Yt=zt?zt.emptyScript:"",Gt=Ft.reactiveElementPolyfillSupport,Jt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?Yt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},Zt=(t,e)=>!Vt(t,e),Xt={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:Zt};
|
|
111
111
|
/**
|
|
112
112
|
* @license
|
|
113
113
|
* Copyright 2017 Google LLC
|
|
114
114
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/Symbol.metadata??=Symbol("metadata"),
|
|
115
|
+
*/Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;class Qt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Xt){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){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&Dt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=Ht(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const i=o?.call(this);r?.call(this,e),this.requestUpdate(t,i,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Xt}static _$Ei(){if(this.hasOwnProperty(Jt("elementProperties")))return;const t=Bt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jt("properties"))){const t=this.properties,e=[...Wt(t),...qt(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(jt(t))}else void 0!==t&&e.push(jt(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(It)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=Pt.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:Kt).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=o;const i=r.fromAttribute(e,t.type);this[o]=i??this._$Ej?.get(o)??i,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const o=this.constructor,r=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??Zt)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==r||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Jt("elementProperties")]=new Map,Qt[Jt("finalized")]=new Map,Gt?.({ReactiveElement:Qt}),(Ft.reactiveElementVersions??=[]).push("2.1.1");
|
|
116
116
|
/**
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright 2017 Google LLC
|
|
@@ -147,7 +147,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
147
147
|
--tp-color-success: hsl(140 70% 40%);
|
|
148
148
|
--tp-color-danger: hsl(0 70% 50%);
|
|
149
149
|
--tp-color-warning: hsl(45 100% 50%);
|
|
150
|
-
--tp-color-neutral: color-mix(in
|
|
150
|
+
--tp-color-neutral: color-mix(in oklab, var(--tp-color-white) 50%, var(--tp-color-black) 50%);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
`;var e;return document.adoptedStyleSheets=(e=[...document.adoptedStyleSheets,t.styleSheet],[...new Set(e)]),t})()}static{this.shadedElementStyles=Ut`
|
|
@@ -162,7 +162,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
162
162
|
style(--tp-shade-mixer-type: black): calc(100% - ((var(--tp-shade-attr) - 500) / 500 * 100%));
|
|
163
163
|
else: calc(100% - ((500 - var(--tp-shade-attr)) / 500 * 100%))
|
|
164
164
|
);
|
|
165
|
-
--tp-calc-element-color: color-mix(in
|
|
165
|
+
--tp-calc-element-color: color-mix(in oklab, var(--tp-element-color) var(--tp-shade-mixer-percent), var(--tp-shade-mixer-color) calc(100% - var(--tp-shade-mixer-percent)));
|
|
166
166
|
--tp-calc-contrast-color: contrast-color(var(--tp-calc-element-color));
|
|
167
167
|
--tp-contrast-color: if(
|
|
168
168
|
style(--tp-calc-contrast-color: white): var(--tp-color-white);
|
|
@@ -178,7 +178,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
178
178
|
&[color="danger"] { --tp-element-color: var(--tp-color-danger); }
|
|
179
179
|
&[color="warning"] { --tp-element-color: var(--tp-color-warning); }
|
|
180
180
|
&[color="neutral"] { --tp-element-color: var(--tp-color-neutral); }
|
|
181
|
-
`}willUpdate(t){t.has("shade")&&(this.mixer=500===this.shade?"none":this.shade>500?"black":"white")}}e([ne({type:String,reflect:!0}),s("design:type",String)],me.prototype,"color",void 0),e([ne({type:Number,reflect:!0,converter(t,e){const s=Number(t);return isNaN(s)?500:function(t,e,s){return Math.max(Math.min(e,s),t)}(0,1e3,s)}}),s("design:type",Number)],me.prototype,"shade",void 0),e([ne({type:String,reflect:!0}),s("design:type",String)],me.prototype,"mixer",void 0);const ve=
|
|
181
|
+
`}willUpdate(t){t.has("shade")&&(this.mixer=500===this.shade?"none":this.shade>500?"black":"white")}}e([ne({type:String,reflect:!0}),s("design:type",String)],me.prototype,"color",void 0),e([ne({type:Number,reflect:!0,converter(t,e){const s=Number(t);return isNaN(s)?500:function(t,e,s){return Math.max(Math.min(e,s),t)}(0,1e3,s)}}),s("design:type",Number)],me.prototype,"shade",void 0),e([ne({type:String,reflect:!0}),s("design:type",String)],me.prototype,"mixer",void 0);const ve=z(ee),ge=z(me),ye=Symbol("select:register-option"),be=Symbol("select:unregister-option"),Se=Symbol("option:should-register-to-select");var $e;t.SelectedContentElement=class extends ve{static{this.styles=(()=>{const t=Ut`
|
|
182
182
|
tp-selected-content {
|
|
183
183
|
display: inline-block;
|
|
184
184
|
|
|
@@ -199,7 +199,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
199
199
|
background: var(--tp-select-option-color, white);
|
|
200
200
|
|
|
201
201
|
&:hover {
|
|
202
|
-
background: color-mix(in
|
|
202
|
+
background: color-mix(in oklab, var(--tp-select-option-color, white) calc(100% - var(--tp-select-highlight-percent, 20%)), black var(--tp-select-highlight-percent, 20%));
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&[selected] {
|
|
@@ -207,11 +207,11 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
207
207
|
color: var(--tp-select-selection-contrast-color, white);
|
|
208
208
|
|
|
209
209
|
&:hover {
|
|
210
|
-
background: color-mix(in
|
|
210
|
+
background: color-mix(in oklab, var(--tp-select-selection-color, #0078d4) calc(100% - var(--tp-select-highlight-percent, 20%)), black var(--tp-select-highlight-percent, 20%));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t.styleSheet],t})()}connectedCallback(){super.connectedCallback(),this[Se]&&this.select?.[ye](this)}disconnectedCallback(){super.disconnectedCallback(),this[Se]&&this.select?.[be](this)}willUpdate(t){if(!this[Se])return;const e=this.select?.selectedOptions.get().some(t=>t.deref()===this)??!1;this.toggleAttribute("selected",e)}createRenderRoot(){return this}render(){return pt``}},e([c({context:ue,subscribe:!0}),le(),s("design:type",Function)],t.OptionElement.prototype,"select",void 0),e([ne({type:String,reflect:!0}),s("design:type",Object)],t.OptionElement.prototype,"value",void 0),t.OptionElement=e([oe("tp-option")],t.OptionElement);class we extends Event{constructor(t,e){super("change",{bubbles:!0,composed:!1,cancelable:!1,...e}),this.value=t.value,this.selectedOptions=t.selectedOptions}}const Ee={};const _e={popInline:"center",targetInline:"center",popBlock:"bottom",targetBlock:"top"},Ae=new Set(["start","center","end"]),Ce=new Set(["top","middle","bottom"]),xe={start:["end","start"],center:["center","center"],end:["start","end"]},Oe={top:["bottom","top"],middle:["middle","middle"],bottom:["top","bottom"]};function Ne(t){const e=t.trim().split(/\s+to\s+/);if(1===e.length){const t=e[0];return Ae.has(t)?xe[t]:null}return 2===e.length&&Ae.has(e[0])&&Ae.has(e[1])?[e[0],e[1]]:null}function
|
|
214
|
+
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t.styleSheet],t})()}connectedCallback(){super.connectedCallback(),this[Se]&&this.select?.[ye](this)}disconnectedCallback(){super.disconnectedCallback(),this[Se]&&this.select?.[be](this)}willUpdate(t){if(!this[Se])return;const e=this.select?.selectedOptions.get().some(t=>t.deref()===this)??!1;this.toggleAttribute("selected",e)}createRenderRoot(){return this}render(){return pt``}},e([c({context:ue,subscribe:!0}),le(),s("design:type",Function)],t.OptionElement.prototype,"select",void 0),e([ne({type:String,reflect:!0}),s("design:type",Object)],t.OptionElement.prototype,"value",void 0),t.OptionElement=e([oe("tp-option")],t.OptionElement);class we extends Event{constructor(t,e){super("change",{bubbles:!0,composed:!1,cancelable:!1,...e}),this.value=t.value,this.selectedOptions=t.selectedOptions}}const Ee={};const _e={popInline:"center",targetInline:"center",popBlock:"bottom",targetBlock:"top"},Ae=new Set(["start","center","end"]),Ce=new Set(["top","middle","bottom"]),xe={start:["end","start"],center:["center","center"],end:["start","end"]},Oe={top:["bottom","top"],middle:["middle","middle"],bottom:["top","bottom"]};function Ne(t){const e=t.trim().split(/\s+to\s+/);if(1===e.length){const t=e[0];return Ae.has(t)?xe[t]:null}return 2===e.length&&Ae.has(e[0])&&Ae.has(e[1])?[e[0],e[1]]:null}function ke(t){const e=t.trim().split(/\s+to\s+/);if(1===e.length){const t=e[0];return Ce.has(t)?Oe[t]:null}return 2===e.length&&Ce.has(e[0])&&Ce.has(e[1])?[e[0],e[1]]:null}let Te=class extends ee{constructor(){var t;super(...arguments),this.mode="auto",this.target=null,this.position=null,this.trigger="click",this.#v=((t="tp-popover")in Ee||(Ee[t]=function*(t){let e=0;for(;;)yield`${t}-${e++}`}(t)),Ee[t].next().value),this.#g=null,this.#y=!1,this.#b=[]}static{this.styles=(()=>{const t=Ut`
|
|
215
215
|
tp-popover {
|
|
216
216
|
--tp-popover-inline-position: attr(data-ti type(*));
|
|
217
217
|
--tp-popover-block-position: attr(data-tb type(*));
|
|
@@ -249,7 +249,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
249
249
|
inset-block-end: anchor(var(--tp-popover-block-position));
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t.styleSheet],t})()}#v;#g;get anchorElement(){return this.#g}get anchorName(){return`--${this.#v}`}#y;#b;createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.#S(),this.#$(),this.#w(),this.#E()}disconnectedCallback(){super.disconnectedCallback(),this.#_(),this.#A()}updated(t){t.has("mode")&&this.#S(),t.has("target")&&(this.#$(),this.#E()),t.has("position")&&this.#w(),t.has("trigger")&&this.#E()}render(){return pt``}#S(){const t="manual"===this.mode?"manual":"auto";this.getAttribute("popover")!==t&&this.setAttribute("popover",t)}#C(){const t=this.target;if(t)try{const e=this.getRootNode().querySelector(t);if(e instanceof HTMLElement)return e;console.warn(`<tp-popover>: target "${t}" did not resolve to an HTMLElement; using parentElement.`)}catch{console.warn(`<tp-popover>: invalid target selector "${t}"; using parentElement.`)}const e=this.parentElement;if(e instanceof HTMLElement)return e;const s=this.getRootNode();return s instanceof ShadowRoot&&s.host instanceof HTMLElement?s.host:null}#$(){const t=this.#C();t!==this.#g?(this.#A(),this.#g=t,t&&this.#x(t)):t&&this.#x(t)}#x(t){const e=`--${this.#v}`,s=t.style.getPropertyValue("anchor-name").trim();if(s&&s!==e)return this.style.setProperty("position-anchor",s),void(this.#y=!1);t.style.setProperty("anchor-name",e),this.style.setProperty("position-anchor",e),this.#y=!0}#A(){if(this.#g&&this.#y){const t=`--${this.#v}`;this.#g.style.getPropertyValue("anchor-name").trim()===t&&this.#g.style.removeProperty("anchor-name")}this.#g=null,this.#y=!1,this.style.removeProperty("position-anchor")}#w(){let t=function(t){if(!t)return null;const e=t.trim().toLowerCase();if(!e)return null;if(!e.includes("/")){const t=Ne(e);if(t){const[e,s]=Oe.middle;return{popInline:t[0],targetInline:t[1],popBlock:e,targetBlock:s}}const s=
|
|
252
|
+
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,t.styleSheet],t})()}#v;#g;get anchorElement(){return this.#g}get anchorName(){return`--${this.#v}`}#y;#b;createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.#S(),this.#$(),this.#w(),this.#E()}disconnectedCallback(){super.disconnectedCallback(),this.#_(),this.#A()}updated(t){t.has("mode")&&this.#S(),t.has("target")&&(this.#$(),this.#E()),t.has("position")&&this.#w(),t.has("trigger")&&this.#E()}render(){return pt``}#S(){const t="manual"===this.mode?"manual":"auto";this.getAttribute("popover")!==t&&this.setAttribute("popover",t)}#C(){const t=this.target;if(t)try{const e=this.getRootNode().querySelector(t);if(e instanceof HTMLElement)return e;console.warn(`<tp-popover>: target "${t}" did not resolve to an HTMLElement; using parentElement.`)}catch{console.warn(`<tp-popover>: invalid target selector "${t}"; using parentElement.`)}const e=this.parentElement;if(e instanceof HTMLElement)return e;const s=this.getRootNode();return s instanceof ShadowRoot&&s.host instanceof HTMLElement?s.host:null}#$(){const t=this.#C();t!==this.#g?(this.#A(),this.#g=t,t&&this.#x(t)):t&&this.#x(t)}#x(t){const e=`--${this.#v}`,s=t.style.getPropertyValue("anchor-name").trim();if(s&&s!==e)return this.style.setProperty("position-anchor",s),void(this.#y=!1);t.style.setProperty("anchor-name",e),this.style.setProperty("position-anchor",e),this.#y=!0}#A(){if(this.#g&&this.#y){const t=`--${this.#v}`;this.#g.style.getPropertyValue("anchor-name").trim()===t&&this.#g.style.removeProperty("anchor-name")}this.#g=null,this.#y=!1,this.style.removeProperty("position-anchor")}#w(){let t=function(t){if(!t)return null;const e=t.trim().toLowerCase();if(!e)return null;if(!e.includes("/")){const t=Ne(e);if(t){const[e,s]=Oe.middle;return{popInline:t[0],targetInline:t[1],popBlock:e,targetBlock:s}}const s=ke(e);if(s){const[t,e]=xe.center;return{popInline:t,targetInline:e,popBlock:s[0],targetBlock:s[1]}}return null}const s=e.split("/");if(2!==s.length)return null;const o=Ne(s[0]),r=ke(s[1]);return o&&r?{popInline:o[0],targetInline:o[1],popBlock:r[0],targetBlock:r[1]}:null}(this.position);this.position&&!t&&console.warn(`<tp-popover>: invalid position "${this.position}"; using default.`),t??=_e,this.dataset.pi=t.popInline,this.dataset.ti=t.targetInline,this.dataset.pb=t.popBlock,this.dataset.tb=t.targetBlock}#_(){for(const t of this.#b)t();this.#b=[]}#E(){this.#_();const t=this.#g;if(t){if("click"===this.trigger){const e=t=>{if(!t.composedPath().includes(this))try{this.togglePopover()}catch{}};return t.addEventListener("click",e),void this.#b.push(()=>t.removeEventListener("click",e))}if("hover"===this.trigger){let e=null;const s=()=>{null!==e&&(clearTimeout(e),e=null)},o=()=>{s();try{this.showPopover()}catch{}},r=()=>{s(),e=setTimeout(()=>{try{this.hidePopover()}catch{}},120)};t.addEventListener("pointerenter",o),t.addEventListener("pointerleave",r),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.addEventListener("pointerenter",s),this.addEventListener("pointerleave",r),this.addEventListener("focusin",s),this.addEventListener("focusout",r),this.#b.push(()=>{s(),t.removeEventListener("pointerenter",o),t.removeEventListener("pointerleave",r),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r),this.removeEventListener("pointerenter",s),this.removeEventListener("pointerleave",r),this.removeEventListener("focusin",s),this.removeEventListener("focusout",r)})}}}};var Pe;e([ne({reflect:!0}),s("design:type",String)],Te.prototype,"mode",void 0),e([ne({reflect:!0}),s("design:type",Object)],Te.prototype,"target",void 0),e([ne({reflect:!0}),s("design:type",Object)],Te.prototype,"position",void 0),e([ne({reflect:!0}),s("design:type",String)],Te.prototype,"trigger",void 0),Te=e([oe("tp-popover")],Te),t.SelectElement=class extends ge{static{Pe=this}static{this.formAssociated=!0}static{this.ALLOWED_OPTION_ELEMENTS=[t.OptionElement]}static{this.styles=(()=>{const t=Ut`
|
|
253
253
|
${me.shadedElementStyles}
|
|
254
254
|
--tp-select-option-color: white;
|
|
255
255
|
--tp-select-selection-color: var(--tp-calc-element-color);
|
|
@@ -301,7 +301,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
301
301
|
${t}
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,s.styleSheet],e})()}#O;get#N(){return this.shadowRoot?.querySelector("tp-popover")}#T;#
|
|
304
|
+
`;return document.adoptedStyleSheets=[...document.adoptedStyleSheets,s.styleSheet],e})()}#O;get#N(){return this.shadowRoot?.querySelector("tp-popover")}#k;#T;#P;get value(){return this.#P.get()}set value(t){this.#k=t,pe(this.#T,this.#I,10,this)}#R;get placeholder(){return this.#R.get()}set placeholder(t){this.#M(this.#R,"placeholder",t)}#L;#U;#j;constructor(){super(),this.#O=new Set,this.self=this,this.selectedOptions=Tt([]),this.#k=null,this.#T=Symbol("tpselect:assignValueDebouncer"),this.#P=((t,e)=>new D.Computed(t,e))(()=>this.selectedOptions.get().map(t=>t.deref()?.value??"").filter(Boolean).join(",")),this.#R=Tt("Select an option"),this.max=1,this.min=0,this.name=null,this.disabled=!1,this.required=!1,this.open=!1,this.#U="",this.#j=null,this.#L=this.attachInternals()}get internals(){return this.#L}get form(){return this.#L.form}get validity(){return this.#L.validity}get validationMessage(){return this.#L.validationMessage}get willValidate(){return this.#L.willValidate}checkValidity(){return this.#L.checkValidity()}reportValidity(){return this.#L.reportValidity()}createRenderRoot(){const e=super.createRenderRoot();return e.adoptedStyleSheets=[...e.adoptedStyleSheets,Te.styles.styleSheet,t.SelectedContentElement.styles.styleSheet,t.OptionElement.styles.styleSheet],e}connectedCallback(){super.connectedCallback(),this.#U=this.value}disconnectedCallback(){super.disconnectedCallback()}render(){return pt`
|
|
305
305
|
<div pseudo="button" part="button">
|
|
306
306
|
<slot name="button">
|
|
307
307
|
<tp-selected-content part="selected-content"></tp-selected-content>
|
|
@@ -320,7 +320,7 @@ const oe=t=>(e,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(t,e)}
|
|
|
320
320
|
<slot></slot>
|
|
321
321
|
</slot>
|
|
322
322
|
</tp-popover>
|
|
323
|
-
`}updated(t){if(super.updated(t),t.has("max")&&Number.isFinite(this.max)){const t=this.selectedOptions.get();t.length>this.max&&this.selectedOptions.set(t.slice(t.length-this.max))}}willUpdate(t){this.#H(),this.#W()}formResetCallback(){this.value=this.#U}formDisabledCallback(t){this.disabled=t}formStateRestoreCallback(t){if(null!=t)if("string"!=typeof t){if(t instanceof FormData){const e=[];t.forEach(t=>{"string"==typeof t&&e.push(t)}),this.value=e.join(",")}}else this.value=t;else this.value=""}#H(){const t=""===this.value?[]:this.value.split(",");if(1===this.max)this.#L.setFormValue(t[0]??"");else{const e=new FormData,s=this.name??"";for(const o of t)e.append(s,o);this.#L.setFormValue(e)}this.required&&0===t.length?this.#L.setValidity({valueMissing:!0},"Please select an option."):this.#L.setValidity({})}#W(){const t=this.value;if(t===this.#j)return;const e=null===this.#j;if(this.#j=t,e)return;const s=this.selectedOptions.get().map(t=>t.deref()).filter(Boolean);this.dispatchEvent(new we({value:t,selectedOptions:s}))}selectOption(t){const e=this.selectedOptions.get();if(e.find(e=>e.deref()===t))return;const s=[...e,new WeakRef(t)],o=s.length>this.max?s.slice(s.length-this.max):s;this.selectedOptions.set(o)}deselectOption(t){const e=this.selectedOptions.get(),s=e.find(e=>e.deref()===t);s&&(e.length<=this.min||this.selectedOptions.set(e.filter(t=>t!==s)))}toggleOption(t){this.selectedOptions.get().find(e=>e.deref()===t)?this.deselectOption(t):this.selectOption(t)}togglePopover(){return this.#N.togglePopover()}hidePopover(){this.#N.hidePopover()}showPopover(){this.#N.showPopover()}[ye](t){this.#O.add(t),pe(this.#
|
|
323
|
+
`}updated(t){if(super.updated(t),t.has("max")&&Number.isFinite(this.max)){const t=this.selectedOptions.get();t.length>this.max&&this.selectedOptions.set(t.slice(t.length-this.max))}}willUpdate(t){this.#H(),this.#W()}formResetCallback(){this.value=this.#U}formDisabledCallback(t){this.disabled=t}formStateRestoreCallback(t){if(null!=t)if("string"!=typeof t){if(t instanceof FormData){const e=[];t.forEach(t=>{"string"==typeof t&&e.push(t)}),this.value=e.join(",")}}else this.value=t;else this.value=""}#H(){const t=""===this.value?[]:this.value.split(",");if(1===this.max)this.#L.setFormValue(t[0]??"");else{const e=new FormData,s=this.name??"";for(const o of t)e.append(s,o);this.#L.setFormValue(e)}this.required&&0===t.length?this.#L.setValidity({valueMissing:!0},"Please select an option."):this.#L.setValidity({})}#W(){const t=this.value;if(t===this.#j)return;const e=null===this.#j;if(this.#j=t,e)return;const s=this.selectedOptions.get().map(t=>t.deref()).filter(Boolean);this.dispatchEvent(new we({value:t,selectedOptions:s}))}selectOption(t){const e=this.selectedOptions.get();if(e.find(e=>e.deref()===t))return;const s=[...e,new WeakRef(t)],o=s.length>this.max?s.slice(s.length-this.max):s;this.selectedOptions.set(o)}deselectOption(t){const e=this.selectedOptions.get(),s=e.find(e=>e.deref()===t);s&&(e.length<=this.min||this.selectedOptions.set(e.filter(t=>t!==s)))}toggleOption(t){this.selectedOptions.get().find(e=>e.deref()===t)?this.deselectOption(t):this.selectOption(t)}togglePopover(){return this.#N.togglePopover()}hidePopover(){this.#N.hidePopover()}showPopover(){this.#N.showPopover()}[ye](t){this.#O.add(t),pe(this.#T,this.#I,10,this)}[be](t){this.#O.delete(t);const e=this.selectedOptions.get(),s=e.find(e=>e.deref()===t);s&&this.selectedOptions.set(e.filter(t=>t!==s))}#V(t){if(this.disabled)return;const e=function(t,e){const s=t.indexOf(e);return s<0?[]:t.slice(0,s)}(t.composedPath(),this).find(t=>Pe.ALLOWED_OPTION_ELEMENTS.some(e=>t instanceof e));if(!e)return;this.toggleOption(e);if(this.selectedOptions.get().length>=this.max){const t=this.shadowRoot?.querySelector("tp-popover");t?.hidePopover()}}#D(t){this.open="open"===t.newState}#M(t,e,s){const o=t.get();o!==s&&(t.set(s),this.requestUpdate(e,o))}#I(){const t=this.#k?.split(",").map(t=>t.trim())??[],e=Array.from(this.#O);this.selectedOptions.set(t.map(t=>e.find(e=>e.value===t)).filter(Boolean).map(t=>new WeakRef(t)))}},e([
|
|
324
324
|
/**
|
|
325
325
|
* @license
|
|
326
326
|
* Copyright 2017 Google LLC
|