@fluid-topics/ft-typography 2.1.12 → 2.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var Lt=Object.create;var at=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Gt=Object.getOwnPropertyNames;var Kt=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var K=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var qt=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gt(t))!kt.call(n,r)&&r!==e&&at(n,r,{get:()=>t[r],enumerable:!(i=Zt(t,r))||i.enumerable});return n};var O=(n,t,e)=>(e=n!=null?Lt(Kt(n)):{},qt(t||!n||!n.__esModule?at(e,"default",{value:n,enumerable:!0}):e,n));var j=K((ie,pt)=>{pt.exports=ftGlobals.wcUtils});var Tt=K((le,vt)=>{vt.exports=ftGlobals.litDecorators});var Ft=K((ge,Ht)=>{Ht.exports=ftGlobals.lit});var Dt=O(j());var tt=globalThis,D=tt.trustedTypes,ht=D?D.createPolicy("lit-html",{createHTML:n=>n}):void 0,mt="$lit$",u=`lit$${Math.random().toFixed(9).slice(2)}$`,dt="?"+u,Jt=`<${dt}>`,A=document,L=()=>A.createComment(""),I=n=>n===null||typeof n!="object"&&typeof n!="function",et=Array.isArray,Qt=n=>et(n)||typeof n?.[Symbol.iterator]=="function",k=`[
2
- \f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ft=/>/g,b=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,yt=/"/g,$t=/^(?:script|style|textarea|title)$/i,it=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),xt=it(1),ut=it(2),bt=it(3),V=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),ct=new WeakMap,_=A.createTreeWalker(A,129);function _t(n,t){if(!et(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}var Xt=(n,t)=>{let e=n.length-1,i=[],r,a=t===2?"<svg>":t===3?"<math>":"",p=U;for(let y=0;y<e;y++){let h=n[y],l,g,f=-1,d=0;for(;d<h.length&&(p.lastIndex=d,g=p.exec(h),g!==null);)d=p.lastIndex,p===U?g[1]==="!--"?p=lt:g[1]!==void 0?p=ft:g[2]!==void 0?($t.test(g[2])&&(r=RegExp("</"+g[2],"g")),p=b):g[3]!==void 0&&(p=b):p===b?g[0]===">"?(p=r??U,f=-1):g[1]===void 0?f=-2:(f=p.lastIndex-g[2].length,l=g[1],p=g[3]===void 0?b:g[3]==='"'?yt:gt):p===yt||p===gt?p=b:p===lt||p===ft?p=U:(p=b,r=void 0);let x=p===b&&n[y+1].startsWith("/>")?" ":"";a+=p===U?h+Jt:f>=0?(i.push(l),h.slice(0,f)+mt+h.slice(f)+u+x):h+u+(f===-2?y:x)}return[_t(n,a+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},P=class n{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,p=0,y=t.length-1,h=this.parts,[l,g]=Xt(t,e);if(this.el=n.createElement(l,i),_.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=_.nextNode())!==null&&h.length<y;){if(r.nodeType===1){if(r.hasAttributes())for(let f of r.getAttributeNames())if(f.endsWith(mt)){let d=g[p++],x=r.getAttribute(f).split(u),R=/([.?@])?(.*)/.exec(d);h.push({type:1,index:a,name:R[2],strings:x,ctor:R[1]==="."?J:R[1]==="?"?Q:R[1]==="@"?X:T}),r.removeAttribute(f)}else f.startsWith(u)&&(h.push({type:6,index:a}),r.removeAttribute(f));if($t.test(r.tagName)){let f=r.textContent.split(u),d=f.length-1;if(d>0){r.textContent=D?D.emptyScript:"";for(let x=0;x<d;x++)r.append(f[x],L()),_.nextNode(),h.push({type:2,index:++a});r.append(f[d],L())}}}else if(r.nodeType===8)if(r.data===dt)h.push({type:2,index:a});else{let f=-1;for(;(f=r.data.indexOf(u,f+1))!==-1;)h.push({type:7,index:a}),f+=u.length-1}a++}}static createElement(t,e){let i=A.createElement("template");return i.innerHTML=t,i}};function v(n,t,e=n,i){if(t===V)return t;let r=i!==void 0?e._$Co?.[i]:e._$Cl,a=I(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),a===void 0?r=void 0:(r=new a(n),r._$AT(n,e,i)),i!==void 0?(e._$Co??=[])[i]=r:e._$Cl=r),r!==void 0&&(t=v(n,r._$AS(n,t.values),r,i)),t}var q=class{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){let{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??A).importNode(e,!0);_.currentNode=r;let a=_.nextNode(),p=0,y=0,h=i[0];for(;h!==void 0;){if(p===h.index){let l;h.type===2?l=new Z(a,a.nextSibling,this,t):h.type===1?l=new h.ctor(a,h.name,h.strings,this,t):h.type===6&&(l=new Y(a,this,t)),this._$AV.push(l),h=i[++y]}p!==h?.index&&(a=_.nextNode(),p++)}return _.currentNode=A,r}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Z=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),I(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(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!==c&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=P.createElement(_t(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{let a=new q(r,this),p=a.u(this.options);a.p(e),this.T(p),this._$AH=a}}_$AC(t){let e=ct.get(t.strings);return e===void 0&&ct.set(t.strings,e=new P(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let a of t)r===e.length?e.push(i=new n(this.O(L()),this.O(L()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},T=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,a){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,r){let a=this.strings,p=!1;if(a===void 0)t=v(this,t,e,0),p=!I(t)||t!==this._$AH&&t!==V,p&&(this._$AH=t);else{let y=t,h,l;for(t=a[0],h=0;h<a.length-1;h++)l=v(this,y[i+h],e,h),l===V&&(l=this._$AH[h]),p||=!I(l)||l!==this._$AH[h],l===c?t=c:t!==c&&(t+=(l??"")+a[h+1]),this._$AH[h]=l}p&&!r&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},J=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Q=class extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},X=class extends T{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===V)return;let i=this._$AH,r=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==c&&(i===c||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Y=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}};var Yt=tt.litHtmlPolyfillSupport;Yt?.(P,Z),(tt.litHtmlVersions??=[]).push("3.3.0");var St=Symbol.for(""),te=n=>{if(n?.r===St)return n?._$litStatic$},nt=n=>({_$litStatic$:n,r:St});var At=new Map,ot=n=>(t,...e)=>{let i=e.length,r,a,p=[],y=[],h,l=0,g=!1;for(;l<i;){for(h=t[l];l<i&&(a=e[l],(r=te(a))!==void 0);)h+=r+t[++l],g=!0;l!==i&&y.push(a),p.push(h),l++}if(l===i&&p.push(t[i]),g){let f=p.join("$$lit$$");(t=At.get(f))===void 0&&(p.raw=p,At.set(f,t=p)),e=y}return n(t,...e)},rt=ot(xt),re=ot(ut),se=ot(bt);var st=O(Tt()),Rt=O(j());var G;(function(n){n.title="title",n.title_dense="title-dense",n.subtitle1="subtitle1",n.subtitle2="subtitle2",n.body1="body1",n.body2="body2",n.caption="caption",n.breadcrumb="breadcrumb",n.overline="overline",n.button="button"})(G||(G={}));var m=O(Ft()),o=O(j()),zt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),$=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),s={fontFamily:$,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},H={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",zt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",s.fontSize,"20px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",s.letterSpacing,"0.15px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",s.lineHeight,"1.2"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",s.textTransform,"inherit")},F={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",zt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",s.letterSpacing,"0.105px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",s.lineHeight,"1.7"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",s.textTransform,"inherit")},z={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",s.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",s.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",s.letterSpacing,"0.144px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",s.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",s.textTransform,"inherit")},w={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",s.letterSpacing,"0.098px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",s.lineHeight,"1.7"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",s.textTransform,"inherit")},W={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",s.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",s.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",s.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",s.textTransform,"inherit")},C={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",s.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",s.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",s.textTransform,"inherit")},N={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",s.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",s.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",s.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",s.textTransform,"inherit")},B={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",s.fontSize,"10px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",s.letterSpacing,"0.33px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",s.lineHeight,"1.6"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",s.textTransform,"inherit")},E={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",s.fontSize,"10px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",s.letterSpacing,"1.5px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",s.lineHeight,"1.6"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",s.textTransform,"uppercase")},M={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",s.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",s.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",s.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",s.textTransform,"uppercase")},wt=m.css`
1
+ "use strict";(()=>{var Gt=Object.create;var at=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,qt=Object.prototype.hasOwnProperty;var K=(n,t)=>()=>{try{return t||n((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var Jt=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Kt(t))!qt.call(n,r)&&r!==e&&at(n,r,{get:()=>t[r],enumerable:!(i=Zt(t,r))||i.enumerable});return n};var O=(n,t,e)=>(e=n!=null?Gt(kt(n)):{},Jt(t||!n||!n.__esModule?at(e,"default",{value:n,enumerable:!0}):e,n));var j=K((ne,pt)=>{pt.exports=ftGlobals.wcUtils});var Ht=K((fe,Tt)=>{Tt.exports=ftGlobals.litDecorators});var zt=K((ye,Ft)=>{Ft.exports=ftGlobals.lit});var Lt=O(j());var tt=globalThis,ht=n=>n,R=tt.trustedTypes,lt=R?R.createPolicy("lit-html",{createHTML:n=>n}):void 0,dt="$lit$",u=`lit$${Math.random().toFixed(9).slice(2)}$`,$t="?"+u,Qt=`<${$t}>`,A=document,L=()=>A.createComment(""),I=n=>n===null||typeof n!="object"&&typeof n!="function",et=Array.isArray,Xt=n=>et(n)||typeof n?.[Symbol.iterator]=="function",k=`[
2
+ \f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ft=/-->/g,gt=/>/g,b=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,ct=/"/g,xt=/^(?:script|style|textarea|title)$/i,it=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),ut=it(1),bt=it(2),_t=it(3),V=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),mt=new WeakMap,_=A.createTreeWalker(A,129);function At(n,t){if(!et(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(t):t}var Yt=(n,t)=>{let e=n.length-1,i=[],r,a=t===2?"<svg>":t===3?"<math>":"",p=U;for(let y=0;y<e;y++){let h=n[y],l,g,f=-1,d=0;for(;d<h.length&&(p.lastIndex=d,g=p.exec(h),g!==null);)d=p.lastIndex,p===U?g[1]==="!--"?p=ft:g[1]!==void 0?p=gt:g[2]!==void 0?(xt.test(g[2])&&(r=RegExp("</"+g[2],"g")),p=b):g[3]!==void 0&&(p=b):p===b?g[0]===">"?(p=r??U,f=-1):g[1]===void 0?f=-2:(f=p.lastIndex-g[2].length,l=g[1],p=g[3]===void 0?b:g[3]==='"'?ct:yt):p===ct||p===yt?p=b:p===ft||p===gt?p=U:(p=b,r=void 0);let x=p===b&&n[y+1].startsWith("/>")?" ":"";a+=p===U?h+Qt:f>=0?(i.push(l),h.slice(0,f)+dt+h.slice(f)+u+x):h+u+(f===-2?y:x)}return[At(n,a+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},D=class n{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,p=0,y=t.length-1,h=this.parts,[l,g]=Yt(t,e);if(this.el=n.createElement(l,i),_.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=_.nextNode())!==null&&h.length<y;){if(r.nodeType===1){if(r.hasAttributes())for(let f of r.getAttributeNames())if(f.endsWith(dt)){let d=g[p++],x=r.getAttribute(f).split(u),P=/([.?@])?(.*)/.exec(d);h.push({type:1,index:a,name:P[2],strings:x,ctor:P[1]==="."?J:P[1]==="?"?Q:P[1]==="@"?X:T}),r.removeAttribute(f)}else f.startsWith(u)&&(h.push({type:6,index:a}),r.removeAttribute(f));if(xt.test(r.tagName)){let f=r.textContent.split(u),d=f.length-1;if(d>0){r.textContent=R?R.emptyScript:"";for(let x=0;x<d;x++)r.append(f[x],L()),_.nextNode(),h.push({type:2,index:++a});r.append(f[d],L())}}}else if(r.nodeType===8)if(r.data===$t)h.push({type:2,index:a});else{let f=-1;for(;(f=r.data.indexOf(u,f+1))!==-1;)h.push({type:7,index:a}),f+=u.length-1}a++}}static createElement(t,e){let i=A.createElement("template");return i.innerHTML=t,i}};function v(n,t,e=n,i){if(t===V)return t;let r=i!==void 0?e._$Co?.[i]:e._$Cl,a=I(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),a===void 0?r=void 0:(r=new a(n),r._$AT(n,e,i)),i!==void 0?(e._$Co??=[])[i]=r:e._$Cl=r),r!==void 0&&(t=v(n,r._$AS(n,t.values),r,i)),t}var q=class{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){let{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??A).importNode(e,!0);_.currentNode=r;let a=_.nextNode(),p=0,y=0,h=i[0];for(;h!==void 0;){if(p===h.index){let l;h.type===2?l=new G(a,a.nextSibling,this,t):h.type===1?l=new h.ctor(a,h.name,h.strings,this,t):h.type===6&&(l=new Y(a,this,t)),this._$AV.push(l),h=i[++y]}p!==h?.index&&(a=_.nextNode(),p++)}return _.currentNode=A,r}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},G=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),I(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xt(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!==c&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=D.createElement(At(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{let a=new q(r,this),p=a.u(this.options);a.p(e),this.T(p),this._$AH=a}}_$AC(t){let e=mt.get(t.strings);return e===void 0&&mt.set(t.strings,e=new D(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let a of t)r===e.length?e.push(i=new n(this.O(L()),this.O(L()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let i=ht(t).nextSibling;ht(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},T=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,a){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,r){let a=this.strings,p=!1;if(a===void 0)t=v(this,t,e,0),p=!I(t)||t!==this._$AH&&t!==V,p&&(this._$AH=t);else{let y=t,h,l;for(t=a[0],h=0;h<a.length-1;h++)l=v(this,y[i+h],e,h),l===V&&(l=this._$AH[h]),p||=!I(l)||l!==this._$AH[h],l===c?t=c:t!==c&&(t+=(l??"")+a[h+1]),this._$AH[h]=l}p&&!r&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},J=class extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},Q=class extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},X=class extends T{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??c)===V)return;let i=this._$AH,r=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==c&&(i===c||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Y=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}};var te=tt.litHtmlPolyfillSupport;te?.(D,G),(tt.litHtmlVersions??=[]).push("3.3.3");var vt=Symbol.for(""),ee=n=>{if(n?.r===vt)return n?._$litStatic$},nt=n=>({_$litStatic$:n,r:vt});var St=new Map,ot=n=>(t,...e)=>{let i=e.length,r,a,p=[],y=[],h,l=0,g=!1;for(;l<i;){for(h=t[l];l<i&&(a=e[l],(r=ee(a))!==void 0);)h+=r+t[++l],g=!0;l!==i&&y.push(a),p.push(h),l++}if(l===i&&p.push(t[i]),g){let f=p.join("$$lit$$");(t=St.get(f))===void 0&&(p.raw=p,St.set(f,t=p)),e=y}return n(t,...e)},rt=ot(ut),se=ot(bt),ae=ot(_t);var st=O(Ht()),jt=O(j());var Z;(function(n){n.title="title",n.title_dense="title-dense",n.subtitle1="subtitle1",n.subtitle2="subtitle2",n.body1="body1",n.body2="body2",n.caption="caption",n.breadcrumb="breadcrumb",n.overline="overline",n.button="button"})(Z||(Z={}));var m=O(zt()),o=O(j()),wt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),$=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),s={fontFamily:$,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},H={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",wt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",s.fontSize,"20px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",s.letterSpacing,"0.15px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",s.lineHeight,"1.2"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",s.textTransform,"inherit")},F={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",wt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",s.letterSpacing,"0.105px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",s.lineHeight,"1.7"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",s.textTransform,"inherit")},z={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",s.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",s.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",s.letterSpacing,"0.144px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",s.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",s.textTransform,"inherit")},w={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",s.letterSpacing,"0.098px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",s.lineHeight,"1.7"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",s.textTransform,"inherit")},W={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",s.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",s.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",s.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",s.textTransform,"inherit")},N={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",s.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",s.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",s.textTransform,"inherit")},C={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",s.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",s.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",s.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",s.textTransform,"inherit")},B={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",s.fontSize,"10px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",s.letterSpacing,"0.33px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",s.lineHeight,"1.6"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",s.textTransform,"inherit")},M={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",s.fontSize,"10px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",s.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",s.letterSpacing,"1.5px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",s.lineHeight,"1.6"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",s.textTransform,"uppercase")},E={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",s.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",s.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",s.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",s.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",s.textTransform,"uppercase")},Wt=m.css`
4
4
  .ft-typography--title {
5
5
  font-family: ${H.fontFamily};
6
6
  font-size: ${H.fontSize};
@@ -9,7 +9,7 @@
9
9
  line-height: ${H.lineHeight};
10
10
  text-transform: ${H.textTransform};
11
11
  }
12
- `,Wt=m.css`
12
+ `,Nt=m.css`
13
13
  .ft-typography--title-dense {
14
14
  font-family: ${F.fontFamily};
15
15
  font-size: ${F.fontSize};
@@ -27,7 +27,7 @@
27
27
  line-height: ${z.lineHeight};
28
28
  text-transform: ${z.textTransform};
29
29
  }
30
- `,Nt=m.css`
30
+ `,Bt=m.css`
31
31
  .ft-typography--subtitle2 {
32
32
  font-family: ${w.fontFamily};
33
33
  font-size: ${w.fontSize};
@@ -37,7 +37,7 @@
37
37
  text-transform: ${w.textTransform};
38
38
  }
39
39
 
40
- `,Bt=m.css`
40
+ `,Mt=m.css`
41
41
  .ft-typography--body1 {
42
42
  font-family: ${W.fontFamily};
43
43
  font-size: ${W.fontSize};
@@ -48,15 +48,6 @@
48
48
  }
49
49
  `,Et=m.css`
50
50
  .ft-typography--body2 {
51
- font-family: ${C.fontFamily};
52
- font-size: ${C.fontSize};
53
- font-weight: ${C.fontWeight};
54
- letter-spacing: ${C.letterSpacing};
55
- line-height: ${C.lineHeight};
56
- text-transform: ${C.textTransform};
57
- }
58
- `,Mt=m.css`
59
- .ft-typography--caption {
60
51
  font-family: ${N.fontFamily};
61
52
  font-size: ${N.fontSize};
62
53
  font-weight: ${N.fontWeight};
@@ -65,6 +56,15 @@
65
56
  text-transform: ${N.textTransform};
66
57
  }
67
58
  `,Ot=m.css`
59
+ .ft-typography--caption {
60
+ font-family: ${C.fontFamily};
61
+ font-size: ${C.fontSize};
62
+ font-weight: ${C.fontWeight};
63
+ letter-spacing: ${C.letterSpacing};
64
+ line-height: ${C.lineHeight};
65
+ text-transform: ${C.textTransform};
66
+ }
67
+ `,Ut=m.css`
68
68
  .ft-typography--breadcrumb {
69
69
  font-family: ${B.fontFamily};
70
70
  font-size: ${B.fontSize};
@@ -73,17 +73,8 @@
73
73
  line-height: ${B.lineHeight};
74
74
  text-transform: ${B.textTransform};
75
75
  }
76
- `,Ut=m.css`
77
- .ft-typography--overline {
78
- font-family: ${E.fontFamily};
79
- font-size: ${E.fontSize};
80
- font-weight: ${E.fontWeight};
81
- letter-spacing: ${E.letterSpacing};
82
- line-height: ${E.lineHeight};
83
- text-transform: ${E.textTransform};
84
- }
85
76
  `,It=m.css`
86
- .ft-typography--button {
77
+ .ft-typography--overline {
87
78
  font-family: ${M.fontFamily};
88
79
  font-size: ${M.fontSize};
89
80
  font-weight: ${M.fontWeight};
@@ -92,10 +83,19 @@
92
83
  text-transform: ${M.textTransform};
93
84
  }
94
85
  `,Vt=m.css`
86
+ .ft-typography--button {
87
+ font-family: ${E.fontFamily};
88
+ font-size: ${E.fontSize};
89
+ font-weight: ${E.fontWeight};
90
+ letter-spacing: ${E.letterSpacing};
91
+ line-height: ${E.lineHeight};
92
+ text-transform: ${E.textTransform};
93
+ }
94
+ `,Dt=m.css`
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
98
- `;var Pt=function(n,t,e,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(p=n[y])&&(a=(r<3?p(a):r>3?p(t,e,a):p(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},S=class extends Rt.FtLitElement{constructor(){super(...arguments),this.variant=G.body1}render(){return this.element?rt`
98
+ `;var Pt=function(n,t,e,i){var r=arguments.length,a=r<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,i);else for(var y=n.length-1;y>=0;y--)(p=n[y])&&(a=(r<3?p(a):r>3?p(t,e,a):p(t,e))||a);return r>3&&a&&Object.defineProperty(t,e,a),a},S=class extends jt.FtLitElement{constructor(){super(...arguments),this.variant=Z.body1}render(){return this.element?rt`
99
99
  <${nt(this.element)}
100
100
  part="text"
101
101
  class="ft-typography ft-typography--${this.variant}">
@@ -103,7 +103,7 @@
103
103
  </${nt(this.element)}>
104
104
  `:rt`
105
105
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};S.styles=[wt,Wt,Ct,Nt,Bt,Et,Mt,Ot,Ut,It,Vt];Pt([(0,st.property)()],S.prototype,"element",void 0);Pt([(0,st.property)()],S.prototype,"variant",void 0);var jt={"ft-typography":S};(0,Dt.customElements)(jt);})();
106
+ `}};S.styles=[Wt,Nt,Ct,Bt,Mt,Et,Ot,Ut,It,Vt,Dt];Pt([(0,st.property)()],S.prototype,"element",void 0);Pt([(0,st.property)()],S.prototype,"variant",void 0);var Rt={"ft-typography":S};(0,Lt.customElements)(Rt);})();
107
107
  /*! Bundled license information:
108
108
 
109
109
  lit-html/lit-html.js: